From f941705c01eab0ee737de37d92822c320a0eb738 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 15:16:40 +0000 Subject: [PATCH] [dependabot skip] chore: update generated content --- dist/index.cjs | 262 ++++++++++++++++++++++----------------------- dist/index.cjs.map | 6 +- dist/licenses.txt | 2 +- 3 files changed, 135 insertions(+), 135 deletions(-) diff --git a/dist/index.cjs b/dist/index.cjs index 1b13540..3e6485e 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -1,81 +1,81 @@ -var jMe=Object.create;var Vy=Object.defineProperty;var JMe=Object.getOwnPropertyDescriptor;var KMe=Object.getOwnPropertyNames;var XMe=Object.getPrototypeOf,ZMe=Object.prototype.hasOwnProperty;var i=(t,e)=>Vy(t,"name",{value:e,configurable:!0});var I=(t,e)=>()=>(t&&(e=t(t=0)),e);var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),en=(t,e)=>{for(var r in e)Vy(t,r,{get:e[r],enumerable:!0})},eK=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of KMe(e))!ZMe.call(t,s)&&s!==r&&Vy(t,s,{get:()=>e[s],enumerable:!(n=JMe(e,s))||n.enumerable});return t};var D=(t,e,r)=>(r=t!=null?jMe(XMe(t)):{},eK(e||!t||!t.__esModule?Vy(r,"default",{value:t,enumerable:!0}):r,t)),W=t=>eK(Vy({},"__esModule",{value:!0}),t);var lK=b(sA=>{"use strict";var EFt=require("net"),nFe=require("tls"),aO=require("http"),iK=require("https"),sFe=require("events"),CFt=require("assert"),oFe=require("util");sA.httpOverHttp=iFe;sA.httpsOverHttp=aFe;sA.httpOverHttps=cFe;sA.httpsOverHttps=lFe;function iFe(t){var e=new Tl(t);return e.request=aO.request,e}i(iFe,"httpOverHttp");function aFe(t){var e=new Tl(t);return e.request=aO.request,e.createSocket=aK,e.defaultPort=443,e}i(aFe,"httpsOverHttp");function cFe(t){var e=new Tl(t);return e.request=iK.request,e}i(cFe,"httpOverHttps");function lFe(t){var e=new Tl(t);return e.request=iK.request,e.createSocket=aK,e.defaultPort=443,e}i(lFe,"httpsOverHttps");function Tl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||aO.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(var c=cK(s,o,a),l=0,u=e.requests.length;l=this.maxSockets){o.requests.push(a);return}o.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){o.emit("free",c,a)}i(l,"onFree");function u(d){o.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}i(u,"onCloseOrRemove")})},"addRequest");Tl.prototype.createSocket=i(function(e,r){var n=this,s={};n.sockets.push(s);var o=cO({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),Hu("making CONNECT request");var a=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(p){p.upgrade=!0}i(c,"onResponse");function l(p,m,f){process.nextTick(function(){u(p,m,f)})}i(l,"onUpgrade");function u(p,m,f){if(a.removeAllListeners(),m.removeAllListeners(),p.statusCode!==200){Hu("tunneling socket could not be established, statusCode=%d",p.statusCode),m.destroy();var g=new Error("tunneling socket could not be established, statusCode="+p.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(f.length>0){Hu("got illegal response body from proxy"),m.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return Hu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}i(u,"onConnect");function d(p){a.removeAllListeners(),Hu(`tunneling socket could not be established, cause=%s -`,p.message,p.stack);var m=new Error("tunneling socket could not be established, cause="+p.message);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s)}i(d,"onError")},"createSocket");Tl.prototype.removeSocket=i(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(s){n.request.onSocket(s)})}},"removeSocket");function aK(t,e){var r=this;Tl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),o=cO({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=nFe.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(aK,"createSecureSocket");function cK(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(cK,"toOptions");function cO(t){for(var e=1,r=arguments.length;e{uK.exports=lK()});var Zt=b((bFt,dK)=>{dK.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 bt=b((SFt,LK)=>{"use strict";var pK=Symbol.for("undici.error.UND_ERR"),er=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[pK]===!0}[pK]=!0},mK=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),lO=class extends er{static{i(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[mK]===!0}[mK]=!0},fK=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),uO=class extends er{static{i(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[fK]===!0}[fK]=!0},AK=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),dO=class extends er{static{i(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[AK]===!0}[AK]=!0},hK=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),pO=class extends er{static{i(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[hK]===!0}[hK]=!0},gK=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),mO=class extends er{static{i(this,"ResponseStatusCodeError")}constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.status=r,this.statusCode=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[gK]===!0}[gK]=!0},yK=Symbol.for("undici.error.UND_ERR_INVALID_ARG"),fO=class extends er{static{i(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[yK]===!0}[yK]=!0},EK=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE"),AO=class extends er{static{i(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[EK]===!0}[EK]=!0},CK=Symbol.for("undici.error.UND_ERR_ABORT"),P0=class extends er{static{i(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[CK]===!0}[CK]=!0},IK=Symbol.for("undici.error.UND_ERR_ABORTED"),hO=class extends P0{static{i(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[IK]===!0}[IK]=!0},xK=Symbol.for("undici.error.UND_ERR_INFO"),gO=class extends er{static{i(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[xK]===!0}[xK]=!0},wK=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"),yO=class extends er{static{i(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[wK]===!0}[wK]=!0},bK=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH"),EO=class extends er{static{i(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[bK]===!0}[bK]=!0},SK=Symbol.for("undici.error.UND_ERR_DESTROYED"),CO=class extends er{static{i(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[SK]===!0}[SK]=!0},BK=Symbol.for("undici.error.UND_ERR_CLOSED"),IO=class extends er{static{i(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[BK]===!0}[BK]=!0},RK=Symbol.for("undici.error.UND_ERR_SOCKET"),xO=class extends er{static{i(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[RK]===!0}[RK]=!0},NK=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED"),wO=class extends er{static{i(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[NK]===!0}[NK]=!0},TK=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM"),bO=class extends er{static{i(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[TK]===!0}[TK]=!0},PK=Symbol.for("undici.error.UND_ERR_HTTP_PARSER"),SO=class extends Error{static{i(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[PK]===!0}[PK]=!0},vK=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE"),BO=class extends er{static{i(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[vK]===!0}[vK]=!0},_K=Symbol.for("undici.error.UND_ERR_REQ_RETRY"),RO=class extends er{static{i(this,"RequestRetryError")}constructor(e,r,{headers:n,data:s}){super(e),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=r,this.data=s,this.headers=n}static[Symbol.hasInstance](e){return e&&e[_K]===!0}[_K]=!0},QK=Symbol.for("undici.error.UND_ERR_RESPONSE"),NO=class extends er{static{i(this,"ResponseError")}constructor(e,r,{headers:n,data:s}){super(e),this.name="ResponseError",this.message=e||"Response error",this.code="UND_ERR_RESPONSE",this.statusCode=r,this.data=s,this.headers=n}static[Symbol.hasInstance](e){return e&&e[QK]===!0}[QK]=!0},DK=Symbol.for("undici.error.UND_ERR_PRX_TLS"),TO=class extends er{static{i(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[DK]===!0}[DK]=!0},kK=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"),PO=class extends er{static{i(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[kK]===!0}get[kK](){return!0}};LK.exports={AbortError:P0,HTTPParserError:SO,UndiciError:er,HeadersTimeoutError:uO,HeadersOverflowError:dO,BodyTimeoutError:pO,RequestContentLengthMismatchError:yO,ConnectTimeoutError:lO,ResponseStatusCodeError:mO,InvalidArgumentError:fO,InvalidReturnValueError:AO,RequestAbortedError:hO,ClientDestroyedError:CO,ClientClosedError:IO,InformationalError:gO,SocketError:xO,NotSupportedError:wO,ResponseContentLengthMismatchError:EO,BalancedPoolMissingUpstreamError:bO,ResponseExceededMaxSizeError:BO,RequestRetryError:RO,ResponseError:NO,SecureProxyConnectionError:TO,MessageSizeExceededError:PO}});var _0=b((RFt,OK)=>{"use strict";var v0={},vO=["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:MK,headerNameLowerCasedRecord:uFe}=_0(),_O=class t{static{i(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 s=0,o=this;for(;;){let a=e.charCodeAt(s);if(a>127)throw new TypeError("key must be ascii string");if(o.code===a)if(n===++s){o.value=r;break}else if(o.middle!==null)o=o.middle;else{o.middle=new t(e,r,s);break}else if(o.code=65&&(o|=32);s!==null;){if(o===s.code){if(r===++n)return s;s=s.middle;break}s=s.code{"use strict";var Wy=require("node:assert"),{kDestroyed:GK,kBodyUsed:oA,kListeners:QO,kBody:$K}=Zt(),{IncomingMessage:dFe}=require("node:http"),L0=require("node:stream"),pFe=require("node:net"),{Blob:mFe}=require("node:buffer"),fFe=require("node:util"),{stringify:AFe}=require("node:querystring"),{EventEmitter:hFe}=require("node:events"),{InvalidArgumentError:fn}=bt(),{headerNameLowerCasedRecord:gFe}=_0(),{tree:HK}=qK(),[yFe,EFe]=process.versions.node.split(".").map(t=>Number(t)),k0=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[$K]=e,this[oA]=!1}async*[Symbol.asyncIterator](){Wy(!this[oA],"disturbed"),this[oA]=!0,yield*this[$K]}};function CFe(t){return O0(t)?(jK(t)===0&&t.on("data",function(){Wy(!1)}),typeof t.readableDidRead!="boolean"&&(t[oA]=!1,hFe.prototype.on.call(t,"data",function(){this[oA]=!0})),t):t&&typeof t.pipeTo=="function"?new k0(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&WK(t)?new k0(t):t}i(CFe,"wrapRequestBody");function IFe(){}i(IFe,"nop");function O0(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}i(O0,"isStream");function zK(t){if(t===null)return!1;if(t instanceof mFe)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")}}i(zK,"isBlobLike");function xFe(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=AFe(e);return r&&(t+="?"+r),t}i(xFe,"buildURL");function VK(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}i(VK,"isValidPort");function D0(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}i(D0,"isHttpOrHttpsPrefixed");function YK(t){if(typeof t=="string"){if(t=new URL(t),!D0(t.origin||t.protocol))throw new fn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new fn("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&VK(t.port)===!1)throw new fn("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 fn("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new fn("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new fn("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new fn("Invalid URL origin: the origin must be a string or null/undefined.");if(!D0(t.origin||t.protocol))throw new fn("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(!D0(t.origin||t.protocol))throw new fn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}i(YK,"parseURL");function wFe(t){if(t=YK(t),t.pathname!=="/"||t.search||t.hash)throw new fn("invalid url");return t}i(wFe,"parseOrigin");function bFe(t){if(t[0]==="["){let r=t.indexOf("]");return Wy(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}i(bFe,"getHostname");function SFe(t){if(!t)return null;Wy(typeof t=="string");let e=bFe(t);return pFe.isIP(e)?"":e}i(SFe,"getServerName");function BFe(t){return JSON.parse(JSON.stringify(t))}i(BFe,"deepClone");function RFe(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}i(RFe,"isAsyncIterable");function WK(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}i(WK,"isIterable");function jK(t){if(t==null)return 0;if(O0(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(zK(t))return t.size!=null?t.size:null;if(XK(t))return t.byteLength}return null}i(jK,"bodyLength");function JK(t){return t&&!!(t.destroyed||t[GK]||L0.isDestroyed?.(t))}i(JK,"isDestroyed");function NFe(t,e){t==null||!O0(t)||JK(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===dFe&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[GK]=!0))}i(NFe,"destroy");var TFe=/timeout=(\d+)/;function PFe(t){let e=t.toString().match(TFe);return e?parseInt(e[1],10)*1e3:null}i(PFe,"parseKeepAliveTimeout");function KK(t){return typeof t=="string"?gFe[t]??t.toLowerCase():HK.lookup(t)??t.toString("latin1").toLowerCase()}i(KK,"headerNameToString");function vFe(t){return HK.lookup(t)??t.toString("latin1").toLowerCase()}i(vFe,"bufferToLowerCasedHeaderName");function _Fe(t,e){e===void 0&&(e={});for(let r=0;ra.toString("utf8")):o.toString("utf8")}}return"content-length"in e&&"content-disposition"in e&&(e["content-disposition"]=Buffer.from(e["content-disposition"]).toString("latin1")),e}i(_Fe,"parseHeaders");function QFe(t){let e=t.length,r=new Array(e),n=!1,s=-1,o,a,c=0;for(let l=0;l{r.close(),r.byobRequest?.respond(0)});else{let o=Buffer.isBuffer(s)?s:Buffer.from(s);o.byteLength&&r.enqueue(new Uint8Array(o))}return r.desiredSize>0},async cancel(r){await e.return()},type:"bytes"})}i(FFe,"ReadableStreamFrom");function UFe(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"}i(UFe,"isFormDataLike");function qFe(t,e){return"addEventListener"in t?(t.addEventListener("abort",e,{once:!0}),()=>t.removeEventListener("abort",e)):(t.addListener("abort",e),()=>t.removeListener("abort",e))}i(qFe,"addAbortListener");var $Fe=typeof String.prototype.toWellFormed=="function",GFe=typeof String.prototype.isWellFormed=="function";function ZK(t){return $Fe?`${t}`.toWellFormed():fFe.toUSVString(t)}i(ZK,"toUSVString");function HFe(t){return GFe?`${t}`.isWellFormed():ZK(t)===`${t}`}i(HFe,"isUSVString");function eX(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}}i(eX,"isTokenCharCode");function zFe(t){if(t.length===0)return!1;for(let e=0;e{"use strict";var vt=require("node:diagnostics_channel"),LO=require("node:util"),M0=LO.debuglog("undici"),kO=LO.debuglog("fetch"),Lp=LO.debuglog("websocket"),sX=!1,XFe={beforeConnect:vt.channel("undici:client:beforeConnect"),connected:vt.channel("undici:client:connected"),connectError:vt.channel("undici:client:connectError"),sendHeaders:vt.channel("undici:client:sendHeaders"),create:vt.channel("undici:request:create"),bodySent:vt.channel("undici:request:bodySent"),headers:vt.channel("undici:request:headers"),trailers:vt.channel("undici:request:trailers"),error:vt.channel("undici:request:error"),open:vt.channel("undici:websocket:open"),close:vt.channel("undici:websocket:close"),socketError:vt.channel("undici:websocket:socket_error"),ping:vt.channel("undici:websocket:ping"),pong:vt.channel("undici:websocket:pong")};if(M0.enabled||kO.enabled){let t=kO.enabled?kO:M0;vt.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connecting to %s using %s%s",`${o}${s?`:${s}`:""}`,n,r)}),vt.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connected to %s using %s%s",`${o}${s?`:${s}`:""}`,n,r)}),vt.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o},error:a}=e;t("connection to %s using %s%s errored - %s",`${o}${s?`:${s}`:""}`,n,r,a.message)}),vt.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("sending request to %s %s/%s",r,s,n)}),vt.channel("undici:request:headers").subscribe(e=>{let{request:{method:r,path:n,origin:s},response:{statusCode:o}}=e;t("received response to %s %s/%s - HTTP %d",r,s,n,o)}),vt.channel("undici:request:trailers").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("trailers received from %s %s/%s",r,s,n)}),vt.channel("undici:request:error").subscribe(e=>{let{request:{method:r,path:n,origin:s},error:o}=e;t("request to %s %s/%s errored - %s",r,s,n,o.message)}),sX=!0}if(Lp.enabled){if(!sX){let t=M0.enabled?M0:Lp;vt.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connecting to %s%s using %s%s",o,s?`:${s}`:"",n,r)}),vt.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connected to %s%s using %s%s",o,s?`:${s}`:"",n,r)}),vt.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o},error:a}=e;t("connection to %s%s using %s%s errored - %s",o,s?`:${s}`:"",n,r,a.message)}),vt.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("sending request to %s %s/%s",r,s,n)})}vt.channel("undici:websocket:open").subscribe(t=>{let{address:{address:e,port:r}}=t;Lp("connection opened %s%s",e,r?`:${r}`:"")}),vt.channel("undici:websocket:close").subscribe(t=>{let{websocket:e,code:r,reason:n}=t;Lp("closed connection to %s - %s %s",e.url,r,n)}),vt.channel("undici:websocket:socket_error").subscribe(t=>{Lp("connection errored - %s",t.message)}),vt.channel("undici:websocket:ping").subscribe(t=>{Lp("ping received")}),vt.channel("undici:websocket:pong").subscribe(t=>{Lp("pong received")})}oX.exports={channels:XFe}});var lX=b((QFt,cX)=>{"use strict";var{InvalidArgumentError:Gt,NotSupportedError:ZFe}=bt(),Pl=require("node:assert"),{isValidHTTPToken:aX,isValidHeaderValue:OO,isStream:e1e,destroy:t1e,isBuffer:r1e,isFormDataLike:n1e,isIterable:s1e,isBlobLike:o1e,buildURL:i1e,validateHandler:a1e,getServerName:c1e,normalizedMethodRecords:l1e}=ut(),{channels:Ua}=iA(),{headerNameLowerCasedRecord:iX}=_0(),u1e=/[^\u0021-\u00ff]/,ti=Symbol("handler"),MO=class{static{i(this,"Request")}constructor(e,{path:r,method:n,body:s,headers:o,query:a,idempotent:c,blocking:l,upgrade:u,headersTimeout:d,bodyTimeout:p,reset:m,throwOnError:f,expectContinue:g,servername:E},x){if(typeof r!="string")throw new Gt("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("https://"))&&n!=="CONNECT")throw new Gt("path must be an absolute URL or start with a slash");if(u1e.test(r))throw new Gt("invalid request path");if(typeof n!="string")throw new Gt("method must be a string");if(l1e[n]===void 0&&!aX(n))throw new Gt("invalid request method");if(u&&typeof u!="string")throw new Gt("upgrade must be a string");if(u&&!OO(u))throw new Gt("invalid upgrade header");if(d!=null&&(!Number.isFinite(d)||d<0))throw new Gt("invalid headersTimeout");if(p!=null&&(!Number.isFinite(p)||p<0))throw new Gt("invalid bodyTimeout");if(m!=null&&typeof m!="boolean")throw new Gt("invalid reset");if(g!=null&&typeof g!="boolean")throw new Gt("invalid expectContinue");if(this.headersTimeout=d,this.bodyTimeout=p,this.throwOnError=f===!0,this.method=n,this.abort=null,s==null)this.body=null;else if(e1e(s)){this.body=s;let w=this.body._readableState;(!w||!w.autoDestroy)&&(this.endHandler=i(function(){t1e(this)},"autoDestroy"),this.body.on("end",this.endHandler)),this.errorHandler=S=>{this.abort?this.abort(S):this.error=S},this.body.on("error",this.errorHandler)}else if(r1e(s))this.body=s.byteLength?s:null;else if(ArrayBuffer.isView(s))this.body=s.buffer.byteLength?Buffer.from(s.buffer,s.byteOffset,s.byteLength):null;else if(s instanceof ArrayBuffer)this.body=s.byteLength?Buffer.from(s):null;else if(typeof s=="string")this.body=s.length?Buffer.from(s):null;else if(n1e(s)||s1e(s)||o1e(s))this.body=s;else throw new Gt("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?i1e(r,a):r,this.origin=e,this.idempotent=c??(n==="HEAD"||n==="GET"),this.blocking=l??!1,this.reset=m??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=g??!1,Array.isArray(o)){if(o.length%2!==0)throw new Gt("headers array must be even");for(let w=0;w{"use strict";var d1e=require("node:events"),U0=class extends d1e{static{i(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 s of r)if(s!=null){if(typeof s!="function")throw new TypeError(`invalid interceptor, expected function received ${typeof s}`);if(n=s(n),n==null||typeof n!="function"||n.length!==2)throw new TypeError("invalid interceptor")}return new FO(this,n)}},FO=class extends U0{static{i(this,"ComposedDispatcher")}#e=null;#t=null;constructor(e,r){super(),this.#e=e,this.#t=r}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};uX.exports=U0});var uA=b((OFt,dX)=>{"use strict";var p1e=jy(),{ClientDestroyedError:UO,ClientClosedError:m1e,InvalidArgumentError:aA}=bt(),{kDestroy:f1e,kClose:A1e,kClosed:Jy,kDestroyed:cA,kDispatch:qO,kInterceptors:Op}=Zt(),vl=Symbol("onDestroyed"),lA=Symbol("onClosed"),q0=Symbol("Intercepted Dispatch"),$O=class extends p1e{static{i(this,"DispatcherBase")}constructor(){super(),this[cA]=!1,this[vl]=null,this[Jy]=!1,this[lA]=[]}get destroyed(){return this[cA]}get closed(){return this[Jy]}get interceptors(){return this[Op]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[Op][r]!="function")throw new aA("interceptor must be an function")}this[Op]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((o,a)=>o?s(o):n(a))});if(typeof e!="function")throw new aA("invalid callback");if(this[cA]){queueMicrotask(()=>e(new UO,null));return}if(this[Jy]){this[lA]?this[lA].push(e):queueMicrotask(()=>e(null,null));return}this[Jy]=!0,this[lA].push(e);let r=i(()=>{let n=this[lA];this[lA]=null;for(let s=0;sthis.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,o)=>{this.destroy(e,(a,c)=>a?o(a):s(c))});if(typeof r!="function")throw new aA("invalid callback");if(this[cA]){this[vl]?this[vl].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new UO),this[cA]=!0,this[vl]=this[vl]||[],this[vl].push(r);let n=i(()=>{let s=this[vl];this[vl]=null;for(let o=0;o{queueMicrotask(n)})}[q0](e,r){if(!this[Op]||this[Op].length===0)return this[q0]=this[qO],this[qO](e,r);let n=this[qO].bind(this);for(let s=this[Op].length-1;s>=0;s--)n=this[Op][s](n);return this[q0]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new aA("handler must be an object");try{if(!e||typeof e!="object")throw new aA("opts must be an object.");if(this[cA]||this[vl])throw new UO;if(this[Jy])throw new m1e;return this[q0](e,r)}catch(n){if(typeof r.onError!="function")throw new aA("invalid onError method");return r.onError(n),!1}}};dX.exports=$O});var jO=b((FFt,AX)=>{"use strict";var dA=0,GO=1e3,HO=(GO>>1)-1,_l,zO=Symbol("kFastTimer"),Ql=[],VO=-2,YO=-1,mX=0,pX=1;function WO(){dA+=HO;let t=0,e=Ql.length;for(;t=r._idleStart+r._idleTimeout&&(r._state=YO,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===YO?(r._state=VO,--e!==0&&(Ql[t]=Ql[e])):++t}Ql.length=e,Ql.length!==0&&fX()}i(WO,"onTick");function fX(){_l?_l.refresh():(clearTimeout(_l),_l=setTimeout(WO,HO),_l.unref&&_l.unref())}i(fX,"refreshTimeout");var $0=class{static{i(this,"FastTimer")}[zO]=!0;_state=VO;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,r,n){this._onTimeout=e,this._idleTimeout=r,this._timerArg=n,this.refresh()}refresh(){this._state===VO&&Ql.push(this),(!_l||Ql.length===1)&&fX(),this._state=mX}clear(){this._state=YO,this._idleStart=-1}};AX.exports={setTimeout(t,e,r){return e<=GO?setTimeout(t,e,r):new $0(t,e,r)},clearTimeout(t){t[zO]?t.clear():clearTimeout(t)},setFastTimeout(t,e,r){return new $0(t,e,r)},clearFastTimeout(t){t.clear()},now(){return dA},tick(t=0){dA+=t-GO+1,WO(),WO()},reset(){dA=0,Ql.length=0,clearTimeout(_l),_l=null},kFastTimer:zO}});var Ky=b((GFt,CX)=>{"use strict";var h1e=require("node:net"),hX=require("node:assert"),EX=ut(),{InvalidArgumentError:g1e,ConnectTimeoutError:y1e}=bt(),G0=jO();function gX(){}i(gX,"noop");var JO,KO;global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?KO=class{static{i(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 E1e({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,session:s,...o}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new g1e("maxCachedSessions must be a positive integer or zero");let a={path:r,...o},c=new KO(e??100);return n=n??1e4,t=t??!1,i(function({hostname:u,host:d,protocol:p,port:m,servername:f,localAddress:g,httpSocket:E},x){let w;if(p==="https:"){JO||(JO=require("node:tls")),f=f||a.servername||EX.getServerName(d)||null;let P=f||u;hX(P);let Q=s||c.get(P)||null;m=m||443,w=JO.connect({highWaterMark:16384,...a,servername:f,session:Q,localAddress:g,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:E,port:m,host:u}),w.on("session",function(q){c.set(P,q)})}else hX(!E,"httpSocket can only be sent on TLS update"),m=m||80,w=h1e.connect({highWaterMark:64*1024,...a,localAddress:g,port:m,host:u});if(a.keepAlive==null||a.keepAlive){let P=a.keepAliveInitialDelay===void 0?6e4:a.keepAliveInitialDelay;w.setKeepAlive(!0,P)}let S=C1e(new WeakRef(w),{timeout:n,hostname:u,port:m});return w.setNoDelay(!0).once(p==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(S),x){let P=x;x=null,P(null,this)}}).on("error",function(P){if(queueMicrotask(S),x){let Q=x;x=null,Q(P)}}),w},"connect")}i(E1e,"buildConnector");var C1e=process.platform==="win32"?(t,e)=>{if(!e.timeout)return gX;let r=null,n=null,s=G0.setFastTimeout(()=>{r=setImmediate(()=>{n=setImmediate(()=>yX(t.deref(),e))})},e.timeout);return()=>{G0.clearFastTimeout(s),clearImmediate(r),clearImmediate(n)}}:(t,e)=>{if(!e.timeout)return gX;let r=null,n=G0.setFastTimeout(()=>{r=setImmediate(()=>{yX(t.deref(),e)})},e.timeout);return()=>{G0.clearFastTimeout(n),clearImmediate(r)}};function yX(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)`,EX.destroy(t,new y1e(r))}i(yX,"onConnectTimeout");CX.exports=E1e});var IX=b(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0});H0.enumToMap=void 0;function I1e(t){let e={};return Object.keys(t).forEach(r=>{let n=t[r];typeof n=="number"&&(e[r]=n)}),e}i(I1e,"enumToMap");H0.enumToMap=I1e});var xX=b(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.SPECIAL_HEADERS=j.HEADER_STATE=j.MINOR=j.MAJOR=j.CONNECTION_TOKEN_CHARS=j.HEADER_CHARS=j.TOKEN=j.STRICT_TOKEN=j.HEX=j.URL_CHAR=j.STRICT_URL_CHAR=j.USERINFO_CHARS=j.MARK=j.ALPHANUM=j.NUM=j.HEX_MAP=j.NUM_MAP=j.ALPHA=j.FINISH=j.H_METHOD_MAP=j.METHOD_MAP=j.METHODS_RTSP=j.METHODS_ICE=j.METHODS_HTTP=j.METHODS=j.LENIENT_FLAGS=j.FLAGS=j.TYPE=j.ERROR=void 0;var x1e=IX(),w1e;(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"})(w1e=j.ERROR||(j.ERROR={}));var b1e;(function(t){t[t.BOTH=0]="BOTH",t[t.REQUEST=1]="REQUEST",t[t.RESPONSE=2]="RESPONSE"})(b1e=j.TYPE||(j.TYPE={}));var S1e;(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"})(S1e=j.FLAGS||(j.FLAGS={}));var B1e;(function(t){t[t.HEADERS=1]="HEADERS",t[t.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",t[t.KEEP_ALIVE=4]="KEEP_ALIVE"})(B1e=j.LENIENT_FLAGS||(j.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=j.METHODS||(j.METHODS={}));j.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];j.METHODS_ICE=[_e.SOURCE];j.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];j.METHOD_MAP=x1e.enumToMap(_e);j.H_METHOD_MAP={};Object.keys(j.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(j.H_METHOD_MAP[t]=j.METHOD_MAP[t])});var R1e;(function(t){t[t.SAFE=0]="SAFE",t[t.SAFE_WITH_CB=1]="SAFE_WITH_CB",t[t.UNSAFE=2]="UNSAFE"})(R1e=j.FINISH||(j.FINISH={}));j.ALPHA=[];for(let t=65;t<=90;t++)j.ALPHA.push(String.fromCharCode(t)),j.ALPHA.push(String.fromCharCode(t+32));j.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};j.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};j.NUM=["0","1","2","3","4","5","6","7","8","9"];j.ALPHANUM=j.ALPHA.concat(j.NUM);j.MARK=["-","_",".","!","~","*","'","(",")"];j.USERINFO_CHARS=j.ALPHANUM.concat(j.MARK).concat(["%",";",":","&","=","+","$",","]);j.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(j.ALPHANUM);j.URL_CHAR=j.STRICT_URL_CHAR.concat([" ","\f"]);for(let t=128;t<=255;t++)j.URL_CHAR.push(t);j.HEX=j.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);j.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(j.ALPHANUM);j.TOKEN=j.STRICT_TOKEN.concat([" "]);j.HEADER_CHARS=[" "];for(let t=32;t<=255;t++)t!==127&&j.HEADER_CHARS.push(t);j.CONNECTION_TOKEN_CHARS=j.HEADER_CHARS.filter(t=>t!==44);j.MAJOR=j.NUM_MAP;j.MINOR=j.MAJOR;var pA;(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"})(pA=j.HEADER_STATE||(j.HEADER_STATE={}));j.SPECIAL_HEADERS={connection:pA.CONNECTION,"content-length":pA.CONTENT_LENGTH,"proxy-connection":pA.CONNECTION,"transfer-encoding":pA.TRANSFER_ENCODING,upgrade:pA.UPGRADE}});var XO=b((WFt,wX)=>{"use strict";var{Buffer:N1e}=require("node:buffer");wX.exports=N1e.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsa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BRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAAR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xBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCB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ABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAg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qCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0w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QBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")});var Xy=b((JFt,QX)=>{"use strict";var BX=["GET","HEAD","POST"],P1e=new Set(BX),v1e=[101,204,205,304],RX=[301,302,303,307,308],_1e=new Set(RX),NX=["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"],Q1e=new Set(NX),TX=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],D1e=new Set(TX),k1e=["follow","manual","error"],PX=["GET","HEAD","OPTIONS","TRACE"],L1e=new Set(PX),O1e=["navigate","same-origin","no-cors","cors"],M1e=["omit","same-origin","include"],F1e=["default","no-store","reload","no-cache","force-cache","only-if-cached"],U1e=["content-encoding","content-language","content-location","content-type","content-length"],q1e=["half"],vX=["CONNECT","TRACE","TRACK"],$1e=new Set(vX),_X=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],G1e=new Set(_X);QX.exports={subresource:_X,forbiddenMethods:vX,requestBodyHeader:U1e,referrerPolicy:TX,requestRedirect:k1e,requestMode:O1e,requestCredentials:M1e,requestCache:F1e,redirectStatus:RX,corsSafeListedMethods:BX,nullBodyStatus:v1e,safeMethods:PX,badPorts:NX,requestDuplex:q1e,subresourceSet:G1e,badPortsSet:Q1e,redirectStatusSet:_1e,corsSafeListedMethodsSet:P1e,safeMethodsSet:L1e,forbiddenMethodsSet:$1e,referrerPolicySet:D1e}});var eM=b((KFt,DX)=>{"use strict";var ZO=Symbol.for("undici.globalOrigin.1");function H1e(){return globalThis[ZO]}i(H1e,"getGlobalOrigin");function z1e(t){if(t===void 0){Object.defineProperty(globalThis,ZO,{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,ZO,{value:e,writable:!0,enumerable:!1,configurable:!1})}i(z1e,"setGlobalOrigin");DX.exports={getGlobalOrigin:H1e,setGlobalOrigin:z1e}});var Os=b((ZFt,qX)=>{"use strict";var V0=require("node:assert"),V1e=new TextEncoder,Zy=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,Y1e=/[\u000A\u000D\u0009\u0020]/,W1e=/[\u0009\u000A\u000C\u000D\u0020]/g,j1e=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function J1e(t){V0(t.protocol==="data:");let e=OX(t,!0);e=e.slice(5);let r={position:0},n=mA(",",e,r),s=n.length;if(n=rUe(n,!0,!0),r.position>=e.length)return"failure";r.position++;let o=e.slice(s+1),a=MX(o);if(/;(\u0020){0,}base64$/i.test(n)){let l=UX(a);if(a=X1e(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=tM(n);return c==="failure"&&(c=tM("text/plain;charset=US-ASCII")),{mimeType:c,body:a}}i(J1e,"dataURLProcessor");function OX(t,e=!1){if(!e)return t.href;let r=t.href,n=t.hash.length,s=n===0?r:r.substring(0,r.length-n);return!n&&r.endsWith("#")?s.slice(0,-1):s}i(OX,"URLSerializer");function Y0(t,e,r){let n="";for(;r.position=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}i(kX,"isHexCharByte");function LX(t){return t>=48&&t<=57?t-48:(t&223)-55}i(LX,"hexByteToNumber");function K1e(t){let e=t.length,r=new Uint8Array(e),n=0;for(let s=0;st.length)return"failure";e.position++;let n=mA(";",t,e);if(n=z0(n,!1,!0),n.length===0||!Zy.test(n))return"failure";let s=r.toLowerCase(),o=n.toLowerCase(),a={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};for(;e.positionY1e.test(u),t,e);let c=Y0(u=>u!==";"&&u!=="=",t,e);if(c=c.toLowerCase(),e.positiont.length)break;let l=null;if(t[e.position]==='"')l=FX(t,e,!0),mA(";",t,e);else if(l=mA(";",t,e),l=z0(l,!1,!0),l.length===0)continue;c.length!==0&&Zy.test(c)&&(l.length===0||j1e.test(l))&&!a.parameters.has(c)&&a.parameters.set(c,l)}return a}i(tM,"parseMIMEType");function X1e(t){t=t.replace(W1e,"");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)}i(X1e,"forgivingBase64");function FX(t,e,r){let n=e.position,s="";for(V0(t[e.position]==='"'),e.position++;s+=Y0(a=>a!=='"'&&a!=="\\",t,e),!(e.position>=t.length);){let o=t[e.position];if(e.position++,o==="\\"){if(e.position>=t.length){s+="\\";break}s+=t[e.position],e.position++}else{V0(o==='"');break}}return r?s:t.slice(n,e.position)}i(FX,"collectAnHTTPQuotedString");function Z1e(t){V0(t!=="failure");let{parameters:e,essence:r}=t,n=r;for(let[s,o]of e.entries())n+=";",n+=s,n+="=",Zy.test(o)||(o=o.replace(/(\\|")/g,"\\$1"),o='"'+o,o+='"'),n+=o;return n}i(Z1e,"serializeAMimeType");function eUe(t){return t===13||t===10||t===9||t===32}i(eUe,"isHTTPWhiteSpace");function z0(t,e=!0,r=!0){return rM(t,e,r,eUe)}i(z0,"removeHTTPWhitespace");function tUe(t){return t===13||t===10||t===9||t===12||t===32}i(tUe,"isASCIIWhitespace");function rUe(t,e=!0,r=!0){return rM(t,e,r,tUe)}i(rUe,"removeASCIIWhitespace");function rM(t,e,r,n){let s=0,o=t.length-1;if(e)for(;s0&&n(t.charCodeAt(o));)o--;return s===0&&o===t.length-1?t:t.slice(s,o+1)}i(rM,"removeChars");function UX(t){let e=t.length;if(65535>e)return String.fromCharCode.apply(null,t);let r="",n=0,s=65535;for(;ne&&(s=e-n),r+=String.fromCharCode.apply(null,t.subarray(n,n+=s));return r}i(UX,"isomorphicDecode");function nUe(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":""}i(nUe,"minimizeSupportedMimeType");qX.exports={dataURLProcessor:J1e,URLSerializer:OX,collectASequenceOfCodePoints:Y0,collectASequenceOfCodePointsFast:mA,stringPercentDecode:MX,parseMIMEType:tM,collectAnHTTPQuotedString:FX,serializeAMimeType:Z1e,removeChars:rM,removeHTTPWhitespace:z0,minimizeSupportedMimeType:nUe,HTTP_TOKEN_CODEPOINTS:Zy,isomorphicDecode:UX}});var Rn=b((t1t,$X)=>{"use strict";var{types:qa,inspect:sUe}=require("node:util"),{markAsUncloneable:oUe}=require("node:worker_threads"),{toUSVString:iUe}=ut(),Y={};Y.converters={};Y.util={};Y.errors={};Y.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};Y.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 Y.errors.exception({header:t.prefix,message:r})};Y.errors.invalidArgument=function(t){return Y.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};Y.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}};Y.argumentLengthCheck=function({length:t},e,r){if(t{});Y.util.ConvertToInt=function(t,e,r,n){let s,o;e===64?(s=Math.pow(2,53)-1,r==="unsigned"?o=0:o=Math.pow(-2,53)+1):r==="unsigned"?(o=0,s=Math.pow(2,e)-1):(o=Math.pow(-2,e)-1,s=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 Y.errors.exception({header:"Integer conversion",message:`Could not convert ${Y.util.Stringify(t)} to an integer.`});if(a=Y.util.IntegerPart(a),as)throw Y.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`});return a}return!Number.isNaN(a)&&n?.clamp===!0?(a=Math.min(Math.max(a,o),s),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=Y.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};Y.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};Y.util.Stringify=function(t){switch(Y.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return sUe(t);case"String":return`"${t}"`;default:return`${t}`}};Y.sequenceConverter=function(t){return(e,r,n,s)=>{if(Y.util.Type(e)!=="Object")throw Y.errors.exception({header:r,message:`${n} (${Y.util.Stringify(e)}) is not iterable.`});let o=typeof s=="function"?s():e?.[Symbol.iterator]?.(),a=[],c=0;if(o===void 0||typeof o.next!="function")throw Y.errors.exception({header:r,message:`${n} is not iterable.`});for(;;){let{done:l,value:u}=o.next();if(l)break;a.push(t(u,r,`${n}[${c++}]`))}return a}};Y.recordConverter=function(t,e){return(r,n,s)=>{if(Y.util.Type(r)!=="Object")throw Y.errors.exception({header:n,message:`${s} ("${Y.util.Type(r)}") is not an Object.`});let o={};if(!qa.isProxy(r)){let c=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let l of c){let u=t(l,n,s),d=e(r[l],n,s);o[u]=d}return o}let a=Reflect.ownKeys(r);for(let c of a)if(Reflect.getOwnPropertyDescriptor(r,c)?.enumerable){let u=t(c,n,s),d=e(r[c],n,s);o[u]=d}return o}};Y.interfaceConverter=function(t){return(e,r,n,s)=>{if(s?.strict!==!1&&!(e instanceof t))throw Y.errors.exception({header:r,message:`Expected ${n} ("${Y.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};Y.dictionaryConverter=function(t){return(e,r,n)=>{let s=Y.util.Type(e),o={};if(s==="Null"||s==="Undefined")return o;if(s!=="Object")throw Y.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 Y.errors.exception({header:r,message:`Missing required key "${c}".`});let p=e[c],m=Object.hasOwn(a,"defaultValue");if(m&&p!==null&&(p??=l()),u||m||p!==void 0){if(p=d(p,r,`${n}.${c}`),a.allowedValues&&!a.allowedValues.includes(p))throw Y.errors.exception({header:r,message:`${p} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});o[c]=p}}return o}};Y.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};Y.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw Y.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};Y.converters.ByteString=function(t,e,r){let n=Y.converters.DOMString(t,e,r);for(let s=0;s255)throw new TypeError(`Cannot convert argument to a ByteString because the character at index ${s} has a value of ${n.charCodeAt(s)} which is greater than 255.`);return n};Y.converters.USVString=iUe;Y.converters.boolean=function(t){return!!t};Y.converters.any=function(t){return t};Y.converters["long long"]=function(t,e,r){return Y.util.ConvertToInt(t,64,"signed",void 0,e,r)};Y.converters["unsigned long long"]=function(t,e,r){return Y.util.ConvertToInt(t,64,"unsigned",void 0,e,r)};Y.converters["unsigned long"]=function(t,e,r){return Y.util.ConvertToInt(t,32,"unsigned",void 0,e,r)};Y.converters["unsigned short"]=function(t,e,r,n){return Y.util.ConvertToInt(t,16,"unsigned",n,e,r)};Y.converters.ArrayBuffer=function(t,e,r,n){if(Y.util.Type(t)!=="Object"||!qa.isAnyArrayBuffer(t))throw Y.errors.conversionFailed({prefix:e,argument:`${r} ("${Y.util.Stringify(t)}")`,types:["ArrayBuffer"]});if(n?.allowShared===!1&&qa.isSharedArrayBuffer(t))throw Y.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.resizable||t.growable)throw Y.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Y.converters.TypedArray=function(t,e,r,n,s){if(Y.util.Type(t)!=="Object"||!qa.isTypedArray(t)||t.constructor.name!==e.name)throw Y.errors.conversionFailed({prefix:r,argument:`${n} ("${Y.util.Stringify(t)}")`,types:[e.name]});if(s?.allowShared===!1&&qa.isSharedArrayBuffer(t.buffer))throw Y.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw Y.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Y.converters.DataView=function(t,e,r,n){if(Y.util.Type(t)!=="Object"||!qa.isDataView(t))throw Y.errors.exception({header:e,message:`${r} is not a DataView.`});if(n?.allowShared===!1&&qa.isSharedArrayBuffer(t.buffer))throw Y.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw Y.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Y.converters.BufferSource=function(t,e,r,n){if(qa.isAnyArrayBuffer(t))return Y.converters.ArrayBuffer(t,e,r,{...n,allowShared:!1});if(qa.isTypedArray(t))return Y.converters.TypedArray(t,t.constructor,e,r,{...n,allowShared:!1});if(qa.isDataView(t))return Y.converters.DataView(t,e,r,{...n,allowShared:!1});throw Y.errors.conversionFailed({prefix:e,argument:`${r} ("${Y.util.Stringify(t)}")`,types:["BufferSource"]})};Y.converters["sequence"]=Y.sequenceConverter(Y.converters.ByteString);Y.converters["sequence>"]=Y.sequenceConverter(Y.converters["sequence"]);Y.converters["record"]=Y.recordConverter(Y.converters.ByteString,Y.converters.ByteString);$X.exports={webidl:Y}});var go=b((r1t,r7)=>{"use strict";var{Transform:aUe}=require("node:stream"),GX=require("node:zlib"),{redirectStatusSet:cUe,referrerPolicySet:lUe,badPortsSet:uUe}=Xy(),{getGlobalOrigin:HX}=eM(),{collectASequenceOfCodePoints:Mp,collectAnHTTPQuotedString:dUe,removeChars:pUe,parseMIMEType:mUe}=Os(),{performance:fUe}=require("node:perf_hooks"),{isBlobLike:AUe,ReadableStreamFrom:hUe,isValidHTTPToken:zX,normalizedMethodRecordsBase:gUe}=ut(),Fp=require("node:assert"),{isUint8Array:yUe}=require("node:util/types"),{webidl:eE}=Rn(),VX=[],j0;try{j0=require("node:crypto");let t=["sha256","sha384","sha512"];VX=j0.getHashes().filter(e=>t.includes(e))}catch{}function YX(t){let e=t.urlList,r=e.length;return r===0?null:e[r-1].toString()}i(YX,"responseURL");function EUe(t,e){if(!cUe.has(t.status))return null;let r=t.headersList.get("location",!0);return r!==null&&jX(r)&&(WX(r)||(r=CUe(r)),r=new URL(r,YX(t))),r&&!r.hash&&(r.hash=e),r}i(EUe,"responseLocationURL");function WX(t){for(let e=0;e126||r<32)return!1}return!0}i(WX,"isValidEncodedURL");function CUe(t){return Buffer.from(t,"binary").toString("utf8")}i(CUe,"normalizeBinaryStringToUtf8");function rE(t){return t.urlList[t.urlList.length-1]}i(rE,"requestCurrentURL");function IUe(t){let e=rE(t);return e7(e)&&uUe.has(e.port)?"blocked":"allowed"}i(IUe,"requestBadPort");function xUe(t){return t instanceof Error||t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException"}i(xUe,"isErrorLike");function wUe(t){for(let e=0;e=32&&r<=126||r>=128&&r<=255))return!1}return!0}i(wUe,"isValidReasonPhrase");var bUe=zX;function jX(t){return(t[0]===" "||t[0]===" "||t[t.length-1]===" "||t[t.length-1]===" "||t.includes(` -`)||t.includes("\r")||t.includes("\0"))===!1}i(jX,"isValidHeaderValue");function SUe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let o=n.length;o!==0;o--){let a=n[o-1].trim();if(lUe.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}i(SUe,"setRequestReferrerPolicyOnRedirect");function BUe(){return"allowed"}i(BUe,"crossOriginResourcePolicyCheck");function RUe(){return"success"}i(RUe,"corsCheck");function NUe(){return"success"}i(NUe,"TAOCheck");function TUe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(TUe,"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&&sM(t.origin)&&!sM(rE(t))&&(e=null);break;case"same-origin":J0(t,rE(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(PUe,"appendRequestOriginHeader");function fA(t,e){return t}i(fA,"coarsenTime");function vUe(t,e,r){return!t?.startTime||t.startTime4096&&(n=s);let o=J0(t,n),a=tE(n)&&!tE(t.url);switch(e){case"origin":return s??nM(r,!0);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{let c=rE(t);return J0(n,c)?n:tE(n)&&!tE(c)?"no-referrer":s}default:return a?"no-referrer":s}}i(kUe,"determineRequestsReferrer");function nM(t,e){return Fp(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)}i(nM,"stripURLForReferrer");function tE(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"))}}i(tE,"isURLPotentiallyTrustworthy");function LUe(t,e){if(j0===void 0)return!0;let r=KX(e);if(r==="no metadata"||r.length===0)return!0;let n=MUe(r),s=FUe(r,n);for(let o of s){let a=o.algo,c=o.hash,l=j0.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)),UUe(l,c))return!0}return!1}i(LUe,"bytesMatch");var OUe=/(?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 s=OUe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let o=s.groups.algo.toLowerCase();VX.includes(o)&&e.push(s.groups)}return r===!0?"no metadata":e}i(KX,"parseMetadata");function MUe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r{t=n,e=s}),resolve:t,reject:e}}i($Ue,"createDeferredPromise");function GUe(t){return t.controller.state==="aborted"}i(GUe,"isAborted");function HUe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}i(HUe,"isCancelled");function zUe(t){return gUe[t.toLowerCase()]??t}i(zUe,"normalizeMethod");function VUe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Fp(typeof e=="string"),e}i(VUe,"serializeJavascriptValueToJSONString");var YUe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function XX(t,e,r=0,n=1){class s{static{i(this,"FastIterableIterator")}#e;#t;#s;constructor(a,c){this.#e=a,this.#t=c,this.#s=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.#s,c=this.#e[e],l=c.length;if(a>=l)return{value:void 0,done:!0};let{[r]:u,[n]:d}=c[a];this.#s=a+1;let p;switch(this.#t){case"key":p=u;break;case"value":p=d;break;case"key+value":p=[u,d];break}return{value:p,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,YUe),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(o,a){return new s(o,a)}}i(XX,"createIterator");function WUe(t,e,r,n=0,s=1){let o=XX(t,r,n,s),a={keys:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return eE.brandCheck(this,e),o(this,"key")},"keys")},values:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return eE.brandCheck(this,e),o(this,"value")},"values")},entries:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return eE.brandCheck(this,e),o(this,"key+value")},"entries")},forEach:{writable:!0,enumerable:!0,configurable:!0,value:i(function(l,u=globalThis){if(eE.brandCheck(this,e),eE.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:p}of o(this,"key+value"))l.call(u,p,d,this)},"forEach")}};return Object.defineProperties(e.prototype,{...a,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:a.entries.value}})}i(WUe,"iteratorMixin");async function jUe(t,e,r){let n=e,s=r,o;try{o=t.stream.getReader()}catch(a){s(a);return}try{n(await ZX(o))}catch(a){s(a)}}i(jUe,"fullyReadBody");function JUe(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee=="function"}i(JUe,"isReadableStreamLike");function KUe(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}}i(KUe,"readableStreamClose");var XUe=/[^\x00-\xFF]/;function W0(t){return Fp(!XUe.test(t)),t}i(W0,"isomorphicEncode");async function ZX(t){let e=[],r=0;for(;;){let{done:n,value:s}=await t.read();if(n)return Buffer.concat(e,r);if(!yUe(s))throw new TypeError("Received non-Uint8Array chunk");e.push(s),r+=s.length}}i(ZX,"readAllBytes");function ZUe(t){Fp("protocol"in t);let e=t.protocol;return e==="about:"||e==="blob:"||e==="data:"}i(ZUe,"urlIsLocal");function sM(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:"}i(sM,"urlHasHttpsScheme");function e7(t){Fp("protocol"in t);let e=t.protocol;return e==="http:"||e==="https:"}i(e7,"urlIsHttpHttpsScheme");function e2e(t,e){let r=t;if(!r.startsWith("bytes"))return"failure";let n={position:5};if(e&&Mp(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==61)return"failure";n.position++,e&&Mp(l=>l===" "||l===" ",r,n);let s=Mp(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),o=s.length?Number(s):null;if(e&&Mp(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==45)return"failure";n.position++,e&&Mp(l=>l===" "||l===" ",r,n);let a=Mp(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),c=a.length?Number(a):null;return n.positionc?"failure":{rangeStartValue:o,rangeEndValue:c}}i(e2e,"simpleRangeHeaderValue");function t2e(t,e,r){let n="bytes ";return n+=W0(`${t}`),n+="-",n+=W0(`${e}`),n+="/",n+=W0(`${r}`),n}i(t2e,"buildContentRange");var oM=class extends aUe{static{i(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?GX.createInflate(this.#e):GX.createInflateRaw(this.#e),this._inflateStream.on("data",this.push.bind(this)),this._inflateStream.on("end",()=>this.push(null)),this._inflateStream.on("error",s=>this.destroy(s))}this._inflateStream.write(e,r,n)}_final(e){this._inflateStream&&(this._inflateStream.end(),this._inflateStream=null),e()}};function r2e(t){return new oM(t)}i(r2e,"createInflate");function n2e(t){let e=null,r=null,n=null,s=t7("content-type",t);if(s===null)return"failure";for(let o of s){let a=mUe(o);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"}i(n2e,"extractMimeType");function s2e(t){let e=t,r={position:0},n=[],s="";for(;r.positiono!=='"'&&o!==",",e,r),r.positiono===9||o===32),n.push(s),s=""}return n}i(s2e,"gettingDecodingSplitting");function t7(t,e){let r=e.get(t,!0);return r===null?null:s2e(r)}i(t7,"getDecodeSplit");var o2e=new TextDecoder;function i2e(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),o2e.decode(t))}i(i2e,"utf8DecodeBytes");var iM=class{static{i(this,"EnvironmentSettingsObjectBase")}get baseUrl(){return HX()}get origin(){return this.baseUrl?.origin}policyContainer=JX()},aM=class{static{i(this,"EnvironmentSettingsObject")}settingsObject=new iM},a2e=new aM;r7.exports={isAborted:GUe,isCancelled:HUe,isValidEncodedURL:WX,createDeferredPromise:$Ue,ReadableStreamFrom:hUe,tryUpgradeRequestToAPotentiallyTrustworthyURL:qUe,clampAndCoarsenConnectionTimingInfo:vUe,coarsenedSharedCurrentTime:_Ue,determineRequestsReferrer:kUe,makePolicyContainer:JX,clonePolicyContainer:DUe,appendFetchMetadata:TUe,appendRequestOriginHeader:PUe,TAOCheck:NUe,corsCheck:RUe,crossOriginResourcePolicyCheck:BUe,createOpaqueTimingInfo:QUe,setRequestReferrerPolicyOnRedirect:SUe,isValidHTTPToken:zX,requestBadPort:IUe,requestCurrentURL:rE,responseURL:YX,responseLocationURL:EUe,isBlobLike:AUe,isURLPotentiallyTrustworthy:tE,isValidReasonPhrase:wUe,sameOrigin:J0,normalizeMethod:zUe,serializeJavascriptValueToJSONString:VUe,iteratorMixin:WUe,createIterator:XX,isValidHeaderName:bUe,isValidHeaderValue:jX,isErrorLike:xUe,fullyReadBody:jUe,bytesMatch:LUe,isReadableStreamLike:JUe,readableStreamClose:KUe,isomorphicEncode:W0,urlIsLocal:ZUe,urlHasHttpsScheme:sM,urlIsHttpHttpsScheme:e7,readAllBytes:ZX,simpleRangeHeaderValue:e2e,buildContentRange:t2e,parseMetadata:KX,createInflate:r2e,extractMimeType:n2e,getDecodeSplit:t7,utf8DecodeBytes:i2e,environmentSettingsObject:a2e}});var zu=b((s1t,n7)=>{"use strict";n7.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var lM=b((o1t,s7)=>{"use strict";var{Blob:c2e,File:l2e}=require("node:buffer"),{kState:Dl}=zu(),{webidl:$a}=Rn(),cM=class t{static{i(this,"FileLike")}constructor(e,r,n={}){let s=r,o=n.type,a=n.lastModified??Date.now();this[Dl]={blobLike:e,name:s,type:o,lastModified:a}}stream(...e){return $a.brandCheck(this,t),this[Dl].blobLike.stream(...e)}arrayBuffer(...e){return $a.brandCheck(this,t),this[Dl].blobLike.arrayBuffer(...e)}slice(...e){return $a.brandCheck(this,t),this[Dl].blobLike.slice(...e)}text(...e){return $a.brandCheck(this,t),this[Dl].blobLike.text(...e)}get size(){return $a.brandCheck(this,t),this[Dl].blobLike.size}get type(){return $a.brandCheck(this,t),this[Dl].blobLike.type}get name(){return $a.brandCheck(this,t),this[Dl].name}get lastModified(){return $a.brandCheck(this,t),this[Dl].lastModified}get[Symbol.toStringTag](){return"File"}};$a.converters.Blob=$a.interfaceConverter(c2e);function u2e(t){return t instanceof l2e||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}i(u2e,"isFileLike");s7.exports={FileLike:cM,isFileLike:u2e}});var sE=b((a1t,l7)=>{"use strict";var{isBlobLike:K0,iteratorMixin:d2e}=go(),{kState:ds}=zu(),{kEnumerableProperty:AA}=ut(),{FileLike:o7,isFileLike:p2e}=lM(),{webidl:Ht}=Rn(),{File:c7}=require("node:buffer"),i7=require("node:util"),a7=globalThis.File??c7,nE=class t{static{i(this,"FormData")}constructor(e){if(Ht.util.markAsUncloneable(this),e!==void 0)throw Ht.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[ds]=[]}append(e,r,n=void 0){Ht.brandCheck(this,t);let s="FormData.append";if(Ht.argumentLengthCheck(arguments,2,s),arguments.length===3&&!K0(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Ht.converters.USVString(e,s,"name"),r=K0(r)?Ht.converters.Blob(r,s,"value",{strict:!1}):Ht.converters.USVString(r,s,"value"),n=arguments.length===3?Ht.converters.USVString(n,s,"filename"):void 0;let o=uM(e,r,n);this[ds].push(o)}delete(e){Ht.brandCheck(this,t);let r="FormData.delete";Ht.argumentLengthCheck(arguments,1,r),e=Ht.converters.USVString(e,r,"name"),this[ds]=this[ds].filter(n=>n.name!==e)}get(e){Ht.brandCheck(this,t);let r="FormData.get";Ht.argumentLengthCheck(arguments,1,r),e=Ht.converters.USVString(e,r,"name");let n=this[ds].findIndex(s=>s.name===e);return n===-1?null:this[ds][n].value}getAll(e){Ht.brandCheck(this,t);let r="FormData.getAll";return Ht.argumentLengthCheck(arguments,1,r),e=Ht.converters.USVString(e,r,"name"),this[ds].filter(n=>n.name===e).map(n=>n.value)}has(e){Ht.brandCheck(this,t);let r="FormData.has";return Ht.argumentLengthCheck(arguments,1,r),e=Ht.converters.USVString(e,r,"name"),this[ds].findIndex(n=>n.name===e)!==-1}set(e,r,n=void 0){Ht.brandCheck(this,t);let s="FormData.set";if(Ht.argumentLengthCheck(arguments,2,s),arguments.length===3&&!K0(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Ht.converters.USVString(e,s,"name"),r=K0(r)?Ht.converters.Blob(r,s,"name",{strict:!1}):Ht.converters.USVString(r,s,"name"),n=arguments.length===3?Ht.converters.USVString(n,s,"name"):void 0;let o=uM(e,r,n),a=this[ds].findIndex(c=>c.name===e);a!==-1?this[ds]=[...this[ds].slice(0,a),o,...this[ds].slice(a+1).filter(c=>c.name!==e)]:this[ds].push(o)}[i7.inspect.custom](e,r){let n=this[ds].reduce((o,a)=>(o[a.name]?Array.isArray(o[a.name])?o[a.name].push(a.value):o[a.name]=[o[a.name],a.value]:o[a.name]=a.value,o),{__proto__:null});r.depth??=e,r.colors??=!0;let s=i7.formatWithOptions(r,n);return`FormData ${s.slice(s.indexOf("]")+2)}`}};d2e("FormData",nE,ds,"name","value");Object.defineProperties(nE.prototype,{append:AA,delete:AA,get:AA,getAll:AA,has:AA,set:AA,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function uM(t,e,r){if(typeof e!="string"){if(p2e(e)||(e=e instanceof Blob?new a7([e],"blob",{type:e.type}):new o7(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=e instanceof c7?new a7([e],r,n):new o7(e,r,n)}}return{name:t,value:e}}i(uM,"makeEntry");l7.exports={FormData:nE,makeEntry:uM}});var A7=b((l1t,f7)=>{"use strict";var{isUSVString:u7,bufferToLowerCasedHeaderName:m2e}=ut(),{utf8DecodeBytes:f2e}=go(),{HTTP_TOKEN_CODEPOINTS:A2e,isomorphicDecode:d7}=Os(),{isFileLike:h2e}=lM(),{makeEntry:g2e}=sE(),X0=require("node:assert"),{File:y2e}=require("node:buffer"),E2e=globalThis.File??y2e,C2e=Buffer.from('form-data; name="'),p7=Buffer.from("; filename"),I2e=Buffer.from("--"),x2e=Buffer.from(`--\r -`);function w2e(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}i(b2e,"validateBoundary");function S2e(t,e){X0(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"),s=[],o={position:0};for(;t[o.position]===13&&t[o.position+1]===10;)o.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(o.position,o.position+n.length).equals(n))o.position+=n.length;else return"failure";if(o.position===t.length-2&&Z0(t,I2e,o)||o.position===t.length-4&&Z0(t,x2e,o))return s;if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let c=B2e(t,o);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:p}=c;o.position+=2;let m;{let g=t.indexOf(n.subarray(2),o.position);if(g===-1)return"failure";m=t.subarray(o.position,g-4),o.position+=m.length,p==="base64"&&(m=Buffer.from(m.toString(),"base64"))}if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let f;u!==null?(d??="text/plain",w2e(d)||(d=""),f=new E2e([m],u,{type:d})):f=f2e(Buffer.from(m)),X0(u7(l)),X0(typeof f=="string"&&u7(f)||h2e(f)),s.push(g2e(l,f,u))}}i(S2e,"multipartFormDataParser");function B2e(t,e){let r=null,n=null,s=null,o=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:o};let a=hA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=dM(a,!0,!0,c=>c===9||c===32),!A2e.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,hA(c=>c===32||c===9,t,e),m2e(a)){case"content-disposition":{if(r=n=null,!Z0(t,C2e,e)||(e.position+=17,r=m7(t,e),r===null))return"failure";if(Z0(t,p7,e)){let c=e.position+p7.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=m7(t,e),n===null))return"failure"}break}case"content-type":{let c=hA(l=>l!==10&&l!==13,t,e);c=dM(c,!1,!0,l=>l===9||l===32),s=d7(c);break}case"content-transfer-encoding":{let c=hA(l=>l!==10&&l!==13,t,e);c=dM(c,!1,!0,l=>l===9||l===32),o=d7(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}}i(B2e,"parseMultipartFormDataHeaders");function m7(t,e){X0(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)}i(m7,"parseMultipartFormDataName");function hA(t,e,r){let n=r.position;for(;n0&&n(t[o]);)o--;return s===0&&o===t.length-1?t:t.subarray(s,o+1)}i(dM,"removeChars");function Z0(t,e,r){if(t.length{"use strict";var oE=ut(),{ReadableStreamFrom:R2e,isBlobLike:h7,isReadableStreamLike:N2e,readableStreamClose:T2e,createDeferredPromise:P2e,fullyReadBody:v2e,extractMimeType:_2e,utf8DecodeBytes:E7}=go(),{FormData:g7}=sE(),{kState:yA}=zu(),{webidl:Q2e}=Rn(),{Blob:D2e}=require("node:buffer"),pM=require("node:assert"),{isErrored:C7,isDisturbed:k2e}=require("node:stream"),{isArrayBuffer:L2e}=require("node:util/types"),{serializeAMimeType:O2e}=Os(),{multipartFormDataParser:M2e}=A7(),mM;try{let t=require("node:crypto");mM=i(e=>t.randomInt(0,e),"random")}catch{mM=i(t=>Math.floor(Math.random(t)),"random")}var eb=new TextEncoder;function F2e(){}i(F2e,"noop");var I7=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,x7;I7&&(x7=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!k2e(e)&&!C7(e)&&e.cancel("Response object has been garbage collected").catch(F2e)}));function w7(t,e=!1){let r=null;t instanceof ReadableStream?r=t:h7(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?eb.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>T2e(l))},start(){},type:"bytes"}),pM(N2e(r));let n=null,s=null,o=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(L2e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(oE.isFormDataLike(t)){let l=`----formdata-undici-0${`${mM(1e11)}`.padStart(11,"0")}`,u=`--${l}\r +var aFe=Object.create;var jy=Object.defineProperty;var cFe=Object.getOwnPropertyDescriptor;var lFe=Object.getOwnPropertyNames;var uFe=Object.getPrototypeOf,dFe=Object.prototype.hasOwnProperty;var i=(t,e)=>jy(t,"name",{value:e,configurable:!0});var I=(t,e)=>()=>(t&&(e=t(t=0)),e);var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),rn=(t,e)=>{for(var r in e)jy(t,r,{get:e[r],enumerable:!0})},aK=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of lFe(e))!dFe.call(t,s)&&s!==r&&jy(t,s,{get:()=>e[s],enumerable:!(n=cFe(e,s))||n.enumerable});return t};var D=(t,e,r)=>(r=t!=null?aFe(uFe(t)):{},aK(e||!t||!t.__esModule?jy(r,"default",{value:t,enumerable:!0}):r,t)),W=t=>aK(jy({},"__esModule",{value:!0}),t);var hK=b(aA=>{"use strict";var BFt=require("net"),AFe=require("tls"),dO=require("http"),mK=require("https"),hFe=require("events"),RFt=require("assert"),gFe=require("util");aA.httpOverHttp=yFe;aA.httpsOverHttp=EFe;aA.httpOverHttps=CFe;aA.httpsOverHttps=IFe;function yFe(t){var e=new Tl(t);return e.request=dO.request,e}i(yFe,"httpOverHttp");function EFe(t){var e=new Tl(t);return e.request=dO.request,e.createSocket=fK,e.defaultPort=443,e}i(EFe,"httpsOverHttp");function CFe(t){var e=new Tl(t);return e.request=mK.request,e}i(CFe,"httpOverHttps");function IFe(t){var e=new Tl(t);return e.request=mK.request,e.createSocket=fK,e.defaultPort=443,e}i(IFe,"httpsOverHttps");function Tl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||dO.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(var c=AK(s,o,a),l=0,u=e.requests.length;l=this.maxSockets){o.requests.push(a);return}o.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){o.emit("free",c,a)}i(l,"onFree");function u(d){o.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}i(u,"onCloseOrRemove")})},"addRequest");Tl.prototype.createSocket=i(function(e,r){var n=this,s={};n.sockets.push(s);var o=pO({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),zu("making CONNECT request");var a=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(p){p.upgrade=!0}i(c,"onResponse");function l(p,m,f){process.nextTick(function(){u(p,m,f)})}i(l,"onUpgrade");function u(p,m,f){if(a.removeAllListeners(),m.removeAllListeners(),p.statusCode!==200){zu("tunneling socket could not be established, statusCode=%d",p.statusCode),m.destroy();var g=new Error("tunneling socket could not be established, statusCode="+p.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(f.length>0){zu("got illegal response body from proxy"),m.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return zu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}i(u,"onConnect");function d(p){a.removeAllListeners(),zu(`tunneling socket could not be established, cause=%s +`,p.message,p.stack);var m=new Error("tunneling socket could not be established, cause="+p.message);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s)}i(d,"onError")},"createSocket");Tl.prototype.removeSocket=i(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(s){n.request.onSocket(s)})}},"removeSocket");function fK(t,e){var r=this;Tl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),o=pO({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=AFe.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(fK,"createSecureSocket");function AK(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(AK,"toOptions");function pO(t){for(var e=1,r=arguments.length;e{gK.exports=hK()});var er=b((vFt,yK)=>{yK.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=b((_Ft,GK)=>{"use strict";var EK=Symbol.for("undici.error.UND_ERR"),tr=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[EK]===!0}[EK]=!0},CK=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),mO=class extends tr{static{i(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[CK]===!0}[CK]=!0},IK=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),fO=class extends tr{static{i(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[IK]===!0}[IK]=!0},xK=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),AO=class extends tr{static{i(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},wK=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),hO=class extends tr{static{i(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[wK]===!0}[wK]=!0},bK=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),gO=class extends tr{static{i(this,"ResponseStatusCodeError")}constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.status=r,this.statusCode=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[bK]===!0}[bK]=!0},SK=Symbol.for("undici.error.UND_ERR_INVALID_ARG"),yO=class extends tr{static{i(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[SK]===!0}[SK]=!0},BK=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE"),EO=class extends tr{static{i(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[BK]===!0}[BK]=!0},RK=Symbol.for("undici.error.UND_ERR_ABORT"),D0=class extends tr{static{i(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[RK]===!0}[RK]=!0},NK=Symbol.for("undici.error.UND_ERR_ABORTED"),CO=class extends D0{static{i(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[NK]===!0}[NK]=!0},TK=Symbol.for("undici.error.UND_ERR_INFO"),IO=class extends tr{static{i(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[TK]===!0}[TK]=!0},PK=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"),xO=class extends tr{static{i(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[PK]===!0}[PK]=!0},vK=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH"),wO=class extends tr{static{i(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[vK]===!0}[vK]=!0},_K=Symbol.for("undici.error.UND_ERR_DESTROYED"),bO=class extends tr{static{i(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[_K]===!0}[_K]=!0},QK=Symbol.for("undici.error.UND_ERR_CLOSED"),SO=class extends tr{static{i(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[QK]===!0}[QK]=!0},DK=Symbol.for("undici.error.UND_ERR_SOCKET"),BO=class extends tr{static{i(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[DK]===!0}[DK]=!0},kK=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED"),RO=class extends tr{static{i(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[kK]===!0}[kK]=!0},LK=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM"),NO=class extends tr{static{i(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[LK]===!0}[LK]=!0},OK=Symbol.for("undici.error.UND_ERR_HTTP_PARSER"),TO=class extends Error{static{i(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[OK]===!0}[OK]=!0},MK=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE"),PO=class extends tr{static{i(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[MK]===!0}[MK]=!0},FK=Symbol.for("undici.error.UND_ERR_REQ_RETRY"),vO=class extends tr{static{i(this,"RequestRetryError")}constructor(e,r,{headers:n,data:s}){super(e),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=r,this.data=s,this.headers=n}static[Symbol.hasInstance](e){return e&&e[FK]===!0}[FK]=!0},UK=Symbol.for("undici.error.UND_ERR_RESPONSE"),_O=class extends tr{static{i(this,"ResponseError")}constructor(e,r,{headers:n,data:s}){super(e),this.name="ResponseError",this.message=e||"Response error",this.code="UND_ERR_RESPONSE",this.statusCode=r,this.data=s,this.headers=n}static[Symbol.hasInstance](e){return e&&e[UK]===!0}[UK]=!0},qK=Symbol.for("undici.error.UND_ERR_PRX_TLS"),QO=class extends tr{static{i(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[qK]===!0}[qK]=!0},$K=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"),DO=class extends tr{static{i(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[$K]===!0}get[$K](){return!0}};GK.exports={AbortError:D0,HTTPParserError:TO,UndiciError:tr,HeadersTimeoutError:fO,HeadersOverflowError:AO,BodyTimeoutError:hO,RequestContentLengthMismatchError:xO,ConnectTimeoutError:mO,ResponseStatusCodeError:gO,InvalidArgumentError:yO,InvalidReturnValueError:EO,RequestAbortedError:CO,ClientDestroyedError:bO,ClientClosedError:SO,InformationalError:IO,SocketError:BO,NotSupportedError:RO,ResponseContentLengthMismatchError:wO,BalancedPoolMissingUpstreamError:NO,ResponseExceededMaxSizeError:PO,RequestRetryError:vO,ResponseError:_O,SecureProxyConnectionError:QO,MessageSizeExceededError:DO}});var L0=b((DFt,HK)=>{"use strict";var k0={},kO=["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:zK,headerNameLowerCasedRecord:xFe}=L0(),LO=class t{static{i(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 s=0,o=this;for(;;){let a=e.charCodeAt(s);if(a>127)throw new TypeError("key must be ascii string");if(o.code===a)if(n===++s){o.value=r;break}else if(o.middle!==null)o=o.middle;else{o.middle=new t(e,r,s);break}else if(o.code=65&&(o|=32);s!==null;){if(o===s.code){if(r===++n)return s;s=s.middle;break}s=s.code{"use strict";var Ky=require("node:assert"),{kDestroyed:JK,kBodyUsed:cA,kListeners:OO,kBody:jK}=er(),{IncomingMessage:wFe}=require("node:http"),U0=require("node:stream"),bFe=require("node:net"),{Blob:SFe}=require("node:buffer"),BFe=require("node:util"),{stringify:RFe}=require("node:querystring"),{EventEmitter:NFe}=require("node:events"),{InvalidArgumentError:An}=xt(),{headerNameLowerCasedRecord:TFe}=L0(),{tree:KK}=WK(),[PFe,vFe]=process.versions.node.split(".").map(t=>Number(t)),F0=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[jK]=e,this[cA]=!1}async*[Symbol.asyncIterator](){Ky(!this[cA],"disturbed"),this[cA]=!0,yield*this[jK]}};function _Fe(t){return q0(t)?(rX(t)===0&&t.on("data",function(){Ky(!1)}),typeof t.readableDidRead!="boolean"&&(t[cA]=!1,NFe.prototype.on.call(t,"data",function(){this[cA]=!0})),t):t&&typeof t.pipeTo=="function"?new F0(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&tX(t)?new F0(t):t}i(_Fe,"wrapRequestBody");function QFe(){}i(QFe,"nop");function q0(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}i(q0,"isStream");function XK(t){if(t===null)return!1;if(t instanceof SFe)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")}}i(XK,"isBlobLike");function DFe(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=RFe(e);return r&&(t+="?"+r),t}i(DFe,"buildURL");function ZK(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}i(ZK,"isValidPort");function M0(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}i(M0,"isHttpOrHttpsPrefixed");function eX(t){if(typeof t=="string"){if(t=new URL(t),!M0(t.origin||t.protocol))throw new An("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new An("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&ZK(t.port)===!1)throw new An("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 An("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new An("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new An("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new An("Invalid URL origin: the origin must be a string or null/undefined.");if(!M0(t.origin||t.protocol))throw new An("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(!M0(t.origin||t.protocol))throw new An("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}i(eX,"parseURL");function kFe(t){if(t=eX(t),t.pathname!=="/"||t.search||t.hash)throw new An("invalid url");return t}i(kFe,"parseOrigin");function LFe(t){if(t[0]==="["){let r=t.indexOf("]");return Ky(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}i(LFe,"getHostname");function OFe(t){if(!t)return null;Ky(typeof t=="string");let e=LFe(t);return bFe.isIP(e)?"":e}i(OFe,"getServerName");function MFe(t){return JSON.parse(JSON.stringify(t))}i(MFe,"deepClone");function FFe(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}i(FFe,"isAsyncIterable");function tX(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}i(tX,"isIterable");function rX(t){if(t==null)return 0;if(q0(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(XK(t))return t.size!=null?t.size:null;if(oX(t))return t.byteLength}return null}i(rX,"bodyLength");function nX(t){return t&&!!(t.destroyed||t[JK]||U0.isDestroyed?.(t))}i(nX,"isDestroyed");function UFe(t,e){t==null||!q0(t)||nX(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===wFe&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[JK]=!0))}i(UFe,"destroy");var qFe=/timeout=(\d+)/;function $Fe(t){let e=t.toString().match(qFe);return e?parseInt(e[1],10)*1e3:null}i($Fe,"parseKeepAliveTimeout");function sX(t){return typeof t=="string"?TFe[t]??t.toLowerCase():KK.lookup(t)??t.toString("latin1").toLowerCase()}i(sX,"headerNameToString");function GFe(t){return KK.lookup(t)??t.toString("latin1").toLowerCase()}i(GFe,"bufferToLowerCasedHeaderName");function HFe(t,e){e===void 0&&(e={});for(let r=0;ra.toString("utf8")):o.toString("utf8")}}return"content-length"in e&&"content-disposition"in e&&(e["content-disposition"]=Buffer.from(e["content-disposition"]).toString("latin1")),e}i(HFe,"parseHeaders");function zFe(t){let e=t.length,r=new Array(e),n=!1,s=-1,o,a,c=0;for(let l=0;l{r.close(),r.byobRequest?.respond(0)});else{let o=Buffer.isBuffer(s)?s:Buffer.from(s);o.byteLength&&r.enqueue(new Uint8Array(o))}return r.desiredSize>0},async cancel(r){await e.return()},type:"bytes"})}i(KFe,"ReadableStreamFrom");function XFe(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"}i(XFe,"isFormDataLike");function ZFe(t,e){return"addEventListener"in t?(t.addEventListener("abort",e,{once:!0}),()=>t.removeEventListener("abort",e)):(t.addListener("abort",e),()=>t.removeListener("abort",e))}i(ZFe,"addAbortListener");var e1e=typeof String.prototype.toWellFormed=="function",t1e=typeof String.prototype.isWellFormed=="function";function iX(t){return e1e?`${t}`.toWellFormed():BFe.toUSVString(t)}i(iX,"toUSVString");function r1e(t){return t1e?`${t}`.isWellFormed():iX(t)===`${t}`}i(r1e,"isUSVString");function aX(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}}i(aX,"isTokenCharCode");function n1e(t){if(t.length===0)return!1;for(let e=0;e{"use strict";var vt=require("node:diagnostics_channel"),UO=require("node:util"),$0=UO.debuglog("undici"),FO=UO.debuglog("fetch"),Lp=UO.debuglog("websocket"),dX=!1,u1e={beforeConnect:vt.channel("undici:client:beforeConnect"),connected:vt.channel("undici:client:connected"),connectError:vt.channel("undici:client:connectError"),sendHeaders:vt.channel("undici:client:sendHeaders"),create:vt.channel("undici:request:create"),bodySent:vt.channel("undici:request:bodySent"),headers:vt.channel("undici:request:headers"),trailers:vt.channel("undici:request:trailers"),error:vt.channel("undici:request:error"),open:vt.channel("undici:websocket:open"),close:vt.channel("undici:websocket:close"),socketError:vt.channel("undici:websocket:socket_error"),ping:vt.channel("undici:websocket:ping"),pong:vt.channel("undici:websocket:pong")};if($0.enabled||FO.enabled){let t=FO.enabled?FO:$0;vt.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connecting to %s using %s%s",`${o}${s?`:${s}`:""}`,n,r)}),vt.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connected to %s using %s%s",`${o}${s?`:${s}`:""}`,n,r)}),vt.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o},error:a}=e;t("connection to %s using %s%s errored - %s",`${o}${s?`:${s}`:""}`,n,r,a.message)}),vt.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("sending request to %s %s/%s",r,s,n)}),vt.channel("undici:request:headers").subscribe(e=>{let{request:{method:r,path:n,origin:s},response:{statusCode:o}}=e;t("received response to %s %s/%s - HTTP %d",r,s,n,o)}),vt.channel("undici:request:trailers").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("trailers received from %s %s/%s",r,s,n)}),vt.channel("undici:request:error").subscribe(e=>{let{request:{method:r,path:n,origin:s},error:o}=e;t("request to %s %s/%s errored - %s",r,s,n,o.message)}),dX=!0}if(Lp.enabled){if(!dX){let t=$0.enabled?$0:Lp;vt.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connecting to %s%s using %s%s",o,s?`:${s}`:"",n,r)}),vt.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connected to %s%s using %s%s",o,s?`:${s}`:"",n,r)}),vt.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o},error:a}=e;t("connection to %s%s using %s%s errored - %s",o,s?`:${s}`:"",n,r,a.message)}),vt.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("sending request to %s %s/%s",r,s,n)})}vt.channel("undici:websocket:open").subscribe(t=>{let{address:{address:e,port:r}}=t;Lp("connection opened %s%s",e,r?`:${r}`:"")}),vt.channel("undici:websocket:close").subscribe(t=>{let{websocket:e,code:r,reason:n}=t;Lp("closed connection to %s - %s %s",e.url,r,n)}),vt.channel("undici:websocket:socket_error").subscribe(t=>{Lp("connection errored - %s",t.message)}),vt.channel("undici:websocket:ping").subscribe(t=>{Lp("ping received")}),vt.channel("undici:websocket:pong").subscribe(t=>{Lp("pong received")})}pX.exports={channels:u1e}});var hX=b((UFt,AX)=>{"use strict";var{InvalidArgumentError:Gt,NotSupportedError:d1e}=xt(),Pl=require("node:assert"),{isValidHTTPToken:fX,isValidHeaderValue:qO,isStream:p1e,destroy:m1e,isBuffer:f1e,isFormDataLike:A1e,isIterable:h1e,isBlobLike:g1e,buildURL:y1e,validateHandler:E1e,getServerName:C1e,normalizedMethodRecords:I1e}=ut(),{channels:qa}=lA(),{headerNameLowerCasedRecord:mX}=L0(),x1e=/[^\u0021-\u00ff]/,ni=Symbol("handler"),$O=class{static{i(this,"Request")}constructor(e,{path:r,method:n,body:s,headers:o,query:a,idempotent:c,blocking:l,upgrade:u,headersTimeout:d,bodyTimeout:p,reset:m,throwOnError:f,expectContinue:g,servername:E},x){if(typeof r!="string")throw new Gt("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("https://"))&&n!=="CONNECT")throw new Gt("path must be an absolute URL or start with a slash");if(x1e.test(r))throw new Gt("invalid request path");if(typeof n!="string")throw new Gt("method must be a string");if(I1e[n]===void 0&&!fX(n))throw new Gt("invalid request method");if(u&&typeof u!="string")throw new Gt("upgrade must be a string");if(u&&!qO(u))throw new Gt("invalid upgrade header");if(d!=null&&(!Number.isFinite(d)||d<0))throw new Gt("invalid headersTimeout");if(p!=null&&(!Number.isFinite(p)||p<0))throw new Gt("invalid bodyTimeout");if(m!=null&&typeof m!="boolean")throw new Gt("invalid reset");if(g!=null&&typeof g!="boolean")throw new Gt("invalid expectContinue");if(this.headersTimeout=d,this.bodyTimeout=p,this.throwOnError=f===!0,this.method=n,this.abort=null,s==null)this.body=null;else if(p1e(s)){this.body=s;let w=this.body._readableState;(!w||!w.autoDestroy)&&(this.endHandler=i(function(){m1e(this)},"autoDestroy"),this.body.on("end",this.endHandler)),this.errorHandler=S=>{this.abort?this.abort(S):this.error=S},this.body.on("error",this.errorHandler)}else if(f1e(s))this.body=s.byteLength?s:null;else if(ArrayBuffer.isView(s))this.body=s.buffer.byteLength?Buffer.from(s.buffer,s.byteOffset,s.byteLength):null;else if(s instanceof ArrayBuffer)this.body=s.byteLength?Buffer.from(s):null;else if(typeof s=="string")this.body=s.length?Buffer.from(s):null;else if(A1e(s)||h1e(s)||g1e(s))this.body=s;else throw new Gt("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?y1e(r,a):r,this.origin=e,this.idempotent=c??(n==="HEAD"||n==="GET"),this.blocking=l??!1,this.reset=m??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=g??!1,Array.isArray(o)){if(o.length%2!==0)throw new Gt("headers array must be even");for(let w=0;w{"use strict";var w1e=require("node:events"),H0=class extends w1e{static{i(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 s of r)if(s!=null){if(typeof s!="function")throw new TypeError(`invalid interceptor, expected function received ${typeof s}`);if(n=s(n),n==null||typeof n!="function"||n.length!==2)throw new TypeError("invalid interceptor")}return new GO(this,n)}},GO=class extends H0{static{i(this,"ComposedDispatcher")}#e=null;#t=null;constructor(e,r){super(),this.#e=e,this.#t=r}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};gX.exports=H0});var mA=b((HFt,yX)=>{"use strict";var b1e=Xy(),{ClientDestroyedError:HO,ClientClosedError:S1e,InvalidArgumentError:uA}=xt(),{kDestroy:B1e,kClose:R1e,kClosed:Zy,kDestroyed:dA,kDispatch:zO,kInterceptors:Op}=er(),vl=Symbol("onDestroyed"),pA=Symbol("onClosed"),z0=Symbol("Intercepted Dispatch"),VO=Symbol("webSocketOptions"),YO=class extends b1e{static{i(this,"DispatcherBase")}constructor(e){super(),this[dA]=!1,this[vl]=null,this[Zy]=!1,this[pA]=[],this[VO]=e?.webSocket??{}}get webSocketOptions(){return{maxFragments:this[VO].maxFragments??131072,maxPayloadSize:this[VO].maxPayloadSize??128*1024*1024}}get destroyed(){return this[dA]}get closed(){return this[Zy]}get interceptors(){return this[Op]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[Op][r]!="function")throw new uA("interceptor must be an function")}this[Op]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((o,a)=>o?s(o):n(a))});if(typeof e!="function")throw new uA("invalid callback");if(this[dA]){queueMicrotask(()=>e(new HO,null));return}if(this[Zy]){this[pA]?this[pA].push(e):queueMicrotask(()=>e(null,null));return}this[Zy]=!0,this[pA].push(e);let r=i(()=>{let n=this[pA];this[pA]=null;for(let s=0;sthis.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,o)=>{this.destroy(e,(a,c)=>a?o(a):s(c))});if(typeof r!="function")throw new uA("invalid callback");if(this[dA]){this[vl]?this[vl].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new HO),this[dA]=!0,this[vl]=this[vl]||[],this[vl].push(r);let n=i(()=>{let s=this[vl];this[vl]=null;for(let o=0;o{queueMicrotask(n)})}[z0](e,r){if(!this[Op]||this[Op].length===0)return this[z0]=this[zO],this[zO](e,r);let n=this[zO].bind(this);for(let s=this[Op].length-1;s>=0;s--)n=this[Op][s](n);return this[z0]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new uA("handler must be an object");try{if(!e||typeof e!="object")throw new uA("opts must be an object.");if(this[dA]||this[vl])throw new HO;if(this[Zy])throw new S1e;return this[z0](e,r)}catch(n){if(typeof r.onError!="function")throw new uA("invalid onError method");return r.onError(n),!1}}};yX.exports=YO});var eM=b((VFt,xX)=>{"use strict";var fA=0,WO=1e3,jO=(WO>>1)-1,_l,JO=Symbol("kFastTimer"),Ql=[],KO=-2,XO=-1,CX=0,EX=1;function ZO(){fA+=jO;let t=0,e=Ql.length;for(;t=r._idleStart+r._idleTimeout&&(r._state=XO,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===XO?(r._state=KO,--e!==0&&(Ql[t]=Ql[e])):++t}Ql.length=e,Ql.length!==0&&IX()}i(ZO,"onTick");function IX(){_l?_l.refresh():(clearTimeout(_l),_l=setTimeout(ZO,jO),_l.unref&&_l.unref())}i(IX,"refreshTimeout");var V0=class{static{i(this,"FastTimer")}[JO]=!0;_state=KO;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,r,n){this._onTimeout=e,this._idleTimeout=r,this._timerArg=n,this.refresh()}refresh(){this._state===KO&&Ql.push(this),(!_l||Ql.length===1)&&IX(),this._state=CX}clear(){this._state=XO,this._idleStart=-1}};xX.exports={setTimeout(t,e,r){return e<=WO?setTimeout(t,e,r):new V0(t,e,r)},clearTimeout(t){t[JO]?t.clear():clearTimeout(t)},setFastTimeout(t,e,r){return new V0(t,e,r)},clearFastTimeout(t){t.clear()},now(){return fA},tick(t=0){fA+=t-WO+1,ZO(),ZO()},reset(){fA=0,Ql.length=0,clearTimeout(_l),_l=null},kFastTimer:JO}});var eE=b((JFt,RX)=>{"use strict";var N1e=require("node:net"),wX=require("node:assert"),BX=ut(),{InvalidArgumentError:T1e,ConnectTimeoutError:P1e}=xt(),Y0=eM();function bX(){}i(bX,"noop");var tM,rM;global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?rM=class{static{i(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 v1e({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,session:s,...o}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new T1e("maxCachedSessions must be a positive integer or zero");let a={path:r,...o},c=new rM(e??100);return n=n??1e4,t=t??!1,i(function({hostname:u,host:d,protocol:p,port:m,servername:f,localAddress:g,httpSocket:E},x){let w;if(p==="https:"){tM||(tM=require("node:tls")),f=f||a.servername||BX.getServerName(d)||null;let P=f||u;wX(P);let Q=s||c.get(P)||null;m=m||443,w=tM.connect({highWaterMark:16384,...a,servername:f,session:Q,localAddress:g,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:E,port:m,host:u}),w.on("session",function(q){c.set(P,q)})}else wX(!E,"httpSocket can only be sent on TLS update"),m=m||80,w=N1e.connect({highWaterMark:64*1024,...a,localAddress:g,port:m,host:u});if(a.keepAlive==null||a.keepAlive){let P=a.keepAliveInitialDelay===void 0?6e4:a.keepAliveInitialDelay;w.setKeepAlive(!0,P)}let S=_1e(new WeakRef(w),{timeout:n,hostname:u,port:m});return w.setNoDelay(!0).once(p==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(S),x){let P=x;x=null,P(null,this)}}).on("error",function(P){if(queueMicrotask(S),x){let Q=x;x=null,Q(P)}}),w},"connect")}i(v1e,"buildConnector");var _1e=process.platform==="win32"?(t,e)=>{if(!e.timeout)return bX;let r=null,n=null,s=Y0.setFastTimeout(()=>{r=setImmediate(()=>{n=setImmediate(()=>SX(t.deref(),e))})},e.timeout);return()=>{Y0.clearFastTimeout(s),clearImmediate(r),clearImmediate(n)}}:(t,e)=>{if(!e.timeout)return bX;let r=null,n=Y0.setFastTimeout(()=>{r=setImmediate(()=>{SX(t.deref(),e)})},e.timeout);return()=>{Y0.clearFastTimeout(n),clearImmediate(r)}};function SX(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)`,BX.destroy(t,new P1e(r))}i(SX,"onConnectTimeout");RX.exports=v1e});var NX=b(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});W0.enumToMap=void 0;function Q1e(t){let e={};return Object.keys(t).forEach(r=>{let n=t[r];typeof n=="number"&&(e[r]=n)}),e}i(Q1e,"enumToMap");W0.enumToMap=Q1e});var TX=b(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.SPECIAL_HEADERS=j.HEADER_STATE=j.MINOR=j.MAJOR=j.CONNECTION_TOKEN_CHARS=j.HEADER_CHARS=j.TOKEN=j.STRICT_TOKEN=j.HEX=j.URL_CHAR=j.STRICT_URL_CHAR=j.USERINFO_CHARS=j.MARK=j.ALPHANUM=j.NUM=j.HEX_MAP=j.NUM_MAP=j.ALPHA=j.FINISH=j.H_METHOD_MAP=j.METHOD_MAP=j.METHODS_RTSP=j.METHODS_ICE=j.METHODS_HTTP=j.METHODS=j.LENIENT_FLAGS=j.FLAGS=j.TYPE=j.ERROR=void 0;var D1e=NX(),k1e;(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"})(k1e=j.ERROR||(j.ERROR={}));var L1e;(function(t){t[t.BOTH=0]="BOTH",t[t.REQUEST=1]="REQUEST",t[t.RESPONSE=2]="RESPONSE"})(L1e=j.TYPE||(j.TYPE={}));var O1e;(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"})(O1e=j.FLAGS||(j.FLAGS={}));var M1e;(function(t){t[t.HEADERS=1]="HEADERS",t[t.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",t[t.KEEP_ALIVE=4]="KEEP_ALIVE"})(M1e=j.LENIENT_FLAGS||(j.LENIENT_FLAGS={}));var Qe;(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"})(Qe=j.METHODS||(j.METHODS={}));j.METHODS_HTTP=[Qe.DELETE,Qe.GET,Qe.HEAD,Qe.POST,Qe.PUT,Qe.CONNECT,Qe.OPTIONS,Qe.TRACE,Qe.COPY,Qe.LOCK,Qe.MKCOL,Qe.MOVE,Qe.PROPFIND,Qe.PROPPATCH,Qe.SEARCH,Qe.UNLOCK,Qe.BIND,Qe.REBIND,Qe.UNBIND,Qe.ACL,Qe.REPORT,Qe.MKACTIVITY,Qe.CHECKOUT,Qe.MERGE,Qe["M-SEARCH"],Qe.NOTIFY,Qe.SUBSCRIBE,Qe.UNSUBSCRIBE,Qe.PATCH,Qe.PURGE,Qe.MKCALENDAR,Qe.LINK,Qe.UNLINK,Qe.PRI,Qe.SOURCE];j.METHODS_ICE=[Qe.SOURCE];j.METHODS_RTSP=[Qe.OPTIONS,Qe.DESCRIBE,Qe.ANNOUNCE,Qe.SETUP,Qe.PLAY,Qe.PAUSE,Qe.TEARDOWN,Qe.GET_PARAMETER,Qe.SET_PARAMETER,Qe.REDIRECT,Qe.RECORD,Qe.FLUSH,Qe.GET,Qe.POST];j.METHOD_MAP=D1e.enumToMap(Qe);j.H_METHOD_MAP={};Object.keys(j.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(j.H_METHOD_MAP[t]=j.METHOD_MAP[t])});var F1e;(function(t){t[t.SAFE=0]="SAFE",t[t.SAFE_WITH_CB=1]="SAFE_WITH_CB",t[t.UNSAFE=2]="UNSAFE"})(F1e=j.FINISH||(j.FINISH={}));j.ALPHA=[];for(let t=65;t<=90;t++)j.ALPHA.push(String.fromCharCode(t)),j.ALPHA.push(String.fromCharCode(t+32));j.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};j.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};j.NUM=["0","1","2","3","4","5","6","7","8","9"];j.ALPHANUM=j.ALPHA.concat(j.NUM);j.MARK=["-","_",".","!","~","*","'","(",")"];j.USERINFO_CHARS=j.ALPHANUM.concat(j.MARK).concat(["%",";",":","&","=","+","$",","]);j.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(j.ALPHANUM);j.URL_CHAR=j.STRICT_URL_CHAR.concat([" ","\f"]);for(let t=128;t<=255;t++)j.URL_CHAR.push(t);j.HEX=j.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);j.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(j.ALPHANUM);j.TOKEN=j.STRICT_TOKEN.concat([" "]);j.HEADER_CHARS=[" "];for(let t=32;t<=255;t++)t!==127&&j.HEADER_CHARS.push(t);j.CONNECTION_TOKEN_CHARS=j.HEADER_CHARS.filter(t=>t!==44);j.MAJOR=j.NUM_MAP;j.MINOR=j.MAJOR;var AA;(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"})(AA=j.HEADER_STATE||(j.HEADER_STATE={}));j.SPECIAL_HEADERS={connection:AA.CONNECTION,"content-length":AA.CONTENT_LENGTH,"proxy-connection":AA.CONNECTION,"transfer-encoding":AA.TRANSFER_ENCODING,upgrade:AA.UPGRADE}});var nM=b((t1t,PX)=>{"use strict";var{Buffer:U1e}=require("node:buffer");PX.exports=U1e.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR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RqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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EMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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AABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAU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BIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAg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kEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoI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BAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")});var tE=b((n1t,UX)=>{"use strict";var QX=["GET","HEAD","POST"],$1e=new Set(QX),G1e=[101,204,205,304],DX=[301,302,303,307,308],H1e=new Set(DX),kX=["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"],z1e=new Set(kX),LX=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],V1e=new Set(LX),Y1e=["follow","manual","error"],OX=["GET","HEAD","OPTIONS","TRACE"],W1e=new Set(OX),j1e=["navigate","same-origin","no-cors","cors"],J1e=["omit","same-origin","include"],K1e=["default","no-store","reload","no-cache","force-cache","only-if-cached"],X1e=["content-encoding","content-language","content-location","content-type","content-length"],Z1e=["half"],MX=["CONNECT","TRACE","TRACK"],eUe=new Set(MX),FX=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],tUe=new Set(FX);UX.exports={subresource:FX,forbiddenMethods:MX,requestBodyHeader:X1e,referrerPolicy:LX,requestRedirect:Y1e,requestMode:j1e,requestCredentials:J1e,requestCache:K1e,redirectStatus:DX,corsSafeListedMethods:QX,nullBodyStatus:G1e,safeMethods:OX,badPorts:kX,requestDuplex:Z1e,subresourceSet:tUe,badPortsSet:z1e,redirectStatusSet:H1e,corsSafeListedMethodsSet:$1e,safeMethodsSet:W1e,forbiddenMethodsSet:eUe,referrerPolicySet:V1e}});var oM=b((s1t,qX)=>{"use strict";var sM=Symbol.for("undici.globalOrigin.1");function rUe(){return globalThis[sM]}i(rUe,"getGlobalOrigin");function nUe(t){if(t===void 0){Object.defineProperty(globalThis,sM,{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,sM,{value:e,writable:!0,enumerable:!1,configurable:!1})}i(nUe,"setGlobalOrigin");qX.exports={getGlobalOrigin:rUe,setGlobalOrigin:nUe}});var Ms=b((i1t,WX)=>{"use strict";var J0=require("node:assert"),sUe=new TextEncoder,rE=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,oUe=/[\u000A\u000D\u0009\u0020]/,iUe=/[\u0009\u000A\u000C\u000D\u0020]/g,aUe=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function cUe(t){J0(t.protocol==="data:");let e=HX(t,!0);e=e.slice(5);let r={position:0},n=hA(",",e,r),s=n.length;if(n=fUe(n,!0,!0),r.position>=e.length)return"failure";r.position++;let o=e.slice(s+1),a=zX(o);if(/;(\u0020){0,}base64$/i.test(n)){let l=YX(a);if(a=uUe(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=iM(n);return c==="failure"&&(c=iM("text/plain;charset=US-ASCII")),{mimeType:c,body:a}}i(cUe,"dataURLProcessor");function HX(t,e=!1){if(!e)return t.href;let r=t.href,n=t.hash.length,s=n===0?r:r.substring(0,r.length-n);return!n&&r.endsWith("#")?s.slice(0,-1):s}i(HX,"URLSerializer");function K0(t,e,r){let n="";for(;r.position=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}i($X,"isHexCharByte");function GX(t){return t>=48&&t<=57?t-48:(t&223)-55}i(GX,"hexByteToNumber");function lUe(t){let e=t.length,r=new Uint8Array(e),n=0;for(let s=0;st.length)return"failure";e.position++;let n=hA(";",t,e);if(n=j0(n,!1,!0),n.length===0||!rE.test(n))return"failure";let s=r.toLowerCase(),o=n.toLowerCase(),a={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};for(;e.positionoUe.test(u),t,e);let c=K0(u=>u!==";"&&u!=="=",t,e);if(c=c.toLowerCase(),e.positiont.length)break;let l=null;if(t[e.position]==='"')l=VX(t,e,!0),hA(";",t,e);else if(l=hA(";",t,e),l=j0(l,!1,!0),l.length===0)continue;c.length!==0&&rE.test(c)&&(l.length===0||aUe.test(l))&&!a.parameters.has(c)&&a.parameters.set(c,l)}return a}i(iM,"parseMIMEType");function uUe(t){t=t.replace(iUe,"");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)}i(uUe,"forgivingBase64");function VX(t,e,r){let n=e.position,s="";for(J0(t[e.position]==='"'),e.position++;s+=K0(a=>a!=='"'&&a!=="\\",t,e),!(e.position>=t.length);){let o=t[e.position];if(e.position++,o==="\\"){if(e.position>=t.length){s+="\\";break}s+=t[e.position],e.position++}else{J0(o==='"');break}}return r?s:t.slice(n,e.position)}i(VX,"collectAnHTTPQuotedString");function dUe(t){J0(t!=="failure");let{parameters:e,essence:r}=t,n=r;for(let[s,o]of e.entries())n+=";",n+=s,n+="=",rE.test(o)||(o=o.replace(/(\\|")/g,"\\$1"),o='"'+o,o+='"'),n+=o;return n}i(dUe,"serializeAMimeType");function pUe(t){return t===13||t===10||t===9||t===32}i(pUe,"isHTTPWhiteSpace");function j0(t,e=!0,r=!0){return aM(t,e,r,pUe)}i(j0,"removeHTTPWhitespace");function mUe(t){return t===13||t===10||t===9||t===12||t===32}i(mUe,"isASCIIWhitespace");function fUe(t,e=!0,r=!0){return aM(t,e,r,mUe)}i(fUe,"removeASCIIWhitespace");function aM(t,e,r,n){let s=0,o=t.length-1;if(e)for(;s0&&n(t.charCodeAt(o));)o--;return s===0&&o===t.length-1?t:t.slice(s,o+1)}i(aM,"removeChars");function YX(t){let e=t.length;if(65535>e)return String.fromCharCode.apply(null,t);let r="",n=0,s=65535;for(;ne&&(s=e-n),r+=String.fromCharCode.apply(null,t.subarray(n,n+=s));return r}i(YX,"isomorphicDecode");function AUe(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":""}i(AUe,"minimizeSupportedMimeType");WX.exports={dataURLProcessor:cUe,URLSerializer:HX,collectASequenceOfCodePoints:K0,collectASequenceOfCodePointsFast:hA,stringPercentDecode:zX,parseMIMEType:iM,collectAnHTTPQuotedString:VX,serializeAMimeType:dUe,removeChars:aM,removeHTTPWhitespace:j0,minimizeSupportedMimeType:AUe,HTTP_TOKEN_CODEPOINTS:rE,isomorphicDecode:YX}});var Nn=b((c1t,jX)=>{"use strict";var{types:$a,inspect:hUe}=require("node:util"),{markAsUncloneable:gUe}=require("node:worker_threads"),{toUSVString:yUe}=ut(),Y={};Y.converters={};Y.util={};Y.errors={};Y.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};Y.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 Y.errors.exception({header:t.prefix,message:r})};Y.errors.invalidArgument=function(t){return Y.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};Y.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}};Y.argumentLengthCheck=function({length:t},e,r){if(t{});Y.util.ConvertToInt=function(t,e,r,n){let s,o;e===64?(s=Math.pow(2,53)-1,r==="unsigned"?o=0:o=Math.pow(-2,53)+1):r==="unsigned"?(o=0,s=Math.pow(2,e)-1):(o=Math.pow(-2,e)-1,s=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 Y.errors.exception({header:"Integer conversion",message:`Could not convert ${Y.util.Stringify(t)} to an integer.`});if(a=Y.util.IntegerPart(a),as)throw Y.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`});return a}return!Number.isNaN(a)&&n?.clamp===!0?(a=Math.min(Math.max(a,o),s),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=Y.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};Y.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};Y.util.Stringify=function(t){switch(Y.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return hUe(t);case"String":return`"${t}"`;default:return`${t}`}};Y.sequenceConverter=function(t){return(e,r,n,s)=>{if(Y.util.Type(e)!=="Object")throw Y.errors.exception({header:r,message:`${n} (${Y.util.Stringify(e)}) is not iterable.`});let o=typeof s=="function"?s():e?.[Symbol.iterator]?.(),a=[],c=0;if(o===void 0||typeof o.next!="function")throw Y.errors.exception({header:r,message:`${n} is not iterable.`});for(;;){let{done:l,value:u}=o.next();if(l)break;a.push(t(u,r,`${n}[${c++}]`))}return a}};Y.recordConverter=function(t,e){return(r,n,s)=>{if(Y.util.Type(r)!=="Object")throw Y.errors.exception({header:n,message:`${s} ("${Y.util.Type(r)}") is not an Object.`});let o={};if(!$a.isProxy(r)){let c=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let l of c){let u=t(l,n,s),d=e(r[l],n,s);o[u]=d}return o}let a=Reflect.ownKeys(r);for(let c of a)if(Reflect.getOwnPropertyDescriptor(r,c)?.enumerable){let u=t(c,n,s),d=e(r[c],n,s);o[u]=d}return o}};Y.interfaceConverter=function(t){return(e,r,n,s)=>{if(s?.strict!==!1&&!(e instanceof t))throw Y.errors.exception({header:r,message:`Expected ${n} ("${Y.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};Y.dictionaryConverter=function(t){return(e,r,n)=>{let s=Y.util.Type(e),o={};if(s==="Null"||s==="Undefined")return o;if(s!=="Object")throw Y.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 Y.errors.exception({header:r,message:`Missing required key "${c}".`});let p=e[c],m=Object.hasOwn(a,"defaultValue");if(m&&p!==null&&(p??=l()),u||m||p!==void 0){if(p=d(p,r,`${n}.${c}`),a.allowedValues&&!a.allowedValues.includes(p))throw Y.errors.exception({header:r,message:`${p} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});o[c]=p}}return o}};Y.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};Y.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw Y.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};Y.converters.ByteString=function(t,e,r){let n=Y.converters.DOMString(t,e,r);for(let s=0;s255)throw new TypeError(`Cannot convert argument to a ByteString because the character at index ${s} has a value of ${n.charCodeAt(s)} which is greater than 255.`);return n};Y.converters.USVString=yUe;Y.converters.boolean=function(t){return!!t};Y.converters.any=function(t){return t};Y.converters["long long"]=function(t,e,r){return Y.util.ConvertToInt(t,64,"signed",void 0,e,r)};Y.converters["unsigned long long"]=function(t,e,r){return Y.util.ConvertToInt(t,64,"unsigned",void 0,e,r)};Y.converters["unsigned long"]=function(t,e,r){return Y.util.ConvertToInt(t,32,"unsigned",void 0,e,r)};Y.converters["unsigned short"]=function(t,e,r,n){return Y.util.ConvertToInt(t,16,"unsigned",n,e,r)};Y.converters.ArrayBuffer=function(t,e,r,n){if(Y.util.Type(t)!=="Object"||!$a.isAnyArrayBuffer(t))throw Y.errors.conversionFailed({prefix:e,argument:`${r} ("${Y.util.Stringify(t)}")`,types:["ArrayBuffer"]});if(n?.allowShared===!1&&$a.isSharedArrayBuffer(t))throw Y.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.resizable||t.growable)throw Y.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Y.converters.TypedArray=function(t,e,r,n,s){if(Y.util.Type(t)!=="Object"||!$a.isTypedArray(t)||t.constructor.name!==e.name)throw Y.errors.conversionFailed({prefix:r,argument:`${n} ("${Y.util.Stringify(t)}")`,types:[e.name]});if(s?.allowShared===!1&&$a.isSharedArrayBuffer(t.buffer))throw Y.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw Y.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Y.converters.DataView=function(t,e,r,n){if(Y.util.Type(t)!=="Object"||!$a.isDataView(t))throw Y.errors.exception({header:e,message:`${r} is not a DataView.`});if(n?.allowShared===!1&&$a.isSharedArrayBuffer(t.buffer))throw Y.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw Y.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Y.converters.BufferSource=function(t,e,r,n){if($a.isAnyArrayBuffer(t))return Y.converters.ArrayBuffer(t,e,r,{...n,allowShared:!1});if($a.isTypedArray(t))return Y.converters.TypedArray(t,t.constructor,e,r,{...n,allowShared:!1});if($a.isDataView(t))return Y.converters.DataView(t,e,r,{...n,allowShared:!1});throw Y.errors.conversionFailed({prefix:e,argument:`${r} ("${Y.util.Stringify(t)}")`,types:["BufferSource"]})};Y.converters["sequence"]=Y.sequenceConverter(Y.converters.ByteString);Y.converters["sequence>"]=Y.sequenceConverter(Y.converters["sequence"]);Y.converters["record"]=Y.recordConverter(Y.converters.ByteString,Y.converters.ByteString);jX.exports={webidl:Y}});var yo=b((l1t,l7)=>{"use strict";var{Transform:EUe}=require("node:stream"),JX=require("node:zlib"),{redirectStatusSet:CUe,referrerPolicySet:IUe,badPortsSet:xUe}=tE(),{getGlobalOrigin:KX}=oM(),{collectASequenceOfCodePoints:Mp,collectAnHTTPQuotedString:wUe,removeChars:bUe,parseMIMEType:SUe}=Ms(),{performance:BUe}=require("node:perf_hooks"),{isBlobLike:RUe,ReadableStreamFrom:NUe,isValidHTTPToken:XX,normalizedMethodRecordsBase:TUe}=ut(),Fp=require("node:assert"),{isUint8Array:PUe}=require("node:util/types"),{webidl:nE}=Nn(),ZX=[],Z0;try{Z0=require("node:crypto");let t=["sha256","sha384","sha512"];ZX=Z0.getHashes().filter(e=>t.includes(e))}catch{}function e7(t){let e=t.urlList,r=e.length;return r===0?null:e[r-1].toString()}i(e7,"responseURL");function vUe(t,e){if(!CUe.has(t.status))return null;let r=t.headersList.get("location",!0);return r!==null&&r7(r)&&(t7(r)||(r=_Ue(r)),r=new URL(r,e7(t))),r&&!r.hash&&(r.hash=e),r}i(vUe,"responseLocationURL");function t7(t){for(let e=0;e126||r<32)return!1}return!0}i(t7,"isValidEncodedURL");function _Ue(t){return Buffer.from(t,"binary").toString("utf8")}i(_Ue,"normalizeBinaryStringToUtf8");function oE(t){return t.urlList[t.urlList.length-1]}i(oE,"requestCurrentURL");function QUe(t){let e=oE(t);return a7(e)&&xUe.has(e.port)?"blocked":"allowed"}i(QUe,"requestBadPort");function DUe(t){return t instanceof Error||t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException"}i(DUe,"isErrorLike");function kUe(t){for(let e=0;e=32&&r<=126||r>=128&&r<=255))return!1}return!0}i(kUe,"isValidReasonPhrase");var LUe=XX;function r7(t){return(t[0]===" "||t[0]===" "||t[t.length-1]===" "||t[t.length-1]===" "||t.includes(` +`)||t.includes("\r")||t.includes("\0"))===!1}i(r7,"isValidHeaderValue");function OUe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let o=n.length;o!==0;o--){let a=n[o-1].trim();if(IUe.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}i(OUe,"setRequestReferrerPolicyOnRedirect");function MUe(){return"allowed"}i(MUe,"crossOriginResourcePolicyCheck");function FUe(){return"success"}i(FUe,"corsCheck");function UUe(){return"success"}i(UUe,"TAOCheck");function qUe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(qUe,"appendFetchMetadata");function $Ue(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&&lM(t.origin)&&!lM(oE(t))&&(e=null);break;case"same-origin":eb(t,oE(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i($Ue,"appendRequestOriginHeader");function gA(t,e){return t}i(gA,"coarsenTime");function GUe(t,e,r){return!t?.startTime||t.startTime4096&&(n=s);let o=eb(t,n),a=sE(n)&&!sE(t.url);switch(e){case"origin":return s??cM(r,!0);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{let c=oE(t);return eb(n,c)?n:sE(n)&&!sE(c)?"no-referrer":s}default:return a?"no-referrer":s}}i(YUe,"determineRequestsReferrer");function cM(t,e){return Fp(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)}i(cM,"stripURLForReferrer");function sE(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"))}}i(sE,"isURLPotentiallyTrustworthy");function WUe(t,e){if(Z0===void 0)return!0;let r=s7(e);if(r==="no metadata"||r.length===0)return!0;let n=JUe(r),s=KUe(r,n);for(let o of s){let a=o.algo,c=o.hash,l=Z0.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)),XUe(l,c))return!0}return!1}i(WUe,"bytesMatch");var jUe=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function s7(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=jUe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let o=s.groups.algo.toLowerCase();ZX.includes(o)&&e.push(s.groups)}return r===!0?"no metadata":e}i(s7,"parseMetadata");function JUe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r{t=n,e=s}),resolve:t,reject:e}}i(e2e,"createDeferredPromise");function t2e(t){return t.controller.state==="aborted"}i(t2e,"isAborted");function r2e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}i(r2e,"isCancelled");function n2e(t){return TUe[t.toLowerCase()]??t}i(n2e,"normalizeMethod");function s2e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Fp(typeof e=="string"),e}i(s2e,"serializeJavascriptValueToJSONString");var o2e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function o7(t,e,r=0,n=1){class s{static{i(this,"FastIterableIterator")}#e;#t;#r;constructor(a,c){this.#e=a,this.#t=c,this.#r=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.#r,c=this.#e[e],l=c.length;if(a>=l)return{value:void 0,done:!0};let{[r]:u,[n]:d}=c[a];this.#r=a+1;let p;switch(this.#t){case"key":p=u;break;case"value":p=d;break;case"key+value":p=[u,d];break}return{value:p,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,o2e),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(o,a){return new s(o,a)}}i(o7,"createIterator");function i2e(t,e,r,n=0,s=1){let o=o7(t,r,n,s),a={keys:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return nE.brandCheck(this,e),o(this,"key")},"keys")},values:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return nE.brandCheck(this,e),o(this,"value")},"values")},entries:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return nE.brandCheck(this,e),o(this,"key+value")},"entries")},forEach:{writable:!0,enumerable:!0,configurable:!0,value:i(function(l,u=globalThis){if(nE.brandCheck(this,e),nE.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:p}of o(this,"key+value"))l.call(u,p,d,this)},"forEach")}};return Object.defineProperties(e.prototype,{...a,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:a.entries.value}})}i(i2e,"iteratorMixin");async function a2e(t,e,r){let n=e,s=r,o;try{o=t.stream.getReader()}catch(a){s(a);return}try{n(await i7(o))}catch(a){s(a)}}i(a2e,"fullyReadBody");function c2e(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee=="function"}i(c2e,"isReadableStreamLike");function l2e(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}}i(l2e,"readableStreamClose");var u2e=/[^\x00-\xFF]/;function X0(t){return Fp(!u2e.test(t)),t}i(X0,"isomorphicEncode");async function i7(t){let e=[],r=0;for(;;){let{done:n,value:s}=await t.read();if(n)return Buffer.concat(e,r);if(!PUe(s))throw new TypeError("Received non-Uint8Array chunk");e.push(s),r+=s.length}}i(i7,"readAllBytes");function d2e(t){Fp("protocol"in t);let e=t.protocol;return e==="about:"||e==="blob:"||e==="data:"}i(d2e,"urlIsLocal");function lM(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:"}i(lM,"urlHasHttpsScheme");function a7(t){Fp("protocol"in t);let e=t.protocol;return e==="http:"||e==="https:"}i(a7,"urlIsHttpHttpsScheme");function p2e(t,e){let r=t;if(!r.startsWith("bytes"))return"failure";let n={position:5};if(e&&Mp(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==61)return"failure";n.position++,e&&Mp(l=>l===" "||l===" ",r,n);let s=Mp(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),o=s.length?Number(s):null;if(e&&Mp(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==45)return"failure";n.position++,e&&Mp(l=>l===" "||l===" ",r,n);let a=Mp(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),c=a.length?Number(a):null;return n.positionc?"failure":{rangeStartValue:o,rangeEndValue:c}}i(p2e,"simpleRangeHeaderValue");function m2e(t,e,r){let n="bytes ";return n+=X0(`${t}`),n+="-",n+=X0(`${e}`),n+="/",n+=X0(`${r}`),n}i(m2e,"buildContentRange");var uM=class extends EUe{static{i(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?JX.createInflate(this.#e):JX.createInflateRaw(this.#e),this._inflateStream.on("data",this.push.bind(this)),this._inflateStream.on("end",()=>this.push(null)),this._inflateStream.on("error",s=>this.destroy(s))}this._inflateStream.write(e,r,n)}_final(e){this._inflateStream&&(this._inflateStream.end(),this._inflateStream=null),e()}};function f2e(t){return new uM(t)}i(f2e,"createInflate");function A2e(t){let e=null,r=null,n=null,s=c7("content-type",t);if(s===null)return"failure";for(let o of s){let a=SUe(o);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"}i(A2e,"extractMimeType");function h2e(t){let e=t,r={position:0},n=[],s="";for(;r.positiono!=='"'&&o!==",",e,r),r.positiono===9||o===32),n.push(s),s=""}return n}i(h2e,"gettingDecodingSplitting");function c7(t,e){let r=e.get(t,!0);return r===null?null:h2e(r)}i(c7,"getDecodeSplit");var g2e=new TextDecoder;function y2e(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),g2e.decode(t))}i(y2e,"utf8DecodeBytes");var dM=class{static{i(this,"EnvironmentSettingsObjectBase")}get baseUrl(){return KX()}get origin(){return this.baseUrl?.origin}policyContainer=n7()},pM=class{static{i(this,"EnvironmentSettingsObject")}settingsObject=new dM},E2e=new pM;l7.exports={isAborted:t2e,isCancelled:r2e,isValidEncodedURL:t7,createDeferredPromise:e2e,ReadableStreamFrom:NUe,tryUpgradeRequestToAPotentiallyTrustworthyURL:ZUe,clampAndCoarsenConnectionTimingInfo:GUe,coarsenedSharedCurrentTime:HUe,determineRequestsReferrer:YUe,makePolicyContainer:n7,clonePolicyContainer:VUe,appendFetchMetadata:qUe,appendRequestOriginHeader:$Ue,TAOCheck:UUe,corsCheck:FUe,crossOriginResourcePolicyCheck:MUe,createOpaqueTimingInfo:zUe,setRequestReferrerPolicyOnRedirect:OUe,isValidHTTPToken:XX,requestBadPort:QUe,requestCurrentURL:oE,responseURL:e7,responseLocationURL:vUe,isBlobLike:RUe,isURLPotentiallyTrustworthy:sE,isValidReasonPhrase:kUe,sameOrigin:eb,normalizeMethod:n2e,serializeJavascriptValueToJSONString:s2e,iteratorMixin:i2e,createIterator:o7,isValidHeaderName:LUe,isValidHeaderValue:r7,isErrorLike:DUe,fullyReadBody:a2e,bytesMatch:WUe,isReadableStreamLike:c2e,readableStreamClose:l2e,isomorphicEncode:X0,urlIsLocal:d2e,urlHasHttpsScheme:lM,urlIsHttpHttpsScheme:a7,readAllBytes:i7,simpleRangeHeaderValue:p2e,buildContentRange:m2e,parseMetadata:s7,createInflate:f2e,extractMimeType:A2e,getDecodeSplit:c7,utf8DecodeBytes:y2e,environmentSettingsObject:E2e}});var Vu=b((d1t,u7)=>{"use strict";u7.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var fM=b((p1t,d7)=>{"use strict";var{Blob:C2e,File:I2e}=require("node:buffer"),{kState:Dl}=Vu(),{webidl:Ga}=Nn(),mM=class t{static{i(this,"FileLike")}constructor(e,r,n={}){let s=r,o=n.type,a=n.lastModified??Date.now();this[Dl]={blobLike:e,name:s,type:o,lastModified:a}}stream(...e){return Ga.brandCheck(this,t),this[Dl].blobLike.stream(...e)}arrayBuffer(...e){return Ga.brandCheck(this,t),this[Dl].blobLike.arrayBuffer(...e)}slice(...e){return Ga.brandCheck(this,t),this[Dl].blobLike.slice(...e)}text(...e){return Ga.brandCheck(this,t),this[Dl].blobLike.text(...e)}get size(){return Ga.brandCheck(this,t),this[Dl].blobLike.size}get type(){return Ga.brandCheck(this,t),this[Dl].blobLike.type}get name(){return Ga.brandCheck(this,t),this[Dl].name}get lastModified(){return Ga.brandCheck(this,t),this[Dl].lastModified}get[Symbol.toStringTag](){return"File"}};Ga.converters.Blob=Ga.interfaceConverter(C2e);function x2e(t){return t instanceof I2e||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}i(x2e,"isFileLike");d7.exports={FileLike:mM,isFileLike:x2e}});var aE=b((f1t,h7)=>{"use strict";var{isBlobLike:tb,iteratorMixin:w2e}=yo(),{kState:ds}=Vu(),{kEnumerableProperty:yA}=ut(),{FileLike:p7,isFileLike:b2e}=fM(),{webidl:Ht}=Nn(),{File:A7}=require("node:buffer"),m7=require("node:util"),f7=globalThis.File??A7,iE=class t{static{i(this,"FormData")}constructor(e){if(Ht.util.markAsUncloneable(this),e!==void 0)throw Ht.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[ds]=[]}append(e,r,n=void 0){Ht.brandCheck(this,t);let s="FormData.append";if(Ht.argumentLengthCheck(arguments,2,s),arguments.length===3&&!tb(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Ht.converters.USVString(e,s,"name"),r=tb(r)?Ht.converters.Blob(r,s,"value",{strict:!1}):Ht.converters.USVString(r,s,"value"),n=arguments.length===3?Ht.converters.USVString(n,s,"filename"):void 0;let o=AM(e,r,n);this[ds].push(o)}delete(e){Ht.brandCheck(this,t);let r="FormData.delete";Ht.argumentLengthCheck(arguments,1,r),e=Ht.converters.USVString(e,r,"name"),this[ds]=this[ds].filter(n=>n.name!==e)}get(e){Ht.brandCheck(this,t);let r="FormData.get";Ht.argumentLengthCheck(arguments,1,r),e=Ht.converters.USVString(e,r,"name");let n=this[ds].findIndex(s=>s.name===e);return n===-1?null:this[ds][n].value}getAll(e){Ht.brandCheck(this,t);let r="FormData.getAll";return Ht.argumentLengthCheck(arguments,1,r),e=Ht.converters.USVString(e,r,"name"),this[ds].filter(n=>n.name===e).map(n=>n.value)}has(e){Ht.brandCheck(this,t);let r="FormData.has";return Ht.argumentLengthCheck(arguments,1,r),e=Ht.converters.USVString(e,r,"name"),this[ds].findIndex(n=>n.name===e)!==-1}set(e,r,n=void 0){Ht.brandCheck(this,t);let s="FormData.set";if(Ht.argumentLengthCheck(arguments,2,s),arguments.length===3&&!tb(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Ht.converters.USVString(e,s,"name"),r=tb(r)?Ht.converters.Blob(r,s,"name",{strict:!1}):Ht.converters.USVString(r,s,"name"),n=arguments.length===3?Ht.converters.USVString(n,s,"name"):void 0;let o=AM(e,r,n),a=this[ds].findIndex(c=>c.name===e);a!==-1?this[ds]=[...this[ds].slice(0,a),o,...this[ds].slice(a+1).filter(c=>c.name!==e)]:this[ds].push(o)}[m7.inspect.custom](e,r){let n=this[ds].reduce((o,a)=>(o[a.name]?Array.isArray(o[a.name])?o[a.name].push(a.value):o[a.name]=[o[a.name],a.value]:o[a.name]=a.value,o),{__proto__:null});r.depth??=e,r.colors??=!0;let s=m7.formatWithOptions(r,n);return`FormData ${s.slice(s.indexOf("]")+2)}`}};w2e("FormData",iE,ds,"name","value");Object.defineProperties(iE.prototype,{append:yA,delete:yA,get:yA,getAll:yA,has:yA,set:yA,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function AM(t,e,r){if(typeof e!="string"){if(b2e(e)||(e=e instanceof Blob?new f7([e],"blob",{type:e.type}):new p7(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=e instanceof A7?new f7([e],r,n):new p7(e,r,n)}}return{name:t,value:e}}i(AM,"makeEntry");h7.exports={FormData:iE,makeEntry:AM}});var x7=b((h1t,I7)=>{"use strict";var{isUSVString:g7,bufferToLowerCasedHeaderName:S2e}=ut(),{utf8DecodeBytes:B2e}=yo(),{HTTP_TOKEN_CODEPOINTS:R2e,isomorphicDecode:y7}=Ms(),{isFileLike:N2e}=fM(),{makeEntry:T2e}=aE(),rb=require("node:assert"),{File:P2e}=require("node:buffer"),v2e=globalThis.File??P2e,_2e=Buffer.from('form-data; name="'),E7=Buffer.from("; filename"),Q2e=Buffer.from("--"),D2e=Buffer.from(`--\r +`);function k2e(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}i(L2e,"validateBoundary");function O2e(t,e){rb(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"),s=[],o={position:0};for(;t[o.position]===13&&t[o.position+1]===10;)o.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(o.position,o.position+n.length).equals(n))o.position+=n.length;else return"failure";if(o.position===t.length-2&&nb(t,Q2e,o)||o.position===t.length-4&&nb(t,D2e,o))return s;if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let c=M2e(t,o);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:p}=c;o.position+=2;let m;{let g=t.indexOf(n.subarray(2),o.position);if(g===-1)return"failure";m=t.subarray(o.position,g-4),o.position+=m.length,p==="base64"&&(m=Buffer.from(m.toString(),"base64"))}if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let f;u!==null?(d??="text/plain",k2e(d)||(d=""),f=new v2e([m],u,{type:d})):f=B2e(Buffer.from(m)),rb(g7(l)),rb(typeof f=="string"&&g7(f)||N2e(f)),s.push(T2e(l,f,u))}}i(O2e,"multipartFormDataParser");function M2e(t,e){let r=null,n=null,s=null,o=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:o};let a=EA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=hM(a,!0,!0,c=>c===9||c===32),!R2e.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,EA(c=>c===32||c===9,t,e),S2e(a)){case"content-disposition":{if(r=n=null,!nb(t,_2e,e)||(e.position+=17,r=C7(t,e),r===null))return"failure";if(nb(t,E7,e)){let c=e.position+E7.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=C7(t,e),n===null))return"failure"}break}case"content-type":{let c=EA(l=>l!==10&&l!==13,t,e);c=hM(c,!1,!0,l=>l===9||l===32),s=y7(c);break}case"content-transfer-encoding":{let c=EA(l=>l!==10&&l!==13,t,e);c=hM(c,!1,!0,l=>l===9||l===32),o=y7(c);break}default:EA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(M2e,"parseMultipartFormDataHeaders");function C7(t,e){rb(t[e.position-1]===34);let r=EA(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)}i(C7,"parseMultipartFormDataName");function EA(t,e,r){let n=r.position;for(;n0&&n(t[o]);)o--;return s===0&&o===t.length-1?t:t.subarray(s,o+1)}i(hM,"removeChars");function nb(t,e,r){if(t.length{"use strict";var cE=ut(),{ReadableStreamFrom:F2e,isBlobLike:w7,isReadableStreamLike:U2e,readableStreamClose:q2e,createDeferredPromise:$2e,fullyReadBody:G2e,extractMimeType:H2e,utf8DecodeBytes:B7}=yo(),{FormData:b7}=aE(),{kState:IA}=Vu(),{webidl:z2e}=Nn(),{Blob:V2e}=require("node:buffer"),gM=require("node:assert"),{isErrored:R7,isDisturbed:Y2e}=require("node:stream"),{isArrayBuffer:W2e}=require("node:util/types"),{serializeAMimeType:j2e}=Ms(),{multipartFormDataParser:J2e}=x7(),yM;try{let t=require("node:crypto");yM=i(e=>t.randomInt(0,e),"random")}catch{yM=i(t=>Math.floor(Math.random(t)),"random")}var sb=new TextEncoder;function K2e(){}i(K2e,"noop");var N7=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,T7;N7&&(T7=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Y2e(e)&&!R7(e)&&e.cancel("Response object has been garbage collected").catch(K2e)}));function P7(t,e=!1){let r=null;t instanceof ReadableStream?r=t:w7(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?sb.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>q2e(l))},start(){},type:"bytes"}),gM(U2e(r));let n=null,s=null,o=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(W2e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(cE.isFormDataLike(t)){let l=`----formdata-undici-0${`${yM(1e11)}`.padStart(11,"0")}`,u=`--${l}\r Content-Disposition: form-data`;let d=i(x=>x.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),p=i(x=>x.replace(/\r?\n|\r/g,`\r -`),"normalizeLinefeeds"),m=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[x,w]of t)if(typeof w=="string"){let S=eb.encode(u+`; name="${d(p(x))}"\r +`),"normalizeLinefeeds"),m=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[x,w]of t)if(typeof w=="string"){let S=sb.encode(u+`; name="${d(p(x))}"\r \r ${p(w)}\r -`);m.push(S),o+=S.byteLength}else{let S=eb.encode(`${u}; name="${d(p(x))}"`+(w.name?`; filename="${d(w.name)}"`:"")+`\r +`);m.push(S),o+=S.byteLength}else{let S=sb.encode(`${u}; name="${d(p(x))}"`+(w.name?`; filename="${d(w.name)}"`:"")+`\r Content-Type: ${w.type||"application/octet-stream"}\r \r -`);m.push(S,w,f),typeof w.size=="number"?o+=S.byteLength+w.size+f.byteLength:g=!0}let E=eb.encode(`--${l}--\r -`);m.push(E),o+=E.byteLength,g&&(o=null),s=t,n=i(async function*(){for(let x of m)x.stream?yield*x.stream():yield x},"action"),a=`multipart/form-data; boundary=${l}`}else if(h7(t))s=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(oE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:R2e(t)}if((typeof s=="string"||oE.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:p}=await l.next();if(p)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!C7(r)){let m=new Uint8Array(d);m.byteLength&&u.enqueue(m)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:o},a]}i(w7,"extractBody");function U2e(t,e=!1){return t instanceof ReadableStream&&(pM(!oE.isDisturbed(t),"The body has already been consumed."),pM(!t.locked,"The stream is locked.")),w7(t,e)}i(U2e,"safelyExtractBody");function q2e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(q2e,"cloneBody");function $2e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i($2e,"throwIfAborted");function G2e(t){return{blob(){return gA(this,r=>{let n=y7(this);return n===null?n="":n&&(n=O2e(n)),new D2e([r],{type:n})},t)},arrayBuffer(){return gA(this,r=>new Uint8Array(r).buffer,t)},text(){return gA(this,E7,t)},json(){return gA(this,z2e,t)},formData(){return gA(this,r=>{let n=y7(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=M2e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new g7;return o[yA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new g7;for(let[a,c]of s)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return gA(this,r=>new Uint8Array(r),t)}}}i(G2e,"bodyMixinMethods");function H2e(t){Object.assign(t.prototype,G2e(t))}i(H2e,"mixinBody");async function gA(t,e,r){if(Q2e.brandCheck(t,r),b7(t))throw new TypeError("Body is unusable: Body has already been read");$2e(t[yA]);let n=P2e(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[yA].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await v2e(t[yA].body,o,s),n.promise)}i(gA,"consumeBody");function b7(t){let e=t[yA].body;return e!=null&&(e.stream.locked||oE.isDisturbed(e.stream))}i(b7,"bodyUnusable");function z2e(t){return JSON.parse(E7(t))}i(z2e,"parseJSONFromBytes");function y7(t){let e=t[yA].headersList,r=_2e(e);return r==="failure"?null:r}i(y7,"bodyMimeType");S7.exports={extractBody:w7,safelyExtractBody:U2e,cloneBody:q2e,mixinBody:H2e,streamRegistry:x7,hasFinalizationRegistry:I7,bodyUnusable:b7}});var L7=b((m1t,k7)=>{"use strict";var Le=require("node:assert"),je=ut(),{channels:B7}=iA(),fM=jO(),{RequestContentLengthMismatchError:Up,ResponseContentLengthMismatchError:V2e,RequestAbortedError:_7,HeadersTimeoutError:Y2e,HeadersOverflowError:W2e,SocketError:ib,InformationalError:CA,BodyTimeoutError:j2e,HTTPParserError:J2e,ResponseExceededMaxSizeError:K2e}=bt(),{kUrl:Q7,kReset:Ms,kClient:yM,kParser:Cr,kBlocking:cE,kRunning:$n,kPending:X2e,kSize:R7,kWriting:Yu,kQueue:Ji,kNoRef:iE,kKeepAliveDefaultTimeout:Z2e,kHostHeader:eqe,kPendingIdx:tqe,kRunningIdx:ri,kError:ni,kPipelining:sb,kSocket:IA,kKeepAliveTimeoutValue:ab,kMaxHeadersSize:AM,kKeepAliveMaxTimeout:rqe,kKeepAliveTimeoutThreshold:nqe,kHeadersTimeout:sqe,kBodyTimeout:oqe,kStrictContentLength:EM,kMaxRequests:N7,kCounter:iqe,kMaxResponseSize:aqe,kOnError:cqe,kResume:Vu,kHTTPContext:D7}=Zt(),Ga=xX(),lqe=Buffer.alloc(0),tb=Buffer[Symbol.species],rb=je.addListener,uqe=je.removeAllListeners,hM;async function dqe(){let t=process.env.JEST_WORKER_ID?XO():void 0,e;try{e=await WebAssembly.compile(SX())}catch{e=await WebAssembly.compile(t||XO())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,s)=>0,"wasm_on_url"),wasm_on_status:i((r,n,s)=>{Le(tn.ptr===r);let o=n-za+Ha.byteOffset;return tn.onStatus(new tb(Ha.buffer,o,s))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(Le(tn.ptr===r),tn.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,s)=>{Le(tn.ptr===r);let o=n-za+Ha.byteOffset;return tn.onHeaderField(new tb(Ha.buffer,o,s))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,s)=>{Le(tn.ptr===r);let o=n-za+Ha.byteOffset;return tn.onHeaderValue(new tb(Ha.buffer,o,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,s,o)=>(Le(tn.ptr===r),tn.onHeadersComplete(n,!!s,!!o)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,s)=>{Le(tn.ptr===r);let o=n-za+Ha.byteOffset;return tn.onBody(new tb(Ha.buffer,o,s))||0},"wasm_on_body"),wasm_on_message_complete:i(r=>(Le(tn.ptr===r),tn.onMessageComplete()||0),"wasm_on_message_complete")}})}i(dqe,"lazyllhttp");var gM=null,CM=dqe();CM.catch();var tn=null,Ha=null,nb=0,za=null,pqe=0,aE=1,xA=2|aE,ob=4|aE,IM=8|pqe,xM=class{static{i(this,"Parser")}constructor(e,r,{exports:n}){Le(Number.isFinite(e[AM])&&e[AM]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Ga.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[AM],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[aqe]}setTimeout(e,r){e!==this.timeoutValue||r&aE^this.timeoutType&aE?(this.timeout&&(fM.clearTimeout(this.timeout),this.timeout=null),e&&(r&aE?this.timeout=fM.setFastTimeout(T7,e,new WeakRef(this)):(this.timeout=setTimeout(T7,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||(Le(this.ptr!=null),Le(tn==null),this.llhttp.llhttp_resume(this.ptr),Le(this.timeoutType===ob),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||lqe),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Le(this.ptr!=null),Le(tn==null),Le(!this.paused);let{socket:r,llhttp:n}=this;e.length>nb&&(za&&n.free(za),nb=Math.ceil(e.length/4096)*4096,za=n.malloc(nb)),new Uint8Array(n.memory.buffer,za,nb).set(e);try{let s;try{Ha=e,tn=this,s=n.llhttp_execute(this.ptr,za,e.length)}catch(a){throw a}finally{tn=null,Ha=null}let o=n.llhttp_get_error_pos(this.ptr)-za;if(s===Ga.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(o));else if(s===Ga.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(o));else if(s!==Ga.ERROR.OK){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()+")"}throw new J2e(c,Ga.ERROR[s],e.slice(o))}}catch(s){je.destroy(r,s)}}destroy(){Le(this.ptr!=null),Le(tn==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&fM.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;let n=r[Ji][r[ri]];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 s=je.bufferToLowerCasedHeaderName(n);s==="keep-alive"?this.keepAlive+=e.toString():s==="connection"&&(this.connection+=e.toString())}else n.length===14&&je.bufferToLowerCasedHeaderName(n)==="content-length"&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&je.destroy(this.socket,new W2e)}onUpgrade(e){let{upgrade:r,client:n,socket:s,headers:o,statusCode:a}=this;Le(r),Le(n[IA]===s),Le(!s.destroyed),Le(!this.paused),Le((o.length&1)===0);let c=n[Ji][n[ri]];Le(c),Le(c.upgrade||c.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,s.unshift(e),s[Cr].destroy(),s[Cr]=null,s[yM]=null,s[ni]=null,uqe(s),n[IA]=null,n[D7]=null,n[Ji][n[ri]++]=null,n.emit("disconnect",n[Q7],[n],new CA("upgrade"));try{c.onUpgrade(a,o,s)}catch(l){je.destroy(s,l)}n[Vu]()}onHeadersComplete(e,r,n){let{client:s,socket:o,headers:a,statusText:c}=this;if(o.destroyed)return-1;let l=s[Ji][s[ri]];if(!l)return-1;if(Le(!this.upgrade),Le(this.statusCode<200),e===100)return je.destroy(o,new ib("bad response",je.getSocketInfo(o))),-1;if(r&&!l.upgrade)return je.destroy(o,new ib("bad upgrade",je.getSocketInfo(o))),-1;if(Le(this.timeoutType===xA),this.statusCode=e,this.shouldKeepAlive=n||l.method==="HEAD"&&!o[Ms]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let d=l.bodyTimeout!=null?l.bodyTimeout:s[oqe];this.setTimeout(d,ob)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method==="CONNECT")return Le(s[$n]===1),this.upgrade=!0,2;if(r)return Le(s[$n]===1),this.upgrade=!0,2;if(Le((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&s[sb]){let d=this.keepAlive?je.parseKeepAliveTimeout(this.keepAlive):null;if(d!=null){let p=Math.min(d-s[nqe],s[rqe]);p<=0?o[Ms]=!0:s[ab]=p}else s[ab]=s[Z2e]}else o[Ms]=!0;let u=l.onHeaders(e,a,this.resume,c)===!1;return l.aborted?-1:l.method==="HEAD"||e<200?1:(o[cE]&&(o[cE]=!1,s[Vu]()),u?Ga.ERROR.PAUSED:0)}onBody(e){let{client:r,socket:n,statusCode:s,maxResponseSize:o}=this;if(n.destroyed)return-1;let a=r[Ji][r[ri]];if(Le(a),Le(this.timeoutType===ob),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),Le(s>=200),o>-1&&this.bytesRead+e.length>o)return je.destroy(n,new K2e),-1;if(this.bytesRead+=e.length,a.onData(e)===!1)return Ga.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:r,statusCode:n,upgrade:s,headers:o,contentLength:a,bytesRead:c,shouldKeepAlive:l}=this;if(r.destroyed&&(!n||l))return-1;if(s)return;Le(n>=100),Le((this.headers.length&1)===0);let u=e[Ji][e[ri]];if(Le(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 je.destroy(r,new V2e),-1;if(u.onComplete(o),e[Ji][e[ri]++]=null,r[Yu])return Le(e[$n]===0),je.destroy(r,new CA("reset")),Ga.ERROR.PAUSED;if(l){if(r[Ms]&&e[$n]===0)return je.destroy(r,new CA("reset")),Ga.ERROR.PAUSED;e[sb]==null||e[sb]===1?setImmediate(()=>e[Vu]()):e[Vu]()}else return je.destroy(r,new CA("reset")),Ga.ERROR.PAUSED}}};function T7(t){let{socket:e,timeoutType:r,client:n,paused:s}=t.deref();r===xA?(!e[Yu]||e.writableNeedDrain||n[$n]>1)&&(Le(!s,"cannot be paused while waiting for headers"),je.destroy(e,new Y2e)):r===ob?s||je.destroy(e,new j2e):r===IM&&(Le(n[$n]===0&&n[ab]),je.destroy(e,new CA("socket idle timeout")))}i(T7,"onParserTimeout");async function mqe(t,e){t[IA]=e,gM||(gM=await CM,CM=null),e[iE]=!1,e[Yu]=!1,e[Ms]=!1,e[cE]=!1,e[Cr]=new xM(t,e,gM),rb(e,"error",function(n){Le(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID");let s=this[Cr];if(n.code==="ECONNRESET"&&s.statusCode&&!s.shouldKeepAlive){s.onMessageComplete();return}this[ni]=n,this[yM][cqe](n)}),rb(e,"readable",function(){let n=this[Cr];n&&n.readMore()}),rb(e,"end",function(){let n=this[Cr];if(n.statusCode&&!n.shouldKeepAlive){n.onMessageComplete();return}je.destroy(this,new ib("other side closed",je.getSocketInfo(this)))}),rb(e,"close",function(){let n=this[yM],s=this[Cr];s&&(!this[ni]&&s.statusCode&&!s.shouldKeepAlive&&s.onMessageComplete(),this[Cr].destroy(),this[Cr]=null);let o=this[ni]||new ib("closed",je.getSocketInfo(this));if(n[IA]=null,n[D7]=null,n.destroyed){Le(n[X2e]===0);let a=n[Ji].splice(n[ri]);for(let c=0;c0&&o.code!=="UND_ERR_INFO"){let a=n[Ji][n[ri]];n[Ji][n[ri]++]=null,je.errorRequest(n,a,o)}n[tqe]=n[ri],Le(n[$n]===0),n.emit("disconnect",n[Q7],[n],o),n[Vu]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h1",defaultPipelining:1,write(...n){return hqe(t,...n)},resume(){fqe(t)},destroy(n,s){r?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(n){return!!(e[Yu]||e[Ms]||e[cE]||n&&(t[$n]>0&&!n.idempotent||t[$n]>0&&(n.upgrade||n.method==="CONNECT")||t[$n]>0&&je.bodyLength(n.body)!==0&&(je.isStream(n.body)||je.isAsyncIterable(n.body)||je.isFormDataLike(n.body))))}}}i(mqe,"connectH1");function fqe(t){let e=t[IA];if(e&&!e.destroyed){if(t[R7]===0?!e[iE]&&e.unref&&(e.unref(),e[iE]=!0):e[iE]&&e.ref&&(e.ref(),e[iE]=!1),t[R7]===0)e[Cr].timeoutType!==IM&&e[Cr].setTimeout(t[ab],IM);else if(t[$n]>0&&e[Cr].statusCode<200&&e[Cr].timeoutType!==xA){let r=t[Ji][t[ri]],n=r.headersTimeout!=null?r.headersTimeout:t[sqe];e[Cr].setTimeout(n,xA)}}}i(fqe,"resumeH1");function Aqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(Aqe,"shouldSendContentLength");function hqe(t,e){let{method:r,path:n,host:s,upgrade:o,blocking:a,reset:c}=e,{body:l,headers:u,contentLength:d}=e,p=r==="PUT"||r==="POST"||r==="PATCH"||r==="QUERY"||r==="PROPFIND"||r==="PROPPATCH";if(je.isFormDataLike(l)){hM||(hM=EA().extractBody);let[x,w]=hM(l);e.contentType==null&&u.push("content-type",w),l=x.stream,d=x.length}else je.isBlobLike(l)&&e.contentType==null&&l.type&&u.push("content-type",l.type);l&&typeof l.read=="function"&&l.read(0);let m=je.bodyLength(l);if(d=m??d,d===null&&(d=e.contentLength),d===0&&!p&&(d=null),Aqe(r)&&d>0&&e.contentLength!==null&&e.contentLength!==d){if(t[EM])return je.errorRequest(t,e,new Up),!1;process.emitWarning(new Up)}let f=t[IA],g=i(x=>{e.aborted||e.completed||(je.errorRequest(t,e,x||new _7),je.destroy(l),je.destroy(f,new CA("aborted")))},"abort");try{e.onConnect(g)}catch(x){je.errorRequest(t,e,x)}if(e.aborted)return!1;r==="HEAD"&&(f[Ms]=!0),(o||r==="CONNECT")&&(f[Ms]=!0),c!=null&&(f[Ms]=c),t[N7]&&f[iqe]++>=t[N7]&&(f[Ms]=!0),a&&(f[cE]=!0);let E=`${r} ${n} HTTP/1.1\r +`);m.push(S,w,f),typeof w.size=="number"?o+=S.byteLength+w.size+f.byteLength:g=!0}let E=sb.encode(`--${l}--\r +`);m.push(E),o+=E.byteLength,g&&(o=null),s=t,n=i(async function*(){for(let x of m)x.stream?yield*x.stream():yield x},"action"),a=`multipart/form-data; boundary=${l}`}else if(w7(t))s=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(cE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:F2e(t)}if((typeof s=="string"||cE.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:p}=await l.next();if(p)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!R7(r)){let m=new Uint8Array(d);m.byteLength&&u.enqueue(m)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:o},a]}i(P7,"extractBody");function X2e(t,e=!1){return t instanceof ReadableStream&&(gM(!cE.isDisturbed(t),"The body has already been consumed."),gM(!t.locked,"The stream is locked.")),P7(t,e)}i(X2e,"safelyExtractBody");function Z2e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(Z2e,"cloneBody");function eqe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(eqe,"throwIfAborted");function tqe(t){return{blob(){return CA(this,r=>{let n=S7(this);return n===null?n="":n&&(n=j2e(n)),new V2e([r],{type:n})},t)},arrayBuffer(){return CA(this,r=>new Uint8Array(r).buffer,t)},text(){return CA(this,B7,t)},json(){return CA(this,nqe,t)},formData(){return CA(this,r=>{let n=S7(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=J2e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new b7;return o[IA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new b7;for(let[a,c]of s)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return CA(this,r=>new Uint8Array(r),t)}}}i(tqe,"bodyMixinMethods");function rqe(t){Object.assign(t.prototype,tqe(t))}i(rqe,"mixinBody");async function CA(t,e,r){if(z2e.brandCheck(t,r),v7(t))throw new TypeError("Body is unusable: Body has already been read");eqe(t[IA]);let n=$2e(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[IA].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await G2e(t[IA].body,o,s),n.promise)}i(CA,"consumeBody");function v7(t){let e=t[IA].body;return e!=null&&(e.stream.locked||cE.isDisturbed(e.stream))}i(v7,"bodyUnusable");function nqe(t){return JSON.parse(B7(t))}i(nqe,"parseJSONFromBytes");function S7(t){let e=t[IA].headersList,r=H2e(e);return r==="failure"?null:r}i(S7,"bodyMimeType");_7.exports={extractBody:P7,safelyExtractBody:X2e,cloneBody:Z2e,mixinBody:rqe,streamRegistry:T7,hasFinalizationRegistry:N7,bodyUnusable:v7}});var W7=b((C1t,Y7)=>{"use strict";var Pe=require("node:assert"),Oe=ut(),{channels:Q7}=lA(),EM=eM(),{RequestContentLengthMismatchError:Up,ResponseContentLengthMismatchError:D7,RequestAbortedError:$7,HeadersTimeoutError:sqe,HeadersOverflowError:oqe,SocketError:wA,InformationalError:bA,BodyTimeoutError:iqe,HTTPParserError:aqe,ResponseExceededMaxSizeError:cqe}=xt(),{kUrl:G7,kReset:Fs,kClient:cb,kParser:Vt,kBlocking:dE,kRunning:Yr,kPending:H7,kSize:k7,kWriting:Yu,kQueue:Ki,kNoRef:lE,kKeepAliveDefaultTimeout:lqe,kHostHeader:uqe,kPendingIdx:dqe,kRunningIdx:si,kError:ps,kPipelining:lb,kSocket:$p,kKeepAliveTimeoutValue:db,kMaxHeadersSize:CM,kKeepAliveMaxTimeout:pqe,kKeepAliveTimeoutThreshold:mqe,kHeadersTimeout:fqe,kBodyTimeout:Aqe,kStrictContentLength:wM,kMaxRequests:L7,kCounter:hqe,kMaxResponseSize:gqe,kOnError:O7,kResume:kl,kHTTPContext:z7}=er(),Eo=TX(),M7=Buffer.alloc(0),ob=Buffer[Symbol.species],ib=Oe.addListener,yqe=Oe.removeAllListeners,Gp=Symbol("kIdleSocketValidation"),qp=Symbol("kIdleSocketValidationTimeout"),RM=Symbol("kSocketUsed"),IM;async function Eqe(){let t=process.env.JEST_WORKER_ID?nM():void 0,e;try{e=await WebAssembly.compile(_X())}catch{e=await WebAssembly.compile(t||nM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,s)=>0,"wasm_on_url"),wasm_on_status:i((r,n,s)=>{Pe(Ir.ptr===r);let o=n-za+Ha.byteOffset;return Ir.onStatus(new ob(Ha.buffer,o,s))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(Pe(Ir.ptr===r),Ir.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,s)=>{Pe(Ir.ptr===r);let o=n-za+Ha.byteOffset;return Ir.onHeaderField(new ob(Ha.buffer,o,s))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,s)=>{Pe(Ir.ptr===r);let o=n-za+Ha.byteOffset;return Ir.onHeaderValue(new ob(Ha.buffer,o,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,s,o)=>(Pe(Ir.ptr===r),Ir.onHeadersComplete(n,!!s,!!o)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,s)=>{Pe(Ir.ptr===r);let o=n-za+Ha.byteOffset;return Ir.onBody(new ob(Ha.buffer,o,s))||0},"wasm_on_body"),wasm_on_message_complete:i(r=>(Pe(Ir.ptr===r),Ir.onMessageComplete()||0),"wasm_on_message_complete")}})}i(Eqe,"lazyllhttp");var xM=null,bM=Eqe();bM.catch();var Ir=null,Ha=null,ab=0,za=null,Cqe=0,uE=1,SA=2|uE,ub=4|uE,SM=8|Cqe,BM=class{static{i(this,"Parser")}constructor(e,r,{exports:n}){Pe(Number.isFinite(e[CM])&&e[CM]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Eo.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[CM],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[gqe]}setTimeout(e,r){e!==this.timeoutValue||r&uE^this.timeoutType&uE?(this.timeout&&(EM.clearTimeout(this.timeout),this.timeout=null),e&&(r&uE?this.timeout=EM.setFastTimeout(F7,e,new WeakRef(this)):(this.timeout=setTimeout(F7,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||(Pe(this.ptr!=null),Pe(Ir==null),this.llhttp.llhttp_resume(this.ptr),Pe(this.timeoutType===ub),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||M7),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Pe(this.ptr!=null),Pe(Ir==null),Pe(!this.paused);let{socket:r,llhttp:n}=this;e.length>ab&&(za&&n.free(za),ab=Math.ceil(e.length/4096)*4096,za=n.malloc(ab)),new Uint8Array(n.memory.buffer,za,ab).set(e);try{let s;try{Ha=e,Ir=this,s=n.llhttp_execute(this.ptr,za,e.length)}catch(a){throw a}finally{Ir=null,Ha=null}let o=n.llhttp_get_error_pos(this.ptr)-za;if(s!==Eo.ERROR.OK){let a=e.subarray(o);if(s===Eo.ERROR.PAUSED_UPGRADE)this.onUpgrade(a);else if(s===Eo.ERROR.PAUSED)this.paused=!0,r.unshift(a);else throw this.createError(s,a)}}catch(s){Oe.destroy(r,s)}}finish(){Pe(Ir===null),Pe(this.ptr!=null),Pe(!this.paused);let{llhttp:e}=this,r;try{Ir=this,r=e.llhttp_finish(this.ptr)}finally{Ir=null}return r===Eo.ERROR.OK?null:r===Eo.ERROR.PAUSED||r===Eo.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(r,M7)}createError(e,r){let{llhttp:n,contentLength:s,bytesRead:o}=this;if(s&&o!==parseInt(s,10))return new D7;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 aqe(c,Eo.ERROR[e],r)}destroy(){Pe(this.ptr!=null),Pe(Ir==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&EM.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[Yr]===0)return Oe.destroy(e,new wA("bad response",Oe.getSocketInfo(e))),-1;let n=r[Ki][r[si]];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 s=Oe.bufferToLowerCasedHeaderName(n);s==="keep-alive"?this.keepAlive+=e.toString():s==="connection"&&(this.connection+=e.toString())}else n.length===14&&Oe.bufferToLowerCasedHeaderName(n)==="content-length"&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&Oe.destroy(this.socket,new oqe)}onUpgrade(e){let{upgrade:r,client:n,socket:s,headers:o,statusCode:a}=this;Pe(r),Pe(n[$p]===s),Pe(!s.destroyed),Pe(!this.paused),Pe((o.length&1)===0);let c=n[Ki][n[si]];Pe(c),Pe(c.upgrade||c.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,s.unshift(e),s[Vt].destroy(),s[Vt]=null,s[cb]=null,s[ps]=null,yqe(s),n[$p]=null,n[z7]=null,n[Ki][n[si]++]=null,n.emit("disconnect",n[G7],[n],new bA("upgrade"));try{c.onUpgrade(a,o,s)}catch(l){Oe.destroy(s,l)}n[kl]()}onHeadersComplete(e,r,n){let{client:s,socket:o,headers:a,statusText:c}=this;if(o.destroyed)return-1;if(s[Yr]===0)return Oe.destroy(o,new wA("bad response",Oe.getSocketInfo(o))),-1;let l=s[Ki][s[si]];if(!l)return-1;if(Pe(!this.upgrade),Pe(this.statusCode<200),e===100)return Oe.destroy(o,new wA("bad response",Oe.getSocketInfo(o))),-1;if(r&&!l.upgrade)return Oe.destroy(o,new wA("bad upgrade",Oe.getSocketInfo(o))),-1;if(Pe(this.timeoutType===SA),this.statusCode=e,this.shouldKeepAlive=n||l.method==="HEAD"&&!o[Fs]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let d=l.bodyTimeout!=null?l.bodyTimeout:s[Aqe];this.setTimeout(d,ub)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method==="CONNECT")return Pe(s[Yr]===1),this.upgrade=!0,2;if(r)return Pe(s[Yr]===1),this.upgrade=!0,2;if(Pe((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&s[lb]){let d=this.keepAlive?Oe.parseKeepAliveTimeout(this.keepAlive):null;if(d!=null){let p=Math.min(d-s[mqe],s[pqe]);p<=0?o[Fs]=!0:s[db]=p}else s[db]=s[lqe]}else o[Fs]=!0;let u=l.onHeaders(e,a,this.resume,c)===!1;return l.aborted?-1:l.method==="HEAD"||e<200?1:(o[dE]&&(o[dE]=!1,s[kl]()),u?Eo.ERROR.PAUSED:0)}onBody(e){let{client:r,socket:n,statusCode:s,maxResponseSize:o}=this;if(n.destroyed)return-1;let a=r[Ki][r[si]];if(Pe(a),Pe(this.timeoutType===ub),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),Pe(s>=200),o>-1&&this.bytesRead+e.length>o)return Oe.destroy(n,new cqe),-1;if(this.bytesRead+=e.length,a.onData(e)===!1)return Eo.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:r,statusCode:n,upgrade:s,headers:o,contentLength:a,bytesRead:c,shouldKeepAlive:l}=this;if(r.destroyed&&(!n||l))return-1;if(s)return;Pe(n>=100),Pe((this.headers.length&1)===0);let u=e[Ki][e[si]];if(Pe(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 Oe.destroy(r,new D7),-1;if(u.onComplete(o),e[Ki][e[si]++]=null,r[RM]=!0,r[Yu])return Pe(e[Yr]===0),Oe.destroy(r,new bA("reset")),Eo.ERROR.PAUSED;if(l){if(r[Fs]&&e[Yr]===0)return Oe.destroy(r,new bA("reset")),Eo.ERROR.PAUSED;e[lb]==null||e[lb]===1?setImmediate(()=>e[kl]()):e[kl]()}else return Oe.destroy(r,new bA("reset")),Eo.ERROR.PAUSED}}};function F7(t){let{socket:e,timeoutType:r,client:n,paused:s}=t.deref();r===SA?(!e[Yu]||e.writableNeedDrain||n[Yr]>1)&&(Pe(!s,"cannot be paused while waiting for headers"),Oe.destroy(e,new sqe)):r===ub?s||Oe.destroy(e,new iqe):r===SM&&(Pe(n[Yr]===0&&n[db]),Oe.destroy(e,new bA("socket idle timeout")))}i(F7,"onParserTimeout");async function Iqe(t,e){t[$p]=e,xM||(xM=await bM,bM=null),e[lE]=!1,e[Yu]=!1,e[Fs]=!1,e[dE]=!1,e[Gp]=0,e[qp]=null,e[RM]=!1,e[Vt]=new BM(t,e,xM),ib(e,"error",function(n){Pe(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID");let s=this[Vt];if(n.code==="ECONNRESET"&&s.statusCode&&!s.shouldKeepAlive){let o=s.finish();o&&(this[ps]=o,this[cb][O7](o));return}this[ps]=n,this[cb][O7](n)}),ib(e,"readable",function(){let n=this[Vt];n&&n.readMore()}),ib(e,"end",function(){let n=this[Vt];if(n.statusCode&&!n.shouldKeepAlive){let s=n.finish();s&&Oe.destroy(this,s);return}Oe.destroy(this,new wA("other side closed",Oe.getSocketInfo(this)))}),ib(e,"close",function(){let n=this[cb],s=this[Vt];V7(this),s&&(!this[ps]&&s.statusCode&&!s.shouldKeepAlive&&(this[ps]=s.finish()||this[ps]),this[Vt].destroy(),this[Vt]=null);let o=this[ps]||new wA("closed",Oe.getSocketInfo(this));if(n[$p]=null,n[z7]=null,n.destroyed){Pe(n[H7]===0);let a=n[Ki].splice(n[si]);for(let c=0;c0&&o.code!=="UND_ERR_INFO"){let a=n[Ki][n[si]];n[Ki][n[si]++]=null,Oe.errorRequest(n,a,o)}n[dqe]=n[si],Pe(n[Yr]===0),n.emit("disconnect",n[G7],[n],o),n[kl]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h1",defaultPipelining:1,write(...n){return Sqe(t,...n)},resume(){wqe(t)},destroy(n,s){r?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(n){return!!(e[Yu]||e[Fs]||e[dE]||e[Gp]===1||n&&(t[Yr]>0&&!n.idempotent||t[Yr]>0&&(n.upgrade||n.method==="CONNECT")||t[Yr]>0&&Oe.bodyLength(n.body)!==0&&(Oe.isStream(n.body)||Oe.isAsyncIterable(n.body)||Oe.isFormDataLike(n.body))))}}}i(Iqe,"connectH1");function V7(t){t[qp]&&(clearTimeout(t[qp]),t[qp]=null),t[Gp]=0}i(V7,"clearIdleSocketValidation");function xqe(t,e){e[Gp]=1,e[qp]=setTimeout(()=>{e[qp]=null,e[Gp]=2,t[$p]===e&&!e.destroyed&&t[kl]()},0),e[qp].unref?.()}i(xqe,"scheduleIdleSocketValidation");function wqe(t){let e=t[$p];if(e&&!e.destroyed){if(t[k7]===0?!e[lE]&&e.unref&&(e.unref(),e[lE]=!0):e[lE]&&e.ref&&(e.ref(),e[lE]=!1),t[Yr]===0&&t[H7]>0&&e[RM]){if(e[Gp]===0)return xqe(t,e),e[Vt].readMore(),e.destroyed,void 0;if(e[Gp]===1)return e[Vt].readMore(),e.destroyed,void 0}if(t[Yr]===0&&(e[Vt].readMore(),e.destroyed))return;if(t[k7]===0)e[Vt].timeoutType!==SM&&e[Vt].setTimeout(t[db],SM);else if(t[Yr]>0&&e[Vt].statusCode<200&&e[Vt].timeoutType!==SA){let r=t[Ki][t[si]],n=r.headersTimeout!=null?r.headersTimeout:t[fqe];e[Vt].setTimeout(n,SA)}}}i(wqe,"resumeH1");function bqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(bqe,"shouldSendContentLength");function Sqe(t,e){let{method:r,path:n,host:s,upgrade:o,blocking:a,reset:c}=e,{body:l,headers:u,contentLength:d}=e,p=r==="PUT"||r==="POST"||r==="PATCH"||r==="QUERY"||r==="PROPFIND"||r==="PROPPATCH";if(Oe.isFormDataLike(l)){IM||(IM=xA().extractBody);let[x,w]=IM(l);e.contentType==null&&u.push("content-type",w),l=x.stream,d=x.length}else Oe.isBlobLike(l)&&e.contentType==null&&l.type&&u.push("content-type",l.type);l&&typeof l.read=="function"&&l.read(0);let m=Oe.bodyLength(l);if(d=m??d,d===null&&(d=e.contentLength),d===0&&!p&&(d=null),bqe(r)&&d>0&&e.contentLength!==null&&e.contentLength!==d){if(t[wM])return Oe.errorRequest(t,e,new Up),!1;process.emitWarning(new Up)}let f=t[$p];V7(f);let g=i(x=>{e.aborted||e.completed||(Oe.errorRequest(t,e,x||new $7),Oe.destroy(l),Oe.destroy(f,new bA("aborted")))},"abort");try{e.onConnect(g)}catch(x){Oe.errorRequest(t,e,x)}if(e.aborted)return!1;r==="HEAD"&&(f[Fs]=!0),(o||r==="CONNECT")&&(f[Fs]=!0),c!=null&&(f[Fs]=c),t[L7]&&f[hqe]++>=t[L7]&&(f[Fs]=!0),a&&(f[dE]=!0);let E=`${r} ${n} HTTP/1.1\r `;if(typeof s=="string"?E+=`host: ${s}\r -`:E+=t[eqe],o?E+=`connection: upgrade\r +`:E+=t[uqe],o?E+=`connection: upgrade\r upgrade: ${o}\r -`:t[sb]&&!f[Ms]?E+=`connection: keep-alive\r +`:t[lb]&&!f[Fs]?E+=`connection: keep-alive\r `:E+=`connection: close\r `,Array.isArray(u))for(let x=0;x{e.removeListener("error",f)}),!l){let g=new _7;queueMicrotask(()=>f(g))}},"onClose"),f=i(function(g){if(!l){if(l=!0,Le(s.destroyed||s[Yu]&&r[$n]<=1),s.off("drain",p).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",m),!g)try{u.end()}catch(E){g=E}u.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?je.destroy(e,g):je.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",m),e.resume&&e.resume(),s.on("drain",p).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(m)}i(gqe,"writeStream");function P7(t,e,r,n,s,o,a,c){try{e?je.isBuffer(e)&&(Le(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${o}\r +`}return Q7.sendHeaders.hasSubscribers&&Q7.sendHeaders.publish({request:e,headers:E,socket:f}),!l||m===0?U7(g,null,t,e,f,d,E,p):Oe.isBuffer(l)?U7(g,l,t,e,f,d,E,p):Oe.isBlobLike(l)?typeof l.stream=="function"?q7(g,l.stream(),t,e,f,d,E,p):Rqe(g,l,t,e,f,d,E,p):Oe.isStream(l)?Bqe(g,l,t,e,f,d,E,p):Oe.isIterable(l)?q7(g,l,t,e,f,d,E,p):Pe(!1),!0}i(Sqe,"writeH1");function Bqe(t,e,r,n,s,o,a,c){Pe(o!==0||r[Yr]===0,"stream body cannot be pipelined");let l=!1,u=new pb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a}),d=i(function(g){if(!l)try{!u.write(g)&&this.pause&&this.pause()}catch(E){Oe.destroy(this,E)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),m=i(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let g=new $7;queueMicrotask(()=>f(g))}},"onClose"),f=i(function(g){if(!l){if(l=!0,Pe(s.destroyed||s[Yu]&&r[Yr]<=1),s.off("drain",p).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",m),!g)try{u.end()}catch(E){g=E}u.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Oe.destroy(e,g):Oe.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",m),e.resume&&e.resume(),s.on("drain",p).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(m)}i(Bqe,"writeStream");function U7(t,e,r,n,s,o,a,c){try{e?Oe.isBuffer(e)&&(Pe(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${o}\r \r -`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[Ms]=!0)):o===0?s.write(`${a}content-length: 0\r +`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[Fs]=!0)):o===0?s.write(`${a}content-length: 0\r \r -`,"latin1"):(Le(o===null,"no body must not have content length"),s.write(`${a}\r -`,"latin1")),n.onRequestSent(),r[Vu]()}catch(l){t(l)}}i(P7,"writeBuffer");async function yqe(t,e,r,n,s,o,a,c){Le(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Up;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${o}\r +`,"latin1"):(Pe(o===null,"no body must not have content length"),s.write(`${a}\r +`,"latin1")),n.onRequestSent(),r[kl]()}catch(l){t(l)}}i(U7,"writeBuffer");async function Rqe(t,e,r,n,s,o,a,c){Pe(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Up;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${o}\r \r -`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[Ms]=!0),r[Vu]()}catch(l){t(l)}}i(yqe,"writeBlob");async function v7(t,e,r,n,s,o,a,c){Le(o!==0||r[$n]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let m=l;l=null,m()}}i(u,"onDrain");let d=i(()=>new Promise((m,f)=>{Le(l===null),s[ni]?f(s[ni]):l=m}),"waitForDrain");s.on("close",u).on("drain",u);let p=new cb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let m of e){if(s[ni])throw s[ni];p.write(m)||await d()}p.end()}catch(m){p.destroy(m)}finally{s.off("close",u).off("drain",u)}}i(v7,"writeIterable");var cb=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Yu]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[ni])throw r[ni];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[EM])throw new Up;process.emitWarning(new Up)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Ms]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r +`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[Fs]=!0),r[kl]()}catch(l){t(l)}}i(Rqe,"writeBlob");async function q7(t,e,r,n,s,o,a,c){Pe(o!==0||r[Yr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let m=l;l=null,m()}}i(u,"onDrain");let d=i(()=>new Promise((m,f)=>{Pe(l===null),s[ps]?f(s[ps]):l=m}),"waitForDrain");s.on("close",u).on("drain",u);let p=new pb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let m of e){if(s[ps])throw s[ps];p.write(m)||await d()}p.end()}catch(m){p.destroy(m)}finally{s.off("close",u).off("drain",u)}}i(q7,"writeIterable");var pb=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Yu]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[ps])throw r[ps];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[wM])throw new Up;process.emitWarning(new Up)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Fs]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r `,"latin1"):r.write(`${l}content-length: ${s}\r \r `,"latin1")),s===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[Cr].timeout&&r[Cr].timeoutType===xA&&r[Cr].timeout.refresh&&r[Cr].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:o,header:a,request:c}=this;if(c.onRequestSent(),e[Yu]=!1,e[ni])throw e[ni];if(!e.destroyed){if(s===0?o?e.write(`${a}content-length: 0\r +`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[Vt].timeout&&r[Vt].timeoutType===SA&&r[Vt].timeout.refresh&&r[Vt].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:o,header:a,request:c}=this;if(c.onRequestSent(),e[Yu]=!1,e[ps])throw e[ps];if(!e.destroyed){if(s===0?o?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&&s!==r){if(n[EM])throw new Up;process.emitWarning(new Up)}e[Cr].timeout&&e[Cr].timeoutType===xA&&e[Cr].timeout.refresh&&e[Cr].timeout.refresh(),n[Vu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Yu]=!1,e&&(Le(n[$n]<=1,"pipeline should only contain this request"),s(e))}};k7.exports=mqe});var H7=b((A1t,G7)=>{"use strict";var si=require("node:assert"),{pipeline:Eqe}=require("node:stream"),ft=ut(),{RequestContentLengthMismatchError:wM,RequestAbortedError:O7,SocketError:lE,InformationalError:bM}=bt(),{kUrl:lb,kReset:db,kClient:wA,kRunning:pb,kPending:Cqe,kQueue:Wu,kPendingIdx:SM,kRunningIdx:Ki,kError:Zi,kSocket:An,kStrictContentLength:Iqe,kOnError:BM,kMaxConcurrentStreams:$7,kHTTP2Session:Xi,kResume:ju,kSize:xqe,kHTTPContext:wqe}=Zt(),kl=Symbol("open streams"),M7,F7=!1,ub;try{ub=require("node:http2")}catch{ub={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:bqe,HTTP2_HEADER_METHOD:Sqe,HTTP2_HEADER_PATH:Bqe,HTTP2_HEADER_SCHEME:Rqe,HTTP2_HEADER_CONTENT_LENGTH:Nqe,HTTP2_HEADER_EXPECT:Tqe,HTTP2_HEADER_STATUS:Pqe}}=ub;function vqe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}i(vqe,"parseH2Headers");async function _qe(t,e){t[An]=e,F7||(F7=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=ub.connect(t[lb],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[$7]});r[kl]=0,r[wA]=t,r[An]=e,ft.addListener(r,"error",Dqe),ft.addListener(r,"frameError",kqe),ft.addListener(r,"end",Lqe),ft.addListener(r,"goaway",Oqe),ft.addListener(r,"close",function(){let{[wA]:s}=this,{[An]:o}=s,a=this[An][Zi]||this[Zi]||new lE("closed",ft.getSocketInfo(o));if(s[Xi]=null,s.destroyed){si(s[Cqe]===0);let c=s[Wu].splice(s[Ki]);for(let l=0;l{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return Fqe(t,...s)},resume(){Qqe(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(_qe,"connectH2");function Qqe(t){let e=t[An];e?.destroyed===!1&&(t[xqe]===0&&t[$7]===0?(e.unref(),t[Xi].unref()):(e.ref(),t[Xi].ref()))}i(Qqe,"resumeH2");function Dqe(t){si(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[An][Zi]=t,this[wA][BM](t)}i(Dqe,"onHttp2SessionError");function kqe(t,e,r){if(r===0){let n=new bM(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[An][Zi]=n,this[wA][BM](n)}}i(kqe,"onHttp2FrameError");function Lqe(){let t=new lE("other side closed",ft.getSocketInfo(this[An]));this.destroy(t),ft.destroy(this[An],t)}i(Lqe,"onHttp2SessionEnd");function Oqe(t){let e=this[Zi]||new lE(`HTTP/2: "GOAWAY" frame received with code ${t}`,ft.getSocketInfo(this)),r=this[wA];if(r[An]=null,r[wqe]=null,this[Xi]!=null&&(this[Xi].destroy(e),this[Xi]=null),ft.destroy(this[An],e),r[Ki]{e.aborted||e.completed||(Q=Q||new O7,ft.errorRequest(t,e,Q),m!=null&&ft.destroy(m,Q),ft.destroy(d,Q),t[Wu][t[Ki]++]=null,t[ju]())},"abort");try{e.onConnect(E)}catch(Q){ft.errorRequest(t,e,Q)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),m=r.request(p,{endStream:!1,signal:l}),m.id&&!m.pending?(e.onUpgrade(null,null,m),++r[kl],t[Wu][t[Ki]++]=null):m.once("ready",()=>{e.onUpgrade(null,null,m),++r[kl],t[Wu][t[Ki]++]=null}),m.once("close",()=>{r[kl]-=1,r[kl]===0&&r.unref()}),!0;p[Bqe]=s,p[Rqe]="https";let x=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let w=ft.bodyLength(d);if(ft.isFormDataLike(d)){M7??=EA().extractBody;let[Q,q]=M7(d);p["content-type"]=q,d=Q.stream,w=Q.length}if(w==null&&(w=e.contentLength),(w===0||!x)&&(w=null),Mqe(n)&&w>0&&e.contentLength!=null&&e.contentLength!==w){if(t[Iqe])return ft.errorRequest(t,e,new wM),!1;process.emitWarning(new wM)}w!=null&&(si(d,"no body must not have content length"),p[Nqe]=`${w}`),r.ref();let S=n==="GET"||n==="HEAD"||d===null;return c?(p[Tqe]="100-continue",m=r.request(p,{endStream:S,signal:l}),m.once("continue",P)):(m=r.request(p,{endStream:S,signal:l}),P()),++r[kl],m.once("response",Q=>{let{[Pqe]:q,...M}=Q;if(e.onResponseStarted(),e.aborted){let V=new O7;ft.errorRequest(t,e,V),ft.destroy(m,V);return}e.onHeaders(Number(q),vqe(M),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",V=>{e.onData(V)===!1&&m.pause()})}),m.once("end",()=>{(m.state?.state==null||m.state.state<6)&&e.onComplete([]),r[kl]===0&&r.unref(),E(new bM("HTTP/2: stream half-closed (remote)")),t[Wu][t[Ki]++]=null,t[SM]=t[Ki],t[ju]()}),m.once("close",()=>{r[kl]-=1,r[kl]===0&&r.unref()}),m.once("error",function(Q){E(Q)}),m.once("frameError",(Q,q)=>{E(new bM(`HTTP/2: "frameError" received - type ${Q}, code ${q}`))}),!0;function P(){!d||w===0?U7(E,m,null,t,e,t[An],w,x):ft.isBuffer(d)?U7(E,m,d,t,e,t[An],w,x):ft.isBlobLike(d)?typeof d.stream=="function"?q7(E,m,d.stream(),t,e,t[An],w,x):qqe(E,m,d,t,e,t[An],w,x):ft.isStream(d)?Uqe(E,t[An],x,m,d,t,e,w):ft.isIterable(d)?q7(E,m,d,t,e,t[An],w,x):si(!1)}i(P,"writeBodyH2")}i(Fqe,"writeH2");function U7(t,e,r,n,s,o,a,c){try{r!=null&&ft.isBuffer(r)&&(si(a===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),c||(o[db]=!0),s.onRequestSent(),n[ju]()}catch(l){t(l)}}i(U7,"writeBuffer");function Uqe(t,e,r,n,s,o,a,c){si(c!==0||o[pb]===0,"stream body cannot be pipelined");let l=Eqe(s,n,d=>{d?(ft.destroy(l,d),t(d)):(ft.removeAllListeners(l),a.onRequestSent(),r||(e[db]=!0),o[ju]())});ft.addListener(l,"data",u);function u(d){a.onBodySent(d)}i(u,"onPipeData")}i(Uqe,"writeStream");async function qqe(t,e,r,n,s,o,a,c){si(a===r.size,"blob body must have content length");try{if(a!=null&&a!==r.size)throw new wM;let l=Buffer.from(await r.arrayBuffer());e.cork(),e.write(l),e.uncork(),e.end(),s.onBodySent(l),s.onRequestSent(),c||(o[db]=!0),n[ju]()}catch(l){t(l)}}i(qqe,"writeBlob");async function q7(t,e,r,n,s,o,a,c){si(a!==0||n[pb]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}i(u,"onDrain");let d=i(()=>new Promise((p,m)=>{si(l===null),o[Zi]?m(o[Zi]):l=p}),"waitForDrain");e.on("close",u).on("drain",u);try{for await(let p of r){if(o[Zi])throw o[Zi];let m=e.write(p);s.onBodySent(p),m||await d()}e.end(),s.onRequestSent(),c||(o[db]=!0),n[ju]()}catch(p){t(p)}finally{e.off("close",u).off("drain",u)}}i(q7,"writeIterable");G7.exports=_qe});var fb=b((g1t,Y7)=>{"use strict";var Va=ut(),{kBodyUsed:uE}=Zt(),NM=require("node:assert"),{InvalidArgumentError:$qe}=bt(),Gqe=require("node:events"),Hqe=[300,301,302,303,307,308],z7=Symbol("body"),mb=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[z7]=e,this[uE]=!1}async*[Symbol.asyncIterator](){NM(!this[uE],"disturbed"),this[uE]=!0,yield*this[z7]}},RM=class{static{i(this,"RedirectHandler")}constructor(e,r,n,s){if(r!=null&&(!Number.isInteger(r)||r<0))throw new $qe("maxRedirections must be a positive number");Va.validateHandler(s,n.method,n.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...n,maxRedirections:0},this.maxRedirections=r,this.handler=s,this.history=[],this.redirectionLimitReached=!1,Va.isStream(this.opts.body)?(Va.bodyLength(this.opts.body)===0&&this.opts.body.on("data",function(){NM(!1)}),typeof this.opts.body.readableDidRead!="boolean"&&(this.opts.body[uE]=!1,Gqe.prototype.on.call(this.opts.body,"data",function(){this[uE]=!0}))):this.opts.body&&typeof this.opts.body.pipeTo=="function"?this.opts.body=new mb(this.opts.body):this.opts.body&&typeof this.opts.body!="string"&&!ArrayBuffer.isView(this.opts.body)&&Va.isIterable(this.opts.body)&&(this.opts.body=new mb(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,s){if(this.location=this.history.length>=this.maxRedirections||Va.isDisturbed(this.opts.body)?null:zqe(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,s);let{origin:o,pathname:a,search:c}=Va.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),l=c?`${a}${c}`:a;this.opts.headers=Vqe(this.opts.headers,e===303,this.opts.origin!==o),this.opts.path=l,this.opts.origin=o,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 zqe(t,e){if(Hqe.indexOf(t)===-1)return null;for(let r=0;r{"use strict";var Yqe=fb();function Wqe({maxRedirections:t}){return e=>i(function(n,s){let{maxRedirections:o=t}=n;if(!o)return e(n,s);let a=new Yqe(e,o,n,s);return n={...n,maxRedirections:0},e(n,a)},"Intercept")}i(Wqe,"createRedirectInterceptor");W7.exports=Wqe});var BA=b((I1t,sZ)=>{"use strict";var Ll=require("node:assert"),eZ=require("node:net"),jqe=require("node:http"),qp=ut(),{channels:bA}=iA(),Jqe=lX(),Kqe=uA(),{InvalidArgumentError:vr,InformationalError:Xqe,ClientDestroyedError:Zqe}=bt(),e$e=Ky(),{kUrl:Ya,kServerName:Ju,kClient:t$e,kBusy:TM,kConnect:r$e,kResuming:$p,kRunning:AE,kPending:hE,kSize:fE,kQueue:ea,kConnected:n$e,kConnecting:SA,kNeedDrain:Xu,kKeepAliveDefaultTimeout:j7,kHostHeader:s$e,kPendingIdx:ta,kRunningIdx:Ol,kError:o$e,kPipelining:hb,kKeepAliveTimeoutValue:i$e,kMaxHeadersSize:a$e,kKeepAliveMaxTimeout:c$e,kKeepAliveTimeoutThreshold:l$e,kHeadersTimeout:u$e,kBodyTimeout:d$e,kStrictContentLength:p$e,kConnector:dE,kMaxRedirections:m$e,kMaxRequests:PM,kCounter:f$e,kClose:A$e,kDestroy:h$e,kDispatch:g$e,kInterceptors:J7,kLocalAddress:pE,kMaxResponseSize:y$e,kOnError:E$e,kHTTPContext:_r,kMaxConcurrentStreams:C$e,kResume:mE}=Zt(),I$e=L7(),x$e=H7(),K7=!1,Ku=Symbol("kClosedResolve"),X7=i(()=>{},"noop");function tZ(t){return t[hb]??t[_r]?.defaultPipelining??1}i(tZ,"getPipelining");var vM=class extends Kqe{static{i(this,"Client")}constructor(e,{interceptors:r,maxHeaderSize:n,headersTimeout:s,socketTimeout:o,requestTimeout:a,connectTimeout:c,bodyTimeout:l,idleTimeout:u,keepAlive:d,keepAliveTimeout:p,maxKeepAliveTimeout:m,keepAliveMaxTimeout:f,keepAliveTimeoutThreshold:g,socketPath:E,pipelining:x,tls:w,strictContentLength:S,maxCachedSessions:P,maxRedirections:Q,connect:q,maxRequestsPerClient:M,localAddress:V,maxResponseSize:pe,autoSelectFamily:ke,autoSelectFamilyAttemptTimeout:Re,maxConcurrentStreams:se,allowH2:ye}={}){if(super(),d!==void 0)throw new vr("unsupported keepAlive, use pipelining=0 instead");if(o!==void 0)throw new vr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new vr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(u!==void 0)throw new vr("unsupported idleTimeout, use keepAliveTimeout instead");if(m!==void 0)throw new vr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(n!=null&&!Number.isFinite(n))throw new vr("invalid maxHeaderSize");if(E!=null&&typeof E!="string")throw new vr("invalid socketPath");if(c!=null&&(!Number.isFinite(c)||c<0))throw new vr("invalid connectTimeout");if(p!=null&&(!Number.isFinite(p)||p<=0))throw new vr("invalid keepAliveTimeout");if(f!=null&&(!Number.isFinite(f)||f<=0))throw new vr("invalid keepAliveMaxTimeout");if(g!=null&&!Number.isFinite(g))throw new vr("invalid keepAliveTimeoutThreshold");if(s!=null&&(!Number.isInteger(s)||s<0))throw new vr("headersTimeout must be a positive integer or zero");if(l!=null&&(!Number.isInteger(l)||l<0))throw new vr("bodyTimeout must be a positive integer or zero");if(q!=null&&typeof q!="function"&&typeof q!="object")throw new vr("connect must be a function or an object");if(Q!=null&&(!Number.isInteger(Q)||Q<0))throw new vr("maxRedirections must be a positive number");if(M!=null&&(!Number.isInteger(M)||M<0))throw new vr("maxRequestsPerClient must be a positive number");if(V!=null&&(typeof V!="string"||eZ.isIP(V)===0))throw new vr("localAddress must be valid string IP address");if(pe!=null&&(!Number.isInteger(pe)||pe<-1))throw new vr("maxResponseSize must be a positive number");if(Re!=null&&(!Number.isInteger(Re)||Re<-1))throw new vr("autoSelectFamilyAttemptTimeout must be a positive number");if(ye!=null&&typeof ye!="boolean")throw new vr("allowH2 must be a valid boolean value");if(se!=null&&(typeof se!="number"||se<1))throw new vr("maxConcurrentStreams must be a positive integer, greater than 0");typeof q!="function"&&(q=e$e({...w,maxCachedSessions:P,allowH2:ye,socketPath:E,timeout:c,...ke?{autoSelectFamily:ke,autoSelectFamilyAttemptTimeout:Re}:void 0,...q})),r?.Client&&Array.isArray(r.Client)?(this[J7]=r.Client,K7||(K7=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"}))):this[J7]=[w$e({maxRedirections:Q})],this[Ya]=qp.parseOrigin(e),this[dE]=q,this[hb]=x??1,this[a$e]=n||jqe.maxHeaderSize,this[j7]=p??4e3,this[c$e]=f??6e5,this[l$e]=g??2e3,this[i$e]=this[j7],this[Ju]=null,this[pE]=V??null,this[$p]=0,this[Xu]=0,this[s$e]=`host: ${this[Ya].hostname}${this[Ya].port?`:${this[Ya].port}`:""}\r -`,this[d$e]=l??3e5,this[u$e]=s??3e5,this[p$e]=S??!0,this[m$e]=Q,this[PM]=M,this[Ku]=null,this[y$e]=pe>-1?pe:-1,this[C$e]=se??100,this[_r]=null,this[ea]=[],this[Ol]=0,this[ta]=0,this[mE]=H=>_M(this,H),this[E$e]=H=>rZ(this,H)}get pipelining(){return this[hb]}set pipelining(e){this[hb]=e,this[mE](!0)}get[hE](){return this[ea].length-this[ta]}get[AE](){return this[ta]-this[Ol]}get[fE](){return this[ea].length-this[Ol]}get[n$e](){return!!this[_r]&&!this[SA]&&!this[_r].destroyed}get[TM](){return!!(this[_r]?.busy(null)||this[fE]>=(tZ(this)||1)||this[hE]>0)}[r$e](e){nZ(this),this.once("connect",e)}[g$e](e,r){let n=e.origin||this[Ya].origin,s=new Jqe(n,e,r);return this[ea].push(s),this[$p]||(qp.bodyLength(s.body)==null&&qp.isIterable(s.body)?(this[$p]=1,queueMicrotask(()=>_M(this))):this[mE](!0)),this[$p]&&this[Xu]!==2&&this[TM]&&(this[Xu]=2),this[Xu]<2}async[A$e](){return new Promise(e=>{this[fE]?this[Ku]=e:e(null)})}async[h$e](e){return new Promise(r=>{let n=this[ea].splice(this[ta]);for(let o=0;o{this[Ku]&&(this[Ku](),this[Ku]=null),r(null)},"callback");this[_r]?(this[_r].destroy(e,s),this[_r]=null):queueMicrotask(s),this[mE]()})}},w$e=Ab();function rZ(t,e){if(t[AE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ll(t[ta]===t[Ol]);let r=t[ea].splice(t[Ol]);for(let n=0;n{t[dE]({host:e,hostname:r,protocol:n,port:s,servername:t[Ju],localAddress:t[pE]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){qp.destroy(o.on("error",X7),new Zqe);return}Ll(o);try{t[_r]=o.alpnProtocol==="h2"?await x$e(t,o):await I$e(t,o)}catch(a){throw o.destroy().on("error",X7),a}t[SA]=!1,o[f$e]=0,o[PM]=t[PM],o[t$e]=t,o[o$e]=null,bA.connected.hasSubscribers&&bA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[_r]?.version,servername:t[Ju],localAddress:t[pE]},connector:t[dE],socket:o}),t.emit("connect",t[Ya],[t])}catch(o){if(t.destroyed)return;if(t[SA]=!1,bA.connectError.hasSubscribers&&bA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[_r]?.version,servername:t[Ju],localAddress:t[pE]},connector:t[dE],error:o}),o.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ll(t[AE]===0);t[hE]>0&&t[ea][t[ta]].servername===t[Ju];){let a=t[ea][t[ta]++];qp.errorRequest(t,a,o)}else rZ(t,o);t.emit("connectionError",t[Ya],[t],o)}t[mE]()}i(nZ,"connect");function Z7(t){t[Xu]=0,t.emit("drain",t[Ya],[t])}i(Z7,"emitDrain");function _M(t,e){t[$p]!==2&&(t[$p]=2,b$e(t,e),t[$p]=0,t[Ol]>256&&(t[ea].splice(0,t[Ol]),t[ta]-=t[Ol],t[Ol]=0))}i(_M,"resume");function b$e(t,e){for(;;){if(t.destroyed){Ll(t[hE]===0);return}if(t[Ku]&&!t[fE]){t[Ku](),t[Ku]=null;return}if(t[_r]&&t[_r].resume(),t[TM])t[Xu]=2;else if(t[Xu]===2){e?(t[Xu]=1,queueMicrotask(()=>Z7(t))):Z7(t);continue}if(t[hE]===0||t[AE]>=(tZ(t)||1))return;let r=t[ea][t[ta]];if(t[Ya].protocol==="https:"&&t[Ju]!==r.servername){if(t[AE]>0)return;t[Ju]=r.servername,t[_r]?.destroy(new Xqe("servername changed"),()=>{t[_r]=null,_M(t)})}if(t[SA])return;if(!t[_r]){nZ(t);return}if(t[_r].destroyed||t[_r].busy(r))return;!r.aborted&&t[_r].write(r)?t[ta]++:t[ea].splice(t[ta],1)}}i(b$e,"_resume");sZ.exports=vM});var QM=b((b1t,oZ)=>{"use strict";var gb=class{static{i(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)}};oZ.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new gb}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new gb),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var aZ=b((B1t,iZ)=>{var{kFree:S$e,kConnected:B$e,kPending:R$e,kQueued:N$e,kRunning:T$e,kSize:P$e}=Zt(),Gp=Symbol("pool"),DM=class{static{i(this,"PoolStats")}constructor(e){this[Gp]=e}get connected(){return this[Gp][B$e]}get free(){return this[Gp][S$e]}get pending(){return this[Gp][R$e]}get queued(){return this[Gp][N$e]}get running(){return this[Gp][T$e]}get size(){return this[Gp][P$e]}};iZ.exports=DM});var UM=b((N1t,gZ)=>{"use strict";var v$e=uA(),_$e=QM(),{kConnected:kM,kSize:cZ,kRunning:lZ,kPending:uZ,kQueued:gE,kBusy:Q$e,kFree:D$e,kUrl:k$e,kClose:L$e,kDestroy:O$e,kDispatch:M$e}=Zt(),F$e=aZ(),Fs=Symbol("clients"),ps=Symbol("needDrain"),yE=Symbol("queue"),LM=Symbol("closed resolve"),OM=Symbol("onDrain"),dZ=Symbol("onConnect"),pZ=Symbol("onDisconnect"),mZ=Symbol("onConnectionError"),MM=Symbol("get dispatcher"),AZ=Symbol("add client"),hZ=Symbol("remove client"),fZ=Symbol("stats"),FM=class extends v$e{static{i(this,"PoolBase")}constructor(){super(),this[yE]=new _$e,this[Fs]=[],this[gE]=0;let e=this;this[OM]=i(function(n,s){let o=e[yE],a=!1;for(;!a;){let c=o.shift();if(!c)break;e[gE]--,a=!this.dispatch(c.opts,c.handler)}this[ps]=a,!this[ps]&&e[ps]&&(e[ps]=!1,e.emit("drain",n,[e,...s])),e[LM]&&o.isEmpty()&&Promise.all(e[Fs].map(c=>c.close())).then(e[LM])},"onDrain"),this[dZ]=(r,n)=>{e.emit("connect",r,[e,...n])},this[pZ]=(r,n,s)=>{e.emit("disconnect",r,[e,...n],s)},this[mZ]=(r,n,s)=>{e.emit("connectionError",r,[e,...n],s)},this[fZ]=new F$e(this)}get[Q$e](){return this[ps]}get[kM](){return this[Fs].filter(e=>e[kM]).length}get[D$e](){return this[Fs].filter(e=>e[kM]&&!e[ps]).length}get[uZ](){let e=this[gE];for(let{[uZ]:r}of this[Fs])e+=r;return e}get[lZ](){let e=0;for(let{[lZ]:r}of this[Fs])e+=r;return e}get[cZ](){let e=this[gE];for(let{[cZ]:r}of this[Fs])e+=r;return e}get stats(){return this[fZ]}async[L$e](){this[yE].isEmpty()?await Promise.all(this[Fs].map(e=>e.close())):await new Promise(e=>{this[LM]=e})}async[O$e](e){for(;;){let r=this[yE].shift();if(!r)break;r.handler.onError(e)}await Promise.all(this[Fs].map(r=>r.destroy(e)))}[M$e](e,r){let n=this[MM]();return n?n.dispatch(e,r)||(n[ps]=!0,this[ps]=!this[MM]()):(this[ps]=!0,this[yE].push({opts:e,handler:r}),this[gE]++),!this[ps]}[AZ](e){return e.on("drain",this[OM]).on("connect",this[dZ]).on("disconnect",this[pZ]).on("connectionError",this[mZ]),this[Fs].push(e),this[ps]&&queueMicrotask(()=>{this[ps]&&this[OM](e[k$e],[this,e])}),this}[hZ](e){e.close(()=>{let r=this[Fs].indexOf(e);r!==-1&&this[Fs].splice(r,1)}),this[ps]=this[Fs].some(r=>!r[ps]&&r.closed!==!0&&r.destroyed!==!0)}};gZ.exports={PoolBase:FM,kClients:Fs,kNeedDrain:ps,kAddClient:AZ,kRemoveClient:hZ,kGetDispatcher:MM}});var RA=b((P1t,IZ)=>{"use strict";var{PoolBase:U$e,kClients:yb,kNeedDrain:q$e,kAddClient:$$e,kGetDispatcher:G$e}=UM(),H$e=BA(),{InvalidArgumentError:qM}=bt(),yZ=ut(),{kUrl:EZ,kInterceptors:z$e}=Zt(),V$e=Ky(),$M=Symbol("options"),GM=Symbol("connections"),CZ=Symbol("factory");function Y$e(t,e){return new H$e(t,e)}i(Y$e,"defaultFactory");var HM=class extends U$e{static{i(this,"Pool")}constructor(e,{connections:r,factory:n=Y$e,connect:s,connectTimeout:o,tls:a,maxCachedSessions:c,socketPath:l,autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d,allowH2:p,...m}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new qM("invalid connections");if(typeof n!="function")throw new qM("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new qM("connect must be a function or an object");typeof s!="function"&&(s=V$e({...a,maxCachedSessions:c,allowH2:p,socketPath:l,timeout:o,...u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d}:void 0,...s})),this[z$e]=m.interceptors?.Pool&&Array.isArray(m.interceptors.Pool)?m.interceptors.Pool:[],this[GM]=r||null,this[EZ]=yZ.parseOrigin(e),this[$M]={...yZ.deepClone(m),connect:s,allowH2:p},this[$M].interceptors=m.interceptors?{...m.interceptors}:void 0,this[CZ]=n,this.on("connectionError",(f,g,E)=>{for(let x of g){let w=this[yb].indexOf(x);w!==-1&&this[yb].splice(w,1)}})}[G$e](){for(let e of this[yb])if(!e[q$e])return e;if(!this[GM]||this[yb].length{"use strict";var{BalancedPoolMissingUpstreamError:W$e,InvalidArgumentError:j$e}=bt(),{PoolBase:J$e,kClients:Gn,kNeedDrain:EE,kAddClient:K$e,kRemoveClient:X$e,kGetDispatcher:Z$e}=UM(),eGe=RA(),{kUrl:zM,kInterceptors:tGe}=Zt(),{parseOrigin:xZ}=ut(),wZ=Symbol("factory"),Eb=Symbol("options"),bZ=Symbol("kGreatestCommonDivisor"),Hp=Symbol("kCurrentWeight"),zp=Symbol("kIndex"),oi=Symbol("kWeight"),Cb=Symbol("kMaxWeightPerServer"),Ib=Symbol("kErrorPenalty");function rGe(t,e){if(t===0)return e;for(;e!==0;){let r=e;e=t%e,t=r}return t}i(rGe,"getGreatestCommonDivisor");function nGe(t,e){return new eGe(t,e)}i(nGe,"defaultFactory");var VM=class extends J$e{static{i(this,"BalancedPool")}constructor(e=[],{factory:r=nGe,...n}={}){if(super(),this[Eb]=n,this[zp]=-1,this[Hp]=0,this[Cb]=this[Eb].maxWeightPerServer||100,this[Ib]=this[Eb].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof r!="function")throw new j$e("factory must be a function.");this[tGe]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[wZ]=r;for(let s of e)this.addUpstream(s);this._updateBalancedPoolStats()}addUpstream(e){let r=xZ(e).origin;if(this[Gn].find(s=>s[zM].origin===r&&s.closed!==!0&&s.destroyed!==!0))return this;let n=this[wZ](r,Object.assign({},this[Eb]));this[K$e](n),n.on("connect",()=>{n[oi]=Math.min(this[Cb],n[oi]+this[Ib])}),n.on("connectionError",()=>{n[oi]=Math.max(1,n[oi]-this[Ib]),this._updateBalancedPoolStats()}),n.on("disconnect",(...s)=>{let o=s[2];o&&o.code==="UND_ERR_SOCKET"&&(n[oi]=Math.max(1,n[oi]-this[Ib]),this._updateBalancedPoolStats())});for(let s of this[Gn])s[oi]=this[Cb];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let r=0;rs[zM].origin===r&&s.closed!==!0&&s.destroyed!==!0);return n&&this[X$e](n),this}get upstreams(){return this[Gn].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[zM].origin)}[Z$e](){if(this[Gn].length===0)throw new W$e;if(!this[Gn].find(o=>!o[EE]&&o.closed!==!0&&o.destroyed!==!0)||this[Gn].map(o=>o[EE]).reduce((o,a)=>o&&a,!0))return;let n=0,s=this[Gn].findIndex(o=>!o[EE]);for(;n++this[Gn][s][oi]&&!o[EE]&&(s=this[zp]),this[zp]===0&&(this[Hp]=this[Hp]-this[bZ],this[Hp]<=0&&(this[Hp]=this[Cb])),o[oi]>=this[Hp]&&!o[EE])return o}return this[Hp]=this[Gn][s][oi],this[zp]=s,this[Gn][s]}};SZ.exports=VM});var NA=b((D1t,QZ)=>{"use strict";var{InvalidArgumentError:xb}=bt(),{kClients:Zu,kRunning:RZ,kClose:sGe,kDestroy:oGe,kDispatch:iGe,kInterceptors:aGe}=Zt(),cGe=uA(),lGe=RA(),uGe=BA(),dGe=ut(),pGe=Ab(),NZ=Symbol("onConnect"),TZ=Symbol("onDisconnect"),PZ=Symbol("onConnectionError"),mGe=Symbol("maxRedirections"),vZ=Symbol("onDrain"),_Z=Symbol("factory"),YM=Symbol("options");function fGe(t,e){return e&&e.connections===1?new uGe(t,e):new lGe(t,e)}i(fGe,"defaultFactory");var WM=class extends cGe{static{i(this,"Agent")}constructor({factory:e=fGe,maxRedirections:r=0,connect:n,...s}={}){if(super(),typeof e!="function")throw new xb("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new xb("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new xb("maxRedirections must be a positive number");n&&typeof n!="function"&&(n={...n}),this[aGe]=s.interceptors?.Agent&&Array.isArray(s.interceptors.Agent)?s.interceptors.Agent:[pGe({maxRedirections:r})],this[YM]={...dGe.deepClone(s),connect:n},this[YM].interceptors=s.interceptors?{...s.interceptors}:void 0,this[mGe]=r,this[_Z]=e,this[Zu]=new Map,this[vZ]=(o,a)=>{this.emit("drain",o,[this,...a])},this[NZ]=(o,a)=>{this.emit("connect",o,[this,...a])},this[TZ]=(o,a,c)=>{this.emit("disconnect",o,[this,...a],c)},this[PZ]=(o,a,c)=>{this.emit("connectionError",o,[this,...a],c)}}get[RZ](){let e=0;for(let r of this[Zu].values())e+=r[RZ];return e}[iGe](e,r){let n;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))n=String(e.origin);else throw new xb("opts.origin must be a non-empty string or URL.");let s=this[Zu].get(n);return s||(s=this[_Z](e.origin,this[YM]).on("drain",this[vZ]).on("connect",this[NZ]).on("disconnect",this[TZ]).on("connectionError",this[PZ]),this[Zu].set(n,s)),s.dispatch(e,r)}async[sGe](){let e=[];for(let r of this[Zu].values())e.push(r.close());this[Zu].clear(),await Promise.all(e)}async[oGe](e){let r=[];for(let n of this[Zu].values())r.push(n.destroy(e));this[Zu].clear(),await Promise.all(r)}};QZ.exports=WM});var ZM=b((L1t,HZ)=>{"use strict";var{kProxy:jM,kClose:FZ,kDestroy:UZ,kDispatch:DZ,kInterceptors:AGe}=Zt(),{URL:Vp}=require("node:url"),hGe=NA(),qZ=RA(),$Z=uA(),{InvalidArgumentError:TA,RequestAbortedError:gGe,SecureProxyConnectionError:yGe}=bt(),kZ=Ky(),GZ=BA(),wb=Symbol("proxy agent"),bb=Symbol("proxy client"),ed=Symbol("proxy headers"),JM=Symbol("request tls settings"),LZ=Symbol("proxy tls settings"),OZ=Symbol("connect endpoint function"),MZ=Symbol("tunnel proxy");function EGe(t){return t==="https:"?443:80}i(EGe,"defaultProtocolPort");function CGe(t,e){return new qZ(t,e)}i(CGe,"defaultFactory");var IGe=i(()=>{},"noop");function xGe(t,e){return e.connections===1?new GZ(t,e):new qZ(t,e)}i(xGe,"defaultAgentFactory");var KM=class extends $Z{static{i(this,"Http1ProxyWrapper")}#e;constructor(e,{headers:r={},connect:n,factory:s}){if(super(),!e)throw new TA("Proxy URL is mandatory");this[ed]=r,s?this.#e=s(e,{connect:n}):this.#e=new GZ(e,{connect:n})}[DZ](e,r){let n=r.onHeaders;r.onHeaders=function(c,l,u){if(c===407){typeof r.onError=="function"&&r.onError(new TA("Proxy Authentication Required (407)"));return}n&&n.call(this,c,l,u)};let{origin:s,path:o="/",headers:a={}}=e;if(e.path=s+o,!("host"in a)&&!("Host"in a)){let{host:c}=new Vp(s);a.host=c}return e.headers={...this[ed],...a},this.#e[DZ](e,r)}async[FZ](){return this.#e.close()}async[UZ](e){return this.#e.destroy(e)}},XM=class extends $Z{static{i(this,"ProxyAgent")}constructor(e){if(super(),!e||typeof e=="object"&&!(e instanceof Vp)&&!e.uri)throw new TA("Proxy uri is mandatory");let{clientFactory:r=CGe}=e;if(typeof r!="function")throw new TA("Proxy opts.clientFactory must be a function.");let{proxyTunnel:n=!0}=e,s=this.#e(e),{href:o,origin:a,port:c,protocol:l,username:u,password:d,hostname:p}=s;if(this[jM]={uri:o,protocol:l},this[AGe]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[JM]=e.requestTls,this[LZ]=e.proxyTls,this[ed]=e.headers||{},this[MZ]=n,e.auth&&e.token)throw new TA("opts.auth cannot be used in combination with opts.token");e.auth?this[ed]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ed]["proxy-authorization"]=e.token:u&&d&&(this[ed]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(d)}`).toString("base64")}`);let m=kZ({...e.proxyTls});this[OZ]=kZ({...e.requestTls});let f=e.factory||xGe,g=i((E,x)=>{let{protocol:w}=new Vp(E);return!this[MZ]&&w==="http:"&&this[jM].protocol==="http:"?new KM(this[jM].uri,{headers:this[ed],connect:m,factory:f}):f(E,x)},"factory");this[bb]=r(s,{connect:m}),this[wb]=new hGe({...e,factory:g,connect:i(async(E,x)=>{let w=E.host;E.port||(w+=`:${EGe(E.protocol)}`);try{let{socket:S,statusCode:P}=await this[bb].connect({origin:a,port:c,path:w,signal:E.signal,headers:{...this[ed],host:E.host},servername:this[LZ]?.servername||p});if(P!==200&&(S.on("error",IGe).destroy(),x(new gGe(`Proxy response (${P}) !== 200 when HTTP Tunneling`))),E.protocol!=="https:"){x(null,S);return}let Q;this[JM]?Q=this[JM].servername:Q=E.servername,this[OZ]({...E,servername:Q,httpSocket:S},x)}catch(S){S.code==="ERR_TLS_CERT_ALTNAME_INVALID"?x(new yGe(S)):x(S)}},"connect")})}dispatch(e,r){let n=wGe(e.headers);if(bGe(n),n&&!("host"in n)&&!("Host"in n)){let{host:s}=new Vp(e.origin);n.host=s}return this[wb].dispatch({...e,headers:n},r)}#e(e){return typeof e=="string"?new Vp(e):e instanceof Vp?e:new Vp(e.uri)}async[FZ](){await this[wb].close(),await this[bb].close()}async[UZ](){await this[wb].destroy(),await this[bb].destroy()}};function wGe(t){if(Array.isArray(t)){let e={};for(let r=0;rr.toLowerCase()==="proxy-authorization"))throw new TA("Proxy-Authorization should be sent in ProxyAgent constructor")}i(bGe,"throwIfProxyAuthIsSent");HZ.exports=XM});var JZ=b((M1t,jZ)=>{"use strict";var SGe=uA(),{kClose:BGe,kDestroy:RGe,kClosed:zZ,kDestroyed:VZ,kDispatch:NGe,kNoProxyAgent:CE,kHttpProxyAgent:td,kHttpsProxyAgent:Yp}=Zt(),YZ=ZM(),TGe=NA(),PGe={"http:":80,"https:":443},WZ=!1,eF=class extends SGe{static{i(this,"EnvHttpProxyAgent")}#e=null;#t=null;#s=null;constructor(e={}){super(),this.#s=e,WZ||(WZ=!0,process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"}));let{httpProxy:r,httpsProxy:n,noProxy:s,...o}=e;this[CE]=new TGe(o);let a=r??process.env.http_proxy??process.env.HTTP_PROXY;a?this[td]=new YZ({...o,uri:a}):this[td]=this[CE];let c=n??process.env.https_proxy??process.env.HTTPS_PROXY;c?this[Yp]=new YZ({...o,uri:c}):this[Yp]=this[td],this.#o()}[NGe](e,r){let n=new URL(e.origin);return this.#n(n).dispatch(e,r)}async[BGe](){await this[CE].close(),this[td][zZ]||await this[td].close(),this[Yp][zZ]||await this[Yp].close()}async[RGe](e){await this[CE].destroy(e),this[td][VZ]||await this[td].destroy(e),this[Yp][VZ]||await this[Yp].destroy(e)}#n(e){let{protocol:r,host:n,port:s}=e;return n=n.replace(/:\d*$/,"").toLowerCase(),s=Number.parseInt(s,10)||PGe[r]||0,this.#r(n,s)?r==="https:"?this[Yp]:this[td]:this[CE]}#r(e,r){if(this.#i&&this.#o(),this.#t.length===0)return!0;if(this.#e==="*")return!1;for(let n=0;n{"use strict";var PA=require("node:assert"),{kRetryHandlerDefaultRetry:KZ}=Zt(),{RequestRetryError:IE}=bt(),{isDisturbed:XZ,parseHeaders:vGe,parseRangeHeader:ZZ,wrapRequestBody:_Ge}=ut();function QGe(t){let e=Date.now();return new Date(t).getTime()-e}i(QGe,"calculateRetryAfterHeader");var tF=class t{static{i(this,"RetryHandler")}constructor(e,r){let{retryOptions:n,...s}=e,{retry:o,maxRetries:a,maxTimeout:c,minTimeout:l,timeoutFactor:u,methods:d,errorCodes:p,retryAfter:m,statusCodes:f}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts={...s,body:_Ge(e.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??t[KZ],retryAfter:m??!0,maxTimeout:c??30*1e3,minTimeout:l??500,timeoutFactor:u??2,maxRetries:a??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:f??[500,502,503,504,429],errorCodes:p??["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.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}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[KZ](e,{state:r,opts:n},s){let{statusCode:o,code:a,headers:c}=e,{method:l,retryOptions:u}=n,{maxRetries:d,minTimeout:p,maxTimeout:m,timeoutFactor:f,statusCodes:g,errorCodes:E,methods:x}=u,{counter:w}=r;if(a&&a!=="UND_ERR_REQ_RETRY"&&!E.includes(a)){s(e);return}if(Array.isArray(x)&&!x.includes(l)){s(e);return}if(o!=null&&Array.isArray(g)&&!g.includes(o)){s(e);return}if(w>d){s(e);return}let S=c?.["retry-after"];S&&(S=Number(S),S=Number.isNaN(S)?QGe(S):S*1e3);let P=S>0?Math.min(S,m):Math.min(p*f**(w-1),m);setTimeout(()=>s(null),P)}onHeaders(e,r,n,s){let o=vGe(r);if(this.retryCount+=1,e>=300)return this.retryOpts.statusCodes.includes(e)===!1?this.handler.onHeaders(e,r,n,s):(this.abort(new IE("Request failed",e,{headers:o,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new IE("server does not support the range header and the payload was partially consumed",e,{headers:o,data:{count:this.retryCount}})),!1;let c=ZZ(o["content-range"]);if(!c)return this.abort(new IE("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==o.etag)return this.abort(new IE("ETag mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;let{start:l,size:u,end:d=u-1}=c;return PA(this.start===l,"content-range mismatch"),PA(this.end==null||this.end===d,"content-range mismatch"),this.resume=n,!0}if(this.end==null){if(e===206){let c=ZZ(o["content-range"]);if(c==null)return this.handler.onHeaders(e,r,n,s);let{start:l,size:u,end:d=u-1}=c;PA(l!=null&&Number.isFinite(l),"content-range mismatch"),PA(d!=null&&Number.isFinite(d),"invalid content-length"),this.start=l,this.end=d}if(this.end==null){let c=o["content-length"];this.end=c!=null?Number(c)-1:null}return PA(Number.isFinite(this.start)),PA(this.end==null||Number.isFinite(this.end),"invalid content-length"),this.resume=n,this.etag=o.etag!=null?o.etag:null,this.etag!=null&&this.etag.startsWith("W/")&&(this.etag=null),this.handler.onHeaders(e,r,n,s)}let a=new IE("Request failed",e,{headers:o,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||XZ(this.opts.body))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||XZ(this.opts.body))return this.handler.onError(n);if(this.start!==0){let s={range:`bytes=${this.start}-${this.end??""}`};this.etag!=null&&(s["if-match"]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...s}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(s){this.handler.onError(s)}}i(r,"onRetry")}};eee.exports=tF});var ree=b(($1t,tee)=>{"use strict";var DGe=jy(),kGe=Sb(),rF=class extends DGe{static{i(this,"RetryAgent")}#e=null;#t=null;constructor(e,r={}){super(r),this.#e=e,this.#t=r}dispatch(e,r){let n=new kGe({...e,retryOptions:this.#t},{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()}};tee.exports=rF});var cF=b((H1t,dee)=>{"use strict";var aee=require("node:assert"),{Readable:LGe}=require("node:stream"),{RequestAbortedError:cee,NotSupportedError:OGe,InvalidArgumentError:MGe,AbortError:nF}=bt(),lee=ut(),{ReadableStreamFrom:FGe}=ut(),yo=Symbol("kConsume"),xE=Symbol("kReading"),rd=Symbol("kBody"),nee=Symbol("kAbort"),uee=Symbol("kContentType"),see=Symbol("kContentLength"),UGe=i(()=>{},"noop"),sF=class extends LGe{static{i(this,"BodyReadable")}constructor({resume:e,abort:r,contentType:n="",contentLength:s,highWaterMark:o=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:o}),this._readableState.dataEmitted=!1,this[nee]=r,this[yo]=null,this[rd]=null,this[uee]=n,this[see]=s,this[xE]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new cee),e&&this[nee](),super.destroy(e)}_destroy(e,r){this[xE]?r(e):setImmediate(()=>{r(e)})}on(e,...r){return(e==="data"||e==="readable")&&(this[xE]=!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[xE]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...r){return this.off(e,...r)}push(e){return this[yo]&&e!==null?(iF(this[yo],e),this[xE]?super.push(e):!0):super.push(e)}async text(){return wE(this,"text")}async json(){return wE(this,"json")}async blob(){return wE(this,"blob")}async bytes(){return wE(this,"bytes")}async arrayBuffer(){return wE(this,"arrayBuffer")}async formData(){throw new OGe}get bodyUsed(){return lee.isDisturbed(this)}get body(){return this[rd]||(this[rd]=FGe(this),this[yo]&&(this[rd].getReader(),aee(this[rd].locked))),this[rd]}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 MGe("signal must be an AbortSignal");return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((s,o)=>{this[see]>r&&this.destroy(new nF);let a=i(()=>{this.destroy(n.reason??new nF)},"onAbort");n?.addEventListener("abort",a),this.on("close",function(){n?.removeEventListener("abort",a),n?.aborted?o(n.reason??new nF):s(null)}).on("error",UGe).on("data",function(c){r-=c.length,r<=0&&this.destroy()}).resume()})}};function qGe(t){return t[rd]&&t[rd].locked===!0||t[yo]}i(qGe,"isLocked");function $Ge(t){return lee.isDisturbed(t)||qGe(t)}i($Ge,"isUnusable");async function wE(t,e){return aee(!t[yo]),new Promise((r,n)=>{if($Ge(t)){let s=t._readableState;s.destroyed&&s.closeEmitted===!1?t.on("error",o=>{n(o)}).on("close",()=>{n(new TypeError("unusable"))}):n(s.errored??new TypeError("unusable"))}else queueMicrotask(()=>{t[yo]={type:e,stream:t,resolve:r,reject:n,length:0,body:[]},t.on("error",function(s){aF(this[yo],s)}).on("close",function(){this[yo].body!==null&&aF(this[yo],new cee)}),GGe(t[yo])})})}i(wE,"consume");function GGe(t){if(t.body===null)return;let{_readableState:e}=t.stream;if(e.bufferIndex){let r=e.bufferIndex,n=e.buffer.length;for(let s=r;s2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(s,n)}i(oF,"chunksDecode");function oee(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 s=0;s{var HGe=require("node:assert"),{ResponseStatusCodeError:pee}=bt(),{chunksDecode:mee}=cF(),zGe=128*1024;async function VGe({callback:t,body:e,contentType:r,statusCode:n,statusMessage:s,headers:o}){HGe(e);let a=[],c=0;try{for await(let p of e)if(a.push(p),c+=p.length,c>zGe){a=[],c=0;break}}catch{a=[],c=0}let l=`Response status code ${n}${s?`: ${s}`:""}`;if(n===204||!r||!c){queueMicrotask(()=>t(new pee(l,n,o)));return}let u=Error.stackTraceLimit;Error.stackTraceLimit=0;let d;try{fee(r)?d=JSON.parse(mee(a,c)):Aee(r)&&(d=mee(a,c))}catch{}finally{Error.stackTraceLimit=u}queueMicrotask(()=>t(new pee(l,n,o,d)))}i(VGe,"getResolveErrorBodyCallback");var fee=i(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"),Aee=i(t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t","isContentTypeText");hee.exports={getResolveErrorBodyCallback:VGe,isContentTypeApplicationJson:fee,isContentTypeText:Aee}});var Eee=b((W1t,uF)=>{"use strict";var YGe=require("node:assert"),{Readable:WGe}=cF(),{InvalidArgumentError:vA,RequestAbortedError:gee}=bt(),Eo=ut(),{getResolveErrorBodyCallback:jGe}=lF(),{AsyncResource:JGe}=require("node:async_hooks"),Bb=class extends JGe{static{i(this,"RequestHandler")}constructor(e,r){if(!e||typeof e!="object")throw new vA("invalid opts");let{signal:n,method:s,opaque:o,body:a,onInfo:c,responseHeaders:l,throwOnError:u,highWaterMark:d}=e;try{if(typeof r!="function")throw new vA("invalid callback");if(d&&(typeof d!="number"||d<0))throw new vA("invalid highWaterMark");if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new vA("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new vA("invalid method");if(c&&typeof c!="function")throw new vA("invalid onInfo callback");super("UNDICI_REQUEST")}catch(p){throw Eo.isStream(a)&&Eo.destroy(a.on("error",Eo.nop),p),p}this.method=s,this.responseHeaders=l||null,this.opaque=o||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,Eo.isStream(a)&&a.on("error",p=>{this.onError(p)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new gee:this.removeAbortListener=Eo.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new gee,this.res?Eo.destroy(this.res.on("error",Eo.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}YGe(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,s){let{callback:o,opaque:a,abort:c,context:l,responseHeaders:u,highWaterMark:d}=this,p=u==="raw"?Eo.parseRawHeaders(r):Eo.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let m=u==="raw"?Eo.parseHeaders(r):p,f=m["content-type"],g=m["content-length"],E=new WGe({resume:n,abort:c,contentType:f,contentLength:this.method!=="HEAD"&&g?Number(g):null,highWaterMark:d});this.removeAbortListener&&E.on("close",this.removeAbortListener),this.callback=null,this.res=E,o!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(jGe,null,{callback:o,body:E,contentType:f,statusCode:e,statusMessage:s,headers:p}):this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:a,body:E,context:l}))}onData(e){return this.res.push(e)}onComplete(e){Eo.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:r,callback:n,body:s,opaque:o}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:o})})),r&&(this.res=null,queueMicrotask(()=>{Eo.destroy(r,e)})),s&&(this.body=null,Eo.destroy(s,e)),this.removeAbortListener&&(r?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}};function yee(t,e){if(e===void 0)return new Promise((r,n)=>{yee.call(this,t,(s,o)=>s?n(s):r(o))});try{this.dispatch(t,new Bb(t,e))}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(yee,"request");uF.exports=yee;uF.exports.RequestHandler=Bb});var bE=b((J1t,xee)=>{var{addAbortListener:KGe}=ut(),{RequestAbortedError:XGe}=bt(),_A=Symbol("kListener"),Wa=Symbol("kSignal");function Cee(t){t.abort?t.abort(t[Wa]?.reason):t.reason=t[Wa]?.reason??new XGe,Iee(t)}i(Cee,"abort");function ZGe(t,e){if(t.reason=null,t[Wa]=null,t[_A]=null,!!e){if(e.aborted){Cee(t);return}t[Wa]=e,t[_A]=()=>{Cee(t)},KGe(t[Wa],t[_A])}}i(ZGe,"addSignal");function Iee(t){t[Wa]&&("removeEventListener"in t[Wa]?t[Wa].removeEventListener("abort",t[_A]):t[Wa].removeListener("abort",t[_A]),t[Wa]=null,t[_A]=null)}i(Iee,"removeSignal");xee.exports={addSignal:ZGe,removeSignal:Iee}});var Bee=b((X1t,See)=>{"use strict";var eHe=require("node:assert"),{finished:tHe,PassThrough:rHe}=require("node:stream"),{InvalidArgumentError:QA,InvalidReturnValueError:nHe}=bt(),ra=ut(),{getResolveErrorBodyCallback:sHe}=lF(),{AsyncResource:oHe}=require("node:async_hooks"),{addSignal:iHe,removeSignal:wee}=bE(),dF=class extends oHe{static{i(this,"StreamHandler")}constructor(e,r,n){if(!e||typeof e!="object")throw new QA("invalid opts");let{signal:s,method:o,opaque:a,body:c,onInfo:l,responseHeaders:u,throwOnError:d}=e;try{if(typeof n!="function")throw new QA("invalid callback");if(typeof r!="function")throw new QA("invalid factory");if(s&&typeof s.on!="function"&&typeof s.addEventListener!="function")throw new QA("signal must be an EventEmitter or EventTarget");if(o==="CONNECT")throw new QA("invalid method");if(l&&typeof l!="function")throw new QA("invalid onInfo callback");super("UNDICI_STREAM")}catch(p){throw ra.isStream(c)&&ra.destroy(c.on("error",ra.nop),p),p}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,ra.isStream(c)&&c.on("error",p=>{this.onError(p)}),iHe(this,s)}onConnect(e,r){if(this.reason){e(this.reason);return}eHe(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,s){let{factory:o,opaque:a,context:c,callback:l,responseHeaders:u}=this,d=u==="raw"?ra.parseRawHeaders(r):ra.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:d});return}this.factory=null;let p;if(this.throwOnError&&e>=400){let g=(u==="raw"?ra.parseHeaders(r):d)["content-type"];p=new rHe,this.callback=null,this.runInAsyncScope(sHe,null,{callback:l,body:p,contentType:g,statusCode:e,statusMessage:s,headers:d})}else{if(o===null)return;if(p=this.runInAsyncScope(o,null,{statusCode:e,headers:d,opaque:a,context:c}),!p||typeof p.write!="function"||typeof p.end!="function"||typeof p.on!="function")throw new nHe("expected Writable");tHe(p,{readable:!1},f=>{let{callback:g,res:E,opaque:x,trailers:w,abort:S}=this;this.res=null,(f||!E.readable)&&ra.destroy(E,f),this.callback=null,this.runInAsyncScope(g,null,f||null,{opaque:x,trailers:w}),f&&S()})}return p.on("drain",n),this.res=p,(p.writableNeedDrain!==void 0?p.writableNeedDrain:p._writableState?.needDrain)!==!0}onData(e){let{res:r}=this;return r?r.write(e):!0}onComplete(e){let{res:r}=this;wee(this),r&&(this.trailers=ra.parseHeaders(e),r.end())}onError(e){let{res:r,callback:n,opaque:s,body:o}=this;wee(this),this.factory=null,r?(this.res=null,ra.destroy(r,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:s})})),o&&(this.body=null,ra.destroy(o,e))}};function bee(t,e,r){if(r===void 0)return new Promise((n,s)=>{bee.call(this,t,e,(o,a)=>o?s(o):n(a))});try{this.dispatch(t,new dF(t,e,r))}catch(n){if(typeof r!="function")throw n;let s=t?.opaque;queueMicrotask(()=>r(n,{opaque:s}))}}i(bee,"stream");See.exports=bee});var Pee=b((eUt,Tee)=>{"use strict";var{Readable:Nee,Duplex:aHe,PassThrough:cHe}=require("node:stream"),{InvalidArgumentError:SE,InvalidReturnValueError:lHe,RequestAbortedError:pF}=bt(),ii=ut(),{AsyncResource:uHe}=require("node:async_hooks"),{addSignal:dHe,removeSignal:pHe}=bE(),Ree=require("node:assert"),DA=Symbol("resume"),mF=class extends Nee{static{i(this,"PipelineRequest")}constructor(){super({autoDestroy:!0}),this[DA]=null}_read(){let{[DA]:e}=this;e&&(this[DA]=null,e())}_destroy(e,r){this._read(),r(e)}},fF=class extends Nee{static{i(this,"PipelineResponse")}constructor(e){super({autoDestroy:!0}),this[DA]=e}_read(){this[DA]()}_destroy(e,r){!e&&!this._readableState.endEmitted&&(e=new pF),r(e)}},AF=class extends uHe{static{i(this,"PipelineHandler")}constructor(e,r){if(!e||typeof e!="object")throw new SE("invalid opts");if(typeof r!="function")throw new SE("invalid handler");let{signal:n,method:s,opaque:o,onInfo:a,responseHeaders:c}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new SE("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new SE("invalid method");if(a&&typeof a!="function")throw new SE("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=o||null,this.responseHeaders=c||null,this.handler=r,this.abort=null,this.context=null,this.onInfo=a||null,this.req=new mF().on("error",ii.nop),this.ret=new aHe({readableObjectMode:e.objectMode,autoDestroy:!0,read:i(()=>{let{body:l}=this;l?.resume&&l.resume()},"read"),write:i((l,u,d)=>{let{req:p}=this;p.push(l,u)||p._readableState.destroyed?d():p[DA]=d},"write"),destroy:i((l,u)=>{let{body:d,req:p,res:m,ret:f,abort:g}=this;!l&&!f._readableState.endEmitted&&(l=new pF),g&&l&&g(),ii.destroy(d,l),ii.destroy(p,l),ii.destroy(m,l),pHe(this),u(l)},"destroy")}).on("prefinish",()=>{let{req:l}=this;l.push(null)}),this.res=null,dHe(this,n)}onConnect(e,r){let{ret:n,res:s}=this;if(this.reason){e(this.reason);return}Ree(!s,"pipeline cannot be retried"),Ree(!n.destroyed),this.abort=e,this.context=r}onHeaders(e,r,n){let{opaque:s,handler:o,context:a}=this;if(e<200){if(this.onInfo){let l=this.responseHeaders==="raw"?ii.parseRawHeaders(r):ii.parseHeaders(r);this.onInfo({statusCode:e,headers:l})}return}this.res=new fF(n);let c;try{this.handler=null;let l=this.responseHeaders==="raw"?ii.parseRawHeaders(r):ii.parseHeaders(r);c=this.runInAsyncScope(o,null,{statusCode:e,headers:l,opaque:s,body:this.res,context:a})}catch(l){throw this.res.on("error",ii.nop),l}if(!c||typeof c.on!="function")throw new lHe("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;ii.destroy(u,l)}).on("end",()=>{let{ret:l}=this;l.push(null)}).on("close",()=>{let{ret:l}=this;l._readableState.ended||ii.destroy(l,new pF)}),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,ii.destroy(r,e)}};function mHe(t,e){try{let r=new AF(t,e);return this.dispatch({...t,body:r.req},r),r.ret}catch(r){return new cHe().destroy(r)}}i(mHe,"pipeline");Tee.exports=mHe});var Lee=b((rUt,kee)=>{"use strict";var{InvalidArgumentError:hF,SocketError:fHe}=bt(),{AsyncResource:AHe}=require("node:async_hooks"),vee=ut(),{addSignal:hHe,removeSignal:_ee}=bE(),Qee=require("node:assert"),gF=class extends AHe{static{i(this,"UpgradeHandler")}constructor(e,r){if(!e||typeof e!="object")throw new hF("invalid opts");if(typeof r!="function")throw new hF("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new hF("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=o||null,this.opaque=s||null,this.callback=r,this.abort=null,this.context=null,hHe(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}Qee(this.callback),this.abort=e,this.context=null}onHeaders(){throw new fHe("bad upgrade",null)}onUpgrade(e,r,n){Qee(e===101);let{callback:s,opaque:o,context:a}=this;_ee(this),this.callback=null;let c=this.responseHeaders==="raw"?vee.parseRawHeaders(r):vee.parseHeaders(r);this.runInAsyncScope(s,null,null,{headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;_ee(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Dee(t,e){if(e===void 0)return new Promise((r,n)=>{Dee.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new gF(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}))}}i(Dee,"upgrade");kee.exports=Dee});var qee=b((sUt,Uee)=>{"use strict";var gHe=require("node:assert"),{AsyncResource:yHe}=require("node:async_hooks"),{InvalidArgumentError:yF,SocketError:EHe}=bt(),Oee=ut(),{addSignal:CHe,removeSignal:Mee}=bE(),EF=class extends yHe{static{i(this,"ConnectHandler")}constructor(e,r){if(!e||typeof e!="object")throw new yF("invalid opts");if(typeof r!="function")throw new yF("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new yF("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=s||null,this.responseHeaders=o||null,this.callback=r,this.abort=null,CHe(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}gHe(this.callback),this.abort=e,this.context=r}onHeaders(){throw new EHe("bad connect",null)}onUpgrade(e,r,n){let{callback:s,opaque:o,context:a}=this;Mee(this),this.callback=null;let c=r;c!=null&&(c=this.responseHeaders==="raw"?Oee.parseRawHeaders(r):Oee.parseHeaders(r)),this.runInAsyncScope(s,null,null,{statusCode:e,headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;Mee(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Fee(t,e){if(e===void 0)return new Promise((r,n)=>{Fee.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new EF(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}))}}i(Fee,"connect");Uee.exports=Fee});var $ee=b((iUt,kA)=>{"use strict";kA.exports.request=Eee();kA.exports.stream=Bee();kA.exports.pipeline=Pee();kA.exports.upgrade=Lee();kA.exports.connect=qee()});var IF=b((aUt,Hee)=>{"use strict";var{UndiciError:IHe}=bt(),Gee=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED"),CF=class t extends IHe{static{i(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[Gee]===!0}[Gee]=!0};Hee.exports={MockNotMatchedError:CF}});var LA=b((lUt,zee)=>{"use strict";zee.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 BE=b((uUt,rte)=>{"use strict";var{MockNotMatchedError:Wp}=IF(),{kDispatches:Rb,kMockAgent:xHe,kOriginalDispatch:wHe,kOrigin:bHe,kGetNetConnect:SHe}=LA(),{buildURL:BHe}=ut(),{STATUS_CODES:RHe}=require("node:http"),{types:{isPromise:NHe}}=require("node:util");function Ml(t,e){return typeof t=="string"?t===e:t instanceof RegExp?t.test(e):typeof t=="function"?t(e)===!0:!1}i(Ml,"matchValue");function Yee(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLocaleLowerCase(),r]))}i(Yee,"lowerCaseEntries");function Wee(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 s=Wee(e,r);if(!Ml(n,s))return!1}return!0}i(jee,"matchHeaders");function Vee(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("?")}i(Vee,"safeUrl");function THe(t,{path:e,method:r,body:n,headers:s}){let o=Ml(t.path,e),a=Ml(t.method,r),c=typeof t.body<"u"?Ml(t.body,n):!0,l=jee(t,s);return o&&a&&c&&l}i(THe,"matchKey");function Jee(t){return Buffer.isBuffer(t)||t instanceof Uint8Array||t instanceof ArrayBuffer?t:typeof t=="object"?JSON.stringify(t):t.toString()}i(Jee,"getResponseData");function Kee(t,e){let r=e.query?BHe(e.path,e.query):e.path,n=typeof r=="string"?Vee(r):r,s=t.filter(({consumed:o})=>!o).filter(({path:o})=>Ml(Vee(o),n));if(s.length===0)throw new Wp(`Mock dispatch not matched for path '${n}'`);if(s=s.filter(({method:o})=>Ml(o,e.method)),s.length===0)throw new Wp(`Mock dispatch not matched for method '${e.method}' on path '${n}'`);if(s=s.filter(({body:o})=>typeof o<"u"?Ml(o,e.body):!0),s.length===0)throw new Wp(`Mock dispatch not matched for body '${e.body}' on path '${n}'`);if(s=s.filter(o=>jee(o,e.headers)),s.length===0){let o=typeof e.headers=="object"?JSON.stringify(e.headers):e.headers;throw new Wp(`Mock dispatch not matched for headers '${o}' on path '${n}'`)}return s[0]}i(Kee,"getMockDispatch");function PHe(t,e,r){let n={timesInvoked:0,times:1,persist:!1,consumed:!1},s=typeof r=="function"?{callback:r}:{...r},o={...n,...e,pending:!0,data:{error:null,...s}};return t.push(o),o}i(PHe,"addMockDispatch");function xF(t,e){let r=t.findIndex(n=>n.consumed?THe(n,e):!1);r!==-1&&t.splice(r,1)}i(xF,"deleteMockDispatch");function Xee(t){let{path:e,method:r,body:n,headers:s,query:o}=t;return{path:e,method:r,body:n,headers:s,query:o}}i(Xee,"buildKey");function wF(t){let e=Object.keys(t),r=[];for(let n=0;n=m,n.pending=p0?setTimeout(()=>{f(this[Rb])},u):f(this[Rb]);function f(E,x=o){let w=Array.isArray(t.headers)?bF(t.headers):t.headers,S=typeof x=="function"?x({...t,headers:w}):x;if(NHe(S)){S.then(M=>f(E,M));return}let P=Jee(S),Q=wF(a),q=wF(c);e.onConnect?.(M=>e.onError(M),null),e.onHeaders?.(s,Q,g,Zee(s)),e.onData?.(Buffer.from(P)),e.onComplete?.(q),xF(E,r)}i(f,"handleReply");function g(){}return i(g,"resume"),!0}i(ete,"mockDispatch");function _He(){let t=this[xHe],e=this[bHe],r=this[wHe];return i(function(s,o){if(t.isMockActive)try{ete.call(this,s,o)}catch(a){if(a instanceof Wp){let c=t[SHe]();if(c===!1)throw new Wp(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(tte(c,e))r.call(this,s,o);else throw new Wp(`${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,s,o)},"dispatch")}i(_He,"buildMockDispatch");function tte(t,e){let r=new URL(e);return t===!0?!0:!!(Array.isArray(t)&&t.some(n=>Ml(n,r.host)))}i(tte,"checkNetConnect");function QHe(t){if(t){let{agent:e,...r}=t;return r}}i(QHe,"buildMockOptions");rte.exports={getResponseData:Jee,getMockDispatch:Kee,addMockDispatch:PHe,deleteMockDispatch:xF,buildKey:Xee,generateKeyValues:wF,matchValue:Ml,getResponse:vHe,getStatusText:Zee,mockDispatch:ete,buildMockDispatch:_He,checkNetConnect:tte,buildMockOptions:QHe,getHeaderByName:Wee,buildHeadersFromArray:bF}});var vF=b((pUt,PF)=>{"use strict";var{getResponseData:DHe,buildKey:kHe,addMockDispatch:SF}=BE(),{kDispatches:Nb,kDispatchKey:Tb,kDefaultHeaders:BF,kDefaultTrailers:RF,kContentLength:NF,kMockDispatch:Pb}=LA(),{InvalidArgumentError:ja}=bt(),{buildURL:LHe}=ut(),OA=class{static{i(this,"MockScope")}constructor(e){this[Pb]=e}delay(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new ja("waitInMs must be a valid integer > 0");return this[Pb].delay=e,this}persist(){return this[Pb].persist=!0,this}times(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new ja("repeatTimes must be a valid integer > 0");return this[Pb].times=e,this}},TF=class{static{i(this,"MockInterceptor")}constructor(e,r){if(typeof e!="object")throw new ja("opts must be an object");if(typeof e.path>"u")throw new ja("opts.path must be defined");if(typeof e.method>"u"&&(e.method="GET"),typeof e.path=="string")if(e.query)e.path=LHe(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[Tb]=kHe(e),this[Nb]=r,this[BF]={},this[RF]={},this[NF]=!1}createMockScopeDispatchData({statusCode:e,data:r,responseOptions:n}){let s=DHe(r),o=this[NF]?{"content-length":s.length}:{},a={...this[BF],...o,...n.headers},c={...this[RF],...n.trailers};return{statusCode:e,data:r,headers:a,trailers:c}}validateReplyParameters(e){if(typeof e.statusCode>"u")throw new ja("statusCode must be defined");if(typeof e.responseOptions!="object"||e.responseOptions===null)throw new ja("responseOptions must be an object")}reply(e){if(typeof e=="function"){let o=i(c=>{let l=e(c);if(typeof l!="object"||l===null)throw new ja("reply options callback must return an object");let u={data:"",responseOptions:{},...l};return this.validateReplyParameters(u),{...this.createMockScopeDispatchData(u)}},"wrappedDefaultsCallback"),a=SF(this[Nb],this[Tb],o);return new OA(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),s=SF(this[Nb],this[Tb],n);return new OA(s)}replyWithError(e){if(typeof e>"u")throw new ja("error must be defined");let r=SF(this[Nb],this[Tb],{error:e});return new OA(r)}defaultReplyHeaders(e){if(typeof e>"u")throw new ja("headers must be defined");return this[BF]=e,this}defaultReplyTrailers(e){if(typeof e>"u")throw new ja("trailers must be defined");return this[RF]=e,this}replyContentLength(){return this[NF]=!0,this}};PF.exports.MockInterceptor=TF;PF.exports.MockScope=OA});var DF=b((fUt,lte)=>{"use strict";var{promisify:OHe}=require("node:util"),MHe=BA(),{buildMockDispatch:FHe}=BE(),{kDispatches:nte,kMockAgent:ste,kClose:ote,kOriginalClose:ite,kOrigin:ate,kOriginalDispatch:UHe,kConnected:_F}=LA(),{MockInterceptor:qHe}=vF(),cte=Zt(),{InvalidArgumentError:$He}=bt(),QF=class extends MHe{static{i(this,"MockClient")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new $He("Argument opts.agent must implement Agent");this[ste]=r.agent,this[ate]=e,this[nte]=[],this[_F]=1,this[UHe]=this.dispatch,this[ite]=this.close.bind(this),this.dispatch=FHe.call(this),this.close=this[ote]}get[cte.kConnected](){return this[_F]}intercept(e){return new qHe(e,this[nte])}async[ote](){await OHe(this[ite])(),this[_F]=0,this[ste][cte.kClients].delete(this[ate])}};lte.exports=QF});var OF=b((hUt,hte)=>{"use strict";var{promisify:GHe}=require("node:util"),HHe=RA(),{buildMockDispatch:zHe}=BE(),{kDispatches:ute,kMockAgent:dte,kClose:pte,kOriginalClose:mte,kOrigin:fte,kOriginalDispatch:VHe,kConnected:kF}=LA(),{MockInterceptor:YHe}=vF(),Ate=Zt(),{InvalidArgumentError:WHe}=bt(),LF=class extends HHe{static{i(this,"MockPool")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new WHe("Argument opts.agent must implement Agent");this[dte]=r.agent,this[fte]=e,this[ute]=[],this[kF]=1,this[VHe]=this.dispatch,this[mte]=this.close.bind(this),this.dispatch=zHe.call(this),this.close=this[pte]}get[Ate.kConnected](){return this[kF]}intercept(e){return new YHe(e,this[ute])}async[pte](){await GHe(this[mte])(),this[kF]=0,this[dte][Ate.kClients].delete(this[fte])}};hte.exports=LF});var yte=b((EUt,gte)=>{"use strict";var jHe={pronoun:"it",is:"is",was:"was",this:"this"},JHe={pronoun:"they",is:"are",was:"were",this:"these"};gte.exports=class{static{i(this,"Pluralizer")}constructor(e,r){this.singular=e,this.plural=r}pluralize(e){let r=e===1,n=r?jHe:JHe,s=r?this.singular:this.plural;return{...n,count:e,noun:s}}}});var Cte=b((xUt,Ete)=>{"use strict";var{Transform:KHe}=require("node:stream"),{Console:XHe}=require("node:console"),ZHe=process.versions.icu?"\u2705":"Y ",eze=process.versions.icu?"\u274C":"N ";Ete.exports=class{static{i(this,"PendingInterceptorsFormatter")}constructor({disableColors:e}={}){this.transform=new KHe({transform(r,n,s){s(null,r)}}),this.logger=new XHe({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let r=e.map(({method:n,path:s,data:{statusCode:o},persist:a,times:c,timesInvoked:l,origin:u})=>({Method:n,Origin:u,Path:s,"Status code":o,Persistent:a?ZHe:eze,Invocations:l,Remaining:a?1/0:c-l}));return this.logger.table(r),this.transform.read().toString()}}});var bte=b((bUt,wte)=>{"use strict";var{kClients:jp}=Zt(),tze=NA(),{kAgent:MF,kMockAgentSet:vb,kMockAgentGet:Ite,kDispatches:FF,kIsMockActive:_b,kNetConnect:Jp,kGetNetConnect:rze,kOptions:Qb,kFactory:Db}=LA(),nze=DF(),sze=OF(),{matchValue:oze,buildMockOptions:ize}=BE(),{InvalidArgumentError:xte,UndiciError:aze}=bt(),cze=jy(),lze=yte(),uze=Cte(),UF=class extends cze{static{i(this,"MockAgent")}constructor(e){if(super(e),this[Jp]=!0,this[_b]=!0,e?.agent&&typeof e.agent.dispatch!="function")throw new xte("Argument opts.agent must implement Agent");let r=e?.agent?e.agent:new tze(e);this[MF]=r,this[jp]=r[jp],this[Qb]=ize(e)}get(e){let r=this[Ite](e);return r||(r=this[Db](e),this[vb](e,r)),r}dispatch(e,r){return this.get(e.origin),this[MF].dispatch(e,r)}async close(){await this[MF].close(),this[jp].clear()}deactivate(){this[_b]=!1}activate(){this[_b]=!0}enableNetConnect(e){if(typeof e=="string"||typeof e=="function"||e instanceof RegExp)Array.isArray(this[Jp])?this[Jp].push(e):this[Jp]=[e];else if(typeof e>"u")this[Jp]=!0;else throw new xte("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[Jp]=!1}get isMockActive(){return this[_b]}[vb](e,r){this[jp].set(e,r)}[Db](e){let r=Object.assign({agent:this},this[Qb]);return this[Qb]&&this[Qb].connections===1?new nze(e,r):new sze(e,r)}[Ite](e){let r=this[jp].get(e);if(r)return r;if(typeof e!="string"){let n=this[Db]("http://localhost:9999");return this[vb](e,n),n}for(let[n,s]of Array.from(this[jp]))if(s&&typeof n!="string"&&oze(n,e)){let o=this[Db](e);return this[vb](e,o),o[FF]=s[FF],o}}[rze](){return this[Jp]}pendingInterceptors(){let e=this[jp];return Array.from(e.entries()).flatMap(([r,n])=>n[FF].map(s=>({...s,origin:r}))).filter(({pending:r})=>r)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new uze}={}){let r=this.pendingInterceptors();if(r.length===0)return;let n=new lze("interceptor","interceptors").pluralize(r.length);throw new aze(` +`,"latin1"),r!==null&&s!==r){if(n[wM])throw new Up;process.emitWarning(new Up)}e[Vt].timeout&&e[Vt].timeoutType===SA&&e[Vt].timeout.refresh&&e[Vt].timeout.refresh(),n[kl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Yu]=!1,e&&(Pe(n[Yr]<=1,"pipeline should only contain this request"),s(e))}};Y7.exports=Iqe});var rZ=b((x1t,tZ)=>{"use strict";var oi=require("node:assert"),{pipeline:Nqe}=require("node:stream"),ft=ut(),{RequestContentLengthMismatchError:NM,RequestAbortedError:j7,SocketError:pE,InformationalError:TM}=xt(),{kUrl:mb,kReset:Ab,kClient:BA,kRunning:hb,kPending:Tqe,kQueue:Wu,kPendingIdx:PM,kRunningIdx:Xi,kError:ea,kSocket:hn,kStrictContentLength:Pqe,kOnError:vM,kMaxConcurrentStreams:eZ,kHTTP2Session:Zi,kResume:ju,kSize:vqe,kHTTPContext:_qe}=er(),Ll=Symbol("open streams"),J7,K7=!1,fb;try{fb=require("node:http2")}catch{fb={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Qqe,HTTP2_HEADER_METHOD:Dqe,HTTP2_HEADER_PATH:kqe,HTTP2_HEADER_SCHEME:Lqe,HTTP2_HEADER_CONTENT_LENGTH:Oqe,HTTP2_HEADER_EXPECT:Mqe,HTTP2_HEADER_STATUS:Fqe}}=fb;function Uqe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}i(Uqe,"parseH2Headers");async function qqe(t,e){t[hn]=e,K7||(K7=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=fb.connect(t[mb],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[eZ]});r[Ll]=0,r[BA]=t,r[hn]=e,ft.addListener(r,"error",Gqe),ft.addListener(r,"frameError",Hqe),ft.addListener(r,"end",zqe),ft.addListener(r,"goaway",Vqe),ft.addListener(r,"close",function(){let{[BA]:s}=this,{[hn]:o}=s,a=this[hn][ea]||this[ea]||new pE("closed",ft.getSocketInfo(o));if(s[Zi]=null,s.destroyed){oi(s[Tqe]===0);let c=s[Wu].splice(s[Xi]);for(let l=0;l{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return Wqe(t,...s)},resume(){$qe(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(qqe,"connectH2");function $qe(t){let e=t[hn];e?.destroyed===!1&&(t[vqe]===0&&t[eZ]===0?(e.unref(),t[Zi].unref()):(e.ref(),t[Zi].ref()))}i($qe,"resumeH2");function Gqe(t){oi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hn][ea]=t,this[BA][vM](t)}i(Gqe,"onHttp2SessionError");function Hqe(t,e,r){if(r===0){let n=new TM(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[hn][ea]=n,this[BA][vM](n)}}i(Hqe,"onHttp2FrameError");function zqe(){let t=new pE("other side closed",ft.getSocketInfo(this[hn]));this.destroy(t),ft.destroy(this[hn],t)}i(zqe,"onHttp2SessionEnd");function Vqe(t){let e=this[ea]||new pE(`HTTP/2: "GOAWAY" frame received with code ${t}`,ft.getSocketInfo(this)),r=this[BA];if(r[hn]=null,r[_qe]=null,this[Zi]!=null&&(this[Zi].destroy(e),this[Zi]=null),ft.destroy(this[hn],e),r[Xi]{e.aborted||e.completed||(Q=Q||new j7,ft.errorRequest(t,e,Q),m!=null&&ft.destroy(m,Q),ft.destroy(d,Q),t[Wu][t[Xi]++]=null,t[ju]())},"abort");try{e.onConnect(E)}catch(Q){ft.errorRequest(t,e,Q)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),m=r.request(p,{endStream:!1,signal:l}),m.id&&!m.pending?(e.onUpgrade(null,null,m),++r[Ll],t[Wu][t[Xi]++]=null):m.once("ready",()=>{e.onUpgrade(null,null,m),++r[Ll],t[Wu][t[Xi]++]=null}),m.once("close",()=>{r[Ll]-=1,r[Ll]===0&&r.unref()}),!0;p[kqe]=s,p[Lqe]="https";let x=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let w=ft.bodyLength(d);if(ft.isFormDataLike(d)){J7??=xA().extractBody;let[Q,q]=J7(d);p["content-type"]=q,d=Q.stream,w=Q.length}if(w==null&&(w=e.contentLength),(w===0||!x)&&(w=null),Yqe(n)&&w>0&&e.contentLength!=null&&e.contentLength!==w){if(t[Pqe])return ft.errorRequest(t,e,new NM),!1;process.emitWarning(new NM)}w!=null&&(oi(d,"no body must not have content length"),p[Oqe]=`${w}`),r.ref();let S=n==="GET"||n==="HEAD"||d===null;return c?(p[Mqe]="100-continue",m=r.request(p,{endStream:S,signal:l}),m.once("continue",P)):(m=r.request(p,{endStream:S,signal:l}),P()),++r[Ll],m.once("response",Q=>{let{[Fqe]:q,...M}=Q;if(e.onResponseStarted(),e.aborted){let V=new j7;ft.errorRequest(t,e,V),ft.destroy(m,V);return}e.onHeaders(Number(q),Uqe(M),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",V=>{e.onData(V)===!1&&m.pause()})}),m.once("end",()=>{(m.state?.state==null||m.state.state<6)&&e.onComplete([]),r[Ll]===0&&r.unref(),E(new TM("HTTP/2: stream half-closed (remote)")),t[Wu][t[Xi]++]=null,t[PM]=t[Xi],t[ju]()}),m.once("close",()=>{r[Ll]-=1,r[Ll]===0&&r.unref()}),m.once("error",function(Q){E(Q)}),m.once("frameError",(Q,q)=>{E(new TM(`HTTP/2: "frameError" received - type ${Q}, code ${q}`))}),!0;function P(){!d||w===0?X7(E,m,null,t,e,t[hn],w,x):ft.isBuffer(d)?X7(E,m,d,t,e,t[hn],w,x):ft.isBlobLike(d)?typeof d.stream=="function"?Z7(E,m,d.stream(),t,e,t[hn],w,x):Jqe(E,m,d,t,e,t[hn],w,x):ft.isStream(d)?jqe(E,t[hn],x,m,d,t,e,w):ft.isIterable(d)?Z7(E,m,d,t,e,t[hn],w,x):oi(!1)}i(P,"writeBodyH2")}i(Wqe,"writeH2");function X7(t,e,r,n,s,o,a,c){try{r!=null&&ft.isBuffer(r)&&(oi(a===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),c||(o[Ab]=!0),s.onRequestSent(),n[ju]()}catch(l){t(l)}}i(X7,"writeBuffer");function jqe(t,e,r,n,s,o,a,c){oi(c!==0||o[hb]===0,"stream body cannot be pipelined");let l=Nqe(s,n,d=>{d?(ft.destroy(l,d),t(d)):(ft.removeAllListeners(l),a.onRequestSent(),r||(e[Ab]=!0),o[ju]())});ft.addListener(l,"data",u);function u(d){a.onBodySent(d)}i(u,"onPipeData")}i(jqe,"writeStream");async function Jqe(t,e,r,n,s,o,a,c){oi(a===r.size,"blob body must have content length");try{if(a!=null&&a!==r.size)throw new NM;let l=Buffer.from(await r.arrayBuffer());e.cork(),e.write(l),e.uncork(),e.end(),s.onBodySent(l),s.onRequestSent(),c||(o[Ab]=!0),n[ju]()}catch(l){t(l)}}i(Jqe,"writeBlob");async function Z7(t,e,r,n,s,o,a,c){oi(a!==0||n[hb]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}i(u,"onDrain");let d=i(()=>new Promise((p,m)=>{oi(l===null),o[ea]?m(o[ea]):l=p}),"waitForDrain");e.on("close",u).on("drain",u);try{for await(let p of r){if(o[ea])throw o[ea];let m=e.write(p);s.onBodySent(p),m||await d()}e.end(),s.onRequestSent(),c||(o[Ab]=!0),n[ju]()}catch(p){t(p)}finally{e.off("close",u).off("drain",u)}}i(Z7,"writeIterable");tZ.exports=qqe});var yb=b((b1t,oZ)=>{"use strict";var Va=ut(),{kBodyUsed:mE}=er(),QM=require("node:assert"),{InvalidArgumentError:Kqe}=xt(),Xqe=require("node:events"),Zqe=[300,301,302,303,307,308],nZ=Symbol("body"),gb=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[nZ]=e,this[mE]=!1}async*[Symbol.asyncIterator](){QM(!this[mE],"disturbed"),this[mE]=!0,yield*this[nZ]}},_M=class{static{i(this,"RedirectHandler")}constructor(e,r,n,s){if(r!=null&&(!Number.isInteger(r)||r<0))throw new Kqe("maxRedirections must be a positive number");Va.validateHandler(s,n.method,n.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...n,maxRedirections:0},this.maxRedirections=r,this.handler=s,this.history=[],this.redirectionLimitReached=!1,Va.isStream(this.opts.body)?(Va.bodyLength(this.opts.body)===0&&this.opts.body.on("data",function(){QM(!1)}),typeof this.opts.body.readableDidRead!="boolean"&&(this.opts.body[mE]=!1,Xqe.prototype.on.call(this.opts.body,"data",function(){this[mE]=!0}))):this.opts.body&&typeof this.opts.body.pipeTo=="function"?this.opts.body=new gb(this.opts.body):this.opts.body&&typeof this.opts.body!="string"&&!ArrayBuffer.isView(this.opts.body)&&Va.isIterable(this.opts.body)&&(this.opts.body=new gb(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,s){if(this.location=this.history.length>=this.maxRedirections||Va.isDisturbed(this.opts.body)?null:e$e(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,s);let{origin:o,pathname:a,search:c}=Va.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),l=c?`${a}${c}`:a;this.opts.headers=t$e(this.opts.headers,e===303,this.opts.origin!==o),this.opts.path=l,this.opts.origin=o,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 e$e(t,e){if(Zqe.indexOf(t)===-1)return null;for(let r=0;r{"use strict";var r$e=yb();function n$e({maxRedirections:t}){return e=>i(function(n,s){let{maxRedirections:o=t}=n;if(!o)return e(n,s);let a=new r$e(e,o,n,s);return n={...n,maxRedirections:0},e(n,a)},"Intercept")}i(n$e,"createRedirectInterceptor");iZ.exports=n$e});var TA=b((N1t,hZ)=>{"use strict";var Ol=require("node:assert"),pZ=require("node:net"),s$e=require("node:http"),Hp=ut(),{channels:RA}=lA(),o$e=hX(),i$e=mA(),{InvalidArgumentError:_r,InformationalError:a$e,ClientDestroyedError:c$e}=xt(),l$e=eE(),{kUrl:Ya,kServerName:Ju,kClient:u$e,kBusy:DM,kConnect:d$e,kResuming:zp,kRunning:yE,kPending:EE,kSize:gE,kQueue:ta,kConnected:p$e,kConnecting:NA,kNeedDrain:Xu,kKeepAliveDefaultTimeout:aZ,kHostHeader:m$e,kPendingIdx:ra,kRunningIdx:Ml,kError:f$e,kPipelining:Cb,kKeepAliveTimeoutValue:A$e,kMaxHeadersSize:h$e,kKeepAliveMaxTimeout:g$e,kKeepAliveTimeoutThreshold:y$e,kHeadersTimeout:E$e,kBodyTimeout:C$e,kStrictContentLength:I$e,kConnector:fE,kMaxRedirections:x$e,kMaxRequests:kM,kCounter:w$e,kClose:b$e,kDestroy:S$e,kDispatch:B$e,kInterceptors:cZ,kLocalAddress:AE,kMaxResponseSize:R$e,kOnError:N$e,kHTTPContext:Qr,kMaxConcurrentStreams:T$e,kResume:hE}=er(),P$e=W7(),v$e=rZ(),lZ=!1,Ku=Symbol("kClosedResolve"),uZ=i(()=>{},"noop");function mZ(t){return t[Cb]??t[Qr]?.defaultPipelining??1}i(mZ,"getPipelining");var LM=class extends i$e{static{i(this,"Client")}constructor(e,{interceptors:r,maxHeaderSize:n,headersTimeout:s,socketTimeout:o,requestTimeout:a,connectTimeout:c,bodyTimeout:l,idleTimeout:u,keepAlive:d,keepAliveTimeout:p,maxKeepAliveTimeout:m,keepAliveMaxTimeout:f,keepAliveTimeoutThreshold:g,socketPath:E,pipelining:x,tls:w,strictContentLength:S,maxCachedSessions:P,maxRedirections:Q,connect:q,maxRequestsPerClient:M,localAddress:V,maxResponseSize:pe,autoSelectFamily:Le,autoSelectFamilyAttemptTimeout:Re,maxConcurrentStreams:oe,allowH2:ye,webSocket:H}={}){if(super({webSocket:H}),d!==void 0)throw new _r("unsupported keepAlive, use pipelining=0 instead");if(o!==void 0)throw new _r("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new _r("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(u!==void 0)throw new _r("unsupported idleTimeout, use keepAliveTimeout instead");if(m!==void 0)throw new _r("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(n!=null&&!Number.isFinite(n))throw new _r("invalid maxHeaderSize");if(E!=null&&typeof E!="string")throw new _r("invalid socketPath");if(c!=null&&(!Number.isFinite(c)||c<0))throw new _r("invalid connectTimeout");if(p!=null&&(!Number.isFinite(p)||p<=0))throw new _r("invalid keepAliveTimeout");if(f!=null&&(!Number.isFinite(f)||f<=0))throw new _r("invalid keepAliveMaxTimeout");if(g!=null&&!Number.isFinite(g))throw new _r("invalid keepAliveTimeoutThreshold");if(s!=null&&(!Number.isInteger(s)||s<0))throw new _r("headersTimeout must be a positive integer or zero");if(l!=null&&(!Number.isInteger(l)||l<0))throw new _r("bodyTimeout must be a positive integer or zero");if(q!=null&&typeof q!="function"&&typeof q!="object")throw new _r("connect must be a function or an object");if(Q!=null&&(!Number.isInteger(Q)||Q<0))throw new _r("maxRedirections must be a positive number");if(M!=null&&(!Number.isInteger(M)||M<0))throw new _r("maxRequestsPerClient must be a positive number");if(V!=null&&(typeof V!="string"||pZ.isIP(V)===0))throw new _r("localAddress must be valid string IP address");if(pe!=null&&(!Number.isInteger(pe)||pe<-1))throw new _r("maxResponseSize must be a positive number");if(Re!=null&&(!Number.isInteger(Re)||Re<-1))throw new _r("autoSelectFamilyAttemptTimeout must be a positive number");if(ye!=null&&typeof ye!="boolean")throw new _r("allowH2 must be a valid boolean value");if(oe!=null&&(typeof oe!="number"||oe<1))throw new _r("maxConcurrentStreams must be a positive integer, greater than 0");typeof q!="function"&&(q=l$e({...w,maxCachedSessions:P,allowH2:ye,socketPath:E,timeout:c,...Le?{autoSelectFamily:Le,autoSelectFamilyAttemptTimeout:Re}:void 0,...q})),r?.Client&&Array.isArray(r.Client)?(this[cZ]=r.Client,lZ||(lZ=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"}))):this[cZ]=[_$e({maxRedirections:Q})],this[Ya]=Hp.parseOrigin(e),this[fE]=q,this[Cb]=x??1,this[h$e]=n||s$e.maxHeaderSize,this[aZ]=p??4e3,this[g$e]=f??6e5,this[y$e]=g??2e3,this[A$e]=this[aZ],this[Ju]=null,this[AE]=V??null,this[zp]=0,this[Xu]=0,this[m$e]=`host: ${this[Ya].hostname}${this[Ya].port?`:${this[Ya].port}`:""}\r +`,this[C$e]=l??3e5,this[E$e]=s??3e5,this[I$e]=S??!0,this[x$e]=Q,this[kM]=M,this[Ku]=null,this[R$e]=pe>-1?pe:-1,this[T$e]=oe??100,this[Qr]=null,this[ta]=[],this[Ml]=0,this[ra]=0,this[hE]=ne=>OM(this,ne),this[N$e]=ne=>fZ(this,ne)}get pipelining(){return this[Cb]}set pipelining(e){this[Cb]=e,this[hE](!0)}get[EE](){return this[ta].length-this[ra]}get[yE](){return this[ra]-this[Ml]}get[gE](){return this[ta].length-this[Ml]}get[p$e](){return!!this[Qr]&&!this[NA]&&!this[Qr].destroyed}get[DM](){return!!(this[Qr]?.busy(null)||this[gE]>=(mZ(this)||1)||this[EE]>0)}[d$e](e){AZ(this),this.once("connect",e)}[B$e](e,r){let n=e.origin||this[Ya].origin,s=new o$e(n,e,r);return this[ta].push(s),this[zp]||(Hp.bodyLength(s.body)==null&&Hp.isIterable(s.body)?(this[zp]=1,queueMicrotask(()=>OM(this))):this[hE](!0)),this[zp]&&this[Xu]!==2&&this[DM]&&(this[Xu]=2),this[Xu]<2}async[b$e](){return new Promise(e=>{this[gE]?this[Ku]=e:e(null)})}async[S$e](e){return new Promise(r=>{let n=this[ta].splice(this[ra]);for(let o=0;o{this[Ku]&&(this[Ku](),this[Ku]=null),r(null)},"callback");this[Qr]?(this[Qr].destroy(e,s),this[Qr]=null):queueMicrotask(s),this[hE]()})}},_$e=Eb();function fZ(t,e){if(t[yE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ol(t[ra]===t[Ml]);let r=t[ta].splice(t[Ml]);for(let n=0;n{t[fE]({host:e,hostname:r,protocol:n,port:s,servername:t[Ju],localAddress:t[AE]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Hp.destroy(o.on("error",uZ),new c$e);return}Ol(o);try{t[Qr]=o.alpnProtocol==="h2"?await v$e(t,o):await P$e(t,o)}catch(a){throw o.destroy().on("error",uZ),a}t[NA]=!1,o[w$e]=0,o[kM]=t[kM],o[u$e]=t,o[f$e]=null,RA.connected.hasSubscribers&&RA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Qr]?.version,servername:t[Ju],localAddress:t[AE]},connector:t[fE],socket:o}),t.emit("connect",t[Ya],[t])}catch(o){if(t.destroyed)return;if(t[NA]=!1,RA.connectError.hasSubscribers&&RA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Qr]?.version,servername:t[Ju],localAddress:t[AE]},connector:t[fE],error:o}),o.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ol(t[yE]===0);t[EE]>0&&t[ta][t[ra]].servername===t[Ju];){let a=t[ta][t[ra]++];Hp.errorRequest(t,a,o)}else fZ(t,o);t.emit("connectionError",t[Ya],[t],o)}t[hE]()}i(AZ,"connect");function dZ(t){t[Xu]=0,t.emit("drain",t[Ya],[t])}i(dZ,"emitDrain");function OM(t,e){t[zp]!==2&&(t[zp]=2,Q$e(t,e),t[zp]=0,t[Ml]>256&&(t[ta].splice(0,t[Ml]),t[ra]-=t[Ml],t[Ml]=0))}i(OM,"resume");function Q$e(t,e){for(;;){if(t.destroyed){Ol(t[EE]===0);return}if(t[Ku]&&!t[gE]){t[Ku](),t[Ku]=null;return}if(t[Qr]&&t[Qr].resume(),t[DM])t[Xu]=2;else if(t[Xu]===2){e?(t[Xu]=1,queueMicrotask(()=>dZ(t))):dZ(t);continue}if(t[EE]===0||t[yE]>=(mZ(t)||1))return;let r=t[ta][t[ra]];if(t[Ya].protocol==="https:"&&t[Ju]!==r.servername){if(t[yE]>0)return;t[Ju]=r.servername,t[Qr]?.destroy(new a$e("servername changed"),()=>{t[Qr]=null,OM(t)})}if(t[NA])return;if(!t[Qr]){AZ(t);return}if(t[Qr].destroyed||t[Qr].busy(r))return;!r.aborted&&t[Qr].write(r)?t[ra]++:t[ta].splice(t[ra],1)}}i(Q$e,"_resume");hZ.exports=LM});var MM=b((v1t,gZ)=>{"use strict";var Ib=class{static{i(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)}};gZ.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new Ib}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Ib),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var EZ=b((Q1t,yZ)=>{var{kFree:D$e,kConnected:k$e,kPending:L$e,kQueued:O$e,kRunning:M$e,kSize:F$e}=er(),Vp=Symbol("pool"),FM=class{static{i(this,"PoolStats")}constructor(e){this[Vp]=e}get connected(){return this[Vp][k$e]}get free(){return this[Vp][D$e]}get pending(){return this[Vp][L$e]}get queued(){return this[Vp][O$e]}get running(){return this[Vp][M$e]}get size(){return this[Vp][F$e]}};yZ.exports=FM});var zM=b((k1t,TZ)=>{"use strict";var U$e=mA(),q$e=MM(),{kConnected:UM,kSize:CZ,kRunning:IZ,kPending:xZ,kQueued:CE,kBusy:$$e,kFree:G$e,kUrl:H$e,kClose:z$e,kDestroy:V$e,kDispatch:Y$e}=er(),W$e=EZ(),Us=Symbol("clients"),ms=Symbol("needDrain"),IE=Symbol("queue"),qM=Symbol("closed resolve"),$M=Symbol("onDrain"),wZ=Symbol("onConnect"),bZ=Symbol("onDisconnect"),SZ=Symbol("onConnectionError"),GM=Symbol("get dispatcher"),RZ=Symbol("add client"),NZ=Symbol("remove client"),BZ=Symbol("stats"),HM=class extends U$e{static{i(this,"PoolBase")}constructor(e){super(e),this[IE]=new q$e,this[Us]=[],this[CE]=0;let r=this;this[$M]=i(function(s,o){let a=r[IE],c=!1;for(;!c;){let l=a.shift();if(!l)break;r[CE]--,c=!this.dispatch(l.opts,l.handler)}this[ms]=c,!this[ms]&&r[ms]&&(r[ms]=!1,r.emit("drain",s,[r,...o])),r[qM]&&a.isEmpty()&&Promise.all(r[Us].map(l=>l.close())).then(r[qM])},"onDrain"),this[wZ]=(n,s)=>{r.emit("connect",n,[r,...s])},this[bZ]=(n,s,o)=>{r.emit("disconnect",n,[r,...s],o)},this[SZ]=(n,s,o)=>{r.emit("connectionError",n,[r,...s],o)},this[BZ]=new W$e(this)}get[$$e](){return this[ms]}get[UM](){return this[Us].filter(e=>e[UM]).length}get[G$e](){return this[Us].filter(e=>e[UM]&&!e[ms]).length}get[xZ](){let e=this[CE];for(let{[xZ]:r}of this[Us])e+=r;return e}get[IZ](){let e=0;for(let{[IZ]:r}of this[Us])e+=r;return e}get[CZ](){let e=this[CE];for(let{[CZ]:r}of this[Us])e+=r;return e}get stats(){return this[BZ]}async[z$e](){this[IE].isEmpty()?await Promise.all(this[Us].map(e=>e.close())):await new Promise(e=>{this[qM]=e})}async[V$e](e){for(;;){let r=this[IE].shift();if(!r)break;r.handler.onError(e)}await Promise.all(this[Us].map(r=>r.destroy(e)))}[Y$e](e,r){let n=this[GM]();return n?n.dispatch(e,r)||(n[ms]=!0,this[ms]=!this[GM]()):(this[ms]=!0,this[IE].push({opts:e,handler:r}),this[CE]++),!this[ms]}[RZ](e){return e.on("drain",this[$M]).on("connect",this[wZ]).on("disconnect",this[bZ]).on("connectionError",this[SZ]),this[Us].push(e),this[ms]&&queueMicrotask(()=>{this[ms]&&this[$M](e[H$e],[this,e])}),this}[NZ](e){e.close(()=>{let r=this[Us].indexOf(e);r!==-1&&this[Us].splice(r,1)}),this[ms]=this[Us].some(r=>!r[ms]&&r.closed!==!0&&r.destroyed!==!0)}};TZ.exports={PoolBase:HM,kClients:Us,kNeedDrain:ms,kAddClient:RZ,kRemoveClient:NZ,kGetDispatcher:GM}});var PA=b((O1t,QZ)=>{"use strict";var{PoolBase:j$e,kClients:xb,kNeedDrain:J$e,kAddClient:K$e,kGetDispatcher:X$e}=zM(),Z$e=TA(),{InvalidArgumentError:VM}=xt(),PZ=ut(),{kUrl:vZ,kInterceptors:eGe}=er(),tGe=eE(),YM=Symbol("options"),WM=Symbol("connections"),_Z=Symbol("factory");function rGe(t,e){return new Z$e(t,e)}i(rGe,"defaultFactory");var jM=class extends j$e{static{i(this,"Pool")}constructor(e,{connections:r,factory:n=rGe,connect:s,connectTimeout:o,tls:a,maxCachedSessions:c,socketPath:l,autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d,allowH2:p,...m}={}){if(r!=null&&(!Number.isFinite(r)||r<0))throw new VM("invalid connections");if(typeof n!="function")throw new VM("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new VM("connect must be a function or an object");typeof s!="function"&&(s=tGe({...a,maxCachedSessions:c,allowH2:p,socketPath:l,timeout:o,...u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d}:void 0,...s})),super(m),this[eGe]=m.interceptors?.Pool&&Array.isArray(m.interceptors.Pool)?m.interceptors.Pool:[],this[WM]=r||null,this[vZ]=PZ.parseOrigin(e),this[YM]={...PZ.deepClone(m),connect:s,allowH2:p},this[YM].interceptors=m.interceptors?{...m.interceptors}:void 0,this[_Z]=n,this.on("connectionError",(f,g,E)=>{for(let x of g){let w=this[xb].indexOf(x);w!==-1&&this[xb].splice(w,1)}})}[X$e](){for(let e of this[xb])if(!e[J$e])return e;if(!this[WM]||this[xb].length{"use strict";var{BalancedPoolMissingUpstreamError:nGe,InvalidArgumentError:sGe}=xt(),{PoolBase:oGe,kClients:Gn,kNeedDrain:xE,kAddClient:iGe,kRemoveClient:aGe,kGetDispatcher:cGe}=zM(),lGe=PA(),{kUrl:JM,kInterceptors:uGe}=er(),{parseOrigin:DZ}=ut(),kZ=Symbol("factory"),wb=Symbol("options"),LZ=Symbol("kGreatestCommonDivisor"),Yp=Symbol("kCurrentWeight"),Wp=Symbol("kIndex"),ii=Symbol("kWeight"),bb=Symbol("kMaxWeightPerServer"),Sb=Symbol("kErrorPenalty");function dGe(t,e){if(t===0)return e;for(;e!==0;){let r=e;e=t%e,t=r}return t}i(dGe,"getGreatestCommonDivisor");function pGe(t,e){return new lGe(t,e)}i(pGe,"defaultFactory");var KM=class extends oGe{static{i(this,"BalancedPool")}constructor(e=[],{factory:r=pGe,...n}={}){if(super(),this[wb]=n,this[Wp]=-1,this[Yp]=0,this[bb]=this[wb].maxWeightPerServer||100,this[Sb]=this[wb].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof r!="function")throw new sGe("factory must be a function.");this[uGe]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[kZ]=r;for(let s of e)this.addUpstream(s);this._updateBalancedPoolStats()}addUpstream(e){let r=DZ(e).origin;if(this[Gn].find(s=>s[JM].origin===r&&s.closed!==!0&&s.destroyed!==!0))return this;let n=this[kZ](r,Object.assign({},this[wb]));this[iGe](n),n.on("connect",()=>{n[ii]=Math.min(this[bb],n[ii]+this[Sb])}),n.on("connectionError",()=>{n[ii]=Math.max(1,n[ii]-this[Sb]),this._updateBalancedPoolStats()}),n.on("disconnect",(...s)=>{let o=s[2];o&&o.code==="UND_ERR_SOCKET"&&(n[ii]=Math.max(1,n[ii]-this[Sb]),this._updateBalancedPoolStats())});for(let s of this[Gn])s[ii]=this[bb];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let r=0;rs[JM].origin===r&&s.closed!==!0&&s.destroyed!==!0);return n&&this[aGe](n),this}get upstreams(){return this[Gn].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[JM].origin)}[cGe](){if(this[Gn].length===0)throw new nGe;if(!this[Gn].find(o=>!o[xE]&&o.closed!==!0&&o.destroyed!==!0)||this[Gn].map(o=>o[xE]).reduce((o,a)=>o&&a,!0))return;let n=0,s=this[Gn].findIndex(o=>!o[xE]);for(;n++this[Gn][s][ii]&&!o[xE]&&(s=this[Wp]),this[Wp]===0&&(this[Yp]=this[Yp]-this[LZ],this[Yp]<=0&&(this[Yp]=this[bb])),o[ii]>=this[Yp]&&!o[xE])return o}return this[Yp]=this[Gn][s][ii],this[Wp]=s,this[Gn][s]}};OZ.exports=KM});var vA=b((q1t,zZ)=>{"use strict";var{InvalidArgumentError:Bb}=xt(),{kClients:Zu,kRunning:FZ,kClose:mGe,kDestroy:fGe,kDispatch:AGe,kInterceptors:hGe}=er(),gGe=mA(),yGe=PA(),EGe=TA(),CGe=ut(),IGe=Eb(),UZ=Symbol("onConnect"),qZ=Symbol("onDisconnect"),$Z=Symbol("onConnectionError"),xGe=Symbol("maxRedirections"),GZ=Symbol("onDrain"),HZ=Symbol("factory"),XM=Symbol("options");function wGe(t,e){return e&&e.connections===1?new EGe(t,e):new yGe(t,e)}i(wGe,"defaultFactory");var ZM=class extends gGe{static{i(this,"Agent")}constructor({factory:e=wGe,maxRedirections:r=0,connect:n,...s}={}){if(typeof e!="function")throw new Bb("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new Bb("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new Bb("maxRedirections must be a positive number");super(s),n&&typeof n!="function"&&(n={...n}),this[hGe]=s.interceptors?.Agent&&Array.isArray(s.interceptors.Agent)?s.interceptors.Agent:[IGe({maxRedirections:r})],this[XM]={...CGe.deepClone(s),connect:n},this[XM].interceptors=s.interceptors?{...s.interceptors}:void 0,this[xGe]=r,this[HZ]=e,this[Zu]=new Map,this[GZ]=(o,a)=>{this.emit("drain",o,[this,...a])},this[UZ]=(o,a)=>{this.emit("connect",o,[this,...a])},this[qZ]=(o,a,c)=>{this.emit("disconnect",o,[this,...a],c)},this[$Z]=(o,a,c)=>{this.emit("connectionError",o,[this,...a],c)}}get[FZ](){let e=0;for(let r of this[Zu].values())e+=r[FZ];return e}[AGe](e,r){let n;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))n=String(e.origin);else throw new Bb("opts.origin must be a non-empty string or URL.");let s=this[Zu].get(n);return s||(s=this[HZ](e.origin,this[XM]).on("drain",this[GZ]).on("connect",this[UZ]).on("disconnect",this[qZ]).on("connectionError",this[$Z]),this[Zu].set(n,s)),s.dispatch(e,r)}async[mGe](){let e=[];for(let r of this[Zu].values())e.push(r.close());this[Zu].clear(),await Promise.all(e)}async[fGe](e){let r=[];for(let n of this[Zu].values())r.push(n.destroy(e));this[Zu].clear(),await Promise.all(r)}};zZ.exports=ZM});var sF=b((G1t,ree)=>{"use strict";var{kProxy:eF,kClose:KZ,kDestroy:XZ,kDispatch:VZ,kInterceptors:bGe}=er(),{URL:jp}=require("node:url"),SGe=vA(),ZZ=PA(),eee=mA(),{InvalidArgumentError:_A,RequestAbortedError:BGe,SecureProxyConnectionError:RGe}=xt(),YZ=eE(),tee=TA(),Rb=Symbol("proxy agent"),Nb=Symbol("proxy client"),ed=Symbol("proxy headers"),tF=Symbol("request tls settings"),WZ=Symbol("proxy tls settings"),jZ=Symbol("connect endpoint function"),JZ=Symbol("tunnel proxy");function NGe(t){return t==="https:"?443:80}i(NGe,"defaultProtocolPort");function TGe(t,e){return new ZZ(t,e)}i(TGe,"defaultFactory");var PGe=i(()=>{},"noop");function vGe(t,e){return e.connections===1?new tee(t,e):new ZZ(t,e)}i(vGe,"defaultAgentFactory");var rF=class extends eee{static{i(this,"Http1ProxyWrapper")}#e;constructor(e,{headers:r={},connect:n,factory:s}){if(super(),!e)throw new _A("Proxy URL is mandatory");this[ed]=r,s?this.#e=s(e,{connect:n}):this.#e=new tee(e,{connect:n})}[VZ](e,r){let n=r.onHeaders;r.onHeaders=function(c,l,u){if(c===407){typeof r.onError=="function"&&r.onError(new _A("Proxy Authentication Required (407)"));return}n&&n.call(this,c,l,u)};let{origin:s,path:o="/",headers:a={}}=e;if(e.path=s+o,!("host"in a)&&!("Host"in a)){let{host:c}=new jp(s);a.host=c}return e.headers={...this[ed],...a},this.#e[VZ](e,r)}async[KZ](){return this.#e.close()}async[XZ](e){return this.#e.destroy(e)}},nF=class extends eee{static{i(this,"ProxyAgent")}constructor(e){if(super(),!e||typeof e=="object"&&!(e instanceof jp)&&!e.uri)throw new _A("Proxy uri is mandatory");let{clientFactory:r=TGe}=e;if(typeof r!="function")throw new _A("Proxy opts.clientFactory must be a function.");let{proxyTunnel:n=!0}=e,s=this.#e(e),{href:o,origin:a,port:c,protocol:l,username:u,password:d,hostname:p}=s;if(this[eF]={uri:o,protocol:l},this[bGe]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[tF]=e.requestTls,this[WZ]=e.proxyTls,this[ed]=e.headers||{},this[JZ]=n,e.auth&&e.token)throw new _A("opts.auth cannot be used in combination with opts.token");e.auth?this[ed]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ed]["proxy-authorization"]=e.token:u&&d&&(this[ed]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(d)}`).toString("base64")}`);let m=YZ({...e.proxyTls});this[jZ]=YZ({...e.requestTls});let f=e.factory||vGe,g=i((E,x)=>{let{protocol:w}=new jp(E);return!this[JZ]&&w==="http:"&&this[eF].protocol==="http:"?new rF(this[eF].uri,{headers:this[ed],connect:m,factory:f}):f(E,x)},"factory");this[Nb]=r(s,{connect:m}),this[Rb]=new SGe({...e,factory:g,connect:i(async(E,x)=>{let w=E.host;E.port||(w+=`:${NGe(E.protocol)}`);try{let{socket:S,statusCode:P}=await this[Nb].connect({origin:a,port:c,path:w,signal:E.signal,headers:{...this[ed],host:E.host},servername:this[WZ]?.servername||p});if(P!==200&&(S.on("error",PGe).destroy(),x(new BGe(`Proxy response (${P}) !== 200 when HTTP Tunneling`))),E.protocol!=="https:"){x(null,S);return}let Q;this[tF]?Q=this[tF].servername:Q=E.servername,this[jZ]({...E,servername:Q,httpSocket:S},x)}catch(S){S.code==="ERR_TLS_CERT_ALTNAME_INVALID"?x(new RGe(S)):x(S)}},"connect")})}dispatch(e,r){let n=_Ge(e.headers);if(QGe(n),n&&!("host"in n)&&!("Host"in n)){let{host:s}=new jp(e.origin);n.host=s}return this[Rb].dispatch({...e,headers:n},r)}#e(e){return typeof e=="string"?new jp(e):e instanceof jp?e:new jp(e.uri)}async[KZ](){await this[Rb].close(),await this[Nb].close()}async[XZ](){await this[Rb].destroy(),await this[Nb].destroy()}};function _Ge(t){if(Array.isArray(t)){let e={};for(let r=0;rr.toLowerCase()==="proxy-authorization"))throw new _A("Proxy-Authorization should be sent in ProxyAgent constructor")}i(QGe,"throwIfProxyAuthIsSent");ree.exports=nF});var cee=b((z1t,aee)=>{"use strict";var DGe=mA(),{kClose:kGe,kDestroy:LGe,kClosed:nee,kDestroyed:see,kDispatch:OGe,kNoProxyAgent:wE,kHttpProxyAgent:td,kHttpsProxyAgent:Jp}=er(),oee=sF(),MGe=vA(),FGe={"http:":80,"https:":443},iee=!1,oF=class extends DGe{static{i(this,"EnvHttpProxyAgent")}#e=null;#t=null;#r=null;constructor(e={}){super(),this.#r=e,iee||(iee=!0,process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"}));let{httpProxy:r,httpsProxy:n,noProxy:s,...o}=e;this[wE]=new MGe(o);let a=r??process.env.http_proxy??process.env.HTTP_PROXY;a?this[td]=new oee({...o,uri:a}):this[td]=this[wE];let c=n??process.env.https_proxy??process.env.HTTPS_PROXY;c?this[Jp]=new oee({...o,uri:c}):this[Jp]=this[td],this.#n()}[OGe](e,r){let n=new URL(e.origin);return this.#o(n).dispatch(e,r)}async[kGe](){await this[wE].close(),this[td][nee]||await this[td].close(),this[Jp][nee]||await this[Jp].close()}async[LGe](e){await this[wE].destroy(e),this[td][see]||await this[td].destroy(e),this[Jp][see]||await this[Jp].destroy(e)}#o(e){let{protocol:r,host:n,port:s}=e;return n=n.replace(/:\d*$/,"").toLowerCase(),s=Number.parseInt(s,10)||FGe[r]||0,this.#s(n,s)?r==="https:"?this[Jp]:this[td]:this[wE]}#s(e,r){if(this.#i&&this.#n(),this.#t.length===0)return!0;if(this.#e==="*")return!1;for(let n=0;n{"use strict";var QA=require("node:assert"),{kRetryHandlerDefaultRetry:lee}=er(),{RequestRetryError:bE}=xt(),{isDisturbed:uee,parseHeaders:UGe,parseRangeHeader:dee,wrapRequestBody:qGe}=ut();function $Ge(t){let e=Date.now();return new Date(t).getTime()-e}i($Ge,"calculateRetryAfterHeader");var iF=class t{static{i(this,"RetryHandler")}constructor(e,r){let{retryOptions:n,...s}=e,{retry:o,maxRetries:a,maxTimeout:c,minTimeout:l,timeoutFactor:u,methods:d,errorCodes:p,retryAfter:m,statusCodes:f}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts={...s,body:qGe(e.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??t[lee],retryAfter:m??!0,maxTimeout:c??30*1e3,minTimeout:l??500,timeoutFactor:u??2,maxRetries:a??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:f??[500,502,503,504,429],errorCodes:p??["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.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}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[lee](e,{state:r,opts:n},s){let{statusCode:o,code:a,headers:c}=e,{method:l,retryOptions:u}=n,{maxRetries:d,minTimeout:p,maxTimeout:m,timeoutFactor:f,statusCodes:g,errorCodes:E,methods:x}=u,{counter:w}=r;if(a&&a!=="UND_ERR_REQ_RETRY"&&!E.includes(a)){s(e);return}if(Array.isArray(x)&&!x.includes(l)){s(e);return}if(o!=null&&Array.isArray(g)&&!g.includes(o)){s(e);return}if(w>d){s(e);return}let S=c?.["retry-after"];S&&(S=Number(S),S=Number.isNaN(S)?$Ge(S):S*1e3);let P=S>0?Math.min(S,m):Math.min(p*f**(w-1),m);setTimeout(()=>s(null),P)}onHeaders(e,r,n,s){let o=UGe(r);if(this.retryCount+=1,e>=300)return this.retryOpts.statusCodes.includes(e)===!1?this.handler.onHeaders(e,r,n,s):(this.abort(new bE("Request failed",e,{headers:o,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new bE("server does not support the range header and the payload was partially consumed",e,{headers:o,data:{count:this.retryCount}})),!1;let c=dee(o["content-range"]);if(!c)return this.abort(new bE("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==o.etag)return this.abort(new bE("ETag mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;let{start:l,size:u,end:d=u-1}=c;return QA(this.start===l,"content-range mismatch"),QA(this.end==null||this.end===d,"content-range mismatch"),this.resume=n,!0}if(this.end==null){if(e===206){let c=dee(o["content-range"]);if(c==null)return this.handler.onHeaders(e,r,n,s);let{start:l,size:u,end:d=u-1}=c;QA(l!=null&&Number.isFinite(l),"content-range mismatch"),QA(d!=null&&Number.isFinite(d),"invalid content-length"),this.start=l,this.end=d}if(this.end==null){let c=o["content-length"];this.end=c!=null?Number(c)-1:null}return QA(Number.isFinite(this.start)),QA(this.end==null||Number.isFinite(this.end),"invalid content-length"),this.resume=n,this.etag=o.etag!=null?o.etag:null,this.etag!=null&&this.etag.startsWith("W/")&&(this.etag=null),this.handler.onHeaders(e,r,n,s)}let a=new bE("Request failed",e,{headers:o,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))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 s={range:`bytes=${this.start}-${this.end??""}`};this.etag!=null&&(s["if-match"]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...s}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(s){this.handler.onError(s)}}i(r,"onRetry")}};pee.exports=iF});var fee=b((j1t,mee)=>{"use strict";var GGe=Xy(),HGe=Tb(),aF=class extends GGe{static{i(this,"RetryAgent")}#e=null;#t=null;constructor(e,r={}){super(r),this.#e=e,this.#t=r}dispatch(e,r){let n=new HGe({...e,retryOptions:this.#t},{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()}};mee.exports=aF});var mF=b((K1t,wee)=>{"use strict";var Eee=require("node:assert"),{Readable:zGe}=require("node:stream"),{RequestAbortedError:Cee,NotSupportedError:VGe,InvalidArgumentError:YGe,AbortError:cF}=xt(),Iee=ut(),{ReadableStreamFrom:WGe}=ut(),Co=Symbol("kConsume"),SE=Symbol("kReading"),rd=Symbol("kBody"),Aee=Symbol("kAbort"),xee=Symbol("kContentType"),hee=Symbol("kContentLength"),jGe=i(()=>{},"noop"),lF=class extends zGe{static{i(this,"BodyReadable")}constructor({resume:e,abort:r,contentType:n="",contentLength:s,highWaterMark:o=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:o}),this._readableState.dataEmitted=!1,this[Aee]=r,this[Co]=null,this[rd]=null,this[xee]=n,this[hee]=s,this[SE]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new Cee),e&&this[Aee](),super.destroy(e)}_destroy(e,r){this[SE]?r(e):setImmediate(()=>{r(e)})}on(e,...r){return(e==="data"||e==="readable")&&(this[SE]=!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[SE]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...r){return this.off(e,...r)}push(e){return this[Co]&&e!==null?(dF(this[Co],e),this[SE]?super.push(e):!0):super.push(e)}async text(){return BE(this,"text")}async json(){return BE(this,"json")}async blob(){return BE(this,"blob")}async bytes(){return BE(this,"bytes")}async arrayBuffer(){return BE(this,"arrayBuffer")}async formData(){throw new VGe}get bodyUsed(){return Iee.isDisturbed(this)}get body(){return this[rd]||(this[rd]=WGe(this),this[Co]&&(this[rd].getReader(),Eee(this[rd].locked))),this[rd]}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 YGe("signal must be an AbortSignal");return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((s,o)=>{this[hee]>r&&this.destroy(new cF);let a=i(()=>{this.destroy(n.reason??new cF)},"onAbort");n?.addEventListener("abort",a),this.on("close",function(){n?.removeEventListener("abort",a),n?.aborted?o(n.reason??new cF):s(null)}).on("error",jGe).on("data",function(c){r-=c.length,r<=0&&this.destroy()}).resume()})}};function JGe(t){return t[rd]&&t[rd].locked===!0||t[Co]}i(JGe,"isLocked");function KGe(t){return Iee.isDisturbed(t)||JGe(t)}i(KGe,"isUnusable");async function BE(t,e){return Eee(!t[Co]),new Promise((r,n)=>{if(KGe(t)){let s=t._readableState;s.destroyed&&s.closeEmitted===!1?t.on("error",o=>{n(o)}).on("close",()=>{n(new TypeError("unusable"))}):n(s.errored??new TypeError("unusable"))}else queueMicrotask(()=>{t[Co]={type:e,stream:t,resolve:r,reject:n,length:0,body:[]},t.on("error",function(s){pF(this[Co],s)}).on("close",function(){this[Co].body!==null&&pF(this[Co],new Cee)}),XGe(t[Co])})})}i(BE,"consume");function XGe(t){if(t.body===null)return;let{_readableState:e}=t.stream;if(e.bufferIndex){let r=e.bufferIndex,n=e.buffer.length;for(let s=r;s2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(s,n)}i(uF,"chunksDecode");function gee(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 s=0;s{var ZGe=require("node:assert"),{ResponseStatusCodeError:bee}=xt(),{chunksDecode:See}=mF(),eHe=128*1024;async function tHe({callback:t,body:e,contentType:r,statusCode:n,statusMessage:s,headers:o}){ZGe(e);let a=[],c=0;try{for await(let p of e)if(a.push(p),c+=p.length,c>eHe){a=[],c=0;break}}catch{a=[],c=0}let l=`Response status code ${n}${s?`: ${s}`:""}`;if(n===204||!r||!c){queueMicrotask(()=>t(new bee(l,n,o)));return}let u=Error.stackTraceLimit;Error.stackTraceLimit=0;let d;try{Bee(r)?d=JSON.parse(See(a,c)):Ree(r)&&(d=See(a,c))}catch{}finally{Error.stackTraceLimit=u}queueMicrotask(()=>t(new bee(l,n,o,d)))}i(tHe,"getResolveErrorBodyCallback");var Bee=i(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"),Ree=i(t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t","isContentTypeText");Nee.exports={getResolveErrorBodyCallback:tHe,isContentTypeApplicationJson:Bee,isContentTypeText:Ree}});var vee=b((tUt,AF)=>{"use strict";var rHe=require("node:assert"),{Readable:nHe}=mF(),{InvalidArgumentError:DA,RequestAbortedError:Tee}=xt(),Io=ut(),{getResolveErrorBodyCallback:sHe}=fF(),{AsyncResource:oHe}=require("node:async_hooks"),Pb=class extends oHe{static{i(this,"RequestHandler")}constructor(e,r){if(!e||typeof e!="object")throw new DA("invalid opts");let{signal:n,method:s,opaque:o,body:a,onInfo:c,responseHeaders:l,throwOnError:u,highWaterMark:d}=e;try{if(typeof r!="function")throw new DA("invalid callback");if(d&&(typeof d!="number"||d<0))throw new DA("invalid highWaterMark");if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new DA("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new DA("invalid method");if(c&&typeof c!="function")throw new DA("invalid onInfo callback");super("UNDICI_REQUEST")}catch(p){throw Io.isStream(a)&&Io.destroy(a.on("error",Io.nop),p),p}this.method=s,this.responseHeaders=l||null,this.opaque=o||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,Io.isStream(a)&&a.on("error",p=>{this.onError(p)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new Tee:this.removeAbortListener=Io.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new Tee,this.res?Io.destroy(this.res.on("error",Io.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}rHe(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,s){let{callback:o,opaque:a,abort:c,context:l,responseHeaders:u,highWaterMark:d}=this,p=u==="raw"?Io.parseRawHeaders(r):Io.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let m=u==="raw"?Io.parseHeaders(r):p,f=m["content-type"],g=m["content-length"],E=new nHe({resume:n,abort:c,contentType:f,contentLength:this.method!=="HEAD"&&g?Number(g):null,highWaterMark:d});this.removeAbortListener&&E.on("close",this.removeAbortListener),this.callback=null,this.res=E,o!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(sHe,null,{callback:o,body:E,contentType:f,statusCode:e,statusMessage:s,headers:p}):this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:a,body:E,context:l}))}onData(e){return this.res.push(e)}onComplete(e){Io.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:r,callback:n,body:s,opaque:o}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:o})})),r&&(this.res=null,queueMicrotask(()=>{Io.destroy(r,e)})),s&&(this.body=null,Io.destroy(s,e)),this.removeAbortListener&&(r?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}};function Pee(t,e){if(e===void 0)return new Promise((r,n)=>{Pee.call(this,t,(s,o)=>s?n(s):r(o))});try{this.dispatch(t,new Pb(t,e))}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(Pee,"request");AF.exports=Pee;AF.exports.RequestHandler=Pb});var RE=b((nUt,Dee)=>{var{addAbortListener:iHe}=ut(),{RequestAbortedError:aHe}=xt(),kA=Symbol("kListener"),Wa=Symbol("kSignal");function _ee(t){t.abort?t.abort(t[Wa]?.reason):t.reason=t[Wa]?.reason??new aHe,Qee(t)}i(_ee,"abort");function cHe(t,e){if(t.reason=null,t[Wa]=null,t[kA]=null,!!e){if(e.aborted){_ee(t);return}t[Wa]=e,t[kA]=()=>{_ee(t)},iHe(t[Wa],t[kA])}}i(cHe,"addSignal");function Qee(t){t[Wa]&&("removeEventListener"in t[Wa]?t[Wa].removeEventListener("abort",t[kA]):t[Wa].removeListener("abort",t[kA]),t[Wa]=null,t[kA]=null)}i(Qee,"removeSignal");Dee.exports={addSignal:cHe,removeSignal:Qee}});var Mee=b((oUt,Oee)=>{"use strict";var lHe=require("node:assert"),{finished:uHe,PassThrough:dHe}=require("node:stream"),{InvalidArgumentError:LA,InvalidReturnValueError:pHe}=xt(),na=ut(),{getResolveErrorBodyCallback:mHe}=fF(),{AsyncResource:fHe}=require("node:async_hooks"),{addSignal:AHe,removeSignal:kee}=RE(),hF=class extends fHe{static{i(this,"StreamHandler")}constructor(e,r,n){if(!e||typeof e!="object")throw new LA("invalid opts");let{signal:s,method:o,opaque:a,body:c,onInfo:l,responseHeaders:u,throwOnError:d}=e;try{if(typeof n!="function")throw new LA("invalid callback");if(typeof r!="function")throw new LA("invalid factory");if(s&&typeof s.on!="function"&&typeof s.addEventListener!="function")throw new LA("signal must be an EventEmitter or EventTarget");if(o==="CONNECT")throw new LA("invalid method");if(l&&typeof l!="function")throw new LA("invalid onInfo callback");super("UNDICI_STREAM")}catch(p){throw na.isStream(c)&&na.destroy(c.on("error",na.nop),p),p}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,na.isStream(c)&&c.on("error",p=>{this.onError(p)}),AHe(this,s)}onConnect(e,r){if(this.reason){e(this.reason);return}lHe(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,s){let{factory:o,opaque:a,context:c,callback:l,responseHeaders:u}=this,d=u==="raw"?na.parseRawHeaders(r):na.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:d});return}this.factory=null;let p;if(this.throwOnError&&e>=400){let g=(u==="raw"?na.parseHeaders(r):d)["content-type"];p=new dHe,this.callback=null,this.runInAsyncScope(mHe,null,{callback:l,body:p,contentType:g,statusCode:e,statusMessage:s,headers:d})}else{if(o===null)return;if(p=this.runInAsyncScope(o,null,{statusCode:e,headers:d,opaque:a,context:c}),!p||typeof p.write!="function"||typeof p.end!="function"||typeof p.on!="function")throw new pHe("expected Writable");uHe(p,{readable:!1},f=>{let{callback:g,res:E,opaque:x,trailers:w,abort:S}=this;this.res=null,(f||!E.readable)&&na.destroy(E,f),this.callback=null,this.runInAsyncScope(g,null,f||null,{opaque:x,trailers:w}),f&&S()})}return p.on("drain",n),this.res=p,(p.writableNeedDrain!==void 0?p.writableNeedDrain:p._writableState?.needDrain)!==!0}onData(e){let{res:r}=this;return r?r.write(e):!0}onComplete(e){let{res:r}=this;kee(this),r&&(this.trailers=na.parseHeaders(e),r.end())}onError(e){let{res:r,callback:n,opaque:s,body:o}=this;kee(this),this.factory=null,r?(this.res=null,na.destroy(r,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:s})})),o&&(this.body=null,na.destroy(o,e))}};function Lee(t,e,r){if(r===void 0)return new Promise((n,s)=>{Lee.call(this,t,e,(o,a)=>o?s(o):n(a))});try{this.dispatch(t,new hF(t,e,r))}catch(n){if(typeof r!="function")throw n;let s=t?.opaque;queueMicrotask(()=>r(n,{opaque:s}))}}i(Lee,"stream");Oee.exports=Lee});var $ee=b((aUt,qee)=>{"use strict";var{Readable:Uee,Duplex:hHe,PassThrough:gHe}=require("node:stream"),{InvalidArgumentError:NE,InvalidReturnValueError:yHe,RequestAbortedError:gF}=xt(),ai=ut(),{AsyncResource:EHe}=require("node:async_hooks"),{addSignal:CHe,removeSignal:IHe}=RE(),Fee=require("node:assert"),OA=Symbol("resume"),yF=class extends Uee{static{i(this,"PipelineRequest")}constructor(){super({autoDestroy:!0}),this[OA]=null}_read(){let{[OA]:e}=this;e&&(this[OA]=null,e())}_destroy(e,r){this._read(),r(e)}},EF=class extends Uee{static{i(this,"PipelineResponse")}constructor(e){super({autoDestroy:!0}),this[OA]=e}_read(){this[OA]()}_destroy(e,r){!e&&!this._readableState.endEmitted&&(e=new gF),r(e)}},CF=class extends EHe{static{i(this,"PipelineHandler")}constructor(e,r){if(!e||typeof e!="object")throw new NE("invalid opts");if(typeof r!="function")throw new NE("invalid handler");let{signal:n,method:s,opaque:o,onInfo:a,responseHeaders:c}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new NE("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new NE("invalid method");if(a&&typeof a!="function")throw new NE("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=o||null,this.responseHeaders=c||null,this.handler=r,this.abort=null,this.context=null,this.onInfo=a||null,this.req=new yF().on("error",ai.nop),this.ret=new hHe({readableObjectMode:e.objectMode,autoDestroy:!0,read:i(()=>{let{body:l}=this;l?.resume&&l.resume()},"read"),write:i((l,u,d)=>{let{req:p}=this;p.push(l,u)||p._readableState.destroyed?d():p[OA]=d},"write"),destroy:i((l,u)=>{let{body:d,req:p,res:m,ret:f,abort:g}=this;!l&&!f._readableState.endEmitted&&(l=new gF),g&&l&&g(),ai.destroy(d,l),ai.destroy(p,l),ai.destroy(m,l),IHe(this),u(l)},"destroy")}).on("prefinish",()=>{let{req:l}=this;l.push(null)}),this.res=null,CHe(this,n)}onConnect(e,r){let{ret:n,res:s}=this;if(this.reason){e(this.reason);return}Fee(!s,"pipeline cannot be retried"),Fee(!n.destroyed),this.abort=e,this.context=r}onHeaders(e,r,n){let{opaque:s,handler:o,context:a}=this;if(e<200){if(this.onInfo){let l=this.responseHeaders==="raw"?ai.parseRawHeaders(r):ai.parseHeaders(r);this.onInfo({statusCode:e,headers:l})}return}this.res=new EF(n);let c;try{this.handler=null;let l=this.responseHeaders==="raw"?ai.parseRawHeaders(r):ai.parseHeaders(r);c=this.runInAsyncScope(o,null,{statusCode:e,headers:l,opaque:s,body:this.res,context:a})}catch(l){throw this.res.on("error",ai.nop),l}if(!c||typeof c.on!="function")throw new yHe("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;ai.destroy(u,l)}).on("end",()=>{let{ret:l}=this;l.push(null)}).on("close",()=>{let{ret:l}=this;l._readableState.ended||ai.destroy(l,new gF)}),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,ai.destroy(r,e)}};function xHe(t,e){try{let r=new CF(t,e);return this.dispatch({...t,body:r.req},r),r.ret}catch(r){return new gHe().destroy(r)}}i(xHe,"pipeline");qee.exports=xHe});var Wee=b((lUt,Yee)=>{"use strict";var{InvalidArgumentError:IF,SocketError:wHe}=xt(),{AsyncResource:bHe}=require("node:async_hooks"),Gee=ut(),{addSignal:SHe,removeSignal:Hee}=RE(),zee=require("node:assert"),xF=class extends bHe{static{i(this,"UpgradeHandler")}constructor(e,r){if(!e||typeof e!="object")throw new IF("invalid opts");if(typeof r!="function")throw new IF("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new IF("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=o||null,this.opaque=s||null,this.callback=r,this.abort=null,this.context=null,SHe(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}zee(this.callback),this.abort=e,this.context=null}onHeaders(){throw new wHe("bad upgrade",null)}onUpgrade(e,r,n){zee(e===101);let{callback:s,opaque:o,context:a}=this;Hee(this),this.callback=null;let c=this.responseHeaders==="raw"?Gee.parseRawHeaders(r):Gee.parseHeaders(r);this.runInAsyncScope(s,null,null,{headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;Hee(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Vee(t,e){if(e===void 0)return new Promise((r,n)=>{Vee.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new xF(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}))}}i(Vee,"upgrade");Yee.exports=Vee});var Zee=b((dUt,Xee)=>{"use strict";var BHe=require("node:assert"),{AsyncResource:RHe}=require("node:async_hooks"),{InvalidArgumentError:wF,SocketError:NHe}=xt(),jee=ut(),{addSignal:THe,removeSignal:Jee}=RE(),bF=class extends RHe{static{i(this,"ConnectHandler")}constructor(e,r){if(!e||typeof e!="object")throw new wF("invalid opts");if(typeof r!="function")throw new wF("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new wF("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=s||null,this.responseHeaders=o||null,this.callback=r,this.abort=null,THe(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}BHe(this.callback),this.abort=e,this.context=r}onHeaders(){throw new NHe("bad connect",null)}onUpgrade(e,r,n){let{callback:s,opaque:o,context:a}=this;Jee(this),this.callback=null;let c=r;c!=null&&(c=this.responseHeaders==="raw"?jee.parseRawHeaders(r):jee.parseHeaders(r)),this.runInAsyncScope(s,null,null,{statusCode:e,headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;Jee(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Kee(t,e){if(e===void 0)return new Promise((r,n)=>{Kee.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new bF(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}))}}i(Kee,"connect");Xee.exports=Kee});var ete=b((mUt,MA)=>{"use strict";MA.exports.request=vee();MA.exports.stream=Mee();MA.exports.pipeline=$ee();MA.exports.upgrade=Wee();MA.exports.connect=Zee()});var BF=b((fUt,rte)=>{"use strict";var{UndiciError:PHe}=xt(),tte=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED"),SF=class t extends PHe{static{i(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[tte]===!0}[tte]=!0};rte.exports={MockNotMatchedError:SF}});var FA=b((hUt,nte)=>{"use strict";nte.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 TE=b((gUt,fte)=>{"use strict";var{MockNotMatchedError:Kp}=BF(),{kDispatches:vb,kMockAgent:vHe,kOriginalDispatch:_He,kOrigin:QHe,kGetNetConnect:DHe}=FA(),{buildURL:kHe}=ut(),{STATUS_CODES:LHe}=require("node:http"),{types:{isPromise:OHe}}=require("node:util");function Fl(t,e){return typeof t=="string"?t===e:t instanceof RegExp?t.test(e):typeof t=="function"?t(e)===!0:!1}i(Fl,"matchValue");function ote(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLocaleLowerCase(),r]))}i(ote,"lowerCaseEntries");function ite(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 s=ite(e,r);if(!Fl(n,s))return!1}return!0}i(ate,"matchHeaders");function ste(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("?")}i(ste,"safeUrl");function MHe(t,{path:e,method:r,body:n,headers:s}){let o=Fl(t.path,e),a=Fl(t.method,r),c=typeof t.body<"u"?Fl(t.body,n):!0,l=ate(t,s);return o&&a&&c&&l}i(MHe,"matchKey");function cte(t){return Buffer.isBuffer(t)||t instanceof Uint8Array||t instanceof ArrayBuffer?t:typeof t=="object"?JSON.stringify(t):t.toString()}i(cte,"getResponseData");function lte(t,e){let r=e.query?kHe(e.path,e.query):e.path,n=typeof r=="string"?ste(r):r,s=t.filter(({consumed:o})=>!o).filter(({path:o})=>Fl(ste(o),n));if(s.length===0)throw new Kp(`Mock dispatch not matched for path '${n}'`);if(s=s.filter(({method:o})=>Fl(o,e.method)),s.length===0)throw new Kp(`Mock dispatch not matched for method '${e.method}' on path '${n}'`);if(s=s.filter(({body:o})=>typeof o<"u"?Fl(o,e.body):!0),s.length===0)throw new Kp(`Mock dispatch not matched for body '${e.body}' on path '${n}'`);if(s=s.filter(o=>ate(o,e.headers)),s.length===0){let o=typeof e.headers=="object"?JSON.stringify(e.headers):e.headers;throw new Kp(`Mock dispatch not matched for headers '${o}' on path '${n}'`)}return s[0]}i(lte,"getMockDispatch");function FHe(t,e,r){let n={timesInvoked:0,times:1,persist:!1,consumed:!1},s=typeof r=="function"?{callback:r}:{...r},o={...n,...e,pending:!0,data:{error:null,...s}};return t.push(o),o}i(FHe,"addMockDispatch");function RF(t,e){let r=t.findIndex(n=>n.consumed?MHe(n,e):!1);r!==-1&&t.splice(r,1)}i(RF,"deleteMockDispatch");function ute(t){let{path:e,method:r,body:n,headers:s,query:o}=t;return{path:e,method:r,body:n,headers:s,query:o}}i(ute,"buildKey");function NF(t){let e=Object.keys(t),r=[];for(let n=0;n=m,n.pending=p0?setTimeout(()=>{f(this[vb])},u):f(this[vb]);function f(E,x=o){let w=Array.isArray(t.headers)?TF(t.headers):t.headers,S=typeof x=="function"?x({...t,headers:w}):x;if(OHe(S)){S.then(M=>f(E,M));return}let P=cte(S),Q=NF(a),q=NF(c);e.onConnect?.(M=>e.onError(M),null),e.onHeaders?.(s,Q,g,dte(s)),e.onData?.(Buffer.from(P)),e.onComplete?.(q),RF(E,r)}i(f,"handleReply");function g(){}return i(g,"resume"),!0}i(pte,"mockDispatch");function qHe(){let t=this[vHe],e=this[QHe],r=this[_He];return i(function(s,o){if(t.isMockActive)try{pte.call(this,s,o)}catch(a){if(a instanceof Kp){let c=t[DHe]();if(c===!1)throw new Kp(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(mte(c,e))r.call(this,s,o);else throw new Kp(`${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,s,o)},"dispatch")}i(qHe,"buildMockDispatch");function mte(t,e){let r=new URL(e);return t===!0?!0:!!(Array.isArray(t)&&t.some(n=>Fl(n,r.host)))}i(mte,"checkNetConnect");function $He(t){if(t){let{agent:e,...r}=t;return r}}i($He,"buildMockOptions");fte.exports={getResponseData:cte,getMockDispatch:lte,addMockDispatch:FHe,deleteMockDispatch:RF,buildKey:ute,generateKeyValues:NF,matchValue:Fl,getResponse:UHe,getStatusText:dte,mockDispatch:pte,buildMockDispatch:qHe,checkNetConnect:mte,buildMockOptions:$He,getHeaderByName:ite,buildHeadersFromArray:TF}});var LF=b((EUt,kF)=>{"use strict";var{getResponseData:GHe,buildKey:HHe,addMockDispatch:PF}=TE(),{kDispatches:_b,kDispatchKey:Qb,kDefaultHeaders:vF,kDefaultTrailers:_F,kContentLength:QF,kMockDispatch:Db}=FA(),{InvalidArgumentError:ja}=xt(),{buildURL:zHe}=ut(),UA=class{static{i(this,"MockScope")}constructor(e){this[Db]=e}delay(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new ja("waitInMs must be a valid integer > 0");return this[Db].delay=e,this}persist(){return this[Db].persist=!0,this}times(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new ja("repeatTimes must be a valid integer > 0");return this[Db].times=e,this}},DF=class{static{i(this,"MockInterceptor")}constructor(e,r){if(typeof e!="object")throw new ja("opts must be an object");if(typeof e.path>"u")throw new ja("opts.path must be defined");if(typeof e.method>"u"&&(e.method="GET"),typeof e.path=="string")if(e.query)e.path=zHe(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[Qb]=HHe(e),this[_b]=r,this[vF]={},this[_F]={},this[QF]=!1}createMockScopeDispatchData({statusCode:e,data:r,responseOptions:n}){let s=GHe(r),o=this[QF]?{"content-length":s.length}:{},a={...this[vF],...o,...n.headers},c={...this[_F],...n.trailers};return{statusCode:e,data:r,headers:a,trailers:c}}validateReplyParameters(e){if(typeof e.statusCode>"u")throw new ja("statusCode must be defined");if(typeof e.responseOptions!="object"||e.responseOptions===null)throw new ja("responseOptions must be an object")}reply(e){if(typeof e=="function"){let o=i(c=>{let l=e(c);if(typeof l!="object"||l===null)throw new ja("reply options callback must return an object");let u={data:"",responseOptions:{},...l};return this.validateReplyParameters(u),{...this.createMockScopeDispatchData(u)}},"wrappedDefaultsCallback"),a=PF(this[_b],this[Qb],o);return new UA(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),s=PF(this[_b],this[Qb],n);return new UA(s)}replyWithError(e){if(typeof e>"u")throw new ja("error must be defined");let r=PF(this[_b],this[Qb],{error:e});return new UA(r)}defaultReplyHeaders(e){if(typeof e>"u")throw new ja("headers must be defined");return this[vF]=e,this}defaultReplyTrailers(e){if(typeof e>"u")throw new ja("trailers must be defined");return this[_F]=e,this}replyContentLength(){return this[QF]=!0,this}};kF.exports.MockInterceptor=DF;kF.exports.MockScope=UA});var FF=b((IUt,Ite)=>{"use strict";var{promisify:VHe}=require("node:util"),YHe=TA(),{buildMockDispatch:WHe}=TE(),{kDispatches:Ate,kMockAgent:hte,kClose:gte,kOriginalClose:yte,kOrigin:Ete,kOriginalDispatch:jHe,kConnected:OF}=FA(),{MockInterceptor:JHe}=LF(),Cte=er(),{InvalidArgumentError:KHe}=xt(),MF=class extends YHe{static{i(this,"MockClient")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new KHe("Argument opts.agent must implement Agent");this[hte]=r.agent,this[Ete]=e,this[Ate]=[],this[OF]=1,this[jHe]=this.dispatch,this[yte]=this.close.bind(this),this.dispatch=WHe.call(this),this.close=this[gte]}get[Cte.kConnected](){return this[OF]}intercept(e){return new JHe(e,this[Ate])}async[gte](){await VHe(this[yte])(),this[OF]=0,this[hte][Cte.kClients].delete(this[Ete])}};Ite.exports=MF});var $F=b((wUt,Nte)=>{"use strict";var{promisify:XHe}=require("node:util"),ZHe=PA(),{buildMockDispatch:eze}=TE(),{kDispatches:xte,kMockAgent:wte,kClose:bte,kOriginalClose:Ste,kOrigin:Bte,kOriginalDispatch:tze,kConnected:UF}=FA(),{MockInterceptor:rze}=LF(),Rte=er(),{InvalidArgumentError:nze}=xt(),qF=class extends ZHe{static{i(this,"MockPool")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new nze("Argument opts.agent must implement Agent");this[wte]=r.agent,this[Bte]=e,this[xte]=[],this[UF]=1,this[tze]=this.dispatch,this[Ste]=this.close.bind(this),this.dispatch=eze.call(this),this.close=this[bte]}get[Rte.kConnected](){return this[UF]}intercept(e){return new rze(e,this[xte])}async[bte](){await XHe(this[Ste])(),this[UF]=0,this[wte][Rte.kClients].delete(this[Bte])}};Nte.exports=qF});var Pte=b((BUt,Tte)=>{"use strict";var sze={pronoun:"it",is:"is",was:"was",this:"this"},oze={pronoun:"they",is:"are",was:"were",this:"these"};Tte.exports=class{static{i(this,"Pluralizer")}constructor(e,r){this.singular=e,this.plural=r}pluralize(e){let r=e===1,n=r?sze:oze,s=r?this.singular:this.plural;return{...n,count:e,noun:s}}}});var _te=b((TUt,vte)=>{"use strict";var{Transform:ize}=require("node:stream"),{Console:aze}=require("node:console"),cze=process.versions.icu?"\u2705":"Y ",lze=process.versions.icu?"\u274C":"N ";vte.exports=class{static{i(this,"PendingInterceptorsFormatter")}constructor({disableColors:e}={}){this.transform=new ize({transform(r,n,s){s(null,r)}}),this.logger=new aze({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let r=e.map(({method:n,path:s,data:{statusCode:o},persist:a,times:c,timesInvoked:l,origin:u})=>({Method:n,Origin:u,Path:s,"Status code":o,Persistent:a?cze:lze,Invocations:l,Remaining:a?1/0:c-l}));return this.logger.table(r),this.transform.read().toString()}}});var Lte=b((vUt,kte)=>{"use strict";var{kClients:Xp}=er(),uze=vA(),{kAgent:GF,kMockAgentSet:kb,kMockAgentGet:Qte,kDispatches:HF,kIsMockActive:Lb,kNetConnect:Zp,kGetNetConnect:dze,kOptions:Ob,kFactory:Mb}=FA(),pze=FF(),mze=$F(),{matchValue:fze,buildMockOptions:Aze}=TE(),{InvalidArgumentError:Dte,UndiciError:hze}=xt(),gze=Xy(),yze=Pte(),Eze=_te(),zF=class extends gze{static{i(this,"MockAgent")}constructor(e){if(super(e),this[Zp]=!0,this[Lb]=!0,e?.agent&&typeof e.agent.dispatch!="function")throw new Dte("Argument opts.agent must implement Agent");let r=e?.agent?e.agent:new uze(e);this[GF]=r,this[Xp]=r[Xp],this[Ob]=Aze(e)}get(e){let r=this[Qte](e);return r||(r=this[Mb](e),this[kb](e,r)),r}dispatch(e,r){return this.get(e.origin),this[GF].dispatch(e,r)}async close(){await this[GF].close(),this[Xp].clear()}deactivate(){this[Lb]=!1}activate(){this[Lb]=!0}enableNetConnect(e){if(typeof e=="string"||typeof e=="function"||e instanceof RegExp)Array.isArray(this[Zp])?this[Zp].push(e):this[Zp]=[e];else if(typeof e>"u")this[Zp]=!0;else throw new Dte("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[Zp]=!1}get isMockActive(){return this[Lb]}[kb](e,r){this[Xp].set(e,r)}[Mb](e){let r=Object.assign({agent:this},this[Ob]);return this[Ob]&&this[Ob].connections===1?new pze(e,r):new mze(e,r)}[Qte](e){let r=this[Xp].get(e);if(r)return r;if(typeof e!="string"){let n=this[Mb]("http://localhost:9999");return this[kb](e,n),n}for(let[n,s]of Array.from(this[Xp]))if(s&&typeof n!="string"&&fze(n,e)){let o=this[Mb](e);return this[kb](e,o),o[HF]=s[HF],o}}[dze](){return this[Zp]}pendingInterceptors(){let e=this[Xp];return Array.from(e.entries()).flatMap(([r,n])=>n[HF].map(s=>({...s,origin:r}))).filter(({pending:r})=>r)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new Eze}={}){let r=this.pendingInterceptors();if(r.length===0)return;let n=new yze("interceptor","interceptors").pluralize(r.length);throw new hze(` ${n.count} ${n.noun} ${n.is} pending: ${e.format(r)} -`.trim())}};wte.exports=UF});var kb=b((BUt,Nte)=>{"use strict";var Ste=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:dze}=bt(),pze=NA();Rte()===void 0&&Bte(new pze);function Bte(t){if(!t||typeof t.dispatch!="function")throw new dze("Argument agent must implement Agent");Object.defineProperty(globalThis,Ste,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(Bte,"setGlobalDispatcher");function Rte(){return globalThis[Ste]}i(Rte,"getGlobalDispatcher");Nte.exports={setGlobalDispatcher:Bte,getGlobalDispatcher:Rte}});var Lb=b((TUt,Tte)=>{"use strict";Tte.exports=class{static{i(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 vte=b((vUt,Pte)=>{"use strict";var mze=fb();Pte.exports=t=>{let e=t?.maxRedirections;return r=>i(function(s,o){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,o);let l=new mze(r,a,s,o);return r(c,l)},"redirectInterceptor")}});var Qte=b((QUt,_te)=>{"use strict";var fze=Sb();_te.exports=t=>e=>i(function(n,s){return e(n,new fze({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var kte=b((kUt,Dte)=>{"use strict";var Aze=ut(),{InvalidArgumentError:hze,RequestAbortedError:gze}=bt(),yze=Lb(),qF=class extends yze{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#s=!1;#n=!1;#r=0;#o=null;#i=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new hze("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#i=r}onConnect(e){this.#t=e,this.#i.onConnect(this.#a.bind(this))}#a(e){this.#n=!0,this.#o=e}onHeaders(e,r,n,s){let a=Aze.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new gze(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#n?!0:this.#i.onHeaders(e,r,n,s)}onError(e){this.#s||(e=this.#o??e,this.#i.onError(e))}onData(e){return this.#r=this.#r+e.length,this.#r>=this.#e&&(this.#s=!0,this.#n?this.#i.onError(this.#o):this.#i.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#n){this.#i.onError(this.reason);return}this.#i.onComplete(e)}}};function Eze({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,s){let{dumpMaxSize:o=t}=n,a=new qF({maxSize:o},s);return e(n,a)},"Intercept")}i(Eze,"createDumpInterceptor");Dte.exports=Eze});var Mte=b((OUt,Ote)=>{"use strict";var{isIP:Cze}=require("node:net"),{lookup:Ize}=require("node:dns"),xze=Lb(),{InvalidArgumentError:MA,InformationalError:wze}=bt(),Lte=Math.pow(2,31)-1,$F=class{static{i(this,"DNSInstance")}#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#n,this.pick=e.pick??this.#r}get full(){return this.#s.size===this.#t}runLookup(e,r,n){let s=this.#s.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let o={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,o,(a,c)=>{if(a||c==null||c.length===0){n(a??new wze("No DNS entries found"));return}this.setRecords(e,c);let l=this.#s.get(e.hostname),u=this.pick(e,l,o.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,s,o.affinity);if(a==null){this.#s.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}`)}}#n(e,r,n){Ize(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,o)=>{if(s)return n(s);let a=new Map;for(let c of o)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#r(e,r,n){let s=null,{records:o,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===Lte?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),o[n]!=null&&o[n].ips.length>0?c=o[n]:c=o[n===4?6:4]):c=o[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===Lte?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let o of r){o.timestamp=n,typeof o.ttl=="number"?o.ttl=Math.min(o.ttl,this.#e):o.ttl=this.#e;let a=s.records[o.family]??{ips:[]};a.ips.push(o),s.records[o.family]=a}this.#s.set(e.hostname,s)}getHandler(e,r){return new GF(this,e,r)}},GF=class extends xze{static{i(this,"DNSDispatchHandler")}#e=null;#t=null;#s=null;#n=null;#r=null;constructor(e,{origin:r,handler:n,dispatch:s},o){super(n),this.#r=r,this.#n=n,this.#t={...o},this.#e=e,this.#s=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#r,this.#t,(r,n)=>{if(r)return this.#n.onError(r);let s={...this.#t,origin:n};this.#s(s,this)});return}this.#n.onError(e);return}case"ENOTFOUND":this.#e.deleteRecord(this.#r);default:this.#n.onError(e);break}}};Ote.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!="number"||t?.maxTTL<0))throw new MA("Invalid maxTTL. Must be a positive number");if(t?.maxItems!=null&&(typeof t?.maxItems!="number"||t?.maxItems<1))throw new MA("Invalid maxItems. Must be a positive number and greater than zero");if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6)throw new MA("Invalid affinity. Must be either 4 or 6");if(t?.dualStack!=null&&typeof t?.dualStack!="boolean")throw new MA("Invalid dualStack. Must be a boolean");if(t?.lookup!=null&&typeof t?.lookup!="function")throw new MA("Invalid lookup. Must be a function");if(t?.pick!=null&&typeof t?.pick!="function")throw new MA("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},s=new $F(n);return o=>i(function(c,l){let u=c.origin.constructor===URL?c.origin:new URL(c.origin);return Cze(u.hostname)!==0?o(c,l):(s.runLookup(u,c,(d,p)=>{if(d)return l.onError(d);let m=null;m={...c,servername:u.hostname,origin:p,headers:{host:u.hostname,...c.headers}},o(m,s.getHandler({origin:u,dispatch:o,handler:l},c))}),!0)},"dnsInterceptor")}});var Kp=b((FUt,zte)=>{"use strict";var{kConstruct:bze}=Zt(),{kEnumerableProperty:FA}=ut(),{iteratorMixin:Sze,isValidHeaderName:RE,isValidHeaderValue:Ute}=go(),{webidl:ht}=Rn(),HF=require("node:assert"),Ob=require("node:util"),Vr=Symbol("headers map"),Co=Symbol("headers map sorted");function Fte(t){return t===10||t===13||t===9||t===32}i(Fte,"isHTTPWhiteSpaceCharCode");function qte(t){let e=0,r=t.length;for(;r>e&&Fte(t.charCodeAt(r-1));)--r;for(;r>e&&Fte(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}i(qte,"headerValueNormalize");function $te(t,e){if(Array.isArray(e))for(let r=0;r>","record"]})}i($te,"fill");function zF(t,e,r){if(r=qte(r),RE(e)){if(!Ute(r))throw ht.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ht.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Hte(t)==="immutable")throw new TypeError("immutable");return VF(t).append(e,r,!1)}i(zF,"appendHeader");function Gte(t,e){return t[0]>1),r[u][0]<=d[0]?l=u+1:c=u;if(o!==u){for(a=o;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:s,1:{value:o}}of this[Vr])r[n++]=[s,o],HF(o!==null);return r.sort(Gte)}}},na=class t{static{i(this,"Headers")}#e;#t;constructor(e=void 0){ht.util.markAsUncloneable(this),e!==bze&&(this.#t=new Mb,this.#e="none",e!==void 0&&(e=ht.converters.HeadersInit(e,"Headers contructor","init"),$te(this,e)))}append(e,r){ht.brandCheck(this,t),ht.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=ht.converters.ByteString(e,n,"name"),r=ht.converters.ByteString(r,n,"value"),zF(this,e,r)}delete(e){if(ht.brandCheck(this,t),ht.argumentLengthCheck(arguments,1,"Headers.delete"),e=ht.converters.ByteString(e,"Headers.delete","name"),!RE(e))throw ht.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.contains(e,!1)&&this.#t.delete(e,!1)}get(e){ht.brandCheck(this,t),ht.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=ht.converters.ByteString(e,r,"name"),!RE(e))throw ht.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.get(e,!1)}has(e){ht.brandCheck(this,t),ht.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=ht.converters.ByteString(e,r,"name"),!RE(e))throw ht.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.contains(e,!1)}set(e,r){ht.brandCheck(this,t),ht.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=ht.converters.ByteString(e,n,"name"),r=ht.converters.ByteString(r,n,"value"),r=qte(r),RE(e)){if(!Ute(r))throw ht.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw ht.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.set(e,r,!1)}getSetCookie(){ht.brandCheck(this,t);let e=this.#t.cookies;return e?[...e]:[]}get[Co](){if(this.#t[Co])return this.#t[Co];let e=[],r=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[Co]=r;for(let s=0;s>"](t,e,r,n.bind(t)):ht.converters["record"](t,e,r)}throw ht.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};zte.exports={fill:$te,compareHeaderName:Gte,Headers:na,HeadersList:Mb,getHeadersGuard:Hte,setHeadersGuard:Bze,setHeadersList:Rze,getHeadersList:VF}});var TE=b((qUt,nre)=>{"use strict";var{Headers:Kte,HeadersList:Vte,fill:Nze,getHeadersGuard:Tze,setHeadersGuard:Xte,setHeadersList:Zte}=Kp(),{extractBody:Yte,cloneBody:Pze,mixinBody:vze,hasFinalizationRegistry:ere,streamRegistry:tre,bodyUnusable:_ze}=EA(),YF=ut(),Wte=require("node:util"),{kEnumerableProperty:Io}=YF,{isValidReasonPhrase:Qze,isCancelled:Dze,isAborted:kze,isBlobLike:Lze,serializeJavascriptValueToJSONString:Oze,isErrorLike:Mze,isomorphicEncode:Fze,environmentSettingsObject:Uze}=go(),{redirectStatusSet:qze,nullBodyStatus:$ze}=Xy(),{kState:tr,kHeaders:Fl}=zu(),{webidl:ot}=Rn(),{FormData:Gze}=sE(),{URLSerializer:jte}=Os(),{kConstruct:Ub}=Zt(),WF=require("node:assert"),{types:Hze}=require("node:util"),zze=new TextEncoder("utf-8"),Xp=class t{static{i(this,"Response")}static error(){return NE(qb(),"immutable")}static json(e,r={}){ot.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=ot.converters.ResponseInit(r));let n=zze.encode(Oze(e)),s=Yte(n),o=NE(UA({}),"response");return Jte(o,r,{body:s[0],type:"application/json"}),o}static redirect(e,r=302){ot.argumentLengthCheck(arguments,1,"Response.redirect"),e=ot.converters.USVString(e),r=ot.converters["unsigned short"](r);let n;try{n=new URL(e,Uze.settingsObject.baseUrl)}catch(a){throw new TypeError(`Failed to parse URL from ${e}`,{cause:a})}if(!qze.has(r))throw new RangeError(`Invalid status code ${r}`);let s=NE(UA({}),"immutable");s[tr].status=r;let o=Fze(jte(n));return s[tr].headersList.append("location",o,!0),s}constructor(e=null,r={}){if(ot.util.markAsUncloneable(this),e===Ub)return;e!==null&&(e=ot.converters.BodyInit(e)),r=ot.converters.ResponseInit(r),this[tr]=UA({}),this[Fl]=new Kte(Ub),Xte(this[Fl],"response"),Zte(this[Fl],this[tr].headersList);let n=null;if(e!=null){let[s,o]=Yte(e);n={body:s,type:o}}Jte(this,r,n)}get type(){return ot.brandCheck(this,t),this[tr].type}get url(){ot.brandCheck(this,t);let e=this[tr].urlList,r=e[e.length-1]??null;return r===null?"":jte(r,!0)}get redirected(){return ot.brandCheck(this,t),this[tr].urlList.length>1}get status(){return ot.brandCheck(this,t),this[tr].status}get ok(){return ot.brandCheck(this,t),this[tr].status>=200&&this[tr].status<=299}get statusText(){return ot.brandCheck(this,t),this[tr].statusText}get headers(){return ot.brandCheck(this,t),this[Fl]}get body(){return ot.brandCheck(this,t),this[tr].body?this[tr].body.stream:null}get bodyUsed(){return ot.brandCheck(this,t),!!this[tr].body&&YF.isDisturbed(this[tr].body.stream)}clone(){if(ot.brandCheck(this,t),_ze(this))throw ot.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=jF(this[tr]);return ere&&this[tr].body?.stream&&tre.register(this,new WeakRef(this[tr].body.stream)),NE(e,Tze(this[Fl]))}[Wte.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 ${Wte.formatWithOptions(r,n)}`}};vze(Xp);Object.defineProperties(Xp.prototype,{type:Io,url:Io,status:Io,ok:Io,redirected:Io,statusText:Io,headers:Io,clone:Io,body:Io,bodyUsed:Io,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(Xp,{json:Io,redirect:Io,error:Io});function jF(t){if(t.internalResponse)return rre(jF(t.internalResponse),t.type);let e=UA({...t,body:null});return t.body!=null&&(e.body=Pze(e,t.body)),e}i(jF,"cloneResponse");function UA(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new Vte(t?.headersList):new Vte,urlList:t?.urlList?[...t.urlList]:[]}}i(UA,"makeResponse");function qb(t){let e=Mze(t);return UA({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}i(qb,"makeNetworkError");function Vze(t){return t.type==="error"&&t.status===0}i(Vze,"isNetworkError");function Fb(t,e){return e={internalResponse:t,...e},new Proxy(t,{get(r,n){return n in e?e[n]:r[n]},set(r,n,s){return WF(!(n in e)),r[n]=s,!0}})}i(Fb,"makeFilteredResponse");function rre(t,e){if(e==="basic")return Fb(t,{type:"basic",headersList:t.headersList});if(e==="cors")return Fb(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return Fb(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return Fb(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});WF(!1)}i(rre,"filterResponse");function Yze(t,e=null){return WF(Dze(t)),kze(t)?qb(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):qb(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}i(Yze,"makeAppropriateNetworkError");function Jte(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&&!Qze(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[tr].status=e.status),"statusText"in e&&e.statusText!=null&&(t[tr].statusText=e.statusText),"headers"in e&&e.headers!=null&&Nze(t[Fl],e.headers),r){if($ze.includes(t.status))throw ot.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[tr].body=r.body,r.type!=null&&!t[tr].headersList.contains("content-type",!0)&&t[tr].headersList.append("content-type",r.type,!0)}}i(Jte,"initializeResponse");function NE(t,e){let r=new Xp(Ub);return r[tr]=t,r[Fl]=new Kte(Ub),Zte(r[Fl],t.headersList),Xte(r[Fl],e),ere&&t.body?.stream&&tre.register(r,new WeakRef(t.body.stream)),r}i(NE,"fromInnerResponse");ot.converters.ReadableStream=ot.interfaceConverter(ReadableStream);ot.converters.FormData=ot.interfaceConverter(Gze);ot.converters.URLSearchParams=ot.interfaceConverter(URLSearchParams);ot.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?ot.converters.USVString(t,e,r):Lze(t)?ot.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||Hze.isArrayBuffer(t)?ot.converters.BufferSource(t,e,r):YF.isFormDataLike(t)?ot.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?ot.converters.URLSearchParams(t,e,r):ot.converters.DOMString(t,e,r)};ot.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?ot.converters.ReadableStream(t,e,r):t?.[Symbol.asyncIterator]?t:ot.converters.XMLHttpRequestBodyInit(t,e,r)};ot.converters.ResponseInit=ot.dictionaryConverter([{key:"status",converter:ot.converters["unsigned short"],defaultValue:i(()=>200,"defaultValue")},{key:"statusText",converter:ot.converters.ByteString,defaultValue:i(()=>"","defaultValue")},{key:"headers",converter:ot.converters.HeadersInit}]);nre.exports={isNetworkError:Vze,makeNetworkError:qb,makeResponse:UA,makeAppropriateNetworkError:Yze,filterResponse:rre,Response:Xp,cloneResponse:jF,fromInnerResponse:NE}});var are=b((GUt,ire)=>{"use strict";var{kConnected:sre,kSize:ore}=Zt(),JF=class{static{i(this,"CompatWeakRef")}constructor(e){this.value=e}deref(){return this.value[sre]===0&&this.value[ore]===0?void 0:this.value}},KF=class{static{i(this,"CompatFinalizer")}constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[sre]===0&&e[ore]===0&&this.finalizer(r)})}unregister(e){}};ire.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:JF,FinalizationRegistry:KF}):{WeakRef,FinalizationRegistry}}});var qA=b((zUt,xre)=>{"use strict";var{extractBody:Wze,mixinBody:jze,cloneBody:Jze,bodyUnusable:cre}=EA(),{Headers:gre,fill:Kze,HeadersList:zb,setHeadersGuard:ZF,getHeadersGuard:Xze,setHeadersList:yre,getHeadersList:lre}=Kp(),{FinalizationRegistry:Zze}=are()(),Gb=ut(),ure=require("node:util"),{isValidHTTPToken:e3e,sameOrigin:dre,environmentSettingsObject:$b}=go(),{forbiddenMethodsSet:t3e,corsSafeListedMethodsSet:r3e,referrerPolicy:n3e,requestRedirect:s3e,requestMode:o3e,requestCredentials:i3e,requestCache:a3e,requestDuplex:c3e}=Xy(),{kEnumerableProperty:Yr,normalizedMethodRecordsBase:l3e,normalizedMethodRecords:u3e}=Gb,{kHeaders:xo,kSignal:Hb,kState:Vt,kDispatcher:XF}=zu(),{webidl:Oe}=Rn(),{URLSerializer:d3e}=Os(),{kConstruct:Vb}=Zt(),p3e=require("node:assert"),{getMaxListeners:pre,setMaxListeners:mre,getEventListeners:m3e,defaultMaxListeners:fre}=require("node:events"),f3e=Symbol("abortController"),Ere=new Zze(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),Yb=new WeakMap;function Are(t){return e;function e(){let r=t.deref();if(r!==void 0){Ere.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=Yb.get(r.signal);if(n!==void 0){if(n.size!==0){for(let s of n){let o=s.deref();o!==void 0&&o.abort(this.reason)}n.clear()}Yb.delete(r.signal)}}}}i(Are,"buildAbort");var hre=!1,nd=class t{static{i(this,"Request")}constructor(e,r={}){if(Oe.util.markAsUncloneable(this),e===Vb)return;let n="Request constructor";Oe.argumentLengthCheck(arguments,1,n),e=Oe.converters.RequestInfo(e,n,"input"),r=Oe.converters.RequestInit(r,n,"init");let s=null,o=null,a=$b.settingsObject.baseUrl,c=null;if(typeof e=="string"){this[XF]=r.dispatcher;let w;try{w=new URL(e,a)}catch(S){throw new TypeError("Failed to parse URL from "+e,{cause:S})}if(w.username||w.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);s=Wb({urlList:[w]}),o="cors"}else this[XF]=r.dispatcher||e[XF],p3e(e instanceof t),s=e[Vt],c=e[Hb];let l=$b.settingsObject.origin,u="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&dre(s.window,l)&&(u=s.window),r.window!=null)throw new TypeError(`'window' option '${u}' must be null`);"window"in r&&(u="no-window"),s=Wb({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:$b.settingsObject,window:u,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});let d=Object.keys(r).length!==0;if(d&&(s.mode==="navigate"&&(s.mode="same-origin"),s.reloadNavigation=!1,s.historyNavigation=!1,s.origin="client",s.referrer="client",s.referrerPolicy="",s.url=s.urlList[s.urlList.length-1],s.urlList=[s.url]),r.referrer!==void 0){let w=r.referrer;if(w==="")s.referrer="no-referrer";else{let S;try{S=new URL(w,a)}catch(P){throw new TypeError(`Referrer "${w}" is not a valid URL.`,{cause:P})}S.protocol==="about:"&&S.hostname==="client"||l&&!dre(S,$b.settingsObject.baseUrl)?s.referrer="client":s.referrer=S}}r.referrerPolicy!==void 0&&(s.referrerPolicy=r.referrerPolicy);let p;if(r.mode!==void 0?p=r.mode:p=o,p==="navigate")throw Oe.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(p!=null&&(s.mode=p),r.credentials!==void 0&&(s.credentials=r.credentials),r.cache!==void 0&&(s.cache=r.cache),s.cache==="only-if-cached"&&s.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(r.redirect!==void 0&&(s.redirect=r.redirect),r.integrity!=null&&(s.integrity=String(r.integrity)),r.keepalive!==void 0&&(s.keepalive=!!r.keepalive),r.method!==void 0){let w=r.method,S=u3e[w];if(S!==void 0)s.method=S;else{if(!e3e(w))throw new TypeError(`'${w}' is not a valid HTTP method.`);let P=w.toUpperCase();if(t3e.has(P))throw new TypeError(`'${w}' HTTP method is unsupported.`);w=l3e[P]??w,s.method=w}!hre&&s.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"}),hre=!0)}r.signal!==void 0&&(c=r.signal),this[Vt]=s;let m=new AbortController;if(this[Hb]=m.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)m.abort(c.reason);else{this[f3e]=m;let w=new WeakRef(m),S=Are(w);try{(typeof pre=="function"&&pre(c)===fre||m3e(c,"abort").length>=fre)&&mre(1500,c)}catch{}Gb.addAbortListener(c,S),Ere.register(m,{signal:c,abort:S},S)}}if(this[xo]=new gre(Vb),yre(this[xo],s.headersList),ZF(this[xo],"request"),p==="no-cors"){if(!r3e.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`);ZF(this[xo],"request-no-cors")}if(d){let w=lre(this[xo]),S=r.headers!==void 0?r.headers:new zb(w);if(w.clear(),S instanceof zb){for(let{name:P,value:Q}of S.rawValues())w.append(P,Q,!1);w.cookies=S.cookies}else Kze(this[xo],S)}let f=e instanceof t?e[Vt].body:null;if((r.body!=null||f!=null)&&(s.method==="GET"||s.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let g=null;if(r.body!=null){let[w,S]=Wze(r.body,s.keepalive);g=w,S&&!lre(this[xo]).contains("content-type",!0)&&this[xo].append("content-type",S)}let E=g??f;if(E!=null&&E.source==null){if(g!=null&&r.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(s.mode!=="same-origin"&&s.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');s.useCORSPreflightFlag=!0}let x=E;if(g==null&&f!=null){if(cre(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let w=new TransformStream;f.stream.pipeThrough(w),x={source:f.source,length:f.length,stream:w.readable}}this[Vt].body=x}get method(){return Oe.brandCheck(this,t),this[Vt].method}get url(){return Oe.brandCheck(this,t),d3e(this[Vt].url)}get headers(){return Oe.brandCheck(this,t),this[xo]}get destination(){return Oe.brandCheck(this,t),this[Vt].destination}get referrer(){return Oe.brandCheck(this,t),this[Vt].referrer==="no-referrer"?"":this[Vt].referrer==="client"?"about:client":this[Vt].referrer.toString()}get referrerPolicy(){return Oe.brandCheck(this,t),this[Vt].referrerPolicy}get mode(){return Oe.brandCheck(this,t),this[Vt].mode}get credentials(){return this[Vt].credentials}get cache(){return Oe.brandCheck(this,t),this[Vt].cache}get redirect(){return Oe.brandCheck(this,t),this[Vt].redirect}get integrity(){return Oe.brandCheck(this,t),this[Vt].integrity}get keepalive(){return Oe.brandCheck(this,t),this[Vt].keepalive}get isReloadNavigation(){return Oe.brandCheck(this,t),this[Vt].reloadNavigation}get isHistoryNavigation(){return Oe.brandCheck(this,t),this[Vt].historyNavigation}get signal(){return Oe.brandCheck(this,t),this[Hb]}get body(){return Oe.brandCheck(this,t),this[Vt].body?this[Vt].body.stream:null}get bodyUsed(){return Oe.brandCheck(this,t),!!this[Vt].body&&Gb.isDisturbed(this[Vt].body.stream)}get duplex(){return Oe.brandCheck(this,t),"half"}clone(){if(Oe.brandCheck(this,t),cre(this))throw new TypeError("unusable");let e=Cre(this[Vt]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=Yb.get(this.signal);n===void 0&&(n=new Set,Yb.set(this.signal,n));let s=new WeakRef(r);n.add(s),Gb.addAbortListener(r.signal,Are(s))}return Ire(e,r.signal,Xze(this[xo]))}[ure.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 ${ure.formatWithOptions(r,n)}`}};jze(nd);function Wb(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 zb(t.headersList):new zb}}i(Wb,"makeRequest");function Cre(t){let e=Wb({...t,body:null});return t.body!=null&&(e.body=Jze(e,t.body)),e}i(Cre,"cloneRequest");function Ire(t,e,r){let n=new nd(Vb);return n[Vt]=t,n[Hb]=e,n[xo]=new gre(Vb),yre(n[xo],t.headersList),ZF(n[xo],r),n}i(Ire,"fromInnerRequest");Object.defineProperties(nd.prototype,{method:Yr,url:Yr,headers:Yr,redirect:Yr,clone:Yr,signal:Yr,duplex:Yr,destination:Yr,body:Yr,bodyUsed:Yr,isHistoryNavigation:Yr,isReloadNavigation:Yr,keepalive:Yr,integrity:Yr,cache:Yr,credentials:Yr,attribute:Yr,referrerPolicy:Yr,referrer:Yr,mode:Yr,[Symbol.toStringTag]:{value:"Request",configurable:!0}});Oe.converters.Request=Oe.interfaceConverter(nd);Oe.converters.RequestInfo=function(t,e,r){return typeof t=="string"?Oe.converters.USVString(t,e,r):t instanceof nd?Oe.converters.Request(t,e,r):Oe.converters.USVString(t,e,r)};Oe.converters.AbortSignal=Oe.interfaceConverter(AbortSignal);Oe.converters.RequestInit=Oe.dictionaryConverter([{key:"method",converter:Oe.converters.ByteString},{key:"headers",converter:Oe.converters.HeadersInit},{key:"body",converter:Oe.nullableConverter(Oe.converters.BodyInit)},{key:"referrer",converter:Oe.converters.USVString},{key:"referrerPolicy",converter:Oe.converters.DOMString,allowedValues:n3e},{key:"mode",converter:Oe.converters.DOMString,allowedValues:o3e},{key:"credentials",converter:Oe.converters.DOMString,allowedValues:i3e},{key:"cache",converter:Oe.converters.DOMString,allowedValues:a3e},{key:"redirect",converter:Oe.converters.DOMString,allowedValues:s3e},{key:"integrity",converter:Oe.converters.DOMString},{key:"keepalive",converter:Oe.converters.boolean},{key:"signal",converter:Oe.nullableConverter(t=>Oe.converters.AbortSignal(t,"RequestInit","signal",{strict:!1}))},{key:"window",converter:Oe.converters.any},{key:"duplex",converter:Oe.converters.DOMString,allowedValues:c3e},{key:"dispatcher",converter:Oe.converters.any}]);xre.exports={Request:nd,makeRequest:Wb,fromInnerRequest:Ire,cloneRequest:Cre}});var vE=b((YUt,Ore)=>{"use strict";var{makeNetworkError:Qt,makeAppropriateNetworkError:jb,filterResponse:e1,makeResponse:Jb,fromInnerResponse:A3e}=TE(),{HeadersList:wre}=Kp(),{Request:h3e,cloneRequest:g3e}=qA(),sd=require("node:zlib"),{bytesMatch:y3e,makePolicyContainer:E3e,clonePolicyContainer:C3e,requestBadPort:I3e,TAOCheck:x3e,appendRequestOriginHeader:w3e,responseLocationURL:b3e,requestCurrentURL:Ja,setRequestReferrerPolicyOnRedirect:S3e,tryUpgradeRequestToAPotentiallyTrustworthyURL:B3e,createOpaqueTimingInfo:o1,appendFetchMetadata:R3e,corsCheck:N3e,crossOriginResourcePolicyCheck:T3e,determineRequestsReferrer:P3e,coarsenedSharedCurrentTime:PE,createDeferredPromise:v3e,isBlobLike:_3e,sameOrigin:s1,isCancelled:Zp,isAborted:bre,isErrorLike:Q3e,fullyReadBody:D3e,readableStreamClose:k3e,isomorphicEncode:Kb,urlIsLocal:L3e,urlIsHttpHttpsScheme:i1,urlHasHttpsScheme:O3e,clampAndCoarsenConnectionTimingInfo:M3e,simpleRangeHeaderValue:F3e,buildContentRange:U3e,createInflate:q3e,extractMimeType:$3e}=go(),{kState:Nre,kDispatcher:G3e}=zu(),em=require("node:assert"),{safelyExtractBody:a1,extractBody:Sre}=EA(),{redirectStatusSet:Tre,nullBodyStatus:Pre,safeMethodsSet:H3e,requestBodyHeader:z3e,subresourceSet:V3e}=Xy(),Y3e=require("node:events"),{Readable:W3e,pipeline:j3e,finished:J3e}=require("node:stream"),{addAbortListener:K3e,isErrored:X3e,isReadable:Xb,bufferToLowerCasedHeaderName:Bre}=ut(),{dataURLProcessor:Z3e,serializeAMimeType:eVe,minimizeSupportedMimeType:tVe}=Os(),{getGlobalDispatcher:rVe}=kb(),{webidl:nVe}=Rn(),{STATUS_CODES:sVe}=require("node:http"),oVe=["GET","HEAD"],iVe=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",t1,Zb=class extends Y3e{static{i(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 aVe(t){vre(t,"fetch")}i(aVe,"handleFetchDone");function cVe(t,e=void 0){nVe.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=v3e(),n;try{n=new h3e(t,e)}catch(d){return r.reject(d),r.promise}let s=n[Nre];if(n.signal.aborted)return r1(r,s,null,n.signal.reason),r.promise;s.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope"&&(s.serviceWorkers="none");let a=null,c=!1,l=null;return K3e(n.signal,()=>{c=!0,em(l!=null),l.abort(n.signal.reason);let d=a?.deref();r1(r,s,d,n.signal.reason)}),l=Qre({request:s,processResponseEndOfBody:aVe,processResponse:i(d=>{if(!c){if(d.aborted){r1(r,s,a,l.serializedAbortReason);return}if(d.type==="error"){r.reject(new TypeError("fetch failed",{cause:d.error}));return}a=new WeakRef(A3e(d,"immutable")),r.resolve(a.deref()),r=null}},"processResponse"),dispatcher:n[G3e]}),r.promise}i(cVe,"fetch");function vre(t,e="other"){if(t.type==="error"&&t.aborted||!t.urlList?.length)return;let r=t.urlList[0],n=t.timingInfo,s=t.cacheState;i1(r)&&n!==null&&(t.timingAllowPassed||(n=o1({startTime:n.startTime}),s=""),n.endTime=PE(),t.timingInfo=n,_re(n,r.href,e,globalThis,s))}i(vre,"finalizeAndReportTiming");var _re=performance.markResourceTiming;function r1(t,e,r,n){if(t&&t.reject(n),e.body!=null&&Xb(e.body?.stream)&&e.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o}),r==null)return;let s=r[Nre];s.body!=null&&Xb(s.body?.stream)&&s.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o})}i(r1,"abortFetch");function Qre({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:a=!1,dispatcher:c=rVe()}){em(c);let l=null,u=!1;t.client!=null&&(l=t.client.globalObject,u=t.client.crossOriginIsolatedCapability);let d=PE(u),p=o1({startTime:d}),m={controller:new Zb(c),request:t,timingInfo:p,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:l,crossOriginIsolatedCapability:u};return em(!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=C3e(t.client.policyContainer):t.policyContainer=E3e()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,V3e.has(t.destination),Dre(m).catch(f=>{m.controller.terminate(f)}),m.controller}i(Qre,"fetching");async function Dre(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!L3e(Ja(r))&&(n=Qt("local URLs only")),B3e(r),I3e(r)==="blocked"&&(n=Qt("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=P3e(r)),n===null&&(n=await(async()=>{let o=Ja(r);return s1(o,r.url)&&r.responseTainting==="basic"||o.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await Rre(t)):r.mode==="same-origin"?Qt('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?Qt('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await Rre(t)):i1(Ja(r))?(r.responseTainting="cors",await kre(t)):Qt("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=e1(n,"basic"):r.responseTainting==="cors"?n=e1(n,"cors"):r.responseTainting==="opaque"?n=e1(n,"opaque"):em(!1));let s=n.status===0?n:n.internalResponse;if(s.urlList.length===0&&s.urlList.push(...r.urlList),r.timingAllowFailed||(n.timingAllowPassed=!0),n.type==="opaque"&&s.status===206&&s.rangeRequested&&!r.headers.contains("range",!0)&&(n=s=Qt()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||Pre.includes(s.status))&&(s.body=null,t.controller.dump=!0),r.integrity){let o=i(c=>n1(t,Qt(c)),"processBodyError");if(r.responseTainting==="opaque"||n.body==null){o(n.error);return}let a=i(c=>{if(!y3e(c,r.integrity)){o("integrity mismatch");return}n.body=a1(c)[0],n1(t,n)},"processBody");await D3e(n.body,a,o)}else n1(t,n)}i(Dre,"mainFetch");function Rre(t){if(Zp(t)&&t.request.redirectCount===0)return Promise.resolve(jb(t));let{request:e}=t,{protocol:r}=Ja(e);switch(r){case"about:":return Promise.resolve(Qt("about scheme is not supported"));case"blob:":{t1||(t1=require("node:buffer").resolveObjectURL);let n=Ja(e);if(n.search.length!==0)return Promise.resolve(Qt("NetworkError when attempting to fetch resource."));let s=t1(n.toString());if(e.method!=="GET"||!_3e(s))return Promise.resolve(Qt("invalid method"));let o=Jb(),a=s.size,c=Kb(`${a}`),l=s.type;if(e.headersList.contains("range",!0)){o.rangeRequested=!0;let u=e.headersList.get("range",!0),d=F3e(u,!0);if(d==="failure")return Promise.resolve(Qt("failed to fetch the data URL"));let{rangeStartValue:p,rangeEndValue:m}=d;if(p===null)p=a-m,m=p+m-1;else{if(p>=a)return Promise.resolve(Qt("Range start is greater than the blob's size."));(m===null||m>=a)&&(m=a-1)}let f=s.slice(p,m,l),g=Sre(f);o.body=g[0];let E=Kb(`${f.size}`),x=U3e(p,m,a);o.status=206,o.statusText="Partial Content",o.headersList.set("content-length",E,!0),o.headersList.set("content-type",l,!0),o.headersList.set("content-range",x,!0)}else{let u=Sre(s);o.statusText="OK",o.body=u[0],o.headersList.set("content-length",c,!0),o.headersList.set("content-type",l,!0)}return Promise.resolve(o)}case"data:":{let n=Ja(e),s=Z3e(n);if(s==="failure")return Promise.resolve(Qt("failed to fetch the data URL"));let o=eVe(s.mimeType);return Promise.resolve(Jb({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:o}]],body:a1(s.body)[0]}))}case"file:":return Promise.resolve(Qt("not implemented... yet..."));case"http:":case"https:":return kre(t).catch(n=>Qt(n));default:return Promise.resolve(Qt("unknown scheme"))}}i(Rre,"schemeFetch");function lVe(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}i(lVe,"finalizeResponse");function n1(t,e){let r=t.timingInfo,n=i(()=>{let o=Date.now();t.request.destination==="document"&&(t.controller.fullTimingInfo=r),t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:")return;r.endTime=o;let c=e.cacheState,l=e.bodyInfo;e.timingAllowPassed||(r=o1(r),c="");let u=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){u=e.status;let d=$3e(e.headersList);d!=="failure"&&(l.contentType=tVe(d))}t.request.initiatorType!=null&&_re(r,t.request.url.href,t.request.initiatorType,globalThis,c,l,u)};let a=i(()=>{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 s=e.type==="error"?e:e.internalResponse??e;s.body==null?n():J3e(s.body.stream,()=>{n()})}i(n1,"fetchFinale");async function kre(t){let e=t.request,r=null,n=null,s=t.timingInfo;if(e.serviceWorkers,r===null){if(e.redirect==="follow"&&(e.serviceWorkers="none"),n=r=await Lre(t),e.responseTainting==="cors"&&N3e(e,r)==="failure")return Qt("cors failure");x3e(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&T3e(e.origin,e.client,e.destination,n)==="blocked"?Qt("blocked"):(Tre.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=Qt("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await uVe(t,r):em(!1)),r.timingInfo=s,r)}i(kre,"httpFetch");function uVe(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,s;try{if(s=b3e(n,Ja(r).hash),s==null)return e}catch(a){return Promise.resolve(Qt(a))}if(!i1(s))return Promise.resolve(Qt("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(Qt("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(s.username||s.password)&&!s1(r,s))return Promise.resolve(Qt('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(s.username||s.password))return Promise.resolve(Qt('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(Qt());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!oVe.includes(r.method)){r.method="GET",r.body=null;for(let a of z3e)r.headersList.delete(a)}s1(Ja(r),s)||(r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0)),r.body!=null&&(em(r.body.source!=null),r.body=a1(r.body.source)[0]);let o=t.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=PE(t.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(s),S3e(r,n),Dre(t,!0)}i(uVe,"httpRedirectFetch");async function Lre(t,e=!1,r=!1){let n=t.request,s=null,o=null,a=null,c=null,l=!1;n.window==="no-window"&&n.redirect==="error"?(s=t,o=n):(o=g3e(n),s={...t},s.request=o);let u=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",d=o.body?o.body.length:null,p=null;if(o.body==null&&["POST","PUT"].includes(o.method)&&(p="0"),d!=null&&(p=Kb(`${d}`)),p!=null&&o.headersList.append("content-length",p,!0),d!=null&&o.keepalive,o.referrer instanceof URL&&o.headersList.append("referer",Kb(o.referrer.href),!0),w3e(o),R3e(o),o.headersList.contains("user-agent",!0)||o.headersList.append("user-agent",iVe),o.cache==="default"&&(o.headersList.contains("if-modified-since",!0)||o.headersList.contains("if-none-match",!0)||o.headersList.contains("if-unmodified-since",!0)||o.headersList.contains("if-match",!0)||o.headersList.contains("if-range",!0))&&(o.cache="no-store"),o.cache==="no-cache"&&!o.preventNoCacheCacheControlHeaderModification&&!o.headersList.contains("cache-control",!0)&&o.headersList.append("cache-control","max-age=0",!0),(o.cache==="no-store"||o.cache==="reload")&&(o.headersList.contains("pragma",!0)||o.headersList.append("pragma","no-cache",!0),o.headersList.contains("cache-control",!0)||o.headersList.append("cache-control","no-cache",!0)),o.headersList.contains("range",!0)&&o.headersList.append("accept-encoding","identity",!0),o.headersList.contains("accept-encoding",!0)||(O3e(Ja(o))?o.headersList.append("accept-encoding","br, gzip, deflate",!0):o.headersList.append("accept-encoding","gzip, deflate",!0)),o.headersList.delete("host",!0),c==null&&(o.cache="no-store"),o.cache!=="no-store"&&o.cache,a==null){if(o.cache==="only-if-cached")return Qt("only if cached");let m=await dVe(s,u,r);!H3e.has(o.method)&&m.status>=200&&m.status<=399,l&&m.status,a==null&&(a=m)}if(a.urlList=[...o.urlList],o.headersList.contains("range",!0)&&(a.rangeRequested=!0),a.requestIncludesCredentials=u,a.status===407)return n.window==="no-window"?Qt():Zp(t)?jb(t):Qt("proxy authentication required");if(a.status===421&&!r&&(n.body==null||n.body.source!=null)){if(Zp(t))return jb(t);t.controller.connection.destroy(),a=await Lre(t,e,!0)}return a}i(Lre,"httpNetworkOrCacheFetch");async function dVe(t,e=!1,r=!1){em(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(g,E=!0){this.destroyed||(this.destroyed=!0,E&&this.abort?.(g??new DOMException("The operation was aborted.","AbortError")))}};let n=t.request,s=null,o=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 g=i(async function*(w){Zp(t)||(yield w,t.processRequestBodyChunkLength?.(w.byteLength))},"processBodyChunk"),E=i(()=>{Zp(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},"processEndOfBody"),x=i(w=>{Zp(t)||(w.name==="AbortError"?t.controller.abort():t.controller.terminate(w))},"processBodyError");l=(async function*(){try{for await(let w of n.body.stream)yield*g(w);E()}catch(w){x(w)}})()}try{let{body:g,status:E,statusText:x,headersList:w,socket:S}=await f({body:l});if(S)s=Jb({status:E,statusText:x,headersList:w,socket:S});else{let P=g[Symbol.asyncIterator]();t.controller.next=()=>P.next(),s=Jb({status:E,statusText:x,headersList:w})}}catch(g){return g.name==="AbortError"?(t.controller.connection.destroy(),jb(t,g)):Qt(g)}let u=i(async()=>{await t.controller.resume()},"pullAlgorithm"),d=i(g=>{Zp(t)||t.controller.abort(g)},"cancelAlgorithm"),p=new ReadableStream({async start(g){t.controller.controller=g},async pull(g){await u(g)},async cancel(g){await d(g)},type:"bytes"});s.body={stream:p,source:null,length:null},t.controller.onAborted=m,t.controller.on("terminated",m),t.controller.resume=async()=>{for(;;){let g,E;try{let{done:w,value:S}=await t.controller.next();if(bre(t))break;g=w?void 0:S}catch(w){t.controller.ended&&!o.encodedBodySize?g=void 0:(g=w,E=!0)}if(g===void 0){k3e(t.controller.controller),lVe(t,s);return}if(o.decodedBodySize+=g?.byteLength??0,E){t.controller.terminate(g);return}let x=new Uint8Array(g);if(x.byteLength&&t.controller.controller.enqueue(x),X3e(p)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function m(g){bre(t)?(s.aborted=!0,Xb(p)&&t.controller.controller.error(t.controller.serializedAbortReason)):Xb(p)&&t.controller.controller.error(new TypeError("terminated",{cause:Q3e(g)?g:void 0})),t.controller.connection.destroy()}return i(m,"onAborted"),s;function f({body:g}){let E=Ja(n),x=t.controller.dispatcher;return new Promise((w,S)=>x.dispatch({path:E.pathname+E.search,origin:E.origin,method:n.method,body:x.isMockActive?n.body&&(n.body.source||n.body.stream):g,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(P){let{connection:Q}=t.controller;o.finalConnectionTimingInfo=M3e(void 0,o.postRedirectStartTime,t.crossOriginIsolatedCapability),Q.destroyed?P(new DOMException("The operation was aborted.","AbortError")):(t.controller.on("terminated",P),this.abort=Q.abort=P),o.finalNetworkRequestStartTime=PE(t.crossOriginIsolatedCapability)},onResponseStarted(){o.finalNetworkResponseStartTime=PE(t.crossOriginIsolatedCapability)},onHeaders(P,Q,q,M){if(P<200)return;let V="",pe=new wre;for(let ye=0;yeoe)return S(new Error(`too many content-encodings in response: ${H.length}, maximum allowed is ${oe}`)),!0;for(let It=H.length-1;It>=0;--It){let at=H[It].trim();if(at==="x-gzip"||at==="gzip")ke.push(sd.createGunzip({flush:sd.constants.Z_SYNC_FLUSH,finishFlush:sd.constants.Z_SYNC_FLUSH}));else if(at==="deflate")ke.push(q3e({flush:sd.constants.Z_SYNC_FLUSH,finishFlush:sd.constants.Z_SYNC_FLUSH}));else if(at==="br")ke.push(sd.createBrotliDecompress({flush:sd.constants.BROTLI_OPERATION_FLUSH,finishFlush:sd.constants.BROTLI_OPERATION_FLUSH}));else{ke.length=0;break}}}let se=this.onError.bind(this);return w({status:P,statusText:M,headersList:pe,body:ke.length?j3e(this.body,...ke,ye=>{ye&&this.onError(ye)}).on("error",se):this.body.on("error",se)}),!0},onData(P){if(t.controller.dump)return;let Q=P;return o.encodedBodySize+=Q.byteLength,this.body.push(Q)},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(P){this.abort&&t.controller.off("terminated",this.abort),this.body?.destroy(P),t.controller.terminate(P),S(P)},onUpgrade(P,Q,q){if(P!==101)return;let M=new wre;for(let V=0;V{"use strict";Mre.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 Ure=b((JUt,Fre)=>{"use strict";var{webidl:wo}=Rn(),eS=Symbol("ProgressEvent state"),l1=class t extends Event{static{i(this,"ProgressEvent")}constructor(e,r={}){e=wo.converters.DOMString(e,"ProgressEvent constructor","type"),r=wo.converters.ProgressEventInit(r??{}),super(e,r),this[eS]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return wo.brandCheck(this,t),this[eS].lengthComputable}get loaded(){return wo.brandCheck(this,t),this[eS].loaded}get total(){return wo.brandCheck(this,t),this[eS].total}};wo.converters.ProgressEventInit=wo.dictionaryConverter([{key:"lengthComputable",converter:wo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"loaded",converter:wo.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"total",converter:wo.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"bubbles",converter:wo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:wo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:wo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}]);Fre.exports={ProgressEvent:l1}});var $re=b((XUt,qre)=>{"use strict";function pVe(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"}}i(pVe,"getEncoding");qre.exports={getEncoding:pVe}});var Jre=b((e2t,jre)=>{"use strict";var{kState:$A,kError:u1,kResult:Gre,kAborted:_E,kLastProgressEventFired:d1}=c1(),{ProgressEvent:mVe}=Ure(),{getEncoding:Hre}=$re(),{serializeAMimeType:fVe,parseMIMEType:zre}=Os(),{types:AVe}=require("node:util"),{StringDecoder:Vre}=require("string_decoder"),{btoa:Yre}=require("node:buffer"),hVe={enumerable:!0,writable:!1,configurable:!1};function gVe(t,e,r,n){if(t[$A]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[$A]="loading",t[Gre]=null,t[u1]=null;let o=e.stream().getReader(),a=[],c=o.read(),l=!0;(async()=>{for(;!t[_E];)try{let{done:u,value:d}=await c;if(l&&!t[_E]&&queueMicrotask(()=>{od("loadstart",t)}),l=!1,!u&&AVe.isUint8Array(d))a.push(d),(t[d1]===void 0||Date.now()-t[d1]>=50)&&!t[_E]&&(t[d1]=Date.now(),queueMicrotask(()=>{od("progress",t)})),c=o.read();else if(u){queueMicrotask(()=>{t[$A]="done";try{let p=yVe(a,r,e.type,n);if(t[_E])return;t[Gre]=p,od("load",t)}catch(p){t[u1]=p,od("error",t)}t[$A]!=="loading"&&od("loadend",t)});break}}catch(u){if(t[_E])return;queueMicrotask(()=>{t[$A]="done",t[u1]=u,od("error",t),t[$A]!=="loading"&&od("loadend",t)});break}})()}i(gVe,"readOperation");function od(t,e){let r=new mVe(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}i(od,"fireAProgressEvent");function yVe(t,e,r,n){switch(e){case"DataURL":{let s="data:",o=zre(r||"application/octet-stream");o!=="failure"&&(s+=fVe(o)),s+=";base64,";let a=new Vre("latin1");for(let c of t)s+=Yre(a.write(c));return s+=Yre(a.end()),s}case"Text":{let s="failure";if(n&&(s=Hre(n)),s==="failure"&&r){let o=zre(r);o!=="failure"&&(s=Hre(o.parameters.get("charset")))}return s==="failure"&&(s="UTF-8"),EVe(t,s)}case"ArrayBuffer":return Wre(t).buffer;case"BinaryString":{let s="",o=new Vre("latin1");for(let a of t)s+=o.write(a);return s+=o.end(),s}}}i(yVe,"packageData");function EVe(t,e){let r=Wre(t),n=CVe(r),s=0;n!==null&&(e=n,s=n==="UTF-8"?3:2);let o=r.slice(s);return new TextDecoder(e).decode(o)}i(EVe,"decode");function CVe(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}i(CVe,"BOMSniffing");function Wre(t){let e=t.reduce((n,s)=>n+s.byteLength,0),r=0;return t.reduce((n,s)=>(n.set(s,r),r+=s.byteLength,n),new Uint8Array(e))}i(Wre,"combineByteSequences");jre.exports={staticPropertyDescriptors:hVe,readOperation:gVe,fireAProgressEvent:od}});var ene=b((r2t,Zre)=>{"use strict";var{staticPropertyDescriptors:GA,readOperation:tS,fireAProgressEvent:Kre}=Jre(),{kState:tm,kError:Xre,kResult:rS,kEvents:Bt,kAborted:IVe}=c1(),{webidl:kt}=Rn(),{kEnumerableProperty:Us}=ut(),sa=class t extends EventTarget{static{i(this,"FileReader")}constructor(){super(),this[tm]="empty",this[rS]=null,this[Xre]=null,this[Bt]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){kt.brandCheck(this,t),kt.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=kt.converters.Blob(e,{strict:!1}),tS(this,e,"ArrayBuffer")}readAsBinaryString(e){kt.brandCheck(this,t),kt.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=kt.converters.Blob(e,{strict:!1}),tS(this,e,"BinaryString")}readAsText(e,r=void 0){kt.brandCheck(this,t),kt.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=kt.converters.Blob(e,{strict:!1}),r!==void 0&&(r=kt.converters.DOMString(r,"FileReader.readAsText","encoding")),tS(this,e,"Text",r)}readAsDataURL(e){kt.brandCheck(this,t),kt.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=kt.converters.Blob(e,{strict:!1}),tS(this,e,"DataURL")}abort(){if(this[tm]==="empty"||this[tm]==="done"){this[rS]=null;return}this[tm]==="loading"&&(this[tm]="done",this[rS]=null),this[IVe]=!0,Kre("abort",this),this[tm]!=="loading"&&Kre("loadend",this)}get readyState(){switch(kt.brandCheck(this,t),this[tm]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return kt.brandCheck(this,t),this[rS]}get error(){return kt.brandCheck(this,t),this[Xre]}get onloadend(){return kt.brandCheck(this,t),this[Bt].loadend}set onloadend(e){kt.brandCheck(this,t),this[Bt].loadend&&this.removeEventListener("loadend",this[Bt].loadend),typeof e=="function"?(this[Bt].loadend=e,this.addEventListener("loadend",e)):this[Bt].loadend=null}get onerror(){return kt.brandCheck(this,t),this[Bt].error}set onerror(e){kt.brandCheck(this,t),this[Bt].error&&this.removeEventListener("error",this[Bt].error),typeof e=="function"?(this[Bt].error=e,this.addEventListener("error",e)):this[Bt].error=null}get onloadstart(){return kt.brandCheck(this,t),this[Bt].loadstart}set onloadstart(e){kt.brandCheck(this,t),this[Bt].loadstart&&this.removeEventListener("loadstart",this[Bt].loadstart),typeof e=="function"?(this[Bt].loadstart=e,this.addEventListener("loadstart",e)):this[Bt].loadstart=null}get onprogress(){return kt.brandCheck(this,t),this[Bt].progress}set onprogress(e){kt.brandCheck(this,t),this[Bt].progress&&this.removeEventListener("progress",this[Bt].progress),typeof e=="function"?(this[Bt].progress=e,this.addEventListener("progress",e)):this[Bt].progress=null}get onload(){return kt.brandCheck(this,t),this[Bt].load}set onload(e){kt.brandCheck(this,t),this[Bt].load&&this.removeEventListener("load",this[Bt].load),typeof e=="function"?(this[Bt].load=e,this.addEventListener("load",e)):this[Bt].load=null}get onabort(){return kt.brandCheck(this,t),this[Bt].abort}set onabort(e){kt.brandCheck(this,t),this[Bt].abort&&this.removeEventListener("abort",this[Bt].abort),typeof e=="function"?(this[Bt].abort=e,this.addEventListener("abort",e)):this[Bt].abort=null}};sa.EMPTY=sa.prototype.EMPTY=0;sa.LOADING=sa.prototype.LOADING=1;sa.DONE=sa.prototype.DONE=2;Object.defineProperties(sa.prototype,{EMPTY:GA,LOADING:GA,DONE:GA,readAsArrayBuffer:Us,readAsBinaryString:Us,readAsText:Us,readAsDataURL:Us,abort:Us,readyState:Us,result:Us,error:Us,onloadstart:Us,onprogress:Us,onload:Us,onabort:Us,onerror:Us,onloadend:Us,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(sa,{EMPTY:GA,LOADING:GA,DONE:GA});Zre.exports={FileReader:sa}});var nS=b((s2t,tne)=>{"use strict";tne.exports={kConstruct:Zt().kConstruct}});var sne=b((o2t,nne)=>{"use strict";var xVe=require("node:assert"),{URLSerializer:rne}=Os(),{isValidHeaderName:wVe}=go();function bVe(t,e,r=!1){let n=rne(t,r),s=rne(e,r);return n===s}i(bVe,"urlEquals");function SVe(t){xVe(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),wVe(r)&&e.push(r);return e}i(SVe,"getFieldValues");nne.exports={urlEquals:bVe,getFieldValues:SVe}});var ane=b((a2t,ine)=>{"use strict";var{kConstruct:BVe}=nS(),{urlEquals:RVe,getFieldValues:p1}=sne(),{kEnumerableProperty:rm,isDisturbed:NVe}=ut(),{webidl:Ne}=Rn(),{Response:TVe,cloneResponse:PVe,fromInnerResponse:vVe}=TE(),{Request:Ul,fromInnerRequest:_Ve}=qA(),{kState:oa}=zu(),{fetching:QVe}=vE(),{urlIsHttpHttpsScheme:sS,createDeferredPromise:HA,readAllBytes:DVe}=go(),m1=require("node:assert"),oS=class t{static{i(this,"Cache")}#e;constructor(){arguments[0]!==BVe&&Ne.illegalConstructor(),Ne.util.markAsUncloneable(this),this.#e=arguments[1]}async match(e,r={}){Ne.brandCheck(this,t);let n="Cache.match";Ne.argumentLengthCheck(arguments,1,n),e=Ne.converters.RequestInfo(e,n,"request"),r=Ne.converters.CacheQueryOptions(r,n,"options");let s=this.#r(e,r,1);if(s.length!==0)return s[0]}async matchAll(e=void 0,r={}){Ne.brandCheck(this,t);let n="Cache.matchAll";return e!==void 0&&(e=Ne.converters.RequestInfo(e,n,"request")),r=Ne.converters.CacheQueryOptions(r,n,"options"),this.#r(e,r)}async add(e){Ne.brandCheck(this,t);let r="Cache.add";Ne.argumentLengthCheck(arguments,1,r),e=Ne.converters.RequestInfo(e,r,"request");let n=[e];return await this.addAll(n)}async addAll(e){Ne.brandCheck(this,t);let r="Cache.addAll";Ne.argumentLengthCheck(arguments,1,r);let n=[],s=[];for(let m of e){if(m===void 0)throw Ne.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(m=Ne.converters.RequestInfo(m),typeof m=="string")continue;let f=m[oa];if(!sS(f.url)||f.method!=="GET")throw Ne.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let o=[];for(let m of e){let f=new Ul(m)[oa];if(!sS(f.url))throw Ne.errors.exception({header:r,message:"Expected http/s scheme."});f.initiator="fetch",f.destination="subresource",s.push(f);let g=HA();o.push(QVe({request:f,processResponse(E){if(E.type==="error"||E.status===206||E.status<200||E.status>299)g.reject(Ne.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(E.headersList.contains("vary")){let x=p1(E.headersList.get("vary"));for(let w of x)if(w==="*"){g.reject(Ne.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let S of o)S.abort();return}}},processResponseEndOfBody(E){if(E.aborted){g.reject(new DOMException("aborted","AbortError"));return}g.resolve(E)}})),n.push(g.promise)}let c=await Promise.all(n),l=[],u=0;for(let m of c){let f={type:"put",request:s[u],response:m};l.push(f),u++}let d=HA(),p=null;try{this.#t(l)}catch(m){p=m}return queueMicrotask(()=>{p===null?d.resolve(void 0):d.reject(p)}),d.promise}async put(e,r){Ne.brandCheck(this,t);let n="Cache.put";Ne.argumentLengthCheck(arguments,2,n),e=Ne.converters.RequestInfo(e,n,"request"),r=Ne.converters.Response(r,n,"response");let s=null;if(e instanceof Ul?s=e[oa]:s=new Ul(e)[oa],!sS(s.url)||s.method!=="GET")throw Ne.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"});let o=r[oa];if(o.status===206)throw Ne.errors.exception({header:n,message:"Got 206 status"});if(o.headersList.contains("vary")){let f=p1(o.headersList.get("vary"));for(let g of f)if(g==="*")throw Ne.errors.exception({header:n,message:"Got * vary field value"})}if(o.body&&(NVe(o.body.stream)||o.body.stream.locked))throw Ne.errors.exception({header:n,message:"Response body is locked or disturbed"});let a=PVe(o),c=HA();if(o.body!=null){let g=o.body.stream.getReader();DVe(g).then(c.resolve,c.reject)}else c.resolve(void 0);let l=[],u={type:"put",request:s,response:a};l.push(u);let d=await c.promise;a.body!=null&&(a.body.source=d);let p=HA(),m=null;try{this.#t(l)}catch(f){m=f}return queueMicrotask(()=>{m===null?p.resolve():p.reject(m)}),p.promise}async delete(e,r={}){Ne.brandCheck(this,t);let n="Cache.delete";Ne.argumentLengthCheck(arguments,1,n),e=Ne.converters.RequestInfo(e,n,"request"),r=Ne.converters.CacheQueryOptions(r,n,"options");let s=null;if(e instanceof Ul){if(s=e[oa],s.method!=="GET"&&!r.ignoreMethod)return!1}else m1(typeof e=="string"),s=new Ul(e)[oa];let o=[],a={type:"delete",request:s,options:r};o.push(a);let c=HA(),l=null,u;try{u=this.#t(o)}catch(d){l=d}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(e=void 0,r={}){Ne.brandCheck(this,t);let n="Cache.keys";e!==void 0&&(e=Ne.converters.RequestInfo(e,n,"request")),r=Ne.converters.CacheQueryOptions(r,n,"options");let s=null;if(e!==void 0)if(e instanceof Ul){if(s=e[oa],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new Ul(e)[oa]);let o=HA(),a=[];if(e===void 0)for(let c of this.#e)a.push(c[0]);else{let c=this.#s(s,r);for(let l of c)a.push(l[0])}return queueMicrotask(()=>{let c=[];for(let l of a){let u=_Ve(l,new AbortController().signal,"immutable");c.push(u)}o.resolve(Object.freeze(c))}),o.promise}#t(e){let r=this.#e,n=[...r],s=[],o=[];try{for(let a of e){if(a.type!=="delete"&&a.type!=="put")throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(a.type==="delete"&&a.response!=null)throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#s(a.request,a.options,s).length)throw new DOMException("???","InvalidStateError");let c;if(a.type==="delete"){if(c=this.#s(a.request,a.options),c.length===0)return[];for(let l of c){let u=r.indexOf(l);m1(u!==-1),r.splice(u,1)}}else if(a.type==="put"){if(a.response==null)throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let l=a.request;if(!sS(l.url))throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(l.method!=="GET")throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(a.options!=null)throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});c=this.#s(a.request);for(let u of c){let d=r.indexOf(u);m1(d!==-1),r.splice(d,1)}r.push([a.request,a.response]),s.push([a.request,a.response])}o.push([a.request,a.response])}return o}catch(a){throw this.#e.length=0,this.#e=n,a}}#s(e,r,n){let s=[],o=n??this.#e;for(let a of o){let[c,l]=a;this.#n(e,c,l,r)&&s.push(a)}return s}#n(e,r,n=null,s){let o=new URL(e.url),a=new URL(r.url);if(s?.ignoreSearch&&(a.search="",o.search=""),!RVe(o,a,!0))return!1;if(n==null||s?.ignoreVary||!n.headersList.contains("vary"))return!0;let c=p1(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}#r(e,r,n=1/0){let s=null;if(e!==void 0)if(e instanceof Ul){if(s=e[oa],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new Ul(e)[oa]);let o=[];if(e===void 0)for(let c of this.#e)o.push(c[1]);else{let c=this.#s(s,r);for(let l of c)o.push(l[1])}let a=[];for(let c of o){let l=vVe(c,"immutable");if(a.push(l.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(oS.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:rm,matchAll:rm,add:rm,addAll:rm,put:rm,delete:rm,keys:rm});var one=[{key:"ignoreSearch",converter:Ne.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreMethod",converter:Ne.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreVary",converter:Ne.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}];Ne.converters.CacheQueryOptions=Ne.dictionaryConverter(one);Ne.converters.MultiCacheQueryOptions=Ne.dictionaryConverter([...one,{key:"cacheName",converter:Ne.converters.DOMString}]);Ne.converters.Response=Ne.interfaceConverter(TVe);Ne.converters["sequence"]=Ne.sequenceConverter(Ne.converters.RequestInfo);ine.exports={Cache:oS}});var lne=b((l2t,cne)=>{"use strict";var{kConstruct:QE}=nS(),{Cache:iS}=ane(),{webidl:Hn}=Rn(),{kEnumerableProperty:DE}=ut(),aS=class t{static{i(this,"CacheStorage")}#e=new Map;constructor(){arguments[0]!==QE&&Hn.illegalConstructor(),Hn.util.markAsUncloneable(this)}async match(e,r={}){if(Hn.brandCheck(this,t),Hn.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=Hn.converters.RequestInfo(e),r=Hn.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(this.#e.has(r.cacheName)){let n=this.#e.get(r.cacheName);return await new iS(QE,n).match(e,r)}}else for(let n of this.#e.values()){let o=await new iS(QE,n).match(e,r);if(o!==void 0)return o}}async has(e){Hn.brandCheck(this,t);let r="CacheStorage.has";return Hn.argumentLengthCheck(arguments,1,r),e=Hn.converters.DOMString(e,r,"cacheName"),this.#e.has(e)}async open(e){Hn.brandCheck(this,t);let r="CacheStorage.open";if(Hn.argumentLengthCheck(arguments,1,r),e=Hn.converters.DOMString(e,r,"cacheName"),this.#e.has(e)){let s=this.#e.get(e);return new iS(QE,s)}let n=[];return this.#e.set(e,n),new iS(QE,n)}async delete(e){Hn.brandCheck(this,t);let r="CacheStorage.delete";return Hn.argumentLengthCheck(arguments,1,r),e=Hn.converters.DOMString(e,r,"cacheName"),this.#e.delete(e)}async keys(){return Hn.brandCheck(this,t),[...this.#e.keys()]}};Object.defineProperties(aS.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:DE,has:DE,open:DE,delete:DE,keys:DE});cne.exports={CacheStorage:aS}});var dne=b((d2t,une)=>{"use strict";une.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var f1=b((p2t,hne)=>{"use strict";function kVe(t){for(let e=0;e=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}i(kVe,"isCTLExcludingHtab");function pne(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")}}i(pne,"validateCookieName");function mne(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")}}i(mne,"validateCookieValue");function fne(t){for(let e=0;ee.toString().padStart(2,"0"));function Ane(t){return typeof t=="number"&&(t=new Date(t)),`${OVe[t.getUTCDay()]}, ${cS[t.getUTCDate()]} ${MVe[t.getUTCMonth()]} ${t.getUTCFullYear()} ${cS[t.getUTCHours()]}:${cS[t.getUTCMinutes()]}:${cS[t.getUTCSeconds()]} GMT`}i(Ane,"toIMFDate");function FVe(t){if(t<0)throw new Error("Invalid cookie max-age")}i(FVe,"validateCookieMaxAge");function UVe(t){if(t.name.length===0)return null;pne(t.name),mne(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"&&(FVe(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(LVe(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(fne(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${Ane(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,...s]=r.split("=");e.push(`${n.trim()}=${s.join("=")}`)}return e.join("; ")}i(UVe,"stringify");hne.exports={isCTLExcludingHtab:kVe,validateCookieName:pne,validateCookiePath:fne,validateCookieValue:mne,toIMFDate:Ane,stringify:UVe}});var yne=b((f2t,gne)=>{"use strict";var{maxNameValuePairSize:qVe,maxAttributeValueSize:$Ve}=dne(),{isCTLExcludingHtab:GVe}=f1(),{collectASequenceOfCodePointsFast:lS}=Os(),HVe=require("node:assert");function zVe(t){if(GVe(t))return null;let e="",r="",n="",s="";if(t.includes(";")){let o={position:0};e=lS(";",t,o),r=t.slice(o.position)}else e=t;if(!e.includes("="))s=e;else{let o={position:0};n=lS("=",e,o),s=e.slice(o.position+1)}return n=n.trim(),s=s.trim(),n.length+s.length>qVe?null:{name:n,value:s,...zA(r)}}i(zVe,"parseSetCookie");function zA(t,e={}){if(t.length===0)return e;HVe(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=lS(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",s="";if(r.includes("=")){let a={position:0};n=lS("=",r,a),s=r.slice(a.position+1)}else n=r;if(n=n.trim(),s=s.trim(),s.length>$Ve)return zA(t,e);let o=n.toLowerCase();if(o==="expires"){let a=new Date(s);e.expires=a}else if(o==="max-age"){let a=s.charCodeAt(0);if((a<48||a>57)&&s[0]!=="-"||!/^\d+$/.test(s))return zA(t,e);let c=Number(s);e.maxAge=c}else if(o==="domain"){let a=s;a[0]==="."&&(a=a.slice(1)),a=a.toLowerCase(),e.domain=a}else if(o==="path"){let a="";s.length===0||s[0]!=="/"?a="/":a=s,e.path=a}else if(o==="secure")e.secure=!0;else if(o==="httponly")e.httpOnly=!0;else if(o==="samesite"){let a="Default",c=s.toLowerCase();c.includes("none")&&(a="None"),c.includes("strict")&&(a="Strict"),c.includes("lax")&&(a="Lax"),e.sameSite=a}else e.unparsed??=[],e.unparsed.push(`${n}=${s}`);return zA(t,e)}i(zA,"parseUnparsedAttributes");gne.exports={parseSetCookie:zVe,parseUnparsedAttributes:zA}});var Ine=b((h2t,Cne)=>{"use strict";var{parseSetCookie:VVe}=yne(),{stringify:YVe}=f1(),{webidl:At}=Rn(),{Headers:uS}=Kp();function WVe(t){At.argumentLengthCheck(arguments,1,"getCookies"),At.brandCheck(t,uS,{strict:!1});let e=t.get("cookie"),r={};if(!e)return r;for(let n of e.split(";")){let[s,...o]=n.split("=");r[s.trim()]=o.join("=")}return r}i(WVe,"getCookies");function jVe(t,e,r){At.brandCheck(t,uS,{strict:!1});let n="deleteCookie";At.argumentLengthCheck(arguments,2,n),e=At.converters.DOMString(e,n,"name"),r=At.converters.DeleteCookieAttributes(r),Ene(t,{name:e,value:"",expires:new Date(0),...r})}i(jVe,"deleteCookie");function JVe(t){At.argumentLengthCheck(arguments,1,"getSetCookies"),At.brandCheck(t,uS,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>VVe(r)):[]}i(JVe,"getSetCookies");function Ene(t,e){At.argumentLengthCheck(arguments,2,"setCookie"),At.brandCheck(t,uS,{strict:!1}),e=At.converters.Cookie(e);let r=YVe(e);r&&t.append("Set-Cookie",r)}i(Ene,"setCookie");At.converters.DeleteCookieAttributes=At.dictionaryConverter([{converter:At.nullableConverter(At.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")}]);At.converters.Cookie=At.dictionaryConverter([{converter:At.converters.DOMString,key:"name"},{converter:At.converters.DOMString,key:"value"},{converter:At.nullableConverter(t=>typeof t=="number"?At.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters["long long"]),key:"maxAge",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters.boolean),key:"secure",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters.boolean),key:"httpOnly",defaultValue:i(()=>null,"defaultValue")},{converter:At.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:At.sequenceConverter(At.converters.DOMString),key:"unparsed",defaultValue:i(()=>new Array(0),"defaultValue")}]);Cne.exports={getCookies:WVe,deleteCookie:jVe,getSetCookies:JVe,setCookie:Ene}});var YA=b((y2t,wne)=>{"use strict";var{webidl:be}=Rn(),{kEnumerableProperty:qs}=ut(),{kConstruct:xne}=Zt(),{MessagePort:KVe}=require("node:worker_threads"),VA=class t extends Event{static{i(this,"MessageEvent")}#e;constructor(e,r={}){if(e===xne){super(arguments[1],arguments[2]),be.util.markAsUncloneable(this);return}let n="MessageEvent constructor";be.argumentLengthCheck(arguments,1,n),e=be.converters.DOMString(e,n,"type"),r=be.converters.MessageEventInit(r,n,"eventInitDict"),super(e,r),this.#e=r,be.util.markAsUncloneable(this)}get data(){return be.brandCheck(this,t),this.#e.data}get origin(){return be.brandCheck(this,t),this.#e.origin}get lastEventId(){return be.brandCheck(this,t),this.#e.lastEventId}get source(){return be.brandCheck(this,t),this.#e.source}get ports(){return be.brandCheck(this,t),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(e,r=!1,n=!1,s=null,o="",a="",c=null,l=[]){return be.brandCheck(this,t),be.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new t(e,{bubbles:r,cancelable:n,data:s,origin:o,lastEventId:a,source:c,ports:l})}static createFastMessageEvent(e,r){let n=new t(xne,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:XVe}=VA;delete VA.createFastMessageEvent;var dS=class t extends Event{static{i(this,"CloseEvent")}#e;constructor(e,r={}){let n="CloseEvent constructor";be.argumentLengthCheck(arguments,1,n),e=be.converters.DOMString(e,n,"type"),r=be.converters.CloseEventInit(r),super(e,r),this.#e=r,be.util.markAsUncloneable(this)}get wasClean(){return be.brandCheck(this,t),this.#e.wasClean}get code(){return be.brandCheck(this,t),this.#e.code}get reason(){return be.brandCheck(this,t),this.#e.reason}},pS=class t extends Event{static{i(this,"ErrorEvent")}#e;constructor(e,r){let n="ErrorEvent constructor";be.argumentLengthCheck(arguments,1,n),super(e,r),be.util.markAsUncloneable(this),e=be.converters.DOMString(e,n,"type"),r=be.converters.ErrorEventInit(r??{}),this.#e=r}get message(){return be.brandCheck(this,t),this.#e.message}get filename(){return be.brandCheck(this,t),this.#e.filename}get lineno(){return be.brandCheck(this,t),this.#e.lineno}get colno(){return be.brandCheck(this,t),this.#e.colno}get error(){return be.brandCheck(this,t),this.#e.error}};Object.defineProperties(VA.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:qs,origin:qs,lastEventId:qs,source:qs,ports:qs,initMessageEvent:qs});Object.defineProperties(dS.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:qs,code:qs,wasClean:qs});Object.defineProperties(pS.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:qs,filename:qs,lineno:qs,colno:qs,error:qs});be.converters.MessagePort=be.interfaceConverter(KVe);be.converters["sequence"]=be.sequenceConverter(be.converters.MessagePort);var A1=[{key:"bubbles",converter:be.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:be.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:be.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}];be.converters.MessageEventInit=be.dictionaryConverter([...A1,{key:"data",converter:be.converters.any,defaultValue:i(()=>null,"defaultValue")},{key:"origin",converter:be.converters.USVString,defaultValue:i(()=>"","defaultValue")},{key:"lastEventId",converter:be.converters.DOMString,defaultValue:i(()=>"","defaultValue")},{key:"source",converter:be.nullableConverter(be.converters.MessagePort),defaultValue:i(()=>null,"defaultValue")},{key:"ports",converter:be.converters["sequence"],defaultValue:i(()=>new Array(0),"defaultValue")}]);be.converters.CloseEventInit=be.dictionaryConverter([...A1,{key:"wasClean",converter:be.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"code",converter:be.converters["unsigned short"],defaultValue:i(()=>0,"defaultValue")},{key:"reason",converter:be.converters.USVString,defaultValue:i(()=>"","defaultValue")}]);be.converters.ErrorEventInit=be.dictionaryConverter([...A1,{key:"message",converter:be.converters.DOMString,defaultValue:i(()=>"","defaultValue")},{key:"filename",converter:be.converters.USVString,defaultValue:i(()=>"","defaultValue")},{key:"lineno",converter:be.converters["unsigned long"],defaultValue:i(()=>0,"defaultValue")},{key:"colno",converter:be.converters["unsigned long"],defaultValue:i(()=>0,"defaultValue")},{key:"error",converter:be.converters.any}]);wne.exports={MessageEvent:VA,CloseEvent:dS,ErrorEvent:pS,createFastMessageEvent:XVe}});var nm=b((C2t,bne)=>{"use strict";var ZVe="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",e4e={enumerable:!0,writable:!1,configurable:!1},t4e={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},r4e={NOT_SENT:0,PROCESSING:1,SENT:2},n4e={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},s4e=2**16-1,o4e={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},i4e=Buffer.allocUnsafe(0),a4e={string:1,typedArray:2,arrayBuffer:3,blob:4};bne.exports={uid:ZVe,sentCloseFrameState:r4e,staticPropertyDescriptors:e4e,states:t4e,opcodes:n4e,maxUnsigned16Bit:s4e,parserStates:o4e,emptyBuffer:i4e,sendHints:a4e}});var kE=b((I2t,Sne)=>{"use strict";Sne.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 ME=b((x2t,Dne)=>{"use strict";var{kReadyState:LE,kController:c4e,kResponse:l4e,kBinaryType:u4e,kWebSocketURL:d4e}=kE(),{states:OE,opcodes:id}=nm(),{ErrorEvent:p4e,createFastMessageEvent:m4e}=YA(),{isUtf8:f4e}=require("node:buffer"),{collectASequenceOfCodePointsFast:A4e,removeHTTPWhitespace:Bne}=Os();function h4e(t){return t[LE]===OE.CONNECTING}i(h4e,"isConnecting");function g4e(t){return t[LE]===OE.OPEN}i(g4e,"isEstablished");function y4e(t){return t[LE]===OE.CLOSING}i(y4e,"isClosing");function E4e(t){return t[LE]===OE.CLOSED}i(E4e,"isClosed");function h1(t,e,r=(s,o)=>new Event(s,o),n={}){let s=r(t,n);e.dispatchEvent(s)}i(h1,"fireEvent");function C4e(t,e,r){if(t[LE]!==OE.OPEN)return;let n;if(e===id.TEXT)try{n=Qne(r)}catch{Nne(t,"Received invalid UTF-8 in text frame.");return}else e===id.BINARY&&(t[u4e]==="blob"?n=new Blob([r]):n=I4e(r));h1("message",t,m4e,{origin:t[d4e].origin,data:n})}i(C4e,"websocketMessageReceived");function I4e(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}i(I4e,"toArrayBuffer");function x4e(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}i(x4e,"isValidSubprotocol");function w4e(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}i(w4e,"isValidStatusCode");function Nne(t,e){let{[c4e]:r,[l4e]:n}=t;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&h1("error",t,(s,o)=>new p4e(s,o),{error:new Error(e),message:e})}i(Nne,"failWebsocketConnection");function Tne(t){return t===id.CLOSE||t===id.PING||t===id.PONG}i(Tne,"isControlFrame");function Pne(t){return t===id.CONTINUATION}i(Pne,"isContinuationFrame");function vne(t){return t===id.TEXT||t===id.BINARY}i(vne,"isTextBinaryFrame");function b4e(t){return vne(t)||Pne(t)||Tne(t)}i(b4e,"isValidOpcode");function S4e(t){let e={position:0},r=new Map;for(;e.position57)return!1}let e=Number.parseInt(t,10);return e>=8&&e<=15}i(B4e,"isValidClientWindowBits");var _ne=typeof process.versions.icu=="string",Rne=_ne?new TextDecoder("utf-8",{fatal:!0}):void 0,Qne=_ne?Rne.decode.bind(Rne):function(t){if(f4e(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};Dne.exports={isConnecting:h4e,isEstablished:g4e,isClosing:y4e,isClosed:E4e,fireEvent:h1,isValidSubprotocol:x4e,isValidStatusCode:w4e,failWebsocketConnection:Nne,websocketMessageReceived:C4e,utf8Decode:Qne,isControlFrame:Tne,isContinuationFrame:Pne,isTextBinaryFrame:vne,isValidOpcode:b4e,parseExtensions:S4e,isValidClientWindowBits:B4e}});var fS=b((b2t,kne)=>{"use strict";var{maxUnsigned16Bit:R4e}=nm(),mS=16386,g1,FE=null,WA=mS;try{g1=require("node:crypto")}catch{g1={randomFillSync:i(function(e,r,n){for(let s=0;sR4e?(a+=8,o=127):s>125&&(a+=2,o=126);let c=Buffer.allocUnsafe(s+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]=o,o===126?c.writeUInt16BE(s,2):o===127&&(c[2]=c[3]=0,c.writeUIntBE(s,4,6)),c[1]|=128;for(let l=0;l{"use strict";var{uid:T4e,states:UE,sentCloseFrameState:AS,emptyBuffer:P4e,opcodes:v4e}=nm(),{kReadyState:qE,kSentClose:hS,kByteParser:One,kReceivedClose:Lne,kResponse:Mne}=kE(),{fireEvent:_4e,failWebsocketConnection:ad,isClosing:Q4e,isClosed:D4e,isEstablished:k4e,parseExtensions:L4e}=ME(),{channels:jA}=iA(),{CloseEvent:O4e}=YA(),{makeRequest:M4e}=qA(),{fetching:F4e}=vE(),{Headers:U4e,getHeadersList:q4e}=Kp(),{getDecodeSplit:$4e}=go(),{WebsocketFrameSend:G4e}=fS(),E1;try{E1=require("node:crypto")}catch{}function H4e(t,e,r,n,s,o){let a=t;a.protocol=t.protocol==="ws:"?"http:":"https:";let c=M4e({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){let p=q4e(new U4e(o.headers));c.headersList=p}let l=E1.randomBytes(16).toString("base64");c.headersList.append("sec-websocket-key",l),c.headersList.append("sec-websocket-version","13");for(let p of e)c.headersList.append("sec-websocket-protocol",p);return c.headersList.append("sec-websocket-extensions","permessage-deflate; client_max_window_bits"),F4e({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(p){if(p.type==="error"||p.status!==101){ad(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!p.headersList.get("Sec-WebSocket-Protocol")){ad(n,"Server did not respond with sent protocols.");return}if(p.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){ad(n,'Server did not set Upgrade header to "websocket".');return}if(p.headersList.get("Connection")?.toLowerCase()!=="upgrade"){ad(n,'Server did not set Connection header to "upgrade".');return}let m=p.headersList.get("Sec-WebSocket-Accept"),f=E1.createHash("sha1").update(l+T4e).digest("base64");if(m!==f){ad(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let g=p.headersList.get("Sec-WebSocket-Extensions"),E;if(g!==null&&(E=L4e(g),!E.has("permessage-deflate"))){ad(n,"Sec-WebSocket-Extensions header does not match.");return}let x=p.headersList.get("Sec-WebSocket-Protocol");if(x!==null&&!$4e("sec-websocket-protocol",c.headersList).includes(x)){ad(n,"Protocol was not set in the opening handshake.");return}p.socket.on("data",Fne),p.socket.on("close",Une),p.socket.on("error",qne),jA.open.hasSubscribers&&jA.open.publish({address:p.socket.address(),protocol:x,extensions:g}),s(p,E)}})}i(H4e,"establishWebSocketConnection");function z4e(t,e,r,n){if(!(Q4e(t)||D4e(t)))if(!k4e(t))ad(t,"Connection was closed before it was established."),t[qE]=UE.CLOSING;else if(t[hS]===AS.NOT_SENT){t[hS]=AS.PROCESSING;let s=new G4e;e!==void 0&&r===void 0?(s.frameData=Buffer.allocUnsafe(2),s.frameData.writeUInt16BE(e,0)):e!==void 0&&r!==void 0?(s.frameData=Buffer.allocUnsafe(2+n),s.frameData.writeUInt16BE(e,0),s.frameData.write(r,2,"utf-8")):s.frameData=P4e,t[Mne].socket.write(s.createFrame(v4e.CLOSE)),t[hS]=AS.SENT,t[qE]=UE.CLOSING}else t[qE]=UE.CLOSING}i(z4e,"closeWebSocketConnection");function Fne(t){this.ws[One].write(t)||this.pause()}i(Fne,"onSocketData");function Une(){let{ws:t}=this,{[Mne]:e}=t;e.socket.off("data",Fne),e.socket.off("close",Une),e.socket.off("error",qne);let r=t[hS]===AS.SENT&&t[Lne],n=1005,s="",o=t[One].closingInfo;o&&!o.error?(n=o.code??1005,s=o.reason):t[Lne]||(n=1006),t[qE]=UE.CLOSED,_4e("close",t,(a,c)=>new O4e(a,c),{wasClean:r,code:n,reason:s}),jA.close.hasSubscribers&&jA.close.publish({websocket:t,code:n,reason:s})}i(Une,"onSocketClose");function qne(t){let{ws:e}=this;e[qE]=UE.CLOSING,jA.socketError.hasSubscribers&&jA.socketError.publish(t),this.destroy()}i(qne,"onSocketError");$ne.exports={establishWebSocketConnection:H4e,closeWebSocketConnection:z4e}});var zne=b((N2t,Hne)=>{"use strict";var{createInflateRaw:V4e,Z_DEFAULT_WINDOWBITS:Y4e}=require("node:zlib"),{isValidClientWindowBits:W4e}=ME(),{MessageSizeExceededError:Gne}=bt(),j4e=Buffer.from([0,0,255,255]),gS=Symbol("kBuffer"),$E=Symbol("kLength"),J4e=4*1024*1024,I1=class{static{i(this,"PerMessageDeflate")}#e;#t={};#s=!1;#n=null;constructor(e){this.#t.serverNoContextTakeover=e.has("server_no_context_takeover"),this.#t.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,r,n){if(this.#s){n(new Gne);return}if(!this.#e){let s=Y4e;if(this.#t.serverMaxWindowBits){if(!W4e(this.#t.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}s=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=V4e({windowBits:s})}catch(o){n(o);return}this.#e[gS]=[],this.#e[$E]=0,this.#e.on("data",o=>{if(!this.#s){if(this.#e[$E]+=o.length,this.#e[$E]>J4e){if(this.#s=!0,this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null,this.#n){let a=this.#n;this.#n=null,a(new Gne)}return}this.#e[gS].push(o)}}),this.#e.on("error",o=>{this.#e=null,n(o)})}this.#n=n,this.#e.write(e),r&&this.#e.write(j4e),this.#e.flush(()=>{if(this.#s||!this.#e)return;let s=Buffer.concat(this.#e[gS],this.#e[$E]);this.#e[gS].length=0,this.#e[$E]=0,this.#n=null,n(null,s)})}};Hne.exports={PerMessageDeflate:I1}});var tse=b((P2t,ese)=>{"use strict";var{Writable:K4e}=require("node:stream"),X4e=require("node:assert"),{parserStates:$s,opcodes:JA,states:Z4e,emptyBuffer:Vne,sentCloseFrameState:Yne}=nm(),{kReadyState:eYe,kSentClose:Wne,kResponse:jne,kReceivedClose:Jne}=kE(),{channels:yS}=iA(),{isValidStatusCode:tYe,isValidOpcode:rYe,failWebsocketConnection:bo,websocketMessageReceived:Kne,utf8Decode:nYe,isControlFrame:Xne,isTextBinaryFrame:x1,isContinuationFrame:sYe}=ME(),{WebsocketFrameSend:Zne}=fS(),{closeWebSocketConnection:oYe}=C1(),{PerMessageDeflate:iYe}=zne(),w1=class extends K4e{static{i(this,"ByteParser")}#e=[];#t=0;#s=!1;#n=$s.INFO;#r={};#o=[];#i;constructor(e,r){super(),this.ws=e,this.#i=r??new Map,this.#i.has("permessage-deflate")&&this.#i.set("permessage-deflate",new iYe(r))}_write(e,r,n){this.#e.push(e),this.#t+=e.length,this.#s=!0,this.run(n)}run(e){for(;this.#s;)if(this.#n===$s.INFO){if(this.#t<2)return e();let r=this.consume(2),n=(r[0]&128)!==0,s=r[0]&15,o=(r[1]&128)===128,a=!n&&s!==JA.CONTINUATION,c=r[1]&127,l=r[0]&64,u=r[0]&32,d=r[0]&16;if(!rYe(s))return bo(this.ws,"Invalid opcode received"),e();if(o)return bo(this.ws,"Frame cannot be masked"),e();if(l!==0&&!this.#i.has("permessage-deflate")){bo(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){bo(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!x1(s)){bo(this.ws,"Invalid frame type was fragmented.");return}if(x1(s)&&this.#o.length>0){bo(this.ws,"Expected continuation frame");return}if(this.#r.fragmented&&a){bo(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&Xne(s)){bo(this.ws,"Control frame either too large or fragmented");return}if(sYe(s)&&this.#o.length===0&&!this.#r.compressed){bo(this.ws,"Unexpected continuation frame");return}c<=125?(this.#r.payloadLength=c,this.#n=$s.READ_DATA):c===126?this.#n=$s.PAYLOADLENGTH_16:c===127&&(this.#n=$s.PAYLOADLENGTH_64),x1(s)&&(this.#r.binaryType=s,this.#r.compressed=l!==0),this.#r.opcode=s,this.#r.masked=o,this.#r.fin=n,this.#r.fragmented=a}else if(this.#n===$s.PAYLOADLENGTH_16){if(this.#t<2)return e();let r=this.consume(2);this.#r.payloadLength=r.readUInt16BE(0),this.#n=$s.READ_DATA}else if(this.#n===$s.PAYLOADLENGTH_64){if(this.#t<8)return e();let r=this.consume(8),n=r.readUInt32BE(0),s=r.readUInt32BE(4);if(n!==0||s>2**31-1){bo(this.ws,"Received payload length > 2^31 bytes.");return}this.#r.payloadLength=s,this.#n=$s.READ_DATA}else if(this.#n===$s.READ_DATA){if(this.#t{if(n){bo(this.ws,n.message);return}if(this.#o.push(s),!this.#r.fin){this.#n=$s.INFO,this.#s=!0,this.run(e);return}Kne(this.ws,this.#r.binaryType,Buffer.concat(this.#o)),this.#s=!0,this.#n=$s.INFO,this.#o.length=0,this.run(e)}),this.#s=!1;break}else{if(this.#o.push(r),!this.#r.fragmented&&this.#r.fin){let n=Buffer.concat(this.#o);Kne(this.ws,this.#r.binaryType,n),this.#o.length=0}this.#n=$s.INFO}}}consume(e){if(e>this.#t)throw new Error("Called consume() before buffers satiated.");if(e===0)return Vne;if(this.#e[0].length===e)return this.#t-=this.#e[0].length,this.#e.shift();let r=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let s=this.#e[0],{length:o}=s;if(o+n===e){r.set(this.#e.shift(),n);break}else if(o+n>e){r.set(s.subarray(0,e-n),n),this.#e[0]=s.subarray(e-n);break}else r.set(this.#e.shift(),n),n+=s.length}return this.#t-=e,r}parseCloseBody(e){X4e(e.length!==1);let r;if(e.length>=2&&(r=e.readUInt16BE(0)),r!==void 0&&!tYe(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=nYe(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.#r;if(r===JA.CLOSE){if(n===1)return bo(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#r.closeInfo=this.parseCloseBody(e),this.#r.closeInfo.error){let{code:s,reason:o}=this.#r.closeInfo;return oYe(this.ws,s,o,o.length),bo(this.ws,o),!1}if(this.ws[Wne]!==Yne.SENT){let s=Vne;this.#r.closeInfo.code&&(s=Buffer.allocUnsafe(2),s.writeUInt16BE(this.#r.closeInfo.code,0));let o=new Zne(s);this.ws[jne].socket.write(o.createFrame(JA.CLOSE),a=>{a||(this.ws[Wne]=Yne.SENT)})}return this.ws[eYe]=Z4e.CLOSING,this.ws[Jne]=!0,!1}else if(r===JA.PING){if(!this.ws[Jne]){let s=new Zne(e);this.ws[jne].socket.write(s.createFrame(JA.PONG)),yS.ping.hasSubscribers&&yS.ping.publish({payload:e})}}else r===JA.PONG&&yS.pong.hasSubscribers&&yS.pong.publish({payload:e});return!0}get closingInfo(){return this.#r.closeInfo}};ese.exports={ByteParser:w1}});var ise=b((_2t,ose)=>{"use strict";var{WebsocketFrameSend:aYe}=fS(),{opcodes:rse,sendHints:KA}=nm(),cYe=QM(),nse=Buffer[Symbol.species],b1=class{static{i(this,"SendQueue")}#e=new cYe;#t=!1;#s;constructor(e){this.#s=e}add(e,r,n){if(n!==KA.blob){let o=sse(e,n);if(!this.#t)this.#s.write(o,r);else{let a={promise:null,callback:r,frame:o};this.#e.push(a)}return}let s={promise:e.arrayBuffer().then(o=>{s.promise=null,s.frame=sse(o,n)}),callback:r,frame:null};this.#e.push(s),this.#t||this.#n()}async#n(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let r=e.shift();r.promise!==null&&await r.promise,this.#s.write(r.frame,r.callback),r.callback=r.frame=null}this.#t=!1}};function sse(t,e){return new aYe(lYe(t,e)).createFrame(e===KA.string?rse.TEXT:rse.BINARY)}i(sse,"createFrame");function lYe(t,e){switch(e){case KA.string:return Buffer.from(t);case KA.arrayBuffer:case KA.blob:return new nse(t);case KA.typedArray:return new nse(t.buffer,t.byteOffset,t.byteLength)}}i(lYe,"toBuffer");ose.exports={SendQueue:b1}});var Ase=b((D2t,fse)=>{"use strict";var{webidl:qe}=Rn(),{URLSerializer:uYe}=Os(),{environmentSettingsObject:ase}=go(),{staticPropertyDescriptors:cd,states:GE,sentCloseFrameState:dYe,sendHints:ES}=nm(),{kWebSocketURL:cse,kReadyState:S1,kController:pYe,kBinaryType:CS,kResponse:lse,kSentClose:mYe,kByteParser:fYe}=kE(),{isConnecting:AYe,isEstablished:hYe,isClosing:gYe,isValidSubprotocol:yYe,fireEvent:use}=ME(),{establishWebSocketConnection:EYe,closeWebSocketConnection:dse}=C1(),{ByteParser:CYe}=tse(),{kEnumerableProperty:ai,isBlobLike:pse}=ut(),{getGlobalDispatcher:IYe}=kb(),{types:mse}=require("node:util"),{ErrorEvent:xYe,CloseEvent:wYe}=YA(),{SendQueue:bYe}=ise(),So=class t extends EventTarget{static{i(this,"WebSocket")}#e={open:null,error:null,close:null,message:null};#t=0;#s="";#n="";#r;constructor(e,r=[]){super(),qe.util.markAsUncloneable(this);let n="WebSocket constructor";qe.argumentLengthCheck(arguments,1,n);let s=qe.converters["DOMString or sequence or WebSocketInit"](r,n,"options");e=qe.converters.USVString(e,n,"url"),r=s.protocols;let o=ase.settingsObject.baseUrl,a;try{a=new URL(e,o)}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=>yYe(l)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[cse]=new URL(a.href);let c=ase.settingsObject;this[pYe]=EYe(a,r,c,this,(l,u)=>this.#o(l,u),s),this[S1]=t.CONNECTING,this[mYe]=dYe.NOT_SENT,this[CS]="blob"}close(e=void 0,r=void 0){qe.brandCheck(this,t);let n="WebSocket.close";if(e!==void 0&&(e=qe.converters["unsigned short"](e,n,"code",{clamp:!0})),r!==void 0&&(r=qe.converters.USVString(r,n,"reason")),e!==void 0&&e!==1e3&&(e<3e3||e>4999))throw new DOMException("invalid code","InvalidAccessError");let s=0;if(r!==void 0&&(s=Buffer.byteLength(r),s>123))throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError");dse(this,e,r,s)}send(e){qe.brandCheck(this,t);let r="WebSocket.send";if(qe.argumentLengthCheck(arguments,1,r),e=qe.converters.WebSocketSendData(e,r,"data"),AYe(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!hYe(this)||gYe(this)))if(typeof e=="string"){let n=Buffer.byteLength(e);this.#t+=n,this.#r.add(e,()=>{this.#t-=n},ES.string)}else mse.isArrayBuffer(e)?(this.#t+=e.byteLength,this.#r.add(e,()=>{this.#t-=e.byteLength},ES.arrayBuffer)):ArrayBuffer.isView(e)?(this.#t+=e.byteLength,this.#r.add(e,()=>{this.#t-=e.byteLength},ES.typedArray)):pse(e)&&(this.#t+=e.size,this.#r.add(e,()=>{this.#t-=e.size},ES.blob))}get readyState(){return qe.brandCheck(this,t),this[S1]}get bufferedAmount(){return qe.brandCheck(this,t),this.#t}get url(){return qe.brandCheck(this,t),uYe(this[cse])}get extensions(){return qe.brandCheck(this,t),this.#n}get protocol(){return qe.brandCheck(this,t),this.#s}get onopen(){return qe.brandCheck(this,t),this.#e.open}set onopen(e){qe.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 qe.brandCheck(this,t),this.#e.error}set onerror(e){qe.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 qe.brandCheck(this,t),this.#e.close}set onclose(e){qe.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 qe.brandCheck(this,t),this.#e.message}set onmessage(e){qe.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 qe.brandCheck(this,t),this[CS]}set binaryType(e){qe.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[CS]="blob":this[CS]=e}#o(e,r){this[lse]=e;let n=new CYe(this,r);n.on("drain",SYe),n.on("error",BYe.bind(this)),e.socket.ws=this,this[fYe]=n,this.#r=new bYe(e.socket),this[S1]=GE.OPEN;let s=e.headersList.get("sec-websocket-extensions");s!==null&&(this.#n=s);let o=e.headersList.get("sec-websocket-protocol");o!==null&&(this.#s=o),use("open",this)}};So.CONNECTING=So.prototype.CONNECTING=GE.CONNECTING;So.OPEN=So.prototype.OPEN=GE.OPEN;So.CLOSING=So.prototype.CLOSING=GE.CLOSING;So.CLOSED=So.prototype.CLOSED=GE.CLOSED;Object.defineProperties(So.prototype,{CONNECTING:cd,OPEN:cd,CLOSING:cd,CLOSED:cd,url:ai,readyState:ai,bufferedAmount:ai,onopen:ai,onerror:ai,onclose:ai,close:ai,onmessage:ai,binaryType:ai,send:ai,extensions:ai,protocol:ai,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(So,{CONNECTING:cd,OPEN:cd,CLOSING:cd,CLOSED:cd});qe.converters["sequence"]=qe.sequenceConverter(qe.converters.DOMString);qe.converters["DOMString or sequence"]=function(t,e,r){return qe.util.Type(t)==="Object"&&Symbol.iterator in t?qe.converters["sequence"](t):qe.converters.DOMString(t,e,r)};qe.converters.WebSocketInit=qe.dictionaryConverter([{key:"protocols",converter:qe.converters["DOMString or sequence"],defaultValue:i(()=>new Array(0),"defaultValue")},{key:"dispatcher",converter:qe.converters.any,defaultValue:i(()=>IYe(),"defaultValue")},{key:"headers",converter:qe.nullableConverter(qe.converters.HeadersInit)}]);qe.converters["DOMString or sequence or WebSocketInit"]=function(t){return qe.util.Type(t)==="Object"&&!(Symbol.iterator in t)?qe.converters.WebSocketInit(t):{protocols:qe.converters["DOMString or sequence"](t)}};qe.converters.WebSocketSendData=function(t){if(qe.util.Type(t)==="Object"){if(pse(t))return qe.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||mse.isArrayBuffer(t))return qe.converters.BufferSource(t)}return qe.converters.USVString(t)};function SYe(){this.ws[lse].socket.resume()}i(SYe,"onParserDrain");function BYe(t){let e,r;t instanceof wYe?(e=t.reason,r=t.code):e=t.message,use("error",this,()=>new xYe("error",{error:t,message:e})),dse(this,r)}i(BYe,"onParserError");fse.exports={WebSocket:So}});var B1=b((L2t,hse)=>{"use strict";function RYe(t){return t.indexOf("\0")===-1}i(RYe,"isValidLastEventId");function NYe(t){if(t.length===0)return!1;for(let e=0;e57)return!1;return!0}i(NYe,"isASCIINumber");function TYe(t){return new Promise(e=>{setTimeout(e,t).unref()})}i(TYe,"delay");hse.exports={isValidLastEventId:RYe,isASCIINumber:NYe,delay:TYe}});var Cse=b((M2t,Ese)=>{"use strict";var{Transform:PYe}=require("node:stream"),{isASCIINumber:gse,isValidLastEventId:yse}=B1(),ql=[239,187,191],R1=10,IS=13,vYe=58,_Ye=32,N1=class extends PYe{static{i(this,"EventSourceStream")}state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0,super(e),this.state=e.eventSourceSettings||{},e.push&&(this.push=e.push)}_transform(e,r,n){if(e.length===0){n();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,e]):this.buffer=e,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===ql[0]){n();return}this.checkBOM=!1,n();return;case 2:if(this.buffer[0]===ql[0]&&this.buffer[1]===ql[1]){n();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===ql[0]&&this.buffer[1]===ql[1]&&this.buffer[2]===ql[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,n();return}this.checkBOM=!1;break;default:this.buffer[0]===ql[0]&&this.buffer[1]===ql[1]&&this.buffer[2]===ql[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos0&&(r[s]=o);break}}processEvent(e){e.retry&&gse(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&yse(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,event:void 0,id:void 0,retry:void 0}}};Ese.exports={EventSourceStream:N1}});var Nse=b((U2t,Rse)=>{"use strict";var{pipeline:QYe}=require("node:stream"),{fetching:DYe}=vE(),{makeRequest:kYe}=qA(),{webidl:$l}=Rn(),{EventSourceStream:LYe}=Cse(),{parseMIMEType:OYe}=Os(),{createFastMessageEvent:MYe}=YA(),{isNetworkError:Ise}=TE(),{delay:FYe}=B1(),{kEnumerableProperty:sm}=ut(),{environmentSettingsObject:xse}=go(),wse=!1,bse=3e3,HE=0,Sse=1,zE=2,UYe="anonymous",qYe="use-credentials",XA=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#s=!1;#n=HE;#r=null;#o=null;#i;#a;constructor(e,r={}){super(),$l.util.markAsUncloneable(this);let n="EventSource constructor";$l.argumentLengthCheck(arguments,1,n),wse||(wse=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=$l.converters.USVString(e,n,"url"),r=$l.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#i=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:bse};let s=xse,o;try{o=new URL(e,s.settingsObject.baseUrl),this.#a.origin=o.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=o.href;let a=UYe;r.withCredentials&&(a=qYe,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=xse.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#r=kYe(c),this.#c()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#s}#c(){if(this.#n===zE)return;this.#n=HE;let e={request:this.#r,dispatcher:this.#i},r=i(n=>{Ise(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Ise(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let s=n.headersList.get("content-type",!0),o=s!==null?OYe(s):"failure",a=o!=="failure"&&o.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=Sse,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new LYe({eventSourceSettings:this.#a,push:i(l=>{this.dispatchEvent(MYe(l.type,l.options))},"push")});QYe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#o=DYe(e)}async#l(){this.#n!==zE&&(this.#n=HE,this.dispatchEvent(new Event("error")),await FYe(this.#a.reconnectionTime),this.#n===HE&&(this.#a.lastEventId.length&&this.#r.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){$l.brandCheck(this,t),this.#n!==zE&&(this.#n=zE,this.#o.abort(),this.#r=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}},Bse={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:HE,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Sse,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:zE,writable:!1}};Object.defineProperties(XA,Bse);Object.defineProperties(XA.prototype,Bse);Object.defineProperties(XA.prototype,{close:sm,onerror:sm,onmessage:sm,onopen:sm,readyState:sm,url:sm,withCredentials:sm});$l.converters.EventSourceInitDict=$l.dictionaryConverter([{key:"withCredentials",converter:$l.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"dispatcher",converter:$l.converters.any}]);Rse.exports={EventSource:XA,defaultReconnectionTime:bse}});var eh=b(($2t,Fe)=>{"use strict";var $Ye=BA(),Tse=jy(),GYe=RA(),HYe=BZ(),zYe=NA(),VYe=ZM(),YYe=JZ(),WYe=ree(),Pse=bt(),wS=ut(),{InvalidArgumentError:xS}=Pse,ZA=$ee(),jYe=Ky(),JYe=DF(),KYe=bte(),XYe=OF(),ZYe=IF(),eWe=Sb(),{getGlobalDispatcher:vse,setGlobalDispatcher:tWe}=kb(),rWe=Lb(),nWe=fb(),sWe=Ab();Object.assign(Tse.prototype,ZA);Fe.exports.Dispatcher=Tse;Fe.exports.Client=$Ye;Fe.exports.Pool=GYe;Fe.exports.BalancedPool=HYe;Fe.exports.Agent=zYe;Fe.exports.ProxyAgent=VYe;Fe.exports.EnvHttpProxyAgent=YYe;Fe.exports.RetryAgent=WYe;Fe.exports.RetryHandler=eWe;Fe.exports.DecoratorHandler=rWe;Fe.exports.RedirectHandler=nWe;Fe.exports.createRedirectInterceptor=sWe;Fe.exports.interceptors={redirect:vte(),retry:Qte(),dump:kte(),dns:Mte()};Fe.exports.buildConnector=jYe;Fe.exports.errors=Pse;Fe.exports.util={parseHeaders:wS.parseHeaders,headerNameToString:wS.headerNameToString};function VE(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 xS("invalid url");if(r!=null&&typeof r!="object")throw new xS("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new xS("invalid opts.path");let a=r.path;r.path.startsWith("/")||(a=`/${a}`),e=new URL(wS.parseOrigin(e).origin+a)}else r||(r=typeof e=="object"?e:{}),e=wS.parseURL(e);let{agent:s,dispatcher:o=vse()}=r;if(s)throw new xS("unsupported opts.agent. Did you mean opts.client?");return t.call(o,{...r,origin:e.origin,path:e.search?`${e.pathname}${e.search}`:e.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}i(VE,"makeDispatcher");Fe.exports.setGlobalDispatcher=tWe;Fe.exports.getGlobalDispatcher=vse;var oWe=vE().fetch;Fe.exports.fetch=i(async function(e,r=void 0){try{return await oWe(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}},"fetch");Fe.exports.Headers=Kp().Headers;Fe.exports.Response=TE().Response;Fe.exports.Request=qA().Request;Fe.exports.FormData=sE().FormData;Fe.exports.File=globalThis.File??require("node:buffer").File;Fe.exports.FileReader=ene().FileReader;var{setGlobalOrigin:iWe,getGlobalOrigin:aWe}=eM();Fe.exports.setGlobalOrigin=iWe;Fe.exports.getGlobalOrigin=aWe;var{CacheStorage:cWe}=lne(),{kConstruct:lWe}=nS();Fe.exports.caches=new cWe(lWe);var{deleteCookie:uWe,getCookies:dWe,getSetCookies:pWe,setCookie:mWe}=Ine();Fe.exports.deleteCookie=uWe;Fe.exports.getCookies=dWe;Fe.exports.getSetCookies=pWe;Fe.exports.setCookie=mWe;var{parseMIMEType:fWe,serializeAMimeType:AWe}=Os();Fe.exports.parseMIMEType=fWe;Fe.exports.serializeAMimeType=AWe;var{CloseEvent:hWe,ErrorEvent:gWe,MessageEvent:yWe}=YA();Fe.exports.WebSocket=Ase().WebSocket;Fe.exports.CloseEvent=hWe;Fe.exports.ErrorEvent=gWe;Fe.exports.MessageEvent=yWe;Fe.exports.request=VE(ZA.request);Fe.exports.stream=VE(ZA.stream);Fe.exports.pipeline=VE(ZA.pipeline);Fe.exports.connect=VE(ZA.connect);Fe.exports.upgrade=VE(ZA.upgrade);Fe.exports.MockClient=JYe;Fe.exports.MockPool=XYe;Fe.exports.MockAgent=KYe;Fe.exports.mockErrors=ZYe;var{EventSource:EWe}=Nse();Fe.exports.EventSource=EWe});var tC=b((g$t,doe)=>{"use strict";var UWe="2.0.0",qWe=Number.MAX_SAFE_INTEGER||9007199254740991,$We=16,GWe=250,HWe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];doe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:$We,MAX_SAFE_BUILD_LENGTH:GWe,MAX_SAFE_INTEGER:qWe,RELEASE_TYPES:HWe,SEMVER_SPEC_VERSION:UWe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var rC=b((y$t,poe)=>{"use strict";var zWe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};poe.exports=zWe});var sh=b((Za,moe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Y1,MAX_SAFE_BUILD_LENGTH:VWe,MAX_LENGTH:YWe}=tC(),WWe=rC();Za=moe.exports={};var jWe=Za.re=[],JWe=Za.safeRe=[],ie=Za.src=[],KWe=Za.safeSrc=[],ae=Za.t={},XWe=0,W1="[a-zA-Z0-9-]",ZWe=[["\\s",1],["\\d",YWe],[W1,VWe]],e8e=i(t=>{for(let[e,r]of ZWe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Xe=i((t,e,r)=>{let n=e8e(e),s=XWe++;WWe(t,s,e),ae[t]=s,ie[s]=e,KWe[s]=n,jWe[s]=new RegExp(e,r?"g":void 0),JWe[s]=new RegExp(n,r?"g":void 0)},"createToken");Xe("NUMERICIDENTIFIER","0|[1-9]\\d*");Xe("NUMERICIDENTIFIERLOOSE","\\d+");Xe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${W1}*`);Xe("MAINVERSION",`(${ie[ae.NUMERICIDENTIFIER]})\\.(${ie[ae.NUMERICIDENTIFIER]})\\.(${ie[ae.NUMERICIDENTIFIER]})`);Xe("MAINVERSIONLOOSE",`(${ie[ae.NUMERICIDENTIFIERLOOSE]})\\.(${ie[ae.NUMERICIDENTIFIERLOOSE]})\\.(${ie[ae.NUMERICIDENTIFIERLOOSE]})`);Xe("PRERELEASEIDENTIFIER",`(?:${ie[ae.NONNUMERICIDENTIFIER]}|${ie[ae.NUMERICIDENTIFIER]})`);Xe("PRERELEASEIDENTIFIERLOOSE",`(?:${ie[ae.NONNUMERICIDENTIFIER]}|${ie[ae.NUMERICIDENTIFIERLOOSE]})`);Xe("PRERELEASE",`(?:-(${ie[ae.PRERELEASEIDENTIFIER]}(?:\\.${ie[ae.PRERELEASEIDENTIFIER]})*))`);Xe("PRERELEASELOOSE",`(?:-?(${ie[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ie[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);Xe("BUILDIDENTIFIER",`${W1}+`);Xe("BUILD",`(?:\\+(${ie[ae.BUILDIDENTIFIER]}(?:\\.${ie[ae.BUILDIDENTIFIER]})*))`);Xe("FULLPLAIN",`v?${ie[ae.MAINVERSION]}${ie[ae.PRERELEASE]}?${ie[ae.BUILD]}?`);Xe("FULL",`^${ie[ae.FULLPLAIN]}$`);Xe("LOOSEPLAIN",`[v=\\s]*${ie[ae.MAINVERSIONLOOSE]}${ie[ae.PRERELEASELOOSE]}?${ie[ae.BUILD]}?`);Xe("LOOSE",`^${ie[ae.LOOSEPLAIN]}$`);Xe("GTLT","((?:<|>)?=?)");Xe("XRANGEIDENTIFIERLOOSE",`${ie[ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Xe("XRANGEIDENTIFIER",`${ie[ae.NUMERICIDENTIFIER]}|x|X|\\*`);Xe("XRANGEPLAIN",`[v=\\s]*(${ie[ae.XRANGEIDENTIFIER]})(?:\\.(${ie[ae.XRANGEIDENTIFIER]})(?:\\.(${ie[ae.XRANGEIDENTIFIER]})(?:${ie[ae.PRERELEASE]})?${ie[ae.BUILD]}?)?)?`);Xe("XRANGEPLAINLOOSE",`[v=\\s]*(${ie[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[ae.XRANGEIDENTIFIERLOOSE]})(?:${ie[ae.PRERELEASELOOSE]})?${ie[ae.BUILD]}?)?)?`);Xe("XRANGE",`^${ie[ae.GTLT]}\\s*${ie[ae.XRANGEPLAIN]}$`);Xe("XRANGELOOSE",`^${ie[ae.GTLT]}\\s*${ie[ae.XRANGEPLAINLOOSE]}$`);Xe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Y1}})(?:\\.(\\d{1,${Y1}}))?(?:\\.(\\d{1,${Y1}}))?`);Xe("COERCE",`${ie[ae.COERCEPLAIN]}(?:$|[^\\d])`);Xe("COERCEFULL",ie[ae.COERCEPLAIN]+`(?:${ie[ae.PRERELEASE]})?(?:${ie[ae.BUILD]})?(?:$|[^\\d])`);Xe("COERCERTL",ie[ae.COERCE],!0);Xe("COERCERTLFULL",ie[ae.COERCEFULL],!0);Xe("LONETILDE","(?:~>?)");Xe("TILDETRIM",`(\\s*)${ie[ae.LONETILDE]}\\s+`,!0);Za.tildeTrimReplace="$1~";Xe("TILDE",`^${ie[ae.LONETILDE]}${ie[ae.XRANGEPLAIN]}$`);Xe("TILDELOOSE",`^${ie[ae.LONETILDE]}${ie[ae.XRANGEPLAINLOOSE]}$`);Xe("LONECARET","(?:\\^)");Xe("CARETTRIM",`(\\s*)${ie[ae.LONECARET]}\\s+`,!0);Za.caretTrimReplace="$1^";Xe("CARET",`^${ie[ae.LONECARET]}${ie[ae.XRANGEPLAIN]}$`);Xe("CARETLOOSE",`^${ie[ae.LONECARET]}${ie[ae.XRANGEPLAINLOOSE]}$`);Xe("COMPARATORLOOSE",`^${ie[ae.GTLT]}\\s*(${ie[ae.LOOSEPLAIN]})$|^$`);Xe("COMPARATOR",`^${ie[ae.GTLT]}\\s*(${ie[ae.FULLPLAIN]})$|^$`);Xe("COMPARATORTRIM",`(\\s*)${ie[ae.GTLT]}\\s*(${ie[ae.LOOSEPLAIN]}|${ie[ae.XRANGEPLAIN]})`,!0);Za.comparatorTrimReplace="$1$2$3";Xe("HYPHENRANGE",`^\\s*(${ie[ae.XRANGEPLAIN]})\\s+-\\s+(${ie[ae.XRANGEPLAIN]})\\s*$`);Xe("HYPHENRANGELOOSE",`^\\s*(${ie[ae.XRANGEPLAINLOOSE]})\\s+-\\s+(${ie[ae.XRANGEPLAINLOOSE]})\\s*$`);Xe("STAR","(<|>)?=?\\s*\\*");Xe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Xe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var TS=b((C$t,foe)=>{"use strict";var t8e=Object.freeze({loose:!0}),r8e=Object.freeze({}),n8e=i(t=>t?typeof t!="object"?t8e:t:r8e,"parseOptions");foe.exports=n8e});var j1=b((x$t,goe)=>{"use strict";var Aoe=/^[0-9]+$/,hoe=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:thoe(e,t),"rcompareIdentifiers");goe.exports={compareIdentifiers:hoe,rcompareIdentifiers:s8e}});var zn=b((b$t,Eoe)=>{"use strict";var PS=rC(),{MAX_LENGTH:yoe,MAX_SAFE_INTEGER:vS}=tC(),{safeRe:_S,t:QS}=sh(),o8e=TS(),{compareIdentifiers:J1}=j1(),K1=class t{static{i(this,"SemVer")}constructor(e,r){if(r=o8e(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>yoe)throw new TypeError(`version is longer than ${yoe} characters`);PS("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?_S[QS.LOOSE]:_S[QS.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>vS||this.major<0)throw new TypeError("Invalid major version");if(this.minor>vS||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>vS||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&oe.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],s=e.prerelease[r];if(PS("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return J1(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(PS("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return J1(n,s)}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 s=`-${r}`.match(this.options.loose?_S[QS.PRERELEASELOOSE]:_S[QS.PRERELEASE]);if(!s||s[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 s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];n===!1&&(o=[r]),J1(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Eoe.exports=K1});var um=b((B$t,Ioe)=>{"use strict";var Coe=zn(),i8e=i((t,e,r=!1)=>{if(t instanceof Coe)return t;try{return new Coe(t,e)}catch(n){if(!r)return null;throw n}},"parse");Ioe.exports=i8e});var woe=b((N$t,xoe)=>{"use strict";var a8e=um(),c8e=i((t,e)=>{let r=a8e(t,e);return r?r.version:null},"valid");xoe.exports=c8e});var Soe=b((P$t,boe)=>{"use strict";var l8e=um(),u8e=i((t,e)=>{let r=l8e(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");boe.exports=u8e});var Noe=b((_$t,Roe)=>{"use strict";var Boe=zn(),d8e=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Boe(t instanceof Boe?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Roe.exports=d8e});var voe=b((D$t,Poe)=>{"use strict";var Toe=um(),p8e=i((t,e)=>{let r=Toe(t,null,!0),n=Toe(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?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");Poe.exports=p8e});var Qoe=b((L$t,_oe)=>{"use strict";var m8e=zn(),f8e=i((t,e)=>new m8e(t,e).major,"major");_oe.exports=f8e});var koe=b((M$t,Doe)=>{"use strict";var A8e=zn(),h8e=i((t,e)=>new A8e(t,e).minor,"minor");Doe.exports=h8e});var Ooe=b((U$t,Loe)=>{"use strict";var g8e=zn(),y8e=i((t,e)=>new g8e(t,e).patch,"patch");Loe.exports=y8e});var Foe=b(($$t,Moe)=>{"use strict";var E8e=um(),C8e=i((t,e)=>{let r=E8e(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Moe.exports=C8e});var ci=b((H$t,qoe)=>{"use strict";var Uoe=zn(),I8e=i((t,e,r)=>new Uoe(t,r).compare(new Uoe(e,r)),"compare");qoe.exports=I8e});var Goe=b((V$t,$oe)=>{"use strict";var x8e=ci(),w8e=i((t,e,r)=>x8e(e,t,r),"rcompare");$oe.exports=w8e});var zoe=b((W$t,Hoe)=>{"use strict";var b8e=ci(),S8e=i((t,e)=>b8e(t,e,!0),"compareLoose");Hoe.exports=S8e});var DS=b((J$t,Yoe)=>{"use strict";var Voe=zn(),B8e=i((t,e,r)=>{let n=new Voe(t,r),s=new Voe(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Yoe.exports=B8e});var joe=b((X$t,Woe)=>{"use strict";var R8e=DS(),N8e=i((t,e)=>t.sort((r,n)=>R8e(r,n,e)),"sort");Woe.exports=N8e});var Koe=b((eGt,Joe)=>{"use strict";var T8e=DS(),P8e=i((t,e)=>t.sort((r,n)=>T8e(n,r,e)),"rsort");Joe.exports=P8e});var nC=b((rGt,Xoe)=>{"use strict";var v8e=ci(),_8e=i((t,e,r)=>v8e(t,e,r)>0,"gt");Xoe.exports=_8e});var kS=b((sGt,Zoe)=>{"use strict";var Q8e=ci(),D8e=i((t,e,r)=>Q8e(t,e,r)<0,"lt");Zoe.exports=D8e});var X1=b((iGt,eie)=>{"use strict";var k8e=ci(),L8e=i((t,e,r)=>k8e(t,e,r)===0,"eq");eie.exports=L8e});var Z1=b((cGt,tie)=>{"use strict";var O8e=ci(),M8e=i((t,e,r)=>O8e(t,e,r)!==0,"neq");tie.exports=M8e});var LS=b((uGt,rie)=>{"use strict";var F8e=ci(),U8e=i((t,e,r)=>F8e(t,e,r)>=0,"gte");rie.exports=U8e});var OS=b((pGt,nie)=>{"use strict";var q8e=ci(),$8e=i((t,e,r)=>q8e(t,e,r)<=0,"lte");nie.exports=$8e});var eU=b((fGt,sie)=>{"use strict";var G8e=X1(),H8e=Z1(),z8e=nC(),V8e=LS(),Y8e=kS(),W8e=OS(),j8e=i((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 G8e(t,r,n);case"!=":return H8e(t,r,n);case">":return z8e(t,r,n);case">=":return V8e(t,r,n);case"<":return Y8e(t,r,n);case"<=":return W8e(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");sie.exports=j8e});var iie=b((hGt,oie)=>{"use strict";var J8e=zn(),K8e=um(),{safeRe:MS,t:FS}=sh(),X8e=i((t,e)=>{if(t instanceof J8e)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?MS[FS.COERCEFULL]:MS[FS.COERCE]);else{let l=e.includePrerelease?MS[FS.COERCERTLFULL]:MS[FS.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],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return K8e(`${n}.${s}.${o}${a}${c}`,e)},"coerce");oie.exports=X8e});var cie=b((yGt,aie)=>{"use strict";var tU=class{static{i(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 s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};aie.exports=tU});var li=b((CGt,pie)=>{"use strict";var Z8e=/\s+/g,rU=class t{static{i(this,"Range")}constructor(e,r){if(r=tje(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof nU)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(Z8e," "),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(s=>!uie(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&cje(s[0])){this.set=[s];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&&ije)|(this.options.loose&&aje))+":"+e,s=lie.get(n);if(s)return s;let o=this.options.loose,a=o?fs[Vn.HYPHENRANGELOOSE]:fs[Vn.HYPHENRANGE];e=e.replace(a,yje(this.options.includePrerelease)),Yt("hyphen replace",e),e=e.replace(fs[Vn.COMPARATORTRIM],nje),Yt("comparator trim",e),e=e.replace(fs[Vn.TILDETRIM],sje),Yt("tilde trim",e),e=e.replace(fs[Vn.CARETTRIM],oje),Yt("caret trim",e);let c=e.split(" ").map(p=>lje(p,this.options)).join(" ").split(/\s+/).map(p=>gje(p,this.options));o&&(c=c.filter(p=>(Yt("loose invalid filter",p,this.options),!!p.match(fs[Vn.COMPARATORLOOSE])))),Yt("range list",c);let l=new Map,u=c.map(p=>new nU(p,this.options));for(let p of u){if(uie(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return lie.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>die(n,r)&&e.set.some(s=>die(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new rje(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),cje=i(t=>t.value==="","isAny"),die=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),lje=i((t,e)=>(t=t.replace(fs[Vn.BUILD],""),Yt("comp",t,e),t=pje(t,e),Yt("caret",t),t=uje(t,e),Yt("tildes",t),t=fje(t,e),Yt("xrange",t),t=hje(t,e),Yt("stars",t),t),"parseComparator"),As=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),uje=i((t,e)=>t.trim().split(/\s+/).map(r=>dje(r,e)).join(" "),"replaceTildes"),dje=i((t,e)=>{let r=e.loose?fs[Vn.TILDELOOSE]:fs[Vn.TILDE];return t.replace(r,(n,s,o,a,c)=>{Yt("tilde",t,n,s,o,a,c);let l;return As(s)?l="":As(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:As(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(Yt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,Yt("tilde return",l),l})},"replaceTilde"),pje=i((t,e)=>t.trim().split(/\s+/).map(r=>mje(r,e)).join(" "),"replaceCarets"),mje=i((t,e)=>{Yt("caret",t,e);let r=e.loose?fs[Vn.CARETLOOSE]:fs[Vn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Yt("caret",t,s,o,a,c,l);let u;return As(o)?u="":As(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:As(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Yt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Yt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Yt("caret return",u),u})},"replaceCaret"),fje=i((t,e)=>(Yt("replaceXRanges",t,e),t.split(/\s+/).map(r=>Aje(r,e)).join(" ")),"replaceXRanges"),Aje=i((t,e)=>{t=t.trim();let r=e.loose?fs[Vn.XRANGELOOSE]:fs[Vn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{Yt("xRange",t,n,s,o,a,c,l);let u=As(o),d=u||As(a),p=d||As(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Yt("xRange return",n),n})},"replaceXRange"),hje=i((t,e)=>(Yt("replaceStars",t,e),t.trim().replace(fs[Vn.STAR],"")),"replaceStars"),gje=i((t,e)=>(Yt("replaceGTE0",t,e),t.trim().replace(fs[e.includePrerelease?Vn.GTE0PRE:Vn.GTE0],"")),"replaceGTE0"),yje=i(t=>(e,r,n,s,o,a,c,l,u,d,p,m)=>(As(n)?r="":As(s)?r=`>=${n}.0.0${t?"-0":""}`:As(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,As(u)?l="":As(d)?l=`<${+u+1}.0.0-0`:As(p)?l=`<${u}.${+d+1}.0-0`:m?l=`<=${u}.${d}.${p}-${m}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),Eje=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var sC=b((xGt,yie)=>{"use strict";var oC=Symbol("SemVer ANY"),iU=class t{static{i(this,"Comparator")}static get ANY(){return oC}constructor(e,r){if(r=mie(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),oU("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===oC?this.value="":this.value=this.operator+this.semver.version,oU("comp",this)}parse(e){let r=this.options.loose?fie[Aie.COMPARATORLOOSE]:fie[Aie.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 hie(n[2],this.options.loose):this.semver=oC}toString(){return this.value}test(e){if(oU("Comparator.test",e,this.options.loose),this.semver===oC||e===oC)return!0;if(typeof e=="string")try{e=new hie(e,this.options)}catch{return!1}return sU(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 gie(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new gie(this.value,r).test(e.semver):(r=mie(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("=")||sU(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||sU(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};yie.exports=iU;var mie=TS(),{safeRe:fie,t:Aie}=sh(),sU=eU(),oU=rC(),hie=zn(),gie=li()});var iC=b((bGt,Eie)=>{"use strict";var Cje=li(),Ije=i((t,e,r)=>{try{e=new Cje(e,r)}catch{return!1}return e.test(t)},"satisfies");Eie.exports=Ije});var Iie=b((BGt,Cie)=>{"use strict";var xje=li(),wje=i((t,e)=>new xje(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Cie.exports=wje});var wie=b((NGt,xie)=>{"use strict";var bje=zn(),Sje=li(),Bje=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Sje(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new bje(n,r))}),n},"maxSatisfying");xie.exports=Bje});var Sie=b((PGt,bie)=>{"use strict";var Rje=zn(),Nje=li(),Tje=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Nje(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Rje(n,r))}),n},"minSatisfying");bie.exports=Tje});var Nie=b((_Gt,Rie)=>{"use strict";var aU=zn(),Pje=li(),Bie=nC(),vje=i((t,e)=>{t=new Pje(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">=":(!o||Bie(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Bie(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");Rie.exports=vje});var Pie=b((DGt,Tie)=>{"use strict";var _je=li(),Qje=i((t,e)=>{try{return new _je(t,e).range||"*"}catch{return null}},"validRange");Tie.exports=Qje});var US=b((LGt,Die)=>{"use strict";var Dje=zn(),Qie=sC(),{ANY:kje}=Qie,Lje=li(),Oje=iC(),vie=nC(),_ie=kS(),Mje=OS(),Fje=LS(),Uje=i((t,e,r,n)=>{t=new Dje(t,n),e=new Lje(e,n);let s,o,a,c,l;switch(r){case">":s=vie,o=Mje,a=_ie,c=">",l=">=";break;case"<":s=_ie,o=Fje,a=vie,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Oje(t,e,n))return!1;for(let u=0;u{f.semver===kje&&(f=new Qie(">=0.0.0")),p=p||f,m=m||f,s(f.semver,p.semver,n)?p=f:a(f.semver,m.semver,n)&&(m=f)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(t,m.semver))return!1;if(m.operator===l&&a(t,m.semver))return!1}return!0},"outside");Die.exports=Uje});var Lie=b((MGt,kie)=>{"use strict";var qje=US(),$je=i((t,e,r)=>qje(t,e,">",r),"gtr");kie.exports=$je});var Mie=b((UGt,Oie)=>{"use strict";var Gje=US(),Hje=i((t,e,r)=>Gje(t,e,"<",r),"ltr");Oie.exports=Hje});var qie=b(($Gt,Uie)=>{"use strict";var Fie=li(),zje=i((t,e,r)=>(t=new Fie(t,r),e=new Fie(e,r),t.intersects(e,r)),"intersects");Uie.exports=zje});var Gie=b((HGt,$ie)=>{"use strict";var Vje=iC(),Yje=ci();$ie.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>Yje(d,p,r));for(let d of a)Vje(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var Hie=li(),lU=sC(),{ANY:cU}=lU,aC=iC(),uU=ci(),Wje=i((t,e,r={})=>{if(t===e)return!0;t=new Hie(t,r),e=new Hie(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=Jje(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),jje=[new lU(">=0.0.0-0")],zie=[new lU(">=0.0.0")],Jje=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===cU){if(e.length===1&&e[0].semver===cU)return!0;r.includePrerelease?t=jje:t=zie}if(e.length===1&&e[0].semver===cU){if(r.includePrerelease)return!0;e=zie}let n=new Set,s,o;for(let f of t)f.operator===">"||f.operator===">="?s=Vie(s,f,r):f.operator==="<"||f.operator==="<="?o=Yie(o,f,r):n.add(f.semver);if(n.size>1)return null;let a;if(s&&o){if(a=uU(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let f of n){if(s&&!aC(f,String(s),r)||o&&!aC(f,String(o),r))return null;for(let g of e)if(!aC(f,String(g),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",u=u||f.operator==="<"||f.operator==="<=",s){if(m&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===m.major&&f.semver.minor===m.minor&&f.semver.patch===m.patch&&(m=!1),f.operator===">"||f.operator===">="){if(c=Vie(s,f,r),c===f&&c!==s)return!1}else if(s.operator===">="&&!aC(s.semver,String(f),r))return!1}if(o){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(l=Yie(o,f,r),l===f&&l!==o)return!1}else if(o.operator==="<="&&!aC(o.semver,String(f),r))return!1}if(!f.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||m||p)},"simpleSubset"),Vie=i((t,e,r)=>{if(!t)return e;let n=uU(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Yie=i((t,e,r)=>{if(!t)return e;let n=uU(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Wie.exports=Wje});var pU=b((YGt,Xie)=>{"use strict";var dU=sh(),Jie=tC(),Kje=zn(),Kie=j1(),Xje=um(),Zje=woe(),eJe=Soe(),tJe=Noe(),rJe=voe(),nJe=Qoe(),sJe=koe(),oJe=Ooe(),iJe=Foe(),aJe=ci(),cJe=Goe(),lJe=zoe(),uJe=DS(),dJe=joe(),pJe=Koe(),mJe=nC(),fJe=kS(),AJe=X1(),hJe=Z1(),gJe=LS(),yJe=OS(),EJe=eU(),CJe=iie(),IJe=sC(),xJe=li(),wJe=iC(),bJe=Iie(),SJe=wie(),BJe=Sie(),RJe=Nie(),NJe=Pie(),TJe=US(),PJe=Lie(),vJe=Mie(),_Je=qie(),QJe=Gie(),DJe=jie();Xie.exports={parse:Xje,valid:Zje,clean:eJe,inc:tJe,diff:rJe,major:nJe,minor:sJe,patch:oJe,prerelease:iJe,compare:aJe,rcompare:cJe,compareLoose:lJe,compareBuild:uJe,sort:dJe,rsort:pJe,gt:mJe,lt:fJe,eq:AJe,neq:hJe,gte:gJe,lte:yJe,cmp:EJe,coerce:CJe,Comparator:IJe,Range:xJe,satisfies:wJe,toComparators:bJe,maxSatisfying:SJe,minSatisfying:BJe,minVersion:RJe,validRange:NJe,outside:TJe,gtr:PJe,ltr:vJe,intersects:_Je,simplifyRange:QJe,subset:DJe,SemVer:Kje,re:dU.re,src:dU.src,tokens:dU.t,SEMVER_SPEC_VERSION:Jie.SEMVER_SPEC_VERSION,RELEASE_TYPES:Jie.RELEASE_TYPES,compareIdentifiers:Kie.compareIdentifiers,rcompareIdentifiers:Kie.rcompareIdentifiers}});var mae=b((XHt,pae)=>{pae.exports=function(t,e){for(var r=[],n=0;n{"use strict";gae.exports=Aae;function Aae(t,e,r){t instanceof RegExp&&(t=fae(t,r)),e instanceof RegExp&&(e=fae(e,r));var n=hae(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)}}i(Aae,"balanced");function fae(t,e){var r=e.match(t);return r?r[0]:null}i(fae,"maybeMatch");Aae.range=hae;function hae(t,e,r){var n,s,o,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=[],o=r.length;d>=0&&!c;)d==l?(n.push(d),l=r.indexOf(t,d+1)):n.length==1?c=[n.pop(),u]:(s=n.pop(),s=0?l:u;n.length&&(c=[o,a])}return c}i(hae,"range")});var Bae=b((tzt,Sae)=>{var KJe=mae(),Eae=yae();Sae.exports=e5e;var Cae="\0SLASH"+Math.random()+"\0",Iae="\0OPEN"+Math.random()+"\0",wU="\0CLOSE"+Math.random()+"\0",xae="\0COMMA"+Math.random()+"\0",wae="\0PERIOD"+Math.random()+"\0";function xU(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}i(xU,"numeric");function XJe(t){return t.split("\\\\").join(Cae).split("\\{").join(Iae).split("\\}").join(wU).split("\\,").join(xae).split("\\.").join(wae)}i(XJe,"escapeBraces");function ZJe(t){return t.split(Cae).join("\\").split(Iae).join("{").split(wU).join("}").split(xae).join(",").split(wae).join(".")}i(ZJe,"unescapeBraces");function bae(t){if(!t)return[""];var e=[],r=Eae("{","}",t);if(!r)return t.split(",");var n=r.pre,s=r.body,o=r.post,a=n.split(",");a[a.length-1]+="{"+s+"}";var c=bae(o);return o.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}i(bae,"parseCommaParts");function e5e(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),ih(XJe(t),!0).map(ZJe)):[]}i(e5e,"expandTop");function t5e(t){return"{"+t+"}"}i(t5e,"embrace");function r5e(t){return/^-?0\d/.test(t)}i(r5e,"isPadded");function n5e(t,e){return t<=e}i(n5e,"lte");function s5e(t,e){return t>=e}i(s5e,"gte");function ih(t,e){var r=[],n=Eae("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),a=s||o,c=n.body.indexOf(",")>=0;if(!a&&!c)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+wU+n.post,ih(t)):[t];var l;if(a)l=n.body.split(/\.\./);else if(l=bae(n.body),l.length===1&&(l=ih(l[0],!1).map(t5e),l.length===1)){var d=n.post.length?ih(n.post,!1):[""];return d.map(function(se){return n.pre+l[0]+se})}var u=n.pre,d=n.post.length?ih(n.post,!1):[""],p;if(a){var m=xU(l[0]),f=xU(l[1]),g=Math.max(l[0].length,l[1].length),E=l.length==3?Math.max(Math.abs(xU(l[2])),1):1,x=n5e,w=f0){var M=new Array(q+1).join("0");P<0?Q="-"+M+Q.slice(1):Q=M+Q}}p.push(Q)}}else p=KJe(l,function(Re){return ih(Re,!1)});for(var V=0;V{vae.exports=No;No.Minimatch=Wr;var pC=(function(){try{return require("path")}catch{}})()||{sep:"/"};No.sep=pC.sep;var dm=No.GLOBSTAR=Wr.GLOBSTAR={},o5e=Bae(),Rae={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},bU="[^/]",SU=bU+"*?",i5e="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",a5e="(?:(?!(?:\\/|^)\\.).)*?",Nae=c5e("().*{}+?[]^$\\!");function c5e(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}i(c5e,"charSet");var Tae=/\/+/;No.filter=l5e;function l5e(t,e){return e=e||{},function(r,n,s){return No(r,t,e)}}i(l5e,"filter");function fd(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(n){r[n]=t[n]}),Object.keys(e).forEach(function(n){r[n]=e[n]}),r}i(fd,"ext");No.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return No;var e=No,r=i(function(s,o,a){return e(s,o,fd(t,a))},"minimatch");return r.Minimatch=i(function(s,o){return new e.Minimatch(s,fd(t,o))},"Minimatch"),r.Minimatch.defaults=i(function(s){return e.defaults(fd(t,s)).Minimatch},"defaults"),r.filter=i(function(s,o){return e.filter(s,fd(t,o))},"filter"),r.defaults=i(function(s){return e.defaults(fd(t,s))},"defaults"),r.makeRe=i(function(s,o){return e.makeRe(s,fd(t,o))},"makeRe"),r.braceExpand=i(function(s,o){return e.braceExpand(s,fd(t,o))},"braceExpand"),r.match=function(n,s,o){return e.match(n,s,fd(t,o))},r};Wr.defaults=function(t){return No.defaults(t).Minimatch};function No(t,e,r){return zS(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new Wr(e,r).match(t)}i(No,"minimatch");function Wr(t,e){if(!(this instanceof Wr))return new Wr(t,e);zS(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&pC.sep!=="/"&&(t=t.split(pC.sep).join("/")),this.options=e,this.maxGlobstarRecursion=e.maxGlobstarRecursion!==void 0?e.maxGlobstarRecursion:200,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}i(Wr,"Minimatch");Wr.prototype.debug=function(){};Wr.prototype.make=u5e;function u5e(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=i(function(){console.error.apply(console,arguments)},"debug")),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(Tae)}),this.debug(this.pattern,r),r=r.map(function(n,s,o){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}i(u5e,"make");Wr.prototype.parseNegate=d5e;function d5e(){var t=this.pattern,e=!1,r=this.options,n=0;if(!r.nonegate){for(var s=0,o=t.length;s"u"?this.pattern:t,zS(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:o5e(t)}i(Pae,"braceExpand");var p5e=1024*64,zS=i(function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>p5e)throw new TypeError("pattern is too long")},"assertValidPattern");Wr.prototype.parse=m5e;var HS={};function m5e(t,e){zS(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return dm;if(t==="")return"";var n="",s=!!r.nocase,o=!1,a=[],c=[],l,u=!1,d=-1,p=-1,m=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",f=this;function g(){if(l){switch(l){case"*":n+=SU,s=!0;break;case"?":n+=bU,s=!0;break;default:n+="\\"+l;break}f.debug("clearStateChar %j %j",l,n),l=!1}}i(g,"clearStateChar");for(var E=0,x=t.length,w;E-1;pe--){var ke=c[pe],Re=n.slice(0,ke.reStart),se=n.slice(ke.reStart,ke.reEnd-8),ye=n.slice(ke.reEnd-8,ke.reEnd),H=n.slice(ke.reEnd);ye+=H;var oe=Re.split("(").length-1,It=H;for(E=0;E"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;pC.sep!=="/"&&(e=e.split(pC.sep).join("/")),e=e.split(Tae),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var o,a;for(a=e.length-1;a>=0&&(o=e[a],!o);a--);for(a=0;a=0;o--)if(e[o]===dm){c=o;break}var l=e.slice(s,a),u=r?e.slice(a+1):e.slice(a+1,c),d=r?[]:e.slice(c+1);if(l.length){var p=t.slice(n,n+l.length);if(!this._matchOne(p,l,r,0,0))return!1;n+=l.length}var m=0;if(d.length){if(d.length+n>t.length)return!1;var f=t.length-d.length;if(this._matchOne(t,d,r,f,0))m=d.length;else{if(t[t.length-1]!==""||n+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;m=d.length+1}}if(!u.length){var g=!!m;for(o=n;o{"use strict";var b5e="2.0.0",S5e=Number.MAX_SAFE_INTEGER||9007199254740991,B5e=16,R5e=250,N5e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Lae.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:B5e,MAX_SAFE_BUILD_LENGTH:R5e,MAX_SAFE_INTEGER:S5e,RELEASE_TYPES:N5e,SEMVER_SPEC_VERSION:b5e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var AC=b((Bzt,Oae)=>{"use strict";var T5e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Oae.exports=T5e});var dh=b((ec,Mae)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:RU,MAX_SAFE_BUILD_LENGTH:P5e,MAX_LENGTH:v5e}=uh(),_5e=AC();ec=Mae.exports={};var Q5e=ec.re=[],D5e=ec.safeRe=[],ce=ec.src=[],k5e=ec.safeSrc=[],le=ec.t={},L5e=0,NU="[a-zA-Z0-9-]",O5e=[["\\s",1],["\\d",v5e],[NU,P5e]],M5e=i(t=>{for(let[e,r]of O5e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ze=i((t,e,r)=>{let n=M5e(e),s=L5e++;_5e(t,s,e),le[t]=s,ce[s]=e,k5e[s]=n,Q5e[s]=new RegExp(e,r?"g":void 0),D5e[s]=new RegExp(n,r?"g":void 0)},"createToken");Ze("NUMERICIDENTIFIER","0|[1-9]\\d*");Ze("NUMERICIDENTIFIERLOOSE","\\d+");Ze("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${NU}*`);Ze("MAINVERSION",`(${ce[le.NUMERICIDENTIFIER]})\\.(${ce[le.NUMERICIDENTIFIER]})\\.(${ce[le.NUMERICIDENTIFIER]})`);Ze("MAINVERSIONLOOSE",`(${ce[le.NUMERICIDENTIFIERLOOSE]})\\.(${ce[le.NUMERICIDENTIFIERLOOSE]})\\.(${ce[le.NUMERICIDENTIFIERLOOSE]})`);Ze("PRERELEASEIDENTIFIER",`(?:${ce[le.NONNUMERICIDENTIFIER]}|${ce[le.NUMERICIDENTIFIER]})`);Ze("PRERELEASEIDENTIFIERLOOSE",`(?:${ce[le.NONNUMERICIDENTIFIER]}|${ce[le.NUMERICIDENTIFIERLOOSE]})`);Ze("PRERELEASE",`(?:-(${ce[le.PRERELEASEIDENTIFIER]}(?:\\.${ce[le.PRERELEASEIDENTIFIER]})*))`);Ze("PRERELEASELOOSE",`(?:-?(${ce[le.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ce[le.PRERELEASEIDENTIFIERLOOSE]})*))`);Ze("BUILDIDENTIFIER",`${NU}+`);Ze("BUILD",`(?:\\+(${ce[le.BUILDIDENTIFIER]}(?:\\.${ce[le.BUILDIDENTIFIER]})*))`);Ze("FULLPLAIN",`v?${ce[le.MAINVERSION]}${ce[le.PRERELEASE]}?${ce[le.BUILD]}?`);Ze("FULL",`^${ce[le.FULLPLAIN]}$`);Ze("LOOSEPLAIN",`[v=\\s]*${ce[le.MAINVERSIONLOOSE]}${ce[le.PRERELEASELOOSE]}?${ce[le.BUILD]}?`);Ze("LOOSE",`^${ce[le.LOOSEPLAIN]}$`);Ze("GTLT","((?:<|>)?=?)");Ze("XRANGEIDENTIFIERLOOSE",`${ce[le.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ze("XRANGEIDENTIFIER",`${ce[le.NUMERICIDENTIFIER]}|x|X|\\*`);Ze("XRANGEPLAIN",`[v=\\s]*(${ce[le.XRANGEIDENTIFIER]})(?:\\.(${ce[le.XRANGEIDENTIFIER]})(?:\\.(${ce[le.XRANGEIDENTIFIER]})(?:${ce[le.PRERELEASE]})?${ce[le.BUILD]}?)?)?`);Ze("XRANGEPLAINLOOSE",`[v=\\s]*(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:${ce[le.PRERELEASELOOSE]})?${ce[le.BUILD]}?)?)?`);Ze("XRANGE",`^${ce[le.GTLT]}\\s*${ce[le.XRANGEPLAIN]}$`);Ze("XRANGELOOSE",`^${ce[le.GTLT]}\\s*${ce[le.XRANGEPLAINLOOSE]}$`);Ze("COERCEPLAIN",`(^|[^\\d])(\\d{1,${RU}})(?:\\.(\\d{1,${RU}}))?(?:\\.(\\d{1,${RU}}))?`);Ze("COERCE",`${ce[le.COERCEPLAIN]}(?:$|[^\\d])`);Ze("COERCEFULL",ce[le.COERCEPLAIN]+`(?:${ce[le.PRERELEASE]})?(?:${ce[le.BUILD]})?(?:$|[^\\d])`);Ze("COERCERTL",ce[le.COERCE],!0);Ze("COERCERTLFULL",ce[le.COERCEFULL],!0);Ze("LONETILDE","(?:~>?)");Ze("TILDETRIM",`(\\s*)${ce[le.LONETILDE]}\\s+`,!0);ec.tildeTrimReplace="$1~";Ze("TILDE",`^${ce[le.LONETILDE]}${ce[le.XRANGEPLAIN]}$`);Ze("TILDELOOSE",`^${ce[le.LONETILDE]}${ce[le.XRANGEPLAINLOOSE]}$`);Ze("LONECARET","(?:\\^)");Ze("CARETTRIM",`(\\s*)${ce[le.LONECARET]}\\s+`,!0);ec.caretTrimReplace="$1^";Ze("CARET",`^${ce[le.LONECARET]}${ce[le.XRANGEPLAIN]}$`);Ze("CARETLOOSE",`^${ce[le.LONECARET]}${ce[le.XRANGEPLAINLOOSE]}$`);Ze("COMPARATORLOOSE",`^${ce[le.GTLT]}\\s*(${ce[le.LOOSEPLAIN]})$|^$`);Ze("COMPARATOR",`^${ce[le.GTLT]}\\s*(${ce[le.FULLPLAIN]})$|^$`);Ze("COMPARATORTRIM",`(\\s*)${ce[le.GTLT]}\\s*(${ce[le.LOOSEPLAIN]}|${ce[le.XRANGEPLAIN]})`,!0);ec.comparatorTrimReplace="$1$2$3";Ze("HYPHENRANGE",`^\\s*(${ce[le.XRANGEPLAIN]})\\s+-\\s+(${ce[le.XRANGEPLAIN]})\\s*$`);Ze("HYPHENRANGELOOSE",`^\\s*(${ce[le.XRANGEPLAINLOOSE]})\\s+-\\s+(${ce[le.XRANGEPLAINLOOSE]})\\s*$`);Ze("STAR","(<|>)?=?\\s*\\*");Ze("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ze("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var WS=b((Nzt,Fae)=>{"use strict";var F5e=Object.freeze({loose:!0}),U5e=Object.freeze({}),q5e=i(t=>t?typeof t!="object"?F5e:t:U5e,"parseOptions");Fae.exports=q5e});var TU=b((Pzt,$ae)=>{"use strict";var Uae=/^[0-9]+$/,qae=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tqae(e,t),"rcompareIdentifiers");$ae.exports={compareIdentifiers:qae,rcompareIdentifiers:$5e}});var Nn=b((_zt,Hae)=>{"use strict";var jS=AC(),{MAX_LENGTH:Gae,MAX_SAFE_INTEGER:JS}=uh(),{safeRe:KS,t:XS}=dh(),G5e=WS(),{compareIdentifiers:PU}=TU(),vU=class t{static{i(this,"SemVer")}constructor(e,r){if(r=G5e(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>Gae)throw new TypeError(`version is longer than ${Gae} characters`);jS("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?KS[XS.LOOSE]:KS[XS.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>JS||this.major<0)throw new TypeError("Invalid major version");if(this.minor>JS||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>JS||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&oe.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],s=e.prerelease[r];if(jS("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return PU(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(jS("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return PU(n,s)}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 s=`-${r}`.match(this.options.loose?KS[XS.PRERELEASELOOSE]:KS[XS.PRERELEASE]);if(!s||s[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 s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];n===!1&&(o=[r]),PU(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Hae.exports=vU});var gd=b((Dzt,Vae)=>{"use strict";var zae=Nn(),H5e=i((t,e,r=!1)=>{if(t instanceof zae)return t;try{return new zae(t,e)}catch(n){if(!r)return null;throw n}},"parse");Vae.exports=H5e});var Wae=b((Lzt,Yae)=>{"use strict";var z5e=gd(),V5e=i((t,e)=>{let r=z5e(t,e);return r?r.version:null},"valid");Yae.exports=V5e});var Jae=b((Mzt,jae)=>{"use strict";var Y5e=gd(),W5e=i((t,e)=>{let r=Y5e(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");jae.exports=W5e});var Zae=b((Uzt,Xae)=>{"use strict";var Kae=Nn(),j5e=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Kae(t instanceof Kae?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Xae.exports=j5e});var rce=b(($zt,tce)=>{"use strict";var ece=gd(),J5e=i((t,e)=>{let r=ece(t,null,!0),n=ece(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?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");tce.exports=J5e});var sce=b((Hzt,nce)=>{"use strict";var K5e=Nn(),X5e=i((t,e)=>new K5e(t,e).major,"major");nce.exports=X5e});var ice=b((Vzt,oce)=>{"use strict";var Z5e=Nn(),e6e=i((t,e)=>new Z5e(t,e).minor,"minor");oce.exports=e6e});var cce=b((Wzt,ace)=>{"use strict";var t6e=Nn(),r6e=i((t,e)=>new t6e(t,e).patch,"patch");ace.exports=r6e});var uce=b((Jzt,lce)=>{"use strict";var n6e=gd(),s6e=i((t,e)=>{let r=n6e(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");lce.exports=s6e});var pi=b((Xzt,pce)=>{"use strict";var dce=Nn(),o6e=i((t,e,r)=>new dce(t,r).compare(new dce(e,r)),"compare");pce.exports=o6e});var fce=b((e3t,mce)=>{"use strict";var i6e=pi(),a6e=i((t,e,r)=>i6e(e,t,r),"rcompare");mce.exports=a6e});var hce=b((r3t,Ace)=>{"use strict";var c6e=pi(),l6e=i((t,e)=>c6e(t,e,!0),"compareLoose");Ace.exports=l6e});var ZS=b((s3t,yce)=>{"use strict";var gce=Nn(),u6e=i((t,e,r)=>{let n=new gce(t,r),s=new gce(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");yce.exports=u6e});var Cce=b((i3t,Ece)=>{"use strict";var d6e=ZS(),p6e=i((t,e)=>t.sort((r,n)=>d6e(r,n,e)),"sort");Ece.exports=p6e});var xce=b((c3t,Ice)=>{"use strict";var m6e=ZS(),f6e=i((t,e)=>t.sort((r,n)=>m6e(n,r,e)),"rsort");Ice.exports=f6e});var hC=b((u3t,wce)=>{"use strict";var A6e=pi(),h6e=i((t,e,r)=>A6e(t,e,r)>0,"gt");wce.exports=h6e});var eB=b((p3t,bce)=>{"use strict";var g6e=pi(),y6e=i((t,e,r)=>g6e(t,e,r)<0,"lt");bce.exports=y6e});var _U=b((f3t,Sce)=>{"use strict";var E6e=pi(),C6e=i((t,e,r)=>E6e(t,e,r)===0,"eq");Sce.exports=C6e});var QU=b((h3t,Bce)=>{"use strict";var I6e=pi(),x6e=i((t,e,r)=>I6e(t,e,r)!==0,"neq");Bce.exports=x6e});var tB=b((y3t,Rce)=>{"use strict";var w6e=pi(),b6e=i((t,e,r)=>w6e(t,e,r)>=0,"gte");Rce.exports=b6e});var rB=b((C3t,Nce)=>{"use strict";var S6e=pi(),B6e=i((t,e,r)=>S6e(t,e,r)<=0,"lte");Nce.exports=B6e});var DU=b((x3t,Tce)=>{"use strict";var R6e=_U(),N6e=QU(),T6e=hC(),P6e=tB(),v6e=eB(),_6e=rB(),Q6e=i((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 R6e(t,r,n);case"!=":return N6e(t,r,n);case">":return T6e(t,r,n);case">=":return P6e(t,r,n);case"<":return v6e(t,r,n);case"<=":return _6e(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Tce.exports=Q6e});var vce=b((b3t,Pce)=>{"use strict";var D6e=Nn(),k6e=gd(),{safeRe:nB,t:sB}=dh(),L6e=i((t,e)=>{if(t instanceof D6e)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?nB[sB.COERCEFULL]:nB[sB.COERCE]);else{let l=e.includePrerelease?nB[sB.COERCERTLFULL]:nB[sB.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],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return k6e(`${n}.${s}.${o}${a}${c}`,e)},"coerce");Pce.exports=L6e});var Qce=b((B3t,_ce)=>{"use strict";var O6e=gd(),M6e=uh(),F6e=Nn(),U6e=i((t,e,r)=>{if(!M6e.RELEASE_TYPES.includes(e))return null;let n=q6e(t,r);return n&&$6e(n,e)},"truncate"),q6e=i((t,e)=>{let r=t instanceof F6e?t.version:t;return O6e(r,e)},"cloneInputVersion"),$6e=i((t,e)=>{if(G6e(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"),G6e=i(t=>t.startsWith("pre"),"isPrerelease");_ce.exports=U6e});var kce=b((N3t,Dce)=>{"use strict";var kU=class{static{i(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 s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};Dce.exports=kU});var mi=b((P3t,Fce)=>{"use strict";var H6e=/\s+/g,LU=class t{static{i(this,"Range")}constructor(e,r){if(r=V6e(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof OU)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(H6e," "),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(s=>!Oce(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&t9e(s[0])){this.set=[s];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(e9e,"");let n=((this.options.includePrerelease&&X6e)|(this.options.loose&&Z6e))+":"+e,s=Lce.get(n);if(s)return s;let o=this.options.loose,a=o?hs[Tn.HYPHENRANGELOOSE]:hs[Tn.HYPHENRANGE];e=e.replace(a,d9e(this.options.includePrerelease)),Wt("hyphen replace",e),e=e.replace(hs[Tn.COMPARATORTRIM],j6e),Wt("comparator trim",e),e=e.replace(hs[Tn.TILDETRIM],J6e),Wt("tilde trim",e),e=e.replace(hs[Tn.CARETTRIM],K6e),Wt("caret trim",e);let c=e.split(" ").map(p=>r9e(p,this.options)).join(" ").split(/\s+/).map(p=>u9e(p,this.options));o&&(c=c.filter(p=>(Wt("loose invalid filter",p,this.options),!!p.match(hs[Tn.COMPARATORLOOSE])))),Wt("range list",c);let l=new Map,u=c.map(p=>new OU(p,this.options));for(let p of u){if(Oce(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Lce.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Mce(n,r)&&e.set.some(s=>Mce(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Y6e(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),t9e=i(t=>t.value==="","isAny"),Mce=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),r9e=i((t,e)=>(t=t.replace(hs[Tn.BUILD],""),Wt("comp",t,e),t=o9e(t,e),Wt("caret",t),t=n9e(t,e),Wt("tildes",t),t=a9e(t,e),Wt("xrange",t),t=l9e(t,e),Wt("stars",t),t),"parseComparator"),gs=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),n9e=i((t,e)=>t.trim().split(/\s+/).map(r=>s9e(r,e)).join(" "),"replaceTildes"),s9e=i((t,e)=>{let r=e.loose?hs[Tn.TILDELOOSE]:hs[Tn.TILDE];return t.replace(r,(n,s,o,a,c)=>{Wt("tilde",t,n,s,o,a,c);let l;return gs(s)?l="":gs(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:gs(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(Wt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,Wt("tilde return",l),l})},"replaceTilde"),o9e=i((t,e)=>t.trim().split(/\s+/).map(r=>i9e(r,e)).join(" "),"replaceCarets"),i9e=i((t,e)=>{Wt("caret",t,e);let r=e.loose?hs[Tn.CARETLOOSE]:hs[Tn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Wt("caret",t,s,o,a,c,l);let u;return gs(o)?u="":gs(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:gs(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Wt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Wt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Wt("caret return",u),u})},"replaceCaret"),a9e=i((t,e)=>(Wt("replaceXRanges",t,e),t.split(/\s+/).map(r=>c9e(r,e)).join(" ")),"replaceXRanges"),c9e=i((t,e)=>{t=t.trim();let r=e.loose?hs[Tn.XRANGELOOSE]:hs[Tn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{Wt("xRange",t,n,s,o,a,c,l);let u=gs(o),d=u||gs(a),p=d||gs(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Wt("xRange return",n),n})},"replaceXRange"),l9e=i((t,e)=>(Wt("replaceStars",t,e),t.trim().replace(hs[Tn.STAR],"")),"replaceStars"),u9e=i((t,e)=>(Wt("replaceGTE0",t,e),t.trim().replace(hs[e.includePrerelease?Tn.GTE0PRE:Tn.GTE0],"")),"replaceGTE0"),d9e=i(t=>(e,r,n,s,o,a,c,l,u,d,p,m)=>(gs(n)?r="":gs(s)?r=`>=${n}.0.0${t?"-0":""}`:gs(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,gs(u)?l="":gs(d)?l=`<${+u+1}.0.0-0`:gs(p)?l=`<${u}.${+d+1}.0-0`:m?l=`<=${u}.${d}.${p}-${m}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),p9e=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var gC=b((_3t,zce)=>{"use strict";var yC=Symbol("SemVer ANY"),UU=class t{static{i(this,"Comparator")}static get ANY(){return yC}constructor(e,r){if(r=Uce(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===yC?this.value="":this.value=this.operator+this.semver.version,FU("comp",this)}parse(e){let r=this.options.loose?qce[$ce.COMPARATORLOOSE]:qce[$ce.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 Gce(n[2],this.options.loose):this.semver=yC}toString(){return this.value}test(e){if(FU("Comparator.test",e,this.options.loose),this.semver===yC||e===yC)return!0;if(typeof e=="string")try{e=new Gce(e,this.options)}catch{return!1}return MU(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 Hce(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Hce(this.value,r).test(e.semver):(r=Uce(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("=")||MU(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||MU(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};zce.exports=UU;var Uce=WS(),{safeRe:qce,t:$ce}=dh(),MU=DU(),FU=AC(),Gce=Nn(),Hce=mi()});var EC=b((D3t,Vce)=>{"use strict";var m9e=mi(),f9e=i((t,e,r)=>{try{e=new m9e(e,r)}catch{return!1}return e.test(t)},"satisfies");Vce.exports=f9e});var Wce=b((L3t,Yce)=>{"use strict";var A9e=mi(),h9e=i((t,e)=>new A9e(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Yce.exports=h9e});var Jce=b((M3t,jce)=>{"use strict";var g9e=Nn(),y9e=mi(),E9e=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new y9e(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new g9e(n,r))}),n},"maxSatisfying");jce.exports=E9e});var Xce=b((U3t,Kce)=>{"use strict";var C9e=Nn(),I9e=mi(),x9e=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new I9e(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new C9e(n,r))}),n},"minSatisfying");Kce.exports=x9e});var tle=b(($3t,ele)=>{"use strict";var qU=Nn(),w9e=mi(),Zce=hC(),b9e=i((t,e)=>{t=new w9e(t,e);let r=new qU("0.0.0");if(t.test(r)||(r=new qU("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new qU(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Zce(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Zce(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");ele.exports=b9e});var nle=b((H3t,rle)=>{"use strict";var S9e=mi(),B9e=i((t,e)=>{try{return new S9e(t,e).range||"*"}catch{return null}},"validRange");rle.exports=B9e});var oB=b((V3t,ale)=>{"use strict";var R9e=Nn(),ile=gC(),{ANY:N9e}=ile,T9e=mi(),P9e=EC(),sle=hC(),ole=eB(),v9e=rB(),_9e=tB(),Q9e=i((t,e,r,n)=>{t=new R9e(t,n),e=new T9e(e,n);let s,o,a,c,l;switch(r){case">":s=sle,o=v9e,a=ole,c=">",l=">=";break;case"<":s=ole,o=_9e,a=sle,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P9e(t,e,n))return!1;for(let u=0;u{f.semver===N9e&&(f=new ile(">=0.0.0")),p=p||f,m=m||f,s(f.semver,p.semver,n)?p=f:a(f.semver,m.semver,n)&&(m=f)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(t,m.semver))return!1;if(m.operator===l&&a(t,m.semver))return!1}return!0},"outside");ale.exports=Q9e});var lle=b((W3t,cle)=>{"use strict";var D9e=oB(),k9e=i((t,e,r)=>D9e(t,e,">",r),"gtr");cle.exports=k9e});var dle=b((J3t,ule)=>{"use strict";var L9e=oB(),O9e=i((t,e,r)=>L9e(t,e,"<",r),"ltr");ule.exports=O9e});var fle=b((X3t,mle)=>{"use strict";var ple=mi(),M9e=i((t,e,r)=>(t=new ple(t,r),e=new ple(e,r),t.intersects(e,r)),"intersects");mle.exports=M9e});var hle=b((eVt,Ale)=>{"use strict";var F9e=EC(),U9e=pi();Ale.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>U9e(d,p,r));for(let d of a)F9e(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var gle=mi(),HU=gC(),{ANY:$U}=HU,GU=EC(),zU=pi(),q9e=i((t,e,r={})=>{if(t===e)return!0;t=new gle(t,r),e=new gle(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=G9e(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),$9e=[new HU(">=0.0.0-0")],yle=[new HU(">=0.0.0")],G9e=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===$U){if(e.length===1&&e[0].semver===$U)return!0;r.includePrerelease?t=$9e:t=yle}if(e.length===1&&e[0].semver===$U){if(r.includePrerelease)return!0;e=yle}let n=new Set,s,o;for(let f of t)f.operator===">"||f.operator===">="?s=Ele(s,f,r):f.operator==="<"||f.operator==="<="?o=Cle(o,f,r):n.add(f.semver);if(n.size>1)return null;let a;if(s&&o){if(a=zU(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let f of n){if(s&&!GU(f,String(s),r)||o&&!GU(f,String(o),r))return null;for(let g of e)if(!GU(f,String(g),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",u=u||f.operator==="<"||f.operator==="<=",s){if(m&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===m.major&&f.semver.minor===m.minor&&f.semver.patch===m.patch&&(m=!1),f.operator===">"||f.operator===">="){if(c=Ele(s,f,r),c===f&&c!==s)return!1}else if(s.operator===">="&&!f.test(s.semver))return!1}if(o){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(l=Cle(o,f,r),l===f&&l!==o)return!1}else if(o.operator==="<="&&!f.test(o.semver))return!1}if(!f.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||m||p)},"simpleSubset"),Ele=i((t,e,r)=>{if(!t)return e;let n=zU(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Cle=i((t,e,r)=>{if(!t)return e;let n=zU(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Ile.exports=q9e});var Ble=b((nVt,Sle)=>{"use strict";var VU=dh(),wle=uh(),H9e=Nn(),ble=TU(),z9e=gd(),V9e=Wae(),Y9e=Jae(),W9e=Zae(),j9e=rce(),J9e=sce(),K9e=ice(),X9e=cce(),Z9e=uce(),eKe=pi(),tKe=fce(),rKe=hce(),nKe=ZS(),sKe=Cce(),oKe=xce(),iKe=hC(),aKe=eB(),cKe=_U(),lKe=QU(),uKe=tB(),dKe=rB(),pKe=DU(),mKe=vce(),fKe=Qce(),AKe=gC(),hKe=mi(),gKe=EC(),yKe=Wce(),EKe=Jce(),CKe=Xce(),IKe=tle(),xKe=nle(),wKe=oB(),bKe=lle(),SKe=dle(),BKe=fle(),RKe=hle(),NKe=xle();Sle.exports={parse:z9e,valid:V9e,clean:Y9e,inc:W9e,diff:j9e,major:J9e,minor:K9e,patch:X9e,prerelease:Z9e,compare:eKe,rcompare:tKe,compareLoose:rKe,compareBuild:nKe,sort:sKe,rsort:oKe,gt:iKe,lt:aKe,eq:cKe,neq:lKe,gte:uKe,lte:dKe,cmp:pKe,coerce:mKe,truncate:fKe,Comparator:AKe,Range:hKe,satisfies:gKe,toComparators:yKe,maxSatisfying:EKe,minSatisfying:CKe,minVersion:IKe,validRange:xKe,outside:wKe,gtr:bKe,ltr:SKe,intersects:BKe,simplifyRange:RKe,subset:NKe,SemVer:H9e,re:VU.re,src:VU.src,tokens:VU.t,SEMVER_SPEC_VERSION:wle.SEMVER_SPEC_VERSION,RELEASE_TYPES:wle.RELEASE_TYPES,compareIdentifiers:ble.compareIdentifiers,rcompareIdentifiers:ble.rcompareIdentifiers}});var fue=b((cYt,mue)=>{var yh=1e3,Eh=yh*60,Ch=Eh*60,Cm=Ch*24,uXe=Cm*7,dXe=Cm*365.25;mue.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return pXe(t);if(r==="number"&&isFinite(t))return e.long?fXe(t):mXe(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function pXe(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*dXe;case"weeks":case"week":case"w":return r*uXe;case"days":case"day":case"d":return r*Cm;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ch;case"minutes":case"minute":case"mins":case"min":case"m":return r*Eh;case"seconds":case"second":case"secs":case"sec":case"s":return r*yh;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(pXe,"parse");function mXe(t){var e=Math.abs(t);return e>=Cm?Math.round(t/Cm)+"d":e>=Ch?Math.round(t/Ch)+"h":e>=Eh?Math.round(t/Eh)+"m":e>=yh?Math.round(t/yh)+"s":t+"ms"}i(mXe,"fmtShort");function fXe(t){var e=Math.abs(t);return e>=Cm?PB(t,e,Cm,"day"):e>=Ch?PB(t,e,Ch,"hour"):e>=Eh?PB(t,e,Eh,"minute"):e>=yh?PB(t,e,yh,"second"):t+" ms"}i(fXe,"fmtLong");function PB(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}i(PB,"plural")});var g2=b((uYt,Aue)=>{function AXe(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=s,r.enabled=a,r.humanize=fue(),r.destroy=u,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let p=0;for(let m=0;m{if(M==="%%")return"%";Q++;let pe=r.formatters[V];if(typeof pe=="function"){let ke=x[Q];M=pe.call(w,ke),x.splice(Q,1),Q--}return M}),r.formatArgs.call(w,x),(w.log||r.log).apply(w,x)}return i(E,"debug"),E.namespace=d,E.useColors=r.useColors(),E.color=r.selectColor(d),E.extend=n,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:i(()=>m!==null?m:(f!==r.namespaces&&(f=r.namespaces,g=r.enabled(d)),g),"get"),set:i(x=>{m=x},"set")}),typeof r.init=="function"&&r.init(E),E}i(r,"createDebug");function n(d,p){let m=r(this.namespace+(typeof p>"u"?":":p)+d);return m.log=this.log,m}i(n,"extend");function s(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let p,m=(typeof d=="string"?d:"").split(/[\s,]+/),f=m.length;for(p=0;p"-"+p)].join(",");return r.enable(""),d}i(o,"disable");function a(d){if(d[d.length-1]==="*")return!0;let p,m;for(p=0,m=r.skips.length;p{vo.formatArgs=gXe;vo.save=yXe;vo.load=EXe;vo.useColors=hXe;vo.storage=CXe();vo.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`."))}})();vo.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 hXe(){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+)/)}i(hXe,"useColors");function gXe(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+vB.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,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}i(gXe,"formatArgs");vo.log=console.debug||console.log||(()=>{});function yXe(t){try{t?vo.storage.setItem("debug",t):vo.storage.removeItem("debug")}catch{}}i(yXe,"save");function EXe(){let t;try{t=vo.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}i(EXe,"load");function CXe(){try{return localStorage}catch{}}i(CXe,"localstorage");vB.exports=g2()(vo);var{formatters:IXe}=vB.exports;IXe.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var yue=b((mYt,gue)=>{"use strict";gue.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n{"use strict";var xXe=require("os"),Eue=require("tty"),Ai=yue(),{env:hn}=process,Cd;Ai("no-color")||Ai("no-colors")||Ai("color=false")||Ai("color=never")?Cd=0:(Ai("color")||Ai("colors")||Ai("color=true")||Ai("color=always"))&&(Cd=1);"FORCE_COLOR"in hn&&(hn.FORCE_COLOR==="true"?Cd=1:hn.FORCE_COLOR==="false"?Cd=0:Cd=hn.FORCE_COLOR.length===0?1:Math.min(parseInt(hn.FORCE_COLOR,10),3));function y2(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}i(y2,"translateLevel");function E2(t,e){if(Cd===0)return 0;if(Ai("color=16m")||Ai("color=full")||Ai("color=truecolor"))return 3;if(Ai("color=256"))return 2;if(t&&!e&&Cd===void 0)return 0;let r=Cd||0;if(hn.TERM==="dumb")return r;if(process.platform==="win32"){let n=xXe.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in hn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in hn)||hn.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in hn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(hn.TEAMCITY_VERSION)?1:0;if(hn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in hn){let n=parseInt((hn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(hn.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(hn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(hn.TERM)||"COLORTERM"in hn?1:r}i(E2,"supportsColor");function wXe(t){let e=E2(t,t&&t.isTTY);return y2(e)}i(wXe,"getSupportLevel");Cue.exports={supportsColor:wXe,stdout:y2(E2(!0,Eue.isatty(1))),stderr:y2(E2(!0,Eue.isatty(2)))}});var wue=b((Pn,QB)=>{var bXe=require("tty"),_B=require("util");Pn.init=vXe;Pn.log=NXe;Pn.formatArgs=BXe;Pn.save=TXe;Pn.load=PXe;Pn.useColors=SXe;Pn.destroy=_B.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Pn.colors=[6,2,3,4,5,1];try{let t=Iue();t&&(t.stderr||t).level>=2&&(Pn.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{}Pn.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>o.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 SXe(){return"colors"in Pn.inspectOpts?!!Pn.inspectOpts.colors:bXe.isatty(process.stderr.fd)}i(SXe,"useColors");function BXe(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} \x1B[0m`;t[0]=o+t[0].split(` +`.trim())}};kte.exports=zF});var Fb=b((QUt,Ute)=>{"use strict";var Ote=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Cze}=xt(),Ize=vA();Fte()===void 0&&Mte(new Ize);function Mte(t){if(!t||typeof t.dispatch!="function")throw new Cze("Argument agent must implement Agent");Object.defineProperty(globalThis,Ote,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(Mte,"setGlobalDispatcher");function Fte(){return globalThis[Ote]}i(Fte,"getGlobalDispatcher");Ute.exports={setGlobalDispatcher:Mte,getGlobalDispatcher:Fte}});var Ub=b((LUt,qte)=>{"use strict";qte.exports=class{static{i(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 Gte=b((MUt,$te)=>{"use strict";var xze=yb();$te.exports=t=>{let e=t?.maxRedirections;return r=>i(function(s,o){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,o);let l=new xze(r,a,s,o);return r(c,l)},"redirectInterceptor")}});var zte=b((UUt,Hte)=>{"use strict";var wze=Tb();Hte.exports=t=>e=>i(function(n,s){return e(n,new wze({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var Yte=b(($Ut,Vte)=>{"use strict";var bze=ut(),{InvalidArgumentError:Sze,RequestAbortedError:Bze}=xt(),Rze=Ub(),VF=class extends Rze{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#r=!1;#o=!1;#s=0;#n=null;#i=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Sze("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#i=r}onConnect(e){this.#t=e,this.#i.onConnect(this.#a.bind(this))}#a(e){this.#o=!0,this.#n=e}onHeaders(e,r,n,s){let a=bze.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Bze(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#o?!0:this.#i.onHeaders(e,r,n,s)}onError(e){this.#r||(e=this.#n??e,this.#i.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#o?this.#i.onError(this.#n):this.#i.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#o){this.#i.onError(this.reason);return}this.#i.onComplete(e)}}};function Nze({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,s){let{dumpMaxSize:o=t}=n,a=new VF({maxSize:o},s);return e(n,a)},"Intercept")}i(Nze,"createDumpInterceptor");Vte.exports=Nze});var Jte=b((HUt,jte)=>{"use strict";var{isIP:Tze}=require("node:net"),{lookup:Pze}=require("node:dns"),vze=Ub(),{InvalidArgumentError:qA,InformationalError:_ze}=xt(),Wte=Math.pow(2,31)-1,YF=class{static{i(this,"DNSInstance")}#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#o,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,n){let s=this.#r.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let o={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,o,(a,c)=>{if(a||c==null||c.length===0){n(a??new _ze("No DNS entries found"));return}this.setRecords(e,c);let l=this.#r.get(e.hostname),u=this.pick(e,l,o.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,s,o.affinity);if(a==null){this.#r.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}`)}}#o(e,r,n){Pze(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,o)=>{if(s)return n(s);let a=new Map;for(let c of o)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:o,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===Wte?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),o[n]!=null&&o[n].ips.length>0?c=o[n]:c=o[n===4?6:4]):c=o[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===Wte?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let o of r){o.timestamp=n,typeof o.ttl=="number"?o.ttl=Math.min(o.ttl,this.#e):o.ttl=this.#e;let a=s.records[o.family]??{ips:[]};a.ips.push(o),s.records[o.family]=a}this.#r.set(e.hostname,s)}getHandler(e,r){return new WF(this,e,r)}},WF=class extends vze{static{i(this,"DNSDispatchHandler")}#e=null;#t=null;#r=null;#o=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},o){super(n),this.#s=r,this.#o=n,this.#t={...o},this.#e=e,this.#r=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r)return this.#o.onError(r);let s={...this.#t,origin:n};this.#r(s,this)});return}this.#o.onError(e);return}case"ENOTFOUND":this.#e.deleteRecord(this.#s);default:this.#o.onError(e);break}}};jte.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!="number"||t?.maxTTL<0))throw new qA("Invalid maxTTL. Must be a positive number");if(t?.maxItems!=null&&(typeof t?.maxItems!="number"||t?.maxItems<1))throw new qA("Invalid maxItems. Must be a positive number and greater than zero");if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6)throw new qA("Invalid affinity. Must be either 4 or 6");if(t?.dualStack!=null&&typeof t?.dualStack!="boolean")throw new qA("Invalid dualStack. Must be a boolean");if(t?.lookup!=null&&typeof t?.lookup!="function")throw new qA("Invalid lookup. Must be a function");if(t?.pick!=null&&typeof t?.pick!="function")throw new qA("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},s=new YF(n);return o=>i(function(c,l){let u=c.origin.constructor===URL?c.origin:new URL(c.origin);return Tze(u.hostname)!==0?o(c,l):(s.runLookup(u,c,(d,p)=>{if(d)return l.onError(d);let m=null;m={...c,servername:u.hostname,origin:p,headers:{host:u.hostname,...c.headers}},o(m,s.getHandler({origin:u,dispatch:o,handler:l},c))}),!0)},"dnsInterceptor")}});var em=b((VUt,nre)=>{"use strict";var{kConstruct:Qze}=er(),{kEnumerableProperty:$A}=ut(),{iteratorMixin:Dze,isValidHeaderName:PE,isValidHeaderValue:Xte}=yo(),{webidl:ht}=Nn(),jF=require("node:assert"),qb=require("node:util"),Wr=Symbol("headers map"),xo=Symbol("headers map sorted");function Kte(t){return t===10||t===13||t===9||t===32}i(Kte,"isHTTPWhiteSpaceCharCode");function Zte(t){let e=0,r=t.length;for(;r>e&&Kte(t.charCodeAt(r-1));)--r;for(;r>e&&Kte(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}i(Zte,"headerValueNormalize");function ere(t,e){if(Array.isArray(e))for(let r=0;r>","record"]})}i(ere,"fill");function JF(t,e,r){if(r=Zte(r),PE(e)){if(!Xte(r))throw ht.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ht.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(rre(t)==="immutable")throw new TypeError("immutable");return KF(t).append(e,r,!1)}i(JF,"appendHeader");function tre(t,e){return t[0]>1),r[u][0]<=d[0]?l=u+1:c=u;if(o!==u){for(a=o;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:s,1:{value:o}}of this[Wr])r[n++]=[s,o],jF(o!==null);return r.sort(tre)}}},sa=class t{static{i(this,"Headers")}#e;#t;constructor(e=void 0){ht.util.markAsUncloneable(this),e!==Qze&&(this.#t=new $b,this.#e="none",e!==void 0&&(e=ht.converters.HeadersInit(e,"Headers contructor","init"),ere(this,e)))}append(e,r){ht.brandCheck(this,t),ht.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=ht.converters.ByteString(e,n,"name"),r=ht.converters.ByteString(r,n,"value"),JF(this,e,r)}delete(e){if(ht.brandCheck(this,t),ht.argumentLengthCheck(arguments,1,"Headers.delete"),e=ht.converters.ByteString(e,"Headers.delete","name"),!PE(e))throw ht.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.contains(e,!1)&&this.#t.delete(e,!1)}get(e){ht.brandCheck(this,t),ht.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=ht.converters.ByteString(e,r,"name"),!PE(e))throw ht.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.get(e,!1)}has(e){ht.brandCheck(this,t),ht.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=ht.converters.ByteString(e,r,"name"),!PE(e))throw ht.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.contains(e,!1)}set(e,r){ht.brandCheck(this,t),ht.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=ht.converters.ByteString(e,n,"name"),r=ht.converters.ByteString(r,n,"value"),r=Zte(r),PE(e)){if(!Xte(r))throw ht.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw ht.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.set(e,r,!1)}getSetCookie(){ht.brandCheck(this,t);let e=this.#t.cookies;return e?[...e]:[]}get[xo](){if(this.#t[xo])return this.#t[xo];let e=[],r=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[xo]=r;for(let s=0;s>"](t,e,r,n.bind(t)):ht.converters["record"](t,e,r)}throw ht.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};nre.exports={fill:ere,compareHeaderName:tre,Headers:sa,HeadersList:$b,getHeadersGuard:rre,setHeadersGuard:kze,setHeadersList:Lze,getHeadersList:KF}});var _E=b((WUt,Are)=>{"use strict";var{Headers:lre,HeadersList:sre,fill:Oze,getHeadersGuard:Mze,setHeadersGuard:ure,setHeadersList:dre}=em(),{extractBody:ore,cloneBody:Fze,mixinBody:Uze,hasFinalizationRegistry:pre,streamRegistry:mre,bodyUnusable:qze}=xA(),XF=ut(),ire=require("node:util"),{kEnumerableProperty:wo}=XF,{isValidReasonPhrase:$ze,isCancelled:Gze,isAborted:Hze,isBlobLike:zze,serializeJavascriptValueToJSONString:Vze,isErrorLike:Yze,isomorphicEncode:Wze,environmentSettingsObject:jze}=yo(),{redirectStatusSet:Jze,nullBodyStatus:Kze}=tE(),{kState:rr,kHeaders:Ul}=Vu(),{webidl:ot}=Nn(),{FormData:Xze}=aE(),{URLSerializer:are}=Ms(),{kConstruct:Hb}=er(),ZF=require("node:assert"),{types:Zze}=require("node:util"),e3e=new TextEncoder("utf-8"),tm=class t{static{i(this,"Response")}static error(){return vE(zb(),"immutable")}static json(e,r={}){ot.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=ot.converters.ResponseInit(r));let n=e3e.encode(Vze(e)),s=ore(n),o=vE(GA({}),"response");return cre(o,r,{body:s[0],type:"application/json"}),o}static redirect(e,r=302){ot.argumentLengthCheck(arguments,1,"Response.redirect"),e=ot.converters.USVString(e),r=ot.converters["unsigned short"](r);let n;try{n=new URL(e,jze.settingsObject.baseUrl)}catch(a){throw new TypeError(`Failed to parse URL from ${e}`,{cause:a})}if(!Jze.has(r))throw new RangeError(`Invalid status code ${r}`);let s=vE(GA({}),"immutable");s[rr].status=r;let o=Wze(are(n));return s[rr].headersList.append("location",o,!0),s}constructor(e=null,r={}){if(ot.util.markAsUncloneable(this),e===Hb)return;e!==null&&(e=ot.converters.BodyInit(e)),r=ot.converters.ResponseInit(r),this[rr]=GA({}),this[Ul]=new lre(Hb),ure(this[Ul],"response"),dre(this[Ul],this[rr].headersList);let n=null;if(e!=null){let[s,o]=ore(e);n={body:s,type:o}}cre(this,r,n)}get type(){return ot.brandCheck(this,t),this[rr].type}get url(){ot.brandCheck(this,t);let e=this[rr].urlList,r=e[e.length-1]??null;return r===null?"":are(r,!0)}get redirected(){return ot.brandCheck(this,t),this[rr].urlList.length>1}get status(){return ot.brandCheck(this,t),this[rr].status}get ok(){return ot.brandCheck(this,t),this[rr].status>=200&&this[rr].status<=299}get statusText(){return ot.brandCheck(this,t),this[rr].statusText}get headers(){return ot.brandCheck(this,t),this[Ul]}get body(){return ot.brandCheck(this,t),this[rr].body?this[rr].body.stream:null}get bodyUsed(){return ot.brandCheck(this,t),!!this[rr].body&&XF.isDisturbed(this[rr].body.stream)}clone(){if(ot.brandCheck(this,t),qze(this))throw ot.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=e1(this[rr]);return pre&&this[rr].body?.stream&&mre.register(this,new WeakRef(this[rr].body.stream)),vE(e,Mze(this[Ul]))}[ire.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 ${ire.formatWithOptions(r,n)}`}};Uze(tm);Object.defineProperties(tm.prototype,{type:wo,url:wo,status:wo,ok:wo,redirected:wo,statusText:wo,headers:wo,clone:wo,body:wo,bodyUsed:wo,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(tm,{json:wo,redirect:wo,error:wo});function e1(t){if(t.internalResponse)return fre(e1(t.internalResponse),t.type);let e=GA({...t,body:null});return t.body!=null&&(e.body=Fze(e,t.body)),e}i(e1,"cloneResponse");function GA(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new sre(t?.headersList):new sre,urlList:t?.urlList?[...t.urlList]:[]}}i(GA,"makeResponse");function zb(t){let e=Yze(t);return GA({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}i(zb,"makeNetworkError");function t3e(t){return t.type==="error"&&t.status===0}i(t3e,"isNetworkError");function Gb(t,e){return e={internalResponse:t,...e},new Proxy(t,{get(r,n){return n in e?e[n]:r[n]},set(r,n,s){return ZF(!(n in e)),r[n]=s,!0}})}i(Gb,"makeFilteredResponse");function fre(t,e){if(e==="basic")return Gb(t,{type:"basic",headersList:t.headersList});if(e==="cors")return Gb(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return Gb(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return Gb(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});ZF(!1)}i(fre,"filterResponse");function r3e(t,e=null){return ZF(Gze(t)),Hze(t)?zb(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):zb(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}i(r3e,"makeAppropriateNetworkError");function cre(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&&!$ze(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[rr].status=e.status),"statusText"in e&&e.statusText!=null&&(t[rr].statusText=e.statusText),"headers"in e&&e.headers!=null&&Oze(t[Ul],e.headers),r){if(Kze.includes(t.status))throw ot.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[rr].body=r.body,r.type!=null&&!t[rr].headersList.contains("content-type",!0)&&t[rr].headersList.append("content-type",r.type,!0)}}i(cre,"initializeResponse");function vE(t,e){let r=new tm(Hb);return r[rr]=t,r[Ul]=new lre(Hb),dre(r[Ul],t.headersList),ure(r[Ul],e),pre&&t.body?.stream&&mre.register(r,new WeakRef(t.body.stream)),r}i(vE,"fromInnerResponse");ot.converters.ReadableStream=ot.interfaceConverter(ReadableStream);ot.converters.FormData=ot.interfaceConverter(Xze);ot.converters.URLSearchParams=ot.interfaceConverter(URLSearchParams);ot.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?ot.converters.USVString(t,e,r):zze(t)?ot.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||Zze.isArrayBuffer(t)?ot.converters.BufferSource(t,e,r):XF.isFormDataLike(t)?ot.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?ot.converters.URLSearchParams(t,e,r):ot.converters.DOMString(t,e,r)};ot.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?ot.converters.ReadableStream(t,e,r):t?.[Symbol.asyncIterator]?t:ot.converters.XMLHttpRequestBodyInit(t,e,r)};ot.converters.ResponseInit=ot.dictionaryConverter([{key:"status",converter:ot.converters["unsigned short"],defaultValue:i(()=>200,"defaultValue")},{key:"statusText",converter:ot.converters.ByteString,defaultValue:i(()=>"","defaultValue")},{key:"headers",converter:ot.converters.HeadersInit}]);Are.exports={isNetworkError:t3e,makeNetworkError:zb,makeResponse:GA,makeAppropriateNetworkError:r3e,filterResponse:fre,Response:tm,cloneResponse:e1,fromInnerResponse:vE}});var Ere=b((JUt,yre)=>{"use strict";var{kConnected:hre,kSize:gre}=er(),t1=class{static{i(this,"CompatWeakRef")}constructor(e){this.value=e}deref(){return this.value[hre]===0&&this.value[gre]===0?void 0:this.value}},r1=class{static{i(this,"CompatFinalizer")}constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[hre]===0&&e[gre]===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:t1,FinalizationRegistry:r1}):{WeakRef,FinalizationRegistry}}});var HA=b((XUt,Dre)=>{"use strict";var{extractBody:n3e,mixinBody:s3e,cloneBody:o3e,bodyUnusable:Cre}=xA(),{Headers:Tre,fill:i3e,HeadersList:jb,setHeadersGuard:s1,getHeadersGuard:a3e,setHeadersList:Pre,getHeadersList:Ire}=em(),{FinalizationRegistry:c3e}=Ere()(),Yb=ut(),xre=require("node:util"),{isValidHTTPToken:l3e,sameOrigin:wre,environmentSettingsObject:Vb}=yo(),{forbiddenMethodsSet:u3e,corsSafeListedMethodsSet:d3e,referrerPolicy:p3e,requestRedirect:m3e,requestMode:f3e,requestCredentials:A3e,requestCache:h3e,requestDuplex:g3e}=tE(),{kEnumerableProperty:jr,normalizedMethodRecordsBase:y3e,normalizedMethodRecords:E3e}=Yb,{kHeaders:bo,kSignal:Wb,kState:Yt,kDispatcher:n1}=Vu(),{webidl:Me}=Nn(),{URLSerializer:C3e}=Ms(),{kConstruct:Jb}=er(),I3e=require("node:assert"),{getMaxListeners:bre,setMaxListeners:Sre,getEventListeners:x3e,defaultMaxListeners:Bre}=require("node:events"),w3e=Symbol("abortController"),vre=new c3e(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),Kb=new WeakMap;function Rre(t){return e;function e(){let r=t.deref();if(r!==void 0){vre.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=Kb.get(r.signal);if(n!==void 0){if(n.size!==0){for(let s of n){let o=s.deref();o!==void 0&&o.abort(this.reason)}n.clear()}Kb.delete(r.signal)}}}}i(Rre,"buildAbort");var Nre=!1,nd=class t{static{i(this,"Request")}constructor(e,r={}){if(Me.util.markAsUncloneable(this),e===Jb)return;let n="Request constructor";Me.argumentLengthCheck(arguments,1,n),e=Me.converters.RequestInfo(e,n,"input"),r=Me.converters.RequestInit(r,n,"init");let s=null,o=null,a=Vb.settingsObject.baseUrl,c=null;if(typeof e=="string"){this[n1]=r.dispatcher;let w;try{w=new URL(e,a)}catch(S){throw new TypeError("Failed to parse URL from "+e,{cause:S})}if(w.username||w.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);s=Xb({urlList:[w]}),o="cors"}else this[n1]=r.dispatcher||e[n1],I3e(e instanceof t),s=e[Yt],c=e[Wb];let l=Vb.settingsObject.origin,u="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&wre(s.window,l)&&(u=s.window),r.window!=null)throw new TypeError(`'window' option '${u}' must be null`);"window"in r&&(u="no-window"),s=Xb({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:Vb.settingsObject,window:u,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});let d=Object.keys(r).length!==0;if(d&&(s.mode==="navigate"&&(s.mode="same-origin"),s.reloadNavigation=!1,s.historyNavigation=!1,s.origin="client",s.referrer="client",s.referrerPolicy="",s.url=s.urlList[s.urlList.length-1],s.urlList=[s.url]),r.referrer!==void 0){let w=r.referrer;if(w==="")s.referrer="no-referrer";else{let S;try{S=new URL(w,a)}catch(P){throw new TypeError(`Referrer "${w}" is not a valid URL.`,{cause:P})}S.protocol==="about:"&&S.hostname==="client"||l&&!wre(S,Vb.settingsObject.baseUrl)?s.referrer="client":s.referrer=S}}r.referrerPolicy!==void 0&&(s.referrerPolicy=r.referrerPolicy);let p;if(r.mode!==void 0?p=r.mode:p=o,p==="navigate")throw Me.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(p!=null&&(s.mode=p),r.credentials!==void 0&&(s.credentials=r.credentials),r.cache!==void 0&&(s.cache=r.cache),s.cache==="only-if-cached"&&s.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(r.redirect!==void 0&&(s.redirect=r.redirect),r.integrity!=null&&(s.integrity=String(r.integrity)),r.keepalive!==void 0&&(s.keepalive=!!r.keepalive),r.method!==void 0){let w=r.method,S=E3e[w];if(S!==void 0)s.method=S;else{if(!l3e(w))throw new TypeError(`'${w}' is not a valid HTTP method.`);let P=w.toUpperCase();if(u3e.has(P))throw new TypeError(`'${w}' HTTP method is unsupported.`);w=y3e[P]??w,s.method=w}!Nre&&s.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"}),Nre=!0)}r.signal!==void 0&&(c=r.signal),this[Yt]=s;let m=new AbortController;if(this[Wb]=m.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)m.abort(c.reason);else{this[w3e]=m;let w=new WeakRef(m),S=Rre(w);try{(typeof bre=="function"&&bre(c)===Bre||x3e(c,"abort").length>=Bre)&&Sre(1500,c)}catch{}Yb.addAbortListener(c,S),vre.register(m,{signal:c,abort:S},S)}}if(this[bo]=new Tre(Jb),Pre(this[bo],s.headersList),s1(this[bo],"request"),p==="no-cors"){if(!d3e.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`);s1(this[bo],"request-no-cors")}if(d){let w=Ire(this[bo]),S=r.headers!==void 0?r.headers:new jb(w);if(w.clear(),S instanceof jb){for(let{name:P,value:Q}of S.rawValues())w.append(P,Q,!1);w.cookies=S.cookies}else i3e(this[bo],S)}let f=e instanceof t?e[Yt].body:null;if((r.body!=null||f!=null)&&(s.method==="GET"||s.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let g=null;if(r.body!=null){let[w,S]=n3e(r.body,s.keepalive);g=w,S&&!Ire(this[bo]).contains("content-type",!0)&&this[bo].append("content-type",S)}let E=g??f;if(E!=null&&E.source==null){if(g!=null&&r.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(s.mode!=="same-origin"&&s.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');s.useCORSPreflightFlag=!0}let x=E;if(g==null&&f!=null){if(Cre(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let w=new TransformStream;f.stream.pipeThrough(w),x={source:f.source,length:f.length,stream:w.readable}}this[Yt].body=x}get method(){return Me.brandCheck(this,t),this[Yt].method}get url(){return Me.brandCheck(this,t),C3e(this[Yt].url)}get headers(){return Me.brandCheck(this,t),this[bo]}get destination(){return Me.brandCheck(this,t),this[Yt].destination}get referrer(){return Me.brandCheck(this,t),this[Yt].referrer==="no-referrer"?"":this[Yt].referrer==="client"?"about:client":this[Yt].referrer.toString()}get referrerPolicy(){return Me.brandCheck(this,t),this[Yt].referrerPolicy}get mode(){return Me.brandCheck(this,t),this[Yt].mode}get credentials(){return this[Yt].credentials}get cache(){return Me.brandCheck(this,t),this[Yt].cache}get redirect(){return Me.brandCheck(this,t),this[Yt].redirect}get integrity(){return Me.brandCheck(this,t),this[Yt].integrity}get keepalive(){return Me.brandCheck(this,t),this[Yt].keepalive}get isReloadNavigation(){return Me.brandCheck(this,t),this[Yt].reloadNavigation}get isHistoryNavigation(){return Me.brandCheck(this,t),this[Yt].historyNavigation}get signal(){return Me.brandCheck(this,t),this[Wb]}get body(){return Me.brandCheck(this,t),this[Yt].body?this[Yt].body.stream:null}get bodyUsed(){return Me.brandCheck(this,t),!!this[Yt].body&&Yb.isDisturbed(this[Yt].body.stream)}get duplex(){return Me.brandCheck(this,t),"half"}clone(){if(Me.brandCheck(this,t),Cre(this))throw new TypeError("unusable");let e=_re(this[Yt]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=Kb.get(this.signal);n===void 0&&(n=new Set,Kb.set(this.signal,n));let s=new WeakRef(r);n.add(s),Yb.addAbortListener(r.signal,Rre(s))}return Qre(e,r.signal,a3e(this[bo]))}[xre.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 ${xre.formatWithOptions(r,n)}`}};s3e(nd);function Xb(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 jb(t.headersList):new jb}}i(Xb,"makeRequest");function _re(t){let e=Xb({...t,body:null});return t.body!=null&&(e.body=o3e(e,t.body)),e}i(_re,"cloneRequest");function Qre(t,e,r){let n=new nd(Jb);return n[Yt]=t,n[Wb]=e,n[bo]=new Tre(Jb),Pre(n[bo],t.headersList),s1(n[bo],r),n}i(Qre,"fromInnerRequest");Object.defineProperties(nd.prototype,{method:jr,url:jr,headers:jr,redirect:jr,clone:jr,signal:jr,duplex:jr,destination:jr,body:jr,bodyUsed:jr,isHistoryNavigation:jr,isReloadNavigation:jr,keepalive:jr,integrity:jr,cache:jr,credentials:jr,attribute:jr,referrerPolicy:jr,referrer:jr,mode:jr,[Symbol.toStringTag]:{value:"Request",configurable:!0}});Me.converters.Request=Me.interfaceConverter(nd);Me.converters.RequestInfo=function(t,e,r){return typeof t=="string"?Me.converters.USVString(t,e,r):t instanceof nd?Me.converters.Request(t,e,r):Me.converters.USVString(t,e,r)};Me.converters.AbortSignal=Me.interfaceConverter(AbortSignal);Me.converters.RequestInit=Me.dictionaryConverter([{key:"method",converter:Me.converters.ByteString},{key:"headers",converter:Me.converters.HeadersInit},{key:"body",converter:Me.nullableConverter(Me.converters.BodyInit)},{key:"referrer",converter:Me.converters.USVString},{key:"referrerPolicy",converter:Me.converters.DOMString,allowedValues:p3e},{key:"mode",converter:Me.converters.DOMString,allowedValues:f3e},{key:"credentials",converter:Me.converters.DOMString,allowedValues:A3e},{key:"cache",converter:Me.converters.DOMString,allowedValues:h3e},{key:"redirect",converter:Me.converters.DOMString,allowedValues:m3e},{key:"integrity",converter:Me.converters.DOMString},{key:"keepalive",converter:Me.converters.boolean},{key:"signal",converter:Me.nullableConverter(t=>Me.converters.AbortSignal(t,"RequestInit","signal",{strict:!1}))},{key:"window",converter:Me.converters.any},{key:"duplex",converter:Me.converters.DOMString,allowedValues:g3e},{key:"dispatcher",converter:Me.converters.any}]);Dre.exports={Request:nd,makeRequest:Xb,fromInnerRequest:Qre,cloneRequest:_re}});var DE=b((e2t,jre)=>{"use strict";var{makeNetworkError:Qt,makeAppropriateNetworkError:Zb,filterResponse:o1,makeResponse:eS,fromInnerResponse:b3e}=_E(),{HeadersList:kre}=em(),{Request:S3e,cloneRequest:B3e}=HA(),sd=require("node:zlib"),{bytesMatch:R3e,makePolicyContainer:N3e,clonePolicyContainer:T3e,requestBadPort:P3e,TAOCheck:v3e,appendRequestOriginHeader:_3e,responseLocationURL:Q3e,requestCurrentURL:Ja,setRequestReferrerPolicyOnRedirect:D3e,tryUpgradeRequestToAPotentiallyTrustworthyURL:k3e,createOpaqueTimingInfo:u1,appendFetchMetadata:L3e,corsCheck:O3e,crossOriginResourcePolicyCheck:M3e,determineRequestsReferrer:F3e,coarsenedSharedCurrentTime:QE,createDeferredPromise:U3e,isBlobLike:q3e,sameOrigin:l1,isCancelled:rm,isAborted:Lre,isErrorLike:$3e,fullyReadBody:G3e,readableStreamClose:H3e,isomorphicEncode:tS,urlIsLocal:z3e,urlIsHttpHttpsScheme:d1,urlHasHttpsScheme:V3e,clampAndCoarsenConnectionTimingInfo:Y3e,simpleRangeHeaderValue:W3e,buildContentRange:j3e,createInflate:J3e,extractMimeType:K3e}=yo(),{kState:Ure,kDispatcher:X3e}=Vu(),nm=require("node:assert"),{safelyExtractBody:p1,extractBody:Ore}=xA(),{redirectStatusSet:qre,nullBodyStatus:$re,safeMethodsSet:Z3e,requestBodyHeader:eVe,subresourceSet:tVe}=tE(),rVe=require("node:events"),{Readable:nVe,pipeline:sVe,finished:oVe}=require("node:stream"),{addAbortListener:iVe,isErrored:aVe,isReadable:rS,bufferToLowerCasedHeaderName:Mre}=ut(),{dataURLProcessor:cVe,serializeAMimeType:lVe,minimizeSupportedMimeType:uVe}=Ms(),{getGlobalDispatcher:dVe}=Fb(),{webidl:pVe}=Nn(),{STATUS_CODES:mVe}=require("node:http"),fVe=["GET","HEAD"],AVe=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",i1,nS=class extends rVe{static{i(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){Gre(t,"fetch")}i(hVe,"handleFetchDone");function gVe(t,e=void 0){pVe.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=U3e(),n;try{n=new S3e(t,e)}catch(d){return r.reject(d),r.promise}let s=n[Ure];if(n.signal.aborted)return a1(r,s,null,n.signal.reason),r.promise;s.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope"&&(s.serviceWorkers="none");let a=null,c=!1,l=null;return iVe(n.signal,()=>{c=!0,nm(l!=null),l.abort(n.signal.reason);let d=a?.deref();a1(r,s,d,n.signal.reason)}),l=zre({request:s,processResponseEndOfBody:hVe,processResponse:i(d=>{if(!c){if(d.aborted){a1(r,s,a,l.serializedAbortReason);return}if(d.type==="error"){r.reject(new TypeError("fetch failed",{cause:d.error}));return}a=new WeakRef(b3e(d,"immutable")),r.resolve(a.deref()),r=null}},"processResponse"),dispatcher:n[X3e]}),r.promise}i(gVe,"fetch");function Gre(t,e="other"){if(t.type==="error"&&t.aborted||!t.urlList?.length)return;let r=t.urlList[0],n=t.timingInfo,s=t.cacheState;d1(r)&&n!==null&&(t.timingAllowPassed||(n=u1({startTime:n.startTime}),s=""),n.endTime=QE(),t.timingInfo=n,Hre(n,r.href,e,globalThis,s))}i(Gre,"finalizeAndReportTiming");var Hre=performance.markResourceTiming;function a1(t,e,r,n){if(t&&t.reject(n),e.body!=null&&rS(e.body?.stream)&&e.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o}),r==null)return;let s=r[Ure];s.body!=null&&rS(s.body?.stream)&&s.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o})}i(a1,"abortFetch");function zre({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:a=!1,dispatcher:c=dVe()}){nm(c);let l=null,u=!1;t.client!=null&&(l=t.client.globalObject,u=t.client.crossOriginIsolatedCapability);let d=QE(u),p=u1({startTime:d}),m={controller:new nS(c),request:t,timingInfo:p,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:l,crossOriginIsolatedCapability:u};return nm(!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=T3e(t.client.policyContainer):t.policyContainer=N3e()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,tVe.has(t.destination),Vre(m).catch(f=>{m.controller.terminate(f)}),m.controller}i(zre,"fetching");async function Vre(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!z3e(Ja(r))&&(n=Qt("local URLs only")),k3e(r),P3e(r)==="blocked"&&(n=Qt("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=F3e(r)),n===null&&(n=await(async()=>{let o=Ja(r);return l1(o,r.url)&&r.responseTainting==="basic"||o.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await Fre(t)):r.mode==="same-origin"?Qt('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?Qt('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await Fre(t)):d1(Ja(r))?(r.responseTainting="cors",await Yre(t)):Qt("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=o1(n,"basic"):r.responseTainting==="cors"?n=o1(n,"cors"):r.responseTainting==="opaque"?n=o1(n,"opaque"):nm(!1));let s=n.status===0?n:n.internalResponse;if(s.urlList.length===0&&s.urlList.push(...r.urlList),r.timingAllowFailed||(n.timingAllowPassed=!0),n.type==="opaque"&&s.status===206&&s.rangeRequested&&!r.headers.contains("range",!0)&&(n=s=Qt()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||$re.includes(s.status))&&(s.body=null,t.controller.dump=!0),r.integrity){let o=i(c=>c1(t,Qt(c)),"processBodyError");if(r.responseTainting==="opaque"||n.body==null){o(n.error);return}let a=i(c=>{if(!R3e(c,r.integrity)){o("integrity mismatch");return}n.body=p1(c)[0],c1(t,n)},"processBody");await G3e(n.body,a,o)}else c1(t,n)}i(Vre,"mainFetch");function Fre(t){if(rm(t)&&t.request.redirectCount===0)return Promise.resolve(Zb(t));let{request:e}=t,{protocol:r}=Ja(e);switch(r){case"about:":return Promise.resolve(Qt("about scheme is not supported"));case"blob:":{i1||(i1=require("node:buffer").resolveObjectURL);let n=Ja(e);if(n.search.length!==0)return Promise.resolve(Qt("NetworkError when attempting to fetch resource."));let s=i1(n.toString());if(e.method!=="GET"||!q3e(s))return Promise.resolve(Qt("invalid method"));let o=eS(),a=s.size,c=tS(`${a}`),l=s.type;if(e.headersList.contains("range",!0)){o.rangeRequested=!0;let u=e.headersList.get("range",!0),d=W3e(u,!0);if(d==="failure")return Promise.resolve(Qt("failed to fetch the data URL"));let{rangeStartValue:p,rangeEndValue:m}=d;if(p===null)p=a-m,m=p+m-1;else{if(p>=a)return Promise.resolve(Qt("Range start is greater than the blob's size."));(m===null||m>=a)&&(m=a-1)}let f=s.slice(p,m,l),g=Ore(f);o.body=g[0];let E=tS(`${f.size}`),x=j3e(p,m,a);o.status=206,o.statusText="Partial Content",o.headersList.set("content-length",E,!0),o.headersList.set("content-type",l,!0),o.headersList.set("content-range",x,!0)}else{let u=Ore(s);o.statusText="OK",o.body=u[0],o.headersList.set("content-length",c,!0),o.headersList.set("content-type",l,!0)}return Promise.resolve(o)}case"data:":{let n=Ja(e),s=cVe(n);if(s==="failure")return Promise.resolve(Qt("failed to fetch the data URL"));let o=lVe(s.mimeType);return Promise.resolve(eS({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:o}]],body:p1(s.body)[0]}))}case"file:":return Promise.resolve(Qt("not implemented... yet..."));case"http:":case"https:":return Yre(t).catch(n=>Qt(n));default:return Promise.resolve(Qt("unknown scheme"))}}i(Fre,"schemeFetch");function yVe(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}i(yVe,"finalizeResponse");function c1(t,e){let r=t.timingInfo,n=i(()=>{let o=Date.now();t.request.destination==="document"&&(t.controller.fullTimingInfo=r),t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:")return;r.endTime=o;let c=e.cacheState,l=e.bodyInfo;e.timingAllowPassed||(r=u1(r),c="");let u=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){u=e.status;let d=K3e(e.headersList);d!=="failure"&&(l.contentType=uVe(d))}t.request.initiatorType!=null&&Hre(r,t.request.url.href,t.request.initiatorType,globalThis,c,l,u)};let a=i(()=>{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 s=e.type==="error"?e:e.internalResponse??e;s.body==null?n():oVe(s.body.stream,()=>{n()})}i(c1,"fetchFinale");async function Yre(t){let e=t.request,r=null,n=null,s=t.timingInfo;if(e.serviceWorkers,r===null){if(e.redirect==="follow"&&(e.serviceWorkers="none"),n=r=await Wre(t),e.responseTainting==="cors"&&O3e(e,r)==="failure")return Qt("cors failure");v3e(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&M3e(e.origin,e.client,e.destination,n)==="blocked"?Qt("blocked"):(qre.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=Qt("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await EVe(t,r):nm(!1)),r.timingInfo=s,r)}i(Yre,"httpFetch");function EVe(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,s;try{if(s=Q3e(n,Ja(r).hash),s==null)return e}catch(a){return Promise.resolve(Qt(a))}if(!d1(s))return Promise.resolve(Qt("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(Qt("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(s.username||s.password)&&!l1(r,s))return Promise.resolve(Qt('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(s.username||s.password))return Promise.resolve(Qt('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(Qt());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 eVe)r.headersList.delete(a)}l1(Ja(r),s)||(r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0)),r.body!=null&&(nm(r.body.source!=null),r.body=p1(r.body.source)[0]);let o=t.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=QE(t.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(s),D3e(r,n),Vre(t,!0)}i(EVe,"httpRedirectFetch");async function Wre(t,e=!1,r=!1){let n=t.request,s=null,o=null,a=null,c=null,l=!1;n.window==="no-window"&&n.redirect==="error"?(s=t,o=n):(o=B3e(n),s={...t},s.request=o);let u=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",d=o.body?o.body.length:null,p=null;if(o.body==null&&["POST","PUT"].includes(o.method)&&(p="0"),d!=null&&(p=tS(`${d}`)),p!=null&&o.headersList.append("content-length",p,!0),d!=null&&o.keepalive,o.referrer instanceof URL&&o.headersList.append("referer",tS(o.referrer.href),!0),_3e(o),L3e(o),o.headersList.contains("user-agent",!0)||o.headersList.append("user-agent",AVe),o.cache==="default"&&(o.headersList.contains("if-modified-since",!0)||o.headersList.contains("if-none-match",!0)||o.headersList.contains("if-unmodified-since",!0)||o.headersList.contains("if-match",!0)||o.headersList.contains("if-range",!0))&&(o.cache="no-store"),o.cache==="no-cache"&&!o.preventNoCacheCacheControlHeaderModification&&!o.headersList.contains("cache-control",!0)&&o.headersList.append("cache-control","max-age=0",!0),(o.cache==="no-store"||o.cache==="reload")&&(o.headersList.contains("pragma",!0)||o.headersList.append("pragma","no-cache",!0),o.headersList.contains("cache-control",!0)||o.headersList.append("cache-control","no-cache",!0)),o.headersList.contains("range",!0)&&o.headersList.append("accept-encoding","identity",!0),o.headersList.contains("accept-encoding",!0)||(V3e(Ja(o))?o.headersList.append("accept-encoding","br, gzip, deflate",!0):o.headersList.append("accept-encoding","gzip, deflate",!0)),o.headersList.delete("host",!0),c==null&&(o.cache="no-store"),o.cache!=="no-store"&&o.cache,a==null){if(o.cache==="only-if-cached")return Qt("only if cached");let m=await CVe(s,u,r);!Z3e.has(o.method)&&m.status>=200&&m.status<=399,l&&m.status,a==null&&(a=m)}if(a.urlList=[...o.urlList],o.headersList.contains("range",!0)&&(a.rangeRequested=!0),a.requestIncludesCredentials=u,a.status===407)return n.window==="no-window"?Qt():rm(t)?Zb(t):Qt("proxy authentication required");if(a.status===421&&!r&&(n.body==null||n.body.source!=null)){if(rm(t))return Zb(t);t.controller.connection.destroy(),a=await Wre(t,e,!0)}return a}i(Wre,"httpNetworkOrCacheFetch");async function CVe(t,e=!1,r=!1){nm(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(g,E=!0){this.destroyed||(this.destroyed=!0,E&&this.abort?.(g??new DOMException("The operation was aborted.","AbortError")))}};let n=t.request,s=null,o=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 g=i(async function*(w){rm(t)||(yield w,t.processRequestBodyChunkLength?.(w.byteLength))},"processBodyChunk"),E=i(()=>{rm(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},"processEndOfBody"),x=i(w=>{rm(t)||(w.name==="AbortError"?t.controller.abort():t.controller.terminate(w))},"processBodyError");l=(async function*(){try{for await(let w of n.body.stream)yield*g(w);E()}catch(w){x(w)}})()}try{let{body:g,status:E,statusText:x,headersList:w,socket:S}=await f({body:l});if(S)s=eS({status:E,statusText:x,headersList:w,socket:S});else{let P=g[Symbol.asyncIterator]();t.controller.next=()=>P.next(),s=eS({status:E,statusText:x,headersList:w})}}catch(g){return g.name==="AbortError"?(t.controller.connection.destroy(),Zb(t,g)):Qt(g)}let u=i(async()=>{await t.controller.resume()},"pullAlgorithm"),d=i(g=>{rm(t)||t.controller.abort(g)},"cancelAlgorithm"),p=new ReadableStream({async start(g){t.controller.controller=g},async pull(g){await u(g)},async cancel(g){await d(g)},type:"bytes"});s.body={stream:p,source:null,length:null},t.controller.onAborted=m,t.controller.on("terminated",m),t.controller.resume=async()=>{for(;;){let g,E;try{let{done:w,value:S}=await t.controller.next();if(Lre(t))break;g=w?void 0:S}catch(w){t.controller.ended&&!o.encodedBodySize?g=void 0:(g=w,E=!0)}if(g===void 0){H3e(t.controller.controller),yVe(t,s);return}if(o.decodedBodySize+=g?.byteLength??0,E){t.controller.terminate(g);return}let x=new Uint8Array(g);if(x.byteLength&&t.controller.controller.enqueue(x),aVe(p)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function m(g){Lre(t)?(s.aborted=!0,rS(p)&&t.controller.controller.error(t.controller.serializedAbortReason)):rS(p)&&t.controller.controller.error(new TypeError("terminated",{cause:$3e(g)?g:void 0})),t.controller.connection.destroy()}return i(m,"onAborted"),s;function f({body:g}){let E=Ja(n),x=t.controller.dispatcher;return new Promise((w,S)=>x.dispatch({path:E.pathname+E.search,origin:E.origin,method:n.method,body:x.isMockActive?n.body&&(n.body.source||n.body.stream):g,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(P){let{connection:Q}=t.controller;o.finalConnectionTimingInfo=Y3e(void 0,o.postRedirectStartTime,t.crossOriginIsolatedCapability),Q.destroyed?P(new DOMException("The operation was aborted.","AbortError")):(t.controller.on("terminated",P),this.abort=Q.abort=P),o.finalNetworkRequestStartTime=QE(t.crossOriginIsolatedCapability)},onResponseStarted(){o.finalNetworkResponseStartTime=QE(t.crossOriginIsolatedCapability)},onHeaders(P,Q,q,M){if(P<200)return;let V="",pe=new kre;for(let ye=0;yene)return S(new Error(`too many content-encodings in response: ${H.length}, maximum allowed is ${ne}`)),!0;for(let It=H.length-1;It>=0;--It){let at=H[It].trim();if(at==="x-gzip"||at==="gzip")Le.push(sd.createGunzip({flush:sd.constants.Z_SYNC_FLUSH,finishFlush:sd.constants.Z_SYNC_FLUSH}));else if(at==="deflate")Le.push(J3e({flush:sd.constants.Z_SYNC_FLUSH,finishFlush:sd.constants.Z_SYNC_FLUSH}));else if(at==="br")Le.push(sd.createBrotliDecompress({flush:sd.constants.BROTLI_OPERATION_FLUSH,finishFlush:sd.constants.BROTLI_OPERATION_FLUSH}));else{Le.length=0;break}}}let oe=this.onError.bind(this);return w({status:P,statusText:M,headersList:pe,body:Le.length?sVe(this.body,...Le,ye=>{ye&&this.onError(ye)}).on("error",oe):this.body.on("error",oe)}),!0},onData(P){if(t.controller.dump)return;let Q=P;return o.encodedBodySize+=Q.byteLength,this.body.push(Q)},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(P){this.abort&&t.controller.off("terminated",this.abort),this.body?.destroy(P),t.controller.terminate(P),S(P)},onUpgrade(P,Q,q){if(P!==101)return;let M=new kre;for(let V=0;V{"use strict";Jre.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 Xre=b((n2t,Kre)=>{"use strict";var{webidl:So}=Nn(),sS=Symbol("ProgressEvent state"),f1=class t extends Event{static{i(this,"ProgressEvent")}constructor(e,r={}){e=So.converters.DOMString(e,"ProgressEvent constructor","type"),r=So.converters.ProgressEventInit(r??{}),super(e,r),this[sS]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return So.brandCheck(this,t),this[sS].lengthComputable}get loaded(){return So.brandCheck(this,t),this[sS].loaded}get total(){return So.brandCheck(this,t),this[sS].total}};So.converters.ProgressEventInit=So.dictionaryConverter([{key:"lengthComputable",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"loaded",converter:So.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"total",converter:So.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"bubbles",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}]);Kre.exports={ProgressEvent:f1}});var ene=b((o2t,Zre)=>{"use strict";function IVe(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"}}i(IVe,"getEncoding");Zre.exports={getEncoding:IVe}});var cne=b((a2t,ane)=>{"use strict";var{kState:zA,kError:A1,kResult:tne,kAborted:kE,kLastProgressEventFired:h1}=m1(),{ProgressEvent:xVe}=Xre(),{getEncoding:rne}=ene(),{serializeAMimeType:wVe,parseMIMEType:nne}=Ms(),{types:bVe}=require("node:util"),{StringDecoder:sne}=require("string_decoder"),{btoa:one}=require("node:buffer"),SVe={enumerable:!0,writable:!1,configurable:!1};function BVe(t,e,r,n){if(t[zA]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[zA]="loading",t[tne]=null,t[A1]=null;let o=e.stream().getReader(),a=[],c=o.read(),l=!0;(async()=>{for(;!t[kE];)try{let{done:u,value:d}=await c;if(l&&!t[kE]&&queueMicrotask(()=>{od("loadstart",t)}),l=!1,!u&&bVe.isUint8Array(d))a.push(d),(t[h1]===void 0||Date.now()-t[h1]>=50)&&!t[kE]&&(t[h1]=Date.now(),queueMicrotask(()=>{od("progress",t)})),c=o.read();else if(u){queueMicrotask(()=>{t[zA]="done";try{let p=RVe(a,r,e.type,n);if(t[kE])return;t[tne]=p,od("load",t)}catch(p){t[A1]=p,od("error",t)}t[zA]!=="loading"&&od("loadend",t)});break}}catch(u){if(t[kE])return;queueMicrotask(()=>{t[zA]="done",t[A1]=u,od("error",t),t[zA]!=="loading"&&od("loadend",t)});break}})()}i(BVe,"readOperation");function od(t,e){let r=new xVe(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}i(od,"fireAProgressEvent");function RVe(t,e,r,n){switch(e){case"DataURL":{let s="data:",o=nne(r||"application/octet-stream");o!=="failure"&&(s+=wVe(o)),s+=";base64,";let a=new sne("latin1");for(let c of t)s+=one(a.write(c));return s+=one(a.end()),s}case"Text":{let s="failure";if(n&&(s=rne(n)),s==="failure"&&r){let o=nne(r);o!=="failure"&&(s=rne(o.parameters.get("charset")))}return s==="failure"&&(s="UTF-8"),NVe(t,s)}case"ArrayBuffer":return ine(t).buffer;case"BinaryString":{let s="",o=new sne("latin1");for(let a of t)s+=o.write(a);return s+=o.end(),s}}}i(RVe,"packageData");function NVe(t,e){let r=ine(t),n=TVe(r),s=0;n!==null&&(e=n,s=n==="UTF-8"?3:2);let o=r.slice(s);return new TextDecoder(e).decode(o)}i(NVe,"decode");function TVe(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}i(TVe,"BOMSniffing");function ine(t){let e=t.reduce((n,s)=>n+s.byteLength,0),r=0;return t.reduce((n,s)=>(n.set(s,r),r+=s.byteLength,n),new Uint8Array(e))}i(ine,"combineByteSequences");ane.exports={staticPropertyDescriptors:SVe,readOperation:BVe,fireAProgressEvent:od}});var pne=b((l2t,dne)=>{"use strict";var{staticPropertyDescriptors:VA,readOperation:oS,fireAProgressEvent:lne}=cne(),{kState:sm,kError:une,kResult:iS,kEvents:Bt,kAborted:PVe}=m1(),{webidl:kt}=Nn(),{kEnumerableProperty:qs}=ut(),oa=class t extends EventTarget{static{i(this,"FileReader")}constructor(){super(),this[sm]="empty",this[iS]=null,this[une]=null,this[Bt]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){kt.brandCheck(this,t),kt.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=kt.converters.Blob(e,{strict:!1}),oS(this,e,"ArrayBuffer")}readAsBinaryString(e){kt.brandCheck(this,t),kt.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=kt.converters.Blob(e,{strict:!1}),oS(this,e,"BinaryString")}readAsText(e,r=void 0){kt.brandCheck(this,t),kt.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=kt.converters.Blob(e,{strict:!1}),r!==void 0&&(r=kt.converters.DOMString(r,"FileReader.readAsText","encoding")),oS(this,e,"Text",r)}readAsDataURL(e){kt.brandCheck(this,t),kt.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=kt.converters.Blob(e,{strict:!1}),oS(this,e,"DataURL")}abort(){if(this[sm]==="empty"||this[sm]==="done"){this[iS]=null;return}this[sm]==="loading"&&(this[sm]="done",this[iS]=null),this[PVe]=!0,lne("abort",this),this[sm]!=="loading"&&lne("loadend",this)}get readyState(){switch(kt.brandCheck(this,t),this[sm]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return kt.brandCheck(this,t),this[iS]}get error(){return kt.brandCheck(this,t),this[une]}get onloadend(){return kt.brandCheck(this,t),this[Bt].loadend}set onloadend(e){kt.brandCheck(this,t),this[Bt].loadend&&this.removeEventListener("loadend",this[Bt].loadend),typeof e=="function"?(this[Bt].loadend=e,this.addEventListener("loadend",e)):this[Bt].loadend=null}get onerror(){return kt.brandCheck(this,t),this[Bt].error}set onerror(e){kt.brandCheck(this,t),this[Bt].error&&this.removeEventListener("error",this[Bt].error),typeof e=="function"?(this[Bt].error=e,this.addEventListener("error",e)):this[Bt].error=null}get onloadstart(){return kt.brandCheck(this,t),this[Bt].loadstart}set onloadstart(e){kt.brandCheck(this,t),this[Bt].loadstart&&this.removeEventListener("loadstart",this[Bt].loadstart),typeof e=="function"?(this[Bt].loadstart=e,this.addEventListener("loadstart",e)):this[Bt].loadstart=null}get onprogress(){return kt.brandCheck(this,t),this[Bt].progress}set onprogress(e){kt.brandCheck(this,t),this[Bt].progress&&this.removeEventListener("progress",this[Bt].progress),typeof e=="function"?(this[Bt].progress=e,this.addEventListener("progress",e)):this[Bt].progress=null}get onload(){return kt.brandCheck(this,t),this[Bt].load}set onload(e){kt.brandCheck(this,t),this[Bt].load&&this.removeEventListener("load",this[Bt].load),typeof e=="function"?(this[Bt].load=e,this.addEventListener("load",e)):this[Bt].load=null}get onabort(){return kt.brandCheck(this,t),this[Bt].abort}set onabort(e){kt.brandCheck(this,t),this[Bt].abort&&this.removeEventListener("abort",this[Bt].abort),typeof e=="function"?(this[Bt].abort=e,this.addEventListener("abort",e)):this[Bt].abort=null}};oa.EMPTY=oa.prototype.EMPTY=0;oa.LOADING=oa.prototype.LOADING=1;oa.DONE=oa.prototype.DONE=2;Object.defineProperties(oa.prototype,{EMPTY:VA,LOADING:VA,DONE:VA,readAsArrayBuffer:qs,readAsBinaryString:qs,readAsText:qs,readAsDataURL:qs,abort:qs,readyState:qs,result:qs,error:qs,onloadstart:qs,onprogress:qs,onload:qs,onabort:qs,onerror:qs,onloadend:qs,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(oa,{EMPTY:VA,LOADING:VA,DONE:VA});dne.exports={FileReader:oa}});var aS=b((d2t,mne)=>{"use strict";mne.exports={kConstruct:er().kConstruct}});var hne=b((p2t,Ane)=>{"use strict";var vVe=require("node:assert"),{URLSerializer:fne}=Ms(),{isValidHeaderName:_Ve}=yo();function QVe(t,e,r=!1){let n=fne(t,r),s=fne(e,r);return n===s}i(QVe,"urlEquals");function DVe(t){vVe(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),_Ve(r)&&e.push(r);return e}i(DVe,"getFieldValues");Ane.exports={urlEquals:QVe,getFieldValues:DVe}});var Ene=b((f2t,yne)=>{"use strict";var{kConstruct:kVe}=aS(),{urlEquals:LVe,getFieldValues:g1}=hne(),{kEnumerableProperty:om,isDisturbed:OVe}=ut(),{webidl:Ne}=Nn(),{Response:MVe,cloneResponse:FVe,fromInnerResponse:UVe}=_E(),{Request:ql,fromInnerRequest:qVe}=HA(),{kState:ia}=Vu(),{fetching:$Ve}=DE(),{urlIsHttpHttpsScheme:cS,createDeferredPromise:YA,readAllBytes:GVe}=yo(),y1=require("node:assert"),lS=class t{static{i(this,"Cache")}#e;constructor(){arguments[0]!==kVe&&Ne.illegalConstructor(),Ne.util.markAsUncloneable(this),this.#e=arguments[1]}async match(e,r={}){Ne.brandCheck(this,t);let n="Cache.match";Ne.argumentLengthCheck(arguments,1,n),e=Ne.converters.RequestInfo(e,n,"request"),r=Ne.converters.CacheQueryOptions(r,n,"options");let s=this.#s(e,r,1);if(s.length!==0)return s[0]}async matchAll(e=void 0,r={}){Ne.brandCheck(this,t);let n="Cache.matchAll";return e!==void 0&&(e=Ne.converters.RequestInfo(e,n,"request")),r=Ne.converters.CacheQueryOptions(r,n,"options"),this.#s(e,r)}async add(e){Ne.brandCheck(this,t);let r="Cache.add";Ne.argumentLengthCheck(arguments,1,r),e=Ne.converters.RequestInfo(e,r,"request");let n=[e];return await this.addAll(n)}async addAll(e){Ne.brandCheck(this,t);let r="Cache.addAll";Ne.argumentLengthCheck(arguments,1,r);let n=[],s=[];for(let m of e){if(m===void 0)throw Ne.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(m=Ne.converters.RequestInfo(m),typeof m=="string")continue;let f=m[ia];if(!cS(f.url)||f.method!=="GET")throw Ne.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let o=[];for(let m of e){let f=new ql(m)[ia];if(!cS(f.url))throw Ne.errors.exception({header:r,message:"Expected http/s scheme."});f.initiator="fetch",f.destination="subresource",s.push(f);let g=YA();o.push($Ve({request:f,processResponse(E){if(E.type==="error"||E.status===206||E.status<200||E.status>299)g.reject(Ne.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(E.headersList.contains("vary")){let x=g1(E.headersList.get("vary"));for(let w of x)if(w==="*"){g.reject(Ne.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let S of o)S.abort();return}}},processResponseEndOfBody(E){if(E.aborted){g.reject(new DOMException("aborted","AbortError"));return}g.resolve(E)}})),n.push(g.promise)}let c=await Promise.all(n),l=[],u=0;for(let m of c){let f={type:"put",request:s[u],response:m};l.push(f),u++}let d=YA(),p=null;try{this.#t(l)}catch(m){p=m}return queueMicrotask(()=>{p===null?d.resolve(void 0):d.reject(p)}),d.promise}async put(e,r){Ne.brandCheck(this,t);let n="Cache.put";Ne.argumentLengthCheck(arguments,2,n),e=Ne.converters.RequestInfo(e,n,"request"),r=Ne.converters.Response(r,n,"response");let s=null;if(e instanceof ql?s=e[ia]:s=new ql(e)[ia],!cS(s.url)||s.method!=="GET")throw Ne.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"});let o=r[ia];if(o.status===206)throw Ne.errors.exception({header:n,message:"Got 206 status"});if(o.headersList.contains("vary")){let f=g1(o.headersList.get("vary"));for(let g of f)if(g==="*")throw Ne.errors.exception({header:n,message:"Got * vary field value"})}if(o.body&&(OVe(o.body.stream)||o.body.stream.locked))throw Ne.errors.exception({header:n,message:"Response body is locked or disturbed"});let a=FVe(o),c=YA();if(o.body!=null){let g=o.body.stream.getReader();GVe(g).then(c.resolve,c.reject)}else c.resolve(void 0);let l=[],u={type:"put",request:s,response:a};l.push(u);let d=await c.promise;a.body!=null&&(a.body.source=d);let p=YA(),m=null;try{this.#t(l)}catch(f){m=f}return queueMicrotask(()=>{m===null?p.resolve():p.reject(m)}),p.promise}async delete(e,r={}){Ne.brandCheck(this,t);let n="Cache.delete";Ne.argumentLengthCheck(arguments,1,n),e=Ne.converters.RequestInfo(e,n,"request"),r=Ne.converters.CacheQueryOptions(r,n,"options");let s=null;if(e instanceof ql){if(s=e[ia],s.method!=="GET"&&!r.ignoreMethod)return!1}else y1(typeof e=="string"),s=new ql(e)[ia];let o=[],a={type:"delete",request:s,options:r};o.push(a);let c=YA(),l=null,u;try{u=this.#t(o)}catch(d){l=d}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(e=void 0,r={}){Ne.brandCheck(this,t);let n="Cache.keys";e!==void 0&&(e=Ne.converters.RequestInfo(e,n,"request")),r=Ne.converters.CacheQueryOptions(r,n,"options");let s=null;if(e!==void 0)if(e instanceof ql){if(s=e[ia],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new ql(e)[ia]);let o=YA(),a=[];if(e===void 0)for(let c of this.#e)a.push(c[0]);else{let c=this.#r(s,r);for(let l of c)a.push(l[0])}return queueMicrotask(()=>{let c=[];for(let l of a){let u=qVe(l,new AbortController().signal,"immutable");c.push(u)}o.resolve(Object.freeze(c))}),o.promise}#t(e){let r=this.#e,n=[...r],s=[],o=[];try{for(let a of e){if(a.type!=="delete"&&a.type!=="put")throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(a.type==="delete"&&a.response!=null)throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#r(a.request,a.options,s).length)throw new DOMException("???","InvalidStateError");let c;if(a.type==="delete"){if(c=this.#r(a.request,a.options),c.length===0)return[];for(let l of c){let u=r.indexOf(l);y1(u!==-1),r.splice(u,1)}}else if(a.type==="put"){if(a.response==null)throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let l=a.request;if(!cS(l.url))throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(l.method!=="GET")throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(a.options!=null)throw Ne.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});c=this.#r(a.request);for(let u of c){let d=r.indexOf(u);y1(d!==-1),r.splice(d,1)}r.push([a.request,a.response]),s.push([a.request,a.response])}o.push([a.request,a.response])}return o}catch(a){throw this.#e.length=0,this.#e=n,a}}#r(e,r,n){let s=[],o=n??this.#e;for(let a of o){let[c,l]=a;this.#o(e,c,l,r)&&s.push(a)}return s}#o(e,r,n=null,s){let o=new URL(e.url),a=new URL(r.url);if(s?.ignoreSearch&&(a.search="",o.search=""),!LVe(o,a,!0))return!1;if(n==null||s?.ignoreVary||!n.headersList.contains("vary"))return!0;let c=g1(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}#s(e,r,n=1/0){let s=null;if(e!==void 0)if(e instanceof ql){if(s=e[ia],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new ql(e)[ia]);let o=[];if(e===void 0)for(let c of this.#e)o.push(c[1]);else{let c=this.#r(s,r);for(let l of c)o.push(l[1])}let a=[];for(let c of o){let l=UVe(c,"immutable");if(a.push(l.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(lS.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:om,matchAll:om,add:om,addAll:om,put:om,delete:om,keys:om});var gne=[{key:"ignoreSearch",converter:Ne.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreMethod",converter:Ne.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreVary",converter:Ne.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}];Ne.converters.CacheQueryOptions=Ne.dictionaryConverter(gne);Ne.converters.MultiCacheQueryOptions=Ne.dictionaryConverter([...gne,{key:"cacheName",converter:Ne.converters.DOMString}]);Ne.converters.Response=Ne.interfaceConverter(MVe);Ne.converters["sequence"]=Ne.sequenceConverter(Ne.converters.RequestInfo);yne.exports={Cache:lS}});var Ine=b((h2t,Cne)=>{"use strict";var{kConstruct:LE}=aS(),{Cache:uS}=Ene(),{webidl:Hn}=Nn(),{kEnumerableProperty:OE}=ut(),dS=class t{static{i(this,"CacheStorage")}#e=new Map;constructor(){arguments[0]!==LE&&Hn.illegalConstructor(),Hn.util.markAsUncloneable(this)}async match(e,r={}){if(Hn.brandCheck(this,t),Hn.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=Hn.converters.RequestInfo(e),r=Hn.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(this.#e.has(r.cacheName)){let n=this.#e.get(r.cacheName);return await new uS(LE,n).match(e,r)}}else for(let n of this.#e.values()){let o=await new uS(LE,n).match(e,r);if(o!==void 0)return o}}async has(e){Hn.brandCheck(this,t);let r="CacheStorage.has";return Hn.argumentLengthCheck(arguments,1,r),e=Hn.converters.DOMString(e,r,"cacheName"),this.#e.has(e)}async open(e){Hn.brandCheck(this,t);let r="CacheStorage.open";if(Hn.argumentLengthCheck(arguments,1,r),e=Hn.converters.DOMString(e,r,"cacheName"),this.#e.has(e)){let s=this.#e.get(e);return new uS(LE,s)}let n=[];return this.#e.set(e,n),new uS(LE,n)}async delete(e){Hn.brandCheck(this,t);let r="CacheStorage.delete";return Hn.argumentLengthCheck(arguments,1,r),e=Hn.converters.DOMString(e,r,"cacheName"),this.#e.delete(e)}async keys(){return Hn.brandCheck(this,t),[...this.#e.keys()]}};Object.defineProperties(dS.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:OE,has:OE,open:OE,delete:OE,keys:OE});Cne.exports={CacheStorage:dS}});var wne=b((y2t,xne)=>{"use strict";xne.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var E1=b((E2t,Nne)=>{"use strict";function HVe(t){for(let e=0;e=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}i(HVe,"isCTLExcludingHtab");function bne(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")}}i(bne,"validateCookieName");function Sne(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")}}i(Sne,"validateCookieValue");function Bne(t){for(let e=0;ee.toString().padStart(2,"0"));function Rne(t){return typeof t=="number"&&(t=new Date(t)),`${VVe[t.getUTCDay()]}, ${pS[t.getUTCDate()]} ${YVe[t.getUTCMonth()]} ${t.getUTCFullYear()} ${pS[t.getUTCHours()]}:${pS[t.getUTCMinutes()]}:${pS[t.getUTCSeconds()]} GMT`}i(Rne,"toIMFDate");function WVe(t){if(t<0)throw new Error("Invalid cookie max-age")}i(WVe,"validateCookieMaxAge");function jVe(t){if(t.name.length===0)return null;bne(t.name),Sne(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"&&(WVe(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(zVe(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(Bne(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${Rne(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,...s]=r.split("=");e.push(`${n.trim()}=${s.join("=")}`)}return e.join("; ")}i(jVe,"stringify");Nne.exports={isCTLExcludingHtab:HVe,validateCookieName:bne,validateCookiePath:Bne,validateCookieValue:Sne,toIMFDate:Rne,stringify:jVe}});var Pne=b((I2t,Tne)=>{"use strict";var{maxNameValuePairSize:JVe,maxAttributeValueSize:KVe}=wne(),{isCTLExcludingHtab:XVe}=E1(),{collectASequenceOfCodePointsFast:mS}=Ms(),ZVe=require("node:assert");function e4e(t){if(XVe(t))return null;let e="",r="",n="",s="";if(t.includes(";")){let o={position:0};e=mS(";",t,o),r=t.slice(o.position)}else e=t;if(!e.includes("="))s=e;else{let o={position:0};n=mS("=",e,o),s=e.slice(o.position+1)}return n=n.trim(),s=s.trim(),n.length+s.length>JVe?null:{name:n,value:s,...WA(r)}}i(e4e,"parseSetCookie");function WA(t,e={}){if(t.length===0)return e;ZVe(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=mS(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",s="";if(r.includes("=")){let a={position:0};n=mS("=",r,a),s=r.slice(a.position+1)}else n=r;if(n=n.trim(),s=s.trim(),s.length>KVe)return WA(t,e);let o=n.toLowerCase();if(o==="expires"){let a=new Date(s);e.expires=a}else if(o==="max-age"){let a=s.charCodeAt(0);if((a<48||a>57)&&s[0]!=="-"||!/^\d+$/.test(s))return WA(t,e);let c=Number(s);e.maxAge=c}else if(o==="domain"){let a=s;a[0]==="."&&(a=a.slice(1)),a=a.toLowerCase(),e.domain=a}else if(o==="path"){let a="";s.length===0||s[0]!=="/"?a="/":a=s,e.path=a}else if(o==="secure")e.secure=!0;else if(o==="httponly")e.httpOnly=!0;else if(o==="samesite"){let a=s.toLowerCase();a==="none"?e.sameSite="None":a==="strict"?e.sameSite="Strict":a==="lax"&&(e.sameSite="Lax")}else e.unparsed??=[],e.unparsed.push(`${n}=${s}`);return WA(t,e)}i(WA,"parseUnparsedAttributes");Tne.exports={parseSetCookie:e4e,parseUnparsedAttributes:WA}});var Qne=b((w2t,_ne)=>{"use strict";var{parseSetCookie:t4e}=Pne(),{stringify:r4e}=E1(),{webidl:At}=Nn(),{Headers:fS}=em();function n4e(t){At.argumentLengthCheck(arguments,1,"getCookies"),At.brandCheck(t,fS,{strict:!1});let e=t.get("cookie"),r={};if(!e)return r;for(let n of e.split(";")){let[s,...o]=n.split("=");r[s.trim()]=o.join("=")}return r}i(n4e,"getCookies");function s4e(t,e,r){At.brandCheck(t,fS,{strict:!1});let n="deleteCookie";At.argumentLengthCheck(arguments,2,n),e=At.converters.DOMString(e,n,"name"),r=At.converters.DeleteCookieAttributes(r),vne(t,{name:e,value:"",expires:new Date(0),...r})}i(s4e,"deleteCookie");function o4e(t){At.argumentLengthCheck(arguments,1,"getSetCookies"),At.brandCheck(t,fS,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>t4e(r)):[]}i(o4e,"getSetCookies");function vne(t,e){At.argumentLengthCheck(arguments,2,"setCookie"),At.brandCheck(t,fS,{strict:!1}),e=At.converters.Cookie(e);let r=r4e(e);r&&t.append("Set-Cookie",r)}i(vne,"setCookie");At.converters.DeleteCookieAttributes=At.dictionaryConverter([{converter:At.nullableConverter(At.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")}]);At.converters.Cookie=At.dictionaryConverter([{converter:At.converters.DOMString,key:"name"},{converter:At.converters.DOMString,key:"value"},{converter:At.nullableConverter(t=>typeof t=="number"?At.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters["long long"]),key:"maxAge",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters.boolean),key:"secure",defaultValue:i(()=>null,"defaultValue")},{converter:At.nullableConverter(At.converters.boolean),key:"httpOnly",defaultValue:i(()=>null,"defaultValue")},{converter:At.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:At.sequenceConverter(At.converters.DOMString),key:"unparsed",defaultValue:i(()=>new Array(0),"defaultValue")}]);_ne.exports={getCookies:n4e,deleteCookie:s4e,getSetCookies:o4e,setCookie:vne}});var JA=b((S2t,kne)=>{"use strict";var{webidl:be}=Nn(),{kEnumerableProperty:$s}=ut(),{kConstruct:Dne}=er(),{MessagePort:i4e}=require("node:worker_threads"),jA=class t extends Event{static{i(this,"MessageEvent")}#e;constructor(e,r={}){if(e===Dne){super(arguments[1],arguments[2]),be.util.markAsUncloneable(this);return}let n="MessageEvent constructor";be.argumentLengthCheck(arguments,1,n),e=be.converters.DOMString(e,n,"type"),r=be.converters.MessageEventInit(r,n,"eventInitDict"),super(e,r),this.#e=r,be.util.markAsUncloneable(this)}get data(){return be.brandCheck(this,t),this.#e.data}get origin(){return be.brandCheck(this,t),this.#e.origin}get lastEventId(){return be.brandCheck(this,t),this.#e.lastEventId}get source(){return be.brandCheck(this,t),this.#e.source}get ports(){return be.brandCheck(this,t),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(e,r=!1,n=!1,s=null,o="",a="",c=null,l=[]){return be.brandCheck(this,t),be.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new t(e,{bubbles:r,cancelable:n,data:s,origin:o,lastEventId:a,source:c,ports:l})}static createFastMessageEvent(e,r){let n=new t(Dne,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:a4e}=jA;delete jA.createFastMessageEvent;var AS=class t extends Event{static{i(this,"CloseEvent")}#e;constructor(e,r={}){let n="CloseEvent constructor";be.argumentLengthCheck(arguments,1,n),e=be.converters.DOMString(e,n,"type"),r=be.converters.CloseEventInit(r),super(e,r),this.#e=r,be.util.markAsUncloneable(this)}get wasClean(){return be.brandCheck(this,t),this.#e.wasClean}get code(){return be.brandCheck(this,t),this.#e.code}get reason(){return be.brandCheck(this,t),this.#e.reason}},hS=class t extends Event{static{i(this,"ErrorEvent")}#e;constructor(e,r){let n="ErrorEvent constructor";be.argumentLengthCheck(arguments,1,n),super(e,r),be.util.markAsUncloneable(this),e=be.converters.DOMString(e,n,"type"),r=be.converters.ErrorEventInit(r??{}),this.#e=r}get message(){return be.brandCheck(this,t),this.#e.message}get filename(){return be.brandCheck(this,t),this.#e.filename}get lineno(){return be.brandCheck(this,t),this.#e.lineno}get colno(){return be.brandCheck(this,t),this.#e.colno}get error(){return be.brandCheck(this,t),this.#e.error}};Object.defineProperties(jA.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:$s,origin:$s,lastEventId:$s,source:$s,ports:$s,initMessageEvent:$s});Object.defineProperties(AS.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:$s,code:$s,wasClean:$s});Object.defineProperties(hS.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:$s,filename:$s,lineno:$s,colno:$s,error:$s});be.converters.MessagePort=be.interfaceConverter(i4e);be.converters["sequence"]=be.sequenceConverter(be.converters.MessagePort);var C1=[{key:"bubbles",converter:be.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:be.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:be.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}];be.converters.MessageEventInit=be.dictionaryConverter([...C1,{key:"data",converter:be.converters.any,defaultValue:i(()=>null,"defaultValue")},{key:"origin",converter:be.converters.USVString,defaultValue:i(()=>"","defaultValue")},{key:"lastEventId",converter:be.converters.DOMString,defaultValue:i(()=>"","defaultValue")},{key:"source",converter:be.nullableConverter(be.converters.MessagePort),defaultValue:i(()=>null,"defaultValue")},{key:"ports",converter:be.converters["sequence"],defaultValue:i(()=>new Array(0),"defaultValue")}]);be.converters.CloseEventInit=be.dictionaryConverter([...C1,{key:"wasClean",converter:be.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"code",converter:be.converters["unsigned short"],defaultValue:i(()=>0,"defaultValue")},{key:"reason",converter:be.converters.USVString,defaultValue:i(()=>"","defaultValue")}]);be.converters.ErrorEventInit=be.dictionaryConverter([...C1,{key:"message",converter:be.converters.DOMString,defaultValue:i(()=>"","defaultValue")},{key:"filename",converter:be.converters.USVString,defaultValue:i(()=>"","defaultValue")},{key:"lineno",converter:be.converters["unsigned long"],defaultValue:i(()=>0,"defaultValue")},{key:"colno",converter:be.converters["unsigned long"],defaultValue:i(()=>0,"defaultValue")},{key:"error",converter:be.converters.any}]);kne.exports={MessageEvent:jA,CloseEvent:AS,ErrorEvent:hS,createFastMessageEvent:a4e}});var im=b((R2t,Lne)=>{"use strict";var c4e="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",l4e={enumerable:!0,writable:!1,configurable:!1},u4e={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},d4e={NOT_SENT:0,PROCESSING:1,SENT:2},p4e={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},m4e=2**16-1,f4e={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},A4e=Buffer.allocUnsafe(0),h4e={string:1,typedArray:2,arrayBuffer:3,blob:4};Lne.exports={uid:c4e,sentCloseFrameState:d4e,staticPropertyDescriptors:l4e,states:u4e,opcodes:p4e,maxUnsigned16Bit:m4e,parserStates:f4e,emptyBuffer:A4e,sendHints:h4e}});var ME=b((N2t,One)=>{"use strict";One.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 qE=b((T2t,Vne)=>{"use strict";var{kReadyState:FE,kController:g4e,kResponse:y4e,kBinaryType:E4e,kWebSocketURL:C4e}=ME(),{states:UE,opcodes:id}=im(),{ErrorEvent:I4e,createFastMessageEvent:x4e}=JA(),{isUtf8:w4e}=require("node:buffer"),{collectASequenceOfCodePointsFast:b4e,removeHTTPWhitespace:Mne}=Ms();function S4e(t){return t[FE]===UE.CONNECTING}i(S4e,"isConnecting");function B4e(t){return t[FE]===UE.OPEN}i(B4e,"isEstablished");function R4e(t){return t[FE]===UE.CLOSING}i(R4e,"isClosing");function N4e(t){return t[FE]===UE.CLOSED}i(N4e,"isClosed");function I1(t,e,r=(s,o)=>new Event(s,o),n={}){let s=r(t,n);e.dispatchEvent(s)}i(I1,"fireEvent");function T4e(t,e,r){if(t[FE]!==UE.OPEN)return;let n;if(e===id.TEXT)try{n=zne(r)}catch{Une(t,"Received invalid UTF-8 in text frame.");return}else e===id.BINARY&&(t[E4e]==="blob"?n=new Blob([r]):n=P4e(r));I1("message",t,x4e,{origin:t[C4e].origin,data:n})}i(T4e,"websocketMessageReceived");function P4e(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}i(P4e,"toArrayBuffer");function v4e(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}i(v4e,"isValidSubprotocol");function _4e(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}i(_4e,"isValidStatusCode");function Une(t,e){let{[g4e]:r,[y4e]:n}=t;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&I1("error",t,(s,o)=>new I4e(s,o),{error:new Error(e),message:e})}i(Une,"failWebsocketConnection");function qne(t){return t===id.CLOSE||t===id.PING||t===id.PONG}i(qne,"isControlFrame");function $ne(t){return t===id.CONTINUATION}i($ne,"isContinuationFrame");function Gne(t){return t===id.TEXT||t===id.BINARY}i(Gne,"isTextBinaryFrame");function Q4e(t){return Gne(t)||$ne(t)||qne(t)}i(Q4e,"isValidOpcode");function D4e(t){let e={position:0},r=new Map;for(;e.position57)return!1}let e=Number.parseInt(t,10);return e>=8&&e<=15}i(k4e,"isValidClientWindowBits");var Hne=typeof process.versions.icu=="string",Fne=Hne?new TextDecoder("utf-8",{fatal:!0}):void 0,zne=Hne?Fne.decode.bind(Fne):function(t){if(w4e(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};Vne.exports={isConnecting:S4e,isEstablished:B4e,isClosing:R4e,isClosed:N4e,fireEvent:I1,isValidSubprotocol:v4e,isValidStatusCode:_4e,failWebsocketConnection:Une,websocketMessageReceived:T4e,utf8Decode:zne,isControlFrame:qne,isContinuationFrame:$ne,isTextBinaryFrame:Gne,isValidOpcode:Q4e,parseExtensions:D4e,isValidClientWindowBits:k4e}});var yS=b((v2t,Yne)=>{"use strict";var{maxUnsigned16Bit:L4e}=im(),gS=16386,x1,$E=null,KA=gS;try{x1=require("node:crypto")}catch{x1={randomFillSync:i(function(e,r,n){for(let s=0;sL4e?(a+=8,o=127):s>125&&(a+=2,o=126);let c=Buffer.allocUnsafe(s+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]=o,o===126?c.writeUInt16BE(s,2):o===127&&(c[2]=c[3]=0,c.writeUIntBE(s,4,6)),c[1]|=128;for(let l=0;l{"use strict";var{uid:M4e,states:GE,sentCloseFrameState:ES,emptyBuffer:F4e,opcodes:U4e}=im(),{kReadyState:HE,kSentClose:CS,kByteParser:jne,kReceivedClose:Wne,kResponse:Jne}=ME(),{fireEvent:q4e,failWebsocketConnection:ad,isClosing:$4e,isClosed:G4e,isEstablished:H4e,parseExtensions:z4e}=qE(),{channels:XA}=lA(),{CloseEvent:V4e}=JA(),{makeRequest:Y4e}=HA(),{fetching:W4e}=DE(),{Headers:j4e,getHeadersList:J4e}=em(),{getDecodeSplit:K4e}=yo(),{WebsocketFrameSend:X4e}=yS(),b1;try{b1=require("node:crypto")}catch{}function Z4e(t,e,r,n,s,o){let a=t;a.protocol=t.protocol==="ws:"?"http:":"https:";let c=Y4e({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){let p=J4e(new j4e(o.headers));c.headersList=p}let l=b1.randomBytes(16).toString("base64");c.headersList.append("sec-websocket-key",l),c.headersList.append("sec-websocket-version","13");for(let p of e)c.headersList.append("sec-websocket-protocol",p);return c.headersList.append("sec-websocket-extensions","permessage-deflate; client_max_window_bits"),W4e({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(p){if(p.type==="error"||p.status!==101){ad(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!p.headersList.get("Sec-WebSocket-Protocol")){ad(n,"Server did not respond with sent protocols.");return}if(p.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){ad(n,'Server did not set Upgrade header to "websocket".');return}if(p.headersList.get("Connection")?.toLowerCase()!=="upgrade"){ad(n,'Server did not set Connection header to "upgrade".');return}let m=p.headersList.get("Sec-WebSocket-Accept"),f=b1.createHash("sha1").update(l+M4e).digest("base64");if(m!==f){ad(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let g=p.headersList.get("Sec-WebSocket-Extensions"),E;if(g!==null&&(E=z4e(g),!E.has("permessage-deflate"))){ad(n,"Sec-WebSocket-Extensions header does not match.");return}let x=p.headersList.get("Sec-WebSocket-Protocol");if(x!==null&&!K4e("sec-websocket-protocol",c.headersList).includes(x)){ad(n,"Protocol was not set in the opening handshake.");return}p.socket.on("data",Kne),p.socket.on("close",Xne),p.socket.on("error",Zne),XA.open.hasSubscribers&&XA.open.publish({address:p.socket.address(),protocol:x,extensions:g}),s(p,E)}})}i(Z4e,"establishWebSocketConnection");function eYe(t,e,r,n){if(!($4e(t)||G4e(t)))if(!H4e(t))ad(t,"Connection was closed before it was established."),t[HE]=GE.CLOSING;else if(t[CS]===ES.NOT_SENT){t[CS]=ES.PROCESSING;let s=new X4e;e!==void 0&&r===void 0?(s.frameData=Buffer.allocUnsafe(2),s.frameData.writeUInt16BE(e,0)):e!==void 0&&r!==void 0?(s.frameData=Buffer.allocUnsafe(2+n),s.frameData.writeUInt16BE(e,0),s.frameData.write(r,2,"utf-8")):s.frameData=F4e,t[Jne].socket.write(s.createFrame(U4e.CLOSE)),t[CS]=ES.SENT,t[HE]=GE.CLOSING}else t[HE]=GE.CLOSING}i(eYe,"closeWebSocketConnection");function Kne(t){this.ws[jne].write(t)||this.pause()}i(Kne,"onSocketData");function Xne(){let{ws:t}=this,{[Jne]:e}=t;e.socket.off("data",Kne),e.socket.off("close",Xne),e.socket.off("error",Zne);let r=t[CS]===ES.SENT&&t[Wne],n=1005,s="",o=t[jne].closingInfo;o&&!o.error?(n=o.code??1005,s=o.reason):t[Wne]||(n=1006),t[HE]=GE.CLOSED,q4e("close",t,(a,c)=>new V4e(a,c),{wasClean:r,code:n,reason:s}),XA.close.hasSubscribers&&XA.close.publish({websocket:t,code:n,reason:s})}i(Xne,"onSocketClose");function Zne(t){let{ws:e}=this;e[HE]=GE.CLOSING,XA.socketError.hasSubscribers&&XA.socketError.publish(t),this.destroy()}i(Zne,"onSocketError");ese.exports={establishWebSocketConnection:Z4e,closeWebSocketConnection:eYe}});var rse=b((k2t,tse)=>{"use strict";var{createInflateRaw:tYe,Z_DEFAULT_WINDOWBITS:rYe}=require("node:zlib"),{isValidClientWindowBits:nYe}=qE(),{MessageSizeExceededError:sYe}=xt(),oYe=Buffer.from([0,0,255,255]),IS=Symbol("kBuffer"),zE=Symbol("kLength"),B1=class{static{i(this,"PerMessageDeflate")}#e;#t={};#r=0;constructor(e,r){this.#t.serverNoContextTakeover=e.has("server_no_context_takeover"),this.#t.serverMaxWindowBits=e.get("server_max_window_bits"),this.#r=r.maxPayloadSize}decompress(e,r,n){if(!this.#e){let s=rYe;if(this.#t.serverMaxWindowBits){if(!nYe(this.#t.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}s=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=tYe({windowBits:s})}catch(o){n(o);return}this.#e[IS]=[],this.#e[zE]=0,this.#e.on("data",o=>{if(this.#e[zE]+=o.length,this.#r>0&&this.#e[zE]>this.#r){n(new sYe),this.#e.removeAllListeners(),this.#e=null;return}this.#e[IS].push(o)}),this.#e.on("error",o=>{this.#e=null,n(o)})}this.#e.write(e),r&&this.#e.write(oYe),this.#e.flush(()=>{if(!this.#e)return;let s=Buffer.concat(this.#e[IS],this.#e[zE]);this.#e[IS].length=0,this.#e[zE]=0,n(null,s)})}};tse.exports={PerMessageDeflate:B1}});var pse=b((O2t,dse)=>{"use strict";var{Writable:iYe}=require("node:stream"),aYe=require("node:assert"),{parserStates:Gs,opcodes:ZA,states:cYe,emptyBuffer:nse,sentCloseFrameState:sse}=im(),{kReadyState:lYe,kSentClose:ose,kResponse:ise,kReceivedClose:ase}=ME(),{channels:xS}=lA(),{isValidStatusCode:uYe,isValidOpcode:dYe,failWebsocketConnection:Bo,websocketMessageReceived:cse,utf8Decode:pYe,isControlFrame:R1,isTextBinaryFrame:N1,isContinuationFrame:mYe}=qE(),{WebsocketFrameSend:lse}=yS(),{closeWebSocketConnection:use}=S1(),{PerMessageDeflate:fYe}=rse(),{MessageSizeExceededError:T1}=xt();function VE(t,e,r){use(t,e,r,Buffer.byteLength(r)),Bo(t,r)}i(VE,"failWebsocketConnectionWithCode");var P1=class extends iYe{static{i(this,"ByteParser")}#e=[];#t=0;#r=0;#o=!1;#s=Gs.INFO;#n={};#i=[];#a;#l;#c;constructor(e,r,n={}){super(),this.ws=e,this.#a=r??new Map,this.#l=n.maxFragments??0,this.#c=n.maxPayloadSize??0,this.#a.has("permessage-deflate")&&this.#a.set("permessage-deflate",new fYe(r,n))}_write(e,r,n){this.#e.push(e),this.#r+=e.length,this.#o=!0,this.run(n)}#u(){return this.#c>0&&!R1(this.#n.opcode)&&this.#n.payloadLength+this.#t>this.#c?(VE(this.ws,1009,"Payload size exceeds maximum allowed size"),!1):!0}run(e){for(;this.#o;)if(this.#s===Gs.INFO){if(this.#r<2)return e();let r=this.consume(2),n=(r[0]&128)!==0,s=r[0]&15,o=(r[1]&128)===128,a=!n&&s!==ZA.CONTINUATION,c=r[1]&127,l=r[0]&64,u=r[0]&32,d=r[0]&16;if(!dYe(s))return Bo(this.ws,"Invalid opcode received"),e();if(o)return Bo(this.ws,"Frame cannot be masked"),e();if(l!==0&&!this.#a.has("permessage-deflate")){Bo(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){Bo(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!N1(s)){Bo(this.ws,"Invalid frame type was fragmented.");return}if(N1(s)&&this.#i.length>0){Bo(this.ws,"Expected continuation frame");return}if(this.#n.fragmented&&a){Bo(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&R1(s)){Bo(this.ws,"Control frame either too large or fragmented");return}if(mYe(s)&&this.#i.length===0&&!this.#n.compressed){Bo(this.ws,"Unexpected continuation frame");return}if(c<=125){if(this.#n.payloadLength=c,this.#s=Gs.READ_DATA,!this.#u())return}else c===126?this.#s=Gs.PAYLOADLENGTH_16:c===127&&(this.#s=Gs.PAYLOADLENGTH_64);N1(s)&&(this.#n.binaryType=s,this.#n.compressed=l!==0),this.#n.opcode=s,this.#n.masked=o,this.#n.fin=n,this.#n.fragmented=a}else if(this.#s===Gs.PAYLOADLENGTH_16){if(this.#r<2)return e();let r=this.consume(2);if(this.#n.payloadLength=r.readUInt16BE(0),this.#s=Gs.READ_DATA,!this.#u())return}else if(this.#s===Gs.PAYLOADLENGTH_64){if(this.#r<8)return e();let r=this.consume(8),n=r.readUInt32BE(0),s=r.readUInt32BE(4);if(n!==0||s>2**31-1){Bo(this.ws,"Received payload length > 2^31 bytes.");return}if(this.#n.payloadLength=s,this.#s=Gs.READ_DATA,!this.#u())return}else if(this.#s===Gs.READ_DATA){if(this.#r{if(n){let o=n instanceof T1?1009:1007;VE(this.ws,o,n.message);return}if(this.writeFragments(s)){if(this.#c>0&&this.#t>this.#c){VE(this.ws,1009,new T1().message);return}if(!this.#n.fin){this.#s=Gs.INFO,this.#o=!0,this.run(e);return}cse(this.ws,this.#n.binaryType,this.consumeFragments()),this.#o=!0,this.#s=Gs.INFO,this.run(e)}}),this.#o=!1;break}else{if(!this.writeFragments(r))return;if(this.#c>0&&this.#t>this.#c){VE(this.ws,1009,new T1().message);return}!this.#n.fragmented&&this.#n.fin&&cse(this.ws,this.#n.binaryType,this.consumeFragments()),this.#s=Gs.INFO}}}consume(e){if(e>this.#r)throw new Error("Called consume() before buffers satiated.");if(e===0)return nse;if(this.#e[0].length===e)return this.#r-=this.#e[0].length,this.#e.shift();let r=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let s=this.#e[0],{length:o}=s;if(o+n===e){r.set(this.#e.shift(),n);break}else if(o+n>e){r.set(s.subarray(0,e-n),n),this.#e[0]=s.subarray(e-n);break}else r.set(this.#e.shift(),n),n+=s.length}return this.#r-=e,r}writeFragments(e){return this.#l>0&&this.#i.length===this.#l?(VE(this.ws,1008,"Too many message fragments"),!1):(this.#t+=e.length,this.#i.push(e),!0)}consumeFragments(){let e=this.#i;if(e.length===1)return this.#t=0,e.shift();let r=Buffer.concat(e,this.#t);return this.#i=[],this.#t=0,r}parseCloseBody(e){aYe(e.length!==1);let r;if(e.length>=2&&(r=e.readUInt16BE(0)),r!==void 0&&!uYe(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=pYe(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.#n;if(r===ZA.CLOSE){if(n===1)return Bo(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#n.closeInfo=this.parseCloseBody(e),this.#n.closeInfo.error){let{code:s,reason:o}=this.#n.closeInfo;return use(this.ws,s,o,o.length),Bo(this.ws,o),!1}if(this.ws[ose]!==sse.SENT){let s=nse;this.#n.closeInfo.code&&(s=Buffer.allocUnsafe(2),s.writeUInt16BE(this.#n.closeInfo.code,0));let o=new lse(s);this.ws[ise].socket.write(o.createFrame(ZA.CLOSE),a=>{a||(this.ws[ose]=sse.SENT)})}return this.ws[lYe]=cYe.CLOSING,this.ws[ase]=!0,!1}else if(r===ZA.PING){if(!this.ws[ase]){let s=new lse(e);this.ws[ise].socket.write(s.createFrame(ZA.PONG)),xS.ping.hasSubscribers&&xS.ping.publish({payload:e})}}else r===ZA.PONG&&xS.pong.hasSubscribers&&xS.pong.publish({payload:e});return!0}get closingInfo(){return this.#n.closeInfo}};dse.exports={ByteParser:P1}});var gse=b((F2t,hse)=>{"use strict";var{WebsocketFrameSend:AYe}=yS(),{opcodes:mse,sendHints:eh}=im(),hYe=MM(),fse=Buffer[Symbol.species],v1=class{static{i(this,"SendQueue")}#e=new hYe;#t=!1;#r;constructor(e){this.#r=e}add(e,r,n){if(n!==eh.blob){let o=Ase(e,n);if(!this.#t)this.#r.write(o,r);else{let a={promise:null,callback:r,frame:o};this.#e.push(a)}return}let s={promise:e.arrayBuffer().then(o=>{s.promise=null,s.frame=Ase(o,n)}),callback:r,frame:null};this.#e.push(s),this.#t||this.#o()}async#o(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let r=e.shift();r.promise!==null&&await r.promise,this.#r.write(r.frame,r.callback),r.callback=r.frame=null}this.#t=!1}};function Ase(t,e){return new AYe(gYe(t,e)).createFrame(e===eh.string?mse.TEXT:mse.BINARY)}i(Ase,"createFrame");function gYe(t,e){switch(e){case eh.string:return Buffer.from(t);case eh.arrayBuffer:case eh.blob:return new fse(t);case eh.typedArray:return new fse(t.buffer,t.byteOffset,t.byteLength)}}i(gYe,"toBuffer");hse.exports={SendQueue:v1}});var Rse=b((q2t,Bse)=>{"use strict";var{webidl:$e}=Nn(),{URLSerializer:yYe}=Ms(),{environmentSettingsObject:yse}=yo(),{staticPropertyDescriptors:cd,states:YE,sentCloseFrameState:EYe,sendHints:wS}=im(),{kWebSocketURL:Ese,kReadyState:_1,kController:Cse,kBinaryType:bS,kResponse:Ise,kSentClose:CYe,kByteParser:IYe}=ME(),{isConnecting:xYe,isEstablished:wYe,isClosing:bYe,isValidSubprotocol:SYe,fireEvent:xse}=qE(),{establishWebSocketConnection:BYe,closeWebSocketConnection:wse}=S1(),{ByteParser:RYe}=pse(),{kEnumerableProperty:ci,isBlobLike:bse}=ut(),{getGlobalDispatcher:NYe}=Fb(),{types:Sse}=require("node:util"),{ErrorEvent:TYe,CloseEvent:PYe}=JA(),{SendQueue:vYe}=gse(),Ro=class t extends EventTarget{static{i(this,"WebSocket")}#e={open:null,error:null,close:null,message:null};#t=0;#r="";#o="";#s;constructor(e,r=[]){super(),$e.util.markAsUncloneable(this);let n="WebSocket constructor";$e.argumentLengthCheck(arguments,1,n);let s=$e.converters["DOMString or sequence or WebSocketInit"](r,n,"options");e=$e.converters.USVString(e,n,"url"),r=s.protocols;let o=yse.settingsObject.baseUrl,a;try{a=new URL(e,o)}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=>SYe(l)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[Ese]=new URL(a.href);let c=yse.settingsObject;this[Cse]=BYe(a,r,c,this,(l,u)=>this.#n(l,u),s),this[_1]=t.CONNECTING,this[CYe]=EYe.NOT_SENT,this[bS]="blob"}close(e=void 0,r=void 0){$e.brandCheck(this,t);let n="WebSocket.close";if(e!==void 0&&(e=$e.converters["unsigned short"](e,n,"code",{clamp:!0})),r!==void 0&&(r=$e.converters.USVString(r,n,"reason")),e!==void 0&&e!==1e3&&(e<3e3||e>4999))throw new DOMException("invalid code","InvalidAccessError");let s=0;if(r!==void 0&&(s=Buffer.byteLength(r),s>123))throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError");wse(this,e,r,s)}send(e){$e.brandCheck(this,t);let r="WebSocket.send";if($e.argumentLengthCheck(arguments,1,r),e=$e.converters.WebSocketSendData(e,r,"data"),xYe(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!wYe(this)||bYe(this)))if(typeof e=="string"){let n=Buffer.byteLength(e);this.#t+=n,this.#s.add(e,()=>{this.#t-=n},wS.string)}else Sse.isArrayBuffer(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},wS.arrayBuffer)):ArrayBuffer.isView(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},wS.typedArray)):bse(e)&&(this.#t+=e.size,this.#s.add(e,()=>{this.#t-=e.size},wS.blob))}get readyState(){return $e.brandCheck(this,t),this[_1]}get bufferedAmount(){return $e.brandCheck(this,t),this.#t}get url(){return $e.brandCheck(this,t),yYe(this[Ese])}get extensions(){return $e.brandCheck(this,t),this.#o}get protocol(){return $e.brandCheck(this,t),this.#r}get onopen(){return $e.brandCheck(this,t),this.#e.open}set onopen(e){$e.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 $e.brandCheck(this,t),this.#e.error}set onerror(e){$e.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 $e.brandCheck(this,t),this.#e.close}set onclose(e){$e.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 $e.brandCheck(this,t),this.#e.message}set onmessage(e){$e.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 $e.brandCheck(this,t),this[bS]}set binaryType(e){$e.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[bS]="blob":this[bS]=e}#n(e,r){this[Ise]=e;let n=this[Cse]?.dispatcher?.webSocketOptions,s=n?.maxFragments,o=n?.maxPayloadSize,a=new RYe(this,r,{maxFragments:s,maxPayloadSize:o});a.on("drain",_Ye),a.on("error",QYe.bind(this)),e.socket.ws=this,this[IYe]=a,this.#s=new vYe(e.socket),this[_1]=YE.OPEN;let c=e.headersList.get("sec-websocket-extensions");c!==null&&(this.#o=c);let l=e.headersList.get("sec-websocket-protocol");l!==null&&(this.#r=l),xse("open",this)}};Ro.CONNECTING=Ro.prototype.CONNECTING=YE.CONNECTING;Ro.OPEN=Ro.prototype.OPEN=YE.OPEN;Ro.CLOSING=Ro.prototype.CLOSING=YE.CLOSING;Ro.CLOSED=Ro.prototype.CLOSED=YE.CLOSED;Object.defineProperties(Ro.prototype,{CONNECTING:cd,OPEN:cd,CLOSING:cd,CLOSED:cd,url:ci,readyState:ci,bufferedAmount:ci,onopen:ci,onerror:ci,onclose:ci,close:ci,onmessage:ci,binaryType:ci,send:ci,extensions:ci,protocol:ci,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(Ro,{CONNECTING:cd,OPEN:cd,CLOSING:cd,CLOSED:cd});$e.converters["sequence"]=$e.sequenceConverter($e.converters.DOMString);$e.converters["DOMString or sequence"]=function(t,e,r){return $e.util.Type(t)==="Object"&&Symbol.iterator in t?$e.converters["sequence"](t):$e.converters.DOMString(t,e,r)};$e.converters.WebSocketInit=$e.dictionaryConverter([{key:"protocols",converter:$e.converters["DOMString or sequence"],defaultValue:i(()=>new Array(0),"defaultValue")},{key:"dispatcher",converter:$e.converters.any,defaultValue:i(()=>NYe(),"defaultValue")},{key:"headers",converter:$e.nullableConverter($e.converters.HeadersInit)}]);$e.converters["DOMString or sequence or WebSocketInit"]=function(t){return $e.util.Type(t)==="Object"&&!(Symbol.iterator in t)?$e.converters.WebSocketInit(t):{protocols:$e.converters["DOMString or sequence"](t)}};$e.converters.WebSocketSendData=function(t){if($e.util.Type(t)==="Object"){if(bse(t))return $e.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Sse.isArrayBuffer(t))return $e.converters.BufferSource(t)}return $e.converters.USVString(t)};function _Ye(){this.ws[Ise].socket.resume()}i(_Ye,"onParserDrain");function QYe(t){let e,r;t instanceof PYe?(e=t.reason,r=t.code):e=t.message,xse("error",this,()=>new TYe("error",{error:t,message:e})),wse(this,r)}i(QYe,"onParserError");Bse.exports={WebSocket:Ro}});var Q1=b((G2t,Nse)=>{"use strict";function DYe(t){return t.indexOf("\0")===-1}i(DYe,"isValidLastEventId");function kYe(t){if(t.length===0)return!1;for(let e=0;e57)return!1;return!0}i(kYe,"isASCIINumber");function LYe(t){return new Promise(e=>{setTimeout(e,t).unref()})}i(LYe,"delay");Nse.exports={isValidLastEventId:DYe,isASCIINumber:kYe,delay:LYe}});var _se=b((z2t,vse)=>{"use strict";var{Transform:OYe}=require("node:stream"),{isASCIINumber:Tse,isValidLastEventId:Pse}=Q1(),$l=[239,187,191],D1=10,SS=13,MYe=58,FYe=32,k1=class extends OYe{static{i(this,"EventSourceStream")}state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0,super(e),this.state=e.eventSourceSettings||{},e.push&&(this.push=e.push)}_transform(e,r,n){if(e.length===0){n();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,e]):this.buffer=e,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===$l[0]){n();return}this.checkBOM=!1,n();return;case 2:if(this.buffer[0]===$l[0]&&this.buffer[1]===$l[1]){n();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===$l[0]&&this.buffer[1]===$l[1]&&this.buffer[2]===$l[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,n();return}this.checkBOM=!1;break;default:this.buffer[0]===$l[0]&&this.buffer[1]===$l[1]&&this.buffer[2]===$l[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos0&&(r[s]=o);break}}processEvent(e){e.retry&&Tse(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Pse(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,event:void 0,id:void 0,retry:void 0}}};vse.exports={EventSourceStream:k1}});var Use=b((Y2t,Fse)=>{"use strict";var{pipeline:UYe}=require("node:stream"),{fetching:qYe}=DE(),{makeRequest:$Ye}=HA(),{webidl:Gl}=Nn(),{EventSourceStream:GYe}=_se(),{parseMIMEType:HYe}=Ms(),{createFastMessageEvent:zYe}=JA(),{isNetworkError:Qse}=_E(),{delay:VYe}=Q1(),{kEnumerableProperty:am}=ut(),{environmentSettingsObject:Dse}=yo(),kse=!1,Lse=3e3,WE=0,Ose=1,jE=2,YYe="anonymous",WYe="use-credentials",th=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#r=!1;#o=WE;#s=null;#n=null;#i;#a;constructor(e,r={}){super(),Gl.util.markAsUncloneable(this);let n="EventSource constructor";Gl.argumentLengthCheck(arguments,1,n),kse||(kse=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Gl.converters.USVString(e,n,"url"),r=Gl.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#i=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Lse};let s=Dse,o;try{o=new URL(e,s.settingsObject.baseUrl),this.#a.origin=o.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=o.href;let a=YYe;r.withCredentials&&(a=WYe,this.#r=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Dse.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=$Ye(c),this.#l()}get readyState(){return this.#o}get url(){return this.#t}get withCredentials(){return this.#r}#l(){if(this.#o===jE)return;this.#o=WE;let e={request:this.#s,dispatcher:this.#i},r=i(n=>{Qse(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Qse(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),o=s!==null?HYe(s):"failure",a=o!=="failure"&&o.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#o=Ose,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new GYe({eventSourceSettings:this.#a,push:i(l=>{this.dispatchEvent(zYe(l.type,l.options))},"push")});UYe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=qYe(e)}async#c(){this.#o!==jE&&(this.#o=WE,this.dispatchEvent(new Event("error")),await VYe(this.#a.reconnectionTime),this.#o===WE&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){Gl.brandCheck(this,t),this.#o!==jE&&(this.#o=jE,this.#n.abort(),this.#s=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}},Mse={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:WE,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Ose,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:jE,writable:!1}};Object.defineProperties(th,Mse);Object.defineProperties(th.prototype,Mse);Object.defineProperties(th.prototype,{close:am,onerror:am,onmessage:am,onopen:am,readyState:am,url:am,withCredentials:am});Gl.converters.EventSourceInitDict=Gl.dictionaryConverter([{key:"withCredentials",converter:Gl.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"dispatcher",converter:Gl.converters.any}]);Fse.exports={EventSource:th,defaultReconnectionTime:Lse}});var nh=b((j2t,Ue)=>{"use strict";var jYe=TA(),qse=Xy(),JYe=PA(),KYe=MZ(),XYe=vA(),ZYe=sF(),eWe=cee(),tWe=fee(),$se=xt(),RS=ut(),{InvalidArgumentError:BS}=$se,rh=ete(),rWe=eE(),nWe=FF(),sWe=Lte(),oWe=$F(),iWe=BF(),aWe=Tb(),{getGlobalDispatcher:Gse,setGlobalDispatcher:cWe}=Fb(),lWe=Ub(),uWe=yb(),dWe=Eb();Object.assign(qse.prototype,rh);Ue.exports.Dispatcher=qse;Ue.exports.Client=jYe;Ue.exports.Pool=JYe;Ue.exports.BalancedPool=KYe;Ue.exports.Agent=XYe;Ue.exports.ProxyAgent=ZYe;Ue.exports.EnvHttpProxyAgent=eWe;Ue.exports.RetryAgent=tWe;Ue.exports.RetryHandler=aWe;Ue.exports.DecoratorHandler=lWe;Ue.exports.RedirectHandler=uWe;Ue.exports.createRedirectInterceptor=dWe;Ue.exports.interceptors={redirect:Gte(),retry:zte(),dump:Yte(),dns:Jte()};Ue.exports.buildConnector=rWe;Ue.exports.errors=$se;Ue.exports.util={parseHeaders:RS.parseHeaders,headerNameToString:RS.headerNameToString};function JE(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 BS("invalid url");if(r!=null&&typeof r!="object")throw new BS("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new BS("invalid opts.path");let a=r.path;r.path.startsWith("/")||(a=`/${a}`),e=new URL(RS.parseOrigin(e).origin+a)}else r||(r=typeof e=="object"?e:{}),e=RS.parseURL(e);let{agent:s,dispatcher:o=Gse()}=r;if(s)throw new BS("unsupported opts.agent. Did you mean opts.client?");return t.call(o,{...r,origin:e.origin,path:e.search?`${e.pathname}${e.search}`:e.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}i(JE,"makeDispatcher");Ue.exports.setGlobalDispatcher=cWe;Ue.exports.getGlobalDispatcher=Gse;var pWe=DE().fetch;Ue.exports.fetch=i(async function(e,r=void 0){try{return await pWe(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}},"fetch");Ue.exports.Headers=em().Headers;Ue.exports.Response=_E().Response;Ue.exports.Request=HA().Request;Ue.exports.FormData=aE().FormData;Ue.exports.File=globalThis.File??require("node:buffer").File;Ue.exports.FileReader=pne().FileReader;var{setGlobalOrigin:mWe,getGlobalOrigin:fWe}=oM();Ue.exports.setGlobalOrigin=mWe;Ue.exports.getGlobalOrigin=fWe;var{CacheStorage:AWe}=Ine(),{kConstruct:hWe}=aS();Ue.exports.caches=new AWe(hWe);var{deleteCookie:gWe,getCookies:yWe,getSetCookies:EWe,setCookie:CWe}=Qne();Ue.exports.deleteCookie=gWe;Ue.exports.getCookies=yWe;Ue.exports.getSetCookies=EWe;Ue.exports.setCookie=CWe;var{parseMIMEType:IWe,serializeAMimeType:xWe}=Ms();Ue.exports.parseMIMEType=IWe;Ue.exports.serializeAMimeType=xWe;var{CloseEvent:wWe,ErrorEvent:bWe,MessageEvent:SWe}=JA();Ue.exports.WebSocket=Rse().WebSocket;Ue.exports.CloseEvent=wWe;Ue.exports.ErrorEvent=bWe;Ue.exports.MessageEvent=SWe;Ue.exports.request=JE(rh.request);Ue.exports.stream=JE(rh.stream);Ue.exports.pipeline=JE(rh.pipeline);Ue.exports.connect=JE(rh.connect);Ue.exports.upgrade=JE(rh.upgrade);Ue.exports.MockClient=nWe;Ue.exports.MockPool=oWe;Ue.exports.MockAgent=sWe;Ue.exports.mockErrors=iWe;var{EventSource:BWe}=Use();Ue.exports.EventSource=BWe});var oC=b((b$t,woe)=>{"use strict";var YWe="2.0.0",WWe=Number.MAX_SAFE_INTEGER||9007199254740991,jWe=16,JWe=250,KWe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];woe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:jWe,MAX_SAFE_BUILD_LENGTH:JWe,MAX_SAFE_INTEGER:WWe,RELEASE_TYPES:KWe,SEMVER_SPEC_VERSION:YWe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var iC=b((S$t,boe)=>{"use strict";var XWe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};boe.exports=XWe});var ah=b((Za,Soe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:eU,MAX_SAFE_BUILD_LENGTH:ZWe,MAX_LENGTH:e8e}=oC(),t8e=iC();Za=Soe.exports={};var r8e=Za.re=[],n8e=Za.safeRe=[],ie=Za.src=[],s8e=Za.safeSrc=[],ae=Za.t={},o8e=0,tU="[a-zA-Z0-9-]",i8e=[["\\s",1],["\\d",e8e],[tU,ZWe]],a8e=i(t=>{for(let[e,r]of i8e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Xe=i((t,e,r)=>{let n=a8e(e),s=o8e++;t8e(t,s,e),ae[t]=s,ie[s]=e,s8e[s]=n,r8e[s]=new RegExp(e,r?"g":void 0),n8e[s]=new RegExp(n,r?"g":void 0)},"createToken");Xe("NUMERICIDENTIFIER","0|[1-9]\\d*");Xe("NUMERICIDENTIFIERLOOSE","\\d+");Xe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${tU}*`);Xe("MAINVERSION",`(${ie[ae.NUMERICIDENTIFIER]})\\.(${ie[ae.NUMERICIDENTIFIER]})\\.(${ie[ae.NUMERICIDENTIFIER]})`);Xe("MAINVERSIONLOOSE",`(${ie[ae.NUMERICIDENTIFIERLOOSE]})\\.(${ie[ae.NUMERICIDENTIFIERLOOSE]})\\.(${ie[ae.NUMERICIDENTIFIERLOOSE]})`);Xe("PRERELEASEIDENTIFIER",`(?:${ie[ae.NONNUMERICIDENTIFIER]}|${ie[ae.NUMERICIDENTIFIER]})`);Xe("PRERELEASEIDENTIFIERLOOSE",`(?:${ie[ae.NONNUMERICIDENTIFIER]}|${ie[ae.NUMERICIDENTIFIERLOOSE]})`);Xe("PRERELEASE",`(?:-(${ie[ae.PRERELEASEIDENTIFIER]}(?:\\.${ie[ae.PRERELEASEIDENTIFIER]})*))`);Xe("PRERELEASELOOSE",`(?:-?(${ie[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ie[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);Xe("BUILDIDENTIFIER",`${tU}+`);Xe("BUILD",`(?:\\+(${ie[ae.BUILDIDENTIFIER]}(?:\\.${ie[ae.BUILDIDENTIFIER]})*))`);Xe("FULLPLAIN",`v?${ie[ae.MAINVERSION]}${ie[ae.PRERELEASE]}?${ie[ae.BUILD]}?`);Xe("FULL",`^${ie[ae.FULLPLAIN]}$`);Xe("LOOSEPLAIN",`[v=\\s]*${ie[ae.MAINVERSIONLOOSE]}${ie[ae.PRERELEASELOOSE]}?${ie[ae.BUILD]}?`);Xe("LOOSE",`^${ie[ae.LOOSEPLAIN]}$`);Xe("GTLT","((?:<|>)?=?)");Xe("XRANGEIDENTIFIERLOOSE",`${ie[ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Xe("XRANGEIDENTIFIER",`${ie[ae.NUMERICIDENTIFIER]}|x|X|\\*`);Xe("XRANGEPLAIN",`[v=\\s]*(${ie[ae.XRANGEIDENTIFIER]})(?:\\.(${ie[ae.XRANGEIDENTIFIER]})(?:\\.(${ie[ae.XRANGEIDENTIFIER]})(?:${ie[ae.PRERELEASE]})?${ie[ae.BUILD]}?)?)?`);Xe("XRANGEPLAINLOOSE",`[v=\\s]*(${ie[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[ae.XRANGEIDENTIFIERLOOSE]})(?:${ie[ae.PRERELEASELOOSE]})?${ie[ae.BUILD]}?)?)?`);Xe("XRANGE",`^${ie[ae.GTLT]}\\s*${ie[ae.XRANGEPLAIN]}$`);Xe("XRANGELOOSE",`^${ie[ae.GTLT]}\\s*${ie[ae.XRANGEPLAINLOOSE]}$`);Xe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${eU}})(?:\\.(\\d{1,${eU}}))?(?:\\.(\\d{1,${eU}}))?`);Xe("COERCE",`${ie[ae.COERCEPLAIN]}(?:$|[^\\d])`);Xe("COERCEFULL",ie[ae.COERCEPLAIN]+`(?:${ie[ae.PRERELEASE]})?(?:${ie[ae.BUILD]})?(?:$|[^\\d])`);Xe("COERCERTL",ie[ae.COERCE],!0);Xe("COERCERTLFULL",ie[ae.COERCEFULL],!0);Xe("LONETILDE","(?:~>?)");Xe("TILDETRIM",`(\\s*)${ie[ae.LONETILDE]}\\s+`,!0);Za.tildeTrimReplace="$1~";Xe("TILDE",`^${ie[ae.LONETILDE]}${ie[ae.XRANGEPLAIN]}$`);Xe("TILDELOOSE",`^${ie[ae.LONETILDE]}${ie[ae.XRANGEPLAINLOOSE]}$`);Xe("LONECARET","(?:\\^)");Xe("CARETTRIM",`(\\s*)${ie[ae.LONECARET]}\\s+`,!0);Za.caretTrimReplace="$1^";Xe("CARET",`^${ie[ae.LONECARET]}${ie[ae.XRANGEPLAIN]}$`);Xe("CARETLOOSE",`^${ie[ae.LONECARET]}${ie[ae.XRANGEPLAINLOOSE]}$`);Xe("COMPARATORLOOSE",`^${ie[ae.GTLT]}\\s*(${ie[ae.LOOSEPLAIN]})$|^$`);Xe("COMPARATOR",`^${ie[ae.GTLT]}\\s*(${ie[ae.FULLPLAIN]})$|^$`);Xe("COMPARATORTRIM",`(\\s*)${ie[ae.GTLT]}\\s*(${ie[ae.LOOSEPLAIN]}|${ie[ae.XRANGEPLAIN]})`,!0);Za.comparatorTrimReplace="$1$2$3";Xe("HYPHENRANGE",`^\\s*(${ie[ae.XRANGEPLAIN]})\\s+-\\s+(${ie[ae.XRANGEPLAIN]})\\s*$`);Xe("HYPHENRANGELOOSE",`^\\s*(${ie[ae.XRANGEPLAINLOOSE]})\\s+-\\s+(${ie[ae.XRANGEPLAINLOOSE]})\\s*$`);Xe("STAR","(<|>)?=?\\s*\\*");Xe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Xe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var QS=b((R$t,Boe)=>{"use strict";var c8e=Object.freeze({loose:!0}),l8e=Object.freeze({}),u8e=i(t=>t?typeof t!="object"?c8e:t:l8e,"parseOptions");Boe.exports=u8e});var rU=b((T$t,Toe)=>{"use strict";var Roe=/^[0-9]+$/,Noe=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tNoe(e,t),"rcompareIdentifiers");Toe.exports={compareIdentifiers:Noe,rcompareIdentifiers:d8e}});var zn=b((v$t,voe)=>{"use strict";var DS=iC(),{MAX_LENGTH:Poe,MAX_SAFE_INTEGER:kS}=oC(),{safeRe:LS,t:OS}=ah(),p8e=QS(),{compareIdentifiers:nU}=rU(),sU=class t{static{i(this,"SemVer")}constructor(e,r){if(r=p8e(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>Poe)throw new TypeError(`version is longer than ${Poe} characters`);DS("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?LS[OS.LOOSE]:LS[OS.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>kS||this.major<0)throw new TypeError("Invalid major version");if(this.minor>kS||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>kS||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&oe.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],s=e.prerelease[r];if(DS("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return nU(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(DS("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return nU(n,s)}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 s=`-${r}`.match(this.options.loose?LS[OS.PRERELEASELOOSE]:LS[OS.PRERELEASE]);if(!s||s[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 s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];n===!1&&(o=[r]),nU(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};voe.exports=sU});var mm=b((Q$t,Qoe)=>{"use strict";var _oe=zn(),m8e=i((t,e,r=!1)=>{if(t instanceof _oe)return t;try{return new _oe(t,e)}catch(n){if(!r)return null;throw n}},"parse");Qoe.exports=m8e});var koe=b((k$t,Doe)=>{"use strict";var f8e=mm(),A8e=i((t,e)=>{let r=f8e(t,e);return r?r.version:null},"valid");Doe.exports=A8e});var Ooe=b((O$t,Loe)=>{"use strict";var h8e=mm(),g8e=i((t,e)=>{let r=h8e(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Loe.exports=g8e});var Uoe=b((F$t,Foe)=>{"use strict";var Moe=zn(),y8e=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Moe(t instanceof Moe?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Foe.exports=y8e});var Goe=b((q$t,$oe)=>{"use strict";var qoe=mm(),E8e=i((t,e)=>{let r=qoe(t,null,!0),n=qoe(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?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");$oe.exports=E8e});var zoe=b((G$t,Hoe)=>{"use strict";var C8e=zn(),I8e=i((t,e)=>new C8e(t,e).major,"major");Hoe.exports=I8e});var Yoe=b((z$t,Voe)=>{"use strict";var x8e=zn(),w8e=i((t,e)=>new x8e(t,e).minor,"minor");Voe.exports=w8e});var joe=b((Y$t,Woe)=>{"use strict";var b8e=zn(),S8e=i((t,e)=>new b8e(t,e).patch,"patch");Woe.exports=S8e});var Koe=b((j$t,Joe)=>{"use strict";var B8e=mm(),R8e=i((t,e)=>{let r=B8e(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Joe.exports=R8e});var li=b((K$t,Zoe)=>{"use strict";var Xoe=zn(),N8e=i((t,e,r)=>new Xoe(t,r).compare(new Xoe(e,r)),"compare");Zoe.exports=N8e});var tie=b((Z$t,eie)=>{"use strict";var T8e=li(),P8e=i((t,e,r)=>T8e(e,t,r),"rcompare");eie.exports=P8e});var nie=b((tGt,rie)=>{"use strict";var v8e=li(),_8e=i((t,e)=>v8e(t,e,!0),"compareLoose");rie.exports=_8e});var MS=b((nGt,oie)=>{"use strict";var sie=zn(),Q8e=i((t,e,r)=>{let n=new sie(t,r),s=new sie(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");oie.exports=Q8e});var aie=b((oGt,iie)=>{"use strict";var D8e=MS(),k8e=i((t,e)=>t.sort((r,n)=>D8e(r,n,e)),"sort");iie.exports=k8e});var lie=b((aGt,cie)=>{"use strict";var L8e=MS(),O8e=i((t,e)=>t.sort((r,n)=>L8e(n,r,e)),"rsort");cie.exports=O8e});var aC=b((lGt,uie)=>{"use strict";var M8e=li(),F8e=i((t,e,r)=>M8e(t,e,r)>0,"gt");uie.exports=F8e});var FS=b((dGt,die)=>{"use strict";var U8e=li(),q8e=i((t,e,r)=>U8e(t,e,r)<0,"lt");die.exports=q8e});var oU=b((mGt,pie)=>{"use strict";var $8e=li(),G8e=i((t,e,r)=>$8e(t,e,r)===0,"eq");pie.exports=G8e});var iU=b((AGt,mie)=>{"use strict";var H8e=li(),z8e=i((t,e,r)=>H8e(t,e,r)!==0,"neq");mie.exports=z8e});var US=b((gGt,fie)=>{"use strict";var V8e=li(),Y8e=i((t,e,r)=>V8e(t,e,r)>=0,"gte");fie.exports=Y8e});var qS=b((EGt,Aie)=>{"use strict";var W8e=li(),j8e=i((t,e,r)=>W8e(t,e,r)<=0,"lte");Aie.exports=j8e});var aU=b((IGt,hie)=>{"use strict";var J8e=oU(),K8e=iU(),X8e=aC(),Z8e=US(),eje=FS(),tje=qS(),rje=i((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 J8e(t,r,n);case"!=":return K8e(t,r,n);case">":return X8e(t,r,n);case">=":return Z8e(t,r,n);case"<":return eje(t,r,n);case"<=":return tje(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");hie.exports=rje});var yie=b((wGt,gie)=>{"use strict";var nje=zn(),sje=mm(),{safeRe:$S,t:GS}=ah(),oje=i((t,e)=>{if(t instanceof nje)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?$S[GS.COERCEFULL]:$S[GS.COERCE]);else{let l=e.includePrerelease?$S[GS.COERCERTLFULL]:$S[GS.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],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return sje(`${n}.${s}.${o}${a}${c}`,e)},"coerce");gie.exports=oje});var Cie=b((SGt,Eie)=>{"use strict";var cU=class{static{i(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 s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};Eie.exports=cU});var ui=b((RGt,bie)=>{"use strict";var ije=/\s+/g,lU=class t{static{i(this,"Range")}constructor(e,r){if(r=cje(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(ije," "),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(s=>!xie(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Aje(s[0])){this.set=[s];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&&mje)|(this.options.loose&&fje))+":"+e,s=Iie.get(n);if(s)return s;let o=this.options.loose,a=o?As[Vn.HYPHENRANGELOOSE]:As[Vn.HYPHENRANGE];e=e.replace(a,Sje(this.options.includePrerelease)),Wt("hyphen replace",e),e=e.replace(As[Vn.COMPARATORTRIM],uje),Wt("comparator trim",e),e=e.replace(As[Vn.TILDETRIM],dje),Wt("tilde trim",e),e=e.replace(As[Vn.CARETTRIM],pje),Wt("caret trim",e);let c=e.split(" ").map(p=>hje(p,this.options)).join(" ").split(/\s+/).map(p=>bje(p,this.options));o&&(c=c.filter(p=>(Wt("loose invalid filter",p,this.options),!!p.match(As[Vn.COMPARATORLOOSE])))),Wt("range list",c);let l=new Map,u=c.map(p=>new uU(p,this.options));for(let p of u){if(xie(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Iie.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>wie(n,r)&&e.set.some(s=>wie(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new lje(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),Aje=i(t=>t.value==="","isAny"),wie=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),hje=i((t,e)=>(t=t.replace(As[Vn.BUILD],""),Wt("comp",t,e),t=Eje(t,e),Wt("caret",t),t=gje(t,e),Wt("tildes",t),t=Ije(t,e),Wt("xrange",t),t=wje(t,e),Wt("stars",t),t),"parseComparator"),hs=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),gje=i((t,e)=>t.trim().split(/\s+/).map(r=>yje(r,e)).join(" "),"replaceTildes"),yje=i((t,e)=>{let r=e.loose?As[Vn.TILDELOOSE]:As[Vn.TILDE];return t.replace(r,(n,s,o,a,c)=>{Wt("tilde",t,n,s,o,a,c);let l;return hs(s)?l="":hs(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:hs(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(Wt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,Wt("tilde return",l),l})},"replaceTilde"),Eje=i((t,e)=>t.trim().split(/\s+/).map(r=>Cje(r,e)).join(" "),"replaceCarets"),Cje=i((t,e)=>{Wt("caret",t,e);let r=e.loose?As[Vn.CARETLOOSE]:As[Vn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Wt("caret",t,s,o,a,c,l);let u;return hs(o)?u="":hs(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:hs(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Wt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Wt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Wt("caret return",u),u})},"replaceCaret"),Ije=i((t,e)=>(Wt("replaceXRanges",t,e),t.split(/\s+/).map(r=>xje(r,e)).join(" ")),"replaceXRanges"),xje=i((t,e)=>{t=t.trim();let r=e.loose?As[Vn.XRANGELOOSE]:As[Vn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{Wt("xRange",t,n,s,o,a,c,l);let u=hs(o),d=u||hs(a),p=d||hs(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Wt("xRange return",n),n})},"replaceXRange"),wje=i((t,e)=>(Wt("replaceStars",t,e),t.trim().replace(As[Vn.STAR],"")),"replaceStars"),bje=i((t,e)=>(Wt("replaceGTE0",t,e),t.trim().replace(As[e.includePrerelease?Vn.GTE0PRE:Vn.GTE0],"")),"replaceGTE0"),Sje=i(t=>(e,r,n,s,o,a,c,l,u,d,p,m)=>(hs(n)?r="":hs(s)?r=`>=${n}.0.0${t?"-0":""}`:hs(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,hs(u)?l="":hs(d)?l=`<${+u+1}.0.0-0`:hs(p)?l=`<${u}.${+d+1}.0-0`:m?l=`<=${u}.${d}.${p}-${m}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),Bje=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var cC=b((TGt,Pie)=>{"use strict";var lC=Symbol("SemVer ANY"),mU=class t{static{i(this,"Comparator")}static get ANY(){return lC}constructor(e,r){if(r=Sie(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),pU("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===lC?this.value="":this.value=this.operator+this.semver.version,pU("comp",this)}parse(e){let r=this.options.loose?Bie[Rie.COMPARATORLOOSE]:Bie[Rie.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 Nie(n[2],this.options.loose):this.semver=lC}toString(){return this.value}test(e){if(pU("Comparator.test",e,this.options.loose),this.semver===lC||e===lC)return!0;if(typeof e=="string")try{e=new Nie(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 Tie(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Tie(this.value,r).test(e.semver):(r=Sie(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(">")))}};Pie.exports=mU;var Sie=QS(),{safeRe:Bie,t:Rie}=ah(),dU=aU(),pU=iC(),Nie=zn(),Tie=ui()});var uC=b((vGt,vie)=>{"use strict";var Rje=ui(),Nje=i((t,e,r)=>{try{e=new Rje(e,r)}catch{return!1}return e.test(t)},"satisfies");vie.exports=Nje});var Qie=b((QGt,_ie)=>{"use strict";var Tje=ui(),Pje=i((t,e)=>new Tje(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");_ie.exports=Pje});var kie=b((kGt,Die)=>{"use strict";var vje=zn(),_je=ui(),Qje=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new _je(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new vje(n,r))}),n},"maxSatisfying");Die.exports=Qje});var Oie=b((OGt,Lie)=>{"use strict";var Dje=zn(),kje=ui(),Lje=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new kje(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Dje(n,r))}),n},"minSatisfying");Lie.exports=Lje});var Uie=b((FGt,Fie)=>{"use strict";var fU=zn(),Oje=ui(),Mie=aC(),Mje=i((t,e)=>{t=new Oje(t,e);let r=new fU("0.0.0");if(t.test(r)||(r=new fU("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new fU(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Mie(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Mie(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");Fie.exports=Mje});var $ie=b((qGt,qie)=>{"use strict";var Fje=ui(),Uje=i((t,e)=>{try{return new Fje(t,e).range||"*"}catch{return null}},"validRange");qie.exports=Uje});var HS=b((GGt,Vie)=>{"use strict";var qje=zn(),zie=cC(),{ANY:$je}=zie,Gje=ui(),Hje=uC(),Gie=aC(),Hie=FS(),zje=qS(),Vje=US(),Yje=i((t,e,r,n)=>{t=new qje(t,n),e=new Gje(e,n);let s,o,a,c,l;switch(r){case">":s=Gie,o=zje,a=Hie,c=">",l=">=";break;case"<":s=Hie,o=Vje,a=Gie,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Hje(t,e,n))return!1;for(let u=0;u{f.semver===$je&&(f=new zie(">=0.0.0")),p=p||f,m=m||f,s(f.semver,p.semver,n)?p=f:a(f.semver,m.semver,n)&&(m=f)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(t,m.semver))return!1;if(m.operator===l&&a(t,m.semver))return!1}return!0},"outside");Vie.exports=Yje});var Wie=b((zGt,Yie)=>{"use strict";var Wje=HS(),jje=i((t,e,r)=>Wje(t,e,">",r),"gtr");Yie.exports=jje});var Jie=b((YGt,jie)=>{"use strict";var Jje=HS(),Kje=i((t,e,r)=>Jje(t,e,"<",r),"ltr");jie.exports=Kje});var Zie=b((jGt,Xie)=>{"use strict";var Kie=ui(),Xje=i((t,e,r)=>(t=new Kie(t,r),e=new Kie(e,r),t.intersects(e,r)),"intersects");Xie.exports=Xje});var tae=b((KGt,eae)=>{"use strict";var Zje=uC(),eJe=li();eae.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>eJe(d,p,r));for(let d of a)Zje(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var rae=ui(),hU=cC(),{ANY:AU}=hU,dC=uC(),gU=li(),tJe=i((t,e,r={})=>{if(t===e)return!0;t=new rae(t,r),e=new rae(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=nJe(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),rJe=[new hU(">=0.0.0-0")],nae=[new hU(">=0.0.0")],nJe=i((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=rJe:t=nae}if(e.length===1&&e[0].semver===AU){if(r.includePrerelease)return!0;e=nae}let n=new Set,s,o;for(let f of t)f.operator===">"||f.operator===">="?s=sae(s,f,r):f.operator==="<"||f.operator==="<="?o=oae(o,f,r):n.add(f.semver);if(n.size>1)return null;let a;if(s&&o){if(a=gU(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let f of n){if(s&&!dC(f,String(s),r)||o&&!dC(f,String(o),r))return null;for(let g of e)if(!dC(f,String(g),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",u=u||f.operator==="<"||f.operator==="<=",s){if(m&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===m.major&&f.semver.minor===m.minor&&f.semver.patch===m.patch&&(m=!1),f.operator===">"||f.operator===">="){if(c=sae(s,f,r),c===f&&c!==s)return!1}else if(s.operator===">="&&!dC(s.semver,String(f),r))return!1}if(o){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(l=oae(o,f,r),l===f&&l!==o)return!1}else if(o.operator==="<="&&!dC(o.semver,String(f),r))return!1}if(!f.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||m||p)},"simpleSubset"),sae=i((t,e,r)=>{if(!t)return e;let n=gU(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),oae=i((t,e,r)=>{if(!t)return e;let n=gU(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");iae.exports=tJe});var EU=b((eHt,uae)=>{"use strict";var yU=ah(),cae=oC(),sJe=zn(),lae=rU(),oJe=mm(),iJe=koe(),aJe=Ooe(),cJe=Uoe(),lJe=Goe(),uJe=zoe(),dJe=Yoe(),pJe=joe(),mJe=Koe(),fJe=li(),AJe=tie(),hJe=nie(),gJe=MS(),yJe=aie(),EJe=lie(),CJe=aC(),IJe=FS(),xJe=oU(),wJe=iU(),bJe=US(),SJe=qS(),BJe=aU(),RJe=yie(),NJe=cC(),TJe=ui(),PJe=uC(),vJe=Qie(),_Je=kie(),QJe=Oie(),DJe=Uie(),kJe=$ie(),LJe=HS(),OJe=Wie(),MJe=Jie(),FJe=Zie(),UJe=tae(),qJe=aae();uae.exports={parse:oJe,valid:iJe,clean:aJe,inc:cJe,diff:lJe,major:uJe,minor:dJe,patch:pJe,prerelease:mJe,compare:fJe,rcompare:AJe,compareLoose:hJe,compareBuild:gJe,sort:yJe,rsort:EJe,gt:CJe,lt:IJe,eq:xJe,neq:wJe,gte:bJe,lte:SJe,cmp:BJe,coerce:RJe,Comparator:NJe,Range:TJe,satisfies:PJe,toComparators:vJe,maxSatisfying:_Je,minSatisfying:QJe,minVersion:DJe,validRange:kJe,outside:LJe,gtr:OJe,ltr:MJe,intersects:FJe,simplifyRange:UJe,subset:qJe,SemVer:sJe,re:yU.re,src:yU.src,tokens:yU.t,SEMVER_SPEC_VERSION:cae.SEMVER_SPEC_VERSION,RELEASE_TYPES:cae.RELEASE_TYPES,compareIdentifiers:lae.compareIdentifiers,rcompareIdentifiers:lae.rcompareIdentifiers}});var Sae=b((ozt,bae)=>{bae.exports=function(t,e){for(var r=[],n=0;n{"use strict";Tae.exports=Rae;function Rae(t,e,r){t instanceof RegExp&&(t=Bae(t,r)),e instanceof RegExp&&(e=Bae(e,r));var n=Nae(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)}}i(Rae,"balanced");function Bae(t,e){var r=e.match(t);return r?r[0]:null}i(Bae,"maybeMatch");Rae.range=Nae;function Nae(t,e,r){var n,s,o,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=[],o=r.length;d>=0&&!c;)d==l?(n.push(d),l=r.indexOf(t,d+1)):n.length==1?c=[n.pop(),u]:(s=n.pop(),s=0?l:u;n.length&&(c=[o,a])}return c}i(Nae,"range")});var Mae=b((czt,Oae)=>{var s5e=Sae(),vae=Pae();Oae.exports=a5e;var _ae="\0SLASH"+Math.random()+"\0",Qae="\0OPEN"+Math.random()+"\0",PU="\0CLOSE"+Math.random()+"\0",Dae="\0COMMA"+Math.random()+"\0",kae="\0PERIOD"+Math.random()+"\0";function TU(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}i(TU,"numeric");function o5e(t){return t.split("\\\\").join(_ae).split("\\{").join(Qae).split("\\}").join(PU).split("\\,").join(Dae).split("\\.").join(kae)}i(o5e,"escapeBraces");function i5e(t){return t.split(_ae).join("\\").split(Qae).join("{").split(PU).join("}").split(Dae).join(",").split(kae).join(".")}i(i5e,"unescapeBraces");function Lae(t){if(!t)return[""];var e=[],r=vae("{","}",t);if(!r)return t.split(",");var n=r.pre,s=r.body,o=r.post,a=n.split(",");a[a.length-1]+="{"+s+"}";var c=Lae(o);return o.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}i(Lae,"parseCommaParts");function a5e(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),lh(o5e(t),!0).map(i5e)):[]}i(a5e,"expandTop");function c5e(t){return"{"+t+"}"}i(c5e,"embrace");function l5e(t){return/^-?0\d/.test(t)}i(l5e,"isPadded");function u5e(t,e){return t<=e}i(u5e,"lte");function d5e(t,e){return t>=e}i(d5e,"gte");function lh(t,e){var r=[],n=vae("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),a=s||o,c=n.body.indexOf(",")>=0;if(!a&&!c)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+PU+n.post,lh(t)):[t];var l;if(a)l=n.body.split(/\.\./);else if(l=Lae(n.body),l.length===1&&(l=lh(l[0],!1).map(c5e),l.length===1)){var d=n.post.length?lh(n.post,!1):[""];return d.map(function(oe){return n.pre+l[0]+oe})}var u=n.pre,d=n.post.length?lh(n.post,!1):[""],p;if(a){var m=TU(l[0]),f=TU(l[1]),g=Math.max(l[0].length,l[1].length),E=l.length==3?Math.max(Math.abs(TU(l[2])),1):1,x=u5e,w=f0){var M=new Array(q+1).join("0");P<0?Q="-"+M+Q.slice(1):Q=M+Q}}p.push(Q)}}else p=s5e(l,function(Re){return lh(Re,!1)});for(var V=0;V{Gae.exports=Po;Po.Minimatch=Jr;var hC=(function(){try{return require("path")}catch{}})()||{sep:"/"};Po.sep=hC.sep;var fm=Po.GLOBSTAR=Jr.GLOBSTAR={},p5e=Mae(),Fae={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},vU="[^/]",_U=vU+"*?",m5e="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f5e="(?:(?!(?:\\/|^)\\.).)*?",Uae=A5e("().*{}+?[]^$\\!");function A5e(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}i(A5e,"charSet");var qae=/\/+/;Po.filter=h5e;function h5e(t,e){return e=e||{},function(r,n,s){return Po(r,t,e)}}i(h5e,"filter");function fd(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(n){r[n]=t[n]}),Object.keys(e).forEach(function(n){r[n]=e[n]}),r}i(fd,"ext");Po.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return Po;var e=Po,r=i(function(s,o,a){return e(s,o,fd(t,a))},"minimatch");return r.Minimatch=i(function(s,o){return new e.Minimatch(s,fd(t,o))},"Minimatch"),r.Minimatch.defaults=i(function(s){return e.defaults(fd(t,s)).Minimatch},"defaults"),r.filter=i(function(s,o){return e.filter(s,fd(t,o))},"filter"),r.defaults=i(function(s){return e.defaults(fd(t,s))},"defaults"),r.makeRe=i(function(s,o){return e.makeRe(s,fd(t,o))},"makeRe"),r.braceExpand=i(function(s,o){return e.braceExpand(s,fd(t,o))},"braceExpand"),r.match=function(n,s,o){return e.match(n,s,fd(t,o))},r};Jr.defaults=function(t){return Po.defaults(t).Minimatch};function Po(t,e,r){return jS(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new Jr(e,r).match(t)}i(Po,"minimatch");function Jr(t,e){if(!(this instanceof Jr))return new Jr(t,e);jS(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&hC.sep!=="/"&&(t=t.split(hC.sep).join("/")),this.options=e,this.maxGlobstarRecursion=e.maxGlobstarRecursion!==void 0?e.maxGlobstarRecursion:200,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}i(Jr,"Minimatch");Jr.prototype.debug=function(){};Jr.prototype.make=g5e;function g5e(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=i(function(){console.error.apply(console,arguments)},"debug")),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(qae)}),this.debug(this.pattern,r),r=r.map(function(n,s,o){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}i(g5e,"make");Jr.prototype.parseNegate=y5e;function y5e(){var t=this.pattern,e=!1,r=this.options,n=0;if(!r.nonegate){for(var s=0,o=t.length;s"u"?this.pattern:t,jS(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:p5e(t)}i($ae,"braceExpand");var E5e=1024*64,jS=i(function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>E5e)throw new TypeError("pattern is too long")},"assertValidPattern");Jr.prototype.parse=C5e;var WS={};function C5e(t,e){jS(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return fm;if(t==="")return"";var n="",s=!!r.nocase,o=!1,a=[],c=[],l,u=!1,d=-1,p=-1,m=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",f=this;function g(){if(l){switch(l){case"*":n+=_U,s=!0;break;case"?":n+=vU,s=!0;break;default:n+="\\"+l;break}f.debug("clearStateChar %j %j",l,n),l=!1}}i(g,"clearStateChar");for(var E=0,x=t.length,w;E-1;pe--){var Le=c[pe],Re=n.slice(0,Le.reStart),oe=n.slice(Le.reStart,Le.reEnd-8),ye=n.slice(Le.reEnd-8,Le.reEnd),H=n.slice(Le.reEnd);ye+=H;var ne=Re.split("(").length-1,It=H;for(E=0;E"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;hC.sep!=="/"&&(e=e.split(hC.sep).join("/")),e=e.split(qae),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var o,a;for(a=e.length-1;a>=0&&(o=e[a],!o);a--);for(a=0;a=0;o--)if(e[o]===fm){c=o;break}var l=e.slice(s,a),u=r?e.slice(a+1):e.slice(a+1,c),d=r?[]:e.slice(c+1);if(l.length){var p=t.slice(n,n+l.length);if(!this._matchOne(p,l,r,0,0))return!1;n+=l.length}var m=0;if(d.length){if(d.length+n>t.length)return!1;var f=t.length-d.length;if(this._matchOne(t,d,r,f,0))m=d.length;else{if(t[t.length-1]!==""||n+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;m=d.length+1}}if(!u.length){var g=!!m;for(o=n;o{"use strict";var v5e="2.0.0",_5e=Number.MAX_SAFE_INTEGER||9007199254740991,Q5e=16,D5e=250,k5e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Wae.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Q5e,MAX_SAFE_BUILD_LENGTH:D5e,MAX_SAFE_INTEGER:_5e,RELEASE_TYPES:k5e,SEMVER_SPEC_VERSION:v5e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var EC=b((Qzt,jae)=>{"use strict";var L5e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};jae.exports=L5e});var fh=b((ec,Jae)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:DU,MAX_SAFE_BUILD_LENGTH:O5e,MAX_LENGTH:M5e}=mh(),F5e=EC();ec=Jae.exports={};var U5e=ec.re=[],q5e=ec.safeRe=[],ce=ec.src=[],$5e=ec.safeSrc=[],le=ec.t={},G5e=0,kU="[a-zA-Z0-9-]",H5e=[["\\s",1],["\\d",M5e],[kU,O5e]],z5e=i(t=>{for(let[e,r]of H5e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ze=i((t,e,r)=>{let n=z5e(e),s=G5e++;F5e(t,s,e),le[t]=s,ce[s]=e,$5e[s]=n,U5e[s]=new RegExp(e,r?"g":void 0),q5e[s]=new RegExp(n,r?"g":void 0)},"createToken");Ze("NUMERICIDENTIFIER","0|[1-9]\\d*");Ze("NUMERICIDENTIFIERLOOSE","\\d+");Ze("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${kU}*`);Ze("MAINVERSION",`(${ce[le.NUMERICIDENTIFIER]})\\.(${ce[le.NUMERICIDENTIFIER]})\\.(${ce[le.NUMERICIDENTIFIER]})`);Ze("MAINVERSIONLOOSE",`(${ce[le.NUMERICIDENTIFIERLOOSE]})\\.(${ce[le.NUMERICIDENTIFIERLOOSE]})\\.(${ce[le.NUMERICIDENTIFIERLOOSE]})`);Ze("PRERELEASEIDENTIFIER",`(?:${ce[le.NONNUMERICIDENTIFIER]}|${ce[le.NUMERICIDENTIFIER]})`);Ze("PRERELEASEIDENTIFIERLOOSE",`(?:${ce[le.NONNUMERICIDENTIFIER]}|${ce[le.NUMERICIDENTIFIERLOOSE]})`);Ze("PRERELEASE",`(?:-(${ce[le.PRERELEASEIDENTIFIER]}(?:\\.${ce[le.PRERELEASEIDENTIFIER]})*))`);Ze("PRERELEASELOOSE",`(?:-?(${ce[le.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ce[le.PRERELEASEIDENTIFIERLOOSE]})*))`);Ze("BUILDIDENTIFIER",`${kU}+`);Ze("BUILD",`(?:\\+(${ce[le.BUILDIDENTIFIER]}(?:\\.${ce[le.BUILDIDENTIFIER]})*))`);Ze("FULLPLAIN",`v?${ce[le.MAINVERSION]}${ce[le.PRERELEASE]}?${ce[le.BUILD]}?`);Ze("FULL",`^${ce[le.FULLPLAIN]}$`);Ze("LOOSEPLAIN",`[v=\\s]*${ce[le.MAINVERSIONLOOSE]}${ce[le.PRERELEASELOOSE]}?${ce[le.BUILD]}?`);Ze("LOOSE",`^${ce[le.LOOSEPLAIN]}$`);Ze("GTLT","((?:<|>)?=?)");Ze("XRANGEIDENTIFIERLOOSE",`${ce[le.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ze("XRANGEIDENTIFIER",`${ce[le.NUMERICIDENTIFIER]}|x|X|\\*`);Ze("XRANGEPLAIN",`[v=\\s]*(${ce[le.XRANGEIDENTIFIER]})(?:\\.(${ce[le.XRANGEIDENTIFIER]})(?:\\.(${ce[le.XRANGEIDENTIFIER]})(?:${ce[le.PRERELEASE]})?${ce[le.BUILD]}?)?)?`);Ze("XRANGEPLAINLOOSE",`[v=\\s]*(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:${ce[le.PRERELEASELOOSE]})?${ce[le.BUILD]}?)?)?`);Ze("XRANGE",`^${ce[le.GTLT]}\\s*${ce[le.XRANGEPLAIN]}$`);Ze("XRANGELOOSE",`^${ce[le.GTLT]}\\s*${ce[le.XRANGEPLAINLOOSE]}$`);Ze("COERCEPLAIN",`(^|[^\\d])(\\d{1,${DU}})(?:\\.(\\d{1,${DU}}))?(?:\\.(\\d{1,${DU}}))?`);Ze("COERCE",`${ce[le.COERCEPLAIN]}(?:$|[^\\d])`);Ze("COERCEFULL",ce[le.COERCEPLAIN]+`(?:${ce[le.PRERELEASE]})?(?:${ce[le.BUILD]})?(?:$|[^\\d])`);Ze("COERCERTL",ce[le.COERCE],!0);Ze("COERCERTLFULL",ce[le.COERCEFULL],!0);Ze("LONETILDE","(?:~>?)");Ze("TILDETRIM",`(\\s*)${ce[le.LONETILDE]}\\s+`,!0);ec.tildeTrimReplace="$1~";Ze("TILDE",`^${ce[le.LONETILDE]}${ce[le.XRANGEPLAIN]}$`);Ze("TILDELOOSE",`^${ce[le.LONETILDE]}${ce[le.XRANGEPLAINLOOSE]}$`);Ze("LONECARET","(?:\\^)");Ze("CARETTRIM",`(\\s*)${ce[le.LONECARET]}\\s+`,!0);ec.caretTrimReplace="$1^";Ze("CARET",`^${ce[le.LONECARET]}${ce[le.XRANGEPLAIN]}$`);Ze("CARETLOOSE",`^${ce[le.LONECARET]}${ce[le.XRANGEPLAINLOOSE]}$`);Ze("COMPARATORLOOSE",`^${ce[le.GTLT]}\\s*(${ce[le.LOOSEPLAIN]})$|^$`);Ze("COMPARATOR",`^${ce[le.GTLT]}\\s*(${ce[le.FULLPLAIN]})$|^$`);Ze("COMPARATORTRIM",`(\\s*)${ce[le.GTLT]}\\s*(${ce[le.LOOSEPLAIN]}|${ce[le.XRANGEPLAIN]})`,!0);ec.comparatorTrimReplace="$1$2$3";Ze("HYPHENRANGE",`^\\s*(${ce[le.XRANGEPLAIN]})\\s+-\\s+(${ce[le.XRANGEPLAIN]})\\s*$`);Ze("HYPHENRANGELOOSE",`^\\s*(${ce[le.XRANGEPLAINLOOSE]})\\s+-\\s+(${ce[le.XRANGEPLAINLOOSE]})\\s*$`);Ze("STAR","(<|>)?=?\\s*\\*");Ze("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ze("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var XS=b((kzt,Kae)=>{"use strict";var V5e=Object.freeze({loose:!0}),Y5e=Object.freeze({}),W5e=i(t=>t?typeof t!="object"?V5e:t:Y5e,"parseOptions");Kae.exports=W5e});var LU=b((Ozt,ece)=>{"use strict";var Xae=/^[0-9]+$/,Zae=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tZae(e,t),"rcompareIdentifiers");ece.exports={compareIdentifiers:Zae,rcompareIdentifiers:j5e}});var Tn=b((Fzt,rce)=>{"use strict";var ZS=EC(),{MAX_LENGTH:tce,MAX_SAFE_INTEGER:eB}=mh(),{safeRe:tB,t:rB}=fh(),J5e=XS(),{compareIdentifiers:OU}=LU(),MU=class t{static{i(this,"SemVer")}constructor(e,r){if(r=J5e(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>tce)throw new TypeError(`version is longer than ${tce} characters`);ZS("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?tB[rB.LOOSE]:tB[rB.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>eB||this.major<0)throw new TypeError("Invalid major version");if(this.minor>eB||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>eB||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&oe.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],s=e.prerelease[r];if(ZS("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return OU(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(ZS("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return OU(n,s)}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 s=`-${r}`.match(this.options.loose?tB[rB.PRERELEASELOOSE]:tB[rB.PRERELEASE]);if(!s||s[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 s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];n===!1&&(o=[r]),OU(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};rce.exports=MU});var gd=b((qzt,sce)=>{"use strict";var nce=Tn(),K5e=i((t,e,r=!1)=>{if(t instanceof nce)return t;try{return new nce(t,e)}catch(n){if(!r)return null;throw n}},"parse");sce.exports=K5e});var ice=b((Gzt,oce)=>{"use strict";var X5e=gd(),Z5e=i((t,e)=>{let r=X5e(t,e);return r?r.version:null},"valid");oce.exports=Z5e});var cce=b((zzt,ace)=>{"use strict";var e6e=gd(),t6e=i((t,e)=>{let r=e6e(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");ace.exports=t6e});var dce=b((Yzt,uce)=>{"use strict";var lce=Tn(),r6e=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new lce(t instanceof lce?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");uce.exports=r6e});var fce=b((jzt,mce)=>{"use strict";var pce=gd(),n6e=i((t,e)=>{let r=pce(t,null,!0),n=pce(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?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");mce.exports=n6e});var hce=b((Kzt,Ace)=>{"use strict";var s6e=Tn(),o6e=i((t,e)=>new s6e(t,e).major,"major");Ace.exports=o6e});var yce=b((Zzt,gce)=>{"use strict";var i6e=Tn(),a6e=i((t,e)=>new i6e(t,e).minor,"minor");gce.exports=a6e});var Cce=b((t3t,Ece)=>{"use strict";var c6e=Tn(),l6e=i((t,e)=>new c6e(t,e).patch,"patch");Ece.exports=l6e});var xce=b((n3t,Ice)=>{"use strict";var u6e=gd(),d6e=i((t,e)=>{let r=u6e(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Ice.exports=d6e});var mi=b((o3t,bce)=>{"use strict";var wce=Tn(),p6e=i((t,e,r)=>new wce(t,r).compare(new wce(e,r)),"compare");bce.exports=p6e});var Bce=b((a3t,Sce)=>{"use strict";var m6e=mi(),f6e=i((t,e,r)=>m6e(e,t,r),"rcompare");Sce.exports=f6e});var Nce=b((l3t,Rce)=>{"use strict";var A6e=mi(),h6e=i((t,e)=>A6e(t,e,!0),"compareLoose");Rce.exports=h6e});var nB=b((d3t,Pce)=>{"use strict";var Tce=Tn(),g6e=i((t,e,r)=>{let n=new Tce(t,r),s=new Tce(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Pce.exports=g6e});var _ce=b((m3t,vce)=>{"use strict";var y6e=nB(),E6e=i((t,e)=>t.sort((r,n)=>y6e(r,n,e)),"sort");vce.exports=E6e});var Dce=b((A3t,Qce)=>{"use strict";var C6e=nB(),I6e=i((t,e)=>t.sort((r,n)=>C6e(n,r,e)),"rsort");Qce.exports=I6e});var CC=b((g3t,kce)=>{"use strict";var x6e=mi(),w6e=i((t,e,r)=>x6e(t,e,r)>0,"gt");kce.exports=w6e});var sB=b((E3t,Lce)=>{"use strict";var b6e=mi(),S6e=i((t,e,r)=>b6e(t,e,r)<0,"lt");Lce.exports=S6e});var FU=b((I3t,Oce)=>{"use strict";var B6e=mi(),R6e=i((t,e,r)=>B6e(t,e,r)===0,"eq");Oce.exports=R6e});var UU=b((w3t,Mce)=>{"use strict";var N6e=mi(),T6e=i((t,e,r)=>N6e(t,e,r)!==0,"neq");Mce.exports=T6e});var oB=b((S3t,Fce)=>{"use strict";var P6e=mi(),v6e=i((t,e,r)=>P6e(t,e,r)>=0,"gte");Fce.exports=v6e});var iB=b((R3t,Uce)=>{"use strict";var _6e=mi(),Q6e=i((t,e,r)=>_6e(t,e,r)<=0,"lte");Uce.exports=Q6e});var qU=b((T3t,qce)=>{"use strict";var D6e=FU(),k6e=UU(),L6e=CC(),O6e=oB(),M6e=sB(),F6e=iB(),U6e=i((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 D6e(t,r,n);case"!=":return k6e(t,r,n);case">":return L6e(t,r,n);case">=":return O6e(t,r,n);case"<":return M6e(t,r,n);case"<=":return F6e(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");qce.exports=U6e});var Gce=b((v3t,$ce)=>{"use strict";var q6e=Tn(),$6e=gd(),{safeRe:aB,t:cB}=fh(),G6e=i((t,e)=>{if(t instanceof q6e)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?aB[cB.COERCEFULL]:aB[cB.COERCE]);else{let l=e.includePrerelease?aB[cB.COERCERTLFULL]:aB[cB.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],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return $6e(`${n}.${s}.${o}${a}${c}`,e)},"coerce");$ce.exports=G6e});var zce=b((Q3t,Hce)=>{"use strict";var H6e=gd(),z6e=mh(),V6e=Tn(),Y6e=i((t,e,r)=>{if(!z6e.RELEASE_TYPES.includes(e))return null;let n=W6e(t,r);return n&&j6e(n,e)},"truncate"),W6e=i((t,e)=>{let r=t instanceof V6e?t.version:t;return H6e(r,e)},"cloneInputVersion"),j6e=i((t,e)=>{if(J6e(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"),J6e=i(t=>t.startsWith("pre"),"isPrerelease");Hce.exports=Y6e});var Yce=b((k3t,Vce)=>{"use strict";var $U=class{static{i(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 s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};Vce.exports=$U});var fi=b((O3t,Kce)=>{"use strict";var K6e=/\s+/g,GU=class t{static{i(this,"Range")}constructor(e,r){if(r=Z6e(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof HU)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(K6e," "),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(s=>!jce(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&c9e(s[0])){this.set=[s];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(a9e,"");let n=((this.options.includePrerelease&&o9e)|(this.options.loose&&i9e))+":"+e,s=Wce.get(n);if(s)return s;let o=this.options.loose,a=o?gs[Pn.HYPHENRANGELOOSE]:gs[Pn.HYPHENRANGE];e=e.replace(a,y9e(this.options.includePrerelease)),jt("hyphen replace",e),e=e.replace(gs[Pn.COMPARATORTRIM],r9e),jt("comparator trim",e),e=e.replace(gs[Pn.TILDETRIM],n9e),jt("tilde trim",e),e=e.replace(gs[Pn.CARETTRIM],s9e),jt("caret trim",e);let c=e.split(" ").map(p=>l9e(p,this.options)).join(" ").split(/\s+/).map(p=>g9e(p,this.options));o&&(c=c.filter(p=>(jt("loose invalid filter",p,this.options),!!p.match(gs[Pn.COMPARATORLOOSE])))),jt("range list",c);let l=new Map,u=c.map(p=>new HU(p,this.options));for(let p of u){if(jce(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Wce.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Jce(n,r)&&e.set.some(s=>Jce(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new e9e(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),c9e=i(t=>t.value==="","isAny"),Jce=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),l9e=i((t,e)=>(t=t.replace(gs[Pn.BUILD],""),jt("comp",t,e),t=p9e(t,e),jt("caret",t),t=u9e(t,e),jt("tildes",t),t=f9e(t,e),jt("xrange",t),t=h9e(t,e),jt("stars",t),t),"parseComparator"),ys=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),u9e=i((t,e)=>t.trim().split(/\s+/).map(r=>d9e(r,e)).join(" "),"replaceTildes"),d9e=i((t,e)=>{let r=e.loose?gs[Pn.TILDELOOSE]:gs[Pn.TILDE];return t.replace(r,(n,s,o,a,c)=>{jt("tilde",t,n,s,o,a,c);let l;return ys(s)?l="":ys(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:ys(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(jt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,jt("tilde return",l),l})},"replaceTilde"),p9e=i((t,e)=>t.trim().split(/\s+/).map(r=>m9e(r,e)).join(" "),"replaceCarets"),m9e=i((t,e)=>{jt("caret",t,e);let r=e.loose?gs[Pn.CARETLOOSE]:gs[Pn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{jt("caret",t,s,o,a,c,l);let u;return ys(o)?u="":ys(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:ys(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(jt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(jt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),jt("caret return",u),u})},"replaceCaret"),f9e=i((t,e)=>(jt("replaceXRanges",t,e),t.split(/\s+/).map(r=>A9e(r,e)).join(" ")),"replaceXRanges"),A9e=i((t,e)=>{t=t.trim();let r=e.loose?gs[Pn.XRANGELOOSE]:gs[Pn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{jt("xRange",t,n,s,o,a,c,l);let u=ys(o),d=u||ys(a),p=d||ys(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),jt("xRange return",n),n})},"replaceXRange"),h9e=i((t,e)=>(jt("replaceStars",t,e),t.trim().replace(gs[Pn.STAR],"")),"replaceStars"),g9e=i((t,e)=>(jt("replaceGTE0",t,e),t.trim().replace(gs[e.includePrerelease?Pn.GTE0PRE:Pn.GTE0],"")),"replaceGTE0"),y9e=i(t=>(e,r,n,s,o,a,c,l,u,d,p,m)=>(ys(n)?r="":ys(s)?r=`>=${n}.0.0${t?"-0":""}`:ys(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,ys(u)?l="":ys(d)?l=`<${+u+1}.0.0-0`:ys(p)?l=`<${u}.${+d+1}.0-0`:m?l=`<=${u}.${d}.${p}-${m}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),E9e=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var IC=b((F3t,nle)=>{"use strict";var xC=Symbol("SemVer ANY"),YU=class t{static{i(this,"Comparator")}static get ANY(){return xC}constructor(e,r){if(r=Xce(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),VU("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===xC?this.value="":this.value=this.operator+this.semver.version,VU("comp",this)}parse(e){let r=this.options.loose?Zce[ele.COMPARATORLOOSE]:Zce[ele.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=xC}toString(){return this.value}test(e){if(VU("Comparator.test",e,this.options.loose),this.semver===xC||e===xC)return!0;if(typeof e=="string")try{e=new tle(e,this.options)}catch{return!1}return zU(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 rle(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new rle(this.value,r).test(e.semver):(r=Xce(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("=")||zU(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||zU(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};nle.exports=YU;var Xce=XS(),{safeRe:Zce,t:ele}=fh(),zU=qU(),VU=EC(),tle=Tn(),rle=fi()});var wC=b((q3t,sle)=>{"use strict";var C9e=fi(),I9e=i((t,e,r)=>{try{e=new C9e(e,r)}catch{return!1}return e.test(t)},"satisfies");sle.exports=I9e});var ile=b((G3t,ole)=>{"use strict";var x9e=fi(),w9e=i((t,e)=>new x9e(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");ole.exports=w9e});var cle=b((z3t,ale)=>{"use strict";var b9e=Tn(),S9e=fi(),B9e=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new S9e(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new b9e(n,r))}),n},"maxSatisfying");ale.exports=B9e});var ule=b((Y3t,lle)=>{"use strict";var R9e=Tn(),N9e=fi(),T9e=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new N9e(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new R9e(n,r))}),n},"minSatisfying");lle.exports=T9e});var mle=b((j3t,ple)=>{"use strict";var WU=Tn(),P9e=fi(),dle=CC(),v9e=i((t,e)=>{t=new P9e(t,e);let r=new WU("0.0.0");if(t.test(r)||(r=new WU("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new WU(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||dle(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||dle(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");ple.exports=v9e});var Ale=b((K3t,fle)=>{"use strict";var _9e=fi(),Q9e=i((t,e)=>{try{return new _9e(t,e).range||"*"}catch{return null}},"validRange");fle.exports=Q9e});var lB=b((Z3t,Ele)=>{"use strict";var D9e=Tn(),yle=IC(),{ANY:k9e}=yle,L9e=fi(),O9e=wC(),hle=CC(),gle=sB(),M9e=iB(),F9e=oB(),U9e=i((t,e,r,n)=>{t=new D9e(t,n),e=new L9e(e,n);let s,o,a,c,l;switch(r){case">":s=hle,o=M9e,a=gle,c=">",l=">=";break;case"<":s=gle,o=F9e,a=hle,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(O9e(t,e,n))return!1;for(let u=0;u{f.semver===k9e&&(f=new yle(">=0.0.0")),p=p||f,m=m||f,s(f.semver,p.semver,n)?p=f:a(f.semver,m.semver,n)&&(m=f)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(t,m.semver))return!1;if(m.operator===l&&a(t,m.semver))return!1}return!0},"outside");Ele.exports=U9e});var Ile=b((tVt,Cle)=>{"use strict";var q9e=lB(),$9e=i((t,e,r)=>q9e(t,e,">",r),"gtr");Cle.exports=$9e});var wle=b((nVt,xle)=>{"use strict";var G9e=lB(),H9e=i((t,e,r)=>G9e(t,e,"<",r),"ltr");xle.exports=H9e});var Ble=b((oVt,Sle)=>{"use strict";var ble=fi(),z9e=i((t,e,r)=>(t=new ble(t,r),e=new ble(e,r),t.intersects(e,r)),"intersects");Sle.exports=z9e});var Nle=b((aVt,Rle)=>{"use strict";var V9e=wC(),Y9e=mi();Rle.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>Y9e(d,p,r));for(let d of a)V9e(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var Tle=fi(),KU=IC(),{ANY:jU}=KU,JU=wC(),XU=mi(),W9e=i((t,e,r={})=>{if(t===e)return!0;t=new Tle(t,r),e=new Tle(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=J9e(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),j9e=[new KU(">=0.0.0-0")],Ple=[new KU(">=0.0.0")],J9e=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===jU){if(e.length===1&&e[0].semver===jU)return!0;r.includePrerelease?t=j9e:t=Ple}if(e.length===1&&e[0].semver===jU){if(r.includePrerelease)return!0;e=Ple}let n=new Set,s,o;for(let f of t)f.operator===">"||f.operator===">="?s=vle(s,f,r):f.operator==="<"||f.operator==="<="?o=_le(o,f,r):n.add(f.semver);if(n.size>1)return null;let a;if(s&&o){if(a=XU(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let f of n){if(s&&!JU(f,String(s),r)||o&&!JU(f,String(o),r))return null;for(let g of e)if(!JU(f,String(g),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",u=u||f.operator==="<"||f.operator==="<=",s){if(m&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===m.major&&f.semver.minor===m.minor&&f.semver.patch===m.patch&&(m=!1),f.operator===">"||f.operator===">="){if(c=vle(s,f,r),c===f&&c!==s)return!1}else if(s.operator===">="&&!f.test(s.semver))return!1}if(o){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(l=_le(o,f,r),l===f&&l!==o)return!1}else if(o.operator==="<="&&!f.test(o.semver))return!1}if(!f.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||m||p)},"simpleSubset"),vle=i((t,e,r)=>{if(!t)return e;let n=XU(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),_le=i((t,e,r)=>{if(!t)return e;let n=XU(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Qle.exports=W9e});var Mle=b((uVt,Ole)=>{"use strict";var ZU=fh(),kle=mh(),K9e=Tn(),Lle=LU(),X9e=gd(),Z9e=ice(),eKe=cce(),tKe=dce(),rKe=fce(),nKe=hce(),sKe=yce(),oKe=Cce(),iKe=xce(),aKe=mi(),cKe=Bce(),lKe=Nce(),uKe=nB(),dKe=_ce(),pKe=Dce(),mKe=CC(),fKe=sB(),AKe=FU(),hKe=UU(),gKe=oB(),yKe=iB(),EKe=qU(),CKe=Gce(),IKe=zce(),xKe=IC(),wKe=fi(),bKe=wC(),SKe=ile(),BKe=cle(),RKe=ule(),NKe=mle(),TKe=Ale(),PKe=lB(),vKe=Ile(),_Ke=wle(),QKe=Ble(),DKe=Nle(),kKe=Dle();Ole.exports={parse:X9e,valid:Z9e,clean:eKe,inc:tKe,diff:rKe,major:nKe,minor:sKe,patch:oKe,prerelease:iKe,compare:aKe,rcompare:cKe,compareLoose:lKe,compareBuild:uKe,sort:dKe,rsort:pKe,gt:mKe,lt:fKe,eq:AKe,neq:hKe,gte:gKe,lte:yKe,cmp:EKe,coerce:CKe,truncate:IKe,Comparator:xKe,Range:wKe,satisfies:bKe,toComparators:SKe,maxSatisfying:BKe,minSatisfying:RKe,minVersion:NKe,validRange:TKe,outside:PKe,gtr:vKe,ltr:_Ke,intersects:QKe,simplifyRange:DKe,subset:kKe,SemVer:K9e,re:ZU.re,src:ZU.src,tokens:ZU.t,SEMVER_SPEC_VERSION:kle.SEMVER_SPEC_VERSION,RELEASE_TYPES:kle.RELEASE_TYPES,compareIdentifiers:Lle.compareIdentifiers,rcompareIdentifiers:Lle.rcompareIdentifiers}});var Bue=b((AYt,Sue)=>{var Ih=1e3,xh=Ih*60,wh=xh*60,wm=wh*24,gXe=wm*7,yXe=wm*365.25;Sue.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return EXe(t);if(r==="number"&&isFinite(t))return e.long?IXe(t):CXe(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function EXe(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*gXe;case"days":case"day":case"d":return r*wm;case"hours":case"hour":case"hrs":case"hr":case"h":return r*wh;case"minutes":case"minute":case"mins":case"min":case"m":return r*xh;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ih;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(EXe,"parse");function CXe(t){var e=Math.abs(t);return e>=wm?Math.round(t/wm)+"d":e>=wh?Math.round(t/wh)+"h":e>=xh?Math.round(t/xh)+"m":e>=Ih?Math.round(t/Ih)+"s":t+"ms"}i(CXe,"fmtShort");function IXe(t){var e=Math.abs(t);return e>=wm?DB(t,e,wm,"day"):e>=wh?DB(t,e,wh,"hour"):e>=xh?DB(t,e,xh,"minute"):e>=Ih?DB(t,e,Ih,"second"):t+" ms"}i(IXe,"fmtLong");function DB(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}i(DB,"plural")});var b2=b((gYt,Rue)=>{function xXe(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=s,r.enabled=a,r.humanize=Bue(),r.destroy=u,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let p=0;for(let m=0;m{if(M==="%%")return"%";Q++;let pe=r.formatters[V];if(typeof pe=="function"){let Le=x[Q];M=pe.call(w,Le),x.splice(Q,1),Q--}return M}),r.formatArgs.call(w,x),(w.log||r.log).apply(w,x)}return i(E,"debug"),E.namespace=d,E.useColors=r.useColors(),E.color=r.selectColor(d),E.extend=n,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:i(()=>m!==null?m:(f!==r.namespaces&&(f=r.namespaces,g=r.enabled(d)),g),"get"),set:i(x=>{m=x},"set")}),typeof r.init=="function"&&r.init(E),E}i(r,"createDebug");function n(d,p){let m=r(this.namespace+(typeof p>"u"?":":p)+d);return m.log=this.log,m}i(n,"extend");function s(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let p,m=(typeof d=="string"?d:"").split(/[\s,]+/),f=m.length;for(p=0;p"-"+p)].join(",");return r.enable(""),d}i(o,"disable");function a(d){if(d[d.length-1]==="*")return!0;let p,m;for(p=0,m=r.skips.length;p{Qo.formatArgs=bXe;Qo.save=SXe;Qo.load=BXe;Qo.useColors=wXe;Qo.storage=RXe();Qo.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`."))}})();Qo.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 wXe(){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+)/)}i(wXe,"useColors");function bXe(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+kB.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,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}i(bXe,"formatArgs");Qo.log=console.debug||console.log||(()=>{});function SXe(t){try{t?Qo.storage.setItem("debug",t):Qo.storage.removeItem("debug")}catch{}}i(SXe,"save");function BXe(){let t;try{t=Qo.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}i(BXe,"load");function RXe(){try{return localStorage}catch{}}i(RXe,"localstorage");kB.exports=b2()(Qo);var{formatters:NXe}=kB.exports;NXe.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Pue=b((CYt,Tue)=>{"use strict";Tue.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n{"use strict";var TXe=require("os"),vue=require("tty"),hi=Pue(),{env:gn}=process,Cd;hi("no-color")||hi("no-colors")||hi("color=false")||hi("color=never")?Cd=0:(hi("color")||hi("colors")||hi("color=true")||hi("color=always"))&&(Cd=1);"FORCE_COLOR"in gn&&(gn.FORCE_COLOR==="true"?Cd=1:gn.FORCE_COLOR==="false"?Cd=0:Cd=gn.FORCE_COLOR.length===0?1:Math.min(parseInt(gn.FORCE_COLOR,10),3));function S2(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}i(S2,"translateLevel");function B2(t,e){if(Cd===0)return 0;if(hi("color=16m")||hi("color=full")||hi("color=truecolor"))return 3;if(hi("color=256"))return 2;if(t&&!e&&Cd===void 0)return 0;let r=Cd||0;if(gn.TERM==="dumb")return r;if(process.platform==="win32"){let n=TXe.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in gn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in gn)||gn.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in gn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(gn.TEAMCITY_VERSION)?1:0;if(gn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in gn){let n=parseInt((gn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(gn.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(gn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(gn.TERM)||"COLORTERM"in gn?1:r}i(B2,"supportsColor");function PXe(t){let e=B2(t,t&&t.isTTY);return S2(e)}i(PXe,"getSupportLevel");_ue.exports={supportsColor:PXe,stdout:S2(B2(!0,vue.isatty(1))),stderr:S2(B2(!0,vue.isatty(2)))}});var kue=b((vn,OB)=>{var vXe=require("tty"),LB=require("util");vn.init=MXe;vn.log=kXe;vn.formatArgs=QXe;vn.save=LXe;vn.load=OXe;vn.useColors=_Xe;vn.destroy=LB.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=Que();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,(s,o)=>o.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 _Xe(){return"colors"in vn.inspectOpts?!!vn.inspectOpts.colors:vXe.isatty(process.stderr.fd)}i(_Xe,"useColors");function QXe(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} \x1B[0m`;t[0]=o+t[0].split(` `).join(` -`+o),t.push(s+"m+"+QB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=RXe()+e+" "+t[0]}i(BXe,"formatArgs");function RXe(){return Pn.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(RXe,"getDate");function NXe(...t){return process.stderr.write(_B.format(...t)+` -`)}i(NXe,"log");function TXe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(TXe,"save");function PXe(){return process.env.DEBUG}i(PXe,"load");function vXe(t){t.inspectOpts={};let e=Object.keys(Pn.inspectOpts);for(let r=0;re.trim()).join(" ")};xue.O=function(t){return this.inspectOpts.colors=this.useColors,_B.inspect(t,this.inspectOpts)}});var Im=b((gYt,C2)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?C2.exports=hue():C2.exports=wue()});var Bue=b(Vs=>{"use strict";var _Xe=Vs&&Vs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),QXe=Vs&&Vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bue=Vs&&Vs.__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)&&_Xe(e,t,r);return QXe(e,t),e};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.req=Vs.json=Vs.toBuffer=void 0;var DXe=bue(require("http")),kXe=bue(require("https"));async function Sue(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Sue,"toBuffer");Vs.toBuffer=Sue;async function LXe(t){let r=(await Sue(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(LXe,"json");Vs.json=LXe;function OXe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?kXe:DXe).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(OXe,"req");Vs.req=OXe});var Pue=b(_o=>{"use strict";var Nue=_o&&_o.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),MXe=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tue=_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)&&Nue(e,t,r);return MXe(e,t),e},FXe=_o&&_o.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Nue(e,t,r)};Object.defineProperty(_o,"__esModule",{value:!0});_o.Agent=void 0;var UXe=Tue(require("net")),Rue=Tue(require("http")),qXe=require("https");FXe(Bue(),_o);var sc=Symbol("AgentBaseInternalState"),I2=class extends Rue.Agent{static{i(this,"Agent")}constructor(e){super(e),this[sc]={}}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 UXe.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],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?qXe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),c instanceof Rue.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[sc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[sc].currentSocket;if(this[sc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[sc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[sc]&&(this[sc].defaultPort=e)}get protocol(){return this[sc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[sc]&&(this[sc].protocol=e)}};_o.Agent=I2});var vue=b(Ih=>{"use strict";var $Xe=Ih&&Ih.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ih,"__esModule",{value:!0});Ih.parseProxyResponse=void 0;var GXe=$Xe(Im()),DB=(0,GXe.default)("https-proxy-agent:parse-proxy-response");function HXe(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),DB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),DB("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),m=p.indexOf(`\r +`+o),t.push(s+"m+"+OB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=DXe()+e+" "+t[0]}i(QXe,"formatArgs");function DXe(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(DXe,"getDate");function kXe(...t){return process.stderr.write(LB.format(...t)+` +`)}i(kXe,"log");function LXe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(LXe,"save");function OXe(){return process.env.DEBUG}i(OXe,"load");function MXe(t){t.inspectOpts={};let e=Object.keys(vn.inspectOpts);for(let r=0;re.trim()).join(" ")};Due.O=function(t){return this.inspectOpts.colors=this.useColors,LB.inspect(t,this.inspectOpts)}});var bm=b((bYt,R2)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?R2.exports=Nue():R2.exports=kue()});var Mue=b(Ys=>{"use strict";var FXe=Ys&&Ys.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),UXe=Ys&&Ys.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Lue=Ys&&Ys.__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)&&FXe(e,t,r);return UXe(e,t),e};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.req=Ys.json=Ys.toBuffer=void 0;var qXe=Lue(require("http")),$Xe=Lue(require("https"));async function Oue(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Oue,"toBuffer");Ys.toBuffer=Oue;async function GXe(t){let r=(await Oue(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(GXe,"json");Ys.json=GXe;function HXe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?$Xe:qXe).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(HXe,"req");Ys.req=HXe});var $ue=b(Do=>{"use strict";var Uue=Do&&Do.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zXe=Do&&Do.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),que=Do&&Do.__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)&&Uue(e,t,r);return zXe(e,t),e},VXe=Do&&Do.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Uue(e,t,r)};Object.defineProperty(Do,"__esModule",{value:!0});Do.Agent=void 0;var YXe=que(require("net")),Fue=que(require("http")),WXe=require("https");VXe(Mue(),Do);var sc=Symbol("AgentBaseInternalState"),N2=class extends Fue.Agent{static{i(this,"Agent")}constructor(e){super(e),this[sc]={}}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 YXe.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],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?WXe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),c instanceof Fue.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[sc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[sc].currentSocket;if(this[sc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[sc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[sc]&&(this[sc].defaultPort=e)}get protocol(){return this[sc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[sc]&&(this[sc].protocol=e)}};Do.Agent=N2});var Gue=b(bh=>{"use strict";var jXe=bh&&bh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bh,"__esModule",{value:!0});bh.parseProxyResponse=void 0;var JXe=jXe(bm()),MB=(0,JXe.default)("https-proxy-agent:parse-proxy-response");function KXe(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),MB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),MB("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),m=p.indexOf(`\r \r -`);if(m===-1){DB("have not received end of HTTP headers yet..."),o();return}let f=p.slice(0,m).toString("ascii").split(`\r -`),g=f.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=g.split(" "),x=+E[1],w=E.slice(2).join(" "),S={};for(let P of f){if(!P)continue;let Q=P.indexOf(":");if(Q===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${P}"`));let q=P.slice(0,Q).toLowerCase(),M=P.slice(Q+1).trimStart(),V=S[q];typeof V=="string"?S[q]=[V,M]:Array.isArray(V)?V.push(M):S[q]=M}DB("got proxy server response: %o %o",g,S),a(),e({connect:{statusCode:x,statusText:w,headers:S},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(HXe,"parseProxyResponse");Ih.parseProxyResponse=HXe});var Oue=b(hi=>{"use strict";var zXe=hi&&hi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),VXe=hi&&hi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kue=hi&&hi.__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)&&zXe(e,t,r);return VXe(e,t),e},Lue=hi&&hi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hi,"__esModule",{value:!0});hi.HttpsProxyAgent=void 0;var kB=kue(require("net")),_ue=kue(require("tls")),YXe=Lue(require("assert")),WXe=Lue(Im()),jXe=Pue(),JXe=require("url"),KXe=vue(),PC=(0,WXe.default)("https-proxy-agent"),Que=i(t=>t.servername===void 0&&t.host&&!kB.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),LB=class extends jXe.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new JXe.URL(e):e,this.proxyHeaders=r?.headers??{},PC("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Due(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(PC("Creating `tls.Socket`: %o",this.connectOpts),s=_ue.connect(Que(this.connectOpts))):(PC("Creating `net.Socket`: %o",this.connectOpts),s=kB.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=kB.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r +`);if(m===-1){MB("have not received end of HTTP headers yet..."),o();return}let f=p.slice(0,m).toString("ascii").split(`\r +`),g=f.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=g.split(" "),x=+E[1],w=E.slice(2).join(" "),S={};for(let P of f){if(!P)continue;let Q=P.indexOf(":");if(Q===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${P}"`));let q=P.slice(0,Q).toLowerCase(),M=P.slice(Q+1).trimStart(),V=S[q];typeof V=="string"?S[q]=[V,M]:Array.isArray(V)?V.push(M):S[q]=M}MB("got proxy server response: %o %o",g,S),a(),e({connect:{statusCode:x,statusText:w,headers:S},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(KXe,"parseProxyResponse");bh.parseProxyResponse=KXe});var jue=b(gi=>{"use strict";var XXe=gi&&gi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ZXe=gi&&gi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yue=gi&&gi.__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)&&XXe(e,t,r);return ZXe(e,t),e},Wue=gi&&gi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gi,"__esModule",{value:!0});gi.HttpsProxyAgent=void 0;var FB=Yue(require("net")),Hue=Yue(require("tls")),e7e=Wue(require("assert")),t7e=Wue(bm()),r7e=$ue(),n7e=require("url"),s7e=Gue(),DC=(0,t7e.default)("https-proxy-agent"),zue=i(t=>t.servername===void 0&&t.host&&!FB.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),UB=class extends r7e.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new n7e.URL(e):e,this.proxyHeaders=r?.headers??{},DC("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Vue(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(DC("Creating `tls.Socket`: %o",this.connectOpts),s=Hue.connect(zue(this.connectOpts))):(DC("Creating `net.Socket`: %o",this.connectOpts),s=FB.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=FB.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r `;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(o))c+=`${m}: ${o[m]}\r -`;let l=(0,KXe.parseProxyResponse)(s);s.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",XXe),r.secureEndpoint?(PC("Upgrading socket connection to TLS"),_ue.connect({...Due(Que(r),"host","path","port"),socket:s})):s;s.destroy();let p=new kB.Socket({writable:!1});return p.readable=!0,e.once("socket",m=>{PC("Replaying proxy buffer for failed request"),(0,YXe.default)(m.listenerCount("data")>0),m.push(d),m.push(null)}),p}};LB.protocols=["http","https"];hi.HttpsProxyAgent=LB;function XXe(t){t.resume()}i(XXe,"resume");function Due(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Due,"omit")});var Uue=b(Ys=>{"use strict";var ZXe=Ys&&Ys.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),e7e=Ys&&Ys.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Mue=Ys&&Ys.__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)&&ZXe(e,t,r);return e7e(e,t),e};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.req=Ys.json=Ys.toBuffer=void 0;var t7e=Mue(require("http")),r7e=Mue(require("https"));async function Fue(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Fue,"toBuffer");Ys.toBuffer=Fue;async function n7e(t){let r=(await Fue(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(n7e,"json");Ys.json=n7e;function s7e(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?r7e:t7e).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(s7e,"req");Ys.req=s7e});var Gue=b(Qo=>{"use strict";var $ue=Qo&&Qo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),o7e=Qo&&Qo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),i7e=Qo&&Qo.__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)&&$ue(e,t,r);return o7e(e,t),e},a7e=Qo&&Qo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&$ue(e,t,r)};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.Agent=void 0;var que=i7e(require("http"));a7e(Uue(),Qo);var oc=Symbol("AgentBaseInternalState"),x2=class extends que.Agent{static{i(this,"Agent")}constructor(e){super(e),this[oc]={}}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)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(o instanceof que.Agent)return o.addRequest(e,s);this[oc].currentSocket=o,super.createSocket(e,r,n)},n)}createConnection(){let e=this[oc].currentSocket;if(this[oc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[oc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[oc]&&(this[oc].defaultPort=e)}get protocol(){return this[oc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[oc]&&(this[oc].protocol=e)}};Qo.Agent=x2});var Vue=b(gi=>{"use strict";var c7e=gi&&gi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),l7e=gi&&gi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zue=gi&&gi.__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)&&c7e(e,t,r);return l7e(e,t),e},u7e=gi&&gi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gi,"__esModule",{value:!0});gi.HttpProxyAgent=void 0;var d7e=zue(require("net")),p7e=zue(require("tls")),m7e=u7e(Im()),f7e=require("events"),A7e=Gue(),Hue=require("url"),xh=(0,m7e.default)("http-proxy-agent"),OB=class extends A7e.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Hue.URL(e):e,this.proxyHeaders=r?.headers??{},xh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?h7e(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new Hue.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,s;xh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(xh("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r +`;let l=(0,s7e.parseProxyResponse)(s);s.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",o7e),r.secureEndpoint?(DC("Upgrading socket connection to TLS"),Hue.connect({...Vue(zue(r),"host","path","port"),socket:s})):s;s.destroy();let p=new FB.Socket({writable:!1});return p.readable=!0,e.once("socket",m=>{DC("Replaying proxy buffer for failed request"),(0,e7e.default)(m.listenerCount("data")>0),m.push(d),m.push(null)}),p}};UB.protocols=["http","https"];gi.HttpsProxyAgent=UB;function o7e(t){t.resume()}i(o7e,"resume");function Vue(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Vue,"omit")});var Xue=b(Ws=>{"use strict";var i7e=Ws&&Ws.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),a7e=Ws&&Ws.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Jue=Ws&&Ws.__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)&&i7e(e,t,r);return a7e(e,t),e};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.req=Ws.json=Ws.toBuffer=void 0;var c7e=Jue(require("http")),l7e=Jue(require("https"));async function Kue(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Kue,"toBuffer");Ws.toBuffer=Kue;async function u7e(t){let r=(await Kue(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(u7e,"json");Ws.json=u7e;function d7e(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?l7e:c7e).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(d7e,"req");Ws.req=d7e});var tde=b(ko=>{"use strict";var ede=ko&&ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),p7e=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),m7e=ko&&ko.__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)&&ede(e,t,r);return p7e(e,t),e},f7e=ko&&ko.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ede(e,t,r)};Object.defineProperty(ko,"__esModule",{value:!0});ko.Agent=void 0;var Zue=m7e(require("http"));f7e(Xue(),ko);var oc=Symbol("AgentBaseInternalState"),T2=class extends Zue.Agent{static{i(this,"Agent")}constructor(e){super(e),this[oc]={}}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)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(o instanceof Zue.Agent)return o.addRequest(e,s);this[oc].currentSocket=o,super.createSocket(e,r,n)},n)}createConnection(){let e=this[oc].currentSocket;if(this[oc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[oc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[oc]&&(this[oc].defaultPort=e)}get protocol(){return this[oc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[oc]&&(this[oc].protocol=e)}};ko.Agent=T2});var sde=b(yi=>{"use strict";var A7e=yi&&yi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),h7e=yi&&yi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nde=yi&&yi.__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)&&A7e(e,t,r);return h7e(e,t),e},g7e=yi&&yi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yi,"__esModule",{value:!0});yi.HttpProxyAgent=void 0;var y7e=nde(require("net")),E7e=nde(require("tls")),C7e=g7e(bm()),I7e=require("events"),x7e=tde(),rde=require("url"),Sh=(0,C7e.default)("http-proxy-agent"),qB=class extends x7e.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new rde.URL(e):e,this.proxyHeaders=r?.headers??{},Sh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?w7e(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new rde.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,s;Sh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Sh("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r \r -`)+4,e.outputData[0].data=e._header+n.substring(s),xh("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(xh("Creating `tls.Socket`: %o",this.connectOpts),o=p7e.connect(this.connectOpts)):(xh("Creating `net.Socket`: %o",this.connectOpts),o=d7e.connect(this.connectOpts)),await(0,f7e.once)(o,"connect"),o}};OB.protocols=["http","https"];gi.HttpProxyAgent=OB;function h7e(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(h7e,"omit")});var fde=b(KB=>{"use strict";Object.defineProperty(KB,"__esModule",{value:!0});KB.state=void 0;KB.state={instrumenterImplementation:void 0}});var vde=b(rR=>{"use strict";Object.defineProperty(rR,"__esModule",{value:!0});rR.state=void 0;rR.state={operationRequestMap:new WeakMap}});var lfe=b(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var Mnt=require("os"),Fnt=require("util");function Unt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(Unt,"_interopDefaultLegacy");var qnt=Unt(Fnt);function $nt(t,...e){process.stderr.write(`${qnt.default.format(t,...e)}${Mnt.EOL}`)}i($nt,"log");var Zme=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,tfe,ez=[],tz=[],IN=[];Zme&&rz(Zme);var rfe=Object.assign(t=>nfe(t),{enable:rz,enabled:nz,disable:Gnt,log:$nt});function rz(t){tfe=t,ez=[],tz=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?tz.push(new RegExp(`^${n.substr(1)}$`)):ez.push(new RegExp(`^${n}$`));for(let n of IN)n.enabled=nz(n.namespace)}i(rz,"enable");function nz(t){if(t.endsWith("*"))return!0;for(let e of tz)if(e.test(t))return!1;for(let e of ez)if(e.test(t))return!0;return!1}i(nz,"enabled");function Gnt(){let t=tfe||"";return rz(""),t}i(Gnt,"disable");function nfe(t){let e=Object.assign(r,{enabled:nz(t),destroy:Hnt,log:rfe.log,namespace:t,extend:znt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),IN.push(e),e}i(nfe,"createDebugger");function Hnt(){let t=IN.indexOf(this);return t>=0?(IN.splice(t,1),!0):!1}i(Hnt,"destroy");function znt(t){let e=nfe(`${this.namespace}:${t}`);return e.log=this.log,e}i(znt,"extend");var gI=rfe,sfe=new Set,EN=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,xN,wN=gI("azure");wN.log=(...t)=>{gI.log(...t)};var sz=["verbose","info","warning","error"];EN&&(cfe(EN)?ofe(EN):console.error(`AZURE_LOG_LEVEL set to unknown log level '${EN}'; logging is not enabled. Acceptable values: ${sz.join(", ")}.`));function ofe(t){if(t&&!cfe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${sz.join(",")}`);xN=t;let e=[];for(let r of sfe)afe(r)&&e.push(r.namespace);gI.enable(e.join(","))}i(ofe,"setLogLevel");function Vnt(){return xN}i(Vnt,"getLogLevel");var efe={verbose:400,info:300,warning:200,error:100};function Ynt(t){let e=wN.extend(t);return ife(wN,e),{error:CN(e,"error"),warning:CN(e,"warning"),info:CN(e,"info"),verbose:CN(e,"verbose")}}i(Ynt,"createClientLogger");function ife(t,e){e.log=(...r)=>{t.log(...r)}}i(ife,"patchLogMethod");function CN(t,e){let r=Object.assign(t.extend(e),{level:e});if(ife(t,r),afe(r)){let n=gI.disable();gI.enable(n+","+r.namespace)}return sfe.add(r),r}i(CN,"createLogger");function afe(t){return!!(xN&&efe[t.level]<=efe[xN])}i(afe,"shouldEnable");function cfe(t){return sz.includes(t)}i(cfe,"isAzureLogLevel");Uh.AzureLogger=wN;Uh.createClientLogger=Ynt;Uh.getLogLevel=Vnt;Uh.setLogLevel=ofe});var az=b(EI=>{"use strict";Object.defineProperty(EI,"__esModule",{value:!0});var qh=new WeakMap,bN=new WeakMap,yI=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,qh.set(this,[]),bN.set(this,!1)}get aborted(){if(!bN.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return bN.get(this)}static get none(){return new t}addEventListener(e,r){if(!qh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");qh.get(this).push(r)}removeEventListener(e,r){if(!qh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=qh.get(this),s=n.indexOf(r);s>-1&&n.splice(s,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 ufe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=qh.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),bN.set(t,!0)}i(ufe,"abortSignal");var oz=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},iz=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new yI,!!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(){ufe(this._signal)}static timeout(e){let r=new yI,n=setTimeout(ufe,e,r);return typeof n.unref=="function"&&n.unref(),r}};EI.AbortController=iz;EI.AbortError=oz;EI.AbortSignal=yI});var Afe=b(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});var Wnt=az(),dz=require("crypto"),cz,jnt=typeof process<"u"&&!!process.version&&!!(!((cz=process.versions)===null||cz===void 0)&&cz.node);function dfe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new Wnt.AbortError(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(dfe,"createAbortablePromise");var Jnt="The delay was aborted.";function Knt(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return dfe(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??Jnt})}i(Knt,"delay");function Xnt(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}i(Xnt,"getRandomIntegerInclusive");function pfe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(pfe,"isObject");function mfe(t){if(pfe(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(mfe,"isError");function Znt(t){if(mfe(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}`}}i(Znt,"getErrorMessage");async function est(t,e,r){let n=Buffer.from(t,"base64");return dz.createHmac("sha256",n).update(e).digest(r)}i(est,"computeSha256Hmac");async function tst(t,e){return dz.createHash("sha256").update(t).digest(e)}i(tst,"computeSha256Hash");function pz(t){return typeof t<"u"&&t!==null}i(pz,"isDefined");function rst(t,e){if(!pz(t)||typeof t!="object")return!1;for(let r of e)if(!ffe(t,r))return!1;return!0}i(rst,"isObjectWithProperties");function ffe(t,e){return pz(t)&&typeof t=="object"&&e in t}i(ffe,"objectHasProperty");function nst(){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}i(nst,"generateUUID");var lz,uz=typeof((lz=globalThis?.crypto)===null||lz===void 0?void 0:lz.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):dz.randomUUID;uz||(uz=nst);function sst(){return uz()}i(sst,"randomUUID");ws.computeSha256Hash=tst;ws.computeSha256Hmac=est;ws.createAbortablePromise=dfe;ws.delay=Knt;ws.getErrorMessage=Znt;ws.getRandomIntegerInclusive=Xnt;ws.isDefined=pz;ws.isError=mfe;ws.isNode=jnt;ws.isObject=pfe;ws.isObjectWithProperties=rst;ws.objectHasProperty=ffe;ws.randomUUID=sst});var Lfe=b(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var ost=lfe(),hfe=az(),ist=Afe(),Fm=ost.createClientLogger("core-lro"),yfe=2e3,Efe=["succeeded","canceled","failed"];function Cfe(t){try{return JSON.parse(t).state}catch{throw new Error(`Unable to deserialize input state: ${t}`)}}i(Cfe,"deserializeState");function gfe(t){let{state:e,stateProxy:r,isOperationError:n}=t;return s=>{throw n(s)&&(r.setError(e,s),r.setFailed(e)),s}}i(gfe,"setStateError");function ast(t,e){let r=t;return r.slice(-1)!=="."&&(r=r+"."),r+" "+e}i(ast,"appendReadableErrorMessage");function cst(t){let e=t.message,r=t.code,n=t;for(;n.innererror;)n=n.innererror,r=n.code,e=ast(e,n.message);return{code:r,message:e}}i(cst,"simplifyError");function Ife(t){let{state:e,stateProxy:r,status:n,isDone:s,processResult:o,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:m,message:f}=cst(u);d=`. ${m}. ${f}`}let p=`The long-running operation has failed${d}`;r.setError(e,new Error(p)),r.setFailed(e),Fm.warning(p);break}case"canceled":{r.setCanceled(e);break}}(s?.(c,e)||s===void 0&&["succeeded","canceled"].concat(l?[]:["failed"]).includes(n))&&r.setResult(e,lst({response:c,state:e,processResult:o}))}i(Ife,"processOperationStatus");function lst(t){let{processResult:e,response:r,state:n}=t;return e?e(r,n):r}i(lst,"buildResult");async function xfe(t){let{init:e,stateProxy:r,processResult:n,getOperationStatus:s,withOperationLocation:o,setErrorAsResult:a}=t,{operationLocation:c,resourceLocation:l,metadata:u,response:d}=await e();c&&o?.(c,!1);let p={metadata:u,operationLocation:c,resourceLocation:l};Fm.verbose("LRO: Operation description:",p);let m=r.initState(p),f=s({response:d,state:m,operationLocation:c});return Ife({state:m,status:f,stateProxy:r,response:d,setErrorAsResult:a,processResult:n}),m}i(xfe,"initOperation");async function ust(t){let{poll:e,state:r,stateProxy:n,operationLocation:s,getOperationStatus:o,getResourceLocation:a,isOperationError:c,options:l}=t,u=await e(s,l).catch(gfe({state:r,stateProxy:n,isOperationError:c})),d=o(u,r);if(Fm.verbose(`LRO: Status: +`)+4,e.outputData[0].data=e._header+n.substring(s),Sh("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(Sh("Creating `tls.Socket`: %o",this.connectOpts),o=E7e.connect(this.connectOpts)):(Sh("Creating `net.Socket`: %o",this.connectOpts),o=y7e.connect(this.connectOpts)),await(0,I7e.once)(o,"connect"),o}};qB.protocols=["http","https"];yi.HttpProxyAgent=qB;function w7e(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(w7e,"omit")});var Bde=b(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0});tR.state=void 0;tR.state={instrumenterImplementation:void 0}});var Gde=b(iR=>{"use strict";Object.defineProperty(iR,"__esModule",{value:!0});iR.state=void 0;iR.state={operationRequestMap:new WeakMap}});var Ife=b(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var znt=require("os"),Vnt=require("util");function Ynt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(Ynt,"_interopDefaultLegacy");var Wnt=Ynt(Vnt);function jnt(t,...e){process.stderr.write(`${Wnt.default.format(t,...e)}${znt.EOL}`)}i(jnt,"log");var dfe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,mfe,az=[],cz=[],SN=[];dfe&&lz(dfe);var ffe=Object.assign(t=>Afe(t),{enable:lz,enabled:uz,disable:Jnt,log:jnt});function lz(t){mfe=t,az=[],cz=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?cz.push(new RegExp(`^${n.substr(1)}$`)):az.push(new RegExp(`^${n}$`));for(let n of SN)n.enabled=uz(n.namespace)}i(lz,"enable");function uz(t){if(t.endsWith("*"))return!0;for(let e of cz)if(e.test(t))return!1;for(let e of az)if(e.test(t))return!0;return!1}i(uz,"enabled");function Jnt(){let t=mfe||"";return lz(""),t}i(Jnt,"disable");function Afe(t){let e=Object.assign(r,{enabled:uz(t),destroy:Knt,log:ffe.log,namespace:t,extend:Xnt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),SN.push(e),e}i(Afe,"createDebugger");function Knt(){let t=SN.indexOf(this);return t>=0?(SN.splice(t,1),!0):!1}i(Knt,"destroy");function Xnt(t){let e=Afe(`${this.namespace}:${t}`);return e.log=this.log,e}i(Xnt,"extend");var II=ffe,hfe=new Set,wN=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,BN,RN=II("azure");RN.log=(...t)=>{II.log(...t)};var dz=["verbose","info","warning","error"];wN&&(Cfe(wN)?gfe(wN):console.error(`AZURE_LOG_LEVEL set to unknown log level '${wN}'; logging is not enabled. Acceptable values: ${dz.join(", ")}.`));function gfe(t){if(t&&!Cfe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${dz.join(",")}`);BN=t;let e=[];for(let r of hfe)Efe(r)&&e.push(r.namespace);II.enable(e.join(","))}i(gfe,"setLogLevel");function Znt(){return BN}i(Znt,"getLogLevel");var pfe={verbose:400,info:300,warning:200,error:100};function est(t){let e=RN.extend(t);return yfe(RN,e),{error:bN(e,"error"),warning:bN(e,"warning"),info:bN(e,"info"),verbose:bN(e,"verbose")}}i(est,"createClientLogger");function yfe(t,e){e.log=(...r)=>{t.log(...r)}}i(yfe,"patchLogMethod");function bN(t,e){let r=Object.assign(t.extend(e),{level:e});if(yfe(t,r),Efe(r)){let n=II.disable();II.enable(n+","+r.namespace)}return hfe.add(r),r}i(bN,"createLogger");function Efe(t){return!!(BN&&pfe[t.level]<=pfe[BN])}i(Efe,"shouldEnable");function Cfe(t){return dz.includes(t)}i(Cfe,"isAzureLogLevel");Gh.AzureLogger=RN;Gh.createClientLogger=est;Gh.getLogLevel=Znt;Gh.setLogLevel=gfe});var fz=b(wI=>{"use strict";Object.defineProperty(wI,"__esModule",{value:!0});var Hh=new WeakMap,NN=new WeakMap,xI=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Hh.set(this,[]),NN.set(this,!1)}get aborted(){if(!NN.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return NN.get(this)}static get none(){return new t}addEventListener(e,r){if(!Hh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Hh.get(this).push(r)}removeEventListener(e,r){if(!Hh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Hh.get(this),s=n.indexOf(r);s>-1&&n.splice(s,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 xfe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Hh.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),NN.set(t,!0)}i(xfe,"abortSignal");var pz=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},mz=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new xI,!!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(){xfe(this._signal)}static timeout(e){let r=new xI,n=setTimeout(xfe,e,r);return typeof n.unref=="function"&&n.unref(),r}};wI.AbortController=mz;wI.AbortError=pz;wI.AbortSignal=xI});var Rfe=b(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});var tst=fz(),yz=require("crypto"),Az,rst=typeof process<"u"&&!!process.version&&!!(!((Az=process.versions)===null||Az===void 0)&&Az.node);function wfe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new tst.AbortError(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(wfe,"createAbortablePromise");var nst="The delay was aborted.";function sst(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return wfe(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??nst})}i(sst,"delay");function ost(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}i(ost,"getRandomIntegerInclusive");function bfe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(bfe,"isObject");function Sfe(t){if(bfe(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(Sfe,"isError");function ist(t){if(Sfe(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}`}}i(ist,"getErrorMessage");async function ast(t,e,r){let n=Buffer.from(t,"base64");return yz.createHmac("sha256",n).update(e).digest(r)}i(ast,"computeSha256Hmac");async function cst(t,e){return yz.createHash("sha256").update(t).digest(e)}i(cst,"computeSha256Hash");function Ez(t){return typeof t<"u"&&t!==null}i(Ez,"isDefined");function lst(t,e){if(!Ez(t)||typeof t!="object")return!1;for(let r of e)if(!Bfe(t,r))return!1;return!0}i(lst,"isObjectWithProperties");function Bfe(t,e){return Ez(t)&&typeof t=="object"&&e in t}i(Bfe,"objectHasProperty");function ust(){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}i(ust,"generateUUID");var hz,gz=typeof((hz=globalThis?.crypto)===null||hz===void 0?void 0:hz.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):yz.randomUUID;gz||(gz=ust);function dst(){return gz()}i(dst,"randomUUID");bs.computeSha256Hash=cst;bs.computeSha256Hmac=ast;bs.createAbortablePromise=wfe;bs.delay=sst;bs.getErrorMessage=ist;bs.getRandomIntegerInclusive=ost;bs.isDefined=Ez;bs.isError=Sfe;bs.isNode=rst;bs.isObject=bfe;bs.isObjectWithProperties=lst;bs.objectHasProperty=Bfe;bs.randomUUID=dst});var Wfe=b(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});var pst=Ife(),Nfe=fz(),mst=Rfe(),$m=pst.createClientLogger("core-lro"),Pfe=2e3,vfe=["succeeded","canceled","failed"];function _fe(t){try{return JSON.parse(t).state}catch{throw new Error(`Unable to deserialize input state: ${t}`)}}i(_fe,"deserializeState");function Tfe(t){let{state:e,stateProxy:r,isOperationError:n}=t;return s=>{throw n(s)&&(r.setError(e,s),r.setFailed(e)),s}}i(Tfe,"setStateError");function fst(t,e){let r=t;return r.slice(-1)!=="."&&(r=r+"."),r+" "+e}i(fst,"appendReadableErrorMessage");function Ast(t){let e=t.message,r=t.code,n=t;for(;n.innererror;)n=n.innererror,r=n.code,e=fst(e,n.message);return{code:r,message:e}}i(Ast,"simplifyError");function Qfe(t){let{state:e,stateProxy:r,status:n,isDone:s,processResult:o,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:m,message:f}=Ast(u);d=`. ${m}. ${f}`}let p=`The long-running operation has failed${d}`;r.setError(e,new Error(p)),r.setFailed(e),$m.warning(p);break}case"canceled":{r.setCanceled(e);break}}(s?.(c,e)||s===void 0&&["succeeded","canceled"].concat(l?[]:["failed"]).includes(n))&&r.setResult(e,hst({response:c,state:e,processResult:o}))}i(Qfe,"processOperationStatus");function hst(t){let{processResult:e,response:r,state:n}=t;return e?e(r,n):r}i(hst,"buildResult");async function Dfe(t){let{init:e,stateProxy:r,processResult:n,getOperationStatus:s,withOperationLocation:o,setErrorAsResult:a}=t,{operationLocation:c,resourceLocation:l,metadata:u,response:d}=await e();c&&o?.(c,!1);let p={metadata:u,operationLocation:c,resourceLocation:l};$m.verbose("LRO: Operation description:",p);let m=r.initState(p),f=s({response:d,state:m,operationLocation:c});return Qfe({state:m,status:f,stateProxy:r,response:d,setErrorAsResult:a,processResult:n}),m}i(Dfe,"initOperation");async function gst(t){let{poll:e,state:r,stateProxy:n,operationLocation:s,getOperationStatus:o,getResourceLocation:a,isOperationError:c,options:l}=t,u=await e(s,l).catch(Tfe({state:r,stateProxy:n,isOperationError:c})),d=o(u,r);if($m.verbose(`LRO: Status: Polling from: ${r.config.operationLocation} Operation status: ${d} - Polling status: ${Efe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(gfe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(ust,"pollOperationHelper");async function wfe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:o,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:p,getError:m,updateState:f,setDelay:g,isDone:E,setErrorAsResult:x}=t,{operationLocation:w}=r.config;if(w!==void 0){let{response:S,status:P}=await ust({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:w,getResourceLocation:a,isOperationError:l,options:s});if(Ife({status:P,response:S,state:r,stateProxy:n,isDone:E,processResult:p,getError:m,setErrorAsResult:x}),!Efe.includes(P)){let Q=d?.(S);Q&&g(Q);let q=c?.(S,r);if(q!==void 0){let M=w!==q;r.config.operationLocation=q,u?.(q,M)}else u?.(w,!1)}f?.(r,S)}}i(wfe,"pollOperation");function bfe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(bfe,"getOperationLocationPollingUrl");function Sfe(t){return t.headers.location}i(Sfe,"getLocationHeader");function Bfe(t){return t.headers["operation-location"]}i(Bfe,"getOperationLocationHeader");function Rfe(t){return t.headers["azure-asyncoperation"]}i(Rfe,"getAzureAsyncOperationHeader");function dst(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}i(dst,"findResourceLocation");function Nfe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=Bfe(e),a=Rfe(e),c=bfe({operationLocation:o,azureAsyncOperation:a}),l=Sfe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:dst({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(Nfe,"inferLroMode");function Tfe(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 Az(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 Fm.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(Tfe,"transformStatus");function pst(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return Tfe({status:r,statusCode:t.statusCode})}i(pst,"getStatus");function mst(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},o=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return Tfe({status:o,statusCode:t.statusCode})}i(mst,"getProvisioningState");function Az(t){return t===202?"running":t<300?"succeeded":"failed"}i(Az,"toOperationStatus");function Pfe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?fst(new Date(e)):r*1e3}}i(Pfe,"parseRetryAfter");function vfe(t){let e=t.flatResponse.error;if(!e){Fm.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Fm.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(vfe,"getErrorFromResponse");function fst(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e{let a=await s.sendInitialRequest(),c=Nfe({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.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:_fe,setErrorAsResult:o})}i(Ast,"initHttpOperation");function Qfe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return bfe({operationLocation:Bfe(t),azureAsyncOperation:Rfe(t)});case"ResourceLocation":return Sfe(t);default:return}}i(Qfe,"getOperationLocation");function hz({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return pst(t);case"ResourceLocation":return Az(t.statusCode);case"Body":return mst(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}i(hz,"getOperationStatus");function Dfe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.config.resourceLocation}i(Dfe,"getResourceLocation");function kfe(t){return t.name==="RestError"}i(kfe,"isOperationError");async function hst(t){let{lro:e,stateProxy:r,options:n,processResult:s,updateState:o,setDelay:a,state:c,setErrorAsResult:l}=t;return wfe({state:c,stateProxy:r,setDelay:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u,getError:vfe,updateState:o,getPollingInterval:Pfe,getOperationLocation:Qfe,getOperationStatus:hz,isOperationError:kfe,getResourceLocation:Dfe,options:n,poll:i(async(u,d)=>e.sendPollRequest(u,d),"poll"),setErrorAsResult:l})}i(hst,"pollHttpOperation");var gst=i(()=>({initState:i(t=>({status:"running",config:t}),"initState"),setCanceled:i(t=>t.status="canceled","setCanceled"),setError:i((t,e)=>t.error=e,"setError"),setResult:i((t,e)=>t.result=e,"setResult"),setRunning:i(t=>t.status="running","setRunning"),setSucceeded:i(t=>t.status="succeeded","setSucceeded"),setFailed:i(t=>t.status="failed","setFailed"),getError:i(t=>t.error,"getError"),getResult:i(t=>t.result,"getResult"),isCanceled:i(t=>t.status==="canceled","isCanceled"),isFailed:i(t=>t.status==="failed","isFailed"),isRunning:i(t=>t.status==="running","isRunning"),isSucceeded:i(t=>t.status==="succeeded","isSucceeded")}),"createStateProxy$1");function yst(t){let{getOperationLocation:e,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:s,getResourceLocation:o,getPollingInterval:a,getError:c,resolveOnUnsuccessful:l}=t;return async({init:u,poll:d},p)=>{let{processResult:m,updateState:f,withOperationLocation:g,intervalInMs:E=yfe,restoreFrom:x}=p||{},w=gst(),S=g?(()=>{let se=!1;return(ye,H)=>{H?g(ye):se||g(ye),se=!0}})():void 0,P=x?Cfe(x):await xfe({init:u,stateProxy:w,processResult:m,getOperationStatus:r,withOperationLocation:S,setErrorAsResult:!l}),Q,q=new hfe.AbortController,M=new Map,V=i(async()=>M.forEach(se=>se(P)),"handleProgressEvents"),pe="Operation was canceled",ke=E,Re={getOperationState:i(()=>P,"getOperationState"),getResult:i(()=>P.result,"getResult"),isDone:i(()=>["succeeded","failed","canceled"].includes(P.status),"isDone"),isStopped:i(()=>Q===void 0,"isStopped"),stopPolling:i(()=>{q.abort()},"stopPolling"),toString:i(()=>JSON.stringify({state:P}),"toString"),onProgress:i(se=>{let ye=Symbol();return M.set(ye,se),()=>M.delete(ye)},"onProgress"),pollUntilDone:i(se=>Q??(Q=(async()=>{let{abortSignal:ye}=se||{},{signal:H}=ye?new hfe.AbortController([ye,q.signal]):q;if(!Re.isDone())for(await Re.poll({abortSignal:H});!Re.isDone();)await ist.delay(ke,{abortSignal:H}),await Re.poll({abortSignal:H});if(l)return Re.getResult();switch(P.status){case"succeeded":return Re.getResult();case"canceled":throw new Error(pe);case"failed":throw P.error;case"notStarted":case"running":throw new Error("Polling completed without succeeding or failing")}})().finally(()=>{Q=void 0})),"pollUntilDone"),async poll(se){if(l){if(Re.isDone())return}else switch(P.status){case"succeeded":return;case"canceled":throw new Error(pe);case"failed":throw P.error}if(await wfe({poll:d,state:P,stateProxy:w,getOperationLocation:e,isOperationError:s,withOperationLocation:S,getPollingInterval:a,getOperationStatus:n,getResourceLocation:o,processResult:m,getError:c,updateState:f,options:se,setDelay:i(ye=>{ke=ye},"setDelay"),setErrorAsResult:!l}),await V(),!l)switch(P.status){case"canceled":throw new Error(pe);case"failed":throw P.error}}};return Re}}i(yst,"buildCreatePoller");async function Est(t,e){let{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:o,updateState:a,withOperationLocation:c,resolveOnUnsuccessful:l=!1}=e||{};return yst({getStatusFromInitialResponse:_fe,getStatusFromPollResponse:hz,isOperationError:kfe,getOperationLocation:Qfe,getResourceLocation:Dfe,getPollingInterval:Pfe,getError:vfe,resolveOnUnsuccessful:l})({init:i(async()=>{let u=await t.sendInitialRequest(),d=Nfe({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:o,updateState:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u})}i(Est,"createHttpPoller");var Cst=i(()=>({initState:i(t=>({config:t,isStarted:!0}),"initState"),setCanceled:i(t=>t.isCancelled=!0,"setCanceled"),setError:i((t,e)=>t.error=e,"setError"),setResult:i((t,e)=>t.result=e,"setResult"),setRunning:i(t=>t.isStarted=!0,"setRunning"),setSucceeded:i(t=>t.isCompleted=!0,"setSucceeded"),setFailed:i(()=>{},"setFailed"),getError:i(t=>t.error,"getError"),getResult:i(t=>t.result,"getResult"),isCanceled:i(t=>!!t.isCancelled,"isCanceled"),isFailed:i(t=>!!t.error,"isFailed"),isRunning:i(t=>!!t.isStarted,"isRunning"),isSucceeded:i(t=>!!(t.isCompleted&&!t.isCancelled&&!t.error),"isSucceeded")}),"createStateProxy"),mz=class{static{i(this,"GenericPollOperation")}constructor(e,r,n,s,o,a,c){this.state=e,this.lro=r,this.setErrorAsResult=n,this.lroResourceLocationConfig=s,this.processResult=o,this.updateState=a,this.isDone=c}setPollerConfig(e){this.pollerConfig=e}async update(e){var r;let n=Cst();this.state.isStarted||(this.state=Object.assign(Object.assign({},this.state),await Ast({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult})));let s=this.updateState,o=this.isDone;return!this.state.isCompleted&&this.state.error===void 0&&await hst({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:s?(a,{rawResponse:c})=>s(a,c):void 0,isDone:o?({flatResponse:a},c)=>o(a,c):void 0,options:e,setDelay:i(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 Fm.error("`cancelOperation` is deprecated because it wasn't implemented"),this}toString(){return JSON.stringify({state:this.state})}},SN=class t extends Error{static{i(this,"PollerStoppedError")}constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,t.prototype)}},BN=class t extends Error{static{i(this,"PollerCancelledError")}constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,t.prototype)}},RN=class{static{i(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=i(()=>{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 BN("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 SN("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()}},fz=class extends RN{static{i(this,"LroEngine")}constructor(e,r){let{intervalInMs:n=yfe,resumeFrom:s,resolveOnUnsuccessful:o=!1,isDone:a,lroResourceLocationConfig:c,processResult:l,updateState:u}=r||{},d=s?Cfe(s):{},p=new mz(d,e,!o,c,l,u,a);super(p),this.resolveOnUnsuccessful=o,this.config={intervalInMs:n},p.setPollerConfig(this.config)}delay(){return new Promise(e=>setTimeout(()=>e(),this.config.intervalInMs))}};Um.LroEngine=fz;Um.Poller=RN;Um.PollerCancelledError=BN;Um.PollerStoppedError=SN;Um.createHttpPoller=Est});var tAe=b((Nar,qst)=>{qst.exports={name:"@actions/cache",version:"6.0.1",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.6.1","@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.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var nAe=b((Tar,rAe)=>{var $st=tAe();rAe.exports={version:$st.version}});var UN=b(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.isJsonObject=Vh.typeofJsonValue=void 0;function Jst(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}i(Jst,"typeofJsonValue");Vh.typeofJsonValue=Jst;function Kst(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}i(Kst,"isJsonObject");Vh.isJsonObject=Kst});var $N=b(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});Yh.base64encode=Yh.base64decode=void 0;var au="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),qN=[];for(let t=0;t>4,a=o,s=2;break;case 2:r[n++]=(a&15)<<4|(o&60)>>2,a=o,s=3;break;case 3:r[n++]=(a&3)<<6|o,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(Xst,"base64decode");Yh.base64decode=Xst;function Zst(t){let e="",r=0,n,s=0;for(let o=0;o>2],s=(n&3)<<4,r=1;break;case 1:e+=au[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=au[s|n>>6],e+=au[n&63],r=0;break}return r&&(e+=au[s],e+="=",r==1&&(e+="=")),e}i(Zst,"base64encode");Yh.base64encode=Zst});var lAe=b(GN=>{"use strict";Object.defineProperty(GN,"__esModule",{value:!0});GN.utf8read=void 0;var Bz=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function eot(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,o,a=t.length;for(;e191&&o<224?n[s++]=(o&31)<<6|t[e++]&63:o>239&&o<365?(o=((o&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(o>>10),n[s++]=56320+(o&1023)):n[s++]=(o&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(Bz(n)),s=0);return r.length?(s&&r.push(Bz(n.slice(0,s))),r.join("")):Bz(n.slice(0,s))}i(eot,"utf8read");GN.utf8read=eot});var RI=b(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.WireType=vc.mergeBinaryOptions=vc.UnknownFieldHandler=void 0;var tot;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,o,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:o,data:a})},t.onWrite=(r,n,s)=>{for(let{no:o,wireType:a,data:c}of t.list(n))s.tag(o,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(o=>o.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(tot=vc.UnknownFieldHandler||(vc.UnknownFieldHandler={}));function rot(t,e){return Object.assign(Object.assign({},t),e)}i(rot,"mergeBinaryOptions");vc.mergeBinaryOptions=rot;var not;(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"})(not=vc.WireType||(vc.WireType={}))});var zN=b(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.varint32read=eo.varint32write=eo.int64toString=eo.int64fromString=eo.varint64write=eo.varint64read=void 0;function sot(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<>>o,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,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let o=3;o<31;o=o+7){let a=e>>>o,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}i(oot,"varint64write");eo.varint64write=oot;var HN=65536*65536;function iot(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function o(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=HN&&(s=s+(n/HN|0),n=n%HN)}return i(o,"add1e6digit"),o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[e,n,s]}i(iot,"int64fromString");eo.int64fromString=iot;function aot(t,e){if(e>>>0<=2097151)return""+(HN*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,o=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;o>=l&&(a+=Math.floor(o/l),o%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,p){let m=d?String(d):"";return p?"0000000".slice(m.length)+m:m}return i(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(o,1)}i(aot,"int64toString");eo.int64toString=aot;function cot(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)}}i(cot,"varint32write");eo.varint32write=cot;function lot(){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}i(lot,"varint32read");eo.varint32read=lot});var Qd=b(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.PbLong=_d.PbULong=_d.detectBi=void 0;var NI=zN(),Mt;function uAe(){let t=new DataView(new ArrayBuffer(8));Mt=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}i(uAe,"detectBi");_d.detectBi=uAe;uAe();function dAe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}i(dAe,"assertBi");var pAe=/^-?[0-9]+$/,YN=4294967296,VN=2147483648,WN=class{static{i(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*YN+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},TI=class t extends WN{static{i(this,"PbULong")}static from(e){if(Mt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Mt.C(e);case"number":if(e===0)return this.ZERO;e=Mt.C(e);case"bigint":if(!e)return this.ZERO;if(eMt.UMAX)throw new Error("ulong too large");return Mt.V.setBigUint64(0,e,!0),new t(Mt.V.getInt32(0,!0),Mt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!pAe.test(e))throw new Error("string is no integer");let[r,n,s]=NI.int64fromString(e);if(r)throw new Error("signed value for ulong");return new t(n,s);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/YN)}throw new Error("unknown value "+typeof e)}toString(){return Mt?this.toBigInt().toString():NI.int64toString(this.lo,this.hi)}toBigInt(){return dAe(Mt),Mt.V.setInt32(0,this.lo,!0),Mt.V.setInt32(4,this.hi,!0),Mt.V.getBigUint64(0,!0)}};_d.PbULong=TI;TI.ZERO=new TI(0,0);var PI=class t extends WN{static{i(this,"PbLong")}static from(e){if(Mt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Mt.C(e);case"number":if(e===0)return this.ZERO;e=Mt.C(e);case"bigint":if(!e)return this.ZERO;if(eMt.MAX)throw new Error("signed long too large");return Mt.V.setBigInt64(0,e,!0),new t(Mt.V.getInt32(0,!0),Mt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!pAe.test(e))throw new Error("string is no integer");let[r,n,s]=NI.int64fromString(e);if(r){if(s>VN||s==VN&&n!=0)throw new Error("signed long too small")}else if(s>=VN)throw new Error("signed long too large");let o=new t(n,s);return r?o.negate():o;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/YN):new t(-e,-e/YN).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&VN)!==0}negate(){let e=~this.hi,r=this.lo;return r?r=~r+1:e+=1,new t(r,e)}toString(){if(Mt)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+NI.int64toString(e.lo,e.hi)}return NI.int64toString(this.lo,this.hi)}toBigInt(){return dAe(Mt),Mt.V.setInt32(0,this.lo,!0),Mt.V.setInt32(4,this.hi,!0),Mt.V.getBigInt64(0,!0)}};_d.PbLong=PI;PI.ZERO=new PI(0,0)});var Rz=b(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.BinaryReader=jh.binaryReadOptions=void 0;var Wh=RI(),vI=Qd(),mAe=zN(),fAe={readUnknownField:!0,readerFactory:i(t=>new jN(t),"readerFactory")};function uot(t){return t?Object.assign(Object.assign({},fAe),t):fAe}i(uot,"binaryReadOptions");jh.binaryReadOptions=uot;var jN=class{static{i(this,"BinaryReader")}constructor(e,r){this.varint64=mAe.varint64read,this.uint32=mAe.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 Wh.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case Wh.WireType.Bit64:this.pos+=4;case Wh.WireType.Bit32:this.pos+=4;break;case Wh.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case Wh.WireType.StartGroup:let s;for(;(s=this.tag()[1])!==Wh.WireType.EndGroup;)this.skip(s);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 vI.PbLong(...this.varint64())}uint64(){return new vI.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 vI.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 vI.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new vI.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())}};jh.BinaryReader=jN});var Jh=b(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.assertFloat32=bi.assertUInt32=bi.assertInt32=bi.assertNever=bi.assert=void 0;function dot(t,e){if(!t)throw new Error(e)}i(dot,"assert");bi.assert=dot;function pot(t,e){throw new Error(e??"Unexpected object: "+t)}i(pot,"assertNever");bi.assertNever=pot;var mot=34028234663852886e22,fot=-34028234663852886e22,Aot=4294967295,hot=2147483647,got=-2147483648;function yot(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>hot||tAot||t<0)throw new Error("invalid uint 32: "+t)}i(Eot,"assertUInt32");bi.assertUInt32=Eot;function Cot(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>mot||t{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});Xh.BinaryWriter=Xh.binaryWriteOptions=void 0;var _I=Qd(),QI=zN(),Kh=Jh(),AAe={writeUnknownFields:!0,writerFactory:i(()=>new JN,"writerFactory")};function Iot(t){return t?Object.assign(Object.assign({},AAe),t):AAe}i(Iot,"binaryWriteOptions");Xh.binaryWriteOptions=Iot;var JN=class{static{i(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 s=0;s>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(Kh.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return Kh.assertInt32(e),QI.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){Kh.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){Kh.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){Kh.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return Kh.assertInt32(e),e=(e<<1^e>>31)>>>0,QI.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=_I.PbLong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}fixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=_I.PbULong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}int64(e){let r=_I.PbLong.from(e);return QI.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=_I.PbLong.from(e),n=r.hi>>31,s=r.lo<<1^n,o=(r.hi<<1|r.lo>>>31)^n;return QI.varint64write(s,o,this.buf),this}uint64(e){let r=_I.PbULong.from(e);return QI.varint64write(r.lo,r.hi,this.buf),this}};Xh.BinaryWriter=JN});var Tz=b(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.mergeJsonOptions=Dd.jsonWriteOptions=Dd.jsonReadOptions=void 0;var hAe={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},gAe={ignoreUnknownFields:!1};function xot(t){return t?Object.assign(Object.assign({},gAe),t):gAe}i(xot,"jsonReadOptions");Dd.jsonReadOptions=xot;function wot(t){return t?Object.assign(Object.assign({},hAe),t):hAe}i(wot,"jsonWriteOptions");Dd.jsonWriteOptions=wot;function bot(t,e){var r,n;let s=Object.assign(Object.assign({},t),e);return s.typeRegistry=[...(r=t?.typeRegistry)!==null&&r!==void 0?r:[],...(n=e?.typeRegistry)!==null&&n!==void 0?n:[]],s}i(bot,"mergeJsonOptions");Dd.mergeJsonOptions=bot});var DI=b(KN=>{"use strict";Object.defineProperty(KN,"__esModule",{value:!0});KN.MESSAGE_TYPE=void 0;KN.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var Pz=b(XN=>{"use strict";Object.defineProperty(XN,"__esModule",{value:!0});XN.lowerCamelCase=void 0;function Sot(t){let e=!1,r=[];for(let n=0;n{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.readMessageOption=cn.readFieldOption=cn.readFieldOptions=cn.normalizeFieldInfo=cn.RepeatType=cn.LongType=cn.ScalarType=void 0;var yAe=Pz(),Bot;(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"})(Bot=cn.ScalarType||(cn.ScalarType={}));var Rot;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(Rot=cn.LongType||(cn.LongType={}));var EAe;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(EAe=cn.RepeatType||(cn.RepeatType={}));function Not(t){var e,r,n,s;return t.localName=(e=t.localName)!==null&&e!==void 0?e:yAe.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:yAe.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:EAe.NO,t.opt=(s=t.opt)!==null&&s!==void 0?s:t.repeat||t.oneof?!1:t.kind=="message",t}i(Not,"normalizeFieldInfo");cn.normalizeFieldInfo=Not;function Tot(t,e,r,n){var s;let o=(s=t.fields.find((a,c)=>a.localName==e||c==e))===null||s===void 0?void 0:s.options;return o&&o[r]?n.fromJson(o[r]):void 0}i(Tot,"readFieldOptions");cn.readFieldOptions=Tot;function Pot(t,e,r,n){var s;let o=(s=t.fields.find((c,l)=>c.localName==e||l==e))===null||s===void 0?void 0:s.options;if(!o)return;let a=o[r];return a===void 0?a:n?n.fromJson(a):a}i(Pot,"readFieldOption");cn.readFieldOption=Pot;function vot(t,e,r){let s=t.options[e];return s===void 0?s:r?r.fromJson(s):s}i(vot,"readMessageOption");cn.readMessageOption=vot});var vz=b(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.getSelectedOneofValue=to.clearOneofValue=to.setUnknownOneofValue=to.setOneofValue=to.getOneofValue=to.isOneofGroup=void 0;function _ot(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}}i(_ot,"isOneofGroup");to.isOneofGroup=_ot;function Qot(t,e){return t[e]}i(Qot,"getOneofValue");to.getOneofValue=Qot;function Dot(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}i(Dot,"setOneofValue");to.setOneofValue=Dot;function kot(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}i(kot,"setUnknownOneofValue");to.setUnknownOneofValue=kot;function Lot(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}i(Lot,"clearOneofValue");to.clearOneofValue=Lot;function Oot(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}i(Oot,"getSelectedOneofValue");to.getSelectedOneofValue=Oot});var Qz=b(ZN=>{"use strict";Object.defineProperty(ZN,"__esModule",{value:!0});ZN.ReflectionTypeCheck=void 0;var Br=ha(),Mot=vz(),_z=class{static{i(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 s of this.fields)if(s.oneof)n.includes(s.oneof)||(n.push(s.oneof),e.push(s.oneof),r.push(s.oneof));else switch(r.push(s.localName),s.kind){case"scalar":case"enum":(!s.opt||s.repeat)&&e.push(s.localName);break;case"message":s.repeat&&e.push(s.localName);break;case"map":e.push(s.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 s=Object.keys(e),o=this.data;if(s.length!s.includes(a))||!n&&s.some(a=>!o.known.includes(a)))return!1;if(r<1)return!0;for(let a of o.oneofs){let c=e[a];if(!Mot.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,s){let o=r.repeat;switch(r.kind){case"scalar":return e===void 0?r.opt:o?this.scalars(e,r.T,s,r.L):this.scalar(e,r.T,r.L);case"enum":return e===void 0?r.opt:o?this.scalars(e,Br.ScalarType.INT32,s):this.scalar(e,Br.ScalarType.INT32);case"message":return e===void 0?!0:o?this.messages(e,r.T(),n,s):this.message(e,r.T(),n,s);case"map":if(typeof e!="object"||e===null)return!1;if(s<2)return!0;if(!this.mapKeys(e,r.K,s))return!1;switch(r.V.kind){case"scalar":return this.scalars(Object.values(e),r.V.T,s,r.V.L);case"enum":return this.scalars(Object.values(e),Br.ScalarType.INT32,s);case"message":return this.messages(Object.values(e),r.V.T(),n,s)}break}return!0}message(e,r,n,s){return n?r.isAssignable(e,s):r.is(e,s)}messages(e,r,n,s){if(!Array.isArray(e))return!1;if(s<2)return!0;if(n){for(let o=0;oparseInt(o)),r,n);case Br.ScalarType.BOOL:return this.scalars(s.slice(0,n).map(o=>o=="true"?!0:o=="false"?!1:o),r,n);default:return this.scalars(s,r,n,Br.LongType.STRING)}}};ZN.ReflectionTypeCheck=_z});var tT=b(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.reflectionLongConvert=void 0;var CAe=ha();function Fot(t,e){switch(e){case CAe.LongType.BIGINT:return t.toBigInt();case CAe.LongType.NUMBER:return t.toNumber();default:return t.toString()}}i(Fot,"reflectionLongConvert");eT.reflectionLongConvert=Fot});var kz=b(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});sT.ReflectionJsonReader=void 0;var IAe=UN(),Uot=$N(),ln=ha(),rT=Qd(),$m=Jh(),nT=tT(),Dz=class{static{i(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 s=IAe.typeofJsonValue(n);throw(s=="number"||s=="boolean")&&(s=n.toString()),new Error(`Cannot parse JSON ${s} for ${this.info.typeName}#${r}`)}}read(e,r,n){this.prepare();let s=[];for(let[o,a]of Object.entries(e)){let c=this.fMap[o];if(!c){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let l=c.localName,u;if(c.oneof){if(a===null&&(c.kind!=="enum"||c.T()[0]!=="google.protobuf.NullValue"))continue;if(s.includes(c.oneof))throw new Error(`Multiple members of the oneof group "${c.oneof}" of ${this.info.typeName} are present in JSON.`);s.push(c.oneof),u=r[c.oneof]={oneofKind:l}}else u=r;if(c.kind=="map"){if(a===null)continue;this.assert(IAe.isJsonObject(a),c.name,a);let d=u[l];for(let[p,m]of Object.entries(a)){this.assert(m!==null,c.name+" map value",null);let f;switch(c.V.kind){case"message":f=c.V.T().internalJsonRead(m,n);break;case"enum":if(f=this.enum(c.V.T(),m,c.name,n.ignoreUnknownFields),f===!1)continue;break;case"scalar":f=this.scalar(m,c.V.T,c.V.L,c.name);break}this.assert(f!==void 0,c.name+" map value",m);let g=p;c.K==ln.ScalarType.BOOL&&(g=g=="true"?!0:g=="false"?!1:g),g=this.scalar(g,c.K,ln.LongType.STRING,c.name).toString(),d[g]=f}}else if(c.repeat){if(a===null)continue;this.assert(Array.isArray(a),c.name,a);let d=u[l];for(let p of a){this.assert(p!==null,c.name,null);let m;switch(c.kind){case"message":m=c.T().internalJsonRead(p,n);break;case"enum":if(m=this.enum(c.T(),p,c.name,n.ignoreUnknownFields),m===!1)continue;break;case"scalar":m=this.scalar(p,c.T,c.L,c.name);break}this.assert(m!==void 0,c.name,a),d.push(m)}}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,s){if(e[0]=="google.protobuf.NullValue"&&$m.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 $m.assert(Number.isInteger(r),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${r}.`),r;case"string":let o=r;e[2]&&r.substring(0,e[2].length)===e[2]&&(o=r.substring(e[2].length));let a=e[1][o];return typeof a>"u"&&s?!1:($m.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}$m.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof r}".`)}scalar(e,r,n,s){let o;try{switch(r){case ln.ScalarType.DOUBLE:case ln.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===""){o="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){o="extra whitespace";break}if(typeof e!="string"&&typeof e!="number")break;let a=Number(e);if(Number.isNaN(a)){o="not a number";break}if(!Number.isFinite(a)){o="too large or small";break}return r==ln.ScalarType.FLOAT&&$m.assertFloat32(a),a;case ln.ScalarType.INT32:case ln.ScalarType.FIXED32:case ln.ScalarType.SFIXED32:case ln.ScalarType.SINT32:case ln.ScalarType.UINT32:if(e===null)return 0;let c;if(typeof e=="number"?c=e:e===""?o="empty string":typeof e=="string"&&(e.trim().length!==e.length?o="extra whitespace":c=Number(e)),c===void 0)break;return r==ln.ScalarType.UINT32?$m.assertUInt32(c):$m.assertInt32(c),c;case ln.ScalarType.INT64:case ln.ScalarType.SFIXED64:case ln.ScalarType.SINT64:if(e===null)return nT.reflectionLongConvert(rT.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return nT.reflectionLongConvert(rT.PbLong.from(e),n);case ln.ScalarType.FIXED64:case ln.ScalarType.UINT64:if(e===null)return nT.reflectionLongConvert(rT.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return nT.reflectionLongConvert(rT.PbULong.from(e),n);case ln.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case ln.ScalarType.STRING:if(e===null)return"";if(typeof e!="string"){o="extra whitespace";break}try{encodeURIComponent(e)}catch(l){l="invalid UTF8";break}return e;case ln.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return Uot.base64decode(e)}}catch(a){o=a.message}this.assert(!1,s+(o?" - "+o:""),e)}};sT.ReflectionJsonReader=Dz});var Oz=b(oT=>{"use strict";Object.defineProperty(oT,"__esModule",{value:!0});oT.ReflectionJsonWriter=void 0;var qot=$N(),xAe=Qd(),bs=ha(),sr=Jh(),Lz=class{static{i(this,"ReflectionJsonWriter")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}write(e,r){let n={},s=e;for(let o of this.fields){if(!o.oneof){let u=this.field(o,s[o.localName],r);u!==void 0&&(n[r.useProtoFieldName?o.name:o.jsonName]=u);continue}let a=s[o.oneof];if(a.oneofKind!==o.localName)continue;let c=o.kind=="scalar"||o.kind=="enum"?Object.assign(Object.assign({},r),{emitDefaultValues:!0}):r,l=this.field(o,a[o.localName],c);sr.assert(l!==void 0),n[r.useProtoFieldName?o.name:o.jsonName]=l}return n}field(e,r,n){let s;if(e.kind=="map"){sr.assert(typeof r=="object"&&r!==null);let o={};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);sr.assert(d!==void 0),o[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);sr.assert(d!==void 0),o[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){sr.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);sr.assert(d!==void 0),o[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(o).length>0)&&(s=o)}else if(e.repeat){sr.assert(Array.isArray(r));let o=[];switch(e.kind){case"scalar":for(let l=0;l0||n.emitDefaultValues)&&(s=o)}else switch(e.kind){case"scalar":s=this.scalar(e.T,r,e.name,e.opt,n.emitDefaultValues);break;case"enum":s=this.enum(e.T(),r,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":s=this.message(e.T(),r,e.name,n);break}return s}enum(e,r,n,s,o,a){if(e[0]=="google.protobuf.NullValue")return!o&&!s?void 0:null;if(r===void 0){sr.assert(s);return}if(!(r===0&&!o&&!s))return sr.assert(typeof r=="number"),sr.assert(Number.isInteger(r)),a||!e[1].hasOwnProperty(r)?r:e[2]?e[2]+e[1][r]:e[1][r]}message(e,r,n,s){return r===void 0?s.emitDefaultValues?null:void 0:e.internalJsonWrite(r,s)}scalar(e,r,n,s,o){if(r===void 0){sr.assert(s);return}let a=o||s;switch(e){case bs.ScalarType.INT32:case bs.ScalarType.SFIXED32:case bs.ScalarType.SINT32:return r===0?a?0:void 0:(sr.assertInt32(r),r);case bs.ScalarType.FIXED32:case bs.ScalarType.UINT32:return r===0?a?0:void 0:(sr.assertUInt32(r),r);case bs.ScalarType.FLOAT:sr.assertFloat32(r);case bs.ScalarType.DOUBLE:return r===0?a?0:void 0:(sr.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case bs.ScalarType.STRING:return r===""?a?"":void 0:(sr.assert(typeof r=="string"),r);case bs.ScalarType.BOOL:return r===!1?a?!1:void 0:(sr.assert(typeof r=="boolean"),r);case bs.ScalarType.UINT64:case bs.ScalarType.FIXED64:sr.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=xAe.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case bs.ScalarType.INT64:case bs.ScalarType.SFIXED64:case bs.ScalarType.SINT64:sr.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=xAe.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case bs.ScalarType.BYTES:return sr.assert(r instanceof Uint8Array),r.byteLength?qot.base64encode(r):a?"":void 0}}};oT.ReflectionJsonWriter=Lz});var aT=b(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});iT.reflectionScalarDefault=void 0;var ga=ha(),wAe=tT(),bAe=Qd();function $ot(t,e=ga.LongType.STRING){switch(t){case ga.ScalarType.BOOL:return!1;case ga.ScalarType.UINT64:case ga.ScalarType.FIXED64:return wAe.reflectionLongConvert(bAe.PbULong.ZERO,e);case ga.ScalarType.INT64:case ga.ScalarType.SFIXED64:case ga.ScalarType.SINT64:return wAe.reflectionLongConvert(bAe.PbLong.ZERO,e);case ga.ScalarType.DOUBLE:case ga.ScalarType.FLOAT:return 0;case ga.ScalarType.BYTES:return new Uint8Array(0);case ga.ScalarType.STRING:return"";default:return 0}}i($ot,"reflectionScalarDefault");iT.reflectionScalarDefault=$ot});var Fz=b(cT=>{"use strict";Object.defineProperty(cT,"__esModule",{value:!0});cT.ReflectionBinaryReader=void 0;var SAe=RI(),Or=ha(),kI=tT(),BAe=aT(),Mz=class{static{i(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,s){this.prepare();let o=s===void 0?e.len:e.pos+s;for(;e.pos{"use strict";Object.defineProperty(lT,"__esModule",{value:!0});lT.ReflectionBinaryWriter=void 0;var Fo=RI(),zt=ha(),Zh=Jh(),LI=Qd(),Uz=class{static{i(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 o of this.fields){let a,c,l=o.repeat,u=o.localName;if(o.oneof){let d=e[o.oneof];if(d.oneofKind!==u)continue;a=d[u],c=!0}else a=e[u],c=!1;switch(o.kind){case"scalar":case"enum":let d=o.kind=="enum"?zt.ScalarType.INT32:o.T;if(l)if(Zh.assert(Array.isArray(a)),l==zt.RepeatType.PACKED)this.packed(r,d,o.no,a);else for(let p of a)this.scalar(r,d,o.no,p,!0);else a===void 0?Zh.assert(o.opt):this.scalar(r,d,o.no,a,c||o.opt);break;case"message":if(l){Zh.assert(Array.isArray(a));for(let p of a)this.message(r,n,o.T(),o.no,p)}else this.message(r,n,o.T(),o.no,a);break;case"map":Zh.assert(typeof a=="object"&&a!==null);for(let[p,m]of Object.entries(a))this.mapEntry(r,n,o,p,m);break}}let s=n.writeUnknownFields;s!==!1&&(s===!0?Fo.UnknownFieldHandler.onWrite:s)(this.info.typeName,e,r)}mapEntry(e,r,n,s,o){e.tag(n.no,Fo.WireType.LengthDelimited),e.fork();let a=s;switch(n.K){case zt.ScalarType.INT32:case zt.ScalarType.FIXED32:case zt.ScalarType.UINT32:case zt.ScalarType.SFIXED32:case zt.ScalarType.SINT32:a=Number.parseInt(s);break;case zt.ScalarType.BOOL:Zh.assert(s=="true"||s=="false"),a=s=="true";break}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,o,!0);break;case"enum":this.scalar(e,zt.ScalarType.INT32,2,o,!0);break;case"message":this.message(e,r,n.V.T(),2,o);break}e.join()}message(e,r,n,s,o){o!==void 0&&(n.internalBinaryWrite(o,e.tag(s,Fo.WireType.LengthDelimited).fork(),r),e.join())}scalar(e,r,n,s,o){let[a,c,l]=this.scalarInfo(r,s);(!l||o)&&(e.tag(n,a),e[c](s))}packed(e,r,n,s){if(!s.length)return;Zh.assert(r!==zt.ScalarType.BYTES&&r!==zt.ScalarType.STRING),e.tag(n,Fo.WireType.LengthDelimited),e.fork();let[,o]=this.scalarInfo(r);for(let a=0;a{"use strict";Object.defineProperty(uT,"__esModule",{value:!0});uT.reflectionCreate=void 0;var Got=aT(),Hot=DI();function zot(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},Hot.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]=Got.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}i(zot,"reflectionCreate");uT.reflectionCreate=zot});var Gz=b(dT=>{"use strict";Object.defineProperty(dT,"__esModule",{value:!0});dT.reflectionMergePartial=void 0;function Vot(t,e,r){let n,s=r,o;for(let a of t.fields){let c=a.localName;if(a.oneof){let l=s[a.oneof];if(l?.oneofKind==null)continue;if(n=l[c],o=e[a.oneof],o.oneofKind=l.oneofKind,n==null){delete o[c];continue}}else if(n=s[c],o=e,n==null)continue;switch(a.repeat&&(o[c].length=n.length),a.kind){case"scalar":case"enum":if(a.repeat)for(let u=0;u{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});mT.reflectionEquals=void 0;var Hz=ha();function Yot(t,e,r){if(e===r)return!0;if(!e||!r)return!1;for(let n of t.fields){let s=n.localName,o=n.oneof?e[n.oneof][s]:e[s],a=n.oneof?r[n.oneof][s]:r[s];switch(n.kind){case"enum":case"scalar":let c=n.kind=="enum"?Hz.ScalarType.INT32:n.T;if(!(n.repeat?RAe(c,o,a):TAe(c,o,a)))return!1;break;case"map":if(!(n.V.kind=="message"?NAe(n.V.T(),pT(o),pT(a)):RAe(n.V.kind=="enum"?Hz.ScalarType.INT32:n.V.T,pT(o),pT(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?NAe(l,o,a):l.equals(o,a)))return!1;break}}return!0}i(Yot,"reflectionEquals");mT.reflectionEquals=Yot;var pT=Object.values;function TAe(t,e,r){if(e===r)return!0;if(t!==Hz.ScalarType.BYTES)return!1;let n=e,s=r;if(n.length!==s.length)return!1;for(let o=0;o{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});fT.MessageType=void 0;var Wot=DI(),jot=ha(),Jot=Qz(),Kot=kz(),Xot=Oz(),Zot=Fz(),eit=qz(),tit=$z(),Vz=Gz(),rit=UN(),PAe=Tz(),nit=zz(),sit=Nz(),oit=Rz(),vAe=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),iit=vAe[Wot.MESSAGE_TYPE]={},Yz=class{static{i(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(jot.normalizeFieldInfo),this.options=n??{},iit.value=this,this.messagePrototype=Object.create(null,vAe),this.refTypeCheck=new Jot.ReflectionTypeCheck(this),this.refJsonReader=new Kot.ReflectionJsonReader(this),this.refJsonWriter=new Xot.ReflectionJsonWriter(this),this.refBinReader=new Zot.ReflectionBinaryReader(this),this.refBinWriter=new eit.ReflectionBinaryWriter(this)}create(e){let r=tit.reflectionCreate(this);return e!==void 0&&Vz.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return Vz.reflectionMergePartial(this,r,e),r}equals(e,r){return nit.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){Vz.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=oit.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,PAe.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,PAe.jsonWriteOptions(r))}toJsonString(e,r){var n;let s=this.toJson(e,r);return JSON.stringify(s,null,(n=r?.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,r){let n=sit.binaryWriteOptions(r);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,r,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let s=n??this.create();return this.refJsonReader.read(e,s,r),s}throw new Error(`Unable to parse message ${this.typeName} from JSON ${rit.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,s){let o=s??this.create();return this.refBinReader.read(e,o,n,r),o}};fT.MessageType=Yz});var QAe=b(AT=>{"use strict";Object.defineProperty(AT,"__esModule",{value:!0});AT.containsMessageType=void 0;var ait=DI();function cit(t){return t[ait.MESSAGE_TYPE]!=null}i(cit,"containsMessageType");AT.containsMessageType=cit});var kAe=b(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.listEnumNumbers=_c.listEnumNames=_c.listEnumValues=_c.isEnumObject=void 0;function DAe(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}i(DAe,"isEnumObject");_c.isEnumObject=DAe;function Wz(t){if(!DAe(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}i(Wz,"listEnumValues");_c.listEnumValues=Wz;function lit(t){return Wz(t).map(e=>e.name)}i(lit,"listEnumNames");_c.listEnumNames=lit;function uit(t){return Wz(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}i(uit,"listEnumNumbers");_c.listEnumNumbers=uit});var Mr=b(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});var LAe=UN();Object.defineProperty(Pe,"typeofJsonValue",{enumerable:!0,get:i(function(){return LAe.typeofJsonValue},"get")});Object.defineProperty(Pe,"isJsonObject",{enumerable:!0,get:i(function(){return LAe.isJsonObject},"get")});var OAe=$N();Object.defineProperty(Pe,"base64decode",{enumerable:!0,get:i(function(){return OAe.base64decode},"get")});Object.defineProperty(Pe,"base64encode",{enumerable:!0,get:i(function(){return OAe.base64encode},"get")});var dit=lAe();Object.defineProperty(Pe,"utf8read",{enumerable:!0,get:i(function(){return dit.utf8read},"get")});var jz=RI();Object.defineProperty(Pe,"WireType",{enumerable:!0,get:i(function(){return jz.WireType},"get")});Object.defineProperty(Pe,"mergeBinaryOptions",{enumerable:!0,get:i(function(){return jz.mergeBinaryOptions},"get")});Object.defineProperty(Pe,"UnknownFieldHandler",{enumerable:!0,get:i(function(){return jz.UnknownFieldHandler},"get")});var MAe=Rz();Object.defineProperty(Pe,"BinaryReader",{enumerable:!0,get:i(function(){return MAe.BinaryReader},"get")});Object.defineProperty(Pe,"binaryReadOptions",{enumerable:!0,get:i(function(){return MAe.binaryReadOptions},"get")});var FAe=Nz();Object.defineProperty(Pe,"BinaryWriter",{enumerable:!0,get:i(function(){return FAe.BinaryWriter},"get")});Object.defineProperty(Pe,"binaryWriteOptions",{enumerable:!0,get:i(function(){return FAe.binaryWriteOptions},"get")});var UAe=Qd();Object.defineProperty(Pe,"PbLong",{enumerable:!0,get:i(function(){return UAe.PbLong},"get")});Object.defineProperty(Pe,"PbULong",{enumerable:!0,get:i(function(){return UAe.PbULong},"get")});var Jz=Tz();Object.defineProperty(Pe,"jsonReadOptions",{enumerable:!0,get:i(function(){return Jz.jsonReadOptions},"get")});Object.defineProperty(Pe,"jsonWriteOptions",{enumerable:!0,get:i(function(){return Jz.jsonWriteOptions},"get")});Object.defineProperty(Pe,"mergeJsonOptions",{enumerable:!0,get:i(function(){return Jz.mergeJsonOptions},"get")});var pit=DI();Object.defineProperty(Pe,"MESSAGE_TYPE",{enumerable:!0,get:i(function(){return pit.MESSAGE_TYPE},"get")});var mit=_Ae();Object.defineProperty(Pe,"MessageType",{enumerable:!0,get:i(function(){return mit.MessageType},"get")});var Gm=ha();Object.defineProperty(Pe,"ScalarType",{enumerable:!0,get:i(function(){return Gm.ScalarType},"get")});Object.defineProperty(Pe,"LongType",{enumerable:!0,get:i(function(){return Gm.LongType},"get")});Object.defineProperty(Pe,"RepeatType",{enumerable:!0,get:i(function(){return Gm.RepeatType},"get")});Object.defineProperty(Pe,"normalizeFieldInfo",{enumerable:!0,get:i(function(){return Gm.normalizeFieldInfo},"get")});Object.defineProperty(Pe,"readFieldOptions",{enumerable:!0,get:i(function(){return Gm.readFieldOptions},"get")});Object.defineProperty(Pe,"readFieldOption",{enumerable:!0,get:i(function(){return Gm.readFieldOption},"get")});Object.defineProperty(Pe,"readMessageOption",{enumerable:!0,get:i(function(){return Gm.readMessageOption},"get")});var fit=Qz();Object.defineProperty(Pe,"ReflectionTypeCheck",{enumerable:!0,get:i(function(){return fit.ReflectionTypeCheck},"get")});var Ait=$z();Object.defineProperty(Pe,"reflectionCreate",{enumerable:!0,get:i(function(){return Ait.reflectionCreate},"get")});var hit=aT();Object.defineProperty(Pe,"reflectionScalarDefault",{enumerable:!0,get:i(function(){return hit.reflectionScalarDefault},"get")});var git=Gz();Object.defineProperty(Pe,"reflectionMergePartial",{enumerable:!0,get:i(function(){return git.reflectionMergePartial},"get")});var yit=zz();Object.defineProperty(Pe,"reflectionEquals",{enumerable:!0,get:i(function(){return yit.reflectionEquals},"get")});var Eit=Fz();Object.defineProperty(Pe,"ReflectionBinaryReader",{enumerable:!0,get:i(function(){return Eit.ReflectionBinaryReader},"get")});var Cit=qz();Object.defineProperty(Pe,"ReflectionBinaryWriter",{enumerable:!0,get:i(function(){return Cit.ReflectionBinaryWriter},"get")});var Iit=kz();Object.defineProperty(Pe,"ReflectionJsonReader",{enumerable:!0,get:i(function(){return Iit.ReflectionJsonReader},"get")});var xit=Oz();Object.defineProperty(Pe,"ReflectionJsonWriter",{enumerable:!0,get:i(function(){return xit.ReflectionJsonWriter},"get")});var wit=QAe();Object.defineProperty(Pe,"containsMessageType",{enumerable:!0,get:i(function(){return wit.containsMessageType},"get")});var OI=vz();Object.defineProperty(Pe,"isOneofGroup",{enumerable:!0,get:i(function(){return OI.isOneofGroup},"get")});Object.defineProperty(Pe,"setOneofValue",{enumerable:!0,get:i(function(){return OI.setOneofValue},"get")});Object.defineProperty(Pe,"getOneofValue",{enumerable:!0,get:i(function(){return OI.getOneofValue},"get")});Object.defineProperty(Pe,"clearOneofValue",{enumerable:!0,get:i(function(){return OI.clearOneofValue},"get")});Object.defineProperty(Pe,"getSelectedOneofValue",{enumerable:!0,get:i(function(){return OI.getSelectedOneofValue},"get")});var hT=kAe();Object.defineProperty(Pe,"listEnumValues",{enumerable:!0,get:i(function(){return hT.listEnumValues},"get")});Object.defineProperty(Pe,"listEnumNames",{enumerable:!0,get:i(function(){return hT.listEnumNames},"get")});Object.defineProperty(Pe,"listEnumNumbers",{enumerable:!0,get:i(function(){return hT.listEnumNumbers},"get")});Object.defineProperty(Pe,"isEnumObject",{enumerable:!0,get:i(function(){return hT.isEnumObject},"get")});var bit=Pz();Object.defineProperty(Pe,"lowerCamelCase",{enumerable:!0,get:i(function(){return bit.lowerCamelCase},"get")});var MI=Jh();Object.defineProperty(Pe,"assert",{enumerable:!0,get:i(function(){return MI.assert},"get")});Object.defineProperty(Pe,"assertNever",{enumerable:!0,get:i(function(){return MI.assertNever},"get")});Object.defineProperty(Pe,"assertInt32",{enumerable:!0,get:i(function(){return MI.assertInt32},"get")});Object.defineProperty(Pe,"assertUInt32",{enumerable:!0,get:i(function(){return MI.assertUInt32},"get")});Object.defineProperty(Pe,"assertFloat32",{enumerable:!0,get:i(function(){return MI.assertFloat32},"get")})});var Kz=b(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.readServiceOption=Qc.readMethodOption=Qc.readMethodOptions=Qc.normalizeMethodInfo=void 0;var Sit=Mr();function Bit(t,e){var r,n,s;let o=t;return o.service=e,o.localName=(r=o.localName)!==null&&r!==void 0?r:Sit.lowerCamelCase(o.name),o.serverStreaming=!!o.serverStreaming,o.clientStreaming=!!o.clientStreaming,o.options=(n=o.options)!==null&&n!==void 0?n:{},o.idempotency=(s=o.idempotency)!==null&&s!==void 0?s:void 0,o}i(Bit,"normalizeMethodInfo");Qc.normalizeMethodInfo=Bit;function Rit(t,e,r,n){var s;let o=(s=t.methods.find((a,c)=>a.localName===e||c===e))===null||s===void 0?void 0:s.options;return o&&o[r]?n.fromJson(o[r]):void 0}i(Rit,"readMethodOptions");Qc.readMethodOptions=Rit;function Nit(t,e,r,n){var s;let o=(s=t.methods.find((c,l)=>c.localName===e||l===e))===null||s===void 0?void 0:s.options;if(!o)return;let a=o[r];return a===void 0?a:n?n.fromJson(a):a}i(Nit,"readMethodOption");Qc.readMethodOption=Nit;function Tit(t,e,r){let n=t.options;if(!n)return;let s=n[e];return s===void 0?s:r?r.fromJson(s):s}i(Tit,"readServiceOption");Qc.readServiceOption=Tit});var qAe=b(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});gT.ServiceType=void 0;var Pit=Kz(),Xz=class{static{i(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(s=>Pit.normalizeMethodInfo(s,this)),this.options=n??{}}};gT.ServiceType=Xz});var e3=b(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.RpcError=void 0;var Zz=class extends Error{static{i(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,s]of r)e.push(` ${n}: ${s}`)}return e.join(` -`)}};yT.RpcError=Zz});var t3=b(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0});CT.mergeRpcOptions=void 0;var $Ae=Mr();function vit(t,e){if(!e)return t;let r={};ET(t,r),ET(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=$Ae.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=$Ae.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},ET(t.meta,r.meta),ET(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}i(vit,"mergeRpcOptions");CT.mergeRpcOptions=vit;function ET(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}i(ET,"copy")});var n3=b(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.Deferred=Hm.DeferredState=void 0;var Dc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Dc=Hm.DeferredState||(Hm.DeferredState={}));var r3=class{static{i(this,"Deferred")}constructor(e=!0){this._state=Dc.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!==Dc.PENDING)throw new Error(`cannot resolve ${Dc[this.state].toLowerCase()}`);this._resolve(e),this._state=Dc.RESOLVED}reject(e){if(this.state!==Dc.PENDING)throw new Error(`cannot reject ${Dc[this.state].toLowerCase()}`);this._reject(e),this._state=Dc.REJECTED}resolvePending(e){this._state===Dc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Dc.PENDING&&this.reject(e)}};Hm.Deferred=r3});var o3=b(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.RpcOutputStreamController=void 0;var GAe=n3(),zm=Mr(),s3=class{static{i(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){zm.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){zm.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){zm.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(){zm.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:i(()=>{let e=this._itState;zm.assert(e,"bad state"),zm.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 GAe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;zm.assert(n.state==GAe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};IT.RpcOutputStreamController=s3});var a3=b(eg=>{"use strict";var _it=eg&&eg.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(eg,"__esModule",{value:!0});eg.UnaryCall=void 0;var i3=class{static{i(this,"UnaryCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=o,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 _it(this,void 0,void 0,function*(){let[e,r,n,s]=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:s}})}};eg.UnaryCall=i3});var l3=b(tg=>{"use strict";var Qit=tg&&tg.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(tg,"__esModule",{value:!0});tg.ServerStreamingCall=void 0;var c3=class{static{i(this,"ServerStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.responses=o,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 Qit(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}})}};tg.ServerStreamingCall=c3});var d3=b(rg=>{"use strict";var Dit=rg&&rg.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(rg,"__esModule",{value:!0});rg.ClientStreamingCall=void 0;var u3=class{static{i(this,"ClientStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=s,this.response=o,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 Dit(this,void 0,void 0,function*(){let[e,r,n,s]=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:s}})}};rg.ClientStreamingCall=u3});var m3=b(ng=>{"use strict";var kit=ng&&ng.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(ng,"__esModule",{value:!0});ng.DuplexStreamingCall=void 0;var p3=class{static{i(this,"DuplexStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=s,this.responses=o,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 kit(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}})}};ng.DuplexStreamingCall=p3});var zAe=b(ig=>{"use strict";var Lit=ig&&ig.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(ig,"__esModule",{value:!0});ig.TestTransport=void 0;var Si=e3(),xT=Mr(),HAe=o3(),Oit=t3(),Mit=a3(),Fit=l3(),Uit=d3(),qit=m3(),og=class t{static{i(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 sg?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof sg?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 Si.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof Si.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(xT.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),xT.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return Lit(this,void 0,void 0,function*(){let s=[];if(this.data.response===void 0)s.push(e.O.create());else if(Array.isArray(this.data.response))for(let o of this.data.response)xT.assert(e.O.is(o)),s.push(o);else this.data.response instanceof Si.RpcError||(xT.assert(e.O.is(this.data.response)),s.push(this.data.response));try{yield In(this.responseDelay,n)(void 0)}catch(o){r.notifyError(o);return}if(this.data.response instanceof Si.RpcError){r.notifyError(this.data.response);return}for(let o of s){r.notifyMessage(o);try{yield In(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof Si.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof Si.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 Si.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 Si.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return Oit.mergeRpcOptions({},e)}unary(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(In(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(In(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(In(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(In(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new Mit.UnaryCall(e,o,r,a,c,l,u)}serverStreaming(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(In(this.headerDelay,n.abort)),c=new HAe.RpcOutputStreamController,l=a.then(In(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(In(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new Fit.ServerStreamingCall(e,o,r,a,c,u,d)}clientStreaming(e,r){var n;let s=(n=r.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(In(this.headerDelay,r.abort)),a=o.catch(u=>{}).then(In(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(In(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(In(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new sg(this.data,r.abort),new Uit.ClientStreamingCall(e,s,this.lastInput,o,a,c,l)}duplex(e,r){var n;let s=(n=r.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(In(this.headerDelay,r.abort)),a=new HAe.RpcOutputStreamController,c=o.then(In(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(In(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new sg(this.data,r.abort),new qit.DuplexStreamingCall(e,s,this.lastInput,o,a,l,u)}};ig.TestTransport=og;og.defaultHeaders={responseHeader:"test"};og.defaultStatus={code:"OK",detail:"all good"};og.defaultTrailers={responseTrailer:"test"};function In(t,e){return r=>new Promise((n,s)=>{if(e?.aborted)s(new Si.RpcError("user cancel","CANCELLED"));else{let o=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(o),s(new Si.RpcError("user cancel","CANCELLED"))})}})}i(In,"delay");var sg=class{static{i(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 Si.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(In(r,this.abort))}complete(){if(this.data.inputComplete instanceof Si.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(In(e,this.abort))}}});var VAe=b(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.stackDuplexStreamingInterceptors=Bi.stackClientStreamingInterceptors=Bi.stackServerStreamingInterceptors=Bi.stackUnaryInterceptors=Bi.stackIntercept=void 0;var $it=Mr();function FI(t,e,r,n,s){var o,a,c,l;if(t=="unary"){let u=i((d,p,m)=>e.unary(d,p,m),"tail");for(let d of((o=n.interceptors)!==null&&o!==void 0?o:[]).filter(p=>p.interceptUnary).reverse()){let p=u;u=i((m,f,g)=>d.interceptUnary(p,m,f,g),"tail")}return u(r,s,n)}if(t=="serverStreaming"){let u=i((d,p,m)=>e.serverStreaming(d,p,m),"tail");for(let d of((a=n.interceptors)!==null&&a!==void 0?a:[]).filter(p=>p.interceptServerStreaming).reverse()){let p=u;u=i((m,f,g)=>d.interceptServerStreaming(p,m,f,g),"tail")}return u(r,s,n)}if(t=="clientStreaming"){let u=i((d,p)=>e.clientStreaming(d,p),"tail");for(let d of((c=n.interceptors)!==null&&c!==void 0?c:[]).filter(p=>p.interceptClientStreaming).reverse()){let p=u;u=i((m,f)=>d.interceptClientStreaming(p,m,f),"tail")}return u(r,n)}if(t=="duplex"){let u=i((d,p)=>e.duplex(d,p),"tail");for(let d of((l=n.interceptors)!==null&&l!==void 0?l:[]).filter(p=>p.interceptDuplex).reverse()){let p=u;u=i((m,f)=>d.interceptDuplex(p,m,f),"tail")}return u(r,n)}$it.assertNever(t)}i(FI,"stackIntercept");Bi.stackIntercept=FI;function Git(t,e,r,n){return FI("unary",t,e,n,r)}i(Git,"stackUnaryInterceptors");Bi.stackUnaryInterceptors=Git;function Hit(t,e,r,n){return FI("serverStreaming",t,e,n,r)}i(Hit,"stackServerStreamingInterceptors");Bi.stackServerStreamingInterceptors=Hit;function zit(t,e,r){return FI("clientStreaming",t,e,r)}i(zit,"stackClientStreamingInterceptors");Bi.stackClientStreamingInterceptors=zit;function Vit(t,e,r){return FI("duplex",t,e,r)}i(Vit,"stackDuplexStreamingInterceptors");Bi.stackDuplexStreamingInterceptors=Vit});var YAe=b(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});wT.ServerCallContextController=void 0;var f3=class{static{i(this,"ServerCallContextController")}constructor(e,r,n,s,o={code:"OK",detail:""}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=r,this.deadline=n,this.trailers={},this._sendRH=s,this.status=o}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)}}};wT.ServerCallContextController=f3});var jAe=b(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});var Yit=qAe();Object.defineProperty(Rr,"ServiceType",{enumerable:!0,get:i(function(){return Yit.ServiceType},"get")});var A3=Kz();Object.defineProperty(Rr,"readMethodOptions",{enumerable:!0,get:i(function(){return A3.readMethodOptions},"get")});Object.defineProperty(Rr,"readMethodOption",{enumerable:!0,get:i(function(){return A3.readMethodOption},"get")});Object.defineProperty(Rr,"readServiceOption",{enumerable:!0,get:i(function(){return A3.readServiceOption},"get")});var Wit=e3();Object.defineProperty(Rr,"RpcError",{enumerable:!0,get:i(function(){return Wit.RpcError},"get")});var jit=t3();Object.defineProperty(Rr,"mergeRpcOptions",{enumerable:!0,get:i(function(){return jit.mergeRpcOptions},"get")});var Jit=o3();Object.defineProperty(Rr,"RpcOutputStreamController",{enumerable:!0,get:i(function(){return Jit.RpcOutputStreamController},"get")});var Kit=zAe();Object.defineProperty(Rr,"TestTransport",{enumerable:!0,get:i(function(){return Kit.TestTransport},"get")});var WAe=n3();Object.defineProperty(Rr,"Deferred",{enumerable:!0,get:i(function(){return WAe.Deferred},"get")});Object.defineProperty(Rr,"DeferredState",{enumerable:!0,get:i(function(){return WAe.DeferredState},"get")});var Xit=m3();Object.defineProperty(Rr,"DuplexStreamingCall",{enumerable:!0,get:i(function(){return Xit.DuplexStreamingCall},"get")});var Zit=d3();Object.defineProperty(Rr,"ClientStreamingCall",{enumerable:!0,get:i(function(){return Zit.ClientStreamingCall},"get")});var eat=l3();Object.defineProperty(Rr,"ServerStreamingCall",{enumerable:!0,get:i(function(){return eat.ServerStreamingCall},"get")});var tat=a3();Object.defineProperty(Rr,"UnaryCall",{enumerable:!0,get:i(function(){return tat.UnaryCall},"get")});var UI=VAe();Object.defineProperty(Rr,"stackIntercept",{enumerable:!0,get:i(function(){return UI.stackIntercept},"get")});Object.defineProperty(Rr,"stackDuplexStreamingInterceptors",{enumerable:!0,get:i(function(){return UI.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(Rr,"stackClientStreamingInterceptors",{enumerable:!0,get:i(function(){return UI.stackClientStreamingInterceptors},"get")});Object.defineProperty(Rr,"stackServerStreamingInterceptors",{enumerable:!0,get:i(function(){return UI.stackServerStreamingInterceptors},"get")});Object.defineProperty(Rr,"stackUnaryInterceptors",{enumerable:!0,get:i(function(){return UI.stackUnaryInterceptors},"get")});var rat=YAe();Object.defineProperty(Rr,"ServerCallContextController",{enumerable:!0,get:i(function(){return rat.ServerCallContextController},"get")})});var fg=b((iur,Zhe)=>{"use strict";var Olt="2.0.0",Mlt=Number.MAX_SAFE_INTEGER||9007199254740991,Flt=16,Ult=250,qlt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Zhe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Flt,MAX_SAFE_BUILD_LENGTH:Ult,MAX_SAFE_INTEGER:Mlt,RELEASE_TYPES:qlt,SEMVER_SPEC_VERSION:Olt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var WI=b((aur,ege)=>{"use strict";var $lt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};ege.exports=$lt});var Ag=b((Oc,tge)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:sV,MAX_SAFE_BUILD_LENGTH:Glt,MAX_LENGTH:Hlt}=fg(),zlt=WI();Oc=tge.exports={};var Vlt=Oc.re=[],Ylt=Oc.safeRe=[],ue=Oc.src=[],Wlt=Oc.safeSrc=[],de=Oc.t={},jlt=0,oV="[a-zA-Z0-9-]",Jlt=[["\\s",1],["\\d",Hlt],[oV,Glt]],Klt=i(t=>{for(let[e,r]of Jlt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),rt=i((t,e,r)=>{let n=Klt(e),s=jlt++;zlt(t,s,e),de[t]=s,ue[s]=e,Wlt[s]=n,Vlt[s]=new RegExp(e,r?"g":void 0),Ylt[s]=new RegExp(n,r?"g":void 0)},"createToken");rt("NUMERICIDENTIFIER","0|[1-9]\\d*");rt("NUMERICIDENTIFIERLOOSE","\\d+");rt("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${oV}*`);rt("MAINVERSION",`(${ue[de.NUMERICIDENTIFIER]})\\.(${ue[de.NUMERICIDENTIFIER]})\\.(${ue[de.NUMERICIDENTIFIER]})`);rt("MAINVERSIONLOOSE",`(${ue[de.NUMERICIDENTIFIERLOOSE]})\\.(${ue[de.NUMERICIDENTIFIERLOOSE]})\\.(${ue[de.NUMERICIDENTIFIERLOOSE]})`);rt("PRERELEASEIDENTIFIER",`(?:${ue[de.NONNUMERICIDENTIFIER]}|${ue[de.NUMERICIDENTIFIER]})`);rt("PRERELEASEIDENTIFIERLOOSE",`(?:${ue[de.NONNUMERICIDENTIFIER]}|${ue[de.NUMERICIDENTIFIERLOOSE]})`);rt("PRERELEASE",`(?:-(${ue[de.PRERELEASEIDENTIFIER]}(?:\\.${ue[de.PRERELEASEIDENTIFIER]})*))`);rt("PRERELEASELOOSE",`(?:-?(${ue[de.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ue[de.PRERELEASEIDENTIFIERLOOSE]})*))`);rt("BUILDIDENTIFIER",`${oV}+`);rt("BUILD",`(?:\\+(${ue[de.BUILDIDENTIFIER]}(?:\\.${ue[de.BUILDIDENTIFIER]})*))`);rt("FULLPLAIN",`v?${ue[de.MAINVERSION]}${ue[de.PRERELEASE]}?${ue[de.BUILD]}?`);rt("FULL",`^${ue[de.FULLPLAIN]}$`);rt("LOOSEPLAIN",`[v=\\s]*${ue[de.MAINVERSIONLOOSE]}${ue[de.PRERELEASELOOSE]}?${ue[de.BUILD]}?`);rt("LOOSE",`^${ue[de.LOOSEPLAIN]}$`);rt("GTLT","((?:<|>)?=?)");rt("XRANGEIDENTIFIERLOOSE",`${ue[de.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);rt("XRANGEIDENTIFIER",`${ue[de.NUMERICIDENTIFIER]}|x|X|\\*`);rt("XRANGEPLAIN",`[v=\\s]*(${ue[de.XRANGEIDENTIFIER]})(?:\\.(${ue[de.XRANGEIDENTIFIER]})(?:\\.(${ue[de.XRANGEIDENTIFIER]})(?:${ue[de.PRERELEASE]})?${ue[de.BUILD]}?)?)?`);rt("XRANGEPLAINLOOSE",`[v=\\s]*(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:${ue[de.PRERELEASELOOSE]})?${ue[de.BUILD]}?)?)?`);rt("XRANGE",`^${ue[de.GTLT]}\\s*${ue[de.XRANGEPLAIN]}$`);rt("XRANGELOOSE",`^${ue[de.GTLT]}\\s*${ue[de.XRANGEPLAINLOOSE]}$`);rt("COERCEPLAIN",`(^|[^\\d])(\\d{1,${sV}})(?:\\.(\\d{1,${sV}}))?(?:\\.(\\d{1,${sV}}))?`);rt("COERCE",`${ue[de.COERCEPLAIN]}(?:$|[^\\d])`);rt("COERCEFULL",ue[de.COERCEPLAIN]+`(?:${ue[de.PRERELEASE]})?(?:${ue[de.BUILD]})?(?:$|[^\\d])`);rt("COERCERTL",ue[de.COERCE],!0);rt("COERCERTLFULL",ue[de.COERCEFULL],!0);rt("LONETILDE","(?:~>?)");rt("TILDETRIM",`(\\s*)${ue[de.LONETILDE]}\\s+`,!0);Oc.tildeTrimReplace="$1~";rt("TILDE",`^${ue[de.LONETILDE]}${ue[de.XRANGEPLAIN]}$`);rt("TILDELOOSE",`^${ue[de.LONETILDE]}${ue[de.XRANGEPLAINLOOSE]}$`);rt("LONECARET","(?:\\^)");rt("CARETTRIM",`(\\s*)${ue[de.LONECARET]}\\s+`,!0);Oc.caretTrimReplace="$1^";rt("CARET",`^${ue[de.LONECARET]}${ue[de.XRANGEPLAIN]}$`);rt("CARETLOOSE",`^${ue[de.LONECARET]}${ue[de.XRANGEPLAINLOOSE]}$`);rt("COMPARATORLOOSE",`^${ue[de.GTLT]}\\s*(${ue[de.LOOSEPLAIN]})$|^$`);rt("COMPARATOR",`^${ue[de.GTLT]}\\s*(${ue[de.FULLPLAIN]})$|^$`);rt("COMPARATORTRIM",`(\\s*)${ue[de.GTLT]}\\s*(${ue[de.LOOSEPLAIN]}|${ue[de.XRANGEPLAIN]})`,!0);Oc.comparatorTrimReplace="$1$2$3";rt("HYPHENRANGE",`^\\s*(${ue[de.XRANGEPLAIN]})\\s+-\\s+(${ue[de.XRANGEPLAIN]})\\s*$`);rt("HYPHENRANGELOOSE",`^\\s*(${ue[de.XRANGEPLAINLOOSE]})\\s+-\\s+(${ue[de.XRANGEPLAINLOOSE]})\\s*$`);rt("STAR","(<|>)?=?\\s*\\*");rt("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");rt("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var LT=b((lur,rge)=>{"use strict";var Xlt=Object.freeze({loose:!0}),Zlt=Object.freeze({}),eut=i(t=>t?typeof t!="object"?Xlt:t:Zlt,"parseOptions");rge.exports=eut});var iV=b((dur,oge)=>{"use strict";var nge=/^[0-9]+$/,sge=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tsge(e,t),"rcompareIdentifiers");oge.exports={compareIdentifiers:sge,rcompareIdentifiers:tut}});var vn=b((mur,age)=>{"use strict";var OT=WI(),{MAX_LENGTH:ige,MAX_SAFE_INTEGER:MT}=fg(),{safeRe:FT,t:UT}=Ag(),rut=LT(),{compareIdentifiers:aV}=iV(),cV=class t{static{i(this,"SemVer")}constructor(e,r){if(r=rut(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>ige)throw new TypeError(`version is longer than ${ige} characters`);OT("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?FT[UT.LOOSE]:FT[UT.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>MT||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MT||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MT||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&oe.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],s=e.prerelease[r];if(OT("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return aV(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(OT("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return aV(n,s)}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 s=`-${r}`.match(this.options.loose?FT[UT.PRERELEASELOOSE]:FT[UT.PRERELEASE]);if(!s||s[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 s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];n===!1&&(o=[r]),aV(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};age.exports=cV});var Md=b((Aur,lge)=>{"use strict";var cge=vn(),nut=i((t,e,r=!1)=>{if(t instanceof cge)return t;try{return new cge(t,e)}catch(n){if(!r)return null;throw n}},"parse");lge.exports=nut});var dge=b((gur,uge)=>{"use strict";var sut=Md(),out=i((t,e)=>{let r=sut(t,e);return r?r.version:null},"valid");uge.exports=out});var mge=b((Eur,pge)=>{"use strict";var iut=Md(),aut=i((t,e)=>{let r=iut(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");pge.exports=aut});var hge=b((Iur,Age)=>{"use strict";var fge=vn(),cut=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new fge(t instanceof fge?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Age.exports=cut});var Ege=b((wur,yge)=>{"use strict";var gge=Md(),lut=i((t,e)=>{let r=gge(t,null,!0),n=gge(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?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");yge.exports=lut});var Ige=b((Sur,Cge)=>{"use strict";var uut=vn(),dut=i((t,e)=>new uut(t,e).major,"major");Cge.exports=dut});var wge=b((Rur,xge)=>{"use strict";var put=vn(),mut=i((t,e)=>new put(t,e).minor,"minor");xge.exports=mut});var Sge=b((Tur,bge)=>{"use strict";var fut=vn(),Aut=i((t,e)=>new fut(t,e).patch,"patch");bge.exports=Aut});var Rge=b((vur,Bge)=>{"use strict";var hut=Md(),gut=i((t,e)=>{let r=hut(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Bge.exports=gut});var Ri=b((Qur,Tge)=>{"use strict";var Nge=vn(),yut=i((t,e,r)=>new Nge(t,r).compare(new Nge(e,r)),"compare");Tge.exports=yut});var vge=b((kur,Pge)=>{"use strict";var Eut=Ri(),Cut=i((t,e,r)=>Eut(e,t,r),"rcompare");Pge.exports=Cut});var Qge=b((Our,_ge)=>{"use strict";var Iut=Ri(),xut=i((t,e)=>Iut(t,e,!0),"compareLoose");_ge.exports=xut});var qT=b((Fur,kge)=>{"use strict";var Dge=vn(),wut=i((t,e,r)=>{let n=new Dge(t,r),s=new Dge(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");kge.exports=wut});var Oge=b((qur,Lge)=>{"use strict";var but=qT(),Sut=i((t,e)=>t.sort((r,n)=>but(r,n,e)),"sort");Lge.exports=Sut});var Fge=b((Gur,Mge)=>{"use strict";var But=qT(),Rut=i((t,e)=>t.sort((r,n)=>But(n,r,e)),"rsort");Mge.exports=Rut});var jI=b((zur,Uge)=>{"use strict";var Nut=Ri(),Tut=i((t,e,r)=>Nut(t,e,r)>0,"gt");Uge.exports=Tut});var $T=b((Yur,qge)=>{"use strict";var Put=Ri(),vut=i((t,e,r)=>Put(t,e,r)<0,"lt");qge.exports=vut});var lV=b((jur,$ge)=>{"use strict";var _ut=Ri(),Qut=i((t,e,r)=>_ut(t,e,r)===0,"eq");$ge.exports=Qut});var uV=b((Kur,Gge)=>{"use strict";var Dut=Ri(),kut=i((t,e,r)=>Dut(t,e,r)!==0,"neq");Gge.exports=kut});var GT=b((Zur,Hge)=>{"use strict";var Lut=Ri(),Out=i((t,e,r)=>Lut(t,e,r)>=0,"gte");Hge.exports=Out});var HT=b((tdr,zge)=>{"use strict";var Mut=Ri(),Fut=i((t,e,r)=>Mut(t,e,r)<=0,"lte");zge.exports=Fut});var dV=b((ndr,Vge)=>{"use strict";var Uut=lV(),qut=uV(),$ut=jI(),Gut=GT(),Hut=$T(),zut=HT(),Vut=i((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 Uut(t,r,n);case"!=":return qut(t,r,n);case">":return $ut(t,r,n);case">=":return Gut(t,r,n);case"<":return Hut(t,r,n);case"<=":return zut(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Vge.exports=Vut});var Wge=b((odr,Yge)=>{"use strict";var Yut=vn(),Wut=Md(),{safeRe:zT,t:VT}=Ag(),jut=i((t,e)=>{if(t instanceof Yut)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?zT[VT.COERCEFULL]:zT[VT.COERCE]);else{let l=e.includePrerelease?zT[VT.COERCERTLFULL]:zT[VT.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],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return Wut(`${n}.${s}.${o}${a}${c}`,e)},"coerce");Yge.exports=jut});var Jge=b((adr,jge)=>{"use strict";var Jut=Md(),Kut=fg(),Xut=vn(),Zut=i((t,e,r)=>{if(!Kut.RELEASE_TYPES.includes(e))return null;let n=edt(t,r);return n&&tdt(n,e)},"truncate"),edt=i((t,e)=>{let r=t instanceof Xut?t.version:t;return Jut(r,e)},"cloneInputVersion"),tdt=i((t,e)=>{if(rdt(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"),rdt=i(t=>t.startsWith("pre"),"isPrerelease");jge.exports=Zut});var Xge=b((ldr,Kge)=>{"use strict";var pV=class{static{i(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 s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};Kge.exports=pV});var Ni=b((ddr,rye)=>{"use strict";var ndt=/\s+/g,mV=class t{static{i(this,"Range")}constructor(e,r){if(r=odt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof fV)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(ndt," "),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(s=>!eye(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&fdt(s[0])){this.set=[s];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(mdt,"");let n=((this.options.includePrerelease&&ddt)|(this.options.loose&&pdt))+":"+e,s=Zge.get(n);if(s)return s;let o=this.options.loose,a=o?Ss[_n.HYPHENRANGELOOSE]:Ss[_n.HYPHENRANGE];e=e.replace(a,bdt(this.options.includePrerelease)),jt("hyphen replace",e),e=e.replace(Ss[_n.COMPARATORTRIM],cdt),jt("comparator trim",e),e=e.replace(Ss[_n.TILDETRIM],ldt),jt("tilde trim",e),e=e.replace(Ss[_n.CARETTRIM],udt),jt("caret trim",e);let c=e.split(" ").map(p=>Adt(p,this.options)).join(" ").split(/\s+/).map(p=>wdt(p,this.options));o&&(c=c.filter(p=>(jt("loose invalid filter",p,this.options),!!p.match(Ss[_n.COMPARATORLOOSE])))),jt("range list",c);let l=new Map,u=c.map(p=>new fV(p,this.options));for(let p of u){if(eye(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Zge.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>tye(n,r)&&e.set.some(s=>tye(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new idt(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),fdt=i(t=>t.value==="","isAny"),tye=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),Adt=i((t,e)=>(t=t.replace(Ss[_n.BUILD],""),jt("comp",t,e),t=ydt(t,e),jt("caret",t),t=hdt(t,e),jt("tildes",t),t=Cdt(t,e),jt("xrange",t),t=xdt(t,e),jt("stars",t),t),"parseComparator"),Bs=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),hdt=i((t,e)=>t.trim().split(/\s+/).map(r=>gdt(r,e)).join(" "),"replaceTildes"),gdt=i((t,e)=>{let r=e.loose?Ss[_n.TILDELOOSE]:Ss[_n.TILDE];return t.replace(r,(n,s,o,a,c)=>{jt("tilde",t,n,s,o,a,c);let l;return Bs(s)?l="":Bs(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:Bs(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(jt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,jt("tilde return",l),l})},"replaceTilde"),ydt=i((t,e)=>t.trim().split(/\s+/).map(r=>Edt(r,e)).join(" "),"replaceCarets"),Edt=i((t,e)=>{jt("caret",t,e);let r=e.loose?Ss[_n.CARETLOOSE]:Ss[_n.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{jt("caret",t,s,o,a,c,l);let u;return Bs(o)?u="":Bs(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Bs(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(jt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(jt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),jt("caret return",u),u})},"replaceCaret"),Cdt=i((t,e)=>(jt("replaceXRanges",t,e),t.split(/\s+/).map(r=>Idt(r,e)).join(" ")),"replaceXRanges"),Idt=i((t,e)=>{t=t.trim();let r=e.loose?Ss[_n.XRANGELOOSE]:Ss[_n.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{jt("xRange",t,n,s,o,a,c,l);let u=Bs(o),d=u||Bs(a),p=d||Bs(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),jt("xRange return",n),n})},"replaceXRange"),xdt=i((t,e)=>(jt("replaceStars",t,e),t.trim().replace(Ss[_n.STAR],"")),"replaceStars"),wdt=i((t,e)=>(jt("replaceGTE0",t,e),t.trim().replace(Ss[e.includePrerelease?_n.GTE0PRE:_n.GTE0],"")),"replaceGTE0"),bdt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,m)=>(Bs(n)?r="":Bs(s)?r=`>=${n}.0.0${t?"-0":""}`:Bs(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Bs(u)?l="":Bs(d)?l=`<${+u+1}.0.0-0`:Bs(p)?l=`<${u}.${+d+1}.0-0`:m?l=`<=${u}.${d}.${p}-${m}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),Sdt=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var JI=b((mdr,cye)=>{"use strict";var KI=Symbol("SemVer ANY"),gV=class t{static{i(this,"Comparator")}static get ANY(){return KI}constructor(e,r){if(r=nye(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),hV("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===KI?this.value="":this.value=this.operator+this.semver.version,hV("comp",this)}parse(e){let r=this.options.loose?sye[oye.COMPARATORLOOSE]:sye[oye.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 iye(n[2],this.options.loose):this.semver=KI}toString(){return this.value}test(e){if(hV("Comparator.test",e,this.options.loose),this.semver===KI||e===KI)return!0;if(typeof e=="string")try{e=new iye(e,this.options)}catch{return!1}return AV(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 aye(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new aye(this.value,r).test(e.semver):(r=nye(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("=")||AV(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||AV(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};cye.exports=gV;var nye=LT(),{safeRe:sye,t:oye}=Ag(),AV=dV(),hV=WI(),iye=vn(),aye=Ni()});var XI=b((Adr,lye)=>{"use strict";var Bdt=Ni(),Rdt=i((t,e,r)=>{try{e=new Bdt(e,r)}catch{return!1}return e.test(t)},"satisfies");lye.exports=Rdt});var dye=b((gdr,uye)=>{"use strict";var Ndt=Ni(),Tdt=i((t,e)=>new Ndt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");uye.exports=Tdt});var mye=b((Edr,pye)=>{"use strict";var Pdt=vn(),vdt=Ni(),_dt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new vdt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new Pdt(n,r))}),n},"maxSatisfying");pye.exports=_dt});var Aye=b((Idr,fye)=>{"use strict";var Qdt=vn(),Ddt=Ni(),kdt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Ddt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Qdt(n,r))}),n},"minSatisfying");fye.exports=kdt});var yye=b((wdr,gye)=>{"use strict";var yV=vn(),Ldt=Ni(),hye=jI(),Odt=i((t,e)=>{t=new Ldt(t,e);let r=new yV("0.0.0");if(t.test(r)||(r=new yV("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new yV(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||hye(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||hye(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");gye.exports=Odt});var Cye=b((Sdr,Eye)=>{"use strict";var Mdt=Ni(),Fdt=i((t,e)=>{try{return new Mdt(t,e).range||"*"}catch{return null}},"validRange");Eye.exports=Fdt});var YT=b((Rdr,bye)=>{"use strict";var Udt=vn(),wye=JI(),{ANY:qdt}=wye,$dt=Ni(),Gdt=XI(),Iye=jI(),xye=$T(),Hdt=HT(),zdt=GT(),Vdt=i((t,e,r,n)=>{t=new Udt(t,n),e=new $dt(e,n);let s,o,a,c,l;switch(r){case">":s=Iye,o=Hdt,a=xye,c=">",l=">=";break;case"<":s=xye,o=zdt,a=Iye,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Gdt(t,e,n))return!1;for(let u=0;u{f.semver===qdt&&(f=new wye(">=0.0.0")),p=p||f,m=m||f,s(f.semver,p.semver,n)?p=f:a(f.semver,m.semver,n)&&(m=f)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(t,m.semver))return!1;if(m.operator===l&&a(t,m.semver))return!1}return!0},"outside");bye.exports=Vdt});var Bye=b((Tdr,Sye)=>{"use strict";var Ydt=YT(),Wdt=i((t,e,r)=>Ydt(t,e,">",r),"gtr");Sye.exports=Wdt});var Nye=b((vdr,Rye)=>{"use strict";var jdt=YT(),Jdt=i((t,e,r)=>jdt(t,e,"<",r),"ltr");Rye.exports=Jdt});var vye=b((Qdr,Pye)=>{"use strict";var Tye=Ni(),Kdt=i((t,e,r)=>(t=new Tye(t,r),e=new Tye(e,r),t.intersects(e,r)),"intersects");Pye.exports=Kdt});var Qye=b((kdr,_ye)=>{"use strict";var Xdt=XI(),Zdt=Ri();_ye.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>Zdt(d,p,r));for(let d of a)Xdt(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var Dye=Ni(),IV=JI(),{ANY:EV}=IV,CV=XI(),xV=Ri(),ept=i((t,e,r={})=>{if(t===e)return!0;t=new Dye(t,r),e=new Dye(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=rpt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),tpt=[new IV(">=0.0.0-0")],kye=[new IV(">=0.0.0")],rpt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===EV){if(e.length===1&&e[0].semver===EV)return!0;r.includePrerelease?t=tpt:t=kye}if(e.length===1&&e[0].semver===EV){if(r.includePrerelease)return!0;e=kye}let n=new Set,s,o;for(let f of t)f.operator===">"||f.operator===">="?s=Lye(s,f,r):f.operator==="<"||f.operator==="<="?o=Oye(o,f,r):n.add(f.semver);if(n.size>1)return null;let a;if(s&&o){if(a=xV(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let f of n){if(s&&!CV(f,String(s),r)||o&&!CV(f,String(o),r))return null;for(let g of e)if(!CV(f,String(g),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",u=u||f.operator==="<"||f.operator==="<=",s){if(m&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===m.major&&f.semver.minor===m.minor&&f.semver.patch===m.patch&&(m=!1),f.operator===">"||f.operator===">="){if(c=Lye(s,f,r),c===f&&c!==s)return!1}else if(s.operator===">="&&!f.test(s.semver))return!1}if(o){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(l=Oye(o,f,r),l===f&&l!==o)return!1}else if(o.operator==="<="&&!f.test(o.semver))return!1}if(!f.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||m||p)},"simpleSubset"),Lye=i((t,e,r)=>{if(!t)return e;let n=xV(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Oye=i((t,e,r)=>{if(!t)return e;let n=xV(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Mye.exports=ept});var Gye=b((Mdr,$ye)=>{"use strict";var wV=Ag(),Uye=fg(),npt=vn(),qye=iV(),spt=Md(),opt=dge(),ipt=mge(),apt=hge(),cpt=Ege(),lpt=Ige(),upt=wge(),dpt=Sge(),ppt=Rge(),mpt=Ri(),fpt=vge(),Apt=Qge(),hpt=qT(),gpt=Oge(),ypt=Fge(),Ept=jI(),Cpt=$T(),Ipt=lV(),xpt=uV(),wpt=GT(),bpt=HT(),Spt=dV(),Bpt=Wge(),Rpt=Jge(),Npt=JI(),Tpt=Ni(),Ppt=XI(),vpt=dye(),_pt=mye(),Qpt=Aye(),Dpt=yye(),kpt=Cye(),Lpt=YT(),Opt=Bye(),Mpt=Nye(),Fpt=vye(),Upt=Qye(),qpt=Fye();$ye.exports={parse:spt,valid:opt,clean:ipt,inc:apt,diff:cpt,major:lpt,minor:upt,patch:dpt,prerelease:ppt,compare:mpt,rcompare:fpt,compareLoose:Apt,compareBuild:hpt,sort:gpt,rsort:ypt,gt:Ept,lt:Cpt,eq:Ipt,neq:xpt,gte:wpt,lte:bpt,cmp:Spt,coerce:Bpt,truncate:Rpt,Comparator:Npt,Range:Tpt,satisfies:Ppt,toComparators:vpt,maxSatisfying:_pt,minSatisfying:Qpt,minVersion:Dpt,validRange:kpt,outside:Lpt,gtr:Opt,ltr:Mpt,intersects:Fpt,simplifyRange:Upt,subset:qpt,SemVer:npt,re:wV.re,src:wV.src,tokens:wV.t,SEMVER_SPEC_VERSION:Uye.SEMVER_SPEC_VERSION,RELEASE_TYPES:Uye.RELEASE_TYPES,compareIdentifiers:qye.compareIdentifiers,rcompareIdentifiers:qye.rcompareIdentifiers}});var aEe=b((qdr,uu)=>{var Lt=require("fs"),JT=require("os"),dn=require("path"),Hye=require("crypto"),Mc={fs:Lt.constants,os:JT.constants},zye="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",jye=/XXXXXX/,$pt=3,Jye=(Mc.O_CREAT||Mc.fs.O_CREAT)|(Mc.O_EXCL||Mc.fs.O_EXCL)|(Mc.O_RDWR||Mc.fs.O_RDWR),Gpt=JT.platform()==="win32",Hpt=Mc.EBADF||Mc.os.errno.EBADF,zpt=Mc.ENOENT||Mc.os.errno.ENOENT,Kye=448,Xye=384,Vpt="exit",hg=[],Zye=Lt.rmdirSync.bind(Lt),eEe=!1;function Ypt(t,e){return Lt.rm(t,{recursive:!0},e)}i(Ypt,"rimraf");function tEe(t){return Lt.rmSync(t,{recursive:!0})}i(tEe,"FN_RIMRAF_SYNC");function RV(t,e){let r=gg(t,e),n=r[0],s=r[1];nmt(n,function(o,a){if(o)return s(o);let c=a.tries;i((function l(){try{let u=nEe(a);Lt.stat(u,function(d){if(!d)return c-- >0?l():s(new Error("Could not get a unique tmp filename, max tries reached "+u));s(null,u)})}catch(u){s(u)}}),"_getUniqueName")()})}i(RV,"tmpName");function NV(t){let e=gg(t),r=e[0],n=smt(r),s=n.tries;do{let o=nEe(n);try{Lt.statSync(o)}catch{return o}}while(s-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}i(NV,"tmpNameSync");function Wpt(t,e){let r=gg(t,e),n=r[0],s=r[1];RV(n,i(function(a,c){if(a)return s(a);Lt.open(c,Jye,n.mode||Xye,i(function(u,d){if(u)return s(u);if(n.discardDescriptor)return Lt.close(d,i(function(m){return s(m,c,void 0,SV(c,-1,n,!1))},"_discardCallback"));{let p=n.discardDescriptor||n.detachDescriptor;s(null,c,d,SV(c,p?-1:d,n,!1))}},"_fileCreated"))},"_tmpNameCreated"))}i(Wpt,"file");function jpt(t){let e=gg(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,s=NV(r),o=Lt.openSync(s,Jye,r.mode||Xye);return r.discardDescriptor&&(Lt.closeSync(o),o=void 0),{name:s,fd:o,removeCallback:SV(s,n?-1:o,r,!0)}}i(jpt,"fileSync");function Jpt(t,e){let r=gg(t,e),n=r[0],s=r[1];RV(n,i(function(a,c){if(a)return s(a);Lt.mkdir(c,n.mode||Kye,i(function(u){if(u)return s(u);s(null,c,rEe(c,n,!1))},"_dirCreated"))},"_tmpNameCreated"))}i(Jpt,"dir");function Kpt(t){let e=gg(t),r=e[0],n=NV(r);return Lt.mkdirSync(n,r.mode||Kye),{name:n,removeCallback:rEe(n,r,!0)}}i(Kpt,"dirSync");function Xpt(t,e){let r=i(function(n){if(n&&!BV(n))return e(n);e()},"_handler");0<=t[0]?Lt.close(t[0],function(){Lt.unlink(t[1],r)}):Lt.unlink(t[1],r)}i(Xpt,"_removeFileAsync");function Zpt(t){let e=null;try{0<=t[0]&&Lt.closeSync(t[0])}catch(r){if(!omt(r)&&!BV(r))throw r}finally{try{Lt.unlinkSync(t[1])}catch(r){BV(r)||(e=r)}}if(e!==null)throw e}i(Zpt,"_removeFileSync");function SV(t,e,r,n){let s=jT(Zpt,[e,t],n),o=jT(Xpt,[e,t],n,s);return r.keep||hg.unshift(s),n?s:o}i(SV,"_prepareTmpFileRemoveCallback");function rEe(t,e,r){let n=e.unsafeCleanup?Ypt:Lt.rmdir.bind(Lt),s=e.unsafeCleanup?tEe:Zye,o=jT(s,t,r),a=jT(n,t,r,o);return e.keep||hg.unshift(o),r?o:a}i(rEe,"_prepareTmpDirRemoveCallback");function jT(t,e,r,n){let s=!1;return i(function o(a){if(!s){let c=n||o,l=hg.indexOf(c);return l>=0&&hg.splice(l,1),s=!0,r||t===Zye||t===tEe?t(e):t(e,a||function(){})}},"_cleanupCallback")}i(jT,"_prepareRemoveCallback");function emt(){if(eEe)for(;hg.length;)try{hg[0]()}catch{}}i(emt,"_garbageCollector");function Vye(t){let e=[],r=null;try{r=Hye.randomBytes(t)}catch{r=Hye.pseudoRandomBytes(t)}for(let n=0;n"u"}i(so,"_isUndefined");function gg(t,e){if(typeof t=="function")return[{},t];if(so(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}i(gg,"_parseArguments");function tmt(t,e,r){let n=dn.isAbsolute(t)?t:dn.join(e,t);Lt.stat(n,function(s){s?Lt.realpath(dn.dirname(n),function(o,a){if(o)return r(o);r(null,dn.join(a,dn.basename(n)))}):Lt.realpath(n,r)})}i(tmt,"_resolvePath");function rmt(t,e){let r=dn.isAbsolute(t)?t:dn.join(e,t);try{return Lt.statSync(r),Lt.realpathSync(r)}catch{let s=Lt.realpathSync(dn.dirname(r));return dn.join(s,dn.basename(r))}}i(rmt,"_resolvePathSync");function nEe(t){let e=t.tmpdir;if(!so(t.name))return dn.join(e,t.dir,t.name);if(!so(t.template))return dn.join(e,t.dir,t.template).replace(jye,Vye(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",Vye(12),t.postfix?"-"+t.postfix:""].join("");return dn.join(e,t.dir,r)}i(nEe,"_generateTmpName");function bV(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}i(bV,"_assertPath");function sEe(t){if(!so(t.name)){let e=t.name;if(dn.isAbsolute(e))throw new Error(`name option must not contain an absolute path, found "${e}".`);let r=dn.basename(e);if(r===".."||r==="."||r!==e)throw new Error(`name option must not contain a path, found "${e}".`)}if(!so(t.template)){if(typeof t.template!="string")throw new Error(`template option must be a string, got "${typeof t.template}".`);if(!t.template.match(jye))throw new Error(`Invalid template, found "${t.template}".`)}if(!so(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=so(t.name)?t.tries||$pt:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.prefix=so(t.prefix)?"":bV("prefix",t.prefix),t.postfix=so(t.postfix)?"":bV("postfix",t.postfix),t.template=so(t.template)?void 0:bV("template",t.template)}i(sEe,"_assertOptionsBase");function Yye(t,e,r,n){if(so(e))return n(null);tmt(e,r,function(s,o){if(s)return n(s);let a=dn.relative(r,o);if(a.startsWith("..")||dn.isAbsolute(a))return n(new Error(`${t} option must be relative to "${r}", found "${a}".`));n(null,a)})}i(Yye,"_getRelativePath");function Wye(t,e,r){if(so(e))return;let n=rmt(e,r),s=dn.relative(r,n);if(s.startsWith("..")||dn.isAbsolute(s))throw new Error(`${t} option must be relative to "${r}", found "${s}".`);return s}i(Wye,"_getRelativePathSync");function nmt(t,e){amt(t,function(r,n){if(r)return e(r);t.tmpdir=n;try{sEe(t,n)}catch(s){return e(s)}Yye("dir",t.dir,n,function(s,o){if(s)return e(s);t.dir=so(o)?"":o,Yye("template",t.template,n,function(a,c){if(a)return e(a);t.template=c,e(null,t)})})})}i(nmt,"_assertAndSanitizeOptions");function smt(t){let e=t.tmpdir=iEe(t);sEe(t,e);let r=Wye("dir",t.dir,e);return t.dir=so(r)?"":r,t.template=Wye("template",t.template,e),t}i(smt,"_assertAndSanitizeOptionsSync");function omt(t){return oEe(t,-Hpt,"EBADF")}i(omt,"_isEBADF");function BV(t){return oEe(t,-zpt,"ENOENT")}i(BV,"_isENOENT");function oEe(t,e,r){return Gpt?t.code===r:t.code===r&&t.errno===e}i(oEe,"_isExpectedError");function imt(){eEe=!0}i(imt,"setGracefulCleanup");function amt(t,e){return Lt.realpath(t&&t.tmpdir||JT.tmpdir(),e)}i(amt,"_getTmpDir");function iEe(t){return Lt.realpathSync(t&&t.tmpdir||JT.tmpdir())}i(iEe,"_getTmpDirSync");process.addListener(Vpt,emt);Object.defineProperty(uu.exports,"tmpdir",{enumerable:!0,configurable:!1,get:i(function(){return iEe()},"get")});uu.exports.dir=Jpt;uu.exports.dirSync=Kpt;uu.exports.file=Wpt;uu.exports.fileSync=jpt;uu.exports.tmpName=RV;uu.exports.tmpNameSync=NV;uu.exports.setGracefulCleanup=imt});var Rs=b($o=>{"use strict";$o.__esModule=!0;$o.extend=dEe;$o.indexOf=pmt;$o.escapeExpression=mmt;$o.isEmpty=fmt;$o.createFrame=Amt;$o.blockParams=hmt;$o.appendContextPath=gmt;var cmt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},lmt=/[&<>"'`=]/g,umt=/[&<>"'`=]/;function dmt(t){return cmt[t]}i(dmt,"escapeChar");function dEe(t){for(var e=1;e{"use strict";XT.__esModule=!0;var _V=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function QV(t,e){var r=e&&e.loc,n=void 0,s=void 0,o=void 0,a=void 0;r&&(n=r.start.line,s=r.end.line,o=r.start.column,a=r.end.column,t+=" - "+n+":"+o);for(var c=Error.prototype.constructor.call(this,t),l=0;l<_V.length;l++)this[_V[l]]=c[_V[l]];Error.captureStackTrace&&Error.captureStackTrace(this,QV);try{r&&(this.lineNumber=n,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}i(QV,"Exception");QV.prototype=new Error;XT.default=QV;mEe.exports=XT.default});var AEe=b((ZT,fEe)=>{"use strict";ZT.__esModule=!0;var DV=Rs();ZT.default=function(t){t.registerHelper("blockHelperMissing",function(e,r){var n=r.inverse,s=r.fn;if(e===!0)return s(this);if(e===!1||e==null)return n(this);if(DV.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 o=DV.createFrame(r.data);o.contextPath=DV.appendContextPath(r.data.contextPath,r.name),r={data:o}}return s(e,r)})};fEe.exports=ZT.default});var gEe=b((eP,hEe)=>{"use strict";eP.__esModule=!0;function ymt(t){return t&&t.__esModule?t:{default:t}}i(ymt,"_interopRequireDefault");var ZI=Rs(),Emt=Go(),Cmt=ymt(Emt);eP.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new Cmt.default("Must pass iterator to #each");var n=r.fn,s=r.inverse,o=0,a="",c=void 0,l=void 0;r.data&&r.ids&&(l=ZI.appendContextPath(r.data.contextPath,r.ids[0])+"."),ZI.isFunction(e)&&(e=e.call(this)),r.data&&(c=ZI.createFrame(r.data));function u(g,E,x){c&&(c.key=g,c.index=E,c.first=E===0,c.last=!!x,l&&(c.contextPath=l+g)),a=a+n(e[g],{data:c,blockParams:ZI.blockParams([e[g],g],[l+g,null])})}if(i(u,"execIteration"),e&&typeof e=="object")if(ZI.isArray(e))for(var d=e.length;o{"use strict";tP.__esModule=!0;function Imt(t){return t&&t.__esModule?t:{default:t}}i(Imt,"_interopRequireDefault");var xmt=Go(),wmt=Imt(xmt);tP.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new wmt.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};yEe.exports=tP.default});var wEe=b((rP,xEe)=>{"use strict";rP.__esModule=!0;function bmt(t){return t&&t.__esModule?t:{default:t}}i(bmt,"_interopRequireDefault");var CEe=Rs(),Smt=Go(),IEe=bmt(Smt);rP.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new IEe.default("#if requires exactly one argument");return CEe.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||CEe.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,r){if(arguments.length!=2)throw new IEe.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};xEe.exports=rP.default});var SEe=b((nP,bEe)=>{"use strict";nP.__esModule=!0;nP.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],r=arguments[arguments.length-1],n=0;n{"use strict";sP.__esModule=!0;sP.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};BEe.exports=sP.default});var TEe=b((oP,NEe)=>{"use strict";oP.__esModule=!0;function Bmt(t){return t&&t.__esModule?t:{default:t}}i(Bmt,"_interopRequireDefault");var ex=Rs(),Rmt=Go(),Nmt=Bmt(Rmt);oP.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new Nmt.default("#with requires exactly one argument");ex.isFunction(e)&&(e=e.call(this));var n=r.fn;if(ex.isEmpty(e))return r.inverse(this);var s=r.data;return r.data&&r.ids&&(s=ex.createFrame(r.data),s.contextPath=ex.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:s,blockParams:ex.blockParams([e],[s&&s.contextPath])})})};NEe.exports=oP.default});var kV=b(iP=>{"use strict";iP.__esModule=!0;iP.registerDefaultHelpers=Gmt;iP.moveHelperToHooks=Hmt;function Km(t){return t&&t.__esModule?t:{default:t}}i(Km,"_interopRequireDefault");var Tmt=AEe(),Pmt=Km(Tmt),vmt=gEe(),_mt=Km(vmt),Qmt=EEe(),Dmt=Km(Qmt),kmt=wEe(),Lmt=Km(kmt),Omt=SEe(),Mmt=Km(Omt),Fmt=REe(),Umt=Km(Fmt),qmt=TEe(),$mt=Km(qmt);function Gmt(t){Pmt.default(t),_mt.default(t),Dmt.default(t),Lmt.default(t),Mmt.default(t),Umt.default(t),$mt.default(t)}i(Gmt,"registerDefaultHelpers");function Hmt(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}i(Hmt,"moveHelperToHooks")});var vEe=b((aP,PEe)=>{"use strict";aP.__esModule=!0;var zmt=Rs();aP.default=function(t){t.registerDecorator("inline",function(e,r,n,s){var o=e;return r.partials||(r.partials={},o=i(function(a,c){var l=n.partials;n.partials=zmt.extend({},l,r.partials);var u=e(a,c);return n.partials=l,u},"ret")),r.partials[s.args[0]]=s.fn,o})};PEe.exports=aP.default});var _Ee=b(LV=>{"use strict";LV.__esModule=!0;LV.registerDefaultDecorators=jmt;function Vmt(t){return t&&t.__esModule?t:{default:t}}i(Vmt,"_interopRequireDefault");var Ymt=vEe(),Wmt=Vmt(Ymt);function jmt(t){Wmt.default(t)}i(jmt,"registerDefaultDecorators")});var OV=b((cP,QEe)=>{"use strict";cP.__esModule=!0;var Jmt=Rs(),yg={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:i(function(e){if(typeof e=="string"){var r=Jmt.indexOf(yg.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},"lookupLevel"),log:i(function(e){if(e=yg.lookupLevel(e),typeof console<"u"&&yg.lookupLevel(yg.level)<=e){var r=yg.methodMap[e];console[r]||(r="log");for(var n=arguments.length,s=Array(n>1?n-1:0),o=1;o{"use strict";tx.__esModule=!0;tx.createProtoAccessControl=eft;tx.resultIsAllowed=tft;tx.resetLoggedProperties=nft;function Kmt(t){return t&&t.__esModule?t:{default:t}}i(Kmt,"_interopRequireDefault");var DEe=Rs(),Xmt=OV(),Zmt=Kmt(Xmt),lP=Object.create(null);function eft(t){var e=Object.create(null);e.__proto__=!1,DEe.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,DEe.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}i(eft,"createProtoAccessControl");function tft(t,e,r){return kEe(typeof t=="function"?e.methods:e.properties,r)}i(tft,"resultIsAllowed");function kEe(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(rft(e),!1)}i(kEe,"checkWhiteList");function rft(t){lP[t]!==!0&&(lP[t]=!0,Zmt.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: ${vfe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(Tfe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(gst,"pollOperationHelper");async function kfe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:o,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:p,getError:m,updateState:f,setDelay:g,isDone:E,setErrorAsResult:x}=t,{operationLocation:w}=r.config;if(w!==void 0){let{response:S,status:P}=await gst({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:w,getResourceLocation:a,isOperationError:l,options:s});if(Qfe({status:P,response:S,state:r,stateProxy:n,isDone:E,processResult:p,getError:m,setErrorAsResult:x}),!vfe.includes(P)){let Q=d?.(S);Q&&g(Q);let q=c?.(S,r);if(q!==void 0){let M=w!==q;r.config.operationLocation=q,u?.(q,M)}else u?.(w,!1)}f?.(r,S)}}i(kfe,"pollOperation");function Lfe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(Lfe,"getOperationLocationPollingUrl");function Ofe(t){return t.headers.location}i(Ofe,"getLocationHeader");function Mfe(t){return t.headers["operation-location"]}i(Mfe,"getOperationLocationHeader");function Ffe(t){return t.headers["azure-asyncoperation"]}i(Ffe,"getAzureAsyncOperationHeader");function yst(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}i(yst,"findResourceLocation");function Ufe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=Mfe(e),a=Ffe(e),c=Lfe({operationLocation:o,azureAsyncOperation:a}),l=Ofe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:yst({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(Ufe,"inferLroMode");function qfe(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 xz(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 $m.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(qfe,"transformStatus");function Est(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return qfe({status:r,statusCode:t.statusCode})}i(Est,"getStatus");function Cst(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},o=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return qfe({status:o,statusCode:t.statusCode})}i(Cst,"getProvisioningState");function xz(t){return t===202?"running":t<300?"succeeded":"failed"}i(xz,"toOperationStatus");function $fe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Ist(new Date(e)):r*1e3}}i($fe,"parseRetryAfter");function Gfe(t){let e=t.flatResponse.error;if(!e){$m.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){$m.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(Gfe,"getErrorFromResponse");function Ist(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e{let a=await s.sendInitialRequest(),c=Ufe({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.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:Hfe,setErrorAsResult:o})}i(xst,"initHttpOperation");function zfe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return Lfe({operationLocation:Mfe(t),azureAsyncOperation:Ffe(t)});case"ResourceLocation":return Ofe(t);default:return}}i(zfe,"getOperationLocation");function wz({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return Est(t);case"ResourceLocation":return xz(t.statusCode);case"Body":return Cst(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}i(wz,"getOperationStatus");function Vfe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.config.resourceLocation}i(Vfe,"getResourceLocation");function Yfe(t){return t.name==="RestError"}i(Yfe,"isOperationError");async function wst(t){let{lro:e,stateProxy:r,options:n,processResult:s,updateState:o,setDelay:a,state:c,setErrorAsResult:l}=t;return kfe({state:c,stateProxy:r,setDelay:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u,getError:Gfe,updateState:o,getPollingInterval:$fe,getOperationLocation:zfe,getOperationStatus:wz,isOperationError:Yfe,getResourceLocation:Vfe,options:n,poll:i(async(u,d)=>e.sendPollRequest(u,d),"poll"),setErrorAsResult:l})}i(wst,"pollHttpOperation");var bst=i(()=>({initState:i(t=>({status:"running",config:t}),"initState"),setCanceled:i(t=>t.status="canceled","setCanceled"),setError:i((t,e)=>t.error=e,"setError"),setResult:i((t,e)=>t.result=e,"setResult"),setRunning:i(t=>t.status="running","setRunning"),setSucceeded:i(t=>t.status="succeeded","setSucceeded"),setFailed:i(t=>t.status="failed","setFailed"),getError:i(t=>t.error,"getError"),getResult:i(t=>t.result,"getResult"),isCanceled:i(t=>t.status==="canceled","isCanceled"),isFailed:i(t=>t.status==="failed","isFailed"),isRunning:i(t=>t.status==="running","isRunning"),isSucceeded:i(t=>t.status==="succeeded","isSucceeded")}),"createStateProxy$1");function Sst(t){let{getOperationLocation:e,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:s,getResourceLocation:o,getPollingInterval:a,getError:c,resolveOnUnsuccessful:l}=t;return async({init:u,poll:d},p)=>{let{processResult:m,updateState:f,withOperationLocation:g,intervalInMs:E=Pfe,restoreFrom:x}=p||{},w=bst(),S=g?(()=>{let oe=!1;return(ye,H)=>{H?g(ye):oe||g(ye),oe=!0}})():void 0,P=x?_fe(x):await Dfe({init:u,stateProxy:w,processResult:m,getOperationStatus:r,withOperationLocation:S,setErrorAsResult:!l}),Q,q=new Nfe.AbortController,M=new Map,V=i(async()=>M.forEach(oe=>oe(P)),"handleProgressEvents"),pe="Operation was canceled",Le=E,Re={getOperationState:i(()=>P,"getOperationState"),getResult:i(()=>P.result,"getResult"),isDone:i(()=>["succeeded","failed","canceled"].includes(P.status),"isDone"),isStopped:i(()=>Q===void 0,"isStopped"),stopPolling:i(()=>{q.abort()},"stopPolling"),toString:i(()=>JSON.stringify({state:P}),"toString"),onProgress:i(oe=>{let ye=Symbol();return M.set(ye,oe),()=>M.delete(ye)},"onProgress"),pollUntilDone:i(oe=>Q??(Q=(async()=>{let{abortSignal:ye}=oe||{},{signal:H}=ye?new Nfe.AbortController([ye,q.signal]):q;if(!Re.isDone())for(await Re.poll({abortSignal:H});!Re.isDone();)await mst.delay(Le,{abortSignal:H}),await Re.poll({abortSignal:H});if(l)return Re.getResult();switch(P.status){case"succeeded":return Re.getResult();case"canceled":throw new Error(pe);case"failed":throw P.error;case"notStarted":case"running":throw new Error("Polling completed without succeeding or failing")}})().finally(()=>{Q=void 0})),"pollUntilDone"),async poll(oe){if(l){if(Re.isDone())return}else switch(P.status){case"succeeded":return;case"canceled":throw new Error(pe);case"failed":throw P.error}if(await kfe({poll:d,state:P,stateProxy:w,getOperationLocation:e,isOperationError:s,withOperationLocation:S,getPollingInterval:a,getOperationStatus:n,getResourceLocation:o,processResult:m,getError:c,updateState:f,options:oe,setDelay:i(ye=>{Le=ye},"setDelay"),setErrorAsResult:!l}),await V(),!l)switch(P.status){case"canceled":throw new Error(pe);case"failed":throw P.error}}};return Re}}i(Sst,"buildCreatePoller");async function Bst(t,e){let{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:o,updateState:a,withOperationLocation:c,resolveOnUnsuccessful:l=!1}=e||{};return Sst({getStatusFromInitialResponse:Hfe,getStatusFromPollResponse:wz,isOperationError:Yfe,getOperationLocation:zfe,getResourceLocation:Vfe,getPollingInterval:$fe,getError:Gfe,resolveOnUnsuccessful:l})({init:i(async()=>{let u=await t.sendInitialRequest(),d=Ufe({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:o,updateState:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u})}i(Bst,"createHttpPoller");var Rst=i(()=>({initState:i(t=>({config:t,isStarted:!0}),"initState"),setCanceled:i(t=>t.isCancelled=!0,"setCanceled"),setError:i((t,e)=>t.error=e,"setError"),setResult:i((t,e)=>t.result=e,"setResult"),setRunning:i(t=>t.isStarted=!0,"setRunning"),setSucceeded:i(t=>t.isCompleted=!0,"setSucceeded"),setFailed:i(()=>{},"setFailed"),getError:i(t=>t.error,"getError"),getResult:i(t=>t.result,"getResult"),isCanceled:i(t=>!!t.isCancelled,"isCanceled"),isFailed:i(t=>!!t.error,"isFailed"),isRunning:i(t=>!!t.isStarted,"isRunning"),isSucceeded:i(t=>!!(t.isCompleted&&!t.isCancelled&&!t.error),"isSucceeded")}),"createStateProxy"),Cz=class{static{i(this,"GenericPollOperation")}constructor(e,r,n,s,o,a,c){this.state=e,this.lro=r,this.setErrorAsResult=n,this.lroResourceLocationConfig=s,this.processResult=o,this.updateState=a,this.isDone=c}setPollerConfig(e){this.pollerConfig=e}async update(e){var r;let n=Rst();this.state.isStarted||(this.state=Object.assign(Object.assign({},this.state),await xst({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult})));let s=this.updateState,o=this.isDone;return!this.state.isCompleted&&this.state.error===void 0&&await wst({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:s?(a,{rawResponse:c})=>s(a,c):void 0,isDone:o?({flatResponse:a},c)=>o(a,c):void 0,options:e,setDelay:i(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 $m.error("`cancelOperation` is deprecated because it wasn't implemented"),this}toString(){return JSON.stringify({state:this.state})}},TN=class t extends Error{static{i(this,"PollerStoppedError")}constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,t.prototype)}},PN=class t extends Error{static{i(this,"PollerCancelledError")}constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,t.prototype)}},vN=class{static{i(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=i(()=>{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 PN("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 TN("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()}},Iz=class extends vN{static{i(this,"LroEngine")}constructor(e,r){let{intervalInMs:n=Pfe,resumeFrom:s,resolveOnUnsuccessful:o=!1,isDone:a,lroResourceLocationConfig:c,processResult:l,updateState:u}=r||{},d=s?_fe(s):{},p=new Cz(d,e,!o,c,l,u,a);super(p),this.resolveOnUnsuccessful=o,this.config={intervalInMs:n},p.setPollerConfig(this.config)}delay(){return new Promise(e=>setTimeout(()=>e(),this.config.intervalInMs))}};Gm.LroEngine=Iz;Gm.Poller=vN;Gm.PollerCancelledError=PN;Gm.PollerStoppedError=TN;Gm.createHttpPoller=Bst});var mAe=b((Lar,Wst)=>{Wst.exports={name:"@actions/cache",version:"6.0.1",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.6.1","@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.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var AAe=b((Oar,fAe)=>{var jst=mAe();fAe.exports={version:jst.version}});var HN=b(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.isJsonObject=jh.typeofJsonValue=void 0;function not(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}i(not,"typeofJsonValue");jh.typeofJsonValue=not;function sot(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}i(sot,"isJsonObject");jh.isJsonObject=sot});var VN=b(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0});Jh.base64encode=Jh.base64decode=void 0;var cu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),zN=[];for(let t=0;t>4,a=o,s=2;break;case 2:r[n++]=(a&15)<<4|(o&60)>>2,a=o,s=3;break;case 3:r[n++]=(a&3)<<6|o,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(oot,"base64decode");Jh.base64decode=oot;function iot(t){let e="",r=0,n,s=0;for(let o=0;o>2],s=(n&3)<<4,r=1;break;case 1:e+=cu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=cu[s|n>>6],e+=cu[n&63],r=0;break}return r&&(e+=cu[s],e+="=",r==1&&(e+="=")),e}i(iot,"base64encode");Jh.base64encode=iot});var IAe=b(YN=>{"use strict";Object.defineProperty(YN,"__esModule",{value:!0});YN.utf8read=void 0;var Qz=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function aot(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,o,a=t.length;for(;e191&&o<224?n[s++]=(o&31)<<6|t[e++]&63:o>239&&o<365?(o=((o&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(o>>10),n[s++]=56320+(o&1023)):n[s++]=(o&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(Qz(n)),s=0);return r.length?(s&&r.push(Qz(n.slice(0,s))),r.join("")):Qz(n.slice(0,s))}i(aot,"utf8read");YN.utf8read=aot});var vI=b(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.WireType=vc.mergeBinaryOptions=vc.UnknownFieldHandler=void 0;var cot;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,o,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:o,data:a})},t.onWrite=(r,n,s)=>{for(let{no:o,wireType:a,data:c}of t.list(n))s.tag(o,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(o=>o.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(cot=vc.UnknownFieldHandler||(vc.UnknownFieldHandler={}));function lot(t,e){return Object.assign(Object.assign({},t),e)}i(lot,"mergeBinaryOptions");vc.mergeBinaryOptions=lot;var uot;(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"})(uot=vc.WireType||(vc.WireType={}))});var jN=b(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.varint32read=to.varint32write=to.int64toString=to.int64fromString=to.varint64write=to.varint64read=void 0;function dot(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<>>o,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,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let o=3;o<31;o=o+7){let a=e>>>o,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}i(pot,"varint64write");to.varint64write=pot;var WN=65536*65536;function mot(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function o(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=WN&&(s=s+(n/WN|0),n=n%WN)}return i(o,"add1e6digit"),o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[e,n,s]}i(mot,"int64fromString");to.int64fromString=mot;function fot(t,e){if(e>>>0<=2097151)return""+(WN*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,o=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;o>=l&&(a+=Math.floor(o/l),o%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,p){let m=d?String(d):"";return p?"0000000".slice(m.length)+m:m}return i(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(o,1)}i(fot,"int64toString");to.int64toString=fot;function Aot(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)}}i(Aot,"varint32write");to.varint32write=Aot;function hot(){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}i(hot,"varint32read");to.varint32read=hot});var Qd=b(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.PbLong=_d.PbULong=_d.detectBi=void 0;var _I=jN(),Mt;function xAe(){let t=new DataView(new ArrayBuffer(8));Mt=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}i(xAe,"detectBi");_d.detectBi=xAe;xAe();function wAe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}i(wAe,"assertBi");var bAe=/^-?[0-9]+$/,KN=4294967296,JN=2147483648,XN=class{static{i(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*KN+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},QI=class t extends XN{static{i(this,"PbULong")}static from(e){if(Mt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Mt.C(e);case"number":if(e===0)return this.ZERO;e=Mt.C(e);case"bigint":if(!e)return this.ZERO;if(eMt.UMAX)throw new Error("ulong too large");return Mt.V.setBigUint64(0,e,!0),new t(Mt.V.getInt32(0,!0),Mt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!bAe.test(e))throw new Error("string is no integer");let[r,n,s]=_I.int64fromString(e);if(r)throw new Error("signed value for ulong");return new t(n,s);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/KN)}throw new Error("unknown value "+typeof e)}toString(){return Mt?this.toBigInt().toString():_I.int64toString(this.lo,this.hi)}toBigInt(){return wAe(Mt),Mt.V.setInt32(0,this.lo,!0),Mt.V.setInt32(4,this.hi,!0),Mt.V.getBigUint64(0,!0)}};_d.PbULong=QI;QI.ZERO=new QI(0,0);var DI=class t extends XN{static{i(this,"PbLong")}static from(e){if(Mt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Mt.C(e);case"number":if(e===0)return this.ZERO;e=Mt.C(e);case"bigint":if(!e)return this.ZERO;if(eMt.MAX)throw new Error("signed long too large");return Mt.V.setBigInt64(0,e,!0),new t(Mt.V.getInt32(0,!0),Mt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!bAe.test(e))throw new Error("string is no integer");let[r,n,s]=_I.int64fromString(e);if(r){if(s>JN||s==JN&&n!=0)throw new Error("signed long too small")}else if(s>=JN)throw new Error("signed long too large");let o=new t(n,s);return r?o.negate():o;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/KN):new t(-e,-e/KN).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&JN)!==0}negate(){let e=~this.hi,r=this.lo;return r?r=~r+1:e+=1,new t(r,e)}toString(){if(Mt)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+_I.int64toString(e.lo,e.hi)}return _I.int64toString(this.lo,this.hi)}toBigInt(){return wAe(Mt),Mt.V.setInt32(0,this.lo,!0),Mt.V.setInt32(4,this.hi,!0),Mt.V.getBigInt64(0,!0)}};_d.PbLong=DI;DI.ZERO=new DI(0,0)});var Dz=b(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});Xh.BinaryReader=Xh.binaryReadOptions=void 0;var Kh=vI(),kI=Qd(),SAe=jN(),BAe={readUnknownField:!0,readerFactory:i(t=>new ZN(t),"readerFactory")};function got(t){return t?Object.assign(Object.assign({},BAe),t):BAe}i(got,"binaryReadOptions");Xh.binaryReadOptions=got;var ZN=class{static{i(this,"BinaryReader")}constructor(e,r){this.varint64=SAe.varint64read,this.uint32=SAe.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 Kh.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case Kh.WireType.Bit64:this.pos+=4;case Kh.WireType.Bit32:this.pos+=4;break;case Kh.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case Kh.WireType.StartGroup:let s;for(;(s=this.tag()[1])!==Kh.WireType.EndGroup;)this.skip(s);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 kI.PbLong(...this.varint64())}uint64(){return new kI.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 kI.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 kI.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new kI.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())}};Xh.BinaryReader=ZN});var Zh=b(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.assertFloat32=Si.assertUInt32=Si.assertInt32=Si.assertNever=Si.assert=void 0;function yot(t,e){if(!t)throw new Error(e)}i(yot,"assert");Si.assert=yot;function Eot(t,e){throw new Error(e??"Unexpected object: "+t)}i(Eot,"assertNever");Si.assertNever=Eot;var Cot=34028234663852886e22,Iot=-34028234663852886e22,xot=4294967295,wot=2147483647,bot=-2147483648;function Sot(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>wot||txot||t<0)throw new Error("invalid uint 32: "+t)}i(Bot,"assertUInt32");Si.assertUInt32=Bot;function Rot(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>Cot||t{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});tg.BinaryWriter=tg.binaryWriteOptions=void 0;var LI=Qd(),OI=jN(),eg=Zh(),RAe={writeUnknownFields:!0,writerFactory:i(()=>new eT,"writerFactory")};function Not(t){return t?Object.assign(Object.assign({},RAe),t):RAe}i(Not,"binaryWriteOptions");tg.binaryWriteOptions=Not;var eT=class{static{i(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 s=0;s>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(eg.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return eg.assertInt32(e),OI.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){eg.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){eg.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){eg.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return eg.assertInt32(e),e=(e<<1^e>>31)>>>0,OI.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=LI.PbLong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}fixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=LI.PbULong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}int64(e){let r=LI.PbLong.from(e);return OI.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=LI.PbLong.from(e),n=r.hi>>31,s=r.lo<<1^n,o=(r.hi<<1|r.lo>>>31)^n;return OI.varint64write(s,o,this.buf),this}uint64(e){let r=LI.PbULong.from(e);return OI.varint64write(r.lo,r.hi,this.buf),this}};tg.BinaryWriter=eT});var Lz=b(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.mergeJsonOptions=Dd.jsonWriteOptions=Dd.jsonReadOptions=void 0;var NAe={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},TAe={ignoreUnknownFields:!1};function Tot(t){return t?Object.assign(Object.assign({},TAe),t):TAe}i(Tot,"jsonReadOptions");Dd.jsonReadOptions=Tot;function Pot(t){return t?Object.assign(Object.assign({},NAe),t):NAe}i(Pot,"jsonWriteOptions");Dd.jsonWriteOptions=Pot;function vot(t,e){var r,n;let s=Object.assign(Object.assign({},t),e);return s.typeRegistry=[...(r=t?.typeRegistry)!==null&&r!==void 0?r:[],...(n=e?.typeRegistry)!==null&&n!==void 0?n:[]],s}i(vot,"mergeJsonOptions");Dd.mergeJsonOptions=vot});var MI=b(tT=>{"use strict";Object.defineProperty(tT,"__esModule",{value:!0});tT.MESSAGE_TYPE=void 0;tT.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var Oz=b(rT=>{"use strict";Object.defineProperty(rT,"__esModule",{value:!0});rT.lowerCamelCase=void 0;function _ot(t){let e=!1,r=[];for(let n=0;n{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.readMessageOption=ln.readFieldOption=ln.readFieldOptions=ln.normalizeFieldInfo=ln.RepeatType=ln.LongType=ln.ScalarType=void 0;var PAe=Oz(),Qot;(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"})(Qot=ln.ScalarType||(ln.ScalarType={}));var Dot;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(Dot=ln.LongType||(ln.LongType={}));var vAe;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(vAe=ln.RepeatType||(ln.RepeatType={}));function kot(t){var e,r,n,s;return t.localName=(e=t.localName)!==null&&e!==void 0?e:PAe.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:PAe.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:vAe.NO,t.opt=(s=t.opt)!==null&&s!==void 0?s:t.repeat||t.oneof?!1:t.kind=="message",t}i(kot,"normalizeFieldInfo");ln.normalizeFieldInfo=kot;function Lot(t,e,r,n){var s;let o=(s=t.fields.find((a,c)=>a.localName==e||c==e))===null||s===void 0?void 0:s.options;return o&&o[r]?n.fromJson(o[r]):void 0}i(Lot,"readFieldOptions");ln.readFieldOptions=Lot;function Oot(t,e,r,n){var s;let o=(s=t.fields.find((c,l)=>c.localName==e||l==e))===null||s===void 0?void 0:s.options;if(!o)return;let a=o[r];return a===void 0?a:n?n.fromJson(a):a}i(Oot,"readFieldOption");ln.readFieldOption=Oot;function Mot(t,e,r){let s=t.options[e];return s===void 0?s:r?r.fromJson(s):s}i(Mot,"readMessageOption");ln.readMessageOption=Mot});var Mz=b(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.getSelectedOneofValue=ro.clearOneofValue=ro.setUnknownOneofValue=ro.setOneofValue=ro.getOneofValue=ro.isOneofGroup=void 0;function Fot(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}}i(Fot,"isOneofGroup");ro.isOneofGroup=Fot;function Uot(t,e){return t[e]}i(Uot,"getOneofValue");ro.getOneofValue=Uot;function qot(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}i(qot,"setOneofValue");ro.setOneofValue=qot;function $ot(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}i($ot,"setUnknownOneofValue");ro.setUnknownOneofValue=$ot;function Got(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}i(Got,"clearOneofValue");ro.clearOneofValue=Got;function Hot(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}i(Hot,"getSelectedOneofValue");ro.getSelectedOneofValue=Hot});var Uz=b(nT=>{"use strict";Object.defineProperty(nT,"__esModule",{value:!0});nT.ReflectionTypeCheck=void 0;var Rr=ga(),zot=Mz(),Fz=class{static{i(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 s of this.fields)if(s.oneof)n.includes(s.oneof)||(n.push(s.oneof),e.push(s.oneof),r.push(s.oneof));else switch(r.push(s.localName),s.kind){case"scalar":case"enum":(!s.opt||s.repeat)&&e.push(s.localName);break;case"message":s.repeat&&e.push(s.localName);break;case"map":e.push(s.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 s=Object.keys(e),o=this.data;if(s.length!s.includes(a))||!n&&s.some(a=>!o.known.includes(a)))return!1;if(r<1)return!0;for(let a of o.oneofs){let c=e[a];if(!zot.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,s){let o=r.repeat;switch(r.kind){case"scalar":return e===void 0?r.opt:o?this.scalars(e,r.T,s,r.L):this.scalar(e,r.T,r.L);case"enum":return e===void 0?r.opt:o?this.scalars(e,Rr.ScalarType.INT32,s):this.scalar(e,Rr.ScalarType.INT32);case"message":return e===void 0?!0:o?this.messages(e,r.T(),n,s):this.message(e,r.T(),n,s);case"map":if(typeof e!="object"||e===null)return!1;if(s<2)return!0;if(!this.mapKeys(e,r.K,s))return!1;switch(r.V.kind){case"scalar":return this.scalars(Object.values(e),r.V.T,s,r.V.L);case"enum":return this.scalars(Object.values(e),Rr.ScalarType.INT32,s);case"message":return this.messages(Object.values(e),r.V.T(),n,s)}break}return!0}message(e,r,n,s){return n?r.isAssignable(e,s):r.is(e,s)}messages(e,r,n,s){if(!Array.isArray(e))return!1;if(s<2)return!0;if(n){for(let o=0;oparseInt(o)),r,n);case Rr.ScalarType.BOOL:return this.scalars(s.slice(0,n).map(o=>o=="true"?!0:o=="false"?!1:o),r,n);default:return this.scalars(s,r,n,Rr.LongType.STRING)}}};nT.ReflectionTypeCheck=Fz});var oT=b(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});sT.reflectionLongConvert=void 0;var _Ae=ga();function Vot(t,e){switch(e){case _Ae.LongType.BIGINT:return t.toBigInt();case _Ae.LongType.NUMBER:return t.toNumber();default:return t.toString()}}i(Vot,"reflectionLongConvert");sT.reflectionLongConvert=Vot});var $z=b(cT=>{"use strict";Object.defineProperty(cT,"__esModule",{value:!0});cT.ReflectionJsonReader=void 0;var QAe=HN(),Yot=VN(),un=ga(),iT=Qd(),zm=Zh(),aT=oT(),qz=class{static{i(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 s=QAe.typeofJsonValue(n);throw(s=="number"||s=="boolean")&&(s=n.toString()),new Error(`Cannot parse JSON ${s} for ${this.info.typeName}#${r}`)}}read(e,r,n){this.prepare();let s=[];for(let[o,a]of Object.entries(e)){let c=this.fMap[o];if(!c){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let l=c.localName,u;if(c.oneof){if(a===null&&(c.kind!=="enum"||c.T()[0]!=="google.protobuf.NullValue"))continue;if(s.includes(c.oneof))throw new Error(`Multiple members of the oneof group "${c.oneof}" of ${this.info.typeName} are present in JSON.`);s.push(c.oneof),u=r[c.oneof]={oneofKind:l}}else u=r;if(c.kind=="map"){if(a===null)continue;this.assert(QAe.isJsonObject(a),c.name,a);let d=u[l];for(let[p,m]of Object.entries(a)){this.assert(m!==null,c.name+" map value",null);let f;switch(c.V.kind){case"message":f=c.V.T().internalJsonRead(m,n);break;case"enum":if(f=this.enum(c.V.T(),m,c.name,n.ignoreUnknownFields),f===!1)continue;break;case"scalar":f=this.scalar(m,c.V.T,c.V.L,c.name);break}this.assert(f!==void 0,c.name+" map value",m);let g=p;c.K==un.ScalarType.BOOL&&(g=g=="true"?!0:g=="false"?!1:g),g=this.scalar(g,c.K,un.LongType.STRING,c.name).toString(),d[g]=f}}else if(c.repeat){if(a===null)continue;this.assert(Array.isArray(a),c.name,a);let d=u[l];for(let p of a){this.assert(p!==null,c.name,null);let m;switch(c.kind){case"message":m=c.T().internalJsonRead(p,n);break;case"enum":if(m=this.enum(c.T(),p,c.name,n.ignoreUnknownFields),m===!1)continue;break;case"scalar":m=this.scalar(p,c.T,c.L,c.name);break}this.assert(m!==void 0,c.name,a),d.push(m)}}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,s){if(e[0]=="google.protobuf.NullValue"&&zm.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 zm.assert(Number.isInteger(r),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${r}.`),r;case"string":let o=r;e[2]&&r.substring(0,e[2].length)===e[2]&&(o=r.substring(e[2].length));let a=e[1][o];return typeof a>"u"&&s?!1:(zm.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}zm.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof r}".`)}scalar(e,r,n,s){let o;try{switch(r){case un.ScalarType.DOUBLE:case un.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===""){o="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){o="extra whitespace";break}if(typeof e!="string"&&typeof e!="number")break;let a=Number(e);if(Number.isNaN(a)){o="not a number";break}if(!Number.isFinite(a)){o="too large or small";break}return r==un.ScalarType.FLOAT&&zm.assertFloat32(a),a;case un.ScalarType.INT32:case un.ScalarType.FIXED32:case un.ScalarType.SFIXED32:case un.ScalarType.SINT32:case un.ScalarType.UINT32:if(e===null)return 0;let c;if(typeof e=="number"?c=e:e===""?o="empty string":typeof e=="string"&&(e.trim().length!==e.length?o="extra whitespace":c=Number(e)),c===void 0)break;return r==un.ScalarType.UINT32?zm.assertUInt32(c):zm.assertInt32(c),c;case un.ScalarType.INT64:case un.ScalarType.SFIXED64:case un.ScalarType.SINT64:if(e===null)return aT.reflectionLongConvert(iT.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return aT.reflectionLongConvert(iT.PbLong.from(e),n);case un.ScalarType.FIXED64:case un.ScalarType.UINT64:if(e===null)return aT.reflectionLongConvert(iT.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return aT.reflectionLongConvert(iT.PbULong.from(e),n);case un.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case un.ScalarType.STRING:if(e===null)return"";if(typeof e!="string"){o="extra whitespace";break}try{encodeURIComponent(e)}catch(l){l="invalid UTF8";break}return e;case un.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return Yot.base64decode(e)}}catch(a){o=a.message}this.assert(!1,s+(o?" - "+o:""),e)}};cT.ReflectionJsonReader=qz});var Hz=b(lT=>{"use strict";Object.defineProperty(lT,"__esModule",{value:!0});lT.ReflectionJsonWriter=void 0;var Wot=VN(),DAe=Qd(),Ss=ga(),or=Zh(),Gz=class{static{i(this,"ReflectionJsonWriter")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}write(e,r){let n={},s=e;for(let o of this.fields){if(!o.oneof){let u=this.field(o,s[o.localName],r);u!==void 0&&(n[r.useProtoFieldName?o.name:o.jsonName]=u);continue}let a=s[o.oneof];if(a.oneofKind!==o.localName)continue;let c=o.kind=="scalar"||o.kind=="enum"?Object.assign(Object.assign({},r),{emitDefaultValues:!0}):r,l=this.field(o,a[o.localName],c);or.assert(l!==void 0),n[r.useProtoFieldName?o.name:o.jsonName]=l}return n}field(e,r,n){let s;if(e.kind=="map"){or.assert(typeof r=="object"&&r!==null);let o={};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);or.assert(d!==void 0),o[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);or.assert(d!==void 0),o[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){or.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);or.assert(d!==void 0),o[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(o).length>0)&&(s=o)}else if(e.repeat){or.assert(Array.isArray(r));let o=[];switch(e.kind){case"scalar":for(let l=0;l0||n.emitDefaultValues)&&(s=o)}else switch(e.kind){case"scalar":s=this.scalar(e.T,r,e.name,e.opt,n.emitDefaultValues);break;case"enum":s=this.enum(e.T(),r,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":s=this.message(e.T(),r,e.name,n);break}return s}enum(e,r,n,s,o,a){if(e[0]=="google.protobuf.NullValue")return!o&&!s?void 0:null;if(r===void 0){or.assert(s);return}if(!(r===0&&!o&&!s))return or.assert(typeof r=="number"),or.assert(Number.isInteger(r)),a||!e[1].hasOwnProperty(r)?r:e[2]?e[2]+e[1][r]:e[1][r]}message(e,r,n,s){return r===void 0?s.emitDefaultValues?null:void 0:e.internalJsonWrite(r,s)}scalar(e,r,n,s,o){if(r===void 0){or.assert(s);return}let a=o||s;switch(e){case Ss.ScalarType.INT32:case Ss.ScalarType.SFIXED32:case Ss.ScalarType.SINT32:return r===0?a?0:void 0:(or.assertInt32(r),r);case Ss.ScalarType.FIXED32:case Ss.ScalarType.UINT32:return r===0?a?0:void 0:(or.assertUInt32(r),r);case Ss.ScalarType.FLOAT:or.assertFloat32(r);case Ss.ScalarType.DOUBLE:return r===0?a?0:void 0:(or.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case Ss.ScalarType.STRING:return r===""?a?"":void 0:(or.assert(typeof r=="string"),r);case Ss.ScalarType.BOOL:return r===!1?a?!1:void 0:(or.assert(typeof r=="boolean"),r);case Ss.ScalarType.UINT64:case Ss.ScalarType.FIXED64:or.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=DAe.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case Ss.ScalarType.INT64:case Ss.ScalarType.SFIXED64:case Ss.ScalarType.SINT64:or.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=DAe.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case Ss.ScalarType.BYTES:return or.assert(r instanceof Uint8Array),r.byteLength?Wot.base64encode(r):a?"":void 0}}};lT.ReflectionJsonWriter=Gz});var dT=b(uT=>{"use strict";Object.defineProperty(uT,"__esModule",{value:!0});uT.reflectionScalarDefault=void 0;var ya=ga(),kAe=oT(),LAe=Qd();function jot(t,e=ya.LongType.STRING){switch(t){case ya.ScalarType.BOOL:return!1;case ya.ScalarType.UINT64:case ya.ScalarType.FIXED64:return kAe.reflectionLongConvert(LAe.PbULong.ZERO,e);case ya.ScalarType.INT64:case ya.ScalarType.SFIXED64:case ya.ScalarType.SINT64:return kAe.reflectionLongConvert(LAe.PbLong.ZERO,e);case ya.ScalarType.DOUBLE:case ya.ScalarType.FLOAT:return 0;case ya.ScalarType.BYTES:return new Uint8Array(0);case ya.ScalarType.STRING:return"";default:return 0}}i(jot,"reflectionScalarDefault");uT.reflectionScalarDefault=jot});var Vz=b(pT=>{"use strict";Object.defineProperty(pT,"__esModule",{value:!0});pT.ReflectionBinaryReader=void 0;var OAe=vI(),Mr=ga(),FI=oT(),MAe=dT(),zz=class{static{i(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,s){this.prepare();let o=s===void 0?e.len:e.pos+s;for(;e.pos{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});mT.ReflectionBinaryWriter=void 0;var qo=vI(),zt=ga(),rg=Zh(),UI=Qd(),Yz=class{static{i(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 o of this.fields){let a,c,l=o.repeat,u=o.localName;if(o.oneof){let d=e[o.oneof];if(d.oneofKind!==u)continue;a=d[u],c=!0}else a=e[u],c=!1;switch(o.kind){case"scalar":case"enum":let d=o.kind=="enum"?zt.ScalarType.INT32:o.T;if(l)if(rg.assert(Array.isArray(a)),l==zt.RepeatType.PACKED)this.packed(r,d,o.no,a);else for(let p of a)this.scalar(r,d,o.no,p,!0);else a===void 0?rg.assert(o.opt):this.scalar(r,d,o.no,a,c||o.opt);break;case"message":if(l){rg.assert(Array.isArray(a));for(let p of a)this.message(r,n,o.T(),o.no,p)}else this.message(r,n,o.T(),o.no,a);break;case"map":rg.assert(typeof a=="object"&&a!==null);for(let[p,m]of Object.entries(a))this.mapEntry(r,n,o,p,m);break}}let s=n.writeUnknownFields;s!==!1&&(s===!0?qo.UnknownFieldHandler.onWrite:s)(this.info.typeName,e,r)}mapEntry(e,r,n,s,o){e.tag(n.no,qo.WireType.LengthDelimited),e.fork();let a=s;switch(n.K){case zt.ScalarType.INT32:case zt.ScalarType.FIXED32:case zt.ScalarType.UINT32:case zt.ScalarType.SFIXED32:case zt.ScalarType.SINT32:a=Number.parseInt(s);break;case zt.ScalarType.BOOL:rg.assert(s=="true"||s=="false"),a=s=="true";break}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,o,!0);break;case"enum":this.scalar(e,zt.ScalarType.INT32,2,o,!0);break;case"message":this.message(e,r,n.V.T(),2,o);break}e.join()}message(e,r,n,s,o){o!==void 0&&(n.internalBinaryWrite(o,e.tag(s,qo.WireType.LengthDelimited).fork(),r),e.join())}scalar(e,r,n,s,o){let[a,c,l]=this.scalarInfo(r,s);(!l||o)&&(e.tag(n,a),e[c](s))}packed(e,r,n,s){if(!s.length)return;rg.assert(r!==zt.ScalarType.BYTES&&r!==zt.ScalarType.STRING),e.tag(n,qo.WireType.LengthDelimited),e.fork();let[,o]=this.scalarInfo(r);for(let a=0;a{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});fT.reflectionCreate=void 0;var Jot=dT(),Kot=MI();function Xot(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},Kot.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]=Jot.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}i(Xot,"reflectionCreate");fT.reflectionCreate=Xot});var Jz=b(AT=>{"use strict";Object.defineProperty(AT,"__esModule",{value:!0});AT.reflectionMergePartial=void 0;function Zot(t,e,r){let n,s=r,o;for(let a of t.fields){let c=a.localName;if(a.oneof){let l=s[a.oneof];if(l?.oneofKind==null)continue;if(n=l[c],o=e[a.oneof],o.oneofKind=l.oneofKind,n==null){delete o[c];continue}}else if(n=s[c],o=e,n==null)continue;switch(a.repeat&&(o[c].length=n.length),a.kind){case"scalar":case"enum":if(a.repeat)for(let u=0;u{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});gT.reflectionEquals=void 0;var Kz=ga();function eit(t,e,r){if(e===r)return!0;if(!e||!r)return!1;for(let n of t.fields){let s=n.localName,o=n.oneof?e[n.oneof][s]:e[s],a=n.oneof?r[n.oneof][s]:r[s];switch(n.kind){case"enum":case"scalar":let c=n.kind=="enum"?Kz.ScalarType.INT32:n.T;if(!(n.repeat?FAe(c,o,a):qAe(c,o,a)))return!1;break;case"map":if(!(n.V.kind=="message"?UAe(n.V.T(),hT(o),hT(a)):FAe(n.V.kind=="enum"?Kz.ScalarType.INT32:n.V.T,hT(o),hT(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?UAe(l,o,a):l.equals(o,a)))return!1;break}}return!0}i(eit,"reflectionEquals");gT.reflectionEquals=eit;var hT=Object.values;function qAe(t,e,r){if(e===r)return!0;if(t!==Kz.ScalarType.BYTES)return!1;let n=e,s=r;if(n.length!==s.length)return!1;for(let o=0;o{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.MessageType=void 0;var tit=MI(),rit=ga(),nit=Uz(),sit=$z(),oit=Hz(),iit=Vz(),ait=Wz(),cit=jz(),Zz=Jz(),lit=HN(),$Ae=Lz(),uit=Xz(),dit=kz(),pit=Dz(),GAe=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),mit=GAe[tit.MESSAGE_TYPE]={},e3=class{static{i(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(rit.normalizeFieldInfo),this.options=n??{},mit.value=this,this.messagePrototype=Object.create(null,GAe),this.refTypeCheck=new nit.ReflectionTypeCheck(this),this.refJsonReader=new sit.ReflectionJsonReader(this),this.refJsonWriter=new oit.ReflectionJsonWriter(this),this.refBinReader=new iit.ReflectionBinaryReader(this),this.refBinWriter=new ait.ReflectionBinaryWriter(this)}create(e){let r=cit.reflectionCreate(this);return e!==void 0&&Zz.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return Zz.reflectionMergePartial(this,r,e),r}equals(e,r){return uit.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){Zz.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=pit.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,$Ae.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,$Ae.jsonWriteOptions(r))}toJsonString(e,r){var n;let s=this.toJson(e,r);return JSON.stringify(s,null,(n=r?.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,r){let n=dit.binaryWriteOptions(r);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,r,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let s=n??this.create();return this.refJsonReader.read(e,s,r),s}throw new Error(`Unable to parse message ${this.typeName} from JSON ${lit.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,s){let o=s??this.create();return this.refBinReader.read(e,o,n,r),o}};yT.MessageType=e3});var zAe=b(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});ET.containsMessageType=void 0;var fit=MI();function Ait(t){return t[fit.MESSAGE_TYPE]!=null}i(Ait,"containsMessageType");ET.containsMessageType=Ait});var YAe=b(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.listEnumNumbers=_c.listEnumNames=_c.listEnumValues=_c.isEnumObject=void 0;function VAe(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}i(VAe,"isEnumObject");_c.isEnumObject=VAe;function t3(t){if(!VAe(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}i(t3,"listEnumValues");_c.listEnumValues=t3;function hit(t){return t3(t).map(e=>e.name)}i(hit,"listEnumNames");_c.listEnumNames=hit;function git(t){return t3(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}i(git,"listEnumNumbers");_c.listEnumNumbers=git});var Fr=b(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});var WAe=HN();Object.defineProperty(ve,"typeofJsonValue",{enumerable:!0,get:i(function(){return WAe.typeofJsonValue},"get")});Object.defineProperty(ve,"isJsonObject",{enumerable:!0,get:i(function(){return WAe.isJsonObject},"get")});var jAe=VN();Object.defineProperty(ve,"base64decode",{enumerable:!0,get:i(function(){return jAe.base64decode},"get")});Object.defineProperty(ve,"base64encode",{enumerable:!0,get:i(function(){return jAe.base64encode},"get")});var yit=IAe();Object.defineProperty(ve,"utf8read",{enumerable:!0,get:i(function(){return yit.utf8read},"get")});var r3=vI();Object.defineProperty(ve,"WireType",{enumerable:!0,get:i(function(){return r3.WireType},"get")});Object.defineProperty(ve,"mergeBinaryOptions",{enumerable:!0,get:i(function(){return r3.mergeBinaryOptions},"get")});Object.defineProperty(ve,"UnknownFieldHandler",{enumerable:!0,get:i(function(){return r3.UnknownFieldHandler},"get")});var JAe=Dz();Object.defineProperty(ve,"BinaryReader",{enumerable:!0,get:i(function(){return JAe.BinaryReader},"get")});Object.defineProperty(ve,"binaryReadOptions",{enumerable:!0,get:i(function(){return JAe.binaryReadOptions},"get")});var KAe=kz();Object.defineProperty(ve,"BinaryWriter",{enumerable:!0,get:i(function(){return KAe.BinaryWriter},"get")});Object.defineProperty(ve,"binaryWriteOptions",{enumerable:!0,get:i(function(){return KAe.binaryWriteOptions},"get")});var XAe=Qd();Object.defineProperty(ve,"PbLong",{enumerable:!0,get:i(function(){return XAe.PbLong},"get")});Object.defineProperty(ve,"PbULong",{enumerable:!0,get:i(function(){return XAe.PbULong},"get")});var n3=Lz();Object.defineProperty(ve,"jsonReadOptions",{enumerable:!0,get:i(function(){return n3.jsonReadOptions},"get")});Object.defineProperty(ve,"jsonWriteOptions",{enumerable:!0,get:i(function(){return n3.jsonWriteOptions},"get")});Object.defineProperty(ve,"mergeJsonOptions",{enumerable:!0,get:i(function(){return n3.mergeJsonOptions},"get")});var Eit=MI();Object.defineProperty(ve,"MESSAGE_TYPE",{enumerable:!0,get:i(function(){return Eit.MESSAGE_TYPE},"get")});var Cit=HAe();Object.defineProperty(ve,"MessageType",{enumerable:!0,get:i(function(){return Cit.MessageType},"get")});var Vm=ga();Object.defineProperty(ve,"ScalarType",{enumerable:!0,get:i(function(){return Vm.ScalarType},"get")});Object.defineProperty(ve,"LongType",{enumerable:!0,get:i(function(){return Vm.LongType},"get")});Object.defineProperty(ve,"RepeatType",{enumerable:!0,get:i(function(){return Vm.RepeatType},"get")});Object.defineProperty(ve,"normalizeFieldInfo",{enumerable:!0,get:i(function(){return Vm.normalizeFieldInfo},"get")});Object.defineProperty(ve,"readFieldOptions",{enumerable:!0,get:i(function(){return Vm.readFieldOptions},"get")});Object.defineProperty(ve,"readFieldOption",{enumerable:!0,get:i(function(){return Vm.readFieldOption},"get")});Object.defineProperty(ve,"readMessageOption",{enumerable:!0,get:i(function(){return Vm.readMessageOption},"get")});var Iit=Uz();Object.defineProperty(ve,"ReflectionTypeCheck",{enumerable:!0,get:i(function(){return Iit.ReflectionTypeCheck},"get")});var xit=jz();Object.defineProperty(ve,"reflectionCreate",{enumerable:!0,get:i(function(){return xit.reflectionCreate},"get")});var wit=dT();Object.defineProperty(ve,"reflectionScalarDefault",{enumerable:!0,get:i(function(){return wit.reflectionScalarDefault},"get")});var bit=Jz();Object.defineProperty(ve,"reflectionMergePartial",{enumerable:!0,get:i(function(){return bit.reflectionMergePartial},"get")});var Sit=Xz();Object.defineProperty(ve,"reflectionEquals",{enumerable:!0,get:i(function(){return Sit.reflectionEquals},"get")});var Bit=Vz();Object.defineProperty(ve,"ReflectionBinaryReader",{enumerable:!0,get:i(function(){return Bit.ReflectionBinaryReader},"get")});var Rit=Wz();Object.defineProperty(ve,"ReflectionBinaryWriter",{enumerable:!0,get:i(function(){return Rit.ReflectionBinaryWriter},"get")});var Nit=$z();Object.defineProperty(ve,"ReflectionJsonReader",{enumerable:!0,get:i(function(){return Nit.ReflectionJsonReader},"get")});var Tit=Hz();Object.defineProperty(ve,"ReflectionJsonWriter",{enumerable:!0,get:i(function(){return Tit.ReflectionJsonWriter},"get")});var Pit=zAe();Object.defineProperty(ve,"containsMessageType",{enumerable:!0,get:i(function(){return Pit.containsMessageType},"get")});var qI=Mz();Object.defineProperty(ve,"isOneofGroup",{enumerable:!0,get:i(function(){return qI.isOneofGroup},"get")});Object.defineProperty(ve,"setOneofValue",{enumerable:!0,get:i(function(){return qI.setOneofValue},"get")});Object.defineProperty(ve,"getOneofValue",{enumerable:!0,get:i(function(){return qI.getOneofValue},"get")});Object.defineProperty(ve,"clearOneofValue",{enumerable:!0,get:i(function(){return qI.clearOneofValue},"get")});Object.defineProperty(ve,"getSelectedOneofValue",{enumerable:!0,get:i(function(){return qI.getSelectedOneofValue},"get")});var CT=YAe();Object.defineProperty(ve,"listEnumValues",{enumerable:!0,get:i(function(){return CT.listEnumValues},"get")});Object.defineProperty(ve,"listEnumNames",{enumerable:!0,get:i(function(){return CT.listEnumNames},"get")});Object.defineProperty(ve,"listEnumNumbers",{enumerable:!0,get:i(function(){return CT.listEnumNumbers},"get")});Object.defineProperty(ve,"isEnumObject",{enumerable:!0,get:i(function(){return CT.isEnumObject},"get")});var vit=Oz();Object.defineProperty(ve,"lowerCamelCase",{enumerable:!0,get:i(function(){return vit.lowerCamelCase},"get")});var $I=Zh();Object.defineProperty(ve,"assert",{enumerable:!0,get:i(function(){return $I.assert},"get")});Object.defineProperty(ve,"assertNever",{enumerable:!0,get:i(function(){return $I.assertNever},"get")});Object.defineProperty(ve,"assertInt32",{enumerable:!0,get:i(function(){return $I.assertInt32},"get")});Object.defineProperty(ve,"assertUInt32",{enumerable:!0,get:i(function(){return $I.assertUInt32},"get")});Object.defineProperty(ve,"assertFloat32",{enumerable:!0,get:i(function(){return $I.assertFloat32},"get")})});var s3=b(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.readServiceOption=Qc.readMethodOption=Qc.readMethodOptions=Qc.normalizeMethodInfo=void 0;var _it=Fr();function Qit(t,e){var r,n,s;let o=t;return o.service=e,o.localName=(r=o.localName)!==null&&r!==void 0?r:_it.lowerCamelCase(o.name),o.serverStreaming=!!o.serverStreaming,o.clientStreaming=!!o.clientStreaming,o.options=(n=o.options)!==null&&n!==void 0?n:{},o.idempotency=(s=o.idempotency)!==null&&s!==void 0?s:void 0,o}i(Qit,"normalizeMethodInfo");Qc.normalizeMethodInfo=Qit;function Dit(t,e,r,n){var s;let o=(s=t.methods.find((a,c)=>a.localName===e||c===e))===null||s===void 0?void 0:s.options;return o&&o[r]?n.fromJson(o[r]):void 0}i(Dit,"readMethodOptions");Qc.readMethodOptions=Dit;function kit(t,e,r,n){var s;let o=(s=t.methods.find((c,l)=>c.localName===e||l===e))===null||s===void 0?void 0:s.options;if(!o)return;let a=o[r];return a===void 0?a:n?n.fromJson(a):a}i(kit,"readMethodOption");Qc.readMethodOption=kit;function Lit(t,e,r){let n=t.options;if(!n)return;let s=n[e];return s===void 0?s:r?r.fromJson(s):s}i(Lit,"readServiceOption");Qc.readServiceOption=Lit});var ZAe=b(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.ServiceType=void 0;var Oit=s3(),o3=class{static{i(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(s=>Oit.normalizeMethodInfo(s,this)),this.options=n??{}}};IT.ServiceType=o3});var a3=b(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0});xT.RpcError=void 0;var i3=class extends Error{static{i(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,s]of r)e.push(` ${n}: ${s}`)}return e.join(` +`)}};xT.RpcError=i3});var c3=b(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});bT.mergeRpcOptions=void 0;var ehe=Fr();function Mit(t,e){if(!e)return t;let r={};wT(t,r),wT(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=ehe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=ehe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},wT(t.meta,r.meta),wT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}i(Mit,"mergeRpcOptions");bT.mergeRpcOptions=Mit;function wT(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}i(wT,"copy")});var u3=b(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.Deferred=Ym.DeferredState=void 0;var Dc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Dc=Ym.DeferredState||(Ym.DeferredState={}));var l3=class{static{i(this,"Deferred")}constructor(e=!0){this._state=Dc.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!==Dc.PENDING)throw new Error(`cannot resolve ${Dc[this.state].toLowerCase()}`);this._resolve(e),this._state=Dc.RESOLVED}reject(e){if(this.state!==Dc.PENDING)throw new Error(`cannot reject ${Dc[this.state].toLowerCase()}`);this._reject(e),this._state=Dc.REJECTED}resolvePending(e){this._state===Dc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Dc.PENDING&&this.reject(e)}};Ym.Deferred=l3});var p3=b(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});ST.RpcOutputStreamController=void 0;var the=u3(),Wm=Fr(),d3=class{static{i(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){Wm.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){Wm.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){Wm.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(){Wm.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:i(()=>{let e=this._itState;Wm.assert(e,"bad state"),Wm.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 the.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Wm.assert(n.state==the.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};ST.RpcOutputStreamController=d3});var f3=b(ng=>{"use strict";var Fit=ng&&ng.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(ng,"__esModule",{value:!0});ng.UnaryCall=void 0;var m3=class{static{i(this,"UnaryCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=o,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 Fit(this,void 0,void 0,function*(){let[e,r,n,s]=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:s}})}};ng.UnaryCall=m3});var h3=b(sg=>{"use strict";var Uit=sg&&sg.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(sg,"__esModule",{value:!0});sg.ServerStreamingCall=void 0;var A3=class{static{i(this,"ServerStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.responses=o,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 Uit(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}})}};sg.ServerStreamingCall=A3});var y3=b(og=>{"use strict";var qit=og&&og.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(og,"__esModule",{value:!0});og.ClientStreamingCall=void 0;var g3=class{static{i(this,"ClientStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=s,this.response=o,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 qit(this,void 0,void 0,function*(){let[e,r,n,s]=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:s}})}};og.ClientStreamingCall=g3});var C3=b(ig=>{"use strict";var $it=ig&&ig.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(ig,"__esModule",{value:!0});ig.DuplexStreamingCall=void 0;var E3=class{static{i(this,"DuplexStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=s,this.responses=o,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 $it(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}})}};ig.DuplexStreamingCall=E3});var nhe=b(lg=>{"use strict";var Git=lg&&lg.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(lg,"__esModule",{value:!0});lg.TestTransport=void 0;var Bi=a3(),BT=Fr(),rhe=p3(),Hit=c3(),zit=f3(),Vit=h3(),Yit=y3(),Wit=C3(),cg=class t{static{i(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 ag?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof ag?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 Bi.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof Bi.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(BT.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),BT.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return Git(this,void 0,void 0,function*(){let s=[];if(this.data.response===void 0)s.push(e.O.create());else if(Array.isArray(this.data.response))for(let o of this.data.response)BT.assert(e.O.is(o)),s.push(o);else this.data.response instanceof Bi.RpcError||(BT.assert(e.O.is(this.data.response)),s.push(this.data.response));try{yield xn(this.responseDelay,n)(void 0)}catch(o){r.notifyError(o);return}if(this.data.response instanceof Bi.RpcError){r.notifyError(this.data.response);return}for(let o of s){r.notifyMessage(o);try{yield xn(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof Bi.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof Bi.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 Bi.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 Bi.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return Hit.mergeRpcOptions({},e)}unary(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(xn(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(xn(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(xn(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(xn(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new zit.UnaryCall(e,o,r,a,c,l,u)}serverStreaming(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(xn(this.headerDelay,n.abort)),c=new rhe.RpcOutputStreamController,l=a.then(xn(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(xn(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new Vit.ServerStreamingCall(e,o,r,a,c,u,d)}clientStreaming(e,r){var n;let s=(n=r.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(xn(this.headerDelay,r.abort)),a=o.catch(u=>{}).then(xn(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(xn(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(xn(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new ag(this.data,r.abort),new Yit.ClientStreamingCall(e,s,this.lastInput,o,a,c,l)}duplex(e,r){var n;let s=(n=r.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(xn(this.headerDelay,r.abort)),a=new rhe.RpcOutputStreamController,c=o.then(xn(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(xn(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new ag(this.data,r.abort),new Wit.DuplexStreamingCall(e,s,this.lastInput,o,a,l,u)}};lg.TestTransport=cg;cg.defaultHeaders={responseHeader:"test"};cg.defaultStatus={code:"OK",detail:"all good"};cg.defaultTrailers={responseTrailer:"test"};function xn(t,e){return r=>new Promise((n,s)=>{if(e?.aborted)s(new Bi.RpcError("user cancel","CANCELLED"));else{let o=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(o),s(new Bi.RpcError("user cancel","CANCELLED"))})}})}i(xn,"delay");var ag=class{static{i(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 Bi.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(xn(r,this.abort))}complete(){if(this.data.inputComplete instanceof Bi.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(xn(e,this.abort))}}});var she=b(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.stackDuplexStreamingInterceptors=Ri.stackClientStreamingInterceptors=Ri.stackServerStreamingInterceptors=Ri.stackUnaryInterceptors=Ri.stackIntercept=void 0;var jit=Fr();function GI(t,e,r,n,s){var o,a,c,l;if(t=="unary"){let u=i((d,p,m)=>e.unary(d,p,m),"tail");for(let d of((o=n.interceptors)!==null&&o!==void 0?o:[]).filter(p=>p.interceptUnary).reverse()){let p=u;u=i((m,f,g)=>d.interceptUnary(p,m,f,g),"tail")}return u(r,s,n)}if(t=="serverStreaming"){let u=i((d,p,m)=>e.serverStreaming(d,p,m),"tail");for(let d of((a=n.interceptors)!==null&&a!==void 0?a:[]).filter(p=>p.interceptServerStreaming).reverse()){let p=u;u=i((m,f,g)=>d.interceptServerStreaming(p,m,f,g),"tail")}return u(r,s,n)}if(t=="clientStreaming"){let u=i((d,p)=>e.clientStreaming(d,p),"tail");for(let d of((c=n.interceptors)!==null&&c!==void 0?c:[]).filter(p=>p.interceptClientStreaming).reverse()){let p=u;u=i((m,f)=>d.interceptClientStreaming(p,m,f),"tail")}return u(r,n)}if(t=="duplex"){let u=i((d,p)=>e.duplex(d,p),"tail");for(let d of((l=n.interceptors)!==null&&l!==void 0?l:[]).filter(p=>p.interceptDuplex).reverse()){let p=u;u=i((m,f)=>d.interceptDuplex(p,m,f),"tail")}return u(r,n)}jit.assertNever(t)}i(GI,"stackIntercept");Ri.stackIntercept=GI;function Jit(t,e,r,n){return GI("unary",t,e,n,r)}i(Jit,"stackUnaryInterceptors");Ri.stackUnaryInterceptors=Jit;function Kit(t,e,r,n){return GI("serverStreaming",t,e,n,r)}i(Kit,"stackServerStreamingInterceptors");Ri.stackServerStreamingInterceptors=Kit;function Xit(t,e,r){return GI("clientStreaming",t,e,r)}i(Xit,"stackClientStreamingInterceptors");Ri.stackClientStreamingInterceptors=Xit;function Zit(t,e,r){return GI("duplex",t,e,r)}i(Zit,"stackDuplexStreamingInterceptors");Ri.stackDuplexStreamingInterceptors=Zit});var ohe=b(RT=>{"use strict";Object.defineProperty(RT,"__esModule",{value:!0});RT.ServerCallContextController=void 0;var I3=class{static{i(this,"ServerCallContextController")}constructor(e,r,n,s,o={code:"OK",detail:""}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=r,this.deadline=n,this.trailers={},this._sendRH=s,this.status=o}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)}}};RT.ServerCallContextController=I3});var ahe=b(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});var eat=ZAe();Object.defineProperty(Nr,"ServiceType",{enumerable:!0,get:i(function(){return eat.ServiceType},"get")});var x3=s3();Object.defineProperty(Nr,"readMethodOptions",{enumerable:!0,get:i(function(){return x3.readMethodOptions},"get")});Object.defineProperty(Nr,"readMethodOption",{enumerable:!0,get:i(function(){return x3.readMethodOption},"get")});Object.defineProperty(Nr,"readServiceOption",{enumerable:!0,get:i(function(){return x3.readServiceOption},"get")});var tat=a3();Object.defineProperty(Nr,"RpcError",{enumerable:!0,get:i(function(){return tat.RpcError},"get")});var rat=c3();Object.defineProperty(Nr,"mergeRpcOptions",{enumerable:!0,get:i(function(){return rat.mergeRpcOptions},"get")});var nat=p3();Object.defineProperty(Nr,"RpcOutputStreamController",{enumerable:!0,get:i(function(){return nat.RpcOutputStreamController},"get")});var sat=nhe();Object.defineProperty(Nr,"TestTransport",{enumerable:!0,get:i(function(){return sat.TestTransport},"get")});var ihe=u3();Object.defineProperty(Nr,"Deferred",{enumerable:!0,get:i(function(){return ihe.Deferred},"get")});Object.defineProperty(Nr,"DeferredState",{enumerable:!0,get:i(function(){return ihe.DeferredState},"get")});var oat=C3();Object.defineProperty(Nr,"DuplexStreamingCall",{enumerable:!0,get:i(function(){return oat.DuplexStreamingCall},"get")});var iat=y3();Object.defineProperty(Nr,"ClientStreamingCall",{enumerable:!0,get:i(function(){return iat.ClientStreamingCall},"get")});var aat=h3();Object.defineProperty(Nr,"ServerStreamingCall",{enumerable:!0,get:i(function(){return aat.ServerStreamingCall},"get")});var cat=f3();Object.defineProperty(Nr,"UnaryCall",{enumerable:!0,get:i(function(){return cat.UnaryCall},"get")});var HI=she();Object.defineProperty(Nr,"stackIntercept",{enumerable:!0,get:i(function(){return HI.stackIntercept},"get")});Object.defineProperty(Nr,"stackDuplexStreamingInterceptors",{enumerable:!0,get:i(function(){return HI.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(Nr,"stackClientStreamingInterceptors",{enumerable:!0,get:i(function(){return HI.stackClientStreamingInterceptors},"get")});Object.defineProperty(Nr,"stackServerStreamingInterceptors",{enumerable:!0,get:i(function(){return HI.stackServerStreamingInterceptors},"get")});Object.defineProperty(Nr,"stackUnaryInterceptors",{enumerable:!0,get:i(function(){return HI.stackUnaryInterceptors},"get")});var lat=ohe();Object.defineProperty(Nr,"ServerCallContextController",{enumerable:!0,get:i(function(){return lat.ServerCallContextController},"get")})});var gg=b((mur,dge)=>{"use strict";var Hlt="2.0.0",zlt=Number.MAX_SAFE_INTEGER||9007199254740991,Vlt=16,Ylt=250,Wlt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];dge.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Vlt,MAX_SAFE_BUILD_LENGTH:Ylt,MAX_SAFE_INTEGER:zlt,RELEASE_TYPES:Wlt,SEMVER_SPEC_VERSION:Hlt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var XI=b((fur,pge)=>{"use strict";var jlt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pge.exports=jlt});var yg=b((Oc,mge)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:dV,MAX_SAFE_BUILD_LENGTH:Jlt,MAX_LENGTH:Klt}=gg(),Xlt=XI();Oc=mge.exports={};var Zlt=Oc.re=[],eut=Oc.safeRe=[],ue=Oc.src=[],tut=Oc.safeSrc=[],de=Oc.t={},rut=0,pV="[a-zA-Z0-9-]",nut=[["\\s",1],["\\d",Klt],[pV,Jlt]],sut=i(t=>{for(let[e,r]of nut)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),rt=i((t,e,r)=>{let n=sut(e),s=rut++;Xlt(t,s,e),de[t]=s,ue[s]=e,tut[s]=n,Zlt[s]=new RegExp(e,r?"g":void 0),eut[s]=new RegExp(n,r?"g":void 0)},"createToken");rt("NUMERICIDENTIFIER","0|[1-9]\\d*");rt("NUMERICIDENTIFIERLOOSE","\\d+");rt("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${pV}*`);rt("MAINVERSION",`(${ue[de.NUMERICIDENTIFIER]})\\.(${ue[de.NUMERICIDENTIFIER]})\\.(${ue[de.NUMERICIDENTIFIER]})`);rt("MAINVERSIONLOOSE",`(${ue[de.NUMERICIDENTIFIERLOOSE]})\\.(${ue[de.NUMERICIDENTIFIERLOOSE]})\\.(${ue[de.NUMERICIDENTIFIERLOOSE]})`);rt("PRERELEASEIDENTIFIER",`(?:${ue[de.NONNUMERICIDENTIFIER]}|${ue[de.NUMERICIDENTIFIER]})`);rt("PRERELEASEIDENTIFIERLOOSE",`(?:${ue[de.NONNUMERICIDENTIFIER]}|${ue[de.NUMERICIDENTIFIERLOOSE]})`);rt("PRERELEASE",`(?:-(${ue[de.PRERELEASEIDENTIFIER]}(?:\\.${ue[de.PRERELEASEIDENTIFIER]})*))`);rt("PRERELEASELOOSE",`(?:-?(${ue[de.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ue[de.PRERELEASEIDENTIFIERLOOSE]})*))`);rt("BUILDIDENTIFIER",`${pV}+`);rt("BUILD",`(?:\\+(${ue[de.BUILDIDENTIFIER]}(?:\\.${ue[de.BUILDIDENTIFIER]})*))`);rt("FULLPLAIN",`v?${ue[de.MAINVERSION]}${ue[de.PRERELEASE]}?${ue[de.BUILD]}?`);rt("FULL",`^${ue[de.FULLPLAIN]}$`);rt("LOOSEPLAIN",`[v=\\s]*${ue[de.MAINVERSIONLOOSE]}${ue[de.PRERELEASELOOSE]}?${ue[de.BUILD]}?`);rt("LOOSE",`^${ue[de.LOOSEPLAIN]}$`);rt("GTLT","((?:<|>)?=?)");rt("XRANGEIDENTIFIERLOOSE",`${ue[de.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);rt("XRANGEIDENTIFIER",`${ue[de.NUMERICIDENTIFIER]}|x|X|\\*`);rt("XRANGEPLAIN",`[v=\\s]*(${ue[de.XRANGEIDENTIFIER]})(?:\\.(${ue[de.XRANGEIDENTIFIER]})(?:\\.(${ue[de.XRANGEIDENTIFIER]})(?:${ue[de.PRERELEASE]})?${ue[de.BUILD]}?)?)?`);rt("XRANGEPLAINLOOSE",`[v=\\s]*(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:${ue[de.PRERELEASELOOSE]})?${ue[de.BUILD]}?)?)?`);rt("XRANGE",`^${ue[de.GTLT]}\\s*${ue[de.XRANGEPLAIN]}$`);rt("XRANGELOOSE",`^${ue[de.GTLT]}\\s*${ue[de.XRANGEPLAINLOOSE]}$`);rt("COERCEPLAIN",`(^|[^\\d])(\\d{1,${dV}})(?:\\.(\\d{1,${dV}}))?(?:\\.(\\d{1,${dV}}))?`);rt("COERCE",`${ue[de.COERCEPLAIN]}(?:$|[^\\d])`);rt("COERCEFULL",ue[de.COERCEPLAIN]+`(?:${ue[de.PRERELEASE]})?(?:${ue[de.BUILD]})?(?:$|[^\\d])`);rt("COERCERTL",ue[de.COERCE],!0);rt("COERCERTLFULL",ue[de.COERCEFULL],!0);rt("LONETILDE","(?:~>?)");rt("TILDETRIM",`(\\s*)${ue[de.LONETILDE]}\\s+`,!0);Oc.tildeTrimReplace="$1~";rt("TILDE",`^${ue[de.LONETILDE]}${ue[de.XRANGEPLAIN]}$`);rt("TILDELOOSE",`^${ue[de.LONETILDE]}${ue[de.XRANGEPLAINLOOSE]}$`);rt("LONECARET","(?:\\^)");rt("CARETTRIM",`(\\s*)${ue[de.LONECARET]}\\s+`,!0);Oc.caretTrimReplace="$1^";rt("CARET",`^${ue[de.LONECARET]}${ue[de.XRANGEPLAIN]}$`);rt("CARETLOOSE",`^${ue[de.LONECARET]}${ue[de.XRANGEPLAINLOOSE]}$`);rt("COMPARATORLOOSE",`^${ue[de.GTLT]}\\s*(${ue[de.LOOSEPLAIN]})$|^$`);rt("COMPARATOR",`^${ue[de.GTLT]}\\s*(${ue[de.FULLPLAIN]})$|^$`);rt("COMPARATORTRIM",`(\\s*)${ue[de.GTLT]}\\s*(${ue[de.LOOSEPLAIN]}|${ue[de.XRANGEPLAIN]})`,!0);Oc.comparatorTrimReplace="$1$2$3";rt("HYPHENRANGE",`^\\s*(${ue[de.XRANGEPLAIN]})\\s+-\\s+(${ue[de.XRANGEPLAIN]})\\s*$`);rt("HYPHENRANGELOOSE",`^\\s*(${ue[de.XRANGEPLAINLOOSE]})\\s+-\\s+(${ue[de.XRANGEPLAINLOOSE]})\\s*$`);rt("STAR","(<|>)?=?\\s*\\*");rt("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");rt("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var UT=b((hur,fge)=>{"use strict";var out=Object.freeze({loose:!0}),iut=Object.freeze({}),aut=i(t=>t?typeof t!="object"?out:t:iut,"parseOptions");fge.exports=aut});var mV=b((yur,gge)=>{"use strict";var Age=/^[0-9]+$/,hge=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:thge(e,t),"rcompareIdentifiers");gge.exports={compareIdentifiers:hge,rcompareIdentifiers:cut}});var _n=b((Cur,Ege)=>{"use strict";var qT=XI(),{MAX_LENGTH:yge,MAX_SAFE_INTEGER:$T}=gg(),{safeRe:GT,t:HT}=yg(),lut=UT(),{compareIdentifiers:fV}=mV(),AV=class t{static{i(this,"SemVer")}constructor(e,r){if(r=lut(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>yge)throw new TypeError(`version is longer than ${yge} characters`);qT("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?GT[HT.LOOSE]:GT[HT.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>$T||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$T||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$T||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&o<$T)return o}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(qT("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.majore.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],s=e.prerelease[r];if(qT("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return fV(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(qT("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return fV(n,s)}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 s=`-${r}`.match(this.options.loose?GT[HT.PRERELEASELOOSE]:GT[HT.PRERELEASE]);if(!s||s[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 s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];n===!1&&(o=[r]),fV(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Ege.exports=AV});var Md=b((xur,Ige)=>{"use strict";var Cge=_n(),uut=i((t,e,r=!1)=>{if(t instanceof Cge)return t;try{return new Cge(t,e)}catch(n){if(!r)return null;throw n}},"parse");Ige.exports=uut});var wge=b((bur,xge)=>{"use strict";var dut=Md(),put=i((t,e)=>{let r=dut(t,e);return r?r.version:null},"valid");xge.exports=put});var Sge=b((Bur,bge)=>{"use strict";var mut=Md(),fut=i((t,e)=>{let r=mut(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");bge.exports=fut});var Nge=b((Nur,Rge)=>{"use strict";var Bge=_n(),Aut=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Bge(t instanceof Bge?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Rge.exports=Aut});var vge=b((Pur,Pge)=>{"use strict";var Tge=Md(),hut=i((t,e)=>{let r=Tge(t,null,!0),n=Tge(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?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");Pge.exports=hut});var Qge=b((_ur,_ge)=>{"use strict";var gut=_n(),yut=i((t,e)=>new gut(t,e).major,"major");_ge.exports=yut});var kge=b((Dur,Dge)=>{"use strict";var Eut=_n(),Cut=i((t,e)=>new Eut(t,e).minor,"minor");Dge.exports=Cut});var Oge=b((Lur,Lge)=>{"use strict";var Iut=_n(),xut=i((t,e)=>new Iut(t,e).patch,"patch");Lge.exports=xut});var Fge=b((Mur,Mge)=>{"use strict";var wut=Md(),but=i((t,e)=>{let r=wut(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Mge.exports=but});var Ni=b((Uur,qge)=>{"use strict";var Uge=_n(),Sut=i((t,e,r)=>new Uge(t,r).compare(new Uge(e,r)),"compare");qge.exports=Sut});var Gge=b(($ur,$ge)=>{"use strict";var But=Ni(),Rut=i((t,e,r)=>But(e,t,r),"rcompare");$ge.exports=Rut});var zge=b((Hur,Hge)=>{"use strict";var Nut=Ni(),Tut=i((t,e)=>Nut(t,e,!0),"compareLoose");Hge.exports=Tut});var zT=b((Vur,Yge)=>{"use strict";var Vge=_n(),Put=i((t,e,r)=>{let n=new Vge(t,r),s=new Vge(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Yge.exports=Put});var jge=b((Wur,Wge)=>{"use strict";var vut=zT(),_ut=i((t,e)=>t.sort((r,n)=>vut(r,n,e)),"sort");Wge.exports=_ut});var Kge=b((Jur,Jge)=>{"use strict";var Qut=zT(),Dut=i((t,e)=>t.sort((r,n)=>Qut(n,r,e)),"rsort");Jge.exports=Dut});var ZI=b((Xur,Xge)=>{"use strict";var kut=Ni(),Lut=i((t,e,r)=>kut(t,e,r)>0,"gt");Xge.exports=Lut});var VT=b((edr,Zge)=>{"use strict";var Out=Ni(),Mut=i((t,e,r)=>Out(t,e,r)<0,"lt");Zge.exports=Mut});var hV=b((rdr,eye)=>{"use strict";var Fut=Ni(),Uut=i((t,e,r)=>Fut(t,e,r)===0,"eq");eye.exports=Uut});var gV=b((sdr,tye)=>{"use strict";var qut=Ni(),$ut=i((t,e,r)=>qut(t,e,r)!==0,"neq");tye.exports=$ut});var YT=b((idr,rye)=>{"use strict";var Gut=Ni(),Hut=i((t,e,r)=>Gut(t,e,r)>=0,"gte");rye.exports=Hut});var WT=b((cdr,nye)=>{"use strict";var zut=Ni(),Vut=i((t,e,r)=>zut(t,e,r)<=0,"lte");nye.exports=Vut});var yV=b((udr,sye)=>{"use strict";var Yut=hV(),Wut=gV(),jut=ZI(),Jut=YT(),Kut=VT(),Xut=WT(),Zut=i((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 Yut(t,r,n);case"!=":return Wut(t,r,n);case">":return jut(t,r,n);case">=":return Jut(t,r,n);case"<":return Kut(t,r,n);case"<=":return Xut(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");sye.exports=Zut});var iye=b((pdr,oye)=>{"use strict";var edt=_n(),tdt=Md(),{safeRe:jT,t:JT}=yg(),rdt=i((t,e)=>{if(t instanceof edt)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?jT[JT.COERCEFULL]:jT[JT.COERCE]);else{let l=e.includePrerelease?jT[JT.COERCERTLFULL]:jT[JT.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],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return tdt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");oye.exports=rdt});var cye=b((fdr,aye)=>{"use strict";var ndt=Md(),sdt=gg(),odt=_n(),idt=i((t,e,r)=>{if(!sdt.RELEASE_TYPES.includes(e))return null;let n=adt(t,r);return n&&cdt(n,e)},"truncate"),adt=i((t,e)=>{let r=t instanceof odt?t.version:t;return ndt(r,e)},"cloneInputVersion"),cdt=i((t,e)=>{if(ldt(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"),ldt=i(t=>t.startsWith("pre"),"isPrerelease");aye.exports=idt});var uye=b((hdr,lye)=>{"use strict";var EV=class{static{i(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 s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};lye.exports=EV});var Ti=b((ydr,fye)=>{"use strict";var udt=/\s+/g,CV=class t{static{i(this,"Range")}constructor(e,r){if(r=pdt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof IV)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(udt," "),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(s=>!pye(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Idt(s[0])){this.set=[s];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(Cdt,"");let n=((this.options.includePrerelease&&ydt)|(this.options.loose&&Edt))+":"+e,s=dye.get(n);if(s)return s;let o=this.options.loose,a=o?Bs[Qn.HYPHENRANGELOOSE]:Bs[Qn.HYPHENRANGE];e=e.replace(a,vdt(this.options.includePrerelease)),Jt("hyphen replace",e),e=e.replace(Bs[Qn.COMPARATORTRIM],Adt),Jt("comparator trim",e),e=e.replace(Bs[Qn.TILDETRIM],hdt),Jt("tilde trim",e),e=e.replace(Bs[Qn.CARETTRIM],gdt),Jt("caret trim",e);let c=e.split(" ").map(p=>xdt(p,this.options)).join(" ").split(/\s+/).map(p=>Pdt(p,this.options));o&&(c=c.filter(p=>(Jt("loose invalid filter",p,this.options),!!p.match(Bs[Qn.COMPARATORLOOSE])))),Jt("range list",c);let l=new Map,u=c.map(p=>new IV(p,this.options));for(let p of u){if(pye(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return dye.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>mye(n,r)&&e.set.some(s=>mye(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new mdt(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),Idt=i(t=>t.value==="","isAny"),mye=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),xdt=i((t,e)=>(t=t.replace(Bs[Qn.BUILD],""),Jt("comp",t,e),t=Sdt(t,e),Jt("caret",t),t=wdt(t,e),Jt("tildes",t),t=Rdt(t,e),Jt("xrange",t),t=Tdt(t,e),Jt("stars",t),t),"parseComparator"),Rs=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),wdt=i((t,e)=>t.trim().split(/\s+/).map(r=>bdt(r,e)).join(" "),"replaceTildes"),bdt=i((t,e)=>{let r=e.loose?Bs[Qn.TILDELOOSE]:Bs[Qn.TILDE];return t.replace(r,(n,s,o,a,c)=>{Jt("tilde",t,n,s,o,a,c);let l;return Rs(s)?l="":Rs(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:Rs(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(Jt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,Jt("tilde return",l),l})},"replaceTilde"),Sdt=i((t,e)=>t.trim().split(/\s+/).map(r=>Bdt(r,e)).join(" "),"replaceCarets"),Bdt=i((t,e)=>{Jt("caret",t,e);let r=e.loose?Bs[Qn.CARETLOOSE]:Bs[Qn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Jt("caret",t,s,o,a,c,l);let u;return Rs(o)?u="":Rs(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Rs(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Jt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Jt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Jt("caret return",u),u})},"replaceCaret"),Rdt=i((t,e)=>(Jt("replaceXRanges",t,e),t.split(/\s+/).map(r=>Ndt(r,e)).join(" ")),"replaceXRanges"),Ndt=i((t,e)=>{t=t.trim();let r=e.loose?Bs[Qn.XRANGELOOSE]:Bs[Qn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{Jt("xRange",t,n,s,o,a,c,l);let u=Rs(o),d=u||Rs(a),p=d||Rs(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Jt("xRange return",n),n})},"replaceXRange"),Tdt=i((t,e)=>(Jt("replaceStars",t,e),t.trim().replace(Bs[Qn.STAR],"")),"replaceStars"),Pdt=i((t,e)=>(Jt("replaceGTE0",t,e),t.trim().replace(Bs[e.includePrerelease?Qn.GTE0PRE:Qn.GTE0],"")),"replaceGTE0"),vdt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,m)=>(Rs(n)?r="":Rs(s)?r=`>=${n}.0.0${t?"-0":""}`:Rs(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Rs(u)?l="":Rs(d)?l=`<${+u+1}.0.0-0`:Rs(p)?l=`<${u}.${+d+1}.0-0`:m?l=`<=${u}.${d}.${p}-${m}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),_dt=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var ex=b((Cdr,Cye)=>{"use strict";var tx=Symbol("SemVer ANY"),bV=class t{static{i(this,"Comparator")}static get ANY(){return tx}constructor(e,r){if(r=Aye(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),wV("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===tx?this.value="":this.value=this.operator+this.semver.version,wV("comp",this)}parse(e){let r=this.options.loose?hye[gye.COMPARATORLOOSE]:hye[gye.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 yye(n[2],this.options.loose):this.semver=tx}toString(){return this.value}test(e){if(wV("Comparator.test",e,this.options.loose),this.semver===tx||e===tx)return!0;if(typeof e=="string")try{e=new yye(e,this.options)}catch{return!1}return xV(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 Eye(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Eye(this.value,r).test(e.semver):(r=Aye(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("=")||xV(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||xV(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Cye.exports=bV;var Aye=UT(),{safeRe:hye,t:gye}=yg(),xV=yV(),wV=XI(),yye=_n(),Eye=Ti()});var rx=b((xdr,Iye)=>{"use strict";var Qdt=Ti(),Ddt=i((t,e,r)=>{try{e=new Qdt(e,r)}catch{return!1}return e.test(t)},"satisfies");Iye.exports=Ddt});var wye=b((bdr,xye)=>{"use strict";var kdt=Ti(),Ldt=i((t,e)=>new kdt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");xye.exports=Ldt});var Sye=b((Bdr,bye)=>{"use strict";var Odt=_n(),Mdt=Ti(),Fdt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Mdt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new Odt(n,r))}),n},"maxSatisfying");bye.exports=Fdt});var Rye=b((Ndr,Bye)=>{"use strict";var Udt=_n(),qdt=Ti(),$dt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new qdt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Udt(n,r))}),n},"minSatisfying");Bye.exports=$dt});var Pye=b((Pdr,Tye)=>{"use strict";var SV=_n(),Gdt=Ti(),Nye=ZI(),Hdt=i((t,e)=>{t=new Gdt(t,e);let r=new SV("0.0.0");if(t.test(r)||(r=new SV("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new SV(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Nye(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Nye(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");Tye.exports=Hdt});var _ye=b((_dr,vye)=>{"use strict";var zdt=Ti(),Vdt=i((t,e)=>{try{return new zdt(t,e).range||"*"}catch{return null}},"validRange");vye.exports=Vdt});var KT=b((Ddr,Lye)=>{"use strict";var Ydt=_n(),kye=ex(),{ANY:Wdt}=kye,jdt=Ti(),Jdt=rx(),Qye=ZI(),Dye=VT(),Kdt=WT(),Xdt=YT(),Zdt=i((t,e,r,n)=>{t=new Ydt(t,n),e=new jdt(e,n);let s,o,a,c,l;switch(r){case">":s=Qye,o=Kdt,a=Dye,c=">",l=">=";break;case"<":s=Dye,o=Xdt,a=Qye,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Jdt(t,e,n))return!1;for(let u=0;u{f.semver===Wdt&&(f=new kye(">=0.0.0")),p=p||f,m=m||f,s(f.semver,p.semver,n)?p=f:a(f.semver,m.semver,n)&&(m=f)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(t,m.semver))return!1;if(m.operator===l&&a(t,m.semver))return!1}return!0},"outside");Lye.exports=Zdt});var Mye=b((Ldr,Oye)=>{"use strict";var ept=KT(),tpt=i((t,e,r)=>ept(t,e,">",r),"gtr");Oye.exports=tpt});var Uye=b((Mdr,Fye)=>{"use strict";var rpt=KT(),npt=i((t,e,r)=>rpt(t,e,"<",r),"ltr");Fye.exports=npt});var Gye=b((Udr,$ye)=>{"use strict";var qye=Ti(),spt=i((t,e,r)=>(t=new qye(t,r),e=new qye(e,r),t.intersects(e,r)),"intersects");$ye.exports=spt});var zye=b(($dr,Hye)=>{"use strict";var opt=rx(),ipt=Ni();Hye.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>ipt(d,p,r));for(let d of a)opt(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var Vye=Ti(),NV=ex(),{ANY:BV}=NV,RV=rx(),TV=Ni(),apt=i((t,e,r={})=>{if(t===e)return!0;t=new Vye(t,r),e=new Vye(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=lpt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),cpt=[new NV(">=0.0.0-0")],Yye=[new NV(">=0.0.0")],lpt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===BV){if(e.length===1&&e[0].semver===BV)return!0;r.includePrerelease?t=cpt:t=Yye}if(e.length===1&&e[0].semver===BV){if(r.includePrerelease)return!0;e=Yye}let n=new Set,s,o;for(let f of t)f.operator===">"||f.operator===">="?s=Wye(s,f,r):f.operator==="<"||f.operator==="<="?o=jye(o,f,r):n.add(f.semver);if(n.size>1)return null;let a;if(s&&o){if(a=TV(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let f of n){if(s&&!RV(f,String(s),r)||o&&!RV(f,String(o),r))return null;for(let g of e)if(!RV(f,String(g),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",u=u||f.operator==="<"||f.operator==="<=",s){if(m&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===m.major&&f.semver.minor===m.minor&&f.semver.patch===m.patch&&(m=!1),f.operator===">"||f.operator===">="){if(c=Wye(s,f,r),c===f&&c!==s)return!1}else if(s.operator===">="&&!f.test(s.semver))return!1}if(o){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(l=jye(o,f,r),l===f&&l!==o)return!1}else if(o.operator==="<="&&!f.test(o.semver))return!1}if(!f.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||m||p)},"simpleSubset"),Wye=i((t,e,r)=>{if(!t)return e;let n=TV(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),jye=i((t,e,r)=>{if(!t)return e;let n=TV(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Jye.exports=apt});var tEe=b((zdr,eEe)=>{"use strict";var PV=yg(),Xye=gg(),upt=_n(),Zye=mV(),dpt=Md(),ppt=wge(),mpt=Sge(),fpt=Nge(),Apt=vge(),hpt=Qge(),gpt=kge(),ypt=Oge(),Ept=Fge(),Cpt=Ni(),Ipt=Gge(),xpt=zge(),wpt=zT(),bpt=jge(),Spt=Kge(),Bpt=ZI(),Rpt=VT(),Npt=hV(),Tpt=gV(),Ppt=YT(),vpt=WT(),_pt=yV(),Qpt=iye(),Dpt=cye(),kpt=ex(),Lpt=Ti(),Opt=rx(),Mpt=wye(),Fpt=Sye(),Upt=Rye(),qpt=Pye(),$pt=_ye(),Gpt=KT(),Hpt=Mye(),zpt=Uye(),Vpt=Gye(),Ypt=zye(),Wpt=Kye();eEe.exports={parse:dpt,valid:ppt,clean:mpt,inc:fpt,diff:Apt,major:hpt,minor:gpt,patch:ypt,prerelease:Ept,compare:Cpt,rcompare:Ipt,compareLoose:xpt,compareBuild:wpt,sort:bpt,rsort:Spt,gt:Bpt,lt:Rpt,eq:Npt,neq:Tpt,gte:Ppt,lte:vpt,cmp:_pt,coerce:Qpt,truncate:Dpt,Comparator:kpt,Range:Lpt,satisfies:Opt,toComparators:Mpt,maxSatisfying:Fpt,minSatisfying:Upt,minVersion:qpt,validRange:$pt,outside:Gpt,gtr:Hpt,ltr:zpt,intersects:Vpt,simplifyRange:Ypt,subset:Wpt,SemVer:upt,re:PV.re,src:PV.src,tokens:PV.t,SEMVER_SPEC_VERSION:Xye.SEMVER_SPEC_VERSION,RELEASE_TYPES:Xye.RELEASE_TYPES,compareIdentifiers:Zye.compareIdentifiers,rcompareIdentifiers:Zye.rcompareIdentifiers}});var EEe=b((Wdr,du)=>{var Lt=require("fs"),eP=require("os"),pn=require("path"),rEe=require("crypto"),Mc={fs:Lt.constants,os:eP.constants},nEe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",aEe=/XXXXXX/,jpt=3,cEe=(Mc.O_CREAT||Mc.fs.O_CREAT)|(Mc.O_EXCL||Mc.fs.O_EXCL)|(Mc.O_RDWR||Mc.fs.O_RDWR),Jpt=eP.platform()==="win32",Kpt=Mc.EBADF||Mc.os.errno.EBADF,Xpt=Mc.ENOENT||Mc.os.errno.ENOENT,lEe=448,uEe=384,Zpt="exit",Eg=[],dEe=Lt.rmdirSync.bind(Lt),pEe=!1;function emt(t,e){return Lt.rm(t,{recursive:!0},e)}i(emt,"rimraf");function mEe(t){return Lt.rmSync(t,{recursive:!0})}i(mEe,"FN_RIMRAF_SYNC");function DV(t,e){let r=Cg(t,e),n=r[0],s=r[1];umt(n,function(o,a){if(o)return s(o);let c=a.tries;i((function l(){try{let u=AEe(a);Lt.stat(u,function(d){if(!d)return c-- >0?l():s(new Error("Could not get a unique tmp filename, max tries reached "+u));s(null,u)})}catch(u){s(u)}}),"_getUniqueName")()})}i(DV,"tmpName");function kV(t){let e=Cg(t),r=e[0],n=dmt(r),s=n.tries;do{let o=AEe(n);try{Lt.statSync(o)}catch{return o}}while(s-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}i(kV,"tmpNameSync");function tmt(t,e){let r=Cg(t,e),n=r[0],s=r[1];DV(n,i(function(a,c){if(a)return s(a);Lt.open(c,cEe,n.mode||uEe,i(function(u,d){if(u)return s(u);if(n.discardDescriptor)return Lt.close(d,i(function(m){return s(m,c,void 0,_V(c,-1,n,!1))},"_discardCallback"));{let p=n.discardDescriptor||n.detachDescriptor;s(null,c,d,_V(c,p?-1:d,n,!1))}},"_fileCreated"))},"_tmpNameCreated"))}i(tmt,"file");function rmt(t){let e=Cg(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,s=kV(r),o=Lt.openSync(s,cEe,r.mode||uEe);return r.discardDescriptor&&(Lt.closeSync(o),o=void 0),{name:s,fd:o,removeCallback:_V(s,n?-1:o,r,!0)}}i(rmt,"fileSync");function nmt(t,e){let r=Cg(t,e),n=r[0],s=r[1];DV(n,i(function(a,c){if(a)return s(a);Lt.mkdir(c,n.mode||lEe,i(function(u){if(u)return s(u);s(null,c,fEe(c,n,!1))},"_dirCreated"))},"_tmpNameCreated"))}i(nmt,"dir");function smt(t){let e=Cg(t),r=e[0],n=kV(r);return Lt.mkdirSync(n,r.mode||lEe),{name:n,removeCallback:fEe(n,r,!0)}}i(smt,"dirSync");function omt(t,e){let r=i(function(n){if(n&&!QV(n))return e(n);e()},"_handler");0<=t[0]?Lt.close(t[0],function(){Lt.unlink(t[1],r)}):Lt.unlink(t[1],r)}i(omt,"_removeFileAsync");function imt(t){let e=null;try{0<=t[0]&&Lt.closeSync(t[0])}catch(r){if(!pmt(r)&&!QV(r))throw r}finally{try{Lt.unlinkSync(t[1])}catch(r){QV(r)||(e=r)}}if(e!==null)throw e}i(imt,"_removeFileSync");function _V(t,e,r,n){let s=ZT(imt,[e,t],n),o=ZT(omt,[e,t],n,s);return r.keep||Eg.unshift(s),n?s:o}i(_V,"_prepareTmpFileRemoveCallback");function fEe(t,e,r){let n=e.unsafeCleanup?emt:Lt.rmdir.bind(Lt),s=e.unsafeCleanup?mEe:dEe,o=ZT(s,t,r),a=ZT(n,t,r,o);return e.keep||Eg.unshift(o),r?o:a}i(fEe,"_prepareTmpDirRemoveCallback");function ZT(t,e,r,n){let s=!1;return i(function o(a){if(!s){let c=n||o,l=Eg.indexOf(c);return l>=0&&Eg.splice(l,1),s=!0,r||t===dEe||t===mEe?t(e):t(e,a||function(){})}},"_cleanupCallback")}i(ZT,"_prepareRemoveCallback");function amt(){if(pEe)for(;Eg.length;)try{Eg[0]()}catch{}}i(amt,"_garbageCollector");function sEe(t){let e=[],r=null;try{r=rEe.randomBytes(t)}catch{r=rEe.pseudoRandomBytes(t)}for(let n=0;n"u"}i(oo,"_isUndefined");function Cg(t,e){if(typeof t=="function")return[{},t];if(oo(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}i(Cg,"_parseArguments");function cmt(t,e,r){let n=pn.isAbsolute(t)?t:pn.join(e,t);Lt.stat(n,function(s){s?Lt.realpath(pn.dirname(n),function(o,a){if(o)return r(o);r(null,pn.join(a,pn.basename(n)))}):Lt.realpath(n,r)})}i(cmt,"_resolvePath");function lmt(t,e){let r=pn.isAbsolute(t)?t:pn.join(e,t);try{return Lt.statSync(r),Lt.realpathSync(r)}catch{let s=Lt.realpathSync(pn.dirname(r));return pn.join(s,pn.basename(r))}}i(lmt,"_resolvePathSync");function AEe(t){let e=t.tmpdir;if(!oo(t.name))return pn.join(e,t.dir,t.name);if(!oo(t.template))return pn.join(e,t.dir,t.template).replace(aEe,sEe(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",sEe(12),t.postfix?"-"+t.postfix:""].join("");return pn.join(e,t.dir,r)}i(AEe,"_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}i(vV,"_assertPath");function hEe(t){if(!oo(t.name)){let e=t.name;if(pn.isAbsolute(e))throw new Error(`name option must not contain an absolute path, found "${e}".`);let r=pn.basename(e);if(r===".."||r==="."||r!==e)throw new Error(`name option must not contain a path, found "${e}".`)}if(!oo(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(!oo(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=oo(t.name)?t.tries||jpt:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.prefix=oo(t.prefix)?"":vV("prefix",t.prefix),t.postfix=oo(t.postfix)?"":vV("postfix",t.postfix),t.template=oo(t.template)?void 0:vV("template",t.template)}i(hEe,"_assertOptionsBase");function oEe(t,e,r,n){if(oo(e))return n(null);cmt(e,r,function(s,o){if(s)return n(s);let a=pn.relative(r,o);if(a.startsWith("..")||pn.isAbsolute(a))return n(new Error(`${t} option must be relative to "${r}", found "${a}".`));n(null,a)})}i(oEe,"_getRelativePath");function iEe(t,e,r){if(oo(e))return;let n=lmt(e,r),s=pn.relative(r,n);if(s.startsWith("..")||pn.isAbsolute(s))throw new Error(`${t} option must be relative to "${r}", found "${s}".`);return s}i(iEe,"_getRelativePathSync");function umt(t,e){fmt(t,function(r,n){if(r)return e(r);t.tmpdir=n;try{hEe(t,n)}catch(s){return e(s)}oEe("dir",t.dir,n,function(s,o){if(s)return e(s);t.dir=oo(o)?"":o,oEe("template",t.template,n,function(a,c){if(a)return e(a);t.template=c,e(null,t)})})})}i(umt,"_assertAndSanitizeOptions");function dmt(t){let e=t.tmpdir=yEe(t);hEe(t,e);let r=iEe("dir",t.dir,e);return t.dir=oo(r)?"":r,t.template=iEe("template",t.template,e),t}i(dmt,"_assertAndSanitizeOptionsSync");function pmt(t){return gEe(t,-Kpt,"EBADF")}i(pmt,"_isEBADF");function QV(t){return gEe(t,-Xpt,"ENOENT")}i(QV,"_isENOENT");function gEe(t,e,r){return Jpt?t.code===r:t.code===r&&t.errno===e}i(gEe,"_isExpectedError");function mmt(){pEe=!0}i(mmt,"setGracefulCleanup");function fmt(t,e){return Lt.realpath(t&&t.tmpdir||eP.tmpdir(),e)}i(fmt,"_getTmpDir");function yEe(t){return Lt.realpathSync(t&&t.tmpdir||eP.tmpdir())}i(yEe,"_getTmpDirSync");process.addListener(Zpt,amt);Object.defineProperty(du.exports,"tmpdir",{enumerable:!0,configurable:!1,get:i(function(){return yEe()},"get")});du.exports.dir=nmt;du.exports.dirSync=smt;du.exports.file=tmt;du.exports.fileSync=rmt;du.exports.tmpName=DV;du.exports.tmpNameSync=kV;du.exports.setGracefulCleanup=mmt});var Ns=b(Ho=>{"use strict";Ho.__esModule=!0;Ho.extend=wEe;Ho.indexOf=Emt;Ho.escapeExpression=Cmt;Ho.isEmpty=Imt;Ho.createFrame=xmt;Ho.blockParams=wmt;Ho.appendContextPath=bmt;var Amt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},hmt=/[&<>"'`=]/g,gmt=/[&<>"'`=]/;function ymt(t){return Amt[t]}i(ymt,"escapeChar");function wEe(t){for(var e=1;e{"use strict";rP.__esModule=!0;var FV=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function UV(t,e){var r=e&&e.loc,n=void 0,s=void 0,o=void 0,a=void 0;r&&(n=r.start.line,s=r.end.line,o=r.start.column,a=r.end.column,t+=" - "+n+":"+o);for(var c=Error.prototype.constructor.call(this,t),l=0;l{"use strict";nP.__esModule=!0;var qV=Ns();nP.default=function(t){t.registerHelper("blockHelperMissing",function(e,r){var n=r.inverse,s=r.fn;if(e===!0)return s(this);if(e===!1||e==null)return n(this);if(qV.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 o=qV.createFrame(r.data);o.contextPath=qV.appendContextPath(r.data.contextPath,r.name),r={data:o}}return s(e,r)})};BEe.exports=nP.default});var TEe=b((sP,NEe)=>{"use strict";sP.__esModule=!0;function Smt(t){return t&&t.__esModule?t:{default:t}}i(Smt,"_interopRequireDefault");var nx=Ns(),Bmt=zo(),Rmt=Smt(Bmt);sP.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new Rmt.default("Must pass iterator to #each");var n=r.fn,s=r.inverse,o=0,a="",c=void 0,l=void 0;r.data&&r.ids&&(l=nx.appendContextPath(r.data.contextPath,r.ids[0])+"."),nx.isFunction(e)&&(e=e.call(this)),r.data&&(c=nx.createFrame(r.data));function u(g,E,x){c&&(c.key=g,c.index=E,c.first=E===0,c.last=!!x,l&&(c.contextPath=l+g)),a=a+n(e[g],{data:c,blockParams:nx.blockParams([e[g],g],[l+g,null])})}if(i(u,"execIteration"),e&&typeof e=="object")if(nx.isArray(e))for(var d=e.length;o{"use strict";oP.__esModule=!0;function Nmt(t){return t&&t.__esModule?t:{default:t}}i(Nmt,"_interopRequireDefault");var Tmt=zo(),Pmt=Nmt(Tmt);oP.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Pmt.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};PEe.exports=oP.default});var kEe=b((iP,DEe)=>{"use strict";iP.__esModule=!0;function vmt(t){return t&&t.__esModule?t:{default:t}}i(vmt,"_interopRequireDefault");var _Ee=Ns(),_mt=zo(),QEe=vmt(_mt);iP.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new QEe.default("#if requires exactly one argument");return _Ee.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||_Ee.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})})};DEe.exports=iP.default});var OEe=b((aP,LEe)=>{"use strict";aP.__esModule=!0;aP.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],r=arguments[arguments.length-1],n=0;n{"use strict";cP.__esModule=!0;cP.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};MEe.exports=cP.default});var qEe=b((lP,UEe)=>{"use strict";lP.__esModule=!0;function Qmt(t){return t&&t.__esModule?t:{default:t}}i(Qmt,"_interopRequireDefault");var sx=Ns(),Dmt=zo(),kmt=Qmt(Dmt);lP.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new kmt.default("#with requires exactly one argument");sx.isFunction(e)&&(e=e.call(this));var n=r.fn;if(sx.isEmpty(e))return r.inverse(this);var s=r.data;return r.data&&r.ids&&(s=sx.createFrame(r.data),s.contextPath=sx.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:s,blockParams:sx.blockParams([e],[s&&s.contextPath])})})};UEe.exports=lP.default});var $V=b(uP=>{"use strict";uP.__esModule=!0;uP.registerDefaultHelpers=Jmt;uP.moveHelperToHooks=Kmt;function ef(t){return t&&t.__esModule?t:{default:t}}i(ef,"_interopRequireDefault");var Lmt=REe(),Omt=ef(Lmt),Mmt=TEe(),Fmt=ef(Mmt),Umt=vEe(),qmt=ef(Umt),$mt=kEe(),Gmt=ef($mt),Hmt=OEe(),zmt=ef(Hmt),Vmt=FEe(),Ymt=ef(Vmt),Wmt=qEe(),jmt=ef(Wmt);function Jmt(t){Omt.default(t),Fmt.default(t),qmt.default(t),Gmt.default(t),zmt.default(t),Ymt.default(t),jmt.default(t)}i(Jmt,"registerDefaultHelpers");function Kmt(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}i(Kmt,"moveHelperToHooks")});var GEe=b((dP,$Ee)=>{"use strict";dP.__esModule=!0;var Xmt=Ns();dP.default=function(t){t.registerDecorator("inline",function(e,r,n,s){var o=e;return r.partials||(r.partials={},o=i(function(a,c){var l=n.partials;n.partials=Xmt.extend({},l,r.partials);var u=e(a,c);return n.partials=l,u},"ret")),r.partials[s.args[0]]=s.fn,o})};$Ee.exports=dP.default});var HEe=b(GV=>{"use strict";GV.__esModule=!0;GV.registerDefaultDecorators=rft;function Zmt(t){return t&&t.__esModule?t:{default:t}}i(Zmt,"_interopRequireDefault");var eft=GEe(),tft=Zmt(eft);function rft(t){tft.default(t)}i(rft,"registerDefaultDecorators")});var HV=b((pP,zEe)=>{"use strict";pP.__esModule=!0;var nft=Ns(),Ig={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:i(function(e){if(typeof e=="string"){var r=nft.indexOf(Ig.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},"lookupLevel"),log:i(function(e){if(e=Ig.lookupLevel(e),typeof console<"u"&&Ig.lookupLevel(Ig.level)<=e){var r=Ig.methodMap[e];console[r]||(r="log");for(var n=arguments.length,s=Array(n>1?n-1:0),o=1;o{"use strict";ox.__esModule=!0;ox.createProtoAccessControl=aft;ox.resultIsAllowed=cft;ox.resetLoggedProperties=uft;function sft(t){return t&&t.__esModule?t:{default:t}}i(sft,"_interopRequireDefault");var VEe=Ns(),oft=HV(),ift=sft(oft),mP=Object.create(null);function aft(t){var e=Object.create(null);e.__proto__=!1,VEe.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,VEe.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}i(aft,"createProtoAccessControl");function cft(t,e,r){return YEe(typeof t=="function"?e.methods:e.properties,r)}i(cft,"resultIsAllowed");function YEe(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(lft(e),!1)}i(YEe,"checkWhiteList");function lft(t){mP[t]!==!0&&(mP[t]=!0,ift.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`))}i(rft,"logUnexpecedPropertyAccessOnce");function nft(){Object.keys(lP).forEach(function(t){delete lP[t]})}i(nft,"resetLoggedProperties")});var dP=b(Fc=>{"use strict";Fc.__esModule=!0;Fc.HandlebarsEnvironment=qV;function LEe(t){return t&&t.__esModule?t:{default:t}}i(LEe,"_interopRequireDefault");var Xm=Rs(),sft=Go(),FV=LEe(sft),oft=kV(),ift=_Ee(),aft=OV(),uP=LEe(aft),cft=MV(),lft="4.7.9";Fc.VERSION=lft;var uft=8;Fc.COMPILER_REVISION=uft;var dft=7;Fc.LAST_COMPATIBLE_COMPILER_REVISION=dft;var pft={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"};Fc.REVISION_CHANGES=pft;var UV="[object Object]";function qV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},oft.registerDefaultHelpers(this),ift.registerDefaultDecorators(this)}i(qV,"HandlebarsEnvironment");qV.prototype={constructor:qV,logger:uP.default,log:uP.default.log,registerHelper:i(function(e,r){if(Xm.toString.call(e)===UV){if(r)throw new FV.default("Arg not supported with multiple helpers");Xm.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(Xm.toString.call(e)===UV)Xm.extend(this.partials,e);else{if(typeof r>"u")throw new FV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(Xm.toString.call(e)===UV){if(r)throw new FV.default("Arg not supported with multiple decorators");Xm.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){cft.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var mft=uP.default.log;Fc.log=mft;Fc.createFrame=Xm.createFrame;Fc.logger=uP.default});var MEe=b((pP,OEe)=>{"use strict";pP.__esModule=!0;function $V(t){this.string=t}i($V,"SafeString");$V.prototype.toString=$V.prototype.toHTML=function(){return""+this.string};pP.default=$V;OEe.exports=pP.default});var FEe=b(GV=>{"use strict";GV.__esModule=!0;GV.wrapHelper=fft;function fft(t,e){if(typeof t!="function")return t;var r=i(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}i(fft,"wrapHelper")});var zEe=b(Fd=>{"use strict";Fd.__esModule=!0;Fd.checkRevision=Cft;Fd.template=Ift;Fd.wrapProgram=mP;Fd.resolvePartial=xft;Fd.invokePartial=wft;Fd.noop=GEe;function Aft(t){return t&&t.__esModule?t:{default:t}}i(Aft,"_interopRequireDefault");function hft(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}i(hft,"_interopRequireWildcard");var gft=Rs(),Eg=hft(gft),yft=Go(),pu=Aft(yft),mu=dP(),UEe=kV(),Eft=FEe(),qEe=MV();function Cft(t){var e=t&&t[0]||1,r=mu.COMPILER_REVISION;if(!(e>=mu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=mu.COMPILER_REVISION))if(e{"use strict";Fc.__esModule=!0;Fc.HandlebarsEnvironment=WV;function WEe(t){return t&&t.__esModule?t:{default:t}}i(WEe,"_interopRequireDefault");var tf=Ns(),dft=zo(),VV=WEe(dft),pft=$V(),mft=HEe(),fft=HV(),fP=WEe(fft),Aft=zV(),hft="4.7.9";Fc.VERSION=hft;var gft=8;Fc.COMPILER_REVISION=gft;var yft=7;Fc.LAST_COMPATIBLE_COMPILER_REVISION=yft;var Eft={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"};Fc.REVISION_CHANGES=Eft;var YV="[object Object]";function WV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},pft.registerDefaultHelpers(this),mft.registerDefaultDecorators(this)}i(WV,"HandlebarsEnvironment");WV.prototype={constructor:WV,logger:fP.default,log:fP.default.log,registerHelper:i(function(e,r){if(tf.toString.call(e)===YV){if(r)throw new VV.default("Arg not supported with multiple helpers");tf.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(tf.toString.call(e)===YV)tf.extend(this.partials,e);else{if(typeof r>"u")throw new VV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(tf.toString.call(e)===YV){if(r)throw new VV.default("Arg not supported with multiple decorators");tf.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){Aft.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Cft=fP.default.log;Fc.log=Cft;Fc.createFrame=tf.createFrame;Fc.logger=fP.default});var JEe=b((hP,jEe)=>{"use strict";hP.__esModule=!0;function jV(t){this.string=t}i(jV,"SafeString");jV.prototype.toString=jV.prototype.toHTML=function(){return""+this.string};hP.default=jV;jEe.exports=hP.default});var KEe=b(JV=>{"use strict";JV.__esModule=!0;JV.wrapHelper=Ift;function Ift(t,e){if(typeof t!="function")return t;var r=i(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}i(Ift,"wrapHelper")});var nCe=b(Fd=>{"use strict";Fd.__esModule=!0;Fd.checkRevision=Rft;Fd.template=Nft;Fd.wrapProgram=gP;Fd.resolvePartial=Tft;Fd.invokePartial=Pft;Fd.noop=tCe;function xft(t){return t&&t.__esModule?t:{default:t}}i(xft,"_interopRequireDefault");function wft(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}i(wft,"_interopRequireWildcard");var bft=Ns(),xg=wft(bft),Sft=zo(),mu=xft(Sft),fu=AP(),XEe=$V(),Bft=KEe(),ZEe=zV();function Rft(t){var e=t&&t[0]||1,r=fu.COMPILER_REVISION;if(!(e>=fu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=fu.COMPILER_REVISION))if(e{"use strict";AP.__esModule=!0;AP.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}};VEe.exports=AP.default});var KEe=b((hP,JEe)=>{"use strict";hP.__esModule=!0;function VV(t){return t&&t.__esModule?t:{default:t}}i(VV,"_interopRequireDefault");function YV(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}i(YV,"_interopRequireWildcard");var Bft=dP(),YEe=YV(Bft),Rft=MEe(),Nft=VV(Rft),Tft=Go(),Pft=VV(Tft),vft=Rs(),zV=YV(vft),_ft=zEe(),WEe=YV(_ft),Qft=HV(),Dft=VV(Qft);function jEe(){var t=new YEe.HandlebarsEnvironment;return zV.extend(t,YEe),t.SafeString=Nft.default,t.Exception=Pft.default,t.Utils=zV,t.escapeExpression=zV.escapeExpression,t.VM=WEe,t.template=function(e){return WEe.template(e,t)},t}i(jEe,"create");var rx=jEe();rx.create=jEe;Dft.default(rx);rx.default=rx;hP.default=rx;JEe.exports=hP.default});var WV=b((gP,ZEe)=>{"use strict";gP.__esModule=!0;var XEe={helpers:{helperExpression:i(function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},"helperExpression"),scopedId:i(function(e){return/^\.|this\b/.test(e.original)},"scopedId"),simpleId:i(function(e){return e.parts.length===1&&!XEe.helpers.scopedId(e)&&!e.depth},"simpleId")}};gP.default=XEe;ZEe.exports=gP.default});var tCe=b((yP,eCe)=>{"use strict";yP.__esModule=!0;var kft=(function(){var t={trace:i(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:i(function(s,o,a,c,l,u,d){var p=u.length-1;switch(l){case 1:return u[p-1];case 2:this.$=c.prepareProgram(u[p]);break;case 3:this.$=u[p];break;case 4:this.$=u[p];break;case 5:this.$=u[p];break;case 6:this.$=u[p];break;case 7:this.$=u[p];break;case 8:this.$=u[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(u[p]),strip:c.stripFlags(u[p],u[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:u[p],value:u[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(u[p-2],u[p-1],u[p],this._$);break;case 12:this.$={path:u[p-3],params:u[p-2],hash:u[p-1]};break;case 13:this.$=c.prepareBlock(u[p-3],u[p-2],u[p-1],u[p],!1,this._$);break;case 14:this.$=c.prepareBlock(u[p-3],u[p-2],u[p-1],u[p],!0,this._$);break;case 15:this.$={open:u[p-5],path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 16:this.$={path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 17:this.$={path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 18:this.$={strip:c.stripFlags(u[p-1],u[p-1]),program:u[p]};break;case 19:var m=c.prepareBlock(u[p-2],u[p-1],u[p],u[p],!1,this._$),f=c.prepareProgram([m],u[p-1].loc);f.chained=!0,this.$={strip:u[p-2].strip,program:f,chain:!0};break;case 20:this.$=u[p];break;case 21:this.$={path:u[p-1],strip:c.stripFlags(u[p-2],u[p])};break;case 22:this.$=c.prepareMustache(u[p-3],u[p-2],u[p-1],u[p-4],c.stripFlags(u[p-4],u[p]),this._$);break;case 23:this.$=c.prepareMustache(u[p-3],u[p-2],u[p-1],u[p-4],c.stripFlags(u[p-4],u[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:u[p-3],params:u[p-2],hash:u[p-1],indent:"",strip:c.stripFlags(u[p-4],u[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(u[p-2],u[p-1],u[p],this._$);break;case 26:this.$={path:u[p-3],params:u[p-2],hash:u[p-1],strip:c.stripFlags(u[p-4],u[p])};break;case 27:this.$=u[p];break;case 28:this.$=u[p];break;case 29:this.$={type:"SubExpression",path:u[p-3],params:u[p-2],hash:u[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:u[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(u[p-2]),value:u[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(u[p-1]);break;case 33:this.$=u[p];break;case 34:this.$=u[p];break;case 35:this.$={type:"StringLiteral",value:u[p],original:u[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(u[p]),original:Number(u[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:u[p]==="true",original:u[p]==="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[p];break;case 41:this.$=u[p];break;case 42:this.$=c.preparePath(!0,u[p],this._$);break;case 43:this.$=c.preparePath(!1,u[p],this._$);break;case 44:u[p-2].push({part:c.id(u[p]),original:u[p],separator:u[p-1]}),this.$=u[p-2];break;case 45:this.$=[{part:c.id(u[p]),original:u[p]}];break;case 46:this.$=[];break;case 47:u[p-1].push(u[p]);break;case 48:this.$=[];break;case 49:u[p-1].push(u[p]);break;case 50:this.$=[];break;case 51:u[p-1].push(u[p]);break;case 58:this.$=[];break;case 59:u[p-1].push(u[p]);break;case 64:this.$=[];break;case 65:u[p-1].push(u[p]);break;case 70:this.$=[];break;case 71:u[p-1].push(u[p]);break;case 78:this.$=[];break;case 79:u[p-1].push(u[p]);break;case 82:this.$=[];break;case 83:u[p-1].push(u[p]);break;case 86:this.$=[];break;case 87:u[p-1].push(u[p]);break;case 90:this.$=[];break;case 91:u[p-1].push(u[p]);break;case 94:this.$=[];break;case 95:u[p-1].push(u[p]);break;case 98:this.$=[u[p]];break;case 99:u[p-1].push(u[p]);break;case 100:this.$=[u[p]];break;case 101:u[p-1].push(u[p]);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:i(function(s,o){throw new Error(s)},"parseError"),parse:i(function(s){var o=this,a=[0],c=[null],l=[],u=this.table,d="",p=0,m=0,f=0,g=2,E=1;this.lexer.setInput(s),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var x=this.lexer.yylloc;l.push(x);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(at){a.length=a.length-2*at,c.length=c.length-at,l.length=l.length-at}i(S,"popStack");function P(){var at;return at=o.lexer.lex()||1,typeof at!="number"&&(at=o.symbols_[at]||at),at}i(P,"lex");for(var Q,q,M,V,pe,ke,Re={},se,ye,H,oe;;){if(M=a[a.length-1],this.defaultActions[M]?V=this.defaultActions[M]:((Q===null||typeof Q>"u")&&(Q=P()),V=u[M]&&u[M][Q]),typeof V>"u"||!V.length||!V[0]){var It="";if(!f){oe=[];for(se in u[M])this.terminals_[se]&&se>2&&oe.push("'"+this.terminals_[se]+"'");this.lexer.showPosition?It="Parse error on line "+(p+1)+`: +`)}return u}else throw new mu.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}i(n,"invokePartialWrapper");var s={strict:i(function(c,l,u){if(!c||!(l in c))throw new mu.default('"'+l+'" not defined in '+c,{loc:u});return s.lookupProperty(c,l)},"strict"),lookupProperty:i(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||ZEe.resultIsAllowed(u,s.protoAccessControl,l))return u},"lookupProperty"),lookup:i(function(c,l){for(var u=c.length,d=0;d{"use strict";EP.__esModule=!0;EP.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}};sCe.exports=EP.default});var lCe=b((CP,cCe)=>{"use strict";CP.__esModule=!0;function ZV(t){return t&&t.__esModule?t:{default:t}}i(ZV,"_interopRequireDefault");function e4(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}i(e4,"_interopRequireWildcard");var Qft=AP(),oCe=e4(Qft),Dft=JEe(),kft=ZV(Dft),Lft=zo(),Oft=ZV(Lft),Mft=Ns(),XV=e4(Mft),Fft=nCe(),iCe=e4(Fft),Uft=KV(),qft=ZV(Uft);function aCe(){var t=new oCe.HandlebarsEnvironment;return XV.extend(t,oCe),t.SafeString=kft.default,t.Exception=Oft.default,t.Utils=XV,t.escapeExpression=XV.escapeExpression,t.VM=iCe,t.template=function(e){return iCe.template(e,t)},t}i(aCe,"create");var ix=aCe();ix.create=aCe;qft.default(ix);ix.default=ix;CP.default=ix;cCe.exports=CP.default});var t4=b((IP,dCe)=>{"use strict";IP.__esModule=!0;var uCe={helpers:{helperExpression:i(function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},"helperExpression"),scopedId:i(function(e){return/^\.|this\b/.test(e.original)},"scopedId"),simpleId:i(function(e){return e.parts.length===1&&!uCe.helpers.scopedId(e)&&!e.depth},"simpleId")}};IP.default=uCe;dCe.exports=IP.default});var mCe=b((xP,pCe)=>{"use strict";xP.__esModule=!0;var $ft=(function(){var t={trace:i(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:i(function(s,o,a,c,l,u,d){var p=u.length-1;switch(l){case 1:return u[p-1];case 2:this.$=c.prepareProgram(u[p]);break;case 3:this.$=u[p];break;case 4:this.$=u[p];break;case 5:this.$=u[p];break;case 6:this.$=u[p];break;case 7:this.$=u[p];break;case 8:this.$=u[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(u[p]),strip:c.stripFlags(u[p],u[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:u[p],value:u[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(u[p-2],u[p-1],u[p],this._$);break;case 12:this.$={path:u[p-3],params:u[p-2],hash:u[p-1]};break;case 13:this.$=c.prepareBlock(u[p-3],u[p-2],u[p-1],u[p],!1,this._$);break;case 14:this.$=c.prepareBlock(u[p-3],u[p-2],u[p-1],u[p],!0,this._$);break;case 15:this.$={open:u[p-5],path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 16:this.$={path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 17:this.$={path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 18:this.$={strip:c.stripFlags(u[p-1],u[p-1]),program:u[p]};break;case 19:var m=c.prepareBlock(u[p-2],u[p-1],u[p],u[p],!1,this._$),f=c.prepareProgram([m],u[p-1].loc);f.chained=!0,this.$={strip:u[p-2].strip,program:f,chain:!0};break;case 20:this.$=u[p];break;case 21:this.$={path:u[p-1],strip:c.stripFlags(u[p-2],u[p])};break;case 22:this.$=c.prepareMustache(u[p-3],u[p-2],u[p-1],u[p-4],c.stripFlags(u[p-4],u[p]),this._$);break;case 23:this.$=c.prepareMustache(u[p-3],u[p-2],u[p-1],u[p-4],c.stripFlags(u[p-4],u[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:u[p-3],params:u[p-2],hash:u[p-1],indent:"",strip:c.stripFlags(u[p-4],u[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(u[p-2],u[p-1],u[p],this._$);break;case 26:this.$={path:u[p-3],params:u[p-2],hash:u[p-1],strip:c.stripFlags(u[p-4],u[p])};break;case 27:this.$=u[p];break;case 28:this.$=u[p];break;case 29:this.$={type:"SubExpression",path:u[p-3],params:u[p-2],hash:u[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:u[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(u[p-2]),value:u[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(u[p-1]);break;case 33:this.$=u[p];break;case 34:this.$=u[p];break;case 35:this.$={type:"StringLiteral",value:u[p],original:u[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(u[p]),original:Number(u[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:u[p]==="true",original:u[p]==="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[p];break;case 41:this.$=u[p];break;case 42:this.$=c.preparePath(!0,u[p],this._$);break;case 43:this.$=c.preparePath(!1,u[p],this._$);break;case 44:u[p-2].push({part:c.id(u[p]),original:u[p],separator:u[p-1]}),this.$=u[p-2];break;case 45:this.$=[{part:c.id(u[p]),original:u[p]}];break;case 46:this.$=[];break;case 47:u[p-1].push(u[p]);break;case 48:this.$=[];break;case 49:u[p-1].push(u[p]);break;case 50:this.$=[];break;case 51:u[p-1].push(u[p]);break;case 58:this.$=[];break;case 59:u[p-1].push(u[p]);break;case 64:this.$=[];break;case 65:u[p-1].push(u[p]);break;case 70:this.$=[];break;case 71:u[p-1].push(u[p]);break;case 78:this.$=[];break;case 79:u[p-1].push(u[p]);break;case 82:this.$=[];break;case 83:u[p-1].push(u[p]);break;case 86:this.$=[];break;case 87:u[p-1].push(u[p]);break;case 90:this.$=[];break;case 91:u[p-1].push(u[p]);break;case 94:this.$=[];break;case 95:u[p-1].push(u[p]);break;case 98:this.$=[u[p]];break;case 99:u[p-1].push(u[p]);break;case 100:this.$=[u[p]];break;case 101:u[p-1].push(u[p]);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:i(function(s,o){throw new Error(s)},"parseError"),parse:i(function(s){var o=this,a=[0],c=[null],l=[],u=this.table,d="",p=0,m=0,f=0,g=2,E=1;this.lexer.setInput(s),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var x=this.lexer.yylloc;l.push(x);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(at){a.length=a.length-2*at,c.length=c.length-at,l.length=l.length-at}i(S,"popStack");function P(){var at;return at=o.lexer.lex()||1,typeof at!="number"&&(at=o.symbols_[at]||at),at}i(P,"lex");for(var Q,q,M,V,pe,Le,Re={},oe,ye,H,ne;;){if(M=a[a.length-1],this.defaultActions[M]?V=this.defaultActions[M]:((Q===null||typeof Q>"u")&&(Q=P()),V=u[M]&&u[M][Q]),typeof V>"u"||!V.length||!V[0]){var It="";if(!f){ne=[];for(oe in u[M])this.terminals_[oe]&&oe>2&&ne.push("'"+this.terminals_[oe]+"'");this.lexer.showPosition?It="Parse error on line "+(p+1)+`: `+this.lexer.showPosition()+` -Expecting `+oe.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":It="Parse error on line "+(p+1)+": Unexpected "+(Q==1?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(It,{text:this.lexer.match,token:this.terminals_[Q]||Q,line:this.lexer.yylineno,loc:x,expected:oe})}}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+Q);switch(V[0]){case 1:a.push(Q),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(V[1]),Q=null,q?(Q=q,q=null):(m=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc,f>0&&f--);break;case 2:if(ye=this.productions_[V[1]][1],Re.$=c[c.length-ye],Re._$={first_line:l[l.length-(ye||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ye||1)].first_column,last_column:l[l.length-1].last_column},w&&(Re._$.range=[l[l.length-(ye||1)].range[0],l[l.length-1].range[1]]),ke=this.performAction.call(Re,d,m,p,this.yy,V[1],c,l),typeof ke<"u")return ke;ye&&(a=a.slice(0,-1*ye*2),c=c.slice(0,-1*ye),l=l.slice(0,-1*ye)),a.push(this.productions_[V[1]][0]),c.push(Re.$),l.push(Re._$),H=u[a[a.length-2]][a[a.length-1]],a.push(H);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:i(function(o){return this._input=o,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:i(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.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),o},"input"),unput:i(function(o){var a=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+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:i(function(){return this._more=!0,this},"more"),less:i(function(o){this.unput(this.match.slice(o))},"less"),pastInput:i(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+` +Expecting `+ne.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":It="Parse error on line "+(p+1)+": Unexpected "+(Q==1?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(It,{text:this.lexer.match,token:this.terminals_[Q]||Q,line:this.lexer.yylineno,loc:x,expected:ne})}}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+Q);switch(V[0]){case 1:a.push(Q),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(V[1]),Q=null,q?(Q=q,q=null):(m=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc,f>0&&f--);break;case 2:if(ye=this.productions_[V[1]][1],Re.$=c[c.length-ye],Re._$={first_line:l[l.length-(ye||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ye||1)].first_column,last_column:l[l.length-1].last_column},w&&(Re._$.range=[l[l.length-(ye||1)].range[0],l[l.length-1].range[1]]),Le=this.performAction.call(Re,d,m,p,this.yy,V[1],c,l),typeof Le<"u")return Le;ye&&(a=a.slice(0,-1*ye*2),c=c.slice(0,-1*ye),l=l.slice(0,-1*ye)),a.push(this.productions_[V[1]][0]),c.push(Re.$),l.push(Re._$),H=u[a[a.length-2]][a[a.length-1]],a.push(H);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:i(function(o){return this._input=o,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:i(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.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),o},"input"),unput:i(function(o){var a=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+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:i(function(){return this._more=!0,this},"more"),less:i(function(o){this.unput(this.match.slice(o))},"less"),pastInput:i(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+` `+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),m=0;ma[0].length)&&(a=c,l=m,!this.options.flex)));m++);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],o=this.performAction.call(this,this.yy,this,p[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||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:i(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:i(function(o){this.conditionStack.push(o)},"begin"),popState:i(function(){return this.conditionStack.pop()},"popState"),_currentRules:i(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=i(function(o,a,c,l){function u(p,m){return a.yytext=a.yytext.substring(p,a.yyleng-m+p)}i(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 i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();yP.default=kft;eCe.exports=yP.default});var xP=b((IP,sCe)=>{"use strict";IP.__esModule=!0;function Lft(t){return t&&t.__esModule?t:{default:t}}i(Lft,"_interopRequireDefault");var Oft=Go(),jV=Lft(Oft);function EP(){this.parents=[]}i(EP,"Visitor");EP.prototype={constructor:EP,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!EP.prototype[n.type])throw new jV.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.acceptKey(e,r),!e[r])throw new jV.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r{"use strict";wP.__esModule=!0;function Mft(t){return t&&t.__esModule?t:{default:t}}i(Mft,"_interopRequireDefault");var Fft=xP(),Uft=Mft(Fft);function Uc(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}i(Uc,"WhitespaceControl");Uc.prototype=new Uft.default;Uc.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,s=0,o=n.length;s{"use strict";Ti.__esModule=!0;Ti.SourceLocation=Gft;Ti.id=Hft;Ti.stripFlags=zft;Ti.stripComment=Vft;Ti.preparePath=Yft;Ti.prepareMustache=Wft;Ti.prepareRawBlock=jft;Ti.prepareBlock=Jft;Ti.prepareProgram=Kft;Ti.preparePartialBlock=Xft;function qft(t){return t&&t.__esModule?t:{default:t}}i(qft,"_interopRequireDefault");var $ft=Go(),XV=qft($ft);function ZV(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new XV.default(t.path.original+" doesn't match "+e,r)}}i(ZV,"validateClose");function Gft(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}}i(Gft,"SourceLocation");function Hft(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}i(Hft,"id");function zft(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}i(zft,"stripFlags");function Vft(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}i(Vft,"stripComment");function Yft(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",s=[],o=0,a=0,c=e.length;a0)throw new XV.default("Invalid path: "+n,{loc:r});l===".."&&o++}else s.push(l)}return{type:"PathExpression",data:t,depth:o,parts:s,original:n,loc:r}}i(Yft,"preparePath");function Wft(t,e,r,n,s,o){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:s,loc:this.locInfo(o)}}i(Wft,"prepareMustache");function jft(t,e,r,n){ZV(t,r),n=this.locInfo(n);var s={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}i(jft,"prepareRawBlock");function Jft(t,e,r,n,s,o){n&&n.path&&ZV(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var c=void 0,l=void 0;if(r){if(a)throw new XV.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),l=r.strip,c=r.program}return s&&(s=c,c=e,e=s),{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(o)}}i(Jft,"prepareBlock");function Kft(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}}i(Kft,"prepareProgram");function Xft(t,e,r,n){return ZV(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)}}i(Xft,"preparePartialBlock")});var lCe=b(sx=>{"use strict";sx.__esModule=!0;sx.parseWithoutProcessing=cCe;sx.parse=aAt;function Zft(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}i(Zft,"_interopRequireWildcard");function r4(t){return t&&t.__esModule?t:{default:t}}i(r4,"_interopRequireDefault");var eAt=tCe(),e4=r4(eAt),tAt=iCe(),rAt=r4(tAt),nAt=aCe(),sAt=Zft(nAt),oAt=Go(),nx=r4(oAt),iAt=Rs();sx.parser=e4.default;var bP={};iAt.extend(bP,sAt);function cCe(t,e){if(t.type==="Program")return cAt(t),t;e4.default.yy=bP,bP.locInfo=function(n){return new bP.SourceLocation(e&&e.srcName,n)};var r=e4.default.parse(t);return r}i(cCe,"parseWithoutProcessing");function aAt(t,e){var r=cCe(t,e),n=new rAt.default(e);return n.accept(r)}i(aAt,"parse");function cAt(t){t4(t)}i(cAt,"validateInputAst");function t4(t){if(t!=null){if(Array.isArray(t)){t.forEach(t4);return}if(typeof t=="object"){if(t.type==="PathExpression"){if(!lAt(t.depth))throw new nx.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(t.parts))throw new nx.default("Invalid AST: PathExpression.parts must be an array");for(var e=0;e=0}i(lAt,"isValidDepth")});var mCe=b(cx=>{"use strict";cx.__esModule=!0;cx.Compiler=n4;cx.precompile=mAt;cx.compile=fAt;function dCe(t){return t&&t.__esModule?t:{default:t}}i(dCe,"_interopRequireDefault");var uAt=Go(),ix=dCe(uAt),ax=Rs(),dAt=WV(),ox=dCe(dAt),pAt=[].slice;function n4(){}i(n4,"Compiler");n4.prototype={compiler:n4,equals:i(function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n1)throw new ix.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 s=e.name.original,o=e.name.type==="SubExpression";o&&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",o,s,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:i(function(e){this.PartialStatement(e)},"PartialBlockStatement"),MustacheStatement:i(function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:i(function(e){this.DecoratorBlock(e)},"Decorator"),ContentStatement:i(function(e){e.value&&this.opcode("appendContent",e.value)},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:i(function(e){uCe(e);var r=this.classifySexpr(e);r==="simple"?this.simpleSexpr(e):r==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},"SubExpression"),ambiguousSexpr:i(function(e,r,n){var s=e.path,o=s.parts[0],a=r!=null||n!=null;this.opcode("getContext",s.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),s.strict=!0,this.accept(s),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:i(function(e){var r=e.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:i(function(e,r,n){var s=this.setupFullMustacheParams(e,r,n),o=e.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",s.length,a);else{if(this.options.knownHelpersOnly)throw new ix.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",s.length,o.original,ox.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:i(function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var r=e.parts[0],n=ox.default.helpers.scopedId(e),s=!e.depth&&!n&&this.blockParamIndex(r);s?this.opcode("lookupBlockParam",s,e.parts):r?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:i(function(e){this.opcode("pushString",e.value)},"StringLiteral"),NumberLiteral:i(function(e){this.opcode("pushLiteral",e.value)},"NumberLiteral"),BooleanLiteral:i(function(e){this.opcode("pushLiteral",e.value)},"BooleanLiteral"),UndefinedLiteral:i(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:i(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:i(function(e){var r=e.pairs,n=0,s=r.length;for(this.opcode("pushHash");n=0)return[r,o]}},"blockParamIndex")};function mAt(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new ix.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),s=new r.Compiler().compile(n,e);return new r.JavaScriptCompiler().compile(s,e)}i(mAt,"precompile");function fAt(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new ix.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=ax.extend({},e),"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function s(){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)}i(s,"compileInput");function o(a,c){return n||(n=s()),n.call(this,a,c)}return i(o,"ret"),o._setup=function(a){return n||(n=s()),n._setup(a)},o._child=function(a,c,l,u){return n||(n=s()),n._child(a,c,l,u)},o}i(fAt,"compile");function pCe(t,e){if(t===e)return!0;if(ax.isArray(t)&&ax.isArray(e)&&t.length===e.length){for(var r=0;r{var fCe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");s4.encode=function(t){if(0<=t&&t{var hCe=ACe(),o4=5,gCe=1<>1;return e?-r:r}i(hAt,"fromVLQSigned");i4.encode=i(function(e){var r="",n,s=AAt(e);do n=s&yCe,s>>>=o4,s>0&&(n|=ECe),r+=hCe.encode(n);while(s>0);return r},"base64VLQ_encode");i4.decode=i(function(e,r,n){var s=e.length,o=0,a=0,c,l;do{if(r>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(l=hCe.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));c=!!(l&ECe),l&=yCe,o=o+(l<{function gAt(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}i(gAt,"getArg");Jn.getArg=gAt;var CCe=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,yAt=/^data:.+\,.+$/;function lx(t){var e=t.match(CCe);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}i(lx,"urlParse");Jn.urlParse=lx;function Cg(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}i(Cg,"urlGenerate");Jn.urlGenerate=Cg;function c4(t){var e=t,r=lx(t);if(r){if(!r.path)return t;e=r.path}for(var n=Jn.isAbsolute(e),s=e.split(/\/+/),o,a=0,c=s.length-1;c>=0;c--)o=s[c],o==="."?s.splice(c,1):o===".."?a++:a>0&&(o===""?(s.splice(c+1,a),a=0):(s.splice(c,2),a--));return e=s.join("/"),e===""&&(e=n?"/":"."),r?(r.path=e,Cg(r)):e}i(c4,"normalize");Jn.normalize=c4;function ICe(t,e){t===""&&(t="."),e===""&&(e=".");var r=lx(e),n=lx(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Cg(r);if(r||e.match(yAt))return e;if(n&&!n.host&&!n.path)return n.host=e,Cg(n);var s=e.charAt(0)==="/"?e:c4(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=s,Cg(n)):s}i(ICe,"join");Jn.join=ICe;Jn.isAbsolute=function(t){return t.charAt(0)==="/"||CCe.test(t)};function EAt(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)}i(EAt,"relative");Jn.relative=EAt;var xCe=(function(){var t=Object.create(null);return!("__proto__"in t)})();function wCe(t){return t}i(wCe,"identity");function CAt(t){return bCe(t)?"$"+t:t}i(CAt,"toSetString");Jn.toSetString=xCe?wCe:CAt;function IAt(t){return bCe(t)?t.slice(1):t}i(IAt,"fromSetString");Jn.fromSetString=xCe?wCe:IAt;function bCe(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}i(bCe,"isProtoString");function xAt(t,e,r){var n=Ig(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:Ig(t.name,e.name)}i(xAt,"compareByOriginalPositions");Jn.compareByOriginalPositions=xAt;function wAt(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=Ig(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Ig(t.name,e.name)}i(wAt,"compareByGeneratedPositionsDeflated");Jn.compareByGeneratedPositionsDeflated=wAt;function Ig(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}i(Ig,"strcmp");function bAt(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=Ig(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Ig(t.name,e.name)}i(bAt,"compareByGeneratedPositionsInflated");Jn.compareByGeneratedPositionsInflated=bAt;function SAt(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}i(SAt,"parseSourceMapInput");Jn.parseSourceMapInput=SAt;function BAt(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=lx(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var s=n.path.lastIndexOf("/");s>=0&&(n.path=n.path.substring(0,s+1))}e=ICe(Cg(n),e)}return c4(e)}i(BAt,"computeSourceURL");Jn.computeSourceURL=BAt});var d4=b(SCe=>{var l4=xg(),u4=Object.prototype.hasOwnProperty,ef=typeof Map<"u";function fu(){this._array=[],this._set=ef?new Map:Object.create(null)}i(fu,"ArraySet");fu.fromArray=i(function(e,r){for(var n=new fu,s=0,o=e.length;s=0)return r}else{var n=l4.toSetString(e);if(u4.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");fu.prototype.at=i(function(e){if(e>=0&&e{var BCe=xg();function RAt(t,e){var r=t.generatedLine,n=e.generatedLine,s=t.generatedColumn,o=e.generatedColumn;return n>r||n==r&&o>=s||BCe.compareByGeneratedPositionsInflated(t,e)<=0}i(RAt,"generatedPositionAfter");function SP(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i(SP,"MappingList");SP.prototype.unsortedForEach=i(function(e,r){this._array.forEach(e,r)},"MappingList_forEach");SP.prototype.add=i(function(e){RAt(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");SP.prototype.toArray=i(function(){return this._sorted||(this._array.sort(BCe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");RCe.MappingList=SP});var p4=b(TCe=>{var ux=a4(),Kr=xg(),BP=d4().ArraySet,NAt=NCe().MappingList;function Pi(t){t||(t={}),this._file=Kr.getArg(t,"file",null),this._sourceRoot=Kr.getArg(t,"sourceRoot",null),this._skipValidation=Kr.getArg(t,"skipValidation",!1),this._sources=new BP,this._names=new BP,this._mappings=new NAt,this._sourcesContents=null}i(Pi,"SourceMapGenerator");Pi.prototype._version=3;Pi.fromSourceMap=i(function(e){var r=e.sourceRoot,n=new Pi({file:e.file,sourceRoot:r});return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,r!=null&&(o.source=Kr.relative(r,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),n.addMapping(o)}),e.sources.forEach(function(s){var o=s;r!==null&&(o=Kr.relative(r,s)),n._sources.has(o)||n._sources.add(o);var a=e.sourceContentFor(s);a!=null&&n.setSourceContent(s,a)}),n},"SourceMapGenerator_fromSourceMap");Pi.prototype.addMapping=i(function(e){var r=Kr.getArg(e,"generated"),n=Kr.getArg(e,"original",null),s=Kr.getArg(e,"source",null),o=Kr.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,s,o),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:s,name:o})},"SourceMapGenerator_addMapping");Pi.prototype.setSourceContent=i(function(e,r){var n=e;this._sourceRoot!=null&&(n=Kr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Kr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Kr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Pi.prototype.applySourceMap=i(function(e,r,n){var s=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.`);s=e.file}var o=this._sourceRoot;o!=null&&(s=Kr.relative(o,s));var a=new BP,c=new BP;this._mappings.unsortedForEach(function(l){if(l.source===s&&l.originalLine!=null){var u=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=Kr.join(n,l.source)),o!=null&&(l.source=Kr.relative(o,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 p=l.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,e.sources.forEach(function(l){var u=e.sourceContentFor(l);u!=null&&(n!=null&&(l=Kr.join(n,l)),o!=null&&(l=Kr.relative(o,l)),this.setSourceContent(l,u))},this)},"SourceMapGenerator_applySourceMap");Pi.prototype._validateMapping=i(function(e,r,n,s){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&&!s)){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:s}))}},"SourceMapGenerator_validateMapping");Pi.prototype._serializeMappings=i(function(){for(var e=0,r=1,n=0,s=0,o=0,a=0,c="",l,u,d,p,m=this._mappings.toArray(),f=0,g=m.length;f0){if(!Kr.compareByGeneratedPositionsInflated(u,m[f-1]))continue;l+=","}l+=ux.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),l+=ux.encode(p-a),a=p,l+=ux.encode(u.originalLine-1-s),s=u.originalLine-1,l+=ux.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=ux.encode(d-o),o=d)),c+=l}return c},"SourceMapGenerator_serializeMappings");Pi.prototype._generateSourcesContent=i(function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Kr.relative(r,n));var s=Kr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)},"SourceMapGenerator_generateSourcesContent");Pi.prototype.toJSON=i(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");Pi.prototype.toString=i(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");TCe.SourceMapGenerator=Pi});var PCe=b(tf=>{tf.GREATEST_LOWER_BOUND=1;tf.LEAST_UPPER_BOUND=2;function m4(t,e,r,n,s,o){var a=Math.floor((e-t)/2)+t,c=s(r,n[a],!0);return c===0?a:c>0?e-a>1?m4(a,e,r,n,s,o):o==tf.LEAST_UPPER_BOUND?e1?m4(t,a,r,n,s,o):o==tf.LEAST_UPPER_BOUND?a:t<0?-1:t}i(m4,"recursiveSearch");tf.search=i(function(e,r,n,s){if(r.length===0)return-1;var o=m4(-1,r.length,e,r,n,s||tf.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var _Ce=b(vCe=>{function f4(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}i(f4,"swap");function TAt(t,e){return Math.round(t+Math.random()*(e-t))}i(TAt,"randomIntInRange");function A4(t,e,r,n){if(r{var fe=xg(),h4=PCe(),wg=d4().ArraySet,PAt=a4(),dx=_Ce().quickSort;function Jt(t,e){var r=t;return typeof t=="string"&&(r=fe.parseSourceMapInput(t)),r.sections!=null?new Ea(r,e):new Qn(r,e)}i(Jt,"SourceMapConsumer");Jt.fromSourceMap=function(t,e){return Qn.fromSourceMap(t,e)};Jt.prototype._version=3;Jt.prototype.__generatedMappings=null;Object.defineProperty(Jt.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Jt.prototype.__originalMappings=null;Object.defineProperty(Jt.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Jt.prototype._charIsMappingSeparator=i(function(e,r){var n=e.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Jt.prototype._parseMappings=i(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Jt.GENERATED_ORDER=1;Jt.ORIGINAL_ORDER=2;Jt.GREATEST_LOWER_BOUND=1;Jt.LEAST_UPPER_BOUND=2;Jt.prototype.eachMapping=i(function(e,r,n){var s=r||null,o=n||Jt.GENERATED_ORDER,a;switch(o){case Jt.GENERATED_ORDER:a=this._generatedMappings;break;case Jt.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=fe.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,s)},"SourceMapConsumer_eachMapping");Jt.prototype.allGeneratedPositionsFor=i(function(e){var r=fe.getArg(e,"line"),n={source:fe.getArg(e,"source"),originalLine:r,originalColumn:fe.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var s=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",fe.compareByOriginalPositions,h4.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(e.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)s.push({line:fe.getArg(a,"generatedLine",null),column:fe.getArg(a,"generatedColumn",null),lastColumn:fe.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var l=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==l;)s.push({line:fe.getArg(a,"generatedLine",null),column:fe.getArg(a,"generatedColumn",null),lastColumn:fe.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return s},"SourceMapConsumer_allGeneratedPositionsFor");RP.SourceMapConsumer=Jt;function Qn(t,e){var r=t;typeof t=="string"&&(r=fe.parseSourceMapInput(t));var n=fe.getArg(r,"version"),s=fe.getArg(r,"sources"),o=fe.getArg(r,"names",[]),a=fe.getArg(r,"sourceRoot",null),c=fe.getArg(r,"sourcesContent",null),l=fe.getArg(r,"mappings"),u=fe.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=fe.normalize(a)),s=s.map(String).map(fe.normalize).map(function(d){return a&&fe.isAbsolute(a)&&fe.isAbsolute(d)?fe.relative(a,d):d}),this._names=wg.fromArray(o.map(String),!0),this._sources=wg.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(d){return fe.computeSourceURL(a,d,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=e,this.file=u}i(Qn,"BasicSourceMapConsumer");Qn.prototype=Object.create(Jt.prototype);Qn.prototype.consumer=Jt;Qn.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=fe.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r1&&(E.source=c+w[1],c+=w[1],E.originalLine=o+w[2],o=E.originalLine,E.originalLine+=1,E.originalColumn=a+w[3],a=E.originalColumn,w.length>4&&(E.name=l+w[4],l+=w[4])),g.push(E),typeof E.originalLine=="number"&&f.push(E)}dx(g,fe.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,dx(f,fe.compareByOriginalPositions),this.__originalMappings=f},"SourceMapConsumer_parseMappings");Qn.prototype._findMapping=i(function(e,r,n,s,o,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return h4.search(e,r,o,a)},"SourceMapConsumer_findMapping");Qn.prototype.computeColumnSpans=i(function(){for(var e=0;e=0){var s=this._generatedMappings[n];if(s.generatedLine===r.generatedLine){var o=fe.getArg(s,"source",null);o!==null&&(o=this._sources.at(o),o=fe.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=fe.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:fe.getArg(s,"originalLine",null),column:fe.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");Qn.prototype.hasContentsOfAllSources=i(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");Qn.prototype.sourceContentFor=i(function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var s=e;this.sourceRoot!=null&&(s=fe.relative(this.sourceRoot,s));var o;if(this.sourceRoot!=null&&(o=fe.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(r)return null;throw new Error('"'+s+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");Qn.prototype.generatedPositionFor=i(function(e){var r=fe.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:fe.getArg(e,"line"),originalColumn:fe.getArg(e,"column")},s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",fe.compareByOriginalPositions,fe.getArg(e,"bias",Jt.GREATEST_LOWER_BOUND));if(s>=0){var o=this._originalMappings[s];if(o.source===n.source)return{line:fe.getArg(o,"generatedLine",null),column:fe.getArg(o,"generatedColumn",null),lastColumn:fe.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");RP.BasicSourceMapConsumer=Qn;function Ea(t,e){var r=t;typeof t=="string"&&(r=fe.parseSourceMapInput(t));var n=fe.getArg(r,"version"),s=fe.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new wg,this._names=new wg;var o={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=fe.getArg(a,"offset"),l=fe.getArg(c,"line"),u=fe.getArg(c,"column");if(l{var vAt=p4().SourceMapGenerator,NP=xg(),_At=/(\r?\n)/,QAt=10,bg="$$$isSourceNode$$$";function Ho(t,e,r,n,s){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=s??null,this[bg]=!0,n!=null&&this.add(n)}i(Ho,"SourceNode");Ho.fromStringWithSourceMap=i(function(e,r,n){var s=new Ho,o=e.split(_At),a=0,c=i(function(){var m=g(),f=g()||"";return m+f;function g(){return a=0;r--)this.prepend(e[r]);else if(e[bg]||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");Ho.prototype.walk=i(function(e){for(var r,n=0,s=this.children.length;n0){for(r=[],n=0;n{TP.SourceMapGenerator=p4().SourceMapGenerator;TP.SourceMapConsumer=DCe().SourceMapConsumer;TP.SourceNode=LCe().SourceNode});var qCe=b((PP,UCe)=>{"use strict";PP.__esModule=!0;var y4=Rs(),rf=void 0;try{(typeof define!="function"||!define.amd)&&(MCe=OCe(),rf=MCe.SourceNode)}catch{}var MCe;rf||(rf=i(function(t,e,r,n){this.src="",n&&this.add(n)},"SourceNode"),rf.prototype={add:i(function(e){y4.isArray(e)&&(e=e.join("")),this.src+=e},"add"),prepend:i(function(e){y4.isArray(e)&&(e=e.join("")),this.src=e+this.src},"prepend"),toStringWithSourceMap:i(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:i(function(){return this.src},"toString")});function g4(t,e,r){if(y4.isArray(t)){for(var n=[],s=0,o=t.length;s{"use strict";vP.__esModule=!0;function HCe(t){return t&&t.__esModule?t:{default:t}}i(HCe,"_interopRequireDefault");var $Ce=dP(),DAt=Go(),E4=HCe(DAt),kAt=Rs(),LAt=qCe(),GCe=HCe(LAt);function Sg(t){this.value=t}i(Sg,"Literal");function Bg(){}i(Bg,"JavaScriptCompiler");Bg.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=$Ce.COMPILER_REVISION,r=$Ce.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return kAt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,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 o=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=o.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 i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();xP.default=$ft;pCe.exports=xP.default});var BP=b((SP,hCe)=>{"use strict";SP.__esModule=!0;function Gft(t){return t&&t.__esModule?t:{default:t}}i(Gft,"_interopRequireDefault");var Hft=zo(),r4=Gft(Hft);function wP(){this.parents=[]}i(wP,"Visitor");wP.prototype={constructor:wP,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!wP.prototype[n.type])throw new r4.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.acceptKey(e,r),!e[r])throw new r4.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r{"use strict";RP.__esModule=!0;function zft(t){return t&&t.__esModule?t:{default:t}}i(zft,"_interopRequireDefault");var Vft=BP(),Yft=zft(Vft);function Uc(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}i(Uc,"WhitespaceControl");Uc.prototype=new Yft.default;Uc.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,s=0,o=n.length;s{"use strict";Pi.__esModule=!0;Pi.SourceLocation=Jft;Pi.id=Kft;Pi.stripFlags=Xft;Pi.stripComment=Zft;Pi.preparePath=eAt;Pi.prepareMustache=tAt;Pi.prepareRawBlock=rAt;Pi.prepareBlock=nAt;Pi.prepareProgram=sAt;Pi.preparePartialBlock=oAt;function Wft(t){return t&&t.__esModule?t:{default:t}}i(Wft,"_interopRequireDefault");var jft=zo(),o4=Wft(jft);function i4(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new o4.default(t.path.original+" doesn't match "+e,r)}}i(i4,"validateClose");function Jft(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}}i(Jft,"SourceLocation");function Kft(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}i(Kft,"id");function Xft(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}i(Xft,"stripFlags");function Zft(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}i(Zft,"stripComment");function eAt(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",s=[],o=0,a=0,c=e.length;a0)throw new o4.default("Invalid path: "+n,{loc:r});l===".."&&o++}else s.push(l)}return{type:"PathExpression",data:t,depth:o,parts:s,original:n,loc:r}}i(eAt,"preparePath");function tAt(t,e,r,n,s,o){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:s,loc:this.locInfo(o)}}i(tAt,"prepareMustache");function rAt(t,e,r,n){i4(t,r),n=this.locInfo(n);var s={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}i(rAt,"prepareRawBlock");function nAt(t,e,r,n,s,o){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 o4.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),l=r.strip,c=r.program}return s&&(s=c,c=e,e=s),{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(o)}}i(nAt,"prepareBlock");function sAt(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}}i(sAt,"prepareProgram");function oAt(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)}}i(oAt,"preparePartialBlock")});var ICe=b(cx=>{"use strict";cx.__esModule=!0;cx.parseWithoutProcessing=CCe;cx.parse=fAt;function iAt(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}i(iAt,"_interopRequireWildcard");function l4(t){return t&&t.__esModule?t:{default:t}}i(l4,"_interopRequireDefault");var aAt=mCe(),a4=l4(aAt),cAt=yCe(),lAt=l4(cAt),uAt=ECe(),dAt=iAt(uAt),pAt=zo(),ax=l4(pAt),mAt=Ns();cx.parser=a4.default;var NP={};mAt.extend(NP,dAt);function CCe(t,e){if(t.type==="Program")return AAt(t),t;a4.default.yy=NP,NP.locInfo=function(n){return new NP.SourceLocation(e&&e.srcName,n)};var r=a4.default.parse(t);return r}i(CCe,"parseWithoutProcessing");function fAt(t,e){var r=CCe(t,e),n=new lAt.default(e);return n.accept(r)}i(fAt,"parse");function AAt(t){c4(t)}i(AAt,"validateInputAst");function c4(t){if(t!=null){if(Array.isArray(t)){t.forEach(c4);return}if(typeof t=="object"){if(t.type==="PathExpression"){if(!hAt(t.depth))throw new ax.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(t.parts))throw new ax.default("Invalid AST: PathExpression.parts must be an array");for(var e=0;e=0}i(hAt,"isValidDepth")});var SCe=b(px=>{"use strict";px.__esModule=!0;px.Compiler=u4;px.precompile=CAt;px.compile=IAt;function wCe(t){return t&&t.__esModule?t:{default:t}}i(wCe,"_interopRequireDefault");var gAt=zo(),ux=wCe(gAt),dx=Ns(),yAt=t4(),lx=wCe(yAt),EAt=[].slice;function u4(){}i(u4,"Compiler");u4.prototype={compiler:u4,equals:i(function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n1)throw new ux.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 s=e.name.original,o=e.name.type==="SubExpression";o&&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",o,s,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:i(function(e){this.PartialStatement(e)},"PartialBlockStatement"),MustacheStatement:i(function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:i(function(e){this.DecoratorBlock(e)},"Decorator"),ContentStatement:i(function(e){e.value&&this.opcode("appendContent",e.value)},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:i(function(e){xCe(e);var r=this.classifySexpr(e);r==="simple"?this.simpleSexpr(e):r==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},"SubExpression"),ambiguousSexpr:i(function(e,r,n){var s=e.path,o=s.parts[0],a=r!=null||n!=null;this.opcode("getContext",s.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),s.strict=!0,this.accept(s),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:i(function(e){var r=e.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:i(function(e,r,n){var s=this.setupFullMustacheParams(e,r,n),o=e.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",s.length,a);else{if(this.options.knownHelpersOnly)throw new ux.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",s.length,o.original,lx.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:i(function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var r=e.parts[0],n=lx.default.helpers.scopedId(e),s=!e.depth&&!n&&this.blockParamIndex(r);s?this.opcode("lookupBlockParam",s,e.parts):r?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:i(function(e){this.opcode("pushString",e.value)},"StringLiteral"),NumberLiteral:i(function(e){this.opcode("pushLiteral",e.value)},"NumberLiteral"),BooleanLiteral:i(function(e){this.opcode("pushLiteral",e.value)},"BooleanLiteral"),UndefinedLiteral:i(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:i(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:i(function(e){var r=e.pairs,n=0,s=r.length;for(this.opcode("pushHash");n=0)return[r,o]}},"blockParamIndex")};function CAt(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new ux.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),s=new r.Compiler().compile(n,e);return new r.JavaScriptCompiler().compile(s,e)}i(CAt,"precompile");function IAt(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new ux.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=dx.extend({},e),"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function s(){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)}i(s,"compileInput");function o(a,c){return n||(n=s()),n.call(this,a,c)}return i(o,"ret"),o._setup=function(a){return n||(n=s()),n._setup(a)},o._child=function(a,c,l,u){return n||(n=s()),n._child(a,c,l,u)},o}i(IAt,"compile");function bCe(t,e){if(t===e)return!0;if(dx.isArray(t)&&dx.isArray(e)&&t.length===e.length){for(var r=0;r{var BCe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");d4.encode=function(t){if(0<=t&&t{var NCe=RCe(),p4=5,TCe=1<>1;return e?-r:r}i(wAt,"fromVLQSigned");m4.encode=i(function(e){var r="",n,s=xAt(e);do n=s&PCe,s>>>=p4,s>0&&(n|=vCe),r+=NCe.encode(n);while(s>0);return r},"base64VLQ_encode");m4.decode=i(function(e,r,n){var s=e.length,o=0,a=0,c,l;do{if(r>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(l=NCe.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));c=!!(l&vCe),l&=PCe,o=o+(l<{function bAt(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}i(bAt,"getArg");Jn.getArg=bAt;var _Ce=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,SAt=/^data:.+\,.+$/;function mx(t){var e=t.match(_Ce);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}i(mx,"urlParse");Jn.urlParse=mx;function wg(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}i(wg,"urlGenerate");Jn.urlGenerate=wg;function A4(t){var e=t,r=mx(t);if(r){if(!r.path)return t;e=r.path}for(var n=Jn.isAbsolute(e),s=e.split(/\/+/),o,a=0,c=s.length-1;c>=0;c--)o=s[c],o==="."?s.splice(c,1):o===".."?a++:a>0&&(o===""?(s.splice(c+1,a),a=0):(s.splice(c,2),a--));return e=s.join("/"),e===""&&(e=n?"/":"."),r?(r.path=e,wg(r)):e}i(A4,"normalize");Jn.normalize=A4;function QCe(t,e){t===""&&(t="."),e===""&&(e=".");var r=mx(e),n=mx(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),wg(r);if(r||e.match(SAt))return e;if(n&&!n.host&&!n.path)return n.host=e,wg(n);var s=e.charAt(0)==="/"?e:A4(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=s,wg(n)):s}i(QCe,"join");Jn.join=QCe;Jn.isAbsolute=function(t){return t.charAt(0)==="/"||_Ce.test(t)};function BAt(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)}i(BAt,"relative");Jn.relative=BAt;var DCe=(function(){var t=Object.create(null);return!("__proto__"in t)})();function kCe(t){return t}i(kCe,"identity");function RAt(t){return LCe(t)?"$"+t:t}i(RAt,"toSetString");Jn.toSetString=DCe?kCe:RAt;function NAt(t){return LCe(t)?t.slice(1):t}i(NAt,"fromSetString");Jn.fromSetString=DCe?kCe:NAt;function LCe(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}i(LCe,"isProtoString");function TAt(t,e,r){var n=bg(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:bg(t.name,e.name)}i(TAt,"compareByOriginalPositions");Jn.compareByOriginalPositions=TAt;function PAt(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=bg(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:bg(t.name,e.name)}i(PAt,"compareByGeneratedPositionsDeflated");Jn.compareByGeneratedPositionsDeflated=PAt;function bg(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}i(bg,"strcmp");function vAt(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=bg(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:bg(t.name,e.name)}i(vAt,"compareByGeneratedPositionsInflated");Jn.compareByGeneratedPositionsInflated=vAt;function _At(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}i(_At,"parseSourceMapInput");Jn.parseSourceMapInput=_At;function QAt(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=mx(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var s=n.path.lastIndexOf("/");s>=0&&(n.path=n.path.substring(0,s+1))}e=QCe(wg(n),e)}return A4(e)}i(QAt,"computeSourceURL");Jn.computeSourceURL=QAt});var y4=b(OCe=>{var h4=Sg(),g4=Object.prototype.hasOwnProperty,nf=typeof Map<"u";function Au(){this._array=[],this._set=nf?new Map:Object.create(null)}i(Au,"ArraySet");Au.fromArray=i(function(e,r){for(var n=new Au,s=0,o=e.length;s=0)return r}else{var n=h4.toSetString(e);if(g4.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");Au.prototype.at=i(function(e){if(e>=0&&e{var MCe=Sg();function DAt(t,e){var r=t.generatedLine,n=e.generatedLine,s=t.generatedColumn,o=e.generatedColumn;return n>r||n==r&&o>=s||MCe.compareByGeneratedPositionsInflated(t,e)<=0}i(DAt,"generatedPositionAfter");function TP(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i(TP,"MappingList");TP.prototype.unsortedForEach=i(function(e,r){this._array.forEach(e,r)},"MappingList_forEach");TP.prototype.add=i(function(e){DAt(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");TP.prototype.toArray=i(function(){return this._sorted||(this._array.sort(MCe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");FCe.MappingList=TP});var E4=b(qCe=>{var fx=f4(),Zr=Sg(),PP=y4().ArraySet,kAt=UCe().MappingList;function vi(t){t||(t={}),this._file=Zr.getArg(t,"file",null),this._sourceRoot=Zr.getArg(t,"sourceRoot",null),this._skipValidation=Zr.getArg(t,"skipValidation",!1),this._sources=new PP,this._names=new PP,this._mappings=new kAt,this._sourcesContents=null}i(vi,"SourceMapGenerator");vi.prototype._version=3;vi.fromSourceMap=i(function(e){var r=e.sourceRoot,n=new vi({file:e.file,sourceRoot:r});return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,r!=null&&(o.source=Zr.relative(r,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),n.addMapping(o)}),e.sources.forEach(function(s){var o=s;r!==null&&(o=Zr.relative(r,s)),n._sources.has(o)||n._sources.add(o);var a=e.sourceContentFor(s);a!=null&&n.setSourceContent(s,a)}),n},"SourceMapGenerator_fromSourceMap");vi.prototype.addMapping=i(function(e){var r=Zr.getArg(e,"generated"),n=Zr.getArg(e,"original",null),s=Zr.getArg(e,"source",null),o=Zr.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,s,o),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:s,name:o})},"SourceMapGenerator_addMapping");vi.prototype.setSourceContent=i(function(e,r){var n=e;this._sourceRoot!=null&&(n=Zr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Zr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Zr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");vi.prototype.applySourceMap=i(function(e,r,n){var s=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.`);s=e.file}var o=this._sourceRoot;o!=null&&(s=Zr.relative(o,s));var a=new PP,c=new PP;this._mappings.unsortedForEach(function(l){if(l.source===s&&l.originalLine!=null){var u=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=Zr.join(n,l.source)),o!=null&&(l.source=Zr.relative(o,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 p=l.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,e.sources.forEach(function(l){var u=e.sourceContentFor(l);u!=null&&(n!=null&&(l=Zr.join(n,l)),o!=null&&(l=Zr.relative(o,l)),this.setSourceContent(l,u))},this)},"SourceMapGenerator_applySourceMap");vi.prototype._validateMapping=i(function(e,r,n,s){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&&!s)){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:s}))}},"SourceMapGenerator_validateMapping");vi.prototype._serializeMappings=i(function(){for(var e=0,r=1,n=0,s=0,o=0,a=0,c="",l,u,d,p,m=this._mappings.toArray(),f=0,g=m.length;f0){if(!Zr.compareByGeneratedPositionsInflated(u,m[f-1]))continue;l+=","}l+=fx.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),l+=fx.encode(p-a),a=p,l+=fx.encode(u.originalLine-1-s),s=u.originalLine-1,l+=fx.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=fx.encode(d-o),o=d)),c+=l}return c},"SourceMapGenerator_serializeMappings");vi.prototype._generateSourcesContent=i(function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Zr.relative(r,n));var s=Zr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)},"SourceMapGenerator_generateSourcesContent");vi.prototype.toJSON=i(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");vi.prototype.toString=i(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");qCe.SourceMapGenerator=vi});var $Ce=b(sf=>{sf.GREATEST_LOWER_BOUND=1;sf.LEAST_UPPER_BOUND=2;function C4(t,e,r,n,s,o){var a=Math.floor((e-t)/2)+t,c=s(r,n[a],!0);return c===0?a:c>0?e-a>1?C4(a,e,r,n,s,o):o==sf.LEAST_UPPER_BOUND?e1?C4(t,a,r,n,s,o):o==sf.LEAST_UPPER_BOUND?a:t<0?-1:t}i(C4,"recursiveSearch");sf.search=i(function(e,r,n,s){if(r.length===0)return-1;var o=C4(-1,r.length,e,r,n,s||sf.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var HCe=b(GCe=>{function I4(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}i(I4,"swap");function LAt(t,e){return Math.round(t+Math.random()*(e-t))}i(LAt,"randomIntInRange");function x4(t,e,r,n){if(r{var fe=Sg(),w4=$Ce(),Bg=y4().ArraySet,OAt=f4(),Ax=HCe().quickSort;function Kt(t,e){var r=t;return typeof t=="string"&&(r=fe.parseSourceMapInput(t)),r.sections!=null?new Ca(r,e):new Dn(r,e)}i(Kt,"SourceMapConsumer");Kt.fromSourceMap=function(t,e){return Dn.fromSourceMap(t,e)};Kt.prototype._version=3;Kt.prototype.__generatedMappings=null;Object.defineProperty(Kt.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Kt.prototype.__originalMappings=null;Object.defineProperty(Kt.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Kt.prototype._charIsMappingSeparator=i(function(e,r){var n=e.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Kt.prototype._parseMappings=i(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Kt.GENERATED_ORDER=1;Kt.ORIGINAL_ORDER=2;Kt.GREATEST_LOWER_BOUND=1;Kt.LEAST_UPPER_BOUND=2;Kt.prototype.eachMapping=i(function(e,r,n){var s=r||null,o=n||Kt.GENERATED_ORDER,a;switch(o){case Kt.GENERATED_ORDER:a=this._generatedMappings;break;case Kt.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=fe.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,s)},"SourceMapConsumer_eachMapping");Kt.prototype.allGeneratedPositionsFor=i(function(e){var r=fe.getArg(e,"line"),n={source:fe.getArg(e,"source"),originalLine:r,originalColumn:fe.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var s=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",fe.compareByOriginalPositions,w4.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(e.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)s.push({line:fe.getArg(a,"generatedLine",null),column:fe.getArg(a,"generatedColumn",null),lastColumn:fe.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var l=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==l;)s.push({line:fe.getArg(a,"generatedLine",null),column:fe.getArg(a,"generatedColumn",null),lastColumn:fe.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return s},"SourceMapConsumer_allGeneratedPositionsFor");vP.SourceMapConsumer=Kt;function Dn(t,e){var r=t;typeof t=="string"&&(r=fe.parseSourceMapInput(t));var n=fe.getArg(r,"version"),s=fe.getArg(r,"sources"),o=fe.getArg(r,"names",[]),a=fe.getArg(r,"sourceRoot",null),c=fe.getArg(r,"sourcesContent",null),l=fe.getArg(r,"mappings"),u=fe.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=fe.normalize(a)),s=s.map(String).map(fe.normalize).map(function(d){return a&&fe.isAbsolute(a)&&fe.isAbsolute(d)?fe.relative(a,d):d}),this._names=Bg.fromArray(o.map(String),!0),this._sources=Bg.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(d){return fe.computeSourceURL(a,d,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=e,this.file=u}i(Dn,"BasicSourceMapConsumer");Dn.prototype=Object.create(Kt.prototype);Dn.prototype.consumer=Kt;Dn.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=fe.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r1&&(E.source=c+w[1],c+=w[1],E.originalLine=o+w[2],o=E.originalLine,E.originalLine+=1,E.originalColumn=a+w[3],a=E.originalColumn,w.length>4&&(E.name=l+w[4],l+=w[4])),g.push(E),typeof E.originalLine=="number"&&f.push(E)}Ax(g,fe.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,Ax(f,fe.compareByOriginalPositions),this.__originalMappings=f},"SourceMapConsumer_parseMappings");Dn.prototype._findMapping=i(function(e,r,n,s,o,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return w4.search(e,r,o,a)},"SourceMapConsumer_findMapping");Dn.prototype.computeColumnSpans=i(function(){for(var e=0;e=0){var s=this._generatedMappings[n];if(s.generatedLine===r.generatedLine){var o=fe.getArg(s,"source",null);o!==null&&(o=this._sources.at(o),o=fe.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=fe.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:fe.getArg(s,"originalLine",null),column:fe.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");Dn.prototype.hasContentsOfAllSources=i(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");Dn.prototype.sourceContentFor=i(function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var s=e;this.sourceRoot!=null&&(s=fe.relative(this.sourceRoot,s));var o;if(this.sourceRoot!=null&&(o=fe.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(r)return null;throw new Error('"'+s+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");Dn.prototype.generatedPositionFor=i(function(e){var r=fe.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:fe.getArg(e,"line"),originalColumn:fe.getArg(e,"column")},s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",fe.compareByOriginalPositions,fe.getArg(e,"bias",Kt.GREATEST_LOWER_BOUND));if(s>=0){var o=this._originalMappings[s];if(o.source===n.source)return{line:fe.getArg(o,"generatedLine",null),column:fe.getArg(o,"generatedColumn",null),lastColumn:fe.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");vP.BasicSourceMapConsumer=Dn;function Ca(t,e){var r=t;typeof t=="string"&&(r=fe.parseSourceMapInput(t));var n=fe.getArg(r,"version"),s=fe.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Bg,this._names=new Bg;var o={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=fe.getArg(a,"offset"),l=fe.getArg(c,"line"),u=fe.getArg(c,"column");if(l{var MAt=E4().SourceMapGenerator,_P=Sg(),FAt=/(\r?\n)/,UAt=10,Rg="$$$isSourceNode$$$";function Vo(t,e,r,n,s){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=s??null,this[Rg]=!0,n!=null&&this.add(n)}i(Vo,"SourceNode");Vo.fromStringWithSourceMap=i(function(e,r,n){var s=new Vo,o=e.split(FAt),a=0,c=i(function(){var m=g(),f=g()||"";return m+f;function g(){return a=0;r--)this.prepend(e[r]);else if(e[Rg]||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");Vo.prototype.walk=i(function(e){for(var r,n=0,s=this.children.length;n0){for(r=[],n=0;n{QP.SourceMapGenerator=E4().SourceMapGenerator;QP.SourceMapConsumer=VCe().SourceMapConsumer;QP.SourceNode=WCe().SourceNode});var ZCe=b((DP,XCe)=>{"use strict";DP.__esModule=!0;var S4=Ns(),of=void 0;try{(typeof define!="function"||!define.amd)&&(JCe=jCe(),of=JCe.SourceNode)}catch{}var JCe;of||(of=i(function(t,e,r,n){this.src="",n&&this.add(n)},"SourceNode"),of.prototype={add:i(function(e){S4.isArray(e)&&(e=e.join("")),this.src+=e},"add"),prepend:i(function(e){S4.isArray(e)&&(e=e.join("")),this.src=e+this.src},"prepend"),toStringWithSourceMap:i(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:i(function(){return this.src},"toString")});function b4(t,e,r){if(S4.isArray(t)){for(var n=[],s=0,o=t.length;s{"use strict";kP.__esModule=!0;function rIe(t){return t&&t.__esModule?t:{default:t}}i(rIe,"_interopRequireDefault");var eIe=AP(),qAt=zo(),B4=rIe(qAt),$At=Ns(),GAt=ZCe(),tIe=rIe(GAt);function Ng(t){this.value=t}i(Ng,"Literal");function Tg(){}i(Tg,"JavaScriptCompiler");Tg.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=eIe.COMPILER_REVISION,r=eIe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return $At.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,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 o=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=o.length;l0&&(n+=", "+s.join(", "));var o=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++o+"="+l,u.children[0]="alias"+o)}),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(s);if(this.isChild)return d;var p={compiler:this.compilerInfo(),main:d};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var m=this.context,f=m.programs,g=m.decorators;for(l=0,u=f.length;l0&&(n+=", "+s.join(", "));var o=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++o+"="+l,u.children[0]="alias"+o)}),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:i(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,o=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(o?a.prepend("buffer += "):s=!0,c.add(";"),a=c=void 0),o=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):o||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`; `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:i(function(){return` lookupProperty = container.lookupProperty || function(parent, propertyName) { @@ -84,33 +84,33 @@ Expecting `+oe.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":It="Parse error } return undefined } - `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(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:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(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:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,s){var o=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[o++])):this.pushContext(),this.resolvePath("context",e,o,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,s,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(OAt(this.options.strict&&o,this,r,n,e));return}for(var c=r.length,l=i(function(d){a.replaceStack(function(p){var m=a.nameLookup(p,r[d],e);return s?[" && ",m]:[" != null ? ",m," : ",p]})},"_loop"),u=n;uthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:i(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:i(function(){var e=this.inlineStack;this.inlineStack=[];for(var r=0,n=e.length;r{"use strict";_P.__esModule=!0;function px(t){return t&&t.__esModule?t:{default:t}}i(px,"_interopRequireDefault");var MAt=KEe(),FAt=px(MAt),UAt=WV(),qAt=px(UAt),C4=lCe(),I4=mCe(),$At=VCe(),GAt=px($At),HAt=xP(),zAt=px(HAt),VAt=HV(),YAt=px(VAt),WAt=FAt.default.create;function YCe(){var t=WAt();return t.compile=function(e,r){return I4.compile(e,r,t)},t.precompile=function(e,r){return I4.precompile(e,r,t)},t.AST=qAt.default,t.Compiler=I4.Compiler,t.JavaScriptCompiler=GAt.default,t.Parser=C4.parser,t.parse=C4.parse,t.parseWithoutProcessing=C4.parseWithoutProcessing,t}i(YCe,"create");var Rg=YCe();Rg.create=YCe;YAt.default(Rg);Rg.Visitor=zAt.default;Rg.default=Rg;_P.default=Rg;WCe.exports=_P.default});var JCe=b(QP=>{"use strict";QP.__esModule=!0;QP.print=XAt;QP.PrintVisitor=Nr;function jAt(t){return t&&t.__esModule?t:{default:t}}i(jAt,"_interopRequireDefault");var JAt=xP(),KAt=jAt(JAt);function XAt(t){return new Nr().accept(t)}i(XAt,"print");function Nr(){this.padding=0}i(Nr,"PrintVisitor");Nr.prototype=new KAt.default;Nr.prototype.pad=function(t){for(var e="",r=0,n=this.padding;r "+e+" }}")};Nr.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+" }}")};Nr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Nr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Nr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,o=e.length;s{"use strict";Object.defineProperty(MP,"__esModule",{value:!0});MP.getProxyUrl=iht;MP.checkBypass=pIe;function iht(t){let e=t.protocol==="https:";if(pIe(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 OP(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new OP(`http://${r}`)}else return}i(iht,"getProxyUrl");function pIe(t){if(!t.hostname)return!1;let e=t.hostname;if(aht(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 s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(pIe,"checkBypass");function aht(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(aht,"isLoopbackAddress");var OP=class extends URL{static{i(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 AIe=b(or=>{"use strict";var cht=or&&or.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),lht=or&&or.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$P=or&&or.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;sUr(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))})}))})}};or.HttpClientResponse=qP;function ght(t){return new URL(t).protocol==="https:"}i(ght,"isHttps");var T4=class{static{i(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,s){return Ur(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Ur(this,arguments,void 0,function*(r,n={}){n[Ns.Accept]=this._getExistingOrDefaultHeader(n,Ns.Accept,Au.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Ur(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ns.Accept]=this._getExistingOrDefaultHeader(o,Ns.Accept,Au.ApplicationJson),o[Ns.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Au.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Ur(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ns.Accept]=this._getExistingOrDefaultHeader(o,Ns.Accept,Au.ApplicationJson),o[Ns.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Au.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Ur(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ns.Accept]=this._getExistingOrDefaultHeader(o,Ns.Accept,Au.ApplicationJson),o[Ns.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Au.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Ur(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&fht.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===vi.Unauthorized){let p;for(let m of this.handlers)if(m.canHandleAuthentication(u)){p=m;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&pht.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let m=new URL(p);if(o.protocol==="https:"&&o.protocol!==m.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(),m.hostname!==o.hostname)for(let f in s)f.toLowerCase()==="authorization"&&delete s[f];a=this._prepareRequest(e,m,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!mht.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new qP(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(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=N4.getProxyUrl(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?fIe:R4;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Ax(this.requestOptions.headers),Ax(e||{})):Ax(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=Ax(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=Ax(this.requestOptions.headers)[Ns.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[Ns.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=N4.getProxyUrl(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||R4.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:";o?l=u?FP.httpsOverHttps:FP.httpsOverHttp:l=u?FP.httpOverHttps:FP.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new fIe.Agent(c):new R4.Agent(c),this._agent=r}return o&&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 s=e.protocol==="https:";return n=new uht.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,s&&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 s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return Ur(this,void 0,void 0,function*(){e=Math.min(Aht,e);let r=hht*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,s)=>Ur(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===vi.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let m=new Date(p);if(!isNaN(m.valueOf()))return m}return p}i(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(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new UP(d,o);p.result=a.result,s(p)}else n(a)}))})}};or.HttpClient=T4;var Ax=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var OIe=b((ofr,gx)=>{"use strict";var VP=i(function(){},"NullObject");VP.prototype=Object.create(null);var HP=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,zP=/\\([\v\u0020-\u00ff])/gu,DIe=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,nf={type:"",parameters:new VP};Object.freeze(nf.parameters);Object.freeze(nf);function kIe(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(DIe.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new VP};if(e===-1)return n;let s,o,a;for(HP.lastIndex=e;o=HP.exec(t);){if(o.index!==e)throw new TypeError("invalid parameter format");e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),zP.test(a)&&(a=a.replace(zP,"$1"))),n.parameters[s]=a}if(e!==t.length)throw new TypeError("invalid parameter format");return n}i(kIe,"parse");function LIe(t){if(typeof t!="string")return nf;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(DIe.test(r)===!1)return nf;let n={type:r.toLowerCase(),parameters:new VP};if(e===-1)return n;let s,o,a;for(HP.lastIndex=e;o=HP.exec(t);){if(o.index!==e)return nf;e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),zP.test(a)&&(a=a.replace(zP,"$1"))),n.parameters[s]=a}return e!==t.length?nf:n}i(LIe,"safeParse");gx.exports.default={parse:kIe,safeParse:LIe};gx.exports.parse=kIe;gx.exports.safeParse=LIe;gx.exports.defaultContentType=nf});var Ix,qc,pxe=I(()=>{Ix={warningEmitted:!1},qc=i(t=>{if(t&&!Ix.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){Ix.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),r=22;ethis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:i(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:i(function(){var e=this.inlineStack;this.inlineStack=[];for(var r=0,n=e.length;r{"use strict";LP.__esModule=!0;function hx(t){return t&&t.__esModule?t:{default:t}}i(hx,"_interopRequireDefault");var zAt=lCe(),VAt=hx(zAt),YAt=t4(),WAt=hx(YAt),R4=ICe(),N4=SCe(),jAt=sIe(),JAt=hx(jAt),KAt=BP(),XAt=hx(KAt),ZAt=KV(),eht=hx(ZAt),tht=VAt.default.create;function oIe(){var t=tht();return t.compile=function(e,r){return N4.compile(e,r,t)},t.precompile=function(e,r){return N4.precompile(e,r,t)},t.AST=WAt.default,t.Compiler=N4.Compiler,t.JavaScriptCompiler=JAt.default,t.Parser=R4.parser,t.parse=R4.parse,t.parseWithoutProcessing=R4.parseWithoutProcessing,t}i(oIe,"create");var Pg=oIe();Pg.create=oIe;eht.default(Pg);Pg.Visitor=XAt.default;Pg.default=Pg;LP.default=Pg;iIe.exports=LP.default});var cIe=b(OP=>{"use strict";OP.__esModule=!0;OP.print=oht;OP.PrintVisitor=Tr;function rht(t){return t&&t.__esModule?t:{default:t}}i(rht,"_interopRequireDefault");var nht=BP(),sht=rht(nht);function oht(t){return new Tr().accept(t)}i(oht,"print");function Tr(){this.padding=0}i(Tr,"PrintVisitor");Tr.prototype=new sht.default;Tr.prototype.pad=function(t){for(var e="",r=0,n=this.padding;r "+e+" }}")};Tr.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+" }}")};Tr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Tr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Tr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,o=e.length;s{"use strict";Object.defineProperty($P,"__esModule",{value:!0});$P.getProxyUrl=mht;$P.checkBypass=bIe;function mht(t){let e=t.protocol==="https:";if(bIe(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 qP(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new qP(`http://${r}`)}else return}i(mht,"getProxyUrl");function bIe(t){if(!t.hostname)return!1;let e=t.hostname;if(fht(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 s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(bIe,"checkBypass");function fht(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(fht,"isLoopbackAddress");var qP=class extends URL{static{i(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 RIe=b(ir=>{"use strict";var Aht=ir&&ir.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hht=ir&&ir.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),VP=ir&&ir.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;sqr(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 qr(this,void 0,void 0,function*(){return new Promise(e=>qr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};ir.HttpClientResponse=zP;function bht(t){return new URL(t).protocol==="https:"}i(bht,"isHttps");var L4=class{static{i(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 qr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return qr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return qr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return qr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return qr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return qr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return qr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return qr(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return qr(this,arguments,void 0,function*(r,n={}){n[Ts.Accept]=this._getExistingOrDefaultHeader(n,Ts.Accept,hu.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ts.Accept]=this._getExistingOrDefaultHeader(o,Ts.Accept,hu.ApplicationJson),o[Ts.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,hu.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ts.Accept]=this._getExistingOrDefaultHeader(o,Ts.Accept,hu.ApplicationJson),o[Ts.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,hu.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ts.Accept]=this._getExistingOrDefaultHeader(o,Ts.Accept,hu.ApplicationJson),o[Ts.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,hu.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return qr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&Iht.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===_i.Unauthorized){let p;for(let m of this.handlers)if(m.canHandleAuthentication(u)){p=m;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&Eht.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let m=new URL(p);if(o.protocol==="https:"&&o.protocol!==m.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(),m.hostname!==o.hostname)for(let f in s)f.toLowerCase()==="authorization"&&delete s[f];a=this._prepareRequest(e,m,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!Cht.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new zP(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(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 s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?BIe:D4;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Ex(this.requestOptions.headers),Ex(e||{})):Ex(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=Ex(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=Ex(this.requestOptions.headers)[Ts.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[Ts.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=k4.getProxyUrl(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||D4.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:";o?l=u?GP.httpsOverHttps:GP.httpsOverHttp:l=u?GP.httpOverHttps:GP.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new BIe.Agent(c):new D4.Agent(c),this._agent=r}return o&&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 s=e.protocol==="https:";return n=new ght.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,s&&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 s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return qr(this,void 0,void 0,function*(){e=Math.min(xht,e);let r=wht*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return qr(this,void 0,void 0,function*(){return new Promise((n,s)=>qr(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===_i.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let m=new Date(p);if(!isNaN(m.valueOf()))return m}return p}i(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(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new HP(d,o);p.result=a.result,s(p)}else n(a)}))})}};ir.HttpClient=L4;var Ex=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var jIe=b((pfr,Ix)=>{"use strict";var JP=i(function(){},"NullObject");JP.prototype=Object.create(null);var WP=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,jP=/\\([\v\u0020-\u00ff])/gu,VIe=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,af={type:"",parameters:new JP};Object.freeze(af.parameters);Object.freeze(af);function YIe(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(VIe.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new JP};if(e===-1)return n;let s,o,a;for(WP.lastIndex=e;o=WP.exec(t);){if(o.index!==e)throw new TypeError("invalid parameter format");e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),jP.test(a)&&(a=a.replace(jP,"$1"))),n.parameters[s]=a}if(e!==t.length)throw new TypeError("invalid parameter format");return n}i(YIe,"parse");function WIe(t){if(typeof t!="string")return af;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(VIe.test(r)===!1)return af;let n={type:r.toLowerCase(),parameters:new JP};if(e===-1)return n;let s,o,a;for(WP.lastIndex=e;o=WP.exec(t);){if(o.index!==e)return af;e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),jP.test(a)&&(a=a.replace(jP,"$1"))),n.parameters[s]=a}return e!==t.length?af:n}i(WIe,"safeParse");Ix.exports.default={parse:YIe,safeParse:WIe};Ix.exports.parse=YIe;Ix.exports.safeParse=WIe;Ix.exports.defaultContentType=af});var Sx,qc,bxe=I(()=>{Sx={warningEmitted:!1},qc=i(t=>{if(t&&!Sx.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){Sx.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),r=22;e=${r}. You are running node ${t}. To continue receiving updates to AWS services, bug fixes, and security updates please upgrade to node >=${r}. -More information can be found at: https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var Tgt,Pgt,mxe,fxe=I(()=>{Tgt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),Pgt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},mxe=i(t=>({applyToStack:i(e=>{e.add(Tgt(),Pgt)},"applyToStack")}),"getLongPollPlugin")});function zd(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var Axe=I(()=>{i(zd,"setCredentialFeature")});var hxe,K4,gxe=I(()=>{hxe=require("node:stream"),K4=i(t=>t?.body instanceof hxe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var cf,Vd,Yd,yxe,Exe,XP=I(()=>{cf=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),Vd=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Yd=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((m,f)=>yxe[f.step]-yxe[m.step]||Exe[f.priority||"normal"]-Exe[m.priority||"normal"]),"sort"),o=i(p=>{let m=!1,f=i(g=>{let E=cf(g.name,g.aliases);if(E.includes(p)){m=!0;for(let x of E)n.delete(x);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByName"),a=i(p=>{let m=!1,f=i(g=>{if(g.middleware===p){m=!0;for(let E of cf(g.name,g.aliases))n.delete(E);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByReference"),c=i(p=>(t.forEach(m=>{p.add(m.middleware,{...m})}),e.forEach(m=>{p.addRelativeTo(m.middleware,{...m})}),p.identifyOnResolve?.(d.identifyOnResolve()),p),"cloneTo"),l=i(p=>{let m=[];return p.before.forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m.push(p),p.after.reverse().forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m},"expandRelativeMiddlewareList"),u=i((p=!1)=>{let m=[],f=[],g={};return t.forEach(x=>{let w={...x,before:[],after:[]};for(let S of cf(w.name,w.aliases))g[S]=w;m.push(w)}),e.forEach(x=>{let w={...x,before:[],after:[]};for(let S of cf(w.name,w.aliases))g[S]=w;f.push(w)}),f.forEach(x=>{if(x.toMiddleware){let w=g[x.toMiddleware];if(w===void 0){if(p)return;throw new Error(`${x.toMiddleware} is not found when adding ${Vd(x.name,x.aliases)} middleware ${x.relation} ${x.toMiddleware}`)}x.relation==="after"&&w.after.push(x),x.relation==="before"&&w.before.push(x)}}),s(m).map(l).reduce((x,w)=>(x.push(...w),x),[])},"getMiddlewareList"),d={add:i((p,m={})=>{let{name:f,override:g,aliases:E}=m,x={step:"initialize",priority:"normal",middleware:p,...m},w=cf(f,E);if(w.length>0){if(w.some(S=>n.has(S))){if(!g)throw new Error(`Duplicate middleware name '${Vd(f,E)}'`);for(let S of w){let P=t.findIndex(q=>q.name===S||q.aliases?.some(M=>M===S));if(P===-1)continue;let Q=t[P];if(Q.step!==x.step||x.priority!==Q.priority)throw new Error(`"${Vd(Q.name,Q.aliases)}" middleware with ${Q.priority} priority in ${Q.step} step cannot be overridden by "${Vd(f,E)}" middleware with ${x.priority} priority in ${x.step} step.`);t.splice(P,1)}}for(let S of w)n.add(S)}t.push(x)},"add"),addRelativeTo:i((p,m)=>{let{name:f,override:g,aliases:E}=m,x={middleware:p,...m},w=cf(f,E);if(w.length>0){if(w.some(S=>n.has(S))){if(!g)throw new Error(`Duplicate middleware name '${Vd(f,E)}'`);for(let S of w){let P=e.findIndex(q=>q.name===S||q.aliases?.some(M=>M===S));if(P===-1)continue;let Q=e[P];if(Q.toMiddleware!==x.toMiddleware||Q.relation!==x.relation)throw new Error(`"${Vd(Q.name,Q.aliases)}" middleware ${Q.relation} "${Q.toMiddleware}" middleware cannot be overridden by "${Vd(f,E)}" middleware ${x.relation} "${x.toMiddleware}" middleware.`);e.splice(P,1)}}for(let S of w)n.add(S)}e.push(x)},"addRelativeTo"),clone:i(()=>c(Yd()),"clone"),use:i(p=>{p.applyToStack(d)},"use"),remove:i(p=>typeof p=="string"?o(p):a(p),"remove"),removeByTag:i(p=>{let m=!1,f=i(g=>{let{tags:E,name:x,aliases:w}=g;if(E&&E.includes(p)){let S=cf(x,w);for(let P of S)n.delete(P);return m=!0,!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByTag"),concat:i(p=>{let m=c(Yd());return m.use(p),m.identifyOnResolve(r||m.identifyOnResolve()||(p.identifyOnResolve?.()??!1)),m},"concat"),applyToStack:c,identify:i(()=>u(!0).map(p=>{let m=p.step??p.relation+" "+p.toMiddleware;return Vd(p.name,p.aliases)+" - "+m}),"identify"),identifyOnResolve(p){return typeof p=="boolean"&&(r=p),r},resolve:i((p,m)=>{for(let f of u().map(g=>g.middleware).reverse())p=f(p,m);return r&&console.log(d.identify()),p},"resolve")};return d},"constructStack"),yxe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Exe={high:3,normal:2,low:1}});var Ca=b(Ft=>{"use strict";Ft.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Ft.HttpAuthLocation||(Ft.HttpAuthLocation={}));Ft.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Ft.HttpApiKeyAuthLocation||(Ft.HttpApiKeyAuthLocation={}));Ft.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(Ft.EndpointURLScheme||(Ft.EndpointURLScheme={}));Ft.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Ft.AlgorithmId||(Ft.AlgorithmId={}));var vgt=i(t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:i(()=>Ft.AlgorithmId.SHA256,"algorithmId"),checksumConstructor:i(()=>t.sha256,"checksumConstructor")}),t.md5!=null&&e.push({algorithmId:i(()=>Ft.AlgorithmId.MD5,"algorithmId"),checksumConstructor:i(()=>t.md5,"checksumConstructor")}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),_gt=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},"resolveChecksumRuntimeConfig"),Qgt=i(t=>vgt(t),"getDefaultClientConfiguration"),Dgt=i(t=>_gt(t),"resolveDefaultRuntimeConfig");Ft.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Ft.FieldPosition||(Ft.FieldPosition={}));var kgt="__smithy_context";Ft.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(Ft.IniSectionType||(Ft.IniSectionType={}));Ft.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(Ft.RequestHandlerProtocol||(Ft.RequestHandlerProtocol={}));Ft.SMITHY_CONTEXT_KEY=kgt;Ft.getDefaultClientConfiguration=Qgt;Ft.resolveDefaultRuntimeConfig=Dgt});var X4,fr,Cxe=I(()=>{X4=D(Ca()),fr=i(t=>t[X4.SMITHY_CONTEXT_KEY]||(t[X4.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});var Ut,Ixe=I(()=>{Ut=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});var xxe,wxe=I(()=>{xxe=i(t=>()=>{throw new Error(t)},"invalidFunction")});var bxe,Sxe=I(()=>{bxe=i(t=>()=>Promise.reject(t),"invalidProvider")});var Dg,Z4=I(()=>{Dg=i(()=>{let t=new WeakSet;return(e,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r}},"getCircularReplacer")});var Bxe,Rxe=I(()=>{Bxe=i(t=>new Promise(e=>setTimeout(e,t*1e3)),"sleep")});var ZP,zo,Nxe,ev=I(()=>{Z4();ZP={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(zo||(zo={}));Nxe=i(t=>{if(t.state===zo.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},Dg())}`);throw e.name="AbortError",e}else if(t.state===zo.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},Dg())}`);throw e.name="TimeoutError",e}else if(t.state!==zo.SUCCESS)throw new Error(`${JSON.stringify(t,Dg())}`);return t},"checkExceptions")});var Txe,Lgt,Ogt,Mgt,Fgt,Pxe=I(()=>{Z4();Rxe();ev();Txe=i(async({minDelay:t,maxDelay:e,maxWaitTime:r,abortController:n,client:s,abortSignal:o},a,c)=>{let l={},[u,d]=[t*1e3,e*1e3],p=0,m=Date.now()+r*1e3,f=Date.now()+6e4,g=!1;for(;;){if(p>0){let w=Mgt(u,d,p,m);if(n?.signal?.aborted||o?.aborted){let S="AbortController signal aborted.";return l[S]|=0,l[S]+=1,{state:zo.ABORTED,observedResponses:l}}if(Date.now()+w>m)return{state:zo.TIMEOUT,observedResponses:l};await Bxe(w/1e3)}let{state:E,reason:x}=await c(s,a);if(x){let w=Ogt(x);l[w]|=0,l[w]+=1}if(E!==zo.RETRY)return{state:E,reason:x,final:x,observedResponses:l};p+=1,!g&&Date.now()>=f&&(Lgt(l,s),g=!0)}},"runPolling"),Lgt=i((t={},e)=>{let r=Object.keys(t),n=0,s=0;for(let c of r){let l=t[c]|0;n=Math.max(l,n),c.startsWith("403:")&&(s+=l)}let o=e?.config?.logger,a=typeof o?.warn=="function"&&!o.constructor?.name?.includes?.("NoOpLogger")?o:console;(s>=3||r[r.length-1]?.startsWith("403:"))&&a.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},"checkWarn403"),Ogt=i(t=>{let e=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;return t?.$responseBodyText?`${e?e+": ":""}Deserialization error for body: ${t.$responseBodyText}`:e?t?.$response||t?.message?`${e??"Unknown"}: ${t?.message}`:`${e}: OK`:String(t?.message??JSON.stringify(t,Dg())??"Unknown")},"createMessageFromResponse"),Mgt=i((t,e,r,n)=>{let s=Math.log(e/t)/Math.log(2)+1;if(r>s)return e;let o=t*2**(r-1),a=Math.min(o,e),c=Fgt(t,a);if(Date.now()+c>n){let l=n-Date.now();return Math.max(0,l-500)}return c},"exponentialBackoffWithJitter"),Fgt=i((t,e)=>t+Math.random()*(e-t),"randomInRange")});var vxe,_xe=I(()=>{vxe=i(t=>{if(t.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(t.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(t.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(t.maxWaitTime<=t.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`);if(t.maxDelay{Pxe();_xe();ev();Qxe=i(t=>{let e,r=new Promise(n=>{e=i(()=>n({state:zo.ABORTED}),"onAbort"),typeof t.addEventListener=="function"?t.addEventListener("abort",e):t.onabort=e});return{clearListener(){typeof t.removeEventListener=="function"&&t.removeEventListener("abort",e)},aborted:r}},"abortTimeout"),Dxe=i(async(t,e,r)=>{let n={...ZP,...t};vxe(n);let s=[Txe(n,e,r)],o=[];if(t.abortSignal){let{aborted:a,clearListener:c}=Qxe(t.abortSignal);o.push(c),s.push(a)}if(t.abortController?.signal){let{aborted:a,clearListener:c}=Qxe(t.abortController.signal);o.push(c),s.push(a)}return Promise.race(s).then(a=>{for(let c of o)c();return a})},"createWaiter")});var Kn,Lxe=I(()=>{XP();Kn=class{static{i(this,"Client")}config;middlewareStack=Yd();initConfig;handlers;constructor(e){this.config=e;let{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){let s=typeof r!="function"?r:void 0,o=typeof r=="function"?r:n,a=s===void 0&&this.config.cacheMiddleware===!0,c;if(a){this.handlers||(this.handlers=new WeakMap);let l=this.handlers;l.has(e.constructor)?c=l.get(e.constructor):(c=e.resolveMiddleware(this.middlewareStack,this.config,s),l.set(e.constructor,c))}else delete this.handlers,c=e.resolveMiddleware(this.middlewareStack,this.config,s);if(o)c(e).then(l=>o(null,l.output),l=>o(l)).catch(()=>{});else return c(e).then(l=>l.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var Ia,eY=I(()=>{Ia=i(t=>typeof t=="function"?t():t,"deref")});var tv,tY=I(()=>{tv=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var xa,Wd,jd=I(()=>{tY();xa=i((t,e=0,r=t.byteLength-e)=>{if(!tv(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),Wd=i((t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)},"fromString")});var Ugt,$r,Oxe=I(()=>{jd();Ugt=/^[A-Za-z0-9+/]*={0,2}$/,$r=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Ugt.exec(t))throw new TypeError("Invalid base64 string.");let e=Wd(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var Gr,rv=I(()=>{jd();Gr=i(t=>{let e=Wd(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var Ar,rY=I(()=>{jd();rv();Ar=i(t=>{let e;if(typeof t=="string"?e=Gr(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return xa(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function Mxe(t,e,r,n){return class nv extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?nv.mutate(n(o)):nv.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,nv.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var Fxe=I(()=>{i(Mxe,"bindUint8ArrayBlobAdapter")});var hr,Uxe=I(()=>{jd();hr=i(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return xa(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function qxe(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Xn[e[0]]+Xn[e[1]]+Xn[e[2]]+Xn[e[3]]+"-"+Xn[e[4]]+Xn[e[5]]+"-"+Xn[e[6]]+Xn[e[7]]+"-"+Xn[e[8]]+Xn[e[9]]+"-"+Xn[e[10]]+Xn[e[11]]+Xn[e[12]]+Xn[e[13]]+Xn[e[14]]+Xn[e[15]]}}var Xn,$xe=I(()=>{Xn=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(qxe,"bindV4")});var Gxe,Hxe=I(()=>{Gxe=i((t,e,r=n=>n)=>t,"copyDocumentWithTransform")});var zxe,Vxe,kg,qgt,xx,Lg,Yxe,sv,ov,iv,nY,$gt,Wxe,sY,jxe,cv,wx,Jxe,lv,Ggt,Mg,uv,Kxe,Xxe,Zxe,ewe,oY,twe,rwe,Jd,dv,av,Og,iY=I(()=>{zxe=i(t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},"parseBoolean"),Vxe=i(t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Og.warn(av(`Expected boolean, got ${typeof t}: ${t}`)),t===0)return!1;if(t===1)return!0}if(typeof t=="string"){let e=t.toLowerCase();if((e==="false"||e==="true")&&Og.warn(av(`Expected boolean, got ${typeof t}: ${t}`)),e==="false")return!1;if(e==="true")return!0}if(typeof t=="boolean")return t;throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)}},"expectBoolean"),kg=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Og.warn(av(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),qgt=Math.ceil(2**127*(2-2**-23)),xx=i(t=>{let e=kg(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>qgt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),Lg=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),Yxe=Lg,sv=i(t=>nY(t,32),"expectInt32"),ov=i(t=>nY(t,16),"expectShort"),iv=i(t=>nY(t,8),"expectByte"),nY=i((t,e)=>{let r=Lg(t);if(r!==void 0&&$gt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),$gt=i((t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},"castInt"),Wxe=i((t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},"expectNonNull"),sY=i(t=>{if(t==null)return;if(typeof t=="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},"expectObject"),jxe=i(t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Og.warn(av(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},"expectString"),cv=i(t=>{if(t==null)return;let e=sY(t),r=[];for(let n in e)e[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},"expectUnion"),wx=i(t=>kg(typeof t=="string"?Mg(t):t),"strictParseDouble"),Jxe=wx,lv=i(t=>xx(typeof t=="string"?Mg(t):t),"strictParseFloat32"),Ggt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Mg=i(t=>{let e=t.match(Ggt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),uv=i(t=>typeof t=="string"?ewe(t):kg(t),"limitedParseDouble"),Kxe=uv,Xxe=uv,Zxe=i(t=>typeof t=="string"?ewe(t):xx(t),"limitedParseFloat32"),ewe=i(t=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${t}`)}},"parseFloatString"),oY=i(t=>Lg(typeof t=="string"?Mg(t):t),"strictParseLong"),twe=oY,rwe=i(t=>sv(typeof t=="string"?Mg(t):t),"strictParseInt32"),Jd=i(t=>ov(typeof t=="string"?Mg(t):t),"strictParseShort"),dv=i(t=>iv(typeof t=="string"?Mg(t):t),"strictParseByte"),av=i(t=>String(new TypeError(t).stack||t).split(` +More information can be found at: https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var Lgt,Ogt,Sxe,Bxe=I(()=>{Lgt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),Ogt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Sxe=i(t=>({applyToStack:i(e=>{e.add(Lgt(),Ogt)},"applyToStack")}),"getLongPollPlugin")});function zd(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var Rxe=I(()=>{i(zd,"setCredentialFeature")});var Nxe,sY,Txe=I(()=>{Nxe=require("node:stream"),sY=i(t=>t?.body instanceof Nxe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var df,Vd,Yd,Pxe,vxe,rv=I(()=>{df=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),Vd=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Yd=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((m,f)=>Pxe[f.step]-Pxe[m.step]||vxe[f.priority||"normal"]-vxe[m.priority||"normal"]),"sort"),o=i(p=>{let m=!1,f=i(g=>{let E=df(g.name,g.aliases);if(E.includes(p)){m=!0;for(let x of E)n.delete(x);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByName"),a=i(p=>{let m=!1,f=i(g=>{if(g.middleware===p){m=!0;for(let E of df(g.name,g.aliases))n.delete(E);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByReference"),c=i(p=>(t.forEach(m=>{p.add(m.middleware,{...m})}),e.forEach(m=>{p.addRelativeTo(m.middleware,{...m})}),p.identifyOnResolve?.(d.identifyOnResolve()),p),"cloneTo"),l=i(p=>{let m=[];return p.before.forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m.push(p),p.after.reverse().forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m},"expandRelativeMiddlewareList"),u=i((p=!1)=>{let m=[],f=[],g={};return t.forEach(x=>{let w={...x,before:[],after:[]};for(let S of df(w.name,w.aliases))g[S]=w;m.push(w)}),e.forEach(x=>{let w={...x,before:[],after:[]};for(let S of df(w.name,w.aliases))g[S]=w;f.push(w)}),f.forEach(x=>{if(x.toMiddleware){let w=g[x.toMiddleware];if(w===void 0){if(p)return;throw new Error(`${x.toMiddleware} is not found when adding ${Vd(x.name,x.aliases)} middleware ${x.relation} ${x.toMiddleware}`)}x.relation==="after"&&w.after.push(x),x.relation==="before"&&w.before.push(x)}}),s(m).map(l).reduce((x,w)=>(x.push(...w),x),[])},"getMiddlewareList"),d={add:i((p,m={})=>{let{name:f,override:g,aliases:E}=m,x={step:"initialize",priority:"normal",middleware:p,...m},w=df(f,E);if(w.length>0){if(w.some(S=>n.has(S))){if(!g)throw new Error(`Duplicate middleware name '${Vd(f,E)}'`);for(let S of w){let P=t.findIndex(q=>q.name===S||q.aliases?.some(M=>M===S));if(P===-1)continue;let Q=t[P];if(Q.step!==x.step||x.priority!==Q.priority)throw new Error(`"${Vd(Q.name,Q.aliases)}" middleware with ${Q.priority} priority in ${Q.step} step cannot be overridden by "${Vd(f,E)}" middleware with ${x.priority} priority in ${x.step} step.`);t.splice(P,1)}}for(let S of w)n.add(S)}t.push(x)},"add"),addRelativeTo:i((p,m)=>{let{name:f,override:g,aliases:E}=m,x={middleware:p,...m},w=df(f,E);if(w.length>0){if(w.some(S=>n.has(S))){if(!g)throw new Error(`Duplicate middleware name '${Vd(f,E)}'`);for(let S of w){let P=e.findIndex(q=>q.name===S||q.aliases?.some(M=>M===S));if(P===-1)continue;let Q=e[P];if(Q.toMiddleware!==x.toMiddleware||Q.relation!==x.relation)throw new Error(`"${Vd(Q.name,Q.aliases)}" middleware ${Q.relation} "${Q.toMiddleware}" middleware cannot be overridden by "${Vd(f,E)}" middleware ${x.relation} "${x.toMiddleware}" middleware.`);e.splice(P,1)}}for(let S of w)n.add(S)}e.push(x)},"addRelativeTo"),clone:i(()=>c(Yd()),"clone"),use:i(p=>{p.applyToStack(d)},"use"),remove:i(p=>typeof p=="string"?o(p):a(p),"remove"),removeByTag:i(p=>{let m=!1,f=i(g=>{let{tags:E,name:x,aliases:w}=g;if(E&&E.includes(p)){let S=df(x,w);for(let P of S)n.delete(P);return m=!0,!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByTag"),concat:i(p=>{let m=c(Yd());return m.use(p),m.identifyOnResolve(r||m.identifyOnResolve()||(p.identifyOnResolve?.()??!1)),m},"concat"),applyToStack:c,identify:i(()=>u(!0).map(p=>{let m=p.step??p.relation+" "+p.toMiddleware;return Vd(p.name,p.aliases)+" - "+m}),"identify"),identifyOnResolve(p){return typeof p=="boolean"&&(r=p),r},resolve:i((p,m)=>{for(let f of u().map(g=>g.middleware).reverse())p=f(p,m);return r&&console.log(d.identify()),p},"resolve")};return d},"constructStack"),Pxe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},vxe={high:3,normal:2,low:1}});var Ia=b(Ft=>{"use strict";Ft.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Ft.HttpAuthLocation||(Ft.HttpAuthLocation={}));Ft.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Ft.HttpApiKeyAuthLocation||(Ft.HttpApiKeyAuthLocation={}));Ft.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(Ft.EndpointURLScheme||(Ft.EndpointURLScheme={}));Ft.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Ft.AlgorithmId||(Ft.AlgorithmId={}));var Mgt=i(t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:i(()=>Ft.AlgorithmId.SHA256,"algorithmId"),checksumConstructor:i(()=>t.sha256,"checksumConstructor")}),t.md5!=null&&e.push({algorithmId:i(()=>Ft.AlgorithmId.MD5,"algorithmId"),checksumConstructor:i(()=>t.md5,"checksumConstructor")}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),Fgt=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},"resolveChecksumRuntimeConfig"),Ugt=i(t=>Mgt(t),"getDefaultClientConfiguration"),qgt=i(t=>Fgt(t),"resolveDefaultRuntimeConfig");Ft.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Ft.FieldPosition||(Ft.FieldPosition={}));var $gt="__smithy_context";Ft.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(Ft.IniSectionType||(Ft.IniSectionType={}));Ft.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(Ft.RequestHandlerProtocol||(Ft.RequestHandlerProtocol={}));Ft.SMITHY_CONTEXT_KEY=$gt;Ft.getDefaultClientConfiguration=Ugt;Ft.resolveDefaultRuntimeConfig=qgt});var oY,Ar,_xe=I(()=>{oY=D(Ia()),Ar=i(t=>t[oY.SMITHY_CONTEXT_KEY]||(t[oY.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});var Ut,Qxe=I(()=>{Ut=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});var Dxe,kxe=I(()=>{Dxe=i(t=>()=>{throw new Error(t)},"invalidFunction")});var Lxe,Oxe=I(()=>{Lxe=i(t=>()=>Promise.reject(t),"invalidProvider")});var Og,iY=I(()=>{Og=i(()=>{let t=new WeakSet;return(e,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r}},"getCircularReplacer")});var Mxe,Fxe=I(()=>{Mxe=i(t=>new Promise(e=>setTimeout(e,t*1e3)),"sleep")});var nv,Yo,Uxe,sv=I(()=>{iY();nv={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(Yo||(Yo={}));Uxe=i(t=>{if(t.state===Yo.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},Og())}`);throw e.name="AbortError",e}else if(t.state===Yo.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},Og())}`);throw e.name="TimeoutError",e}else if(t.state!==Yo.SUCCESS)throw new Error(`${JSON.stringify(t,Og())}`);return t},"checkExceptions")});var qxe,Ggt,Hgt,zgt,Vgt,$xe=I(()=>{iY();Fxe();sv();qxe=i(async({minDelay:t,maxDelay:e,maxWaitTime:r,abortController:n,client:s,abortSignal:o},a,c)=>{let l={},[u,d]=[t*1e3,e*1e3],p=0,m=Date.now()+r*1e3,f=Date.now()+6e4,g=!1;for(;;){if(p>0){let w=zgt(u,d,p,m);if(n?.signal?.aborted||o?.aborted){let S="AbortController signal aborted.";return l[S]|=0,l[S]+=1,{state:Yo.ABORTED,observedResponses:l}}if(Date.now()+w>m)return{state:Yo.TIMEOUT,observedResponses:l};await Mxe(w/1e3)}let{state:E,reason:x}=await c(s,a);if(x){let w=Hgt(x);l[w]|=0,l[w]+=1}if(E!==Yo.RETRY)return{state:E,reason:x,final:x,observedResponses:l};p+=1,!g&&Date.now()>=f&&(Ggt(l,s),g=!0)}},"runPolling"),Ggt=i((t={},e)=>{let r=Object.keys(t),n=0,s=0;for(let c of r){let l=t[c]|0;n=Math.max(l,n),c.startsWith("403:")&&(s+=l)}let o=e?.config?.logger,a=typeof o?.warn=="function"&&!o.constructor?.name?.includes?.("NoOpLogger")?o:console;(s>=3||r[r.length-1]?.startsWith("403:"))&&a.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},"checkWarn403"),Hgt=i(t=>{let e=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;return t?.$responseBodyText?`${e?e+": ":""}Deserialization error for body: ${t.$responseBodyText}`:e?t?.$response||t?.message?`${e??"Unknown"}: ${t?.message}`:`${e}: OK`:String(t?.message??JSON.stringify(t,Og())??"Unknown")},"createMessageFromResponse"),zgt=i((t,e,r,n)=>{let s=Math.log(e/t)/Math.log(2)+1;if(r>s)return e;let o=t*2**(r-1),a=Math.min(o,e),c=Vgt(t,a);if(Date.now()+c>n){let l=n-Date.now();return Math.max(0,l-500)}return c},"exponentialBackoffWithJitter"),Vgt=i((t,e)=>t+Math.random()*(e-t),"randomInRange")});var Gxe,Hxe=I(()=>{Gxe=i(t=>{if(t.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(t.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(t.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(t.maxWaitTime<=t.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`);if(t.maxDelay{$xe();Hxe();sv();zxe=i(t=>{let e,r=new Promise(n=>{e=i(()=>n({state:Yo.ABORTED}),"onAbort"),typeof t.addEventListener=="function"?t.addEventListener("abort",e):t.onabort=e});return{clearListener(){typeof t.removeEventListener=="function"&&t.removeEventListener("abort",e)},aborted:r}},"abortTimeout"),Vxe=i(async(t,e,r)=>{let n={...nv,...t};Gxe(n);let s=[qxe(n,e,r)],o=[];if(t.abortSignal){let{aborted:a,clearListener:c}=zxe(t.abortSignal);o.push(c),s.push(a)}if(t.abortController?.signal){let{aborted:a,clearListener:c}=zxe(t.abortController.signal);o.push(c),s.push(a)}return Promise.race(s).then(a=>{for(let c of o)c();return a})},"createWaiter")});var Kn,Wxe=I(()=>{rv();Kn=class{static{i(this,"Client")}config;middlewareStack=Yd();initConfig;handlers;constructor(e){this.config=e;let{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){let s=typeof r!="function"?r:void 0,o=typeof r=="function"?r:n,a=s===void 0&&this.config.cacheMiddleware===!0,c;if(a){this.handlers||(this.handlers=new WeakMap);let l=this.handlers;l.has(e.constructor)?c=l.get(e.constructor):(c=e.resolveMiddleware(this.middlewareStack,this.config,s),l.set(e.constructor,c))}else delete this.handlers,c=e.resolveMiddleware(this.middlewareStack,this.config,s);if(o)c(e).then(l=>o(null,l.output),l=>o(l)).catch(()=>{});else return c(e).then(l=>l.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var xa,aY=I(()=>{xa=i(t=>typeof t=="function"?t():t,"deref")});var ov,cY=I(()=>{ov=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var wa,Wd,jd=I(()=>{cY();wa=i((t,e=0,r=t.byteLength-e)=>{if(!ov(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),Wd=i((t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)},"fromString")});var Ygt,Gr,jxe=I(()=>{jd();Ygt=/^[A-Za-z0-9+/]*={0,2}$/,Gr=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Ygt.exec(t))throw new TypeError("Invalid base64 string.");let e=Wd(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var Hr,iv=I(()=>{jd();Hr=i(t=>{let e=Wd(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var hr,lY=I(()=>{jd();iv();hr=i(t=>{let e;if(typeof t=="string"?e=Hr(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return wa(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function Jxe(t,e,r,n){return class av extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?av.mutate(n(o)):av.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,av.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var Kxe=I(()=>{i(Jxe,"bindUint8ArrayBlobAdapter")});var gr,Xxe=I(()=>{jd();gr=i(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return wa(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function Zxe(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Xn[e[0]]+Xn[e[1]]+Xn[e[2]]+Xn[e[3]]+"-"+Xn[e[4]]+Xn[e[5]]+"-"+Xn[e[6]]+Xn[e[7]]+"-"+Xn[e[8]]+Xn[e[9]]+"-"+Xn[e[10]]+Xn[e[11]]+Xn[e[12]]+Xn[e[13]]+Xn[e[14]]+Xn[e[15]]}}var Xn,ewe=I(()=>{Xn=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(Zxe,"bindV4")});var twe,rwe=I(()=>{twe=i((t,e,r=n=>n)=>t,"copyDocumentWithTransform")});var nwe,swe,Mg,Wgt,Bx,Fg,owe,cv,lv,uv,uY,jgt,iwe,dY,awe,pv,Rx,cwe,mv,Jgt,qg,fv,lwe,uwe,dwe,pwe,pY,mwe,fwe,Jd,Av,dv,Ug,mY=I(()=>{nwe=i(t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},"parseBoolean"),swe=i(t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Ug.warn(dv(`Expected boolean, got ${typeof t}: ${t}`)),t===0)return!1;if(t===1)return!0}if(typeof t=="string"){let e=t.toLowerCase();if((e==="false"||e==="true")&&Ug.warn(dv(`Expected boolean, got ${typeof t}: ${t}`)),e==="false")return!1;if(e==="true")return!0}if(typeof t=="boolean")return t;throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)}},"expectBoolean"),Mg=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Ug.warn(dv(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),Wgt=Math.ceil(2**127*(2-2**-23)),Bx=i(t=>{let e=Mg(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>Wgt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),Fg=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),owe=Fg,cv=i(t=>uY(t,32),"expectInt32"),lv=i(t=>uY(t,16),"expectShort"),uv=i(t=>uY(t,8),"expectByte"),uY=i((t,e)=>{let r=Fg(t);if(r!==void 0&&jgt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),jgt=i((t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},"castInt"),iwe=i((t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},"expectNonNull"),dY=i(t=>{if(t==null)return;if(typeof t=="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},"expectObject"),awe=i(t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Ug.warn(dv(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},"expectString"),pv=i(t=>{if(t==null)return;let e=dY(t),r=[];for(let n in e)e[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},"expectUnion"),Rx=i(t=>Mg(typeof t=="string"?qg(t):t),"strictParseDouble"),cwe=Rx,mv=i(t=>Bx(typeof t=="string"?qg(t):t),"strictParseFloat32"),Jgt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,qg=i(t=>{let e=t.match(Jgt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),fv=i(t=>typeof t=="string"?pwe(t):Mg(t),"limitedParseDouble"),lwe=fv,uwe=fv,dwe=i(t=>typeof t=="string"?pwe(t):Bx(t),"limitedParseFloat32"),pwe=i(t=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${t}`)}},"parseFloatString"),pY=i(t=>Fg(typeof t=="string"?qg(t):t),"strictParseLong"),mwe=pY,fwe=i(t=>cv(typeof t=="string"?qg(t):t),"strictParseInt32"),Jd=i(t=>lv(typeof t=="string"?qg(t):t),"strictParseShort"),Av=i(t=>uv(typeof t=="string"?qg(t):t),"strictParseByte"),dv=i(t=>String(new TypeError(t).stack||t).split(` `).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(` -`),"stackTraceWarning"),Og={warn:console.warn}});function wa(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,p=c<10?`0${c}`:`${c}`;return`${Hgt[n]}, ${l} ${cY[r]} ${e} ${u}:${d}:${p} GMT`}var Hgt,cY,zgt,nwe,Vgt,pv,Ygt,Wgt,jgt,Ug,mv,bx,Jgt,Kgt,Xgt,aY,Zgt,eyt,tyt,$c,ryt,nyt,Fg,swe=I(()=>{iY();Hgt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],cY=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(wa,"dateToUtcString");zgt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),nwe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=zgt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=Jd(Fg(n)),p=$c(s,"month",1,12),m=$c(o,"day",1,31);return bx(d,p,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),Vgt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),pv=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Vgt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u,d]=e,p=Jd(Fg(n)),m=$c(s,"month",1,12),f=$c(o,"day",1,31),g=bx(p,m,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&g.setTime(g.getTime()-nyt(d)),g},"parseRfc3339DateTimeWithOffset"),Ygt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Wgt=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),jgt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Ug=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=Ygt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return bx(Jd(Fg(o)),aY(s),$c(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=Wgt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Xgt(bx(Jgt(o),aY(s),$c(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=jgt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return bx(Jd(Fg(u)),aY(n),$c(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),mv=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=wx(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},"parseEpochTimestamp"),bx=i((t,e,r,n)=>{let s=e-1;return eyt(t,s,r),new Date(Date.UTC(t,s,r,$c(n.hours,"hour",0,23),$c(n.minutes,"minute",0,59),$c(n.seconds,"seconds",0,60),ryt(n.fractionalMilliseconds)))},"buildDate"),Jgt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Jd(Fg(t));return rt.getTime()-new Date().getTime()>Kgt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),aY=i(t=>{let e=cY.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),Zgt=[31,28,31,30,31,30,31,31,30,31,30,31],eyt=i((t,e,r)=>{let n=Zgt[e];if(e===1&&tyt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${cY[e]} in ${t}: ${r}`)},"validateDayOfMonth"),tyt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),$c=i((t,e,r,n)=>{let s=dv(Fg(t));if(sn)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),ryt=i(t=>t==null?0:lv("0."+t)*1e3,"parseMilliseconds"),nyt=i(t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),s=Number(t.substring(4,6));return r*(n*60+s)*60*1e3},"parseOffsetToMilliseconds"),Fg=i(t=>{let e=0;for(;e{Zn=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");Zn.from=t=>t&&typeof t=="object"&&(t instanceof Zn||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?Zn(String(t)):Zn(JSON.stringify(t));Zn.fromObject=Zn.from});function fv(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var iwe=I(()=>{i(fv,"quoteHeader")});function gu(t,e,r){let n=Number(t);if(nr)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var lY,uY,dY,awe,cwe,syt,oyt,iyt,ayt,cyt,lf,Av,hv,lwe=I(()=>{lY="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",uY="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",dY="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",awe="(\\d?\\d)",cwe="(\\d{4})",syt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),oyt=new RegExp(`^${lY}, ${awe} ${uY} ${cwe} ${dY} GMT$`),iyt=new RegExp(`^${lY}, ${awe}-${uY}-(\\d\\d) ${dY} GMT$`),ayt=new RegExp(`^${lY} ${uY} ( [1-9]|\\d\\d) ${dY} ${cwe}$`),cyt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],lf=i(t=>{if(t==null)return;let e=NaN;if(typeof t=="number")e=t;else if(typeof t=="string"){if(!/^-?\d*\.?\d+$/.test(t))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else typeof t=="object"&&t.tag===1&&(e=t.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},"_parseEpochTimestamp"),Av=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=syt.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;gu(n,1,12),gu(s,1,31),gu(o,0,23),gu(a,0,59),gu(c,0,60);let d=new Date(Date.UTC(Number(r),Number(n)-1,Number(s),Number(o),Number(a),Number(c),Number(l)?Math.round(parseFloat(`0.${l}`)*1e3):0));if(d.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,p,m,f]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],g=p==="-"?1:-1;d.setTime(d.getTime()+g*(Number(m)*60*60*1e3+Number(f)*60*1e3))}return d},"_parseRfc3339DateTimeWithOffset"),hv=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,r,n,s,o,a,c,l;if((l=oyt.exec(t))?[,e,r,n,s,o,a,c]=l:(l=iyt.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=ayt.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),cyt.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);gu(e,1,31),gu(s,0,23),gu(o,0,59),gu(a,0,60);let d=new Date(u);return d.setUTCFullYear(Number(n)),d}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)},"_parseRfc7231DateTime");i(gu,"range")});function gv(t,e,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let s=[],o="";for(let a=0;a{i(gv,"splitEvery")});var qg,dwe=I(()=>{qg=i(t=>{let e=t.length,r=[],n=!1,s,o=0;for(let a=0;a{a=a.trim();let c=a.length;return c<2?a:(a[0]==='"'&&a[c-1]==='"'&&(a=a.slice(1,c-1)),a.replace(/\\"/g,'"'))})},"splitHeader")});function yv(t){return new qt(String(t),"bigDecimal")}var pwe,qt,mwe=I(()=>{pwe=/^-?\d*(\.\d+)?$/,qt=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!pwe.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;let r=e;return t.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&pwe.test(r.string)}};i(yv,"nv")});function Ev(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r{fwe={},pY={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),fwe[t]=e,pY[e]=t}i(Ev,"fromHex");i(Di,"toHex")});var $g,Gc,Awe=I(()=>{$g=require("node:fs"),Gc=i(t=>{if(!t)return 0;if(typeof t=="string")return Buffer.byteLength(t);if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size;if(typeof t.start=="number"&&typeof t.end=="number")return t.end+1-t.start;if(t instanceof $g.ReadStream){if(t.path!=null)return(0,$g.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,$g.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)},"calculateBodyLength")});var Cv,fY=I(()=>{rv();Cv=i(t=>typeof t=="string"?Gr(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array")});var Iv,AY,hY=I(()=>{Qe();Iv=i((t,e)=>(r,n)=>async s=>{let{response:o}=await r(s);try{let a=await e(o,t);return{response:o,output:a}}catch(a){if(Object.defineProperty(a,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in a)){let c="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{a.message+=` - `+c}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(c):n.logger?.warn?.(c)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(es.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:AY(/^x-[\w-]+-request-?id$/,u),extendedRequestId:AY(/^x-[\w-]+-id-2$/,u),cfId:AY(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),AY=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var Vo,Sx=I(()=>{Vo=class t extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(e,r=!0){let n,s=!0;typeof r=="boolean"?(n=void 0,s=r):r!=null&&typeof r=="object"&&(n=r.logger,s=r.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var Kd,xv=I(()=>{Sx();Kd=class t extends Vo{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var wv,hwe=I(()=>{Sx();wv=class t extends Vo{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var bv,gY=I(()=>{Sx();bv=i((...t)=>async()=>{if(t.length===0)throw new Vo("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e},"chain")});var Sv,yY=I(()=>{Sv=i(t=>()=>Promise.resolve(t),"fromValue")});var Gg,Bv=I(()=>{Gg=i((t,e,r)=>{let n,s,o,a=!1,c=i(async()=>{s||(s=t());try{n=await s,o=!0,a=!1}finally{s=void 0}return n},"coalesceProvider");return e===void 0?async l=>((!o||l?.forceRefresh)&&(n=await c()),n):async l=>((!o||l?.forceRefresh)&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(e(n)&&await c(),n))},"memoize")});var io,Rv=I(()=>{io=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}},"booleanSelector")});var gwe,ywe=I(()=>{gwe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n},"numberSelector")});var ts,Nv=I(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(ts||(ts={}))});var Ewe,Cwe,EY,lyt,Hc,Hg=I(()=>{Ewe=require("node:os"),Cwe=require("node:path"),EY={},lyt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),Hc=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${Cwe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=lyt();return EY[s]||(EY[s]=(0,Ewe.homedir)()),EY[s]},"getHomeDir")});var CY,IY,Tv,xY=I(()=>{CY="AWS_PROFILE",IY="default",Tv=i(t=>t.profile||process.env[CY]||IY,"getProfileName")});var Iwe,xwe,Pv,wY=I(()=>{Iwe=require("node:crypto"),xwe=require("node:path");Hg();Pv=i(t=>{let r=(0,Iwe.createHash)("sha1").update(t).digest("hex");return(0,xwe.join)(Hc(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var wwe,Bx,bwe,bY=I(()=>{wwe=require("node:fs/promises");wY();Bx={},bwe=i(async t=>{if(Bx[t])return Bx[t];let e=Pv(t),r=await(0,wwe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var zc,Swe=I(()=>{zc="."});var SY,Bwe,Rwe=I(()=>{SY=D(Ca()),Bwe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(SY.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===SY.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var Nwe,uyt,vv,BY=I(()=>{Nwe=require("node:path");Hg();uyt="AWS_CONFIG_FILE",vv=i(()=>process.env[uyt]||(0,Nwe.join)(Hc(),".aws","config"),"getConfigFilepath")});var Twe,dyt,Pwe,vwe=I(()=>{Twe=require("node:path");Hg();dyt="AWS_SHARED_CREDENTIALS_FILE",Pwe=i(()=>process.env[dyt]||(0,Twe.join)(Hc(),".aws","credentials"),"getCredentialsFilepath")});var _we,pyt,myt,Rx,RY=I(()=>{_we=D(Ca()),pyt=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,myt=["__proto__","profile __proto__"],Rx=i(t=>{let e={},r,n;for(let s of t.split(/\r?\n/)){let o=s.split(/(^|\s)[;#]/)[0].trim();if(o[0]==="["&&o[o.length-1]==="]"){r=void 0,n=void 0;let c=o.substring(1,o.length-1),l=pyt.exec(c);if(l){let[,u,,d]=l;Object.values(_we.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(myt.includes(c))throw new Error(`Found invalid profile name "${c}"`)}else if(r){let c=o.indexOf("=");if(![0,-1].includes(c)){let[l,u]=[o.substring(0,c).trim(),o.substring(c+1).trim()];if(u==="")n=l;else{n&&s.trimStart()===s&&(n=void 0),e[r]=e[r]||{};let d=n?[n,l].join("."):l;e[r][d]=u}}}}return e},"parseIni")});var Qwe,NY,Nx,uf,Tx=I(()=>{Qwe=require("node:fs/promises"),NY={},Nx={},uf=i((t,e)=>Nx[t]!==void 0?Nx[t]:((!NY[t]||e?.ignoreCache)&&(NY[t]=(0,Qwe.readFile)(t,"utf8")),NY[t]),"readFile")});var TY,Dwe,zg,_v=I(()=>{TY=require("node:path");Rwe();BY();vwe();Hg();RY();Tx();Dwe=i(()=>({}),"swallowError"),zg=i(async(t={})=>{let{filepath:e=Pwe(),configFilepath:r=vv()}=t,n=Hc(),s="~/",o=e;e.startsWith(s)&&(o=(0,TY.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,TY.join)(n,r.slice(2)));let c=await Promise.all([uf(a,{ignoreCache:t.ignoreCache}).then(Rx).then(Bwe).catch(Dwe),uf(o,{ignoreCache:t.ignoreCache}).then(Rx).catch(Dwe)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var kwe,Lwe,Owe=I(()=>{kwe=D(Ca()),Lwe=i(t=>Object.entries(t).filter(([e])=>e.startsWith(kwe.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var fyt,Mwe,Fwe=I(()=>{BY();Owe();RY();Tx();fyt=i(()=>({}),"swallowError"),Mwe=i(async(t={})=>uf(t.configFilepath??vv()).then(Rx).then(Lwe).catch(fyt),"loadSsoSessionData")});var Uwe,qwe=I(()=>{Uwe=i((...t)=>{let e={};for(let r of t)for(let[n,s]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],s):e[n]=s;return e},"mergeConfigFiles")});var $we,Gwe=I(()=>{_v();qwe();$we=i(async t=>{let e=await zg(t);return Uwe(e.configFile,e.credentialsFile)},"parseKnownFiles")});var Hwe,zwe=I(()=>{bY();Tx();Hwe={getFileRecord(){return Nx},interceptFile(t,e){Nx[t]=Promise.resolve(e)},getTokenRecord(){return Bx},interceptToken(t,e){Bx[t]=e}}});function Qv(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var PY=I(()=>{i(Qv,"getSelectorName")});var Vwe,Ywe=I(()=>{xv();PY();Vwe=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new Kd(r.message||`Not found in ENV: ${Qv(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var Wwe,jwe=I(()=>{xv();xY();_v();PY();Wwe=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=Tv(r),{configFile:s,credentialsFile:o}=await zg(r),a=o[n]||{},c=s[n]||{},l=e==="config"?{...a,...c}:{...c,...a};try{let d=t(l,e==="config"?s:o);if(d===void 0)throw new Error;return d}catch(u){throw new Kd(u.message||`Not found in config files w/ profile [${n}]: ${Qv(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var Ayt,Dv,vY=I(()=>{yY();Ayt=i(t=>typeof t=="function","isFunction"),Dv=i(t=>Ayt(t)?async()=>await t():Sv(t),"fromStatic")});var nt,_Y=I(()=>{gY();Bv();Ywe();jwe();vY();nt=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return Gg(bv(Vwe(t,{signingName:s,logger:o}),Wwe(e,n),Dv(r)))},"loadConfig")});var kv,Lv,Jwe,Vc,Kwe,Xwe=I(()=>{Rv();Nv();kv="AWS_USE_DUALSTACK_ENDPOINT",Lv="use_dualstack_endpoint",Jwe=!1,Vc={environmentVariableSelector:i(t=>io(t,kv,ts.ENV),"environmentVariableSelector"),configFileSelector:i(t=>io(t,Lv,ts.CONFIG),"configFileSelector"),default:!1},Kwe={environmentVariableSelector:i(t=>io(t,kv,ts.ENV),"environmentVariableSelector"),configFileSelector:i(t=>io(t,Lv,ts.CONFIG),"configFileSelector"),default:void 0}});var Ov,Mv,Zwe,Yc,e0e,t0e=I(()=>{Rv();Nv();Ov="AWS_USE_FIPS_ENDPOINT",Mv="use_fips_endpoint",Zwe=!1,Yc={environmentVariableSelector:i(t=>io(t,Ov,ts.ENV),"environmentVariableSelector"),configFileSelector:i(t=>io(t,Mv,ts.CONFIG),"configFileSelector"),default:!1},e0e={environmentVariableSelector:i(t=>io(t,Ov,ts.ENV),"environmentVariableSelector"),configFileSelector:i(t=>io(t,Mv,ts.CONFIG),"configFileSelector"),default:void 0}});var r0e,n0e=I(()=>{Ce();r0e=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:Ut(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:Ut(s??!1)})},"resolveCustomEndpointsConfig")});var s0e,o0e=I(()=>{s0e=i(async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let s=await t.useDualstackEndpoint(),o=await t.useFipsEndpoint(),{hostname:a}=await t.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:o})??{};if(!a)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${a}`)},"getEndpointFromRegion")});var i0e,a0e=I(()=>{Ce();o0e();i0e=i(t=>{let e=Ut(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?Ut(typeof r=="string"?s(r):r):()=>s0e({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var Vg,Yg,Dn,Ps,QY=I(()=>{Vg="AWS_REGION",Yg="region",Dn={environmentVariableSelector:i(t=>t[Vg],"environmentVariableSelector"),configFileSelector:i(t=>t[Yg],"configFileSelector"),default:i(()=>{throw new Error("Region is missing")},"default")},Ps={preferredFile:"credentials"}});var c0e,l0e,u0e=I(()=>{xt();c0e=new Set,l0e=i((t,e=yu)=>{if(!c0e.has(t)&&!e(t))if(t==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else c0e.add(t)},"checkRegion")});var Fv,DY=I(()=>{Fv=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var d0e,p0e=I(()=>{DY();d0e=i(t=>Fv(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var Yo,m0e=I(()=>{u0e();p0e();DY();Yo=i(t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:i(async()=>{let n=typeof e=="function"?await e():e,s=d0e(n);return l0e(s),s},"region"),useFipsEndpoint:i(async()=>{let n=typeof e=="string"?e:await e();return Fv(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig")});var kY,f0e=I(()=>{kY=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var A0e,h0e=I(()=>{A0e=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var g0e,y0e=I(()=>{g0e=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var E0e,C0e=I(()=>{E0e=i((t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let s=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),o=t.match(s);if(o)return o[0].slice(1,-1)}},"getResolvedSigningRegion")});var I0e,x0e=I(()=>{f0e();h0e();y0e();C0e();I0e=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=g0e(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=kY(s[c]?.variants,l),d=kY(o[a]?.variants,l),p=A0e(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let m=E0e(p,{signingRegion:s[c]?.signingRegion,regionRegex:o[a].regionRegex,useFipsEndpoint:e});return{partition:a,signingService:n,hostname:p,...m&&{signingRegion:m},...s[c]?.signingService&&{signingService:s[c].signingService}}},"getRegionInfo")});var w0e,LY,OY,b0e,S0e,B0e,R0e=I(()=>{w0e="AWS_EXECUTION_ENV",LY="AWS_REGION",OY="AWS_DEFAULT_REGION",b0e="AWS_EC2_METADATA_DISABLED",S0e=["in-region","cross-region","mobile","standard","legacy"],B0e="/latest/meta-data/placement/region"});var hyt,gyt,N0e,T0e=I(()=>{hyt="AWS_DEFAULTS_MODE",gyt="defaults_mode",N0e={environmentVariableSelector:i(t=>t[hyt],"environmentVariableSelector"),configFileSelector:i(t=>t[gyt],"configFileSelector"),default:"legacy"}});var Wc,yyt,Eyt,Cyt,Iyt,P0e=I(()=>{QY();_Y();Bv();R0e();T0e();Wc=i(({region:t=nt(Dn),defaultsMode:e=nt(N0e)}={})=>Gg(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return yyt(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${S0e.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),yyt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await Eyt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),Eyt=i(async()=>{if(process.env[w0e]&&(process.env[LY]||process.env[OY]))return process.env[LY]??process.env[OY];if(!process.env[b0e])try{let t=await Cyt();return(await Iyt({hostname:t.hostname,path:B0e})).toString()}catch{}},"inferPhysicalRegion"),Cyt=i(async()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let r=new URL(t);return{hostname:r.hostname,path:r.pathname}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254",path:"/"}:{hostname:"169.254.169.254",path:"/"}},"getImdsEndpoint"),Iyt=i(async({hostname:t,path:e})=>{let{request:r}=await import("node:http");return new Promise((n,s)=>{let o=r({method:"GET",hostname:t.replace(/^\[(.+)]$/,"$1"),path:e,timeout:1e3,signal:AbortSignal.timeout(1e3)});o.on("error",a=>{s(a),o.destroy()}),o.on("timeout",()=>{s(new Error("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",a=>{let{statusCode:c=400}=a;if(c<200||300<=c){s(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:c})),o.destroy();return}let l=[];a.on("data",u=>l.push(u)),a.on("end",()=>{n(Buffer.concat(l)),o.destroy()})}),o.end()})},"imdsHttpGet")});var kn={};en(kn,{CONFIG_PREFIX_SEPARATOR:()=>zc,CONFIG_USE_DUALSTACK_ENDPOINT:()=>Lv,CONFIG_USE_FIPS_ENDPOINT:()=>Mv,CredentialsProviderError:()=>Kd,DEFAULT_PROFILE:()=>IY,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>Jwe,DEFAULT_USE_FIPS_ENDPOINT:()=>Zwe,ENV_PROFILE:()=>CY,ENV_USE_DUALSTACK_ENDPOINT:()=>kv,ENV_USE_FIPS_ENDPOINT:()=>Ov,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Ps,NODE_REGION_CONFIG_OPTIONS:()=>Dn,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Vc,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>Yc,ProviderError:()=>Vo,REGION_ENV_NAME:()=>Vg,REGION_INI_NAME:()=>Yg,SelectorType:()=>ts,TokenProviderError:()=>wv,booleanSelector:()=>io,chain:()=>bv,externalDataInterceptor:()=>Hwe,fromStatic:()=>Dv,fromValue:()=>Sv,getHomeDir:()=>Hc,getProfileName:()=>Tv,getRegionInfo:()=>I0e,getSSOTokenFilepath:()=>Pv,getSSOTokenFromFile:()=>bwe,loadConfig:()=>nt,loadSharedConfigFiles:()=>zg,loadSsoSessionData:()=>Mwe,memoize:()=>Gg,nodeDualstackConfigSelectors:()=>Kwe,nodeFipsConfigSelectors:()=>e0e,numberSelector:()=>gwe,parseKnownFiles:()=>$we,readFile:()=>uf,resolveCustomEndpointsConfig:()=>r0e,resolveDefaultsModeConfig:()=>Wc,resolveEndpointsConfig:()=>i0e,resolveRegionConfig:()=>Yo});var Tt=I(()=>{Sx();xv();hwe();gY();yY();Bv();Rv();ywe();Nv();Hg();xY();wY();bY();Swe();_v();Fwe();Gwe();zwe();Tx();_Y();vY();Xwe();t0e();n0e();a0e();QY();m0e();x0e();P0e()});var v0e,_0e,Q0e,D0e=I(()=>{v0e="AWS_ENDPOINT_URL",_0e="endpoint_url",Q0e=i(t=>({environmentVariableSelector:i(e=>{let r=t.split(" ").map(o=>o.toUpperCase()),n=e[[v0e,...r].join("_")];if(n)return n;let s=e[v0e];if(s)return s},"environmentVariableSelector"),configFileSelector:i((e,r)=>{if(r&&e.services){let s=r[["services",e.services].join(".")];if(s){let o=t.split(" ").map(c=>c.toLowerCase()),a=s[[o.join("_"),_0e].join(".")];if(a)return a}}let n=e[_0e];if(n)return n},"configFileSelector"),default:void 0}),"getEndpointUrlConfig")});var Px,k0e=I(()=>{Tt();D0e();Px=i(async t=>nt(Q0e(t??""))(),"getEndpointFromConfig")});var L0e,xyt,wyt,byt,Syt,Byt,O0e=I(()=>{L0e=i(async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Byt(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Syt(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},"resolveParamsForS3"),xyt=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,wyt=/(\d+\.){3}\d+/,byt=/\.\./,Syt=i(t=>xyt.test(t)&&!wyt.test(t)&&!byt.test(t),"isDnsCompatibleBucketName"),Byt=i(t=>{let[e,r,n,,,s]=t.split(":"),o=e==="arn"&&t.split(":").length>=6,a=!!(o&&r&&n&&s);if(o&&!a)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return a},"isArnBucketName")});var M0e=I(()=>{O0e()});var F0e,U0e=I(()=>{F0e=i((t,e,r,n=!1)=>{let s=i(async()=>{let o;return n?o=r.clientContextParams?.[t]??r[t]??r[e]:o=r[t]??r[e],typeof o=="function"?o():o},"configProvider");return t==="credentialScope"||e==="CredentialScope"?async()=>{let o=typeof r.credentials=="function"?await r.credentials():r.credentials;return o?.credentialScope??o?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{let o=typeof r.credentials=="function"?await r.credentials():r.credentials;return o?.accountId??o?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let o=await s();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){let{protocol:a,hostname:c,port:l,path:u}=o;return`${a}//${c}${l?":"+l:""}${u}`}}return o}:s},"createConfigValueProvider")});var ba,MY=I(()=>{Qe();ba=i(t=>{if(typeof t=="object"){if("url"in t){let e=rs(t.url);if(t.headers){e.headers={};for(let r in t.headers)e.headers[r.toLowerCase()]=t.headers[r].join(", ")}return e}return t}return rs(t)},"toEndpointV1")});var Uv=I(()=>{MY()});function qv(t){return async(e,r,n,s)=>{if(!n.isCustomEndpoint){let c;n.serviceConfiguredEndpoint?c=await n.serviceConfiguredEndpoint():c=await t(n.serviceId),c&&(n.endpoint=()=>Promise.resolve(ba(c)),n.isCustomEndpoint=!0)}let o=await vx(e,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let a=n.endpointProvider(o,s);if(n.isCustomEndpoint&&n.endpoint){let c=await n.endpoint();if(c?.headers){a.headers??={};for(let[l,u]of Object.entries(c.headers))a.headers[l]=Array.isArray(u)?u:[u]}}return a}}var vx,$v=I(()=>{M0e();U0e();Uv();i(qv,"bindGetEndpointFromInstructions");vx=i(async(t,e,r)=>{let n={},s=e?.getEndpointParameterInstructions?.()||{};for(let[o,a]of Object.entries(s))switch(a.type){case"staticContextParams":n[o]=a.value;break;case"contextParams":n[o]=t[a.name];break;case"clientContextParams":case"builtInParams":n[o]=await F0e(a.name,o,r,a.type!=="builtInParams")();break;case"operationContextParams":n[o]=a.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(s).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await L0e(n),n},"resolveParams")});function Ryt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}function Gv(t){let e=qv(t);return({config:r,instructions:n})=>(s,o)=>async a=>{r.isCustomEndpoint&&Ryt(o,"ENDPOINT_OVERRIDE","N");let c=await e(a.input,{getEndpointParameterInstructions(){return n}},{...r},o);o.endpointV2=c,o.authSchemes=c.properties?.authSchemes;let l=o.authSchemes?.[0];if(l){o.signing_region=l.signingRegion,o.signing_service=l.signingName;let d=fr(o)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return s({...a})}}var FY=I(()=>{Ce();$v();i(Ryt,"setFeature");i(Gv,"bindEndpointMiddleware")});function q0e(t){let e=Gv(t);return(r,n)=>({applyToStack:i(s=>{s.addRelativeTo(e({config:r,instructions:n}),UY)},"applyToStack")})}var Nyt,UY,qY=I(()=>{FY();Nyt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},UY={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Nyt.name};i(q0e,"bindGetEndpointPlugin")});function $0e(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:s,useFipsEndpoint:o}=e,a=n!=null?async()=>ba(await Ut(n)()):void 0,l=Object.assign(e,{endpoint:a,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:Ut(s??!1),useFipsEndpoint:Ut(o??!1)}),u;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),l}}var G0e=I(()=>{Ce();Uv();i($0e,"bindResolveEndpointConfig")});var ki,H0e=I(()=>{ki=class t{static{i(this,"BinaryDecisionDiagram")}nodes;root;conditions;results;constructor(e,r,n,s){this.nodes=e,this.root=r,this.conditions=n,this.results=s}static from(e,r,n,s){return new t(e,r,n,s)}}});var Li,z0e=I(()=>{Li=class{static{i(this,"EndpointCache")}capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){let n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let s=this.data.keys(),o=0;for(;;){let{value:a,done:c}=s.next();if(this.data.delete(a),c||++o>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let s of n){let o=String(e[s]??"");if(o.includes("|;"))return!1;r+=o+"|;"}return r}}});var St,V0e=I(()=>{St=class extends Error{static{i(this,"EndpointError")}constructor(e){super(e),this.name="EndpointError"}}});var Y0e=I(()=>{});var W0e=I(()=>{});var j0e=I(()=>{});var J0e=I(()=>{});var K0e=I(()=>{});var X0e=I(()=>{});var Wo=I(()=>{V0e();Y0e();W0e();j0e();J0e();K0e();X0e()});var Eu,Z0e=I(()=>{Eu="endpoints"});function Oi(t){return typeof t!="object"||t==null?t:"ref"in t?`$${Oi(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(Oi).join(", ")})`:JSON.stringify(t,null,2)}var ebe=I(()=>{i(Oi,"toDebugString")});var _x=I(()=>{Z0e();ebe()});var ao,Hv=I(()=>{ao={}});var tbe,rbe=I(()=>{tbe=i((t,e)=>t===e,"booleanEquals")});function nbe(...t){for(let e of t)if(e!=null)return e}var sbe=I(()=>{i(nbe,"coalesce")});var obe,ibe=I(()=>{Wo();obe=i(t=>{let e=t.split("."),r=[];for(let n of e){let s=n.indexOf("[");if(s!==-1){if(n.indexOf("]")!==n.length-1)throw new St(`Path: '${t}' does not end with ']'`);let o=n.slice(s+1,-1);if(Number.isNaN(parseInt(o)))throw new St(`Invalid array index: '${o}' in path: '${t}'`);s!==0&&r.push(n.slice(0,s)),r.push(o)}else r.push(n)}return r},"getAttrPathList")});var zv,abe=I(()=>{Wo();ibe();zv=i((t,e)=>obe(e).reduce((r,n)=>{if(typeof r!="object")throw new St(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);if(Array.isArray(r)){let s=parseInt(n);return r[s<0?r.length+s:s]}return r[n]},t),"getAttr")});var cbe,lbe=I(()=>{cbe=i(t=>t!=null,"isSet")});var Tyt,yu,$Y=I(()=>{Tyt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),yu=i((t,e=!1)=>{if(!e)return Tyt.test(t);let r=t.split(".");for(let n of r)if(!yu(n))return!1;return!0},"isValidHostLabel")});function ube(t,e,r){return t?e:r}var dbe=I(()=>{i(ube,"ite")});var pbe,mbe=I(()=>{pbe=i(t=>!t,"not")});var Pyt,Cu,GY=I(()=>{Pyt=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Cu=i(t=>Pyt.test(t)||t.startsWith("[")&&t.endsWith("]"),"isIpAddress")});var Vv,HY,fbe,Abe=I(()=>{Vv=D(Ca());GY();HY={[Vv.EndpointURLScheme.HTTP]:80,[Vv.EndpointURLScheme.HTTPS]:443},fbe=i(t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:m,port:f,protocol:g="",path:E="",query:x={}}=t,w=new URL(`${g}//${m}${f?`:${f}`:""}${E}`);return w.search=Object.entries(x).map(([S,P])=>`${S}=${P}`).join("&"),w}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=e.href,{host:n,hostname:s,pathname:o,protocol:a,search:c}=e;if(c)return null;let l=a.slice(0,-1);if(!Object.values(Vv.EndpointURLScheme).includes(l))return null;let u=Cu(s),d=r.includes(`${n}:${HY[l]}`)||typeof t=="string"&&t.includes(`${n}:${HY[l]}`),p=`${n}${d?`:${HY[l]}`:""}`;return{scheme:l,authority:p,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:u}},"parseURL")});function hbe(t,e,r){if(r===1)return[t];if(t==="")return[""];let n=t.split(e);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(e))}var gbe=I(()=>{i(hbe,"split")});var ybe,Ebe=I(()=>{ybe=i((t,e)=>t===e,"stringEquals")});var Cbe,Ibe=I(()=>{Cbe=i((t,e,r,n)=>t==null||e>=r||t.length{xbe=i(t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode")});var zY=I(()=>{rbe();sbe();abe();lbe();$Y();dbe();mbe();Abe();gbe();Ebe();Ibe();wbe()});var bbe,Sbe=I(()=>{zY();bbe={booleanEquals:tbe,coalesce:nbe,getAttr:zv,isSet:cbe,isValidHostLabel:yu,ite:ube,not:pbe,parseURL:fbe,split:hbe,stringEquals:ybe,substring:Cbe,uriEncode:xbe}});var Yv,VY=I(()=>{zY();Yv=i((t,e)=>{let r=[],{referenceRecord:n,endpointParams:s}=e,o=0;for(;o{Bbe=i(({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t],"getReferenceValue")});var Iu,Wv,Nbe,Wg=I(()=>{Wo();Hv();Sbe();VY();Rbe();Iu=i((t,e,r)=>{if(typeof t=="string")return Yv(t,r);if(t.fn)return Nbe.callFunction(t,r);if(t.ref)return Bbe(t,r);throw new St(`'${e}': ${String(t)} is not a string, function or reference.`)},"evaluateExpression"),Wv=i(({fn:t,argv:e},r)=>{let n=Array(e.length);for(let a=0;a{Wg()});var jv,YY=I(()=>{_x();Wo();Tbe();jv=i((t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new St(`'${r}' is already defined in Reference Record.`);let n=Wv(t,e);e.logger?.debug?.(`${Eu} evaluateCondition: ${Oi(t)} = ${Oi(n)}`);let s=n===""?!0:!!n;return r!=null?{result:s,toAssign:{name:r,value:n}}:{result:s}},"evaluateCondition")});var Jv,WY=I(()=>{Wo();Wg();Jv=i((t,e)=>Object.entries(t??{}).reduce((r,[n,s])=>(r[n]=s.map(o=>{let a=Iu(o,"Header value entry",e);if(typeof a!="string")throw new St(`Header '${n}' value '${a}' is not a string`);return a}),r),{}),"getEndpointHeaders")});var Qx,Pbe,vbe,jY=I(()=>{Wo();VY();Qx=i((t,e)=>Object.entries(t).reduce((r,[n,s])=>(r[n]=vbe.getEndpointProperty(s,e),r),{}),"getEndpointProperties"),Pbe=i((t,e)=>{if(Array.isArray(t))return t.map(r=>Pbe(r,e));switch(typeof t){case"string":return Yv(t,e);case"object":if(t===null)throw new St(`Unexpected endpoint property: ${t}`);return vbe.getEndpointProperties(t,e);case"boolean":return t;default:throw new St(`Unexpected endpoint property type: ${typeof t}`)}},"getEndpointProperty"),vbe={getEndpointProperty:Pbe,getEndpointProperties:Qx}});var Kv,JY=I(()=>{Wo();Wg();Kv=i((t,e)=>{let r=Iu(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new St(`Endpoint URL must be a string, got ${typeof r}`)},"getEndpointUrl")});var KY,jc,_be=I(()=>{Wo();YY();Wg();WY();jY();JY();KY=1e8,jc=i((t,e)=>{let{nodes:r,root:n,results:s,conditions:o}=t,a=n,c={},l={referenceRecord:c,endpointParams:e.endpointParams,logger:e.logger};for(;a!==1&&a!==-1&&a=0===x.result?p:m}if(a>=KY){let u=s[a-KY];if(u[0]===-1){let[,f]=u;throw new St(Iu(f,"Error",l))}let[d,p,m]=u;return{url:Kv(d,l),properties:Qx(p,l),headers:Jv(m??{},l)}}throw new St("No matching endpoint.")},"decideEndpoint")});var jg,Xv=I(()=>{_x();YY();jg=i((t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},s=!1;for(let o of t){let{result:a,toAssign:c}=jv(o,n);if(!a)return{result:a};c&&(s=!0,r[c.name]=c.value,n.referenceRecord[c.name]=c.value,e.logger?.debug?.(`${Eu} assign: ${c.name} := ${Oi(c.value)}`))}return s?{result:!0,referenceRecord:r}:{result:!0}},"evaluateConditions")});var Qbe,Dbe=I(()=>{_x();Xv();WY();jY();JY();Qbe=i((t,e)=>{let{conditions:r,endpoint:n}=t,{result:s,referenceRecord:o}=jg(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e,{url:c,properties:l,headers:u}=n;e.logger?.debug?.(`${Eu} Resolving endpoint from template: ${Oi(n)}`);let d={url:Kv(c,a)};return u!=null&&(d.headers=Jv(u,a)),l!=null&&(d.properties=Qx(l,a)),d},"evaluateEndpointRule")});var kbe,Lbe=I(()=>{Wo();Xv();Wg();kbe=i((t,e)=>{let{conditions:r,error:n}=t,{result:s,referenceRecord:o}=jg(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;throw new St(Iu(n,"Error",a))},"evaluateErrorRule")});var XY,vyt,Obe,Mbe=I(()=>{Wo();Xv();Dbe();Lbe();XY=i((t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=Qbe(r,e);if(n)return n}else if(r.type==="error")kbe(r,e);else if(r.type==="tree"){let n=Obe.evaluateTreeRule(r,e);if(n)return n}else throw new St(`Unknown endpoint rule: ${r}`);throw new St("Rules evaluation failed")},"evaluateRules"),vyt=i((t,e)=>{let{conditions:r,rules:n}=t,{result:s,referenceRecord:o}=jg(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;return Obe.evaluateRules(n,a)},"evaluateTreeRule"),Obe={evaluateRules:XY,evaluateTreeRule:vyt}});var Fbe=I(()=>{Hv();Mbe()});var Dx,Ube=I(()=>{_x();Wo();Fbe();Dx=i((t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:s,rules:o}=t;e.logger?.debug?.(`${Eu} Initial EndpointParams: ${Oi(r)}`);for(let c in s){let l=s[c],u=r[c];if(u==null&&l.default!=null){r[c]=l.default;continue}if(l.required&&u==null)throw new St(`Missing required parameter: '${c}'`)}let a=XY(o,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${Eu} Resolved endpoint: ${Oi(a)}`),a},"resolveEndpoint")});var qbe,$be=I(()=>{qbe=i(t=>{let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),t},"resolveEndpointRequiredConfig")});var df={};en(df,{BinaryDecisionDiagram:()=>ki,EndpointCache:()=>Li,EndpointError:()=>St,customEndpointFunctions:()=>ao,decideEndpoint:()=>jc,endpointMiddleware:()=>Qyt,endpointMiddlewareOptions:()=>UY,getEndpointFromInstructions:()=>_yt,getEndpointPlugin:()=>Sa,isIpAddress:()=>Cu,isValidHostLabel:()=>yu,middlewareEndpointToEndpointV1:()=>ba,resolveEndpoint:()=>Dx,resolveEndpointConfig:()=>xu,resolveEndpointRequiredConfig:()=>qbe,resolveParams:()=>vx,toEndpointV1:()=>ba});var _yt,xu,Qyt,Sa,xt=I(()=>{k0e();$v();FY();qY();G0e();MY();H0e();z0e();_be();GY();$Y();Hv();Ube();Wo();$v();Uv();qY();$be();_yt=qv(Px),xu=$0e(Px),Qyt=Gv(Px),Sa=q0e(Px)});var Zv,ZY=I(()=>{xt();Zv=i((t,e)=>(r,n)=>async s=>{let o=t,a=n.endpointV2?async()=>ba(n.endpointV2):o.endpoint;if(!a)throw new Error("No valid endpoint provider available.");let c=await e(s.input,{...t,endpoint:a});return r({...s,request:c})},"serializerMiddleware")});function Gbe(t,e,r){return{applyToStack:i(n=>{n.add(Iv(t,r),eW),n.add(Zv(t,e),tW)},"applyToStack")}}var eW,tW,Hbe=I(()=>{hY();ZY();eW={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},tW={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(Gbe,"getSerdePlugin")});function zbe(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?Wd(t,e):ArrayBuffer.isView(t)?xa(t.buffer,t.byteOffset,t.byteLength):xa(t)}var e_,Mi,Vbe=I(()=>{e_=require("node:crypto");jd();fY();Mi=class{static{i(this,"Hash")}algorithmIdentifier;secret;hash;constructor(e,r){this.algorithmIdentifier=e,this.secret=r,this.reset()}update(e,r){this.hash.update(Cv(zbe(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,e_.createHmac)(this.algorithmIdentifier,zbe(this.secret)):(0,e_.createHash)(this.algorithmIdentifier)}};i(zbe,"castSourceData")});var Ybe,Jg,rW=I(()=>{Ybe=require("node:stream");rY();Jg=class extends Ybe.Duplex{static{i(this,"ChecksumStream")}expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:e,checksum:r,source:n,checksumSourceLocation:s,base64Encoder:o}){if(super(),typeof n.pipe=="function")this.source=n;else throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.base64Encoder=o??Ar,this.expectedChecksum=e,this.checksum=r,this.checksumSourceLocation=s,this.source.pipe(this)}_read(e){if(this.pendingCallback){let r=this.pendingCallback;this.pendingCallback=null,r()}}_write(e,r,n){try{if(this.checksum.update(e),!this.push(e)){this.pendingCallback=n;return}}catch(s){return n(s)}return n()}async _final(e){try{let r=await this.checksum.digest(),n=this.base64Encoder(r);if(this.expectedChecksum!==n)return e(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}" in response header "${this.checksumSourceLocation}".`))}catch(r){return e(r)}return this.push(null),e()}}});var Ln,t_,wu=I(()=>{Ln=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),t_=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var Wbe,jbe=I(()=>{Wbe=i(t=>new TextEncoder().encode(t),"fromUtf8")});var Jbe,nW,Kbe,Xd,pf,Xbe,sW=I(()=>{Jbe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nW=Object.entries(Jbe).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),Kbe=Jbe.split(""),Xd=6,pf=8,Xbe=63});function r_(t){let e;typeof t=="string"?e=Wbe(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let s="";for(let o=0;o>d]}s+="==".slice(0,4-l)}return s}var oW=I(()=>{jbe();sW();i(r_,"toBase64")});var Dyt,n_,Zbe=I(()=>{Dyt=typeof ReadableStream=="function"?ReadableStream:function(){},n_=class extends Dyt{static{i(this,"ChecksumStream")}}});var eSe,tSe=I(()=>{oW();wu();Zbe();eSe=i(({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:s})=>{if(!Ln(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=s??r_;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let a=new TransformStream({start(){},async transform(l,u){e.update(l),u.enqueue(l)},async flush(l){let u=await e.digest(),d=o(u);if(t!==d){let p=new Error(`Checksum mismatch: expected "${t}" but received "${d}" in response header "${n}".`);l.error(p)}else l.terminate()}});r.pipeThrough(a);let c=a.readable;return Object.setPrototypeOf(c,n_.prototype),c},"createChecksumStream")});function rSe(t){return typeof ReadableStream=="function"&&Ln(t.source)?eSe(t):new Jg(t)}var nSe=I(()=>{wu();rW();tSe();i(rSe,"createChecksumStream")});var mf,iW=I(()=>{mf=class{static{i(this,"ByteArrayCollector")}allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),r=0;for(let n=0;nnew Uint8Array(u))],c=-1,l=i(async u=>{let{value:d,done:p}=await n.read(),m=d;if(p){if(c!==-1){let f=ff(a,c);bu(f)>0&&u.enqueue(f)}u.close()}else{let f=cW(m,!1);if(c!==f&&(c>=0&&u.enqueue(ff(a,c)),c=f),c===-1){u.enqueue(m);return}let g=bu(m);o+=g;let E=bu(a[c]);if(g>=e&&E===0)u.enqueue(m);else{let x=aW(a,c,m);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${g} is below threshold of ${e}, automatically buffering.`)),x>=e?u.enqueue(ff(a,c)):await l(u)}}},"pull");return new ReadableStream({pull:l})}function aW(t,e,r){switch(e){case 0:return t[0]+=r,bu(t[0]);case 1:case 2:return t[e].push(r),bu(t[e])}}function ff(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function bu(t){return t?.byteLength??t?.length??0}function cW(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var oSe=I(()=>{iW();i(sSe,"createBufferedReadableStream");i(aW,"merge");i(ff,"flush");i(bu,"sizeOf");i(cW,"modeOf")});function aSe(t,e,r){if(Ln(t))return sSe(t,e,r);let n=new iSe.Readable({read(){}}),s=!1,o=0,a=["",new mf(l=>new Uint8Array(l)),new mf(l=>Buffer.from(new Uint8Array(l)))],c=-1;return t.on("data",l=>{let u=cW(l,!0);if(c!==u&&(c>=0&&n.push(ff(a,c)),c=u),c===-1){n.push(l);return}let d=bu(l);o+=d;let p=bu(a[c]);if(d>=e&&p===0)n.push(l);else{let m=aW(a,c,l);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${d} is below threshold of ${e}, automatically buffering.`)),m>=e&&n.push(ff(a,c))}}),t.on("end",()=>{if(c!==-1){let l=ff(a,c);bu(l)>0&&n.push(l)}n.push(null)}),n}var iSe,cSe=I(()=>{iSe=require("node:stream");iW();oSe();wu();i(aSe,"createBufferedReadable")});var lSe,uSe=I(()=>{lSe=i((t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:s,checksumLocationName:o,streamHasher:a}=e,c=r!==void 0&&n!==void 0&&s!==void 0&&o!==void 0&&a!==void 0,l=c?a(s,t):void 0,u=t.getReader();return new ReadableStream({async pull(d){let{value:p,done:m}=await u.read();if(m){if(d.enqueue(`0\r +`),"stackTraceWarning"),Ug={warn:console.warn}});function ba(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,p=c<10?`0${c}`:`${c}`;return`${Kgt[n]}, ${l} ${AY[r]} ${e} ${u}:${d}:${p} GMT`}var Kgt,AY,Xgt,Awe,Zgt,hv,eyt,tyt,ryt,Gg,gv,Nx,nyt,syt,oyt,fY,iyt,ayt,cyt,$c,lyt,uyt,$g,hwe=I(()=>{mY();Kgt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],AY=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(ba,"dateToUtcString");Xgt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Awe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Xgt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=Jd($g(n)),p=$c(s,"month",1,12),m=$c(o,"day",1,31);return Nx(d,p,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),Zgt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),hv=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Zgt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u,d]=e,p=Jd($g(n)),m=$c(s,"month",1,12),f=$c(o,"day",1,31),g=Nx(p,m,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&g.setTime(g.getTime()-uyt(d)),g},"parseRfc3339DateTimeWithOffset"),eyt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),tyt=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),ryt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Gg=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=eyt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return Nx(Jd($g(o)),fY(s),$c(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=tyt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return oyt(Nx(nyt(o),fY(s),$c(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=ryt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Nx(Jd($g(u)),fY(n),$c(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),gv=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=Rx(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},"parseEpochTimestamp"),Nx=i((t,e,r,n)=>{let s=e-1;return ayt(t,s,r),new Date(Date.UTC(t,s,r,$c(n.hours,"hour",0,23),$c(n.minutes,"minute",0,59),$c(n.seconds,"seconds",0,60),lyt(n.fractionalMilliseconds)))},"buildDate"),nyt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Jd($g(t));return rt.getTime()-new Date().getTime()>syt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),fY=i(t=>{let e=AY.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),iyt=[31,28,31,30,31,30,31,31,30,31,30,31],ayt=i((t,e,r)=>{let n=iyt[e];if(e===1&&cyt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${AY[e]} in ${t}: ${r}`)},"validateDayOfMonth"),cyt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),$c=i((t,e,r,n)=>{let s=Av($g(t));if(sn)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),lyt=i(t=>t==null?0:mv("0."+t)*1e3,"parseMilliseconds"),uyt=i(t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),s=Number(t.substring(4,6));return r*(n*60+s)*60*1e3},"parseOffsetToMilliseconds"),$g=i(t=>{let e=0;for(;e{Zn=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");Zn.from=t=>t&&typeof t=="object"&&(t instanceof Zn||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?Zn(String(t)):Zn(JSON.stringify(t));Zn.fromObject=Zn.from});function yv(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var ywe=I(()=>{i(yv,"quoteHeader")});function yu(t,e,r){let n=Number(t);if(nr)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var hY,gY,yY,Ewe,Cwe,dyt,pyt,myt,fyt,Ayt,pf,Ev,Cv,Iwe=I(()=>{hY="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",gY="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",yY="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",Ewe="(\\d?\\d)",Cwe="(\\d{4})",dyt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),pyt=new RegExp(`^${hY}, ${Ewe} ${gY} ${Cwe} ${yY} GMT$`),myt=new RegExp(`^${hY}, ${Ewe}-${gY}-(\\d\\d) ${yY} GMT$`),fyt=new RegExp(`^${hY} ${gY} ( [1-9]|\\d\\d) ${yY} ${Cwe}$`),Ayt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pf=i(t=>{if(t==null)return;let e=NaN;if(typeof t=="number")e=t;else if(typeof t=="string"){if(!/^-?\d*\.?\d+$/.test(t))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else typeof t=="object"&&t.tag===1&&(e=t.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},"_parseEpochTimestamp"),Ev=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=dyt.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;yu(n,1,12),yu(s,1,31),yu(o,0,23),yu(a,0,59),yu(c,0,60);let d=new Date(Date.UTC(Number(r),Number(n)-1,Number(s),Number(o),Number(a),Number(c),Number(l)?Math.round(parseFloat(`0.${l}`)*1e3):0));if(d.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,p,m,f]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],g=p==="-"?1:-1;d.setTime(d.getTime()+g*(Number(m)*60*60*1e3+Number(f)*60*1e3))}return d},"_parseRfc3339DateTimeWithOffset"),Cv=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,r,n,s,o,a,c,l;if((l=pyt.exec(t))?[,e,r,n,s,o,a,c]=l:(l=myt.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=fyt.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),Ayt.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);yu(e,1,31),yu(s,0,23),yu(o,0,59),yu(a,0,60);let d=new Date(u);return d.setUTCFullYear(Number(n)),d}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)},"_parseRfc7231DateTime");i(yu,"range")});function Iv(t,e,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let s=[],o="";for(let a=0;a{i(Iv,"splitEvery")});var Hg,wwe=I(()=>{Hg=i(t=>{let e=t.length,r=[],n=!1,s,o=0;for(let a=0;a{a=a.trim();let c=a.length;return c<2?a:(a[0]==='"'&&a[c-1]==='"'&&(a=a.slice(1,c-1)),a.replace(/\\"/g,'"'))})},"splitHeader")});function xv(t){return new qt(String(t),"bigDecimal")}var bwe,qt,Swe=I(()=>{bwe=/^-?\d*(\.\d+)?$/,qt=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!bwe.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;let r=e;return t.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&bwe.test(r.string)}};i(xv,"nv")});function wv(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r{Bwe={},EY={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),Bwe[t]=e,EY[e]=t}i(wv,"fromHex");i(ki,"toHex")});var zg,Gc,Rwe=I(()=>{zg=require("node:fs"),Gc=i(t=>{if(!t)return 0;if(typeof t=="string")return Buffer.byteLength(t);if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size;if(typeof t.start=="number"&&typeof t.end=="number")return t.end+1-t.start;if(t instanceof zg.ReadStream){if(t.path!=null)return(0,zg.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,zg.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)},"calculateBodyLength")});var bv,IY=I(()=>{iv();bv=i(t=>typeof t=="string"?Hr(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array")});var Sv,xY,wY=I(()=>{De();Sv=i((t,e)=>(r,n)=>async s=>{let{response:o}=await r(s);try{let a=await e(o,t);return{response:o,output:a}}catch(a){if(Object.defineProperty(a,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in a)){let c="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{a.message+=` + `+c}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(c):n.logger?.warn?.(c)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(es.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:xY(/^x-[\w-]+-request-?id$/,u),extendedRequestId:xY(/^x-[\w-]+-id-2$/,u),cfId:xY(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),xY=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var Wo,Tx=I(()=>{Wo=class t extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(e,r=!0){let n,s=!0;typeof r=="boolean"?(n=void 0,s=r):r!=null&&typeof r=="object"&&(n=r.logger,s=r.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var Kd,Bv=I(()=>{Tx();Kd=class t extends Wo{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Rv,Nwe=I(()=>{Tx();Rv=class t extends Wo{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Nv,bY=I(()=>{Tx();Nv=i((...t)=>async()=>{if(t.length===0)throw new Wo("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e},"chain")});var Tv,SY=I(()=>{Tv=i(t=>()=>Promise.resolve(t),"fromValue")});var Vg,Pv=I(()=>{Vg=i((t,e,r)=>{let n,s,o,a=!1,c=i(async()=>{s||(s=t());try{n=await s,o=!0,a=!1}finally{s=void 0}return n},"coalesceProvider");return e===void 0?async l=>((!o||l?.forceRefresh)&&(n=await c()),n):async l=>((!o||l?.forceRefresh)&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(e(n)&&await c(),n))},"memoize")});var ao,vv=I(()=>{ao=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}},"booleanSelector")});var Twe,Pwe=I(()=>{Twe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n},"numberSelector")});var ts,_v=I(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(ts||(ts={}))});var vwe,_we,BY,hyt,Hc,Yg=I(()=>{vwe=require("node:os"),_we=require("node:path"),BY={},hyt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),Hc=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${_we.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=hyt();return BY[s]||(BY[s]=(0,vwe.homedir)()),BY[s]},"getHomeDir")});var RY,NY,Qv,TY=I(()=>{RY="AWS_PROFILE",NY="default",Qv=i(t=>t.profile||process.env[RY]||NY,"getProfileName")});var Qwe,Dwe,Dv,PY=I(()=>{Qwe=require("node:crypto"),Dwe=require("node:path");Yg();Dv=i(t=>{let r=(0,Qwe.createHash)("sha1").update(t).digest("hex");return(0,Dwe.join)(Hc(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var kwe,Px,Lwe,vY=I(()=>{kwe=require("node:fs/promises");PY();Px={},Lwe=i(async t=>{if(Px[t])return Px[t];let e=Dv(t),r=await(0,kwe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var zc,Owe=I(()=>{zc="."});var _Y,Mwe,Fwe=I(()=>{_Y=D(Ia()),Mwe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(_Y.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===_Y.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var Uwe,gyt,kv,QY=I(()=>{Uwe=require("node:path");Yg();gyt="AWS_CONFIG_FILE",kv=i(()=>process.env[gyt]||(0,Uwe.join)(Hc(),".aws","config"),"getConfigFilepath")});var qwe,yyt,$we,Gwe=I(()=>{qwe=require("node:path");Yg();yyt="AWS_SHARED_CREDENTIALS_FILE",$we=i(()=>process.env[yyt]||(0,qwe.join)(Hc(),".aws","credentials"),"getCredentialsFilepath")});var Hwe,Eyt,Cyt,vx,DY=I(()=>{Hwe=D(Ia()),Eyt=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Cyt=["__proto__","profile __proto__"],vx=i(t=>{let e={},r,n;for(let s of t.split(/\r?\n/)){let o=s.split(/(^|\s)[;#]/)[0].trim();if(o[0]==="["&&o[o.length-1]==="]"){r=void 0,n=void 0;let c=o.substring(1,o.length-1),l=Eyt.exec(c);if(l){let[,u,,d]=l;Object.values(Hwe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(Cyt.includes(c))throw new Error(`Found invalid profile name "${c}"`)}else if(r){let c=o.indexOf("=");if(![0,-1].includes(c)){let[l,u]=[o.substring(0,c).trim(),o.substring(c+1).trim()];if(u==="")n=l;else{n&&s.trimStart()===s&&(n=void 0),e[r]=e[r]||{};let d=n?[n,l].join("."):l;e[r][d]=u}}}}return e},"parseIni")});var zwe,kY,_x,mf,Qx=I(()=>{zwe=require("node:fs/promises"),kY={},_x={},mf=i((t,e)=>_x[t]!==void 0?_x[t]:((!kY[t]||e?.ignoreCache)&&(kY[t]=(0,zwe.readFile)(t,"utf8")),kY[t]),"readFile")});var LY,Vwe,Wg,Lv=I(()=>{LY=require("node:path");Fwe();QY();Gwe();Yg();DY();Qx();Vwe=i(()=>({}),"swallowError"),Wg=i(async(t={})=>{let{filepath:e=$we(),configFilepath:r=kv()}=t,n=Hc(),s="~/",o=e;e.startsWith(s)&&(o=(0,LY.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,LY.join)(n,r.slice(2)));let c=await Promise.all([mf(a,{ignoreCache:t.ignoreCache}).then(vx).then(Mwe).catch(Vwe),mf(o,{ignoreCache:t.ignoreCache}).then(vx).catch(Vwe)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var Ywe,Wwe,jwe=I(()=>{Ywe=D(Ia()),Wwe=i(t=>Object.entries(t).filter(([e])=>e.startsWith(Ywe.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var Iyt,Jwe,Kwe=I(()=>{QY();jwe();DY();Qx();Iyt=i(()=>({}),"swallowError"),Jwe=i(async(t={})=>mf(t.configFilepath??kv()).then(vx).then(Wwe).catch(Iyt),"loadSsoSessionData")});var Xwe,Zwe=I(()=>{Xwe=i((...t)=>{let e={};for(let r of t)for(let[n,s]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],s):e[n]=s;return e},"mergeConfigFiles")});var e0e,t0e=I(()=>{Lv();Zwe();e0e=i(async t=>{let e=await Wg(t);return Xwe(e.configFile,e.credentialsFile)},"parseKnownFiles")});var r0e,n0e=I(()=>{vY();Qx();r0e={getFileRecord(){return _x},interceptFile(t,e){_x[t]=Promise.resolve(e)},getTokenRecord(){return Px},interceptToken(t,e){Px[t]=e}}});function Ov(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var OY=I(()=>{i(Ov,"getSelectorName")});var s0e,o0e=I(()=>{Bv();OY();s0e=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new Kd(r.message||`Not found in ENV: ${Ov(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var i0e,a0e=I(()=>{Bv();TY();Lv();OY();i0e=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=Qv(r),{configFile:s,credentialsFile:o}=await Wg(r),a=o[n]||{},c=s[n]||{},l=e==="config"?{...a,...c}:{...c,...a};try{let d=t(l,e==="config"?s:o);if(d===void 0)throw new Error;return d}catch(u){throw new Kd(u.message||`Not found in config files w/ profile [${n}]: ${Ov(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var xyt,Mv,MY=I(()=>{SY();xyt=i(t=>typeof t=="function","isFunction"),Mv=i(t=>xyt(t)?async()=>await t():Tv(t),"fromStatic")});var nt,FY=I(()=>{bY();Pv();o0e();a0e();MY();nt=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return Vg(Nv(s0e(t,{signingName:s,logger:o}),i0e(e,n),Mv(r)))},"loadConfig")});var Fv,Uv,c0e,Vc,l0e,u0e=I(()=>{vv();_v();Fv="AWS_USE_DUALSTACK_ENDPOINT",Uv="use_dualstack_endpoint",c0e=!1,Vc={environmentVariableSelector:i(t=>ao(t,Fv,ts.ENV),"environmentVariableSelector"),configFileSelector:i(t=>ao(t,Uv,ts.CONFIG),"configFileSelector"),default:!1},l0e={environmentVariableSelector:i(t=>ao(t,Fv,ts.ENV),"environmentVariableSelector"),configFileSelector:i(t=>ao(t,Uv,ts.CONFIG),"configFileSelector"),default:void 0}});var qv,$v,d0e,Yc,p0e,m0e=I(()=>{vv();_v();qv="AWS_USE_FIPS_ENDPOINT",$v="use_fips_endpoint",d0e=!1,Yc={environmentVariableSelector:i(t=>ao(t,qv,ts.ENV),"environmentVariableSelector"),configFileSelector:i(t=>ao(t,$v,ts.CONFIG),"configFileSelector"),default:!1},p0e={environmentVariableSelector:i(t=>ao(t,qv,ts.ENV),"environmentVariableSelector"),configFileSelector:i(t=>ao(t,$v,ts.CONFIG),"configFileSelector"),default:void 0}});var f0e,A0e=I(()=>{Ce();f0e=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:Ut(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:Ut(s??!1)})},"resolveCustomEndpointsConfig")});var h0e,g0e=I(()=>{h0e=i(async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let s=await t.useDualstackEndpoint(),o=await t.useFipsEndpoint(),{hostname:a}=await t.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:o})??{};if(!a)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${a}`)},"getEndpointFromRegion")});var y0e,E0e=I(()=>{Ce();g0e();y0e=i(t=>{let e=Ut(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?Ut(typeof r=="string"?s(r):r):()=>h0e({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var jg,Jg,kn,vs,UY=I(()=>{jg="AWS_REGION",Jg="region",kn={environmentVariableSelector:i(t=>t[jg],"environmentVariableSelector"),configFileSelector:i(t=>t[Jg],"configFileSelector"),default:i(()=>{throw new Error("Region is missing")},"default")},vs={preferredFile:"credentials"}});var C0e,I0e,x0e=I(()=>{wt();C0e=new Set,I0e=i((t,e=Eu)=>{if(!C0e.has(t)&&!e(t))if(t==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else C0e.add(t)},"checkRegion")});var Gv,qY=I(()=>{Gv=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var w0e,b0e=I(()=>{qY();w0e=i(t=>Gv(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var jo,S0e=I(()=>{x0e();b0e();qY();jo=i(t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:i(async()=>{let n=typeof e=="function"?await e():e,s=w0e(n);return I0e(s),s},"region"),useFipsEndpoint:i(async()=>{let n=typeof e=="string"?e:await e();return Gv(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig")});var $Y,B0e=I(()=>{$Y=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var R0e,N0e=I(()=>{R0e=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var T0e,P0e=I(()=>{T0e=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var v0e,_0e=I(()=>{v0e=i((t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let s=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),o=t.match(s);if(o)return o[0].slice(1,-1)}},"getResolvedSigningRegion")});var Q0e,D0e=I(()=>{B0e();N0e();P0e();_0e();Q0e=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=T0e(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=$Y(s[c]?.variants,l),d=$Y(o[a]?.variants,l),p=R0e(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let m=v0e(p,{signingRegion:s[c]?.signingRegion,regionRegex:o[a].regionRegex,useFipsEndpoint:e});return{partition:a,signingService:n,hostname:p,...m&&{signingRegion:m},...s[c]?.signingService&&{signingService:s[c].signingService}}},"getRegionInfo")});var k0e,GY,HY,L0e,O0e,M0e,F0e=I(()=>{k0e="AWS_EXECUTION_ENV",GY="AWS_REGION",HY="AWS_DEFAULT_REGION",L0e="AWS_EC2_METADATA_DISABLED",O0e=["in-region","cross-region","mobile","standard","legacy"],M0e="/latest/meta-data/placement/region"});var wyt,byt,U0e,q0e=I(()=>{wyt="AWS_DEFAULTS_MODE",byt="defaults_mode",U0e={environmentVariableSelector:i(t=>t[wyt],"environmentVariableSelector"),configFileSelector:i(t=>t[byt],"configFileSelector"),default:"legacy"}});var Wc,Syt,Byt,Ryt,Nyt,$0e=I(()=>{UY();FY();Pv();F0e();q0e();Wc=i(({region:t=nt(kn),defaultsMode:e=nt(U0e)}={})=>Vg(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return Syt(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${O0e.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),Syt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await Byt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),Byt=i(async()=>{if(process.env[k0e]&&(process.env[GY]||process.env[HY]))return process.env[GY]??process.env[HY];if(!process.env[L0e])try{let t=await Ryt();return(await Nyt({hostname:t.hostname,path:M0e})).toString()}catch{}},"inferPhysicalRegion"),Ryt=i(async()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let r=new URL(t);return{hostname:r.hostname,path:r.pathname}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254",path:"/"}:{hostname:"169.254.169.254",path:"/"}},"getImdsEndpoint"),Nyt=i(async({hostname:t,path:e})=>{let{request:r}=await import("node:http");return new Promise((n,s)=>{let o=r({method:"GET",hostname:t.replace(/^\[(.+)]$/,"$1"),path:e,timeout:1e3,signal:AbortSignal.timeout(1e3)});o.on("error",a=>{s(a),o.destroy()}),o.on("timeout",()=>{s(new Error("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",a=>{let{statusCode:c=400}=a;if(c<200||300<=c){s(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:c})),o.destroy();return}let l=[];a.on("data",u=>l.push(u)),a.on("end",()=>{n(Buffer.concat(l)),o.destroy()})}),o.end()})},"imdsHttpGet")});var Ln={};rn(Ln,{CONFIG_PREFIX_SEPARATOR:()=>zc,CONFIG_USE_DUALSTACK_ENDPOINT:()=>Uv,CONFIG_USE_FIPS_ENDPOINT:()=>$v,CredentialsProviderError:()=>Kd,DEFAULT_PROFILE:()=>NY,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>c0e,DEFAULT_USE_FIPS_ENDPOINT:()=>d0e,ENV_PROFILE:()=>RY,ENV_USE_DUALSTACK_ENDPOINT:()=>Fv,ENV_USE_FIPS_ENDPOINT:()=>qv,NODE_REGION_CONFIG_FILE_OPTIONS:()=>vs,NODE_REGION_CONFIG_OPTIONS:()=>kn,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Vc,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>Yc,ProviderError:()=>Wo,REGION_ENV_NAME:()=>jg,REGION_INI_NAME:()=>Jg,SelectorType:()=>ts,TokenProviderError:()=>Rv,booleanSelector:()=>ao,chain:()=>Nv,externalDataInterceptor:()=>r0e,fromStatic:()=>Mv,fromValue:()=>Tv,getHomeDir:()=>Hc,getProfileName:()=>Qv,getRegionInfo:()=>Q0e,getSSOTokenFilepath:()=>Dv,getSSOTokenFromFile:()=>Lwe,loadConfig:()=>nt,loadSharedConfigFiles:()=>Wg,loadSsoSessionData:()=>Jwe,memoize:()=>Vg,nodeDualstackConfigSelectors:()=>l0e,nodeFipsConfigSelectors:()=>p0e,numberSelector:()=>Twe,parseKnownFiles:()=>e0e,readFile:()=>mf,resolveCustomEndpointsConfig:()=>f0e,resolveDefaultsModeConfig:()=>Wc,resolveEndpointsConfig:()=>y0e,resolveRegionConfig:()=>jo});var Tt=I(()=>{Tx();Bv();Nwe();bY();SY();Pv();vv();Pwe();_v();Yg();TY();PY();vY();Owe();Lv();Kwe();t0e();n0e();Qx();FY();MY();u0e();m0e();A0e();E0e();UY();S0e();D0e();$0e()});var G0e,H0e,z0e,V0e=I(()=>{G0e="AWS_ENDPOINT_URL",H0e="endpoint_url",z0e=i(t=>({environmentVariableSelector:i(e=>{let r=t.split(" ").map(o=>o.toUpperCase()),n=e[[G0e,...r].join("_")];if(n)return n;let s=e[G0e];if(s)return s},"environmentVariableSelector"),configFileSelector:i((e,r)=>{if(r&&e.services){let s=r[["services",e.services].join(".")];if(s){let o=t.split(" ").map(c=>c.toLowerCase()),a=s[[o.join("_"),H0e].join(".")];if(a)return a}}let n=e[H0e];if(n)return n},"configFileSelector"),default:void 0}),"getEndpointUrlConfig")});var Dx,Y0e=I(()=>{Tt();V0e();Dx=i(async t=>nt(z0e(t??""))(),"getEndpointFromConfig")});var W0e,Tyt,Pyt,vyt,_yt,Qyt,j0e=I(()=>{W0e=i(async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Qyt(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!_yt(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},"resolveParamsForS3"),Tyt=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Pyt=/(\d+\.){3}\d+/,vyt=/\.\./,_yt=i(t=>Tyt.test(t)&&!Pyt.test(t)&&!vyt.test(t),"isDnsCompatibleBucketName"),Qyt=i(t=>{let[e,r,n,,,s]=t.split(":"),o=e==="arn"&&t.split(":").length>=6,a=!!(o&&r&&n&&s);if(o&&!a)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return a},"isArnBucketName")});var J0e=I(()=>{j0e()});var K0e,X0e=I(()=>{K0e=i((t,e,r,n=!1)=>{let s=i(async()=>{let o;return n?o=r.clientContextParams?.[t]??r[t]??r[e]:o=r[t]??r[e],typeof o=="function"?o():o},"configProvider");return t==="credentialScope"||e==="CredentialScope"?async()=>{let o=typeof r.credentials=="function"?await r.credentials():r.credentials;return o?.credentialScope??o?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{let o=typeof r.credentials=="function"?await r.credentials():r.credentials;return o?.accountId??o?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let o=await s();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){let{protocol:a,hostname:c,port:l,path:u}=o;return`${a}//${c}${l?":"+l:""}${u}`}}return o}:s},"createConfigValueProvider")});var Sa,zY=I(()=>{De();Sa=i(t=>{if(typeof t=="object"){if("url"in t){let e=rs(t.url);if(t.headers){e.headers={};for(let r in t.headers)e.headers[r.toLowerCase()]=t.headers[r].join(", ")}return e}return t}return rs(t)},"toEndpointV1")});var Hv=I(()=>{zY()});function zv(t){return async(e,r,n,s)=>{if(!n.isCustomEndpoint){let c;n.serviceConfiguredEndpoint?c=await n.serviceConfiguredEndpoint():c=await t(n.serviceId),c&&(n.endpoint=()=>Promise.resolve(Sa(c)),n.isCustomEndpoint=!0)}let o=await kx(e,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let a=n.endpointProvider(o,s);if(n.isCustomEndpoint&&n.endpoint){let c=await n.endpoint();if(c?.headers){a.headers??={};for(let[l,u]of Object.entries(c.headers))a.headers[l]=Array.isArray(u)?u:[u]}}return a}}var kx,Vv=I(()=>{J0e();X0e();Hv();i(zv,"bindGetEndpointFromInstructions");kx=i(async(t,e,r)=>{let n={},s=e?.getEndpointParameterInstructions?.()||{};for(let[o,a]of Object.entries(s))switch(a.type){case"staticContextParams":n[o]=a.value;break;case"contextParams":n[o]=t[a.name];break;case"clientContextParams":case"builtInParams":n[o]=await K0e(a.name,o,r,a.type!=="builtInParams")();break;case"operationContextParams":n[o]=a.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(s).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await W0e(n),n},"resolveParams")});function Dyt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}function Yv(t){let e=zv(t);return({config:r,instructions:n})=>(s,o)=>async a=>{r.isCustomEndpoint&&Dyt(o,"ENDPOINT_OVERRIDE","N");let c=await e(a.input,{getEndpointParameterInstructions(){return n}},{...r},o);o.endpointV2=c,o.authSchemes=c.properties?.authSchemes;let l=o.authSchemes?.[0];if(l){o.signing_region=l.signingRegion,o.signing_service=l.signingName;let d=Ar(o)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return s({...a})}}var VY=I(()=>{Ce();Vv();i(Dyt,"setFeature");i(Yv,"bindEndpointMiddleware")});function Z0e(t){let e=Yv(t);return(r,n)=>({applyToStack:i(s=>{s.addRelativeTo(e({config:r,instructions:n}),YY)},"applyToStack")})}var kyt,YY,WY=I(()=>{VY();kyt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},YY={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:kyt.name};i(Z0e,"bindGetEndpointPlugin")});function ebe(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:s,useFipsEndpoint:o}=e,a=n!=null?async()=>Sa(await Ut(n)()):void 0,l=Object.assign(e,{endpoint:a,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:Ut(s??!1),useFipsEndpoint:Ut(o??!1)}),u;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),l}}var tbe=I(()=>{Ce();Hv();i(ebe,"bindResolveEndpointConfig")});var Li,rbe=I(()=>{Li=class t{static{i(this,"BinaryDecisionDiagram")}nodes;root;conditions;results;constructor(e,r,n,s){this.nodes=e,this.root=r,this.conditions=n,this.results=s}static from(e,r,n,s){return new t(e,r,n,s)}}});var Oi,nbe=I(()=>{Oi=class{static{i(this,"EndpointCache")}capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){let n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let s=this.data.keys(),o=0;for(;;){let{value:a,done:c}=s.next();if(this.data.delete(a),c||++o>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let s of n){let o=String(e[s]??"");if(o.includes("|;"))return!1;r+=o+"|;"}return r}}});var St,sbe=I(()=>{St=class extends Error{static{i(this,"EndpointError")}constructor(e){super(e),this.name="EndpointError"}}});var obe=I(()=>{});var ibe=I(()=>{});var abe=I(()=>{});var cbe=I(()=>{});var lbe=I(()=>{});var ube=I(()=>{});var Jo=I(()=>{sbe();obe();ibe();abe();cbe();lbe();ube()});var Cu,dbe=I(()=>{Cu="endpoints"});function Mi(t){return typeof t!="object"||t==null?t:"ref"in t?`$${Mi(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(Mi).join(", ")})`:JSON.stringify(t,null,2)}var pbe=I(()=>{i(Mi,"toDebugString")});var Lx=I(()=>{dbe();pbe()});var co,Wv=I(()=>{co={}});var mbe,fbe=I(()=>{mbe=i((t,e)=>t===e,"booleanEquals")});function Abe(...t){for(let e of t)if(e!=null)return e}var hbe=I(()=>{i(Abe,"coalesce")});var gbe,ybe=I(()=>{Jo();gbe=i(t=>{let e=t.split("."),r=[];for(let n of e){let s=n.indexOf("[");if(s!==-1){if(n.indexOf("]")!==n.length-1)throw new St(`Path: '${t}' does not end with ']'`);let o=n.slice(s+1,-1);if(Number.isNaN(parseInt(o)))throw new St(`Invalid array index: '${o}' in path: '${t}'`);s!==0&&r.push(n.slice(0,s)),r.push(o)}else r.push(n)}return r},"getAttrPathList")});var jv,Ebe=I(()=>{Jo();ybe();jv=i((t,e)=>gbe(e).reduce((r,n)=>{if(typeof r!="object")throw new St(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);if(Array.isArray(r)){let s=parseInt(n);return r[s<0?r.length+s:s]}return r[n]},t),"getAttr")});var Cbe,Ibe=I(()=>{Cbe=i(t=>t!=null,"isSet")});var Lyt,Eu,jY=I(()=>{Lyt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Eu=i((t,e=!1)=>{if(!e)return Lyt.test(t);let r=t.split(".");for(let n of r)if(!Eu(n))return!1;return!0},"isValidHostLabel")});function xbe(t,e,r){return t?e:r}var wbe=I(()=>{i(xbe,"ite")});var bbe,Sbe=I(()=>{bbe=i(t=>!t,"not")});var Oyt,Iu,JY=I(()=>{Oyt=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Iu=i(t=>Oyt.test(t)||t.startsWith("[")&&t.endsWith("]"),"isIpAddress")});var Jv,KY,Bbe,Rbe=I(()=>{Jv=D(Ia());JY();KY={[Jv.EndpointURLScheme.HTTP]:80,[Jv.EndpointURLScheme.HTTPS]:443},Bbe=i(t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:m,port:f,protocol:g="",path:E="",query:x={}}=t,w=new URL(`${g}//${m}${f?`:${f}`:""}${E}`);return w.search=Object.entries(x).map(([S,P])=>`${S}=${P}`).join("&"),w}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=e.href,{host:n,hostname:s,pathname:o,protocol:a,search:c}=e;if(c)return null;let l=a.slice(0,-1);if(!Object.values(Jv.EndpointURLScheme).includes(l))return null;let u=Iu(s),d=r.includes(`${n}:${KY[l]}`)||typeof t=="string"&&t.includes(`${n}:${KY[l]}`),p=`${n}${d?`:${KY[l]}`:""}`;return{scheme:l,authority:p,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:u}},"parseURL")});function Nbe(t,e,r){if(r===1)return[t];if(t==="")return[""];let n=t.split(e);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(e))}var Tbe=I(()=>{i(Nbe,"split")});var Pbe,vbe=I(()=>{Pbe=i((t,e)=>t===e,"stringEquals")});var _be,Qbe=I(()=>{_be=i((t,e,r,n)=>t==null||e>=r||t.length{Dbe=i(t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode")});var XY=I(()=>{fbe();hbe();Ebe();Ibe();jY();wbe();Sbe();Rbe();Tbe();vbe();Qbe();kbe()});var Lbe,Obe=I(()=>{XY();Lbe={booleanEquals:mbe,coalesce:Abe,getAttr:jv,isSet:Cbe,isValidHostLabel:Eu,ite:xbe,not:bbe,parseURL:Bbe,split:Nbe,stringEquals:Pbe,substring:_be,uriEncode:Dbe}});var Kv,ZY=I(()=>{XY();Kv=i((t,e)=>{let r=[],{referenceRecord:n,endpointParams:s}=e,o=0;for(;o{Mbe=i(({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t],"getReferenceValue")});var xu,Xv,Ube,Kg=I(()=>{Jo();Wv();Obe();ZY();Fbe();xu=i((t,e,r)=>{if(typeof t=="string")return Kv(t,r);if(t.fn)return Ube.callFunction(t,r);if(t.ref)return Mbe(t,r);throw new St(`'${e}': ${String(t)} is not a string, function or reference.`)},"evaluateExpression"),Xv=i(({fn:t,argv:e},r)=>{let n=Array(e.length);for(let a=0;a{Kg()});var Zv,eW=I(()=>{Lx();Jo();qbe();Zv=i((t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new St(`'${r}' is already defined in Reference Record.`);let n=Xv(t,e);e.logger?.debug?.(`${Cu} evaluateCondition: ${Mi(t)} = ${Mi(n)}`);let s=n===""?!0:!!n;return r!=null?{result:s,toAssign:{name:r,value:n}}:{result:s}},"evaluateCondition")});var e_,tW=I(()=>{Jo();Kg();e_=i((t,e)=>Object.entries(t??{}).reduce((r,[n,s])=>(r[n]=s.map(o=>{let a=xu(o,"Header value entry",e);if(typeof a!="string")throw new St(`Header '${n}' value '${a}' is not a string`);return a}),r),{}),"getEndpointHeaders")});var Ox,$be,Gbe,rW=I(()=>{Jo();ZY();Ox=i((t,e)=>Object.entries(t).reduce((r,[n,s])=>(r[n]=Gbe.getEndpointProperty(s,e),r),{}),"getEndpointProperties"),$be=i((t,e)=>{if(Array.isArray(t))return t.map(r=>$be(r,e));switch(typeof t){case"string":return Kv(t,e);case"object":if(t===null)throw new St(`Unexpected endpoint property: ${t}`);return Gbe.getEndpointProperties(t,e);case"boolean":return t;default:throw new St(`Unexpected endpoint property type: ${typeof t}`)}},"getEndpointProperty"),Gbe={getEndpointProperty:$be,getEndpointProperties:Ox}});var t_,nW=I(()=>{Jo();Kg();t_=i((t,e)=>{let r=xu(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new St(`Endpoint URL must be a string, got ${typeof r}`)},"getEndpointUrl")});var sW,jc,Hbe=I(()=>{Jo();eW();Kg();tW();rW();nW();sW=1e8,jc=i((t,e)=>{let{nodes:r,root:n,results:s,conditions:o}=t,a=n,c={},l={referenceRecord:c,endpointParams:e.endpointParams,logger:e.logger};for(;a!==1&&a!==-1&&a=0===x.result?p:m}if(a>=sW){let u=s[a-sW];if(u[0]===-1){let[,f]=u;throw new St(xu(f,"Error",l))}let[d,p,m]=u;return{url:t_(d,l),properties:Ox(p,l),headers:e_(m??{},l)}}throw new St("No matching endpoint.")},"decideEndpoint")});var Xg,r_=I(()=>{Lx();eW();Xg=i((t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},s=!1;for(let o of t){let{result:a,toAssign:c}=Zv(o,n);if(!a)return{result:a};c&&(s=!0,r[c.name]=c.value,n.referenceRecord[c.name]=c.value,e.logger?.debug?.(`${Cu} assign: ${c.name} := ${Mi(c.value)}`))}return s?{result:!0,referenceRecord:r}:{result:!0}},"evaluateConditions")});var zbe,Vbe=I(()=>{Lx();r_();tW();rW();nW();zbe=i((t,e)=>{let{conditions:r,endpoint:n}=t,{result:s,referenceRecord:o}=Xg(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e,{url:c,properties:l,headers:u}=n;e.logger?.debug?.(`${Cu} Resolving endpoint from template: ${Mi(n)}`);let d={url:t_(c,a)};return u!=null&&(d.headers=e_(u,a)),l!=null&&(d.properties=Ox(l,a)),d},"evaluateEndpointRule")});var Ybe,Wbe=I(()=>{Jo();r_();Kg();Ybe=i((t,e)=>{let{conditions:r,error:n}=t,{result:s,referenceRecord:o}=Xg(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;throw new St(xu(n,"Error",a))},"evaluateErrorRule")});var oW,Myt,jbe,Jbe=I(()=>{Jo();r_();Vbe();Wbe();oW=i((t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=zbe(r,e);if(n)return n}else if(r.type==="error")Ybe(r,e);else if(r.type==="tree"){let n=jbe.evaluateTreeRule(r,e);if(n)return n}else throw new St(`Unknown endpoint rule: ${r}`);throw new St("Rules evaluation failed")},"evaluateRules"),Myt=i((t,e)=>{let{conditions:r,rules:n}=t,{result:s,referenceRecord:o}=Xg(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;return jbe.evaluateRules(n,a)},"evaluateTreeRule"),jbe={evaluateRules:oW,evaluateTreeRule:Myt}});var Kbe=I(()=>{Wv();Jbe()});var Mx,Xbe=I(()=>{Lx();Jo();Kbe();Mx=i((t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:s,rules:o}=t;e.logger?.debug?.(`${Cu} Initial EndpointParams: ${Mi(r)}`);for(let c in s){let l=s[c],u=r[c];if(u==null&&l.default!=null){r[c]=l.default;continue}if(l.required&&u==null)throw new St(`Missing required parameter: '${c}'`)}let a=oW(o,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${Cu} Resolved endpoint: ${Mi(a)}`),a},"resolveEndpoint")});var Zbe,eSe=I(()=>{Zbe=i(t=>{let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),t},"resolveEndpointRequiredConfig")});var ff={};rn(ff,{BinaryDecisionDiagram:()=>Li,EndpointCache:()=>Oi,EndpointError:()=>St,customEndpointFunctions:()=>co,decideEndpoint:()=>jc,endpointMiddleware:()=>Uyt,endpointMiddlewareOptions:()=>YY,getEndpointFromInstructions:()=>Fyt,getEndpointPlugin:()=>Ba,isIpAddress:()=>Iu,isValidHostLabel:()=>Eu,middlewareEndpointToEndpointV1:()=>Sa,resolveEndpoint:()=>Mx,resolveEndpointConfig:()=>wu,resolveEndpointRequiredConfig:()=>Zbe,resolveParams:()=>kx,toEndpointV1:()=>Sa});var Fyt,wu,Uyt,Ba,wt=I(()=>{Y0e();Vv();VY();WY();tbe();zY();rbe();nbe();Hbe();JY();jY();Wv();Xbe();Jo();Vv();Hv();WY();eSe();Fyt=zv(Dx),wu=ebe(Dx),Uyt=Yv(Dx),Ba=Z0e(Dx)});var n_,iW=I(()=>{wt();n_=i((t,e)=>(r,n)=>async s=>{let o=t,a=n.endpointV2?async()=>Sa(n.endpointV2):o.endpoint;if(!a)throw new Error("No valid endpoint provider available.");let c=await e(s.input,{...t,endpoint:a});return r({...s,request:c})},"serializerMiddleware")});function tSe(t,e,r){return{applyToStack:i(n=>{n.add(Sv(t,r),aW),n.add(n_(t,e),cW)},"applyToStack")}}var aW,cW,rSe=I(()=>{wY();iW();aW={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},cW={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(tSe,"getSerdePlugin")});function nSe(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?Wd(t,e):ArrayBuffer.isView(t)?wa(t.buffer,t.byteOffset,t.byteLength):wa(t)}var s_,Fi,sSe=I(()=>{s_=require("node:crypto");jd();IY();Fi=class{static{i(this,"Hash")}algorithmIdentifier;secret;hash;constructor(e,r){this.algorithmIdentifier=e,this.secret=r,this.reset()}update(e,r){this.hash.update(bv(nSe(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,s_.createHmac)(this.algorithmIdentifier,nSe(this.secret)):(0,s_.createHash)(this.algorithmIdentifier)}};i(nSe,"castSourceData")});var oSe,Zg,lW=I(()=>{oSe=require("node:stream");lY();Zg=class extends oSe.Duplex{static{i(this,"ChecksumStream")}expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:e,checksum:r,source:n,checksumSourceLocation:s,base64Encoder:o}){if(super(),typeof n.pipe=="function")this.source=n;else throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.base64Encoder=o??hr,this.expectedChecksum=e,this.checksum=r,this.checksumSourceLocation=s,this.source.pipe(this)}_read(e){if(this.pendingCallback){let r=this.pendingCallback;this.pendingCallback=null,r()}}_write(e,r,n){try{if(this.checksum.update(e),!this.push(e)){this.pendingCallback=n;return}}catch(s){return n(s)}return n()}async _final(e){try{let r=await this.checksum.digest(),n=this.base64Encoder(r);if(this.expectedChecksum!==n)return e(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}" in response header "${this.checksumSourceLocation}".`))}catch(r){return e(r)}return this.push(null),e()}}});var On,o_,bu=I(()=>{On=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),o_=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var iSe,aSe=I(()=>{iSe=i(t=>new TextEncoder().encode(t),"fromUtf8")});var cSe,uW,lSe,Xd,Af,uSe,dW=I(()=>{cSe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uW=Object.entries(cSe).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),lSe=cSe.split(""),Xd=6,Af=8,uSe=63});function i_(t){let e;typeof t=="string"?e=iSe(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let s="";for(let o=0;o>d]}s+="==".slice(0,4-l)}return s}var pW=I(()=>{aSe();dW();i(i_,"toBase64")});var qyt,a_,dSe=I(()=>{qyt=typeof ReadableStream=="function"?ReadableStream:function(){},a_=class extends qyt{static{i(this,"ChecksumStream")}}});var pSe,mSe=I(()=>{pW();bu();dSe();pSe=i(({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:s})=>{if(!On(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=s??i_;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let a=new TransformStream({start(){},async transform(l,u){e.update(l),u.enqueue(l)},async flush(l){let u=await e.digest(),d=o(u);if(t!==d){let p=new Error(`Checksum mismatch: expected "${t}" but received "${d}" in response header "${n}".`);l.error(p)}else l.terminate()}});r.pipeThrough(a);let c=a.readable;return Object.setPrototypeOf(c,a_.prototype),c},"createChecksumStream")});function fSe(t){return typeof ReadableStream=="function"&&On(t.source)?pSe(t):new Zg(t)}var ASe=I(()=>{bu();lW();mSe();i(fSe,"createChecksumStream")});var hf,mW=I(()=>{hf=class{static{i(this,"ByteArrayCollector")}allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),r=0;for(let n=0;nnew Uint8Array(u))],c=-1,l=i(async u=>{let{value:d,done:p}=await n.read(),m=d;if(p){if(c!==-1){let f=gf(a,c);Su(f)>0&&u.enqueue(f)}u.close()}else{let f=AW(m,!1);if(c!==f&&(c>=0&&u.enqueue(gf(a,c)),c=f),c===-1){u.enqueue(m);return}let g=Su(m);o+=g;let E=Su(a[c]);if(g>=e&&E===0)u.enqueue(m);else{let x=fW(a,c,m);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${g} is below threshold of ${e}, automatically buffering.`)),x>=e?u.enqueue(gf(a,c)):await l(u)}}},"pull");return new ReadableStream({pull:l})}function fW(t,e,r){switch(e){case 0:return t[0]+=r,Su(t[0]);case 1:case 2:return t[e].push(r),Su(t[e])}}function gf(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function Su(t){return t?.byteLength??t?.length??0}function AW(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var gSe=I(()=>{mW();i(hSe,"createBufferedReadableStream");i(fW,"merge");i(gf,"flush");i(Su,"sizeOf");i(AW,"modeOf")});function ESe(t,e,r){if(On(t))return hSe(t,e,r);let n=new ySe.Readable({read(){}}),s=!1,o=0,a=["",new hf(l=>new Uint8Array(l)),new hf(l=>Buffer.from(new Uint8Array(l)))],c=-1;return t.on("data",l=>{let u=AW(l,!0);if(c!==u&&(c>=0&&n.push(gf(a,c)),c=u),c===-1){n.push(l);return}let d=Su(l);o+=d;let p=Su(a[c]);if(d>=e&&p===0)n.push(l);else{let m=fW(a,c,l);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${d} is below threshold of ${e}, automatically buffering.`)),m>=e&&n.push(gf(a,c))}}),t.on("end",()=>{if(c!==-1){let l=gf(a,c);Su(l)>0&&n.push(l)}n.push(null)}),n}var ySe,CSe=I(()=>{ySe=require("node:stream");mW();gSe();bu();i(ESe,"createBufferedReadable")});var ISe,xSe=I(()=>{ISe=i((t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:s,checksumLocationName:o,streamHasher:a}=e,c=r!==void 0&&n!==void 0&&s!==void 0&&o!==void 0&&a!==void 0,l=c?a(s,t):void 0,u=t.getReader();return new ReadableStream({async pull(d){let{value:p,done:m}=await u.read();if(m){if(d.enqueue(`0\r `),c){let f=r(await l);d.enqueue(`${o}:${f}\r `),d.enqueue(`\r `)}d.close()}else d.enqueue(`${(n(p)||0).toString(16)}\r ${p}\r -`)}})},"getAwsChunkedEncodingStream")});function pSe(t,e){let r=t,n=t;if(Ln(n))return lSe(n,e);let{base64Encoder:s,bodyLengthChecker:o,checksumAlgorithmFn:a,checksumLocationName:c,streamHasher:l}=e,u=s!==void 0&&a!==void 0&&c!==void 0&&l!==void 0,d=u?l(a,r):void 0,p=new dSe.Readable({read:i(()=>{},"read")});return r.on("data",m=>{let f=o(m)||0;f!==0&&(p.push(`${f.toString(16)}\r +`)}})},"getAwsChunkedEncodingStream")});function bSe(t,e){let r=t,n=t;if(On(n))return ISe(n,e);let{base64Encoder:s,bodyLengthChecker:o,checksumAlgorithmFn:a,checksumLocationName:c,streamHasher:l}=e,u=s!==void 0&&a!==void 0&&c!==void 0&&l!==void 0,d=u?l(a,r):void 0,p=new wSe.Readable({read:i(()=>{},"read")});return r.on("data",m=>{let f=o(m)||0;f!==0&&(p.push(`${f.toString(16)}\r `),p.push(m),p.push(`\r `))}),r.on("end",async()=>{if(p.push(`0\r `),u){let m=s(await d);p.push(`${c}:${m}\r `),p.push(`\r -`)}p.push(null)}),p}var dSe,mSe=I(()=>{dSe=require("node:stream");uSe();wu();i(pSe,"getAwsChunkedEncodingStream")});async function fSe(t,e){let r=0,n=[],s=t.getReader(),o=!1;for(;!o;){let{done:l,value:u}=await s.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;o=l}s.releaseLock();let a=new Uint8Array(Math.min(e,r)),c=0;for(let l of n){if(l.byteLength>a.byteLength-c){a.set(l.subarray(0,a.byteLength-c),c);break}else a.set(l,c);c+=l.length}return a}var ASe=I(()=>{i(fSe,"headStream")});var hSe,gSe,lW,ySe=I(()=>{hSe=require("node:stream");ASe();wu();gSe=i((t,e)=>Ln(t)?fSe(t,e):new Promise((r,n)=>{let s=new lW;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=new Uint8Array(Buffer.concat(this.buffers));r(o)})}),"headStream"),lW=class extends hSe.Writable{static{i(this,"Collector")}buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let s=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-s),this.emit("finish")}n()}}});var ESe,CSe=I(()=>{ESe=i(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)},"toUtf8")});var ISe,xSe=I(()=>{sW();ISe=i(t=>{let e=t.length/4*3;t.slice(-2)==="=="?e-=2:t.slice(-1)==="="&&e--;let r=new ArrayBuffer(e),n=new DataView(r);for(let s=0;s>=Xd;let c=s/4*3;o>>=a%pf;let l=Math.floor(a/pf);for(let u=0;u>d)}}return new Uint8Array(r)},"fromBase64")});async function kyt(t){let e=await Oyt(t),r=ISe(e);return new Uint8Array(r)}async function Lyt(t){let e=[],r=t.getReader(),n=!1,s=0;for(;!n;){let{done:c,value:l}=await r.read();l&&(e.push(l),s+=l.length),n=c}let o=new Uint8Array(s),a=0;for(let c of e)o.set(c,a),a+=c.length;return o}function Oyt(t){return new Promise((e,r)=>{let n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));let s=n.result??"",o=s.indexOf(","),a=o>-1?o+1:s.length;e(s.substring(a))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}var wSe,bSe=I(()=>{xSe();wSe=i(async t=>typeof Blob=="function"&&t instanceof Blob||t.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await t.arrayBuffer()):kyt(t):Lyt(t),"streamCollector");i(kyt,"collectBlob");i(Lyt,"collectStream");i(Oyt,"readToBase64")});var SSe,RSe,BSe,NSe=I(()=>{oW();mY();CSe();bSe();wu();SSe="The stream has already been transformed.",RSe=i(t=>{if(!BSe(t)&&!Ln(t)){let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(SSe);return e=!0,await wSe(t)},"transformToByteArray"),n=i(s=>{if(typeof s.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. -If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return s.stream()},"blobToWebStream");return Object.assign(t,{transformToByteArray:r,transformToString:i(async s=>{let o=await r();if(s==="base64")return r_(o);if(s==="hex")return Di(o);if(s===void 0||s==="utf8"||s==="utf-8")return ESe(o);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(o);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(SSe);if(e=!0,BSe(t))return n(t);if(Ln(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),BSe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});async function Fyt(t){let e=[],r=t.getReader(),n=!1,s=0;for(;!n;){let{done:c,value:l}=await r.read();l&&(e.push(l),s+=l.length),n=c}let o=new Uint8Array(s),a=0;for(let c of e)o.set(c,a),a+=c.length;return o}var TSe,uW,Myt,PSe,vSe=I(()=>{TSe=require("node:stream"),uW=class extends TSe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}},Myt=i(t=>typeof ReadableStream=="function"&&t instanceof ReadableStream,"isReadableStreamInstance");i(Fyt,"collectReadableStream");PSe=i(t=>Myt(t)?Fyt(t):new Promise((e,r)=>{let n=new uW;t.pipe(n),t.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));e(s)})}),"streamCollector")});var s_,_Se,o_,QSe=I(()=>{s_=require("node:stream");jd();NSe();vSe();_Se="The stream has already been transformed.",o_=i(t=>{if(!(t instanceof s_.Readable))try{return RSe(t)}catch{let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(_Se);return e=!0,await PSe(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?xa(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(_Se);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof s_.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,s_.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function DSe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var kSe=I(()=>{i(DSe,"splitStream")});async function LSe(t){if(Ln(t)||t_(t))return DSe(t);let e=new dW.PassThrough,r=new dW.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var dW,OSe=I(()=>{dW=require("node:stream");kSe();wu();i(LSe,"splitStream")});var Zd={};en(Zd,{ChecksumStream:()=>Jg,Hash:()=>Mi,LazyJsonString:()=>Zn,NumericValue:()=>qt,Uint8ArrayBlobAdapter:()=>Af,_parseEpochTimestamp:()=>lf,_parseRfc3339DateTimeWithOffset:()=>Av,_parseRfc7231DateTime:()=>hv,calculateBodyLength:()=>Gc,copyDocumentWithTransform:()=>Gxe,createBufferedReadable:()=>aSe,createChecksumStream:()=>rSe,dateToUtcString:()=>wa,deserializerMiddleware:()=>Iv,deserializerMiddlewareOption:()=>eW,expectBoolean:()=>Vxe,expectByte:()=>iv,expectFloat32:()=>xx,expectInt:()=>Yxe,expectInt32:()=>sv,expectLong:()=>Lg,expectNonNull:()=>Wxe,expectNumber:()=>kg,expectObject:()=>sY,expectShort:()=>ov,expectString:()=>jxe,expectUnion:()=>cv,fromArrayBuffer:()=>xa,fromBase64:()=>$r,fromHex:()=>Ev,fromString:()=>Wd,fromUtf8:()=>Gr,generateIdempotencyToken:()=>Ba,getAwsChunkedEncodingStream:()=>pSe,getSerdePlugin:()=>Gbe,handleFloat:()=>Kxe,headStream:()=>gSe,isArrayBuffer:()=>tv,isBlob:()=>t_,isReadableStream:()=>Ln,limitedParseDouble:()=>uv,limitedParseFloat:()=>Xxe,limitedParseFloat32:()=>Zxe,logger:()=>Og,nv:()=>yv,parseBoolean:()=>zxe,parseEpochTimestamp:()=>mv,parseRfc3339DateTime:()=>nwe,parseRfc3339DateTimeWithOffset:()=>pv,parseRfc7231DateTime:()=>Ug,quoteHeader:()=>fv,sdkStreamMixin:()=>o_,serializerMiddleware:()=>Zv,serializerMiddlewareOption:()=>tW,splitEvery:()=>gv,splitHeader:()=>qg,splitStream:()=>LSe,strictParseByte:()=>dv,strictParseDouble:()=>wx,strictParseFloat:()=>Jxe,strictParseFloat32:()=>lv,strictParseInt:()=>twe,strictParseInt32:()=>rwe,strictParseLong:()=>oY,strictParseShort:()=>Jd,toBase64:()=>Ar,toHex:()=>Di,toUint8Array:()=>Cv,toUtf8:()=>hr,v4:()=>Kg});var MSe,Af,Uyt,Kg,Ba,st=I(()=>{MSe=require("node:crypto");Oxe();rY();Fxe();rv();Uxe();$xe();Hxe();swe();owe();iY();iwe();lwe();uwe();dwe();mwe();mY();Awe();fY();jd();tY();hY();Hbe();ZY();Vbe();rW();nSe();cSe();mSe();ySe();QSe();OSe();wu();Af=class extends Mxe(hr,Gr,Ar,$r){static{i(this,"Uint8ArrayBlobAdapter")}},Uyt=MSe.getRandomValues,Kg=qxe(Uyt),Ba=Kg});var co,i_=I(()=>{st();co=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return Af.mutate(t);if(!t)return Af.mutate(new Uint8Array);let r=e.streamCollector(t);return Af.mutate(await r)},"collectBody")});function Jc(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var a_=I(()=>{i(Jc,"extendedEncodeURIComponent")});var vs,Xg=I(()=>{vs=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});function qyt(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var mt,hf=I(()=>{mt=class t{static{i(this,"HttpRequest")}method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=qyt(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}};i(qyt,"cloneQuery")});var es,pW=I(()=>{es=class{static{i(this,"HttpResponse")}statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var ey={};en(ey,{__addDisposableResource:()=>oBe,__assign:()=>c_,__asyncDelegator:()=>KSe,__asyncGenerator:()=>JSe,__asyncValues:()=>XSe,__await:()=>Zg,__awaiter:()=>HSe,__classPrivateFieldGet:()=>rBe,__classPrivateFieldIn:()=>sBe,__classPrivateFieldSet:()=>nBe,__createBinding:()=>u_,__decorate:()=>qSe,__disposeResources:()=>iBe,__esDecorate:()=>$yt,__exportStar:()=>VSe,__extends:()=>FSe,__generator:()=>zSe,__importDefault:()=>tBe,__importStar:()=>eBe,__makeTemplateObject:()=>ZSe,__metadata:()=>GSe,__param:()=>$Se,__propKey:()=>Hyt,__read:()=>fW,__rest:()=>USe,__runInitializers:()=>Gyt,__setFunctionName:()=>zyt,__spread:()=>YSe,__spreadArray:()=>jSe,__spreadArrays:()=>WSe,__values:()=>l_,default:()=>Wyt});function FSe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");mW(t,e);function r(){this.constructor=t}i(r,"__"),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function USe(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 s=0,n=Object.getOwnPropertySymbols(t);s=0;c--)(a=t[c])&&(o=(s<3?a(o):s>3?a(e,r,o):a(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function $Se(t,e){return function(r,n){e(r,n,t)}}function $yt(t,e,r,n,s,o){function a(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}i(a,"accept");for(var c=n.kind,l=c==="getter"?"get":c==="setter"?"set":"value",u=!e&&t?n.static?t:t.prototype:null,d=e||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p,m=!1,f=r.length-1;f>=0;f--){var g={};for(var E in n)g[E]=E==="access"?{}:n[E];for(var E in n.access)g.access[E]=n.access[E];g.addInitializer=function(w){if(m)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(w||null))};var x=(0,r[f])(c==="accessor"?{get:d.get,set:d.set}:d[l],g);if(c==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(p=a(x.get))&&(d.get=p),(p=a(x.set))&&(d.set=p),(p=a(x.init))&&s.unshift(p)}else(p=a(x))&&(c==="field"?s.unshift(p):d[l]=p)}u&&Object.defineProperty(u,n.name,d),m=!0}function Gyt(t,e,r){for(var n=arguments.length>2,s=0;s0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}},"next")};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function fW(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),s,o=[],a;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)o.push(s.value)}catch(c){a={error:c}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function YSe(){for(var t=[],e=0;e1||c(m,f)})})}function c(m,f){try{l(n[m](f))}catch(g){p(o[0][3],g)}}function l(m){m.value instanceof Zg?Promise.resolve(m.value.v).then(u,d):p(o[0][2],m)}function u(m){c("next",m)}function d(m){c("throw",m)}function p(m,f){m(f),o.shift(),o.length&&c(o[0][0],o[0][1])}}function KSe(t){var e,r;return e={},n("next"),n("throw",function(s){throw s}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(s,o){e[s]=t[s]?function(a){return(r=!r)?{value:Zg(t[s](a)),done:!1}:o?o(a):a}:o}}function XSe(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 l_=="function"?l_(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}}function ZSe(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function eBe(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)&&u_(e,t,r);return Vyt(e,t),e}function tBe(t){return t&&t.__esModule?t:{default:t}}function rBe(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function nBe(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r}function sBe(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function oBe(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}function iBe(t){function e(n){t.error=t.hasError?new Yyt(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}i(e,"fail");function r(){for(;t.stack.length;){var n=t.stack.pop();try{var s=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(s).then(r,function(o){return e(o),r()})}catch(o){e(o)}}if(t.hasError)throw t.error}return i(r,"next"),r()}var mW,c_,u_,Vyt,Yyt,Wyt,ty=I(()=>{mW=i(function(t,e){return mW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},mW(t,e)},"extendStatics");i(FSe,"__extends");c_=i(function(){return c_=Object.assign||i(function(e){for(var r,n=1,s=arguments.length;n{var d_=Object.defineProperty,jyt=Object.getOwnPropertyDescriptor,Jyt=Object.getOwnPropertyNames,Kyt=Object.prototype.hasOwnProperty,Xyt=i((t,e)=>d_(t,"name",{value:e,configurable:!0}),"__name"),Zyt=i((t,e)=>{for(var r in e)d_(t,r,{get:e[r],enumerable:!0})},"__export"),eEt=i((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Jyt(e))!Kyt.call(t,s)&&s!==r&&d_(t,s,{get:i(()=>e[s],"get"),enumerable:!(n=jyt(e,s))||n.enumerable});return t},"__copyProps"),tEt=i(t=>eEt(d_({},"__esModule",{value:!0}),t),"__toCommonJS"),aBe={};Zyt(aBe,{isArrayBuffer:i(()=>rEt,"isArrayBuffer")});cBe.exports=tEt(aBe);var rEt=Xyt(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var mBe=b((ySr,pBe)=>{var p_=Object.defineProperty,nEt=Object.getOwnPropertyDescriptor,sEt=Object.getOwnPropertyNames,oEt=Object.prototype.hasOwnProperty,uBe=i((t,e)=>p_(t,"name",{value:e,configurable:!0}),"__name"),iEt=i((t,e)=>{for(var r in e)p_(t,r,{get:e[r],enumerable:!0})},"__export"),aEt=i((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of sEt(e))!oEt.call(t,s)&&s!==r&&p_(t,s,{get:i(()=>e[s],"get"),enumerable:!(n=nEt(e,s))||n.enumerable});return t},"__copyProps"),cEt=i(t=>aEt(p_({},"__esModule",{value:!0}),t),"__toCommonJS"),dBe={};iEt(dBe,{fromArrayBuffer:i(()=>uEt,"fromArrayBuffer"),fromString:i(()=>dEt,"fromString")});pBe.exports=cEt(dBe);var lEt=lBe(),AW=require("buffer"),uEt=uBe((t,e=0,r=t.byteLength-e)=>{if(!(0,lEt.isArrayBuffer)(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return AW.Buffer.from(t,e,r)},"fromArrayBuffer"),dEt=uBe((t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?AW.Buffer.from(t,e):AW.Buffer.from(t)},"fromString")});var yBe=b((CSr,gBe)=>{var m_=Object.defineProperty,pEt=Object.getOwnPropertyDescriptor,mEt=Object.getOwnPropertyNames,fEt=Object.prototype.hasOwnProperty,hW=i((t,e)=>m_(t,"name",{value:e,configurable:!0}),"__name"),AEt=i((t,e)=>{for(var r in e)m_(t,r,{get:e[r],enumerable:!0})},"__export"),hEt=i((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of mEt(e))!fEt.call(t,s)&&s!==r&&m_(t,s,{get:i(()=>e[s],"get"),enumerable:!(n=pEt(e,s))||n.enumerable});return t},"__copyProps"),gEt=i(t=>hEt(m_({},"__esModule",{value:!0}),t),"__toCommonJS"),fBe={};AEt(fBe,{fromUtf8:i(()=>hBe,"fromUtf8"),toUint8Array:i(()=>yEt,"toUint8Array"),toUtf8:i(()=>EEt,"toUtf8")});gBe.exports=gEt(fBe);var ABe=mBe(),hBe=hW(t=>{let e=(0,ABe.fromString)(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),yEt=hW(t=>typeof t=="string"?hBe(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array"),EEt=hW(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,ABe.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});var EBe=b(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.convertToBuffer=void 0;var CEt=yBe(),IEt=typeof Buffer<"u"&&Buffer.from?function(t){return Buffer.from(t,"utf8")}:CEt.fromUtf8;function xEt(t){return t instanceof Uint8Array?t:typeof t=="string"?IEt(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}i(xEt,"convertToBuffer");f_.convertToBuffer=xEt});var CBe=b(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0});A_.isEmptyData=void 0;function wEt(t){return typeof t=="string"?t.length===0:t.byteLength===0}i(wEt,"isEmptyData");A_.isEmptyData=wEt});var IBe=b(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.numToUint8=void 0;function bEt(t){return new Uint8Array([(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255])}i(bEt,"numToUint8");h_.numToUint8=bEt});var xBe=b(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.uint32ArrayFrom=void 0;function SEt(t){if(!Uint32Array.from){for(var e=new Uint32Array(t.length),r=0;r{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.uint32ArrayFrom=Kc.numToUint8=Kc.isEmptyData=Kc.convertToBuffer=void 0;var BEt=EBe();Object.defineProperty(Kc,"convertToBuffer",{enumerable:!0,get:i(function(){return BEt.convertToBuffer},"get")});var REt=CBe();Object.defineProperty(Kc,"isEmptyData",{enumerable:!0,get:i(function(){return REt.isEmptyData},"get")});var NEt=IBe();Object.defineProperty(Kc,"numToUint8",{enumerable:!0,get:i(function(){return NEt.numToUint8},"get")});var TEt=xBe();Object.defineProperty(Kc,"uint32ArrayFrom",{enumerable:!0,get:i(function(){return TEt.uint32ArrayFrom},"get")})});var SBe=b(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0});y_.AwsCrc32=void 0;var wBe=(ty(),W(ey)),yW=gW(),bBe=E_(),PEt=(function(){function t(){this.crc32=new bBe.Crc32}return i(t,"AwsCrc32"),t.prototype.update=function(e){(0,yW.isEmptyData)(e)||this.crc32.update((0,yW.convertToBuffer)(e))},t.prototype.digest=function(){return wBe.__awaiter(this,void 0,void 0,function(){return wBe.__generator(this,function(e){return[2,(0,yW.numToUint8)(this.crc32.digest())]})})},t.prototype.reset=function(){this.crc32=new bBe.Crc32},t})();y_.AwsCrc32=PEt});var E_=b(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.AwsCrc32=ep.Crc32=ep.crc32=void 0;var vEt=(ty(),W(ey)),_Et=gW();function QEt(t){return new BBe().update(t).digest()}i(QEt,"crc32");ep.crc32=QEt;var BBe=(function(){function t(){this.checksum=4294967295}return i(t,"Crc32"),t.prototype.update=function(e){var r,n;try{for(var s=vEt.__values(e),o=s.next();!o.done;o=s.next()){var a=o.value;this.checksum=this.checksum>>>8^kEt[(this.checksum^a)&255]}}catch(c){r={error:c}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return this},t.prototype.digest=function(){return(this.checksum^4294967295)>>>0},t})();ep.Crc32=BBe;var DEt=[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],kEt=(0,_Et.uint32ArrayFrom)(DEt),LEt=SBe();Object.defineProperty(ep,"AwsCrc32",{enumerable:!0,get:i(function(){return LEt.AwsCrc32},"get")})});function RBe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var tp,EW=I(()=>{st();tp=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&RBe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&RBe(e),parseInt(Di(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(RBe,"negate")});var ry,NBe,TBe,OEt,MEt,FEt,UEt,qEt,$Et,GEt,HEt,zEt,CW=I(()=>{st();EW();ry=class{static{i(this,"HeaderMarshaller")}toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let o of Object.keys(e)){let a=this.fromUtf8(o);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}let n=new Uint8Array(r.reduce((o,a)=>o+a.byteLength,0)),s=0;for(let o of r)n.set(o,s),s+=o.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(o.buffer);return a.set(e.value,3),a;case"string":let c=this.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(tp.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!zEt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(Ev(e.value.replace(/\-/g,"")),1),p}}parse(e){let r={},n=0;for(;n{PBe=D(E_()),vBe=4,rp=vBe*2,gf=4,VEt=rp+gf*2;i(_Be,"splitMessage")});var DBe,ny,IW=I(()=>{DBe=D(E_());CW();QBe();ny=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new ry(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),s=n.byteLength+r.byteLength+16,o=new Uint8Array(s),a=new DataView(o.buffer,o.byteOffset,o.byteLength),c=new DBe.Crc32;return a.setUint32(0,s,!1),a.setUint32(4,n.byteLength,!1),a.setUint32(8,c.update(o.subarray(0,8)).digest(),!1),o.set(n,12),o.set(r,n.byteLength+12),a.setUint32(s-4,c.update(o.subarray(8,s-4)).digest(),!1),o}decode(e){let{headers:r,body:n}=_Be(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var sy,xW=I(()=>{sy=class{static{i(this,"MessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var oy,wW=I(()=>{oy=class{static{i(this,"MessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var iy,bW=I(()=>{iy=class{static{i(this,"SmithyMessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var ay,SW=I(()=>{ay=class{static{i(this,"SmithyMessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function C_(t){let e=0,r=0,n=null,s=null,o=i(c=>{if(typeof c!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+c);e=c,r=4,n=new Uint8Array(c),new DataView(n.buffer).setUint32(0,c,!1)},"allocateMessage"),a=i(async function*(){let c=t[Symbol.asyncIterator]();for(;;){let{value:l,done:u}=await c.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let d=l.length,p=0;for(;p{i(C_,"getChunkedStream")});function kBe(t,e){let r=kx(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let s=e.eventStreamCodec.decode(n),o=await r(s);o!==void 0&&(yield o)}}}}function kx(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let s=new Error(r.headers[":error-message"].value||"UnknownError");throw s.name=r.headers[":error-code"].value,s}else if(n==="exception"){let s=r.headers[":exception-type"].value,o={[s]:r},a=await t(o);if(a.$unknown){let c=new Error(e(r.body));throw c.name=s,c}throw a[s]}else if(n==="event"){let s={[r.headers[":event-type"].value]:r},o=await t(s);return o.$unknown?void 0:o}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var RW=I(()=>{i(kBe,"getUnmarshalledStream");i(kx,"getMessageUnmarshaller")});var yf,LBe,NW=I(()=>{IW();xW();wW();bW();SW();BW();RW();yf=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new ny(e,r),this.utfEncoder=e}deserialize(e,r){let n=C_(e);return new iy({messageStream:new sy({inputStream:n,decoder:this.eventStreamCodec}),deserializer:kx(r,this.utfEncoder)})}serialize(e,r){return new oy({messageStream:new ay({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},LBe=i(t=>new yf(t),"eventStreamSerdeProvider")});async function*YEt(t){let e=!1,r=!1,n=new Array;for(t.on("error",s=>{if(e||(e=!0),s)throw s}),t.on("data",s=>{n.push(s)}),t.on("end",()=>{e=!0});!r;){let s=await new Promise(o=>setTimeout(()=>o(n.shift()),0));s&&(yield s),r=e&&n.length===0}}var OBe,Lx,MBe,FBe=I(()=>{OBe=require("node:stream");NW();Lx=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new yf({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:YEt(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return OBe.Readable.from(this.universalMarshaller.serialize(e,r))}},MBe=i(t=>new Lx(t),"eventStreamSerdeProvider");i(YEt,"readableToIterable")});var UBe,qBe,$Be=I(()=>{UBe=i(t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),"readableStreamToIterable"),qBe=i(t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:s}=await e.next();if(n)return r.close();r.enqueue(s)}})},"iterableToReadableStream")});var GBe,HBe=I(()=>{GBe=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var I_,zBe=I(()=>{st();I_=class{static{i(this,"EventStreamSerde")}marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:s,defaultContentType:o}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=s,this.defaultContentType=o}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){let s=this.marshaller,o=r.getEventStreamMember(),a=r.getMemberSchema(o),c=this.serializer,l=this.defaultContentType,u=Symbol("initialRequestMarker"),d={async*[Symbol.asyncIterator](){if(n){let p={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:l}};c.write(r,n);let m=c.flush();yield{[u]:!0,headers:p,body:m}}for await(let p of e)yield p}};return s.serialize(d,p=>{if(p[u])return{headers:p.headers,body:p.body};let m="";for(let S in p)if(S!=="__type"){m=S;break}let{additionalHeaders:f,body:g,eventType:E,explicitPayloadContentType:x}=this.writeEventBody(m,a,p);return{headers:{":event-type":{type:"string",value:E},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:x??l},...f},body:g}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){let s=this.marshaller,o=r.getEventStreamMember(),c=r.getMemberSchema(o).getMemberSchemas(),l=Symbol("initialResponseMarker"),u=s.deserialize(e.body,async m=>{let f="";for(let E in m)if(E!=="__type"){f=E;break}let g=m[f].body;if(f==="initial-response"){let E=await this.deserializer.read(r,g);return delete E[o],{[l]:!0,...E}}else if(f in c){let E=c[f];if(E.isStructSchema()){let x={},w=!1;for(let[S,P]of E.structIterator()){let{eventHeader:Q,eventPayload:q}=P.getMergedTraits();if(w=w||!!(Q||q),q)P.isBlobSchema()?x[S]=g:P.isStringSchema()?x[S]=(this.serdeContext?.utf8Encoder??hr)(g):P.isStructSchema()&&(x[S]=await this.deserializer.read(P,g));else if(Q){let M=m[f].headers[S]?.value;M!=null&&(P.isNumericSchema()?M&&typeof M=="object"&&"bytes"in M?x[S]=BigInt(M.toString()):x[S]=Number(M):x[S]=M)}}if(w)return{[f]:x};if(g.byteLength===0)return{[f]:{}}}return{[f]:await this.deserializer.read(E,g)}}else return{$unknown:m}}),d=u[Symbol.asyncIterator](),p=await d.next();if(p.done)return u;if(p.value?.[l]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let m in p.value)n[m]=p.value[m]}return{async*[Symbol.asyncIterator](){for(p?.value?.[l]||(yield p.value);;){let{done:m,value:f}=await d.next();if(m)break;yield f}}}}writeEventBody(e,r,n){let s=this.serializer,o=e,a=null,c,l=r.getSchema()[4].includes(e),u={};if(l){let m=r.getMemberSchema(e);if(m.isStructSchema()){for(let[f,g]of m.structIterator()){let{eventHeader:E,eventPayload:x}=g.getMergedTraits();if(x)a=f;else if(E){let w=n[e][f],S="binary";g.isNumericSchema()?(-2)**31<=w&&w<=2**31-1?S="integer":S="long":g.isTimestampSchema()?S="timestamp":g.isStringSchema()?S="string":g.isBooleanSchema()&&(S="boolean"),w!=null&&(u[f]={type:S,value:w},delete n[e][f])}}if(a!==null){let f=m.getMemberSchema(a);f.isBlobSchema()?c="application/octet-stream":f.isStringSchema()&&(c="text/plain"),s.write(f,n[e][a])}else s.write(m,n[e])}else if(m.isUnitSchema())s.write(m,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[m,f]=n[e];o=m,s.write(15,f)}let d=s.flush()??new Uint8Array;return{body:typeof d=="string"?(this.serdeContext?.utf8Decoder??Gr)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var VBe={};en(VBe,{EventStreamCodec:()=>ny,EventStreamMarshaller:()=>Lx,EventStreamSerde:()=>I_,HeaderMarshaller:()=>ry,Int64:()=>tp,MessageDecoderStream:()=>sy,MessageEncoderStream:()=>oy,SmithyMessageDecoderStream:()=>iy,SmithyMessageEncoderStream:()=>ay,UniversalEventStreamMarshaller:()=>yf,eventStreamSerdeProvider:()=>MBe,getChunkedStream:()=>C_,getMessageUnmarshaller:()=>kx,getUnmarshalledStream:()=>kBe,iterableToReadableStream:()=>qBe,readableStreamToIterable:()=>UBe,resolveEventStreamSerdeConfig:()=>GBe,universalEventStreamSerdeProvider:()=>LBe});var YBe=I(()=>{IW();CW();EW();xW();wW();bW();SW();FBe();$Be();NW();BW();RW();HBe();zBe()});var Ef,x_=I(()=>{Ct();Xg();hf();pW();Ef=class extends vs{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=gr.for(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return mt}getResponseType(){return es}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,s]of r.url.searchParams.entries())e.query[n]=s;if(r.headers)for(let n in r.headers)e.headers[n]=r.headers[n].join(", ");return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)e.headers[n]=r.headers[n];return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let s=Ee.of(r.input),o=Xc(r.traits??{});if(o.endpoint){let a=o.endpoint?.[0];if(typeof a=="string"){for(let[c,l]of s.structIterator()){if(!l.getMergedTraits().hostLabel)continue;let u=n[c];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${c} in input must be a string as hostLabel.`);a=a.replace(`{${c}}`,u)}e.hostname=a+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await Promise.resolve().then(()=>(YBe(),VBe));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,s,o){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}});var Cf,WBe=I(()=>{Ct();st();x_();i_();a_();hf();Cf=class extends Ef{static{i(this,"HttpBindingProtocol")}async serializeRequest(e,r,n){let s=r&&typeof r=="object"?r:{},o=this.serializer,a={},c={},l=await n.endpoint(),u=Ee.of(e?.input),d=[],p=[],m=!1,f,g=new mt({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:c,body:void 0});if(l){this.updateServiceEndpoint(g,l),this.setHostPrefix(g,e,s);let E=Xc(e.traits);if(E.http){g.method=E.http[0];let[x,w]=E.http[1].split("?");g.path=="/"?g.path=x:g.path+=x;let S=new URLSearchParams(w??"");for(let[P,Q]of S)a[P]=Q}}for(let[E,x]of u.structIterator()){let w=x.getMergedTraits()??{},S=s[E];if(S==null&&!x.isIdempotencyToken()){if(w.httpLabel&&(g.path.includes(`{${E}+}`)||g.path.includes(`{${E}}`)))throw new Error(`No value provided for input HTTP label: ${E}.`);continue}if(w.httpPayload)x.isStreaming()?x.isStructSchema()?s[E]&&(f=await this.serializeEventStream({eventStream:s[E],requestSchema:u})):f=S:(o.write(x,S),f=o.flush());else if(w.httpLabel){o.write(x,S);let P=o.flush();g.path.includes(`{${E}+}`)?g.path=g.path.replace(`{${E}+}`,P.split("/").map(Jc).join("/")):g.path.includes(`{${E}}`)&&(g.path=g.path.replace(`{${E}}`,Jc(P)))}else if(w.httpHeader)o.write(x,S),c[w.httpHeader.toLowerCase()]=String(o.flush());else if(typeof w.httpPrefixHeaders=="string")for(let P in S){let Q=S[P],q=w.httpPrefixHeaders+P;o.write([x.getValueSchema(),{httpHeader:q}],Q),c[q.toLowerCase()]=o.flush()}else w.httpQuery||w.httpQueryParams?this.serializeQuery(x,S,a):(m=!0,d.push(E),p.push(x))}if(m&&s){let[E,x]=(u.getName(!0)??"#Unknown").split("#"),w=u.getSchema()[6],S=[3,E,x,u.getMergedTraits(),d,p,void 0];w?S[6]=w:S.pop(),o.write(S,s),f=o.flush()}return g.headers=c,g.query=a,g.body=f,g}serializeQuery(e,r,n){let s=this.serializer,o=e.getMergedTraits();if(o.httpQueryParams){for(let a in r)if(!(a in n)){let c=r[a],l=e.getValueSchema();Object.assign(l.getMergedTraits(),{...o,httpQuery:a,httpQueryParams:void 0}),this.serializeQuery(l,c,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,c=[];for(let l of r){s.write([e.getValueSchema(),o],l);let u=s.flush();(a||u!==void 0)&&c.push(u)}n[o.httpQuery]=c}else s.write([e,o],r),n[o.httpQuery]=s.flush()}async deserializeResponse(e,r,n){let s=this.deserializer,o=Ee.of(e.output),a={};if(n.statusCode>=300){let l=await co(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let l in n.headers){let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=await this.deserializeHttpMessage(o,r,n,a);if(c.length){let l=await co(n.body,r);if(l.byteLength>0){let u=await s.read(o,l);for(let d of c)u[d]!=null&&(a[d]=u[d])}}else c.discardResponseBody&&await co(n.body,r);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,r,n,s,o){let a;s instanceof Set?a=o:a=s;let c=!0,l=this.deserializer,u=Ee.of(e),d=[];for(let[p,m]of u.structIterator()){let f=m.getMemberTraits();if(f.httpPayload){if(c=!1,m.isStreaming())m.isStructSchema()?a[p]=await this.deserializeEventStream({response:n,responseSchema:u}):a[p]=o_(n.body);else if(n.body){let E=await co(n.body,r);E.byteLength>0&&(a[p]=await l.read(m,E))}}else if(f.httpHeader){let g=String(f.httpHeader).toLowerCase(),E=n.headers[g];if(E!=null)if(m.isListSchema()){let x=m.getValueSchema();x.getMergedTraits().httpHeader=g;let w;x.isTimestampSchema()&&x.getSchema()===4?w=gv(E,",",2):w=qg(E);let S=[];for(let P of w)S.push(await l.read(x,P.trim()));a[p]=S}else a[p]=await l.read(m,E)}else if(f.httpPrefixHeaders!==void 0){a[p]={};for(let g in n.headers)if(g.startsWith(f.httpPrefixHeaders)){let E=n.headers[g],x=m.getValueSchema();x.getMergedTraits().httpHeader=g,a[p][g.slice(f.httpPrefixHeaders.length)]=await l.read(x,E)}}else f.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var Su,jBe=I(()=>{Ct();x_();i_();hf();Su=class extends Ef{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=Ee.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},m=new mt({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:o,headers:a,body:void 0});if(c&&(this.updateServiceEndpoint(m,c),this.setHostPrefix(m,e,p)),p){let f=l.getEventStreamMember();if(f){if(p[f]){let g={};for(let[E,x]of l.structIterator())E!==f&&p[E]&&(s.write(x,p[E]),g[E]=s.flush());d=await this.serializeEventStream({eventStream:p[f],requestSchema:l,initialRequest:g})}}else s.write(u,p),d=s.flush()}return m.headers=Object.assign(m.headers,a),m.query=o,m.body=d,m.method="POST",m}async deserializeResponse(e,r,n){let s=this.deserializer,o=Ee.of(e.output),a={};if(n.statusCode>=300){let l=await co(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let l in n.headers){let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=o.getEventStreamMember();if(c)a[c]=await this.deserializeEventStream({response:n,responseSchema:o,initialResponseContainer:a});else{let l=await co(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}}});var TW,PW=I(()=>{a_();TW=i((t,e,r,n,s,o)=>{if(e!=null&&e[r]!==void 0){let a=n();if(a==null||a.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(s,o?a.split("/").map(c=>Jc(c)).join("/"):Jc(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function vW(t,e){return new w_(t,e)}var w_,JBe=I(()=>{hf();PW();i(vW,"requestBuilder");w_=class{static{i(this,"RequestBuilder")}input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:s}=await this.context.endpoint();this.path=s;for(let o of this.resolvePathStack)o(this.path);return new mt({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,s){return this.resolvePathStack.push(o=>{this.path=TW(o,this.input,e,r,n,s)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function jo(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:s,httpQuery:o}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||s?6:o||r?5:void 0:void 0)??e.timestampFormat.default}var b_=I(()=>{i(jo,"determineTimestampFormat")});var If,_W=I(()=>{Ct();st();Xg();b_();If=class extends vs{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=Ee.of(e);if(n.isListSchema())return qg(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??$r)(r);if(n.isTimestampSchema())switch(jo(n,this.settings)){case 5:return Av(r);case 6:return hv(r);case 7:return lf(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let s=n.getMergedTraits().mediaType,o=r;if(s)return n.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(s==="application/json"||s.endsWith("+json"))&&(o=Zn.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new qt(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??hr)((this.serdeContext?.base64Decoder??$r)(e))}}});var xf,KBe=I(()=>{Ct();st();Xg();_W();xf=class extends vs{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new If(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=Ee.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??hr;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??Gr;return typeof r=="string"?a(r):r}else if(n.isStringSchema())return"byteLength"in r?o(r):r}return this.codecDeserializer.read(n,r)}}});var Ox,QW=I(()=>{Ct();st();Xg();b_();Ox=class extends vs{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=Ee.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(jo(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=wa(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??Ar)(r);return}if(n.isListSchema()&&Array.isArray(r)){let a="";for(let c of r){this.write([n.getValueSchema(),n.getMergedTraits()],c);let l=this.flush(),u=n.getValueSchema().isTimestampSchema()?l:fv(l);a!==""&&(a+=", "),a+=u}this.stringBuffer=a;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let s=n.getMergedTraits().mediaType,o=r;if(s&&((s==="application/json"||s.endsWith("+json"))&&(o=Zn.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Ar)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=Ba():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var wf,XBe=I(()=>{Ct();QW();wf=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new Ox(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=Ee.of(e),s=n.getMergedTraits();if(s.httpHeader||s.httpLabel||s.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var ZBe,S_,eRe=I(()=>{ZBe=D(Ca()),S_=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=ZBe.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var B_,tRe=I(()=>{B_=class{static{i(this,"Fields")}entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(r=>r.kind===e)}}});function rRe(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}var nRe=I(()=>{i(rRe,"isValidHostname")});var Zc,el,sRe=I(()=>{Zc=i(t=>({setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}),"getHttpHandlerExtensionConfiguration"),el=i(t=>({httpHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function DW(t){return e=>async r=>{let n=r.request;if(mt.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(oRe)===-1)try{let a=t(s);n.headers={...n.headers,[oRe]:String(a)}}catch{}}return e({...r,request:n})}}var oRe,kW,tl,iRe=I(()=>{hf();oRe="content-length";i(DW,"contentLengthMiddleware");kW={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},tl=i(t=>({applyToStack:i(e=>{e.add(DW(t.bodyLengthChecker),kW)},"applyToStack")}),"getContentLengthPlugin")});var np,WEt,R_=I(()=>{np=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,WEt),"escapeUri"),WEt=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var aRe,cRe=I(()=>{R_();aRe=i(t=>t.split("/").map(np).join("/"),"escapeUriPath")});function lRe(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=np(r),Array.isArray(n))for(let s=0,o=n.length;s{R_();i(lRe,"buildQueryString")});function N_(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,s=null]=r.split("=");n=decodeURIComponent(n),s&&(s=decodeURIComponent(s)),n in e?Array.isArray(e[n])?e[n].push(s):e[n]=[e[n],s]:e[n]=s}return e}var LW=I(()=>{i(N_,"parseQueryString")});var rs,dRe=I(()=>{LW();rs=i(t=>{if(typeof t=="string")return rs(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=N_(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var rl={};en(rl,{Field:()=>S_,Fields:()=>B_,FromStringShapeDeserializer:()=>If,HttpBindingProtocol:()=>Cf,HttpInterceptingShapeDeserializer:()=>xf,HttpInterceptingShapeSerializer:()=>wf,HttpProtocol:()=>Ef,HttpRequest:()=>mt,HttpResponse:()=>es,RequestBuilder:()=>w_,RpcProtocol:()=>Su,SerdeContext:()=>vs,ToStringShapeSerializer:()=>Ox,buildQueryString:()=>lRe,collectBody:()=>co,contentLengthMiddleware:()=>DW,contentLengthMiddlewareOptions:()=>kW,determineTimestampFormat:()=>jo,escapeUri:()=>np,escapeUriPath:()=>aRe,extendedEncodeURIComponent:()=>Jc,getContentLengthPlugin:()=>tl,getHttpHandlerExtensionConfiguration:()=>Zc,isValidHostname:()=>rRe,parseQueryString:()=>N_,parseUrl:()=>rs,requestBuilder:()=>vW,resolveHttpHandlerRuntimeConfig:()=>el,resolvedPath:()=>TW});var Qe=I(()=>{i_();a_();WBe();x_();jBe();JBe();PW();_W();KBe();XBe();QW();b_();Xg();eRe();tRe();hf();pW();nRe();sRe();iRe();R_();cRe();uRe();LW();dRe()});var Mx,T_=I(()=>{Mx=i((t,e,r,n,s)=>({name:e,namespace:t,traits:r,input:n,output:s}),"operation")});var pRe,OW,mRe=I(()=>{Ce();Qe();T_();pRe=i(t=>(e,r)=>async n=>{let{response:s}=await e(n),{operationSchema:o}=fr(r),[,a,c,l,u,d]=o??[];try{let p=await t.protocol.deserializeResponse(Mx(a,c,l,u,d),{...t,...r},s);return{response:s,output:p}}catch(p){if(Object.defineProperty(p,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in p)){let m="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{p.message+=` - `+m}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(m):r.logger?.warn?.(m)}typeof p.$responseBodyText<"u"&&p.$response&&(p.$response.body=p.$responseBodyText);try{if(es.isInstance(s)){let{headers:f={}}=s,g=Object.entries(f);p.$metadata={httpStatusCode:s.statusCode,requestId:OW(/^x-[\w-]+-request-?id$/,g),extendedRequestId:OW(/^x-[\w-]+-id-2$/,g),cfId:OW(/^x-[\w-]+-cf-id$/,g)}}}catch{}}throw p}},"schemaDeserializationMiddleware"),OW=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var fRe,ARe=I(()=>{Ce();xt();T_();fRe=i(t=>(e,r)=>async n=>{let{operationSchema:s}=fr(r),[,o,a,c,l,u]=s??[],d=r.endpointV2?async()=>ba(r.endpointV2):t.endpoint,p=await t.protocol.serializeRequest(Mx(o,a,c,l,u),n.input,{...t,...r,endpoint:d});return e({...n,request:p})},"schemaSerializationMiddleware")});function Bu(t){return{applyToStack:i(e=>{e.add(fRe(t),gRe),e.add(pRe(t),hRe),t.protocol.setSerdeContext(t)},"applyToStack")}}var hRe,gRe,yRe=I(()=>{mRe();ARe();hRe={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},gRe={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(Bu,"getSchemaSerdePlugin")});var Hr,sp=I(()=>{Hr=class{static{i(this,"Schema")}name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var P_,jEt,ERe=I(()=>{sp();P_=class t extends Hr{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=t.symbol},jEt=i((t,e,r,n)=>Hr.assign(new P_,{name:e,namespace:t,traits:r,valueSchema:n}),"list")});var v_,JEt,CRe=I(()=>{sp();v_=class t extends Hr{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=t.symbol},JEt=i((t,e,r,n,s)=>Hr.assign(new v_,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s}),"map")});var __,KEt,IRe=I(()=>{sp();__=class t extends Hr{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=t.symbol},KEt=i((t,e,r,n,s)=>Hr.assign(new __,{name:e,namespace:t,traits:r,input:n,output:s}),"op")});var cy,XEt,MW=I(()=>{sp();cy=class t extends Hr{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=t.symbol},XEt=i((t,e,r,n,s)=>Hr.assign(new cy,{name:e,namespace:t,traits:r,memberNames:n,memberList:s}),"struct")});var Q_,ZEt,xRe=I(()=>{sp();MW();Q_=class t extends cy{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},ZEt=i((t,e,r,n,s,o)=>Hr.assign(new Q_,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null}),"error")});function Xc(t){if(typeof t=="object")return t;if(t=t|0,D_[t])return D_[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return D_[t]=e}var D_,FW=I(()=>{D_=[];i(Xc,"translateTraits")});function Ux(t,e){if(t instanceof Ee)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=Ee;return new r(t,e)}var Fx,k_,L_,Ee,UW,wRe,bRe=I(()=>{eY();FW();Fx={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},k_=[],L_={},Ee=class t{static{i(this,"NormalizedSchema")}ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],s=e,o=e;for(this._isMemberSchema=!1;UW(s);)n.push(s[1]),s=s[0],o=Ia(s),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let a=n.length-1;a>=0;--a){let c=n[a];Object.assign(this.memberTraits,Xc(c))}}else this.memberTraits=0;if(o instanceof t){let a=this.memberTraits;Object.assign(this,o),this.memberTraits=Object.assign({},a,o.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??o.memberName;return}if(this.schema=Ia(o),wRe(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(o),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(k_[e])return k_[e]}else if(typeof e=="string"){if(L_[e])return L_[e]}else if(r&&e[Fx.ns])return e[Fx.ns];let n=Ia(e);if(n instanceof t)return n;if(UW(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),Xc(a)),o;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let s=new t(n);return r?e[Fx.ns]=s:typeof n=="string"?L_[n]=s:typeof n=="number"?k_[n]=s:s}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Xc(this.memberTraits)}getOwnTraits(){return Xc(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),s=e?15:n[4]??0;return Ux([s,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,s]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],o=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||s)?e[3+e[0]]:r?15:void 0;if(o!=null)return Ux([o,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),s=r[5][n];return Ux(UW(s)?s:[s,0],e)}if(this.isDocumentSchema())return Ux([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[Fx.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let s=0;sArray.isArray(t)&&t.length===2,"isMemberSchema"),wRe=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var qx,eCt,tCt,SRe=I(()=>{sp();qx=class t extends Hr{static{i(this,"SimpleSchema")}static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=t.symbol},eCt=i((t,e,r,n)=>Hr.assign(new qx,{name:e,namespace:t,traits:n,schemaRef:r}),"sim"),tCt=i((t,e,r,n)=>Hr.assign(new qx,{name:e,namespace:t,traits:r,schemaRef:n}),"simAdapter")});var rCt,BRe=I(()=>{rCt={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var gr,RRe=I(()=>{gr=class t{static{i(this,"TypeRegistry")}namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n}static for(e){return t.registries.has(e)||t.registries.set(e,new t(e)),t.registries.get(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[s,o]of e.schemas)r.has(s)||r.set(s,o);for(let[s,o]of e.exceptions)n.has(s)||n.set(s,o)}register(e,r){let n=this.normalizeShapeId(e);for(let s of[this,t.for(n.split("#")[0])])s.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,s=[];for(let[o,a]of this.schemas.entries())o.endsWith(n)&&s.push(a);if(s.length===1)return s[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,s=n[1];for(let o of[this,t.for(s)])o.schemas.set(s+"#"+n[2],n),o.exceptions.set(n,r)}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,s=r+"#"+n;if(s.startsWith("smithy.ts.sdk.synthetic.")&&s.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var $x={};en($x,{ErrorSchema:()=>Q_,ListSchema:()=>P_,MapSchema:()=>v_,NormalizedSchema:()=>Ee,OperationSchema:()=>__,SCHEMA:()=>rCt,Schema:()=>Hr,SimpleSchema:()=>qx,StructureSchema:()=>cy,TypeRegistry:()=>gr,deref:()=>Ia,deserializerMiddlewareOption:()=>hRe,error:()=>ZEt,getSchemaSerdePlugin:()=>Bu,isStaticSchema:()=>wRe,list:()=>jEt,map:()=>JEt,op:()=>KEt,operation:()=>Mx,serializerMiddlewareOption:()=>gRe,sim:()=>eCt,simAdapter:()=>tCt,simpleSchemaCacheN:()=>k_,simpleSchemaCacheS:()=>L_,struct:()=>XEt,traitsCache:()=>D_,translateTraits:()=>Xc});var Ct=I(()=>{eY();yRe();ERe();CRe();IRe();T_();xRe();bRe();sp();SRe();MW();BRe();FW();RRe()});function ly(t,e){if(e==null)return e;let r=Ee.of(t);if(r.getMergedTraits().sensitive)return qW;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return qW}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return qW}else if(r.isStructSchema()&&typeof e=="object"){let n=e,s={};for(let[o,a]of r.structIterator())n[o]!=null&&(s[o]=ly(a,n[o]));return s}return e}var qW,$W=I(()=>{Ct();qW="***SensitiveInformation***";i(ly,"schemaLogFilter")});var NRe,pn,GW,TRe=I(()=>{NRe=D(Ca());XP();$W();pn=class{static{i(this,"Command")}middlewareStack=Yd();schema;static classBuilder(){return new GW}resolveMiddlewareWithContext(e,r,n,{middlewareFn:s,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,smithyContext:u,additionalContext:d,CommandCtor:p}){for(let w of s.bind(this)(p,e,r,n))this.middlewareStack.use(w);let m=e.concat(this.middlewareStack),{logger:f}=r,g={logger:f,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,[NRe.SMITHY_CONTEXT_KEY]:{commandInstance:this,...u},...d},{requestHandler:E}=r,x=n??{};return u.eventStream&&(x={isEventStream:!0,...x}),m.resolve(w=>E.handle(w.request,x),g)}},GW=class{static{i(this,"ClassBuilder")}_init=i(()=>{},"_init");_ep={};_middlewareFn=i(()=>[],"_middlewareFn");_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,r;return r=class extends pn{static{i(this,"CommandRef")}input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,s,o){let a=e._operationSchema,c=a?.[4]??a?.input,l=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,s,o,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?ly.bind(null,c):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?ly.bind(null,l):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var PRe,vRe=I(()=>{PRe="***SensitiveInformation***"});var nl,_Re=I(()=>{nl=i((t,e,r)=>{for(let[o,a]of Object.entries(t)){let c=i(async function(u,d,p){let m=new a(u);if(typeof d=="function")this.send(m,d);else if(typeof p=="function"){if(typeof d!="object")throw new Error(`Expected http options but got ${typeof d}`);this.send(m,d||{},p)}else return this.send(m,d)},"methodImpl"),l=(o[0].toLowerCase()+o.slice(1)).replace(/Command$/,"");e.prototype[l]=c}let{paginators:n={},waiters:s={}}=r??{};for(let[o,a]of Object.entries(n))e.prototype[o]===void 0&&(e.prototype[o]=function(c={},l,...u){return a({...l,client:this},c,...u)});for(let[o,a]of Object.entries(s))e.prototype[o]===void 0&&(e.prototype[o]=async function(c={},l,...u){let d=l;return typeof l=="number"&&(d={maxWaitTime:l}),a({...d,client:this},c,...u)})},"createAggregatedClient")});var Fi,bf,HW=I(()=>{Fi=class t extends Error{static{i(this,"ServiceException")}$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;let r=e;return t.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let r=e;return this===t?t.isInstance(e):t.isInstance(e)?r.name&&this.name?this.prototype.isPrototypeOf(e)||r.name===this.name:this.prototype.isPrototypeOf(e):!1}},bf=i((t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,s])=>{(t[n]==null||t[n]==="")&&(t[n]=s)});let r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},"decorateServiceException")});var zW,QRe,nCt,DRe=I(()=>{HW();zW=i(({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let s=nCt(t),o=s.httpStatusCode?s.httpStatusCode+"":void 0,a=new r({name:e?.code||e?.Code||n||o||"UnknownError",$fault:"client",$metadata:s});throw bf(a,e)},"throwDefaultError"),QRe=i(t=>({output:e,parsedBody:r,errorCode:n})=>{zW({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},"withBaseException"),nCt=i(t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),"deserializeMetadata")});var sl,kRe=I(()=>{sl=i(t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},"loadConfigsForDefaultMode")});var LRe,ol,ORe=I(()=>{LRe=!1,ol=i(t=>{t&&!LRe&&parseInt(t.substring(1,t.indexOf(".")))<16&&(LRe=!0)},"emitWarningIfUnsupportedVersion")});var uy,MRe,O_,M_,VW=I(()=>{uy=D(Ca()),MRe=Object.values(uy.AlgorithmId),O_=i(t=>{let e=[];for(let r in uy.AlgorithmId){let n=uy.AlgorithmId[r];t[n]!==void 0&&e.push({algorithmId:i(()=>n,"algorithmId"),checksumConstructor:i(()=>t[n],"checksumConstructor")})}for(let[r,n]of Object.entries(t.checksumAlgorithms??{}))e.push({algorithmId:i(()=>r,"algorithmId"),checksumConstructor:i(()=>n,"checksumConstructor")});return{addChecksumAlgorithm(r){t.checksumAlgorithms=t.checksumAlgorithms??{};let n=r.algorithmId(),s=r.checksumConstructor();MRe.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=s:t.checksumAlgorithms[n]=s,e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),M_=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();MRe.includes(n)&&(e[n]=r.checksumConstructor())}),e},"resolveChecksumRuntimeConfig")});var F_,U_,YW=I(()=>{F_=i(t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),"getRetryConfiguration"),U_=i(t=>{let e={};return e.retryStrategy=t.retryStrategy(),e},"resolveRetryRuntimeConfig")});var Ra,FRe,il,URe=I(()=>{VW();YW();Ra=i(t=>Object.assign(O_(t),F_(t)),"getDefaultExtensionConfiguration"),FRe=Ra,il=i(t=>Object.assign(M_(t),U_(t)),"resolveDefaultRuntimeConfig")});var qRe,$Re=I(()=>{qRe=i(t=>Array.isArray(t)?t:[t],"getArrayIfSingleItem")});var Sf,GRe=I(()=>{Sf=i(t=>{let e="#text";for(let r in t)t.hasOwnProperty(r)&&t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=Sf(t[r]));return t},"getValueFromTextNode")});var HRe,zRe=I(()=>{HRe=i(t=>t!=null,"isSerializableHeaderValue")});var lo,VRe=I(()=>{lo=class{static{i(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}}});function WW(t,e,r){let n,s,o;if(typeof e>"u"&&typeof r>"u")n={},o=t;else{if(n=t,typeof e=="function")return s=e,o=r,sCt(n,s,o);o=e}for(let a of Object.keys(o)){if(!Array.isArray(o[a])){n[a]=o[a];continue}jRe(n,null,o,a)}return n}var YRe,WRe,sCt,jRe,oCt,iCt,JRe=I(()=>{i(WW,"map");YRe=i(t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},"convertMap"),WRe=i((t,e)=>{let r={};for(let n in e)jRe(r,t,e,n);return r},"take"),sCt=i((t,e,r)=>WW(t,Object.entries(r).reduce((n,[s,o])=>(Array.isArray(o)?n[s]=o:typeof o=="function"?n[s]=[e,o()]:n[s]=[e,o],n),{})),"mapWithFilter"),jRe=i((t,e,r,n)=>{if(e!==null){let a=r[n];typeof a=="function"&&(a=[,a]);let[c=oCt,l=iCt,u=n]=a;(typeof c=="function"&&c(e[u])||typeof c!="function"&&c)&&(t[n]=l(e[u]));return}let[s,o]=r[n];if(typeof o=="function"){let a,c=s===void 0&&(a=o())!=null,l=typeof s=="function"&&!!s(void 0)||typeof s!="function"&&!!s;c?t[n]=a:l&&(t[n]=o())}else{let a=s===void 0&&o!=null,c=typeof s=="function"&&!!s(o)||typeof s!="function"&&!!s;(a||c)&&(t[n]=o)}},"applyInstruction"),oCt=i(t=>t!=null,"nonNullish"),iCt=i(t=>t,"pass")});var KRe,XRe,ZRe=I(()=>{KRe=i(t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},"serializeFloat"),XRe=i(t=>t.toISOString().replace(".000Z","Z"),"serializeDateTime")});var q_,eNe=I(()=>{q_=i(t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(q_);if(typeof t=="object"){let e={};for(let r of Object.keys(t))t[r]!=null&&(e[r]=q_(t[r]));return e}return t},"_json")});var Ui={};en(Ui,{AlgorithmId:()=>uy.AlgorithmId,Client:()=>Kn,Command:()=>pn,NoOpLogger:()=>lo,SENSITIVE_STRING:()=>PRe,ServiceException:()=>Fi,WaiterState:()=>zo,_json:()=>q_,checkExceptions:()=>Nxe,constructStack:()=>Yd,convertMap:()=>YRe,createAggregatedClient:()=>nl,createWaiter:()=>Dxe,decorateServiceException:()=>bf,emitWarningIfUnsupportedVersion:()=>ol,getArrayIfSingleItem:()=>qRe,getChecksumConfiguration:()=>O_,getDefaultClientConfiguration:()=>FRe,getDefaultExtensionConfiguration:()=>Ra,getRetryConfiguration:()=>F_,getSmithyContext:()=>fr,getValueFromTextNode:()=>Sf,invalidFunction:()=>xxe,invalidProvider:()=>bxe,isSerializableHeaderValue:()=>HRe,loadConfigsForDefaultMode:()=>sl,map:()=>WW,normalizeProvider:()=>Ut,resolveChecksumRuntimeConfig:()=>M_,resolveDefaultRuntimeConfig:()=>il,resolveRetryRuntimeConfig:()=>U_,schemaLogFilter:()=>ly,serializeDateTime:()=>XRe,serializeFloat:()=>KRe,take:()=>WRe,throwDefaultError:()=>zW,waiterServiceDefaults:()=>ZP,withBaseException:()=>QRe});var Ce=I(()=>{XP();Cxe();Ixe();wxe();Sxe();kxe();ev();Lxe();TRe();vRe();_Re();DRe();kRe();ORe();HW();URe();VW();YW();$Re();GRe();zRe();VRe();JRe();$W();ZRe();eNe()});var tNe,rNe,nNe,sNe,oNe,iNe,aNe=I(()=>{tNe=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],rNe=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],nNe=["TimeoutError","RequestTimeout","RequestTimeoutException"],sNe=[500,502,503,504],oNe=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],iNe=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"]});function KW(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var Gx,$_,jW,JW,al,op,G_,dy=I(()=>{aNe();Gx=i(t=>t?.$retryable!==void 0,"isRetryableByTrait"),$_=i(t=>tNe.includes(t.name),"isClockSkewError"),jW=i(t=>t.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),JW=i(t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},"isBrowserNetworkError"),al=i(t=>t.$metadata?.httpStatusCode===429||rNe.includes(t.name)||t.$retryable?.throttling==!0,"isThrottlingError"),op=i((t,e=0)=>Gx(t)||jW(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||nNe.includes(t.name)||oNe.includes(t?.code||"")||iNe.includes(t?.code||"")||sNe.includes(t.$metadata?.httpStatusCode||0)||JW(t)||KW(t)||t.cause!==void 0&&e<=10&&op(t.cause,e+1),"isTransientError"),G_=i(t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!op(t)}return!1},"isServerError");i(KW,"isNodeJsHttp2TransientError")});var H_,Hx,z_,py,XW,ZW,V_,ip,ap,zx=I(()=>{H_=100,Hx=2e4,z_=500,py=500,XW=5,ZW=10,V_=1,ip="amz-sdk-invocation-id",ap="amz-sdk-request"});function e8(t,e){if(es.isInstance(t))for(let r of Object.keys(t.headers)){let n=r.toLowerCase();if(n==="retry-after"){let s=t.headers[r],o=NaN;if(s.endsWith("GMT"))try{o=(Ug(s).getTime()-Date.now())/1e3}catch(a){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(a)}else s.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?o=Number(s.match(/ GMT, ([\d.]+)$/)?.[1]):s.match(/^((\d+)|(\d+\.\d+))$/)?o=Number(s):Date.parse(s)>=Date.now()&&(o=(Date.parse(s)-Date.now())/1e3);return isNaN(o)?void 0:new Date(Date.now()+o*1e3)}else if(n==="x-amz-retry-after"){let s=t.headers[r],o=Number(s);if(isNaN(o)){e?.trace?.(`Failed to parse x-amz-retry-after=${s}`);return}return new Date(Date.now()+o)}}}function cNe(t,e){return e8(t,e)}var t8=I(()=>{Qe();st();i(e8,"parseRetryAfterHeader");i(cNe,"getRetryAfterHint")});var Y_,r8=I(()=>{Y_=i(t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),"asSdkError")});function n8(t){return e=>(r,n)=>async s=>{let o=await e.retryStrategy(),a=await e.maxAttempts();if(aCt(o)){o=o;let c=await o.acquireInitialRetryToken((n.partition_id??"")+(n.__retryLongPoll?":longpoll":"")),l=new Error,u=0,d=0,{request:p}=s,m=mt.isInstance(p);for(m&&(p.headers[ip]=Kg());;)try{m&&(p.headers[ap]=`attempt=${u+1}; max=${a}`);let{response:f,output:g}=await r(s);return o.recordSuccess(c),g.$metadata.attempts=u+1,g.$metadata.totalRetryDelay=d,{response:f,output:g}}catch(f){let g=cCt(f,e.logger);if(l=Y_(f),m&&t(p))throw(n.logger instanceof lo?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),l;try{c=await o.refreshRetryTokenForRetry(c,g)}catch(x){throw typeof x.$backoff=="number"&&await lNe(x.$backoff),l.$metadata||(l.$metadata={}),l.$metadata.attempts=u+1,l.$metadata.totalRetryDelay=d,l}u=c.getRetryCount();let E=c.getRetryDelay();d+=E,await lNe(E)}}else return o=o,o?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(r,s)}}function uNe(t){let e=n8(t);return r=>({applyToStack:i(n=>{n.add(e(r),s8)},"applyToStack")})}var lNe,aCt,cCt,lCt,s8,o8=I(()=>{Ce();Qe();st();dy();zx();t8();r8();i(n8,"bindRetryMiddleware");lNe=i(t=>new Promise(e=>setTimeout(e,t)),"cooldown"),aCt=i(t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u","isRetryStrategyV2"),cCt=i((t,e)=>{let r={error:t,errorType:lCt(t)},n=e8(t.$response,e);return n&&(r.retryAfterHint=n),r},"getRetryErrorInfo"),lCt=i(t=>al(t)?"THROTTLING":op(t)?"TRANSIENT":G_(t)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),s8={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};i(uNe,"bindGetRetryPlugin")});var cp,W_=I(()=>{dy();cp=class t{static{i(this,"DefaultRateLimiter")}static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let n=e;if(n?.errorType==="THROTTLING"||al(n?.error??e)){let a=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let o=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(o)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(n=>t.setTimeoutFn(n,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}});var mn,Vx=I(()=>{mn=class t{static{i(this,"Retry")}static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}}});var j_,dNe=I(()=>{Vx();j_=class{static{i(this,"DefaultRetryBackoffStrategy")}x=mn.delay();computeNextBackoffDelay(e){let s=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(s)}setDelayBase(e){this.x=e}}});var Yx,pNe=I(()=>{Yx=class{static{i(this,"DefaultRetryToken")}delay;count;cost;longPoll;constructor(e,r,n,s){this.delay=e,this.count=r,this.cost=n,this.longPoll=s}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}});var xn,Na,qi,Bf=I(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(xn||(xn={}));Na=3,qi=xn.STANDARD});var J_,Ta,Wx=I(()=>{dNe();pNe();Bf();Vx();J_={incompatible:1,attempts:2,capacity:3},Ta=class{static{i(this,"StandardRetryStrategy")}mode=xn.STANDARD;capacity=500;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>Na,this.baseDelay??=mn.delay(),this.retryBackoffStrategy??=new j_}async acquireInitialRetryToken(e){return new Yx(mn.delay(),0,void 0,mn.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let n=await this.getMaxAttempts(),s=this.retryCode(e,r,n),o=s===0,a=e.isLongPoll?.();if(o||a){let c=r.errorType;this.retryBackoffStrategy.setDelayBase(c==="THROTTLING"?mn.throttlingDelay():this.baseDelay);let l=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=l;if(r.retryAfterHint instanceof Date&&(u=Math.max(l,Math.min(r.retryAfterHint.getTime()-Date.now(),l+5e3))),o){let d=this.getCapacityCost(c);return this.capacity-=d,new Yx(u,e.getRetryCount()+1,d,e.isLongPoll?.()??!1)}else throw Object.assign(new Error("No retry token available"),{$backoff:mn.v2026&&s===J_.capacity&&a?u:0})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Na}`),Na}}retryCode(e,r,n){let s=e.getRetryCount()+1,o=this.isRetryableError(r.errorType)?0:J_.incompatible,a=s=this.getCapacityCost(r.errorType)?0:J_.capacity;return o||a||c}getCapacityCost(e){return e===mn.modifiedCostType()?mn.throttlingCost():mn.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var my,i8=I(()=>{W_();Wx();Bf();my=class{static{i(this,"AdaptiveRetryStrategy")}mode=xn.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new cp,this.standardRetryStrategy=r?new Ta({maxAttempts:typeof e=="number"?e:3,...r}):new Ta(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}});var K_,mNe=I(()=>{Wx();Vx();K_=class extends Ta{static{i(this,"ConfiguredRetryStrategy")}computeNextBackoffDelay;constructor(e,r=mn.delay()){super(typeof e=="function"?e:async()=>e),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r}async refreshRetryTokenForRetry(e,r){let n=await super.refreshRetryTokenForRetry(e,r);return n.getRetryDelay=()=>this.computeNextBackoffDelay(n.getRetryCount()),n}}});var fNe,ANe=I(()=>{fNe=i((t,e)=>{let r=t,n=e?.noRetryIncrement??1,s=e?.retryCost??5,o=e?.timeoutRetryCost??10,a=t,c=i(p=>p.name==="TimeoutError"?o:s,"getCapacityAmount"),l=i(p=>c(p)<=a,"hasRetryTokens");return Object.freeze({hasRetryTokens:l,retrieveRetryTokens:i(p=>{if(!l(p))throw new Error("No retry token available");let m=c(p);return a-=m,m},"retrieveRetryTokens"),releaseRetryTokens:i(p=>{a+=p??n,a=Math.min(a,r)},"releaseRetryTokens")})},"getDefaultRetryQuota")});var X_,a8=I(()=>{X_=i((t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t)),"defaultDelayDecider")});var Z_,c8=I(()=>{dy();Z_=i(t=>t?Gx(t)||$_(t)||al(t)||op(t):!1,"defaultRetryDecider")});var fy,uCt,l8=I(()=>{Qe();st();dy();Bf();zx();r8();ANe();a8();c8();fy=class{static{i(this,"StandardRetryStrategy")}maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=xn.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??Z_,this.delayDecider=r?.delayDecider??X_,this.retryQuota=r?.retryQuota??fNe(500)}shouldRetry(e,r,n){return rsetTimeout(g,f));continue}throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=o,d.$metadata.totalRetryDelay=a,d}}},uCt=i(t=>{if(!es.isInstance(t))return;let e=Object.keys(t.headers).find(o=>o.toLowerCase()==="retry-after");if(!e)return;let r=t.headers[e],n=Number(r);return Number.isNaN(n)?new Date(r).getTime()-Date.now():n*1e3},"getDelayFromRetryAfterHeader")});var eQ,hNe=I(()=>{W_();Bf();l8();eQ=class extends fy{static{i(this,"AdaptiveRetryStrategy")}rateLimiter;constructor(e,r){let{rateLimiter:n,...s}=r??{};super(e,s),this.rateLimiter=n??new cp,this.mode=xn.ADAPTIVE}async retry(e,r){return super.retry(e,r,{beforeRequest:i(async()=>this.rateLimiter.getSendToken(),"beforeRequest"),afterRequest:i(n=>{this.rateLimiter.updateClientSendingRate(n)},"afterRequest")})}}});var tQ,rQ,cl,ll,u8,d8,ul,gNe=I(()=>{Ce();i8();Wx();Bf();tQ="AWS_MAX_ATTEMPTS",rQ="max_attempts",cl={environmentVariableSelector:i(t=>{let e=t[tQ];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${tQ} mast be a number, got "${e}"`);return r},"environmentVariableSelector"),configFileSelector:i(t=>{let e=t[rQ];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${rQ} mast be a number, got "${e}"`);return r},"configFileSelector"),default:Na},ll=i(t=>{let{retryStrategy:e,retryMode:r}=t,n=Ut(t.maxAttempts??Na),s=e?Promise.resolve(e):void 0,o=i(async()=>await Ut(r)()===xn.ADAPTIVE?new my(n):new Ta(n),"getDefault");return Object.assign(t,{maxAttempts:n,retryStrategy:i(()=>s??=o(),"retryStrategy")})},"resolveRetryConfig"),u8="AWS_RETRY_MODE",d8="retry_mode",ul={environmentVariableSelector:i(t=>t[u8],"environmentVariableSelector"),configFileSelector:i(t=>t[d8],"configFileSelector"),default:qi}});var p8,m8,yNe,ENe=I(()=>{Qe();zx();p8=i(()=>t=>async e=>{let{request:r}=e;return mt.isInstance(r)&&(delete r.headers[ip],delete r.headers[ap]),t(e)},"omitRetryHeadersMiddleware"),m8={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},yNe=i(t=>({applyToStack:i(e=>{e.addRelativeTo(p8(),m8)},"applyToStack")}),"getOmitRetryHeadersPlugin")});var jx={};en(jx,{AdaptiveRetryStrategy:()=>my,CONFIG_MAX_ATTEMPTS:()=>rQ,CONFIG_RETRY_MODE:()=>d8,ConfiguredRetryStrategy:()=>K_,DEFAULT_MAX_ATTEMPTS:()=>Na,DEFAULT_RETRY_DELAY_BASE:()=>H_,DEFAULT_RETRY_MODE:()=>qi,DefaultRateLimiter:()=>cp,DeprecatedAdaptiveRetryStrategy:()=>eQ,DeprecatedStandardRetryStrategy:()=>fy,ENV_MAX_ATTEMPTS:()=>tQ,ENV_RETRY_MODE:()=>u8,INITIAL_RETRY_TOKENS:()=>py,INVOCATION_ID_HEADER:()=>ip,MAXIMUM_RETRY_DELAY:()=>Hx,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>cl,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>ul,NO_RETRY_INCREMENT:()=>V_,REQUEST_HEADER:()=>ap,RETRY_COST:()=>XW,RETRY_MODES:()=>xn,Retry:()=>mn,StandardRetryStrategy:()=>Ta,THROTTLING_RETRY_DELAY_BASE:()=>z_,TIMEOUT_RETRY_COST:()=>ZW,defaultDelayDecider:()=>X_,defaultRetryDecider:()=>Z_,getOmitRetryHeadersPlugin:()=>yNe,getRetryAfterHint:()=>cNe,getRetryPlugin:()=>Ru,isBrowserNetworkError:()=>JW,isClockSkewCorrectedError:()=>jW,isClockSkewError:()=>$_,isNodeJsHttp2TransientError:()=>KW,isRetryableByTrait:()=>Gx,isServerError:()=>G_,isThrottlingError:()=>al,isTransientError:()=>op,omitRetryHeadersMiddleware:()=>p8,omitRetryHeadersMiddlewareOptions:()=>m8,resolveRetryConfig:()=>ll,retryMiddleware:()=>dCt,retryMiddlewareOptions:()=>s8});var dCt,Ru,_s=I(()=>{gxe();o8();dy();i8();mNe();W_();Wx();Bf();zx();Vx();hNe();l8();a8();c8();gNe();ENe();o8();t8();dCt=n8(K4),Ru=uNe(K4)});function $i(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var f8=I(()=>{_s();mn.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";i($i,"setFeature")});function CNe(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var INe=I(()=>{i(CNe,"setTokenFeature")});function Ay(t){return t}var A8,h8,dl,xNe=I(()=>{Qe();i(Ay,"resolveHostHeaderConfig");A8=i(t=>e=>async r=>{if(!mt.isInstance(r.request))return e(r);let{request:n}=r,{handlerProtocol:s=""}=t.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let o=n.hostname;n.port!=null&&(o+=`:${n.port}`),n.headers.host=o}return e(r)},"hostHeaderMiddleware"),h8={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},dl=i(t=>({applyToStack:i(e=>{e.add(A8(t),h8)},"applyToStack")}),"getHostHeaderPlugin")});var g8,y8,pl,wNe=I(()=>{g8=i(()=>(t,e)=>async r=>{try{let n=await t(r),{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l,overrideOutputFilterSensitiveLog:u}=c,d=l??e.inputFilterSensitiveLog,p=u??e.outputFilterSensitiveLog,{$metadata:m,...f}=n.output;return a?.info?.({clientName:s,commandName:o,input:d(r.input),output:p(f),metadata:m}),n}catch(n){let{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l}=c,u=l??e.inputFilterSensitiveLog;throw a?.error?.({clientName:s,commandName:o,input:u(r.input),error:n,metadata:n.$metadata}),n}},"loggerMiddleware"),y8={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},pl=i(t=>({applyToStack:i(e=>{e.add(g8(),y8)},"applyToStack")}),"getLoggerPlugin")});var nQ,E8=I(()=>{nQ={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var Jx,C8,sQ,I8,x8,oQ,bNe=I(()=>{Jx={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")},C8=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");C8||(globalThis.awslambda=globalThis.awslambda||{});sQ=class{static{i(this,"InvokeStoreBase")}static PROTECTED_KEYS=Jx;isProtectedKey(e){return Object.values(Jx).includes(e)}getRequestId(){return this.get(Jx.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(Jx.X_RAY_TRACE_ID)}getTenantId(){return this.get(Jx.TENANT_ID)}},I8=class extends sQ{static{i(this,"InvokeStoreSingle")}currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},x8=class t extends sQ{static{i(this,"InvokeStoreMulti")}als;static async create(){let e=new t,r=await import("node:async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=r}run(e,r){return this.als.run(e,r)}};(function(t){let e=null;async function r(){return e||(e=(async()=>{let s="AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await x8.create():new I8;return!C8&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!C8&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=s),s)})()),e}i(r,"getInstanceAsync"),t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:i(()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}},"reset")}:void 0})(oQ||(oQ={}))});var w8,pCt,mCt,iQ,b8=I(()=>{bNe();Qe();w8="X-Amzn-Trace-Id",pCt="AWS_LAMBDA_FUNCTION_NAME",mCt="_X_AMZN_TRACE_ID",iQ=i(()=>t=>async e=>{let{request:r}=e;if(!mt.isInstance(r))return t(e);let n=Object.keys(r.headers??{}).find(d=>d.toLowerCase()===w8.toLowerCase())??w8;if(r.headers.hasOwnProperty(n))return t(e);let s=process.env[pCt],o=process.env[mCt],l=(await oQ.getInstanceAsync())?.getXRayTraceId()??o,u=i(d=>typeof d=="string"&&d.length>0,"nonEmptyString");return u(s)&&u(l)&&(r.headers[w8]=l),t({...e,request:r})},"recursionDetectionMiddleware")});var ml,SNe=I(()=>{E8();b8();ml=i(t=>({applyToStack:i(e=>{e.add(iQ(),nQ)},"applyToStack")}),"getRecursionDetectionPlugin")});var S8,fCt,BNe=I(()=>{S8=D(Ca()),fCt=i(t=>t[S8.SMITHY_CONTEXT_KEY]||(t[S8.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});var RNe,NNe=I(()=>{RNe=i((t,e)=>{if(!e||e.length===0)return t;let r=[];for(let n of e)for(let s of t)s.schemeId.split("#")[1]===n&&r.push(s);for(let n of t)r.find(({schemeId:s})=>s===n.schemeId)||r.push(n);return r},"resolveAuthOptions")});function ACt(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var Kx,aQ=I(()=>{Ce();NNe();i(ACt,"convertHttpAuthSchemesToMap");Kx=i((t,e)=>(r,n)=>async s=>{let o=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,s.input)),a=t.authSchemePreference?await t.authSchemePreference():[],c=RNe(o,a),l=ACt(t.httpAuthSchemes),u=fr(n),d=[];for(let p of c){let m=l.get(p.schemeId);if(!m){d.push(`HttpAuthScheme \`${p.schemeId}\` was not enabled for this service.`);continue}let f=m.identityProvider(await e.identityProviderConfigProvider(t));if(!f){d.push(`HttpAuthScheme \`${p.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:g={},signingProperties:E={}}=p.propertiesExtractor?.(t,n)||{};p.identityProperties=Object.assign(p.identityProperties||{},g),p.signingProperties=Object.assign(p.signingProperties||{},E),u.selectedHttpAuthScheme={httpAuthOption:p,identity:await f(p.identityProperties),signer:m.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(d.join(` -`));return r(s)},"httpAuthSchemeMiddleware")});var TNe,Nu,PNe=I(()=>{aQ();TNe={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Nu=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(Kx(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),TNe)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var vNe,hCt,_Ne=I(()=>{aQ();vNe={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},hCt=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(Kx(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),vNe)},"applyToStack")}),"getHttpAuthSchemePlugin")});var QNe=I(()=>{aQ();PNe();_Ne()});var gCt,yCt,B8,R8=I(()=>{Ce();Qe();gCt=i(t=>e=>{throw e},"defaultErrorHandler"),yCt=i((t,e)=>{},"defaultSuccessHandler"),B8=i(t=>(e,r)=>async n=>{if(!mt.isInstance(n.request))return e(n);let o=fr(r).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:l}=o,u=await e({...n,request:await l.sign(n.request,c,a)}).catch((l.errorHandler||gCt)(a));return(l.successHandler||yCt)(u.response,a),u},"httpSigningMiddleware")});var DNe,Tu,kNe=I(()=>{R8();DNe={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Tu=i(t=>({applyToStack:i(e=>{e.addRelativeTo(B8(t),DNe)},"applyToStack")}),"getHttpSigningPlugin")});var LNe=I(()=>{R8();kNe()});var fl,ONe=I(()=>{fl=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function MNe(t,e,r,n,s){return i(async function*(a,c,...l){let u=c,d=a.startingToken??u[r],p=!0,m;for(;p;){if(u[r]=d,s&&(u[s]=u[s]??a.pageSize),a.client instanceof t)m=await ECt(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield m;let f=d;d=CCt(m,n),p=!!(d&&(!a.stopOnSameToken||d!==f))}return void 0},"paginateOperation")}var ECt,CCt,FNe=I(()=>{ECt=i(async(t,e,r,n=o=>o,...s)=>{let o=new t(r);return o=n(o)??o,await e.send(o,...s)},"makePagedClientRequest");i(MNe,"createPaginator");CCt=i((t,e)=>{let r=t,n=e.split(".");for(let s of n){if(!r||typeof r!="object")return;r=r[s]}return r},"get")});var UNe=I(()=>{Qe()});function ICt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var qNe=I(()=>{i(ICt,"setFeature")});var Pa,$Ne=I(()=>{Pa=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(e){for(let r in e){let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var N8,T8,GNe=I(()=>{Qe();N8=D(Ca()),T8=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=mt.clone(e);if(n.in===N8.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===N8.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return s}}});var P8,HNe=I(()=>{Qe();P8=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=mt.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${r.token}`,s}}});var Jo,zNe=I(()=>{Jo=class{static{i(this,"NoAuthSigner")}async sign(e,r,n){return e}}});var VNe=I(()=>{GNe();HNe();zNe()});var YNe,WNe,v8,cQ,_8,jNe=I(()=>{YNe=i(t=>i(function(r){return cQ(r)&&r.expiration.getTime()-Date.now()t.expiration!==void 0,"doesIdentityRequireRefresh"),_8=i((t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,s,o,a,c=!1,l=i(async u=>{o||(o=n(u));try{s=await o,a=!0,c=!1}finally{o=void 0}return s},"coalesceProvider");return e===void 0?async u=>((!a||u?.forceRefresh)&&(s=await l(u)),s):async u=>((!a||u?.forceRefresh)&&(s=await l(u)),c?s:r(s)?(e(s)&&await l(u),s):(c=!0,s))},"memoizeIdentityProvider")});var JNe=I(()=>{$Ne();VNe();jNe()});var Q8={};en(Q8,{DefaultIdentityProviderConfig:()=>Pa,EXPIRATION_MS:()=>WNe,HttpApiKeyAuthSigner:()=>T8,HttpBearerAuthSigner:()=>P8,NoAuthSigner:()=>Jo,createIsIdentityExpiredFunction:()=>YNe,createPaginator:()=>MNe,doesIdentityRequireRefresh:()=>cQ,getHttpAuthSchemeEndpointRuleSetPlugin:()=>Nu,getHttpAuthSchemePlugin:()=>hCt,getHttpSigningPlugin:()=>Tu,getSmithyContext:()=>fCt,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>TNe,httpAuthSchemeMiddleware:()=>Kx,httpAuthSchemeMiddlewareOptions:()=>vNe,httpSigningMiddleware:()=>B8,httpSigningMiddlewareOptions:()=>DNe,isIdentityExpired:()=>v8,memoizeIdentityProvider:()=>_8,normalizeProvider:()=>fl,requestBuilder:()=>vW,setFeature:()=>ICt});var Qs=I(()=>{BNe();QNe();LNe();ONe();FNe();UNe();qNe();JNe()});function xCt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function Al(t){let e=fl(t.userAgentAppId??Xx),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:i(async()=>{let n=await e();if(!xCt(n)){let s=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?s?.warn("userAgentAppId must be a string or undefined."):n.length>50&&s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n},"userAgentAppId")})}var Xx,D8=I(()=>{Qs();Xx=void 0;i(xCt,"isValidUserAgentAppId");i(Al,"resolveUserAgentConfig")});var k8,KNe=I(()=>{k8={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"}});var XNe,ZNe,lQ,L8,eTe,uQ,dQ=I(()=>{KNe();XNe=k8,ZNe="",lQ=i(t=>{let{partitions:e}=XNe;for(let n of e){let{regions:s,outputs:o}=n;for(let[a,c]of Object.entries(s))if(a===t)return{...o,...c}}for(let n of e){let{regionRegex:s,outputs:o}=n;if(new RegExp(s).test(t))return{...o}}let r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},"partition"),L8=i((t,e="")=>{XNe=t,ZNe=e},"setPartitionInfo"),eTe=i(()=>{L8(k8,"")},"useDefaultPartitionInfo"),uQ=i(()=>ZNe,"getUserAgentPrefix")});async function tTe(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&$i(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let o=await e.retryStrategy();if(typeof o.mode=="string")switch(o.mode){case xn.ADAPTIVE:$i(t,"RETRY_MODE_ADAPTIVE","F");break;case xn.STANDARD:$i(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let o=t.endpointV2;switch(String(o?.url?.hostname).match(wCt)&&$i(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":$i(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":$i(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":$i(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let s=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){let o=s;o.accountId&&$i(t,"RESOLVED_ACCOUNT_ID","T");for(let[a,c]of Object.entries(o.$source??{}))$i(t,a,c)}}var wCt,rTe=I(()=>{_s();f8();wCt=/\d{12}\.ddb/;i(tTe,"checkFeatures")});var O8,pQ,nTe,sTe,oTe=I(()=>{O8="user-agent",pQ="x-amz-user-agent",nTe=/[^!$%&'*+\-.^_`|~\w]/g,sTe=/[^!$%&'*+\-.^_`|~\w#]/g});function iTe(t){let e="";for(let r in t){let n=t[r];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var aTe=I(()=>{i(iTe,"encodeFeatures")});var F8,mQ,U8,hl,uTe=I(()=>{Qe();dQ();rTe();oTe();aTe();F8=i(t=>(e,r)=>async n=>{let{request:s}=n;if(!mt.isInstance(s))return e(n);let{headers:o}=s,a=r?.userAgent?.map(mQ)||[],c=(await t.defaultUserAgentProvider()).map(mQ);await tTe(r,t,n);let l=r;c.push(`m/${iTe(Object.assign({},r.__smithy_context?.features,l.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(mQ)||[],d=await t.userAgentAppId();d&&c.push(mQ(["app",`${d}`]));let p=uQ(),m=(p?[p]:[]).concat([...c,...a,...u]).join(" "),f=[...c.filter(g=>g.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(f&&(o[pQ]=o[pQ]?`${o[O8]} ${f}`:f),o[O8]=m):o[pQ]=m,e({...n,request:s})},"userAgentMiddleware"),mQ=i(t=>{let e=t[0].split("/").map(a=>a.replace(nTe,"-")).join("/"),r=t[1]?.replace(sTe,"-"),n=e.indexOf("/"),s=e.substring(0,n),o=e.substring(n+1);return s==="api"&&(o=o.toLowerCase()),[s,o,r].filter(a=>a&&a.length>0).reduce((a,c,l)=>{switch(l){case 0:return c;case 1:return`${a}/${c}`;default:return`${a}#${c}`}},"")},"escapeUserAgent"),U8={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},hl=i(t=>({applyToStack:i(e=>{e.add(F8(t),U8)},"applyToStack")}),"getUserAgentPlugin")});var fQ,dTe,pTe=I(()=>{fQ=require("node:process"),dTe=i(()=>{let t=["deno","bun","llrt"];for(let e of t)if(fQ.versions[e])return[`md/${e}`,fQ.versions[e]];return["md/nodejs",fQ.versions.node]},"getRuntimeUserAgentPair")});var Zx,mTe,fTe=I(()=>{Zx=require("node:path"),mTe=i(t=>{let e=process.cwd();if(!t)return[e];let r=(0,Zx.normalize)(t),n=r.split(Zx.sep),s=n.indexOf("node_modules"),o=s!==-1?n.slice(0,s).join(Zx.sep):r;return e===o?[e]:[o,e]},"getNodeModulesParentDirs")});var bCt,AQ,q8=I(()=>{bCt=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/,AQ=i((t="")=>{let e=t.match(bCt);if(!e)return;let[r,n,s,o]=[e[1],e[2],e[3],e[4]];return o?`${r}.${n}.${s}-${o}`:`${r}.${n}.${s}`},"getSanitizedTypeScriptVersion")});var SCt,BCt,ATe,hTe=I(()=>{q8();SCt=["^","~",">=","<=",">","<"],BCt=["latest","beta","dev","rc","insiders","next"],ATe=i((t="")=>{if(BCt.includes(t))return t;let e=SCt.find(n=>t.startsWith(n))??"",r=AQ(t.slice(e.length));if(r)return`${e}${r}`},"getSanitizedDevTypeScriptVersion")});var $8,hQ,gl,RCt,gTe,yTe=I(()=>{Tt();$8=require("node:fs/promises"),hQ=require("node:path");fTe();hTe();q8();RCt=(0,hQ.join)("node_modules","typescript","package.json"),gTe=i(async()=>{if(gl===null)return;if(typeof gl=="string")return["md/tsc",gl];let t=!1;try{t=io(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",ts.ENV)||!1}catch{}if(t){gl=null;return}let r=mTe(typeof __dirname<"u"?__dirname:void 0),n;for(let a of r)try{let c=(0,hQ.join)(a,"package.json"),l=await(0,$8.readFile)(c,"utf-8"),{dependencies:u,devDependencies:d}=JSON.parse(l),p=d?.typescript??u?.typescript;if(typeof p!="string")continue;n=p;break}catch{}if(!n){gl=null;return}let s;for(let a of r)try{let c=(0,hQ.join)(a,RCt),l=await(0,$8.readFile)(c,"utf-8"),{version:u}=JSON.parse(l),d=AQ(u);if(typeof d!="string")continue;s=d;break}catch{}if(s)return gl=s,["md/tsc",gl];let o=ATe(n);if(typeof o!="string"){gl=null;return}return gl=`dev_${o}`,["md/tsc",gl]},"getTypeScriptUserAgentPair")});var ew,G8=I(()=>{ew={isCrtAvailable:!1}});var ETe,CTe=I(()=>{G8();ETe=i(()=>ew.isCrtAvailable?["md/crt-avail"]:null,"isCrtAvailable")});var gQ,H8,va,ITe,xTe=I(()=>{gQ=require("node:os"),H8=require("node:process");pTe();yTe();CTe();G8();va=i(({serviceId:t,clientVersion:e})=>{let r=dTe();return async n=>{let s=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,gQ.platform)()}`,(0,gQ.release)()],["lang/js"],r],o=await gTe();o&&s.push(o);let a=ETe();a&&s.push(a),t&&s.push([`api/${t}`,e]),H8.env.AWS_EXECUTION_ENV&&s.push([`exec-env/${H8.env.AWS_EXECUTION_ENV}`]);let c=await n?.userAgentAppId?.();return c?[...s,[`app/${c}`]]:[...s]}},"createDefaultUserAgentProvider"),ITe=va});var z8,V8,NCt,yl,wTe=I(()=>{D8();z8="AWS_SDK_UA_APP_ID",V8="sdk_ua_app_id",NCt="sdk-ua-app-id",yl={environmentVariableSelector:i(t=>t[z8],"environmentVariableSelector"),configFileSelector:i(t=>t[V8]??t[NCt],"configFileSelector"),default:Xx}});var bTe=b((tw,Y8)=>{(function(t,e){typeof tw=="object"&&typeof Y8=="object"?Y8.exports=e():typeof define=="function"&&define.amd?define([],e):typeof tw=="object"?tw.bowser=e():t.bowser=e()})(tw,(function(){return(function(t){var e={};function r(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return i(r,"r"),r.m=t,r.c=e,r.d=function(n,s,o){r.o(n,s)||Object.defineProperty(n,s,{enumerable:!0,get:o})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,s){if(1&s&&(n=r(n)),8&s||4&s&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&s&&typeof n!="string")for(var a in n)r.d(o,a,function(c){return n[c]}.bind(null,a));return o},r.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(s,"a",s),s},r.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},r.p="",r(r.s=90)})({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),s=(function(){function o(){}return i(o,"e"),o.getFirstMatch=function(a,c){var l=c.match(a);return l&&l.length>0&&l[1]||""},o.getSecondMatch=function(a,c){var l=c.match(a);return l&&l.length>1&&l[2]||""},o.matchAndReturnConst=function(a,c,l){if(a.test(c))return l},o.getWindowsVersionName=function(a){switch(a){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},o.getMacOSVersionName=function(a){var c=a.split(".").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),c[0]===10)switch(c[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},o.getAndroidVersionName=function(a){var c=a.split(".").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),!(c[0]===1&&c[1]<5))return c[0]===1&&c[1]<6?"Cupcake":c[0]===1&&c[1]>=6?"Donut":c[0]===2&&c[1]<2?"Eclair":c[0]===2&&c[1]===2?"Froyo":c[0]===2&&c[1]>2?"Gingerbread":c[0]===3?"Honeycomb":c[0]===4&&c[1]<1?"Ice Cream Sandwich":c[0]===4&&c[1]<4?"Jelly Bean":c[0]===4&&c[1]>=4?"KitKat":c[0]===5?"Lollipop":c[0]===6?"Marshmallow":c[0]===7?"Nougat":c[0]===8?"Oreo":c[0]===9?"Pie":void 0},o.getVersionPrecision=function(a){return a.split(".").length},o.compareVersions=function(a,c,l){l===void 0&&(l=!1);var u=o.getVersionPrecision(a),d=o.getVersionPrecision(c),p=Math.max(u,d),m=0,f=o.map([a,c],(function(g){var E=p-o.getVersionPrecision(g),x=g+new Array(E+1).join(".0");return o.map(x.split("."),(function(w){return new Array(20-w.length).join("0")+w})).reverse()}));for(l&&(m=p-Math.min(u,d)),p-=1;p>=m;){if(f[0][p]>f[1][p])return 1;if(f[0][p]===f[1][p]){if(p===m)return 0;p-=1}else if(f[0][p]1?d-1:0),m=1;m0){var S=Object.keys(g),P=c.default.find(S,(function(ke){return f.isOS(ke)}));if(P){var Q=this.satisfies(g[P]);if(Q!==void 0)return Q}var q=c.default.find(S,(function(ke){return f.isPlatform(ke)}));if(q){var M=this.satisfies(g[q]);if(M!==void 0)return M}}if(w>0){var V=Object.keys(x),pe=c.default.find(V,(function(ke){return f.isBrowser(ke,!0)}));if(pe!==void 0)return this.compareVersion(x[pe])}},p.isBrowser=function(m,f){f===void 0&&(f=!1);var g=this.getBrowserName().toLowerCase(),E=m.toLowerCase(),x=c.default.getBrowserTypeByAlias(E);return f&&x&&(E=x.toLowerCase()),E===g},p.compareVersion=function(m){var f=[0],g=m,E=!1,x=this.getBrowserVersion();if(typeof x=="string")return m[0]===">"||m[0]==="<"?(g=m.substr(1),m[1]==="="?(E=!0,g=m.substr(2)):f=[],m[0]===">"?f.push(1):f.push(-1)):m[0]==="="?g=m.substr(1):m[0]==="~"&&(E=!0,g=m.substr(1)),f.indexOf(c.default.compareVersions(x,g,E))>-1},p.isOS=function(m){return this.getOSName(!0)===String(m).toLowerCase()},p.isPlatform=function(m){return this.getPlatformType(!0)===String(m).toLowerCase()},p.isEngine=function(m){return this.getEngineName(!0)===String(m).toLowerCase()},p.is=function(m,f){return f===void 0&&(f=!1),this.isBrowser(m,f)||this.isOS(m)||this.isPlatform(m)},p.some=function(m){var f=this;return m===void 0&&(m=[]),m.some((function(g){return f.is(g)}))},d})();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:i(function(c){var l={name:"Googlebot"},u=s.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/opera/i],describe:i(function(c){var l={name:"Opera"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/opr\/|opios/i],describe:i(function(c){var l={name:"Opera"},u=s.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/SamsungBrowser/i],describe:i(function(c){var l={name:"Samsung Internet for Android"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/Whale/i],describe:i(function(c){var l={name:"NAVER Whale Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/MZBrowser/i],describe:i(function(c){var l={name:"MZ Browser"},u=s.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/focus/i],describe:i(function(c){var l={name:"Focus"},u=s.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/swing/i],describe:i(function(c){var l={name:"Swing"},u=s.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/coast/i],describe:i(function(c){var l={name:"Opera Coast"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:i(function(c){var l={name:"Opera Touch"},u=s.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/yabrowser/i],describe:i(function(c){var l={name:"Yandex Browser"},u=s.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/ucbrowser/i],describe:i(function(c){var l={name:"UC Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/Maxthon|mxios/i],describe:i(function(c){var l={name:"Maxthon"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/epiphany/i],describe:i(function(c){var l={name:"Epiphany"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/puffin/i],describe:i(function(c){var l={name:"Puffin"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/sleipnir/i],describe:i(function(c){var l={name:"Sleipnir"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/k-meleon/i],describe:i(function(c){var l={name:"K-Meleon"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/micromessenger/i],describe:i(function(c){var l={name:"WeChat"},u=s.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/qqbrowser/i],describe:i(function(c){var l={name:/qqbrowserlite/i.test(c)?"QQ Browser Lite":"QQ Browser"},u=s.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/msie|trident/i],describe:i(function(c){var l={name:"Internet Explorer"},u=s.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/\sedg\//i],describe:i(function(c){var l={name:"Microsoft Edge"},u=s.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/edg([ea]|ios)/i],describe:i(function(c){var l={name:"Microsoft Edge"},u=s.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/vivaldi/i],describe:i(function(c){var l={name:"Vivaldi"},u=s.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/seamonkey/i],describe:i(function(c){var l={name:"SeaMonkey"},u=s.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/sailfish/i],describe:i(function(c){var l={name:"Sailfish"},u=s.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,c);return u&&(l.version=u),l},"describe")},{test:[/silk/i],describe:i(function(c){var l={name:"Amazon Silk"},u=s.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/phantom/i],describe:i(function(c){var l={name:"PhantomJS"},u=s.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/slimerjs/i],describe:i(function(c){var l={name:"SlimerJS"},u=s.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:i(function(c){var l={name:"BlackBerry"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/(web|hpw)[o0]s/i],describe:i(function(c){var l={name:"WebOS Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/bada/i],describe:i(function(c){var l={name:"Bada"},u=s.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/tizen/i],describe:i(function(c){var l={name:"Tizen"},u=s.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/qupzilla/i],describe:i(function(c){var l={name:"QupZilla"},u=s.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/firefox|iceweasel|fxios/i],describe:i(function(c){var l={name:"Firefox"},u=s.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/electron/i],describe:i(function(c){var l={name:"Electron"},u=s.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/MiuiBrowser/i],describe:i(function(c){var l={name:"Miui"},u=s.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/chromium/i],describe:i(function(c){var l={name:"Chromium"},u=s.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/chrome|crios|crmo/i],describe:i(function(c){var l={name:"Chrome"},u=s.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/GSA/i],describe:i(function(c){var l={name:"Google Search"},u=s.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){var l=!c.test(/like android/i),u=c.test(/android/i);return l&&u},"test"),describe:i(function(c){var l={name:"Android Browser"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/playstation 4/i],describe:i(function(c){var l={name:"PlayStation 4"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/safari|applewebkit/i],describe:i(function(c){var l={name:"Safari"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/.*/i],describe:i(function(c){var l=c.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:s.default.getFirstMatch(l,c),version:s.default.getSecondMatch(l,c)}},"describe")}];e.default=a,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:i(function(c){var l=s.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,c);return{name:o.OS_MAP.Roku,version:l}},"describe")},{test:[/windows phone/i],describe:i(function(c){var l=s.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.WindowsPhone,version:l}},"describe")},{test:[/windows /i],describe:i(function(c){var l=s.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,c),u=s.default.getWindowsVersionName(l);return{name:o.OS_MAP.Windows,version:l,versionName:u}},"describe")},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:i(function(c){var l={name:o.OS_MAP.iOS},u=s.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,c);return u&&(l.version=u),l},"describe")},{test:[/macintosh/i],describe:i(function(c){var l=s.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,c).replace(/[_\s]/g,"."),u=s.default.getMacOSVersionName(l),d={name:o.OS_MAP.MacOS,version:l};return u&&(d.versionName=u),d},"describe")},{test:[/(ipod|iphone|ipad)/i],describe:i(function(c){var l=s.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,c).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:l}},"describe")},{test:i(function(c){var l=!c.test(/like android/i),u=c.test(/android/i);return l&&u},"test"),describe:i(function(c){var l=s.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,c),u=s.default.getAndroidVersionName(l),d={name:o.OS_MAP.Android,version:l};return u&&(d.versionName=u),d},"describe")},{test:[/(web|hpw)[o0]s/i],describe:i(function(c){var l=s.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,c),u={name:o.OS_MAP.WebOS};return l&&l.length&&(u.version=l),u},"describe")},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:i(function(c){var l=s.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,c)||s.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,c)||s.default.getFirstMatch(/\bbb(\d+)/i,c);return{name:o.OS_MAP.BlackBerry,version:l}},"describe")},{test:[/bada/i],describe:i(function(c){var l=s.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.Bada,version:l}},"describe")},{test:[/tizen/i],describe:i(function(c){var l=s.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.Tizen,version:l}},"describe")},{test:[/linux/i],describe:i(function(){return{name:o.OS_MAP.Linux}},"describe")},{test:[/CrOS/],describe:i(function(){return{name:o.OS_MAP.ChromeOS}},"describe")},{test:[/PlayStation 4/],describe:i(function(c){var l=s.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.PlayStation4,version:l}},"describe")}];e.default=a,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:i(function(){return{type:"bot",vendor:"Google"}},"describe")},{test:[/huawei/i],describe:i(function(c){var l=s.default.getFirstMatch(/(can-l01)/i,c)&&"Nova",u={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return l&&(u.model=l),u},"describe")},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}},"describe")},{test:[/ipad/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}},"describe")},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}},"describe")},{test:[/kftt build/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}},"describe")},{test:[/silk/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}},"describe")},{test:[/tablet(?! pc)/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet}},"describe")},{test:i(function(c){var l=c.test(/ipod|iphone/i),u=c.test(/like (ipod|iphone)/i);return l&&!u},"test"),describe:i(function(c){var l=s.default.getFirstMatch(/(ipod|iphone)/i,c);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:l}},"describe")},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}},"describe")},{test:[/[^-]mobi/i],describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getBrowserName(!0)==="blackberry"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}},"describe")},{test:i(function(c){return c.getBrowserName(!0)==="bada"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getBrowserName()==="windows phone"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}},"describe")},{test:i(function(c){var l=Number(String(c.getOSVersion()).split(".")[0]);return c.getOSName(!0)==="android"&&l>=3},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tablet}},"describe")},{test:i(function(c){return c.getOSName(!0)==="android"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getOSName(!0)==="macos"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}},"describe")},{test:i(function(c){return c.getOSName(!0)==="windows"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop}},"describe")},{test:i(function(c){return c.getOSName(!0)==="linux"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop}},"describe")},{test:i(function(c){return c.getOSName(!0)==="playstation 4"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tv}},"describe")},{test:i(function(c){return c.getOSName(!0)==="roku"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tv}},"describe")}];e.default=a,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:i(function(c){return c.getBrowserName(!0)==="microsoft edge"},"test"),describe:i(function(c){if(/\sedg\//i.test(c))return{name:o.ENGINE_MAP.Blink};var l=s.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,c);return{name:o.ENGINE_MAP.EdgeHTML,version:l}},"describe")},{test:[/trident/i],describe:i(function(c){var l={name:o.ENGINE_MAP.Trident},u=s.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){return c.test(/presto/i)},"test"),describe:i(function(c){var l={name:o.ENGINE_MAP.Presto},u=s.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){var l=c.test(/gecko/i),u=c.test(/like gecko/i);return l&&!u},"test"),describe:i(function(c){var l={name:o.ENGINE_MAP.Gecko},u=s.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/(apple)?webkit\/537\.36/i],describe:i(function(){return{name:o.ENGINE_MAP.Blink}},"describe")},{test:[/(apple)?webkit/i],describe:i(function(c){var l={name:o.ENGINE_MAP.WebKit},u=s.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")}];e.default=a,t.exports=e.default}})}))});var STe,BTe=I(()=>{STe=i(({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>D(bTe())),s=n.parse??n.default.parse??(()=>""),o=typeof window<"u"&&window?.navigator?.userAgent?s(window.navigator.userAgent):void 0,a=[["aws-sdk-js",e],["ua","2.1"],[`os/${o?.os?.name||"other"}`,o?.os?.version],["lang/js"],["md/browser",`${o?.browser?.name??"unknown"}_${o?.browser?.version??"unknown"}`]];t&&a.push([`api/${t}`,e]);let c=await r?.userAgentAppId?.();return c&&a.push([`app/${c}`]),a},"createUserAgentStringParsingProvider")});var RTe,NTe=I(()=>{RTe={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}}});var W8=I(()=>{xt()});var rw,j8=I(()=>{xt();W8();rw=i((t,e=!1)=>{if(e){for(let r of t.split("."))if(!rw(r))return!1;return!0}return!(!yu(t)||t.length<3||t.length>63||t!==t.toLowerCase()||Cu(t))},"isVirtualHostableS3Bucket")});var yQ,J8=I(()=>{yQ=i(t=>{let e=t.split(":");if(e.length<6)return null;let[r,n,s,o,a,...c]=e;if(r!=="arn"||n===""||s===""||c.join(":")==="")return null;let l=c.map(u=>u.split("/")).flat();return{partition:n,service:s,region:o,accountId:a,resourceId:l}},"parseArn")});var _a,TTe=I(()=>{xt();j8();J8();dQ();_a={isVirtualHostableS3Bucket:rw,parseArn:yQ,partition:lQ};ao.aws=_a});var PTe=I(()=>{xt()});var vTe,K8,_Te=I(()=>{Qe();vTe=i(t=>{if(typeof t.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>K8(t.endpointProvider({Region:typeof t.region=="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint=="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint=="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))),t},"resolveDefaultAwsRegionalEndpointsConfig"),K8=i(t=>rs(t.url),"toEndpointV1")});var QTe=I(()=>{xt()});var DTe=I(()=>{Tt();Tt()});function EQ(t={}){return nt({...Dn,async default(){return X8.silence||console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...Ps,...t})}var X8,kTe=I(()=>{Tt();i(EQ,"stsRegionDefaultResolver");X8={silence:!1}});var El,Cl,LTe=I(()=>{El=i(t=>({setRegion(e){t.region=e},region(){return t.region}}),"getAwsRegionExtensionConfiguration"),Cl=i(t=>({region:t.region()}),"resolveAwsRegionExtensionConfiguration")});var Ds={};en(Ds,{DEFAULT_UA_APP_ID:()=>Xx,EndpointError:()=>St,NODE_APP_ID_CONFIG_OPTIONS:()=>yl,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Ps,NODE_REGION_CONFIG_OPTIONS:()=>Dn,REGION_ENV_NAME:()=>Vg,REGION_INI_NAME:()=>Yg,UA_APP_ID_ENV_NAME:()=>z8,UA_APP_ID_INI_NAME:()=>V8,awsEndpointFunctions:()=>_a,createDefaultUserAgentProvider:()=>va,createUserAgentStringParsingProvider:()=>STe,crtAvailability:()=>ew,defaultUserAgent:()=>ITe,emitWarningIfUnsupportedVersion:()=>qc,fallback:()=>RTe,getAwsRegionExtensionConfiguration:()=>El,getHostHeaderPlugin:()=>dl,getLoggerPlugin:()=>pl,getLongPollPlugin:()=>mxe,getRecursionDetectionPlugin:()=>ml,getUserAgentMiddlewareOptions:()=>U8,getUserAgentPlugin:()=>hl,getUserAgentPrefix:()=>uQ,hostHeaderMiddleware:()=>A8,hostHeaderMiddlewareOptions:()=>h8,isIpAddress:()=>Cu,isVirtualHostableS3Bucket:()=>rw,loggerMiddleware:()=>g8,loggerMiddlewareOptions:()=>y8,parseArn:()=>yQ,partition:()=>lQ,recursionDetectionMiddleware:()=>iQ,recursionDetectionMiddlewareOptions:()=>nQ,resolveAwsRegionExtensionConfiguration:()=>Cl,resolveDefaultAwsRegionalEndpointsConfig:()=>vTe,resolveEndpoint:()=>Dx,resolveHostHeaderConfig:()=>Ay,resolveRegionConfig:()=>Yo,resolveUserAgentConfig:()=>Al,setCredentialFeature:()=>zd,setFeature:()=>$i,setPartitionInfo:()=>L8,setTokenFeature:()=>CNe,state:()=>Ix,stsRegionDefaultResolver:()=>EQ,stsRegionWarning:()=>X8,toEndpointV1:()=>K8,useDefaultPartitionInfo:()=>eTe,userAgentMiddleware:()=>F8});var wt=I(()=>{pxe();fxe();Axe();f8();INe();xNe();wNe();E8();SNe();b8();D8();uTe();xTe();wTe();NTe();BTe();TTe();PTe();_Te();W8();j8();J8();dQ();QTe();DTe();kTe();LTe()});var Z8,OTe=I(()=>{Qe();Z8=i(t=>es.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,"getDateHeader")});var hy,ej=I(()=>{hy=i(t=>new Date(Date.now()+t),"getSkewCorrectedDate")});var MTe,FTe=I(()=>{ej();MTe=i((t,e)=>Math.abs(hy(e).getTime()-t)>=3e5,"isClockSkewed")});var tj,UTe=I(()=>{FTe();tj=i((t,e)=>{let r=Date.parse(t);return MTe(r,e)?r-Date.now():e},"getUpdatedSystemClockOffset")});var rj=I(()=>{OTe();ej();UTe()});var nw,sw,On,qTe,nj=I(()=>{Qe();rj();nw=i((t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},"throwSigningPropertyError"),sw=i(async t=>{let e=nw("context",t.context),r=nw("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],o=await nw("signer",r.signer)(n),a=t?.signingRegion,c=t?.signingRegionSet,l=t?.signingName;return{config:r,signer:o,signingRegion:a,signingRegionSet:c,signingName:l}},"validateSigningProperties"),On=class{static{i(this,"AwsSdkSigV4Signer")}async sign(e,r,n){if(!mt.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await sw(n),{config:o,signer:a}=s,{signingRegion:c,signingName:l}=s,u=n.context;if(u?.authSchemes?.length??!1){let[p,m]=u.authSchemes;p?.name==="sigv4a"&&m?.name==="sigv4"&&(c=m?.signingRegion??c,l=m?.signingName??l)}return await a.sign(e,{signingDate:hy(o.systemClockOffset),signingRegion:c,signingService:l})}errorHandler(e){return r=>{let n=r.ServerTime??Z8(r.$response);if(n){let s=nw("config",e.config),o=s.systemClockOffset;s.systemClockOffset=tj(n,s.systemClockOffset),s.systemClockOffset!==o&&r.$metadata&&(r.$metadata.clockSkewCorrected=!0)}throw r}}successHandler(e,r){let n=Z8(e);if(n){let s=nw("config",r.config);s.systemClockOffset=tj(n,s.systemClockOffset)}}},qTe=On});var lp,$Te=I(()=>{Qe();rj();nj();lp=class extends On{static{i(this,"AwsSdkSigV4ASigner")}async sign(e,r,n){if(!mt.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:s,signer:o,signingRegion:a,signingRegionSet:c,signingName:l}=await sw(n),d=(await s.sigv4aSigningRegionSet?.()??c??[a]).join(",");return await o.sign(e,{signingDate:hy(s.systemClockOffset),signingRegion:d,signingService:l})}}});var sj,GTe=I(()=>{sj=i(t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[],"getArrayForCommaSeparatedString")});var oj,ij=I(()=>{oj=i(t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`,"getBearerTokenEnvKey")});var HTe,zTe,Pu,VTe=I(()=>{GTe();ij();HTe="AWS_AUTH_SCHEME_PREFERENCE",zTe="auth_scheme_preference",Pu={environmentVariableSelector:i((t,e)=>{if(e?.signingName&&oj(e.signingName)in t)return["httpBearerAuth"];if(HTe in t)return sj(t[HTe])},"environmentVariableSelector"),configFileSelector:i(t=>{if(zTe in t)return sj(t[zTe])},"configFileSelector"),default:[]}});var aj,cj,YTe=I(()=>{Qs();Tt();aj=i(t=>(t.sigv4aSigningRegionSet=fl(t.sigv4aSigningRegionSet),t),"resolveAwsSdkSigV4AConfig"),cj={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new Vo("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new Vo("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var Cj=b(ct=>{"use strict";var ns=(st(),W(Zd)),WTe=(Ce(),W(Ui)),yy=(Qe(),W(rl)),lj=class{static{i(this,"HeaderFormatter")}format(e){let r=[];for(let o of Object.keys(e)){let a=ns.fromUtf8(o);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}let n=new Uint8Array(r.reduce((o,a)=>o+a.byteLength,0)),s=0;for(let o of r)n.set(o,s),s+=o.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(o.buffer);return a.set(e.value,3),a;case"string":let c=ns.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(uj.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!TCt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(ns.fromHex(e.value.replace(/\-/g,"")),1),p}}},jTe;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(jTe||(jTe={}));var TCt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,uj=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&JTe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&JTe(e),parseInt(ns.toHex(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function JTe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}i(JTe,"negate");var XTe="X-Amz-Algorithm",ZTe="X-Amz-Credential",fj="X-Amz-Date",ePe="X-Amz-SignedHeaders",tPe="X-Amz-Expires",Aj="X-Amz-Signature",hj="X-Amz-Security-Token",PCt="X-Amz-Region-Set",gj="authorization",yj=fj.toLowerCase(),rPe="date",nPe=[gj,yj,rPe],sPe=Aj.toLowerCase(),bQ="x-amz-content-sha256",oPe=hj.toLowerCase(),vCt="host",iPe={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},aPe=/^proxy-/,cPe=/^sec-/,_Ct=[/^proxy-/i,/^sec-/i],CQ="AWS4-HMAC-SHA256",QCt="AWS4-ECDSA-P256-SHA256",lPe="AWS4-HMAC-SHA256-PAYLOAD",uPe="UNSIGNED-PAYLOAD",dPe=50,Ej="aws4_request",pPe=3600*24*7,mPe=i(({query:t={}})=>{let e=[],r={};for(let n of Object.keys(t)){if(n.toLowerCase()===sPe)continue;let s=yy.escapeUri(n);e.push(s);let o=t[n];typeof o=="string"?r[s]=`${s}=${yy.escapeUri(o)}`:Array.isArray(o)&&(r[s]=o.slice(0).reduce((a,c)=>a.concat([`${s}=${yy.escapeUri(c)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},"getCanonicalQuery"),DCt=i(t=>kCt(t).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),kCt=i(t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,"toDate"),SQ=class{static{i(this,"SignatureV4Base")}service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){this.service=s,this.sha256=o,this.uriEscapePath=a,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=WTe.normalizeProvider(n),this.credentialProvider=WTe.normalizeProvider(r)}createCanonicalRequest(e,r,n){let s=Object.keys(r).sort();return`${e.method} +`)}p.push(null)}),p}var wSe,SSe=I(()=>{wSe=require("node:stream");xSe();bu();i(bSe,"getAwsChunkedEncodingStream")});async function BSe(t,e){let r=0,n=[],s=t.getReader(),o=!1;for(;!o;){let{done:l,value:u}=await s.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;o=l}s.releaseLock();let a=new Uint8Array(Math.min(e,r)),c=0;for(let l of n){if(l.byteLength>a.byteLength-c){a.set(l.subarray(0,a.byteLength-c),c);break}else a.set(l,c);c+=l.length}return a}var RSe=I(()=>{i(BSe,"headStream")});var NSe,TSe,hW,PSe=I(()=>{NSe=require("node:stream");RSe();bu();TSe=i((t,e)=>On(t)?BSe(t,e):new Promise((r,n)=>{let s=new hW;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=new Uint8Array(Buffer.concat(this.buffers));r(o)})}),"headStream"),hW=class extends NSe.Writable{static{i(this,"Collector")}buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let s=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-s),this.emit("finish")}n()}}});var vSe,_Se=I(()=>{vSe=i(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)},"toUtf8")});var QSe,DSe=I(()=>{dW();QSe=i(t=>{let e=t.length/4*3;t.slice(-2)==="=="?e-=2:t.slice(-1)==="="&&e--;let r=new ArrayBuffer(e),n=new DataView(r);for(let s=0;s>=Xd;let c=s/4*3;o>>=a%Af;let l=Math.floor(a/Af);for(let u=0;u>d)}}return new Uint8Array(r)},"fromBase64")});async function $yt(t){let e=await Hyt(t),r=QSe(e);return new Uint8Array(r)}async function Gyt(t){let e=[],r=t.getReader(),n=!1,s=0;for(;!n;){let{done:c,value:l}=await r.read();l&&(e.push(l),s+=l.length),n=c}let o=new Uint8Array(s),a=0;for(let c of e)o.set(c,a),a+=c.length;return o}function Hyt(t){return new Promise((e,r)=>{let n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));let s=n.result??"",o=s.indexOf(","),a=o>-1?o+1:s.length;e(s.substring(a))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}var kSe,LSe=I(()=>{DSe();kSe=i(async t=>typeof Blob=="function"&&t instanceof Blob||t.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await t.arrayBuffer()):$yt(t):Gyt(t),"streamCollector");i($yt,"collectBlob");i(Gyt,"collectStream");i(Hyt,"readToBase64")});var OSe,FSe,MSe,USe=I(()=>{pW();CY();_Se();LSe();bu();OSe="The stream has already been transformed.",FSe=i(t=>{if(!MSe(t)&&!On(t)){let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(OSe);return e=!0,await kSe(t)},"transformToByteArray"),n=i(s=>{if(typeof s.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. +If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return s.stream()},"blobToWebStream");return Object.assign(t,{transformToByteArray:r,transformToString:i(async s=>{let o=await r();if(s==="base64")return i_(o);if(s==="hex")return ki(o);if(s===void 0||s==="utf8"||s==="utf-8")return vSe(o);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(o);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(OSe);if(e=!0,MSe(t))return n(t);if(On(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),MSe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});async function Vyt(t){let e=[],r=t.getReader(),n=!1,s=0;for(;!n;){let{done:c,value:l}=await r.read();l&&(e.push(l),s+=l.length),n=c}let o=new Uint8Array(s),a=0;for(let c of e)o.set(c,a),a+=c.length;return o}var qSe,gW,zyt,$Se,GSe=I(()=>{qSe=require("node:stream"),gW=class extends qSe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}},zyt=i(t=>typeof ReadableStream=="function"&&t instanceof ReadableStream,"isReadableStreamInstance");i(Vyt,"collectReadableStream");$Se=i(t=>zyt(t)?Vyt(t):new Promise((e,r)=>{let n=new gW;t.pipe(n),t.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));e(s)})}),"streamCollector")});var c_,HSe,l_,zSe=I(()=>{c_=require("node:stream");jd();USe();GSe();HSe="The stream has already been transformed.",l_=i(t=>{if(!(t instanceof c_.Readable))try{return FSe(t)}catch{let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(HSe);return e=!0,await $Se(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?wa(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(HSe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof c_.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,c_.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function VSe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var YSe=I(()=>{i(VSe,"splitStream")});async function WSe(t){if(On(t)||o_(t))return VSe(t);let e=new yW.PassThrough,r=new yW.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var yW,jSe=I(()=>{yW=require("node:stream");YSe();bu();i(WSe,"splitStream")});var Zd={};rn(Zd,{ChecksumStream:()=>Zg,Hash:()=>Fi,LazyJsonString:()=>Zn,NumericValue:()=>qt,Uint8ArrayBlobAdapter:()=>yf,_parseEpochTimestamp:()=>pf,_parseRfc3339DateTimeWithOffset:()=>Ev,_parseRfc7231DateTime:()=>Cv,calculateBodyLength:()=>Gc,copyDocumentWithTransform:()=>twe,createBufferedReadable:()=>ESe,createChecksumStream:()=>fSe,dateToUtcString:()=>ba,deserializerMiddleware:()=>Sv,deserializerMiddlewareOption:()=>aW,expectBoolean:()=>swe,expectByte:()=>uv,expectFloat32:()=>Bx,expectInt:()=>owe,expectInt32:()=>cv,expectLong:()=>Fg,expectNonNull:()=>iwe,expectNumber:()=>Mg,expectObject:()=>dY,expectShort:()=>lv,expectString:()=>awe,expectUnion:()=>pv,fromArrayBuffer:()=>wa,fromBase64:()=>Gr,fromHex:()=>wv,fromString:()=>Wd,fromUtf8:()=>Hr,generateIdempotencyToken:()=>Ra,getAwsChunkedEncodingStream:()=>bSe,getSerdePlugin:()=>tSe,handleFloat:()=>lwe,headStream:()=>TSe,isArrayBuffer:()=>ov,isBlob:()=>o_,isReadableStream:()=>On,limitedParseDouble:()=>fv,limitedParseFloat:()=>uwe,limitedParseFloat32:()=>dwe,logger:()=>Ug,nv:()=>xv,parseBoolean:()=>nwe,parseEpochTimestamp:()=>gv,parseRfc3339DateTime:()=>Awe,parseRfc3339DateTimeWithOffset:()=>hv,parseRfc7231DateTime:()=>Gg,quoteHeader:()=>yv,sdkStreamMixin:()=>l_,serializerMiddleware:()=>n_,serializerMiddlewareOption:()=>cW,splitEvery:()=>Iv,splitHeader:()=>Hg,splitStream:()=>WSe,strictParseByte:()=>Av,strictParseDouble:()=>Rx,strictParseFloat:()=>cwe,strictParseFloat32:()=>mv,strictParseInt:()=>mwe,strictParseInt32:()=>fwe,strictParseLong:()=>pY,strictParseShort:()=>Jd,toBase64:()=>hr,toHex:()=>ki,toUint8Array:()=>bv,toUtf8:()=>gr,v4:()=>ey});var JSe,yf,Yyt,ey,Ra,st=I(()=>{JSe=require("node:crypto");jxe();lY();Kxe();iv();Xxe();ewe();rwe();hwe();gwe();mY();ywe();Iwe();xwe();wwe();Swe();CY();Rwe();IY();jd();cY();wY();rSe();iW();sSe();lW();ASe();CSe();SSe();PSe();zSe();jSe();bu();yf=class extends Jxe(gr,Hr,hr,Gr){static{i(this,"Uint8ArrayBlobAdapter")}},Yyt=JSe.getRandomValues,ey=Zxe(Yyt),Ra=ey});var lo,u_=I(()=>{st();lo=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return yf.mutate(t);if(!t)return yf.mutate(new Uint8Array);let r=e.streamCollector(t);return yf.mutate(await r)},"collectBody")});function Jc(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var d_=I(()=>{i(Jc,"extendedEncodeURIComponent")});var _s,ty=I(()=>{_s=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});function Wyt(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var mt,Ef=I(()=>{mt=class t{static{i(this,"HttpRequest")}method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=Wyt(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}};i(Wyt,"cloneQuery")});var es,EW=I(()=>{es=class{static{i(this,"HttpResponse")}statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var ny={};rn(ny,{__addDisposableResource:()=>gBe,__assign:()=>p_,__asyncDelegator:()=>lBe,__asyncGenerator:()=>cBe,__asyncValues:()=>uBe,__await:()=>ry,__awaiter:()=>rBe,__classPrivateFieldGet:()=>fBe,__classPrivateFieldIn:()=>hBe,__classPrivateFieldSet:()=>ABe,__createBinding:()=>f_,__decorate:()=>ZSe,__disposeResources:()=>yBe,__esDecorate:()=>jyt,__exportStar:()=>sBe,__extends:()=>KSe,__generator:()=>nBe,__importDefault:()=>mBe,__importStar:()=>pBe,__makeTemplateObject:()=>dBe,__metadata:()=>tBe,__param:()=>eBe,__propKey:()=>Kyt,__read:()=>IW,__rest:()=>XSe,__runInitializers:()=>Jyt,__setFunctionName:()=>Xyt,__spread:()=>oBe,__spreadArray:()=>aBe,__spreadArrays:()=>iBe,__values:()=>m_,default:()=>tEt});function KSe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");CW(t,e);function r(){this.constructor=t}i(r,"__"),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function XSe(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 s=0,n=Object.getOwnPropertySymbols(t);s=0;c--)(a=t[c])&&(o=(s<3?a(o):s>3?a(e,r,o):a(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function eBe(t,e){return function(r,n){e(r,n,t)}}function jyt(t,e,r,n,s,o){function a(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}i(a,"accept");for(var c=n.kind,l=c==="getter"?"get":c==="setter"?"set":"value",u=!e&&t?n.static?t:t.prototype:null,d=e||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p,m=!1,f=r.length-1;f>=0;f--){var g={};for(var E in n)g[E]=E==="access"?{}:n[E];for(var E in n.access)g.access[E]=n.access[E];g.addInitializer=function(w){if(m)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(w||null))};var x=(0,r[f])(c==="accessor"?{get:d.get,set:d.set}:d[l],g);if(c==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(p=a(x.get))&&(d.get=p),(p=a(x.set))&&(d.set=p),(p=a(x.init))&&s.unshift(p)}else(p=a(x))&&(c==="field"?s.unshift(p):d[l]=p)}u&&Object.defineProperty(u,n.name,d),m=!0}function Jyt(t,e,r){for(var n=arguments.length>2,s=0;s0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}},"next")};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function IW(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),s,o=[],a;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)o.push(s.value)}catch(c){a={error:c}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function oBe(){for(var t=[],e=0;e1||c(m,f)})})}function c(m,f){try{l(n[m](f))}catch(g){p(o[0][3],g)}}function l(m){m.value instanceof ry?Promise.resolve(m.value.v).then(u,d):p(o[0][2],m)}function u(m){c("next",m)}function d(m){c("throw",m)}function p(m,f){m(f),o.shift(),o.length&&c(o[0][0],o[0][1])}}function lBe(t){var e,r;return e={},n("next"),n("throw",function(s){throw s}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(s,o){e[s]=t[s]?function(a){return(r=!r)?{value:ry(t[s](a)),done:!1}:o?o(a):a}:o}}function uBe(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 m_=="function"?m_(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}}function dBe(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function pBe(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)&&f_(e,t,r);return Zyt(e,t),e}function mBe(t){return t&&t.__esModule?t:{default:t}}function fBe(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function ABe(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r}function hBe(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function gBe(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}function yBe(t){function e(n){t.error=t.hasError?new eEt(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}i(e,"fail");function r(){for(;t.stack.length;){var n=t.stack.pop();try{var s=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(s).then(r,function(o){return e(o),r()})}catch(o){e(o)}}if(t.hasError)throw t.error}return i(r,"next"),r()}var CW,p_,f_,Zyt,eEt,tEt,sy=I(()=>{CW=i(function(t,e){return CW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},CW(t,e)},"extendStatics");i(KSe,"__extends");p_=i(function(){return p_=Object.assign||i(function(e){for(var r,n=1,s=arguments.length;n{var A_=Object.defineProperty,rEt=Object.getOwnPropertyDescriptor,nEt=Object.getOwnPropertyNames,sEt=Object.prototype.hasOwnProperty,oEt=i((t,e)=>A_(t,"name",{value:e,configurable:!0}),"__name"),iEt=i((t,e)=>{for(var r in e)A_(t,r,{get:e[r],enumerable:!0})},"__export"),aEt=i((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of nEt(e))!sEt.call(t,s)&&s!==r&&A_(t,s,{get:i(()=>e[s],"get"),enumerable:!(n=rEt(e,s))||n.enumerable});return t},"__copyProps"),cEt=i(t=>aEt(A_({},"__esModule",{value:!0}),t),"__toCommonJS"),EBe={};iEt(EBe,{isArrayBuffer:i(()=>lEt,"isArrayBuffer")});CBe.exports=cEt(EBe);var lEt=oEt(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var SBe=b((SSr,bBe)=>{var h_=Object.defineProperty,uEt=Object.getOwnPropertyDescriptor,dEt=Object.getOwnPropertyNames,pEt=Object.prototype.hasOwnProperty,xBe=i((t,e)=>h_(t,"name",{value:e,configurable:!0}),"__name"),mEt=i((t,e)=>{for(var r in e)h_(t,r,{get:e[r],enumerable:!0})},"__export"),fEt=i((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of dEt(e))!pEt.call(t,s)&&s!==r&&h_(t,s,{get:i(()=>e[s],"get"),enumerable:!(n=uEt(e,s))||n.enumerable});return t},"__copyProps"),AEt=i(t=>fEt(h_({},"__esModule",{value:!0}),t),"__toCommonJS"),wBe={};mEt(wBe,{fromArrayBuffer:i(()=>gEt,"fromArrayBuffer"),fromString:i(()=>yEt,"fromString")});bBe.exports=AEt(wBe);var hEt=IBe(),xW=require("buffer"),gEt=xBe((t,e=0,r=t.byteLength-e)=>{if(!(0,hEt.isArrayBuffer)(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return xW.Buffer.from(t,e,r)},"fromArrayBuffer"),yEt=xBe((t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?xW.Buffer.from(t,e):xW.Buffer.from(t)},"fromString")});var PBe=b((RSr,TBe)=>{var g_=Object.defineProperty,EEt=Object.getOwnPropertyDescriptor,CEt=Object.getOwnPropertyNames,IEt=Object.prototype.hasOwnProperty,wW=i((t,e)=>g_(t,"name",{value:e,configurable:!0}),"__name"),xEt=i((t,e)=>{for(var r in e)g_(t,r,{get:e[r],enumerable:!0})},"__export"),wEt=i((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of CEt(e))!IEt.call(t,s)&&s!==r&&g_(t,s,{get:i(()=>e[s],"get"),enumerable:!(n=EEt(e,s))||n.enumerable});return t},"__copyProps"),bEt=i(t=>wEt(g_({},"__esModule",{value:!0}),t),"__toCommonJS"),BBe={};xEt(BBe,{fromUtf8:i(()=>NBe,"fromUtf8"),toUint8Array:i(()=>SEt,"toUint8Array"),toUtf8:i(()=>BEt,"toUtf8")});TBe.exports=bEt(BBe);var RBe=SBe(),NBe=wW(t=>{let e=(0,RBe.fromString)(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),SEt=wW(t=>typeof t=="string"?NBe(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array"),BEt=wW(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,RBe.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});var vBe=b(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0});y_.convertToBuffer=void 0;var REt=PBe(),NEt=typeof Buffer<"u"&&Buffer.from?function(t){return Buffer.from(t,"utf8")}:REt.fromUtf8;function TEt(t){return t instanceof Uint8Array?t:typeof t=="string"?NEt(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}i(TEt,"convertToBuffer");y_.convertToBuffer=TEt});var _Be=b(E_=>{"use strict";Object.defineProperty(E_,"__esModule",{value:!0});E_.isEmptyData=void 0;function PEt(t){return typeof t=="string"?t.length===0:t.byteLength===0}i(PEt,"isEmptyData");E_.isEmptyData=PEt});var QBe=b(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.numToUint8=void 0;function vEt(t){return new Uint8Array([(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255])}i(vEt,"numToUint8");C_.numToUint8=vEt});var DBe=b(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.uint32ArrayFrom=void 0;function _Et(t){if(!Uint32Array.from){for(var e=new Uint32Array(t.length),r=0;r{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.uint32ArrayFrom=Kc.numToUint8=Kc.isEmptyData=Kc.convertToBuffer=void 0;var QEt=vBe();Object.defineProperty(Kc,"convertToBuffer",{enumerable:!0,get:i(function(){return QEt.convertToBuffer},"get")});var DEt=_Be();Object.defineProperty(Kc,"isEmptyData",{enumerable:!0,get:i(function(){return DEt.isEmptyData},"get")});var kEt=QBe();Object.defineProperty(Kc,"numToUint8",{enumerable:!0,get:i(function(){return kEt.numToUint8},"get")});var LEt=DBe();Object.defineProperty(Kc,"uint32ArrayFrom",{enumerable:!0,get:i(function(){return LEt.uint32ArrayFrom},"get")})});var OBe=b(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0});x_.AwsCrc32=void 0;var kBe=(sy(),W(ny)),SW=bW(),LBe=w_(),OEt=(function(){function t(){this.crc32=new LBe.Crc32}return i(t,"AwsCrc32"),t.prototype.update=function(e){(0,SW.isEmptyData)(e)||this.crc32.update((0,SW.convertToBuffer)(e))},t.prototype.digest=function(){return kBe.__awaiter(this,void 0,void 0,function(){return kBe.__generator(this,function(e){return[2,(0,SW.numToUint8)(this.crc32.digest())]})})},t.prototype.reset=function(){this.crc32=new LBe.Crc32},t})();x_.AwsCrc32=OEt});var w_=b(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.AwsCrc32=ep.Crc32=ep.crc32=void 0;var MEt=(sy(),W(ny)),FEt=bW();function UEt(t){return new MBe().update(t).digest()}i(UEt,"crc32");ep.crc32=UEt;var MBe=(function(){function t(){this.checksum=4294967295}return i(t,"Crc32"),t.prototype.update=function(e){var r,n;try{for(var s=MEt.__values(e),o=s.next();!o.done;o=s.next()){var a=o.value;this.checksum=this.checksum>>>8^$Et[(this.checksum^a)&255]}}catch(c){r={error:c}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return this},t.prototype.digest=function(){return(this.checksum^4294967295)>>>0},t})();ep.Crc32=MBe;var qEt=[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],$Et=(0,FEt.uint32ArrayFrom)(qEt),GEt=OBe();Object.defineProperty(ep,"AwsCrc32",{enumerable:!0,get:i(function(){return GEt.AwsCrc32},"get")})});function FBe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var tp,BW=I(()=>{st();tp=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&FBe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&FBe(e),parseInt(ki(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(FBe,"negate")});var oy,UBe,qBe,HEt,zEt,VEt,YEt,WEt,jEt,JEt,KEt,XEt,RW=I(()=>{st();BW();oy=class{static{i(this,"HeaderMarshaller")}toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let o of Object.keys(e)){let a=this.fromUtf8(o);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}let n=new Uint8Array(r.reduce((o,a)=>o+a.byteLength,0)),s=0;for(let o of r)n.set(o,s),s+=o.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(o.buffer);return a.set(e.value,3),a;case"string":let c=this.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(tp.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!XEt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(wv(e.value.replace(/\-/g,"")),1),p}}parse(e){let r={},n=0;for(;n{$Be=D(w_()),GBe=4,rp=GBe*2,Cf=4,ZEt=rp+Cf*2;i(HBe,"splitMessage")});var VBe,iy,NW=I(()=>{VBe=D(w_());RW();zBe();iy=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new oy(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),s=n.byteLength+r.byteLength+16,o=new Uint8Array(s),a=new DataView(o.buffer,o.byteOffset,o.byteLength),c=new VBe.Crc32;return a.setUint32(0,s,!1),a.setUint32(4,n.byteLength,!1),a.setUint32(8,c.update(o.subarray(0,8)).digest(),!1),o.set(n,12),o.set(r,n.byteLength+12),a.setUint32(s-4,c.update(o.subarray(8,s-4)).digest(),!1),o}decode(e){let{headers:r,body:n}=HBe(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var ay,TW=I(()=>{ay=class{static{i(this,"MessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var cy,PW=I(()=>{cy=class{static{i(this,"MessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var ly,vW=I(()=>{ly=class{static{i(this,"SmithyMessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var uy,_W=I(()=>{uy=class{static{i(this,"SmithyMessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function b_(t){let e=0,r=0,n=null,s=null,o=i(c=>{if(typeof c!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+c);e=c,r=4,n=new Uint8Array(c),new DataView(n.buffer).setUint32(0,c,!1)},"allocateMessage"),a=i(async function*(){let c=t[Symbol.asyncIterator]();for(;;){let{value:l,done:u}=await c.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let d=l.length,p=0;for(;p{i(b_,"getChunkedStream")});function YBe(t,e){let r=Fx(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let s=e.eventStreamCodec.decode(n),o=await r(s);o!==void 0&&(yield o)}}}}function Fx(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let s=new Error(r.headers[":error-message"].value||"UnknownError");throw s.name=r.headers[":error-code"].value,s}else if(n==="exception"){let s=r.headers[":exception-type"].value,o={[s]:r},a=await t(o);if(a.$unknown){let c=new Error(e(r.body));throw c.name=s,c}throw a[s]}else if(n==="event"){let s={[r.headers[":event-type"].value]:r},o=await t(s);return o.$unknown?void 0:o}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var DW=I(()=>{i(YBe,"getUnmarshalledStream");i(Fx,"getMessageUnmarshaller")});var If,WBe,kW=I(()=>{NW();TW();PW();vW();_W();QW();DW();If=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new iy(e,r),this.utfEncoder=e}deserialize(e,r){let n=b_(e);return new ly({messageStream:new ay({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Fx(r,this.utfEncoder)})}serialize(e,r){return new cy({messageStream:new uy({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},WBe=i(t=>new If(t),"eventStreamSerdeProvider")});async function*eCt(t){let e=!1,r=!1,n=new Array;for(t.on("error",s=>{if(e||(e=!0),s)throw s}),t.on("data",s=>{n.push(s)}),t.on("end",()=>{e=!0});!r;){let s=await new Promise(o=>setTimeout(()=>o(n.shift()),0));s&&(yield s),r=e&&n.length===0}}var jBe,Ux,JBe,KBe=I(()=>{jBe=require("node:stream");kW();Ux=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new If({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:eCt(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return jBe.Readable.from(this.universalMarshaller.serialize(e,r))}},JBe=i(t=>new Ux(t),"eventStreamSerdeProvider");i(eCt,"readableToIterable")});var XBe,ZBe,eRe=I(()=>{XBe=i(t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),"readableStreamToIterable"),ZBe=i(t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:s}=await e.next();if(n)return r.close();r.enqueue(s)}})},"iterableToReadableStream")});var tRe,rRe=I(()=>{tRe=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var S_,nRe=I(()=>{st();S_=class{static{i(this,"EventStreamSerde")}marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:s,defaultContentType:o}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=s,this.defaultContentType=o}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){let s=this.marshaller,o=r.getEventStreamMember(),a=r.getMemberSchema(o),c=this.serializer,l=this.defaultContentType,u=Symbol("initialRequestMarker"),d={async*[Symbol.asyncIterator](){if(n){let p={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:l}};c.write(r,n);let m=c.flush();yield{[u]:!0,headers:p,body:m}}for await(let p of e)yield p}};return s.serialize(d,p=>{if(p[u])return{headers:p.headers,body:p.body};let m="";for(let S in p)if(S!=="__type"){m=S;break}let{additionalHeaders:f,body:g,eventType:E,explicitPayloadContentType:x}=this.writeEventBody(m,a,p);return{headers:{":event-type":{type:"string",value:E},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:x??l},...f},body:g}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){let s=this.marshaller,o=r.getEventStreamMember(),c=r.getMemberSchema(o).getMemberSchemas(),l=Symbol("initialResponseMarker"),u=s.deserialize(e.body,async m=>{let f="";for(let E in m)if(E!=="__type"){f=E;break}let g=m[f].body;if(f==="initial-response"){let E=await this.deserializer.read(r,g);return delete E[o],{[l]:!0,...E}}else if(f in c){let E=c[f];if(E.isStructSchema()){let x={},w=!1;for(let[S,P]of E.structIterator()){let{eventHeader:Q,eventPayload:q}=P.getMergedTraits();if(w=w||!!(Q||q),q)P.isBlobSchema()?x[S]=g:P.isStringSchema()?x[S]=(this.serdeContext?.utf8Encoder??gr)(g):P.isStructSchema()&&(x[S]=await this.deserializer.read(P,g));else if(Q){let M=m[f].headers[S]?.value;M!=null&&(P.isNumericSchema()?M&&typeof M=="object"&&"bytes"in M?x[S]=BigInt(M.toString()):x[S]=Number(M):x[S]=M)}}if(w)return{[f]:x};if(g.byteLength===0)return{[f]:{}}}return{[f]:await this.deserializer.read(E,g)}}else return{$unknown:m}}),d=u[Symbol.asyncIterator](),p=await d.next();if(p.done)return u;if(p.value?.[l]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let m in p.value)n[m]=p.value[m]}return{async*[Symbol.asyncIterator](){for(p?.value?.[l]||(yield p.value);;){let{done:m,value:f}=await d.next();if(m)break;yield f}}}}writeEventBody(e,r,n){let s=this.serializer,o=e,a=null,c,l=r.getSchema()[4].includes(e),u={};if(l){let m=r.getMemberSchema(e);if(m.isStructSchema()){for(let[f,g]of m.structIterator()){let{eventHeader:E,eventPayload:x}=g.getMergedTraits();if(x)a=f;else if(E){let w=n[e][f],S="binary";g.isNumericSchema()?(-2)**31<=w&&w<=2**31-1?S="integer":S="long":g.isTimestampSchema()?S="timestamp":g.isStringSchema()?S="string":g.isBooleanSchema()&&(S="boolean"),w!=null&&(u[f]={type:S,value:w},delete n[e][f])}}if(a!==null){let f=m.getMemberSchema(a);f.isBlobSchema()?c="application/octet-stream":f.isStringSchema()&&(c="text/plain"),s.write(f,n[e][a])}else s.write(m,n[e])}else if(m.isUnitSchema())s.write(m,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[m,f]=n[e];o=m,s.write(15,f)}let d=s.flush()??new Uint8Array;return{body:typeof d=="string"?(this.serdeContext?.utf8Decoder??Hr)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var sRe={};rn(sRe,{EventStreamCodec:()=>iy,EventStreamMarshaller:()=>Ux,EventStreamSerde:()=>S_,HeaderMarshaller:()=>oy,Int64:()=>tp,MessageDecoderStream:()=>ay,MessageEncoderStream:()=>cy,SmithyMessageDecoderStream:()=>ly,SmithyMessageEncoderStream:()=>uy,UniversalEventStreamMarshaller:()=>If,eventStreamSerdeProvider:()=>JBe,getChunkedStream:()=>b_,getMessageUnmarshaller:()=>Fx,getUnmarshalledStream:()=>YBe,iterableToReadableStream:()=>ZBe,readableStreamToIterable:()=>XBe,resolveEventStreamSerdeConfig:()=>tRe,universalEventStreamSerdeProvider:()=>WBe});var oRe=I(()=>{NW();RW();BW();TW();PW();vW();_W();KBe();eRe();kW();QW();DW();rRe();nRe()});var xf,B_=I(()=>{Ct();ty();Ef();EW();xf=class extends _s{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=yr.for(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return mt}getResponseType(){return es}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,s]of r.url.searchParams.entries())e.query[n]=s;if(r.headers)for(let n in r.headers)e.headers[n]=r.headers[n].join(", ");return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)e.headers[n]=r.headers[n];return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let s=Ee.of(r.input),o=Xc(r.traits??{});if(o.endpoint){let a=o.endpoint?.[0];if(typeof a=="string"){for(let[c,l]of s.structIterator()){if(!l.getMergedTraits().hostLabel)continue;let u=n[c];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${c} in input must be a string as hostLabel.`);a=a.replace(`{${c}}`,u)}e.hostname=a+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await Promise.resolve().then(()=>(oRe(),sRe));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,s,o){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}});var wf,iRe=I(()=>{Ct();st();B_();u_();d_();Ef();wf=class extends xf{static{i(this,"HttpBindingProtocol")}async serializeRequest(e,r,n){let s=r&&typeof r=="object"?r:{},o=this.serializer,a={},c={},l=await n.endpoint(),u=Ee.of(e?.input),d=[],p=[],m=!1,f,g=new mt({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:c,body:void 0});if(l){this.updateServiceEndpoint(g,l),this.setHostPrefix(g,e,s);let E=Xc(e.traits);if(E.http){g.method=E.http[0];let[x,w]=E.http[1].split("?");g.path=="/"?g.path=x:g.path+=x;let S=new URLSearchParams(w??"");for(let[P,Q]of S)a[P]=Q}}for(let[E,x]of u.structIterator()){let w=x.getMergedTraits()??{},S=s[E];if(S==null&&!x.isIdempotencyToken()){if(w.httpLabel&&(g.path.includes(`{${E}+}`)||g.path.includes(`{${E}}`)))throw new Error(`No value provided for input HTTP label: ${E}.`);continue}if(w.httpPayload)x.isStreaming()?x.isStructSchema()?s[E]&&(f=await this.serializeEventStream({eventStream:s[E],requestSchema:u})):f=S:(o.write(x,S),f=o.flush());else if(w.httpLabel){o.write(x,S);let P=o.flush();g.path.includes(`{${E}+}`)?g.path=g.path.replace(`{${E}+}`,P.split("/").map(Jc).join("/")):g.path.includes(`{${E}}`)&&(g.path=g.path.replace(`{${E}}`,Jc(P)))}else if(w.httpHeader)o.write(x,S),c[w.httpHeader.toLowerCase()]=String(o.flush());else if(typeof w.httpPrefixHeaders=="string")for(let P in S){let Q=S[P],q=w.httpPrefixHeaders+P;o.write([x.getValueSchema(),{httpHeader:q}],Q),c[q.toLowerCase()]=o.flush()}else w.httpQuery||w.httpQueryParams?this.serializeQuery(x,S,a):(m=!0,d.push(E),p.push(x))}if(m&&s){let[E,x]=(u.getName(!0)??"#Unknown").split("#"),w=u.getSchema()[6],S=[3,E,x,u.getMergedTraits(),d,p,void 0];w?S[6]=w:S.pop(),o.write(S,s),f=o.flush()}return g.headers=c,g.query=a,g.body=f,g}serializeQuery(e,r,n){let s=this.serializer,o=e.getMergedTraits();if(o.httpQueryParams){for(let a in r)if(!(a in n)){let c=r[a],l=e.getValueSchema();Object.assign(l.getMergedTraits(),{...o,httpQuery:a,httpQueryParams:void 0}),this.serializeQuery(l,c,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,c=[];for(let l of r){s.write([e.getValueSchema(),o],l);let u=s.flush();(a||u!==void 0)&&c.push(u)}n[o.httpQuery]=c}else s.write([e,o],r),n[o.httpQuery]=s.flush()}async deserializeResponse(e,r,n){let s=this.deserializer,o=Ee.of(e.output),a={};if(n.statusCode>=300){let l=await lo(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let l in n.headers){let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=await this.deserializeHttpMessage(o,r,n,a);if(c.length){let l=await lo(n.body,r);if(l.byteLength>0){let u=await s.read(o,l);for(let d of c)u[d]!=null&&(a[d]=u[d])}}else c.discardResponseBody&&await lo(n.body,r);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,r,n,s,o){let a;s instanceof Set?a=o:a=s;let c=!0,l=this.deserializer,u=Ee.of(e),d=[];for(let[p,m]of u.structIterator()){let f=m.getMemberTraits();if(f.httpPayload){if(c=!1,m.isStreaming())m.isStructSchema()?a[p]=await this.deserializeEventStream({response:n,responseSchema:u}):a[p]=l_(n.body);else if(n.body){let E=await lo(n.body,r);E.byteLength>0&&(a[p]=await l.read(m,E))}}else if(f.httpHeader){let g=String(f.httpHeader).toLowerCase(),E=n.headers[g];if(E!=null)if(m.isListSchema()){let x=m.getValueSchema();x.getMergedTraits().httpHeader=g;let w;x.isTimestampSchema()&&x.getSchema()===4?w=Iv(E,",",2):w=Hg(E);let S=[];for(let P of w)S.push(await l.read(x,P.trim()));a[p]=S}else a[p]=await l.read(m,E)}else if(f.httpPrefixHeaders!==void 0){a[p]={};for(let g in n.headers)if(g.startsWith(f.httpPrefixHeaders)){let E=n.headers[g],x=m.getValueSchema();x.getMergedTraits().httpHeader=g,a[p][g.slice(f.httpPrefixHeaders.length)]=await l.read(x,E)}}else f.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var Bu,aRe=I(()=>{Ct();B_();u_();Ef();Bu=class extends xf{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=Ee.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},m=new mt({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:o,headers:a,body:void 0});if(c&&(this.updateServiceEndpoint(m,c),this.setHostPrefix(m,e,p)),p){let f=l.getEventStreamMember();if(f){if(p[f]){let g={};for(let[E,x]of l.structIterator())E!==f&&p[E]&&(s.write(x,p[E]),g[E]=s.flush());d=await this.serializeEventStream({eventStream:p[f],requestSchema:l,initialRequest:g})}}else s.write(u,p),d=s.flush()}return m.headers=Object.assign(m.headers,a),m.query=o,m.body=d,m.method="POST",m}async deserializeResponse(e,r,n){let s=this.deserializer,o=Ee.of(e.output),a={};if(n.statusCode>=300){let l=await lo(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let l in n.headers){let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=o.getEventStreamMember();if(c)a[c]=await this.deserializeEventStream({response:n,responseSchema:o,initialResponseContainer:a});else{let l=await lo(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}}});var LW,OW=I(()=>{d_();LW=i((t,e,r,n,s,o)=>{if(e!=null&&e[r]!==void 0){let a=n();if(a==null||a.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(s,o?a.split("/").map(c=>Jc(c)).join("/"):Jc(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function MW(t,e){return new R_(t,e)}var R_,cRe=I(()=>{Ef();OW();i(MW,"requestBuilder");R_=class{static{i(this,"RequestBuilder")}input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:s}=await this.context.endpoint();this.path=s;for(let o of this.resolvePathStack)o(this.path);return new mt({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,s){return this.resolvePathStack.push(o=>{this.path=LW(o,this.input,e,r,n,s)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function Ko(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:s,httpQuery:o}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||s?6:o||r?5:void 0:void 0)??e.timestampFormat.default}var N_=I(()=>{i(Ko,"determineTimestampFormat")});var bf,FW=I(()=>{Ct();st();ty();N_();bf=class extends _s{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=Ee.of(e);if(n.isListSchema())return Hg(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Gr)(r);if(n.isTimestampSchema())switch(Ko(n,this.settings)){case 5:return Ev(r);case 6:return Cv(r);case 7:return pf(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let s=n.getMergedTraits().mediaType,o=r;if(s)return n.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(s==="application/json"||s.endsWith("+json"))&&(o=Zn.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new qt(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??gr)((this.serdeContext?.base64Decoder??Gr)(e))}}});var Sf,lRe=I(()=>{Ct();st();ty();FW();Sf=class extends _s{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new bf(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=Ee.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??gr;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??Hr;return typeof r=="string"?a(r):r}else if(n.isStringSchema())return"byteLength"in r?o(r):r}return this.codecDeserializer.read(n,r)}}});var qx,UW=I(()=>{Ct();st();ty();N_();qx=class extends _s{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=Ee.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(Ko(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=ba(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??hr)(r);return}if(n.isListSchema()&&Array.isArray(r)){let a="";for(let c of r){this.write([n.getValueSchema(),n.getMergedTraits()],c);let l=this.flush(),u=n.getValueSchema().isTimestampSchema()?l:yv(l);a!==""&&(a+=", "),a+=u}this.stringBuffer=a;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let s=n.getMergedTraits().mediaType,o=r;if(s&&((s==="application/json"||s.endsWith("+json"))&&(o=Zn.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??hr)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=Ra():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var Bf,uRe=I(()=>{Ct();UW();Bf=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new qx(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=Ee.of(e),s=n.getMergedTraits();if(s.httpHeader||s.httpLabel||s.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var dRe,T_,pRe=I(()=>{dRe=D(Ia()),T_=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=dRe.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var P_,mRe=I(()=>{P_=class{static{i(this,"Fields")}entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(r=>r.kind===e)}}});function fRe(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}var ARe=I(()=>{i(fRe,"isValidHostname")});var Zc,el,hRe=I(()=>{Zc=i(t=>({setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}),"getHttpHandlerExtensionConfiguration"),el=i(t=>({httpHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function qW(t){return e=>async r=>{let n=r.request;if(mt.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(gRe)===-1)try{let a=t(s);n.headers={...n.headers,[gRe]:String(a)}}catch{}}return e({...r,request:n})}}var gRe,$W,tl,yRe=I(()=>{Ef();gRe="content-length";i(qW,"contentLengthMiddleware");$W={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},tl=i(t=>({applyToStack:i(e=>{e.add(qW(t.bodyLengthChecker),$W)},"applyToStack")}),"getContentLengthPlugin")});var np,tCt,v_=I(()=>{np=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,tCt),"escapeUri"),tCt=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var ERe,CRe=I(()=>{v_();ERe=i(t=>t.split("/").map(np).join("/"),"escapeUriPath")});function IRe(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=np(r),Array.isArray(n))for(let s=0,o=n.length;s{v_();i(IRe,"buildQueryString")});function __(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,s=null]=r.split("=");n=decodeURIComponent(n),s&&(s=decodeURIComponent(s)),n in e?Array.isArray(e[n])?e[n].push(s):e[n]=[e[n],s]:e[n]=s}return e}var GW=I(()=>{i(__,"parseQueryString")});var rs,wRe=I(()=>{GW();rs=i(t=>{if(typeof t=="string")return rs(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=__(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var rl={};rn(rl,{Field:()=>T_,Fields:()=>P_,FromStringShapeDeserializer:()=>bf,HttpBindingProtocol:()=>wf,HttpInterceptingShapeDeserializer:()=>Sf,HttpInterceptingShapeSerializer:()=>Bf,HttpProtocol:()=>xf,HttpRequest:()=>mt,HttpResponse:()=>es,RequestBuilder:()=>R_,RpcProtocol:()=>Bu,SerdeContext:()=>_s,ToStringShapeSerializer:()=>qx,buildQueryString:()=>IRe,collectBody:()=>lo,contentLengthMiddleware:()=>qW,contentLengthMiddlewareOptions:()=>$W,determineTimestampFormat:()=>Ko,escapeUri:()=>np,escapeUriPath:()=>ERe,extendedEncodeURIComponent:()=>Jc,getContentLengthPlugin:()=>tl,getHttpHandlerExtensionConfiguration:()=>Zc,isValidHostname:()=>fRe,parseQueryString:()=>__,parseUrl:()=>rs,requestBuilder:()=>MW,resolveHttpHandlerRuntimeConfig:()=>el,resolvedPath:()=>LW});var De=I(()=>{u_();d_();iRe();B_();aRe();cRe();OW();FW();lRe();uRe();UW();N_();ty();pRe();mRe();Ef();EW();ARe();hRe();yRe();v_();CRe();xRe();GW();wRe()});var $x,Q_=I(()=>{$x=i((t,e,r,n,s)=>({name:e,namespace:t,traits:r,input:n,output:s}),"operation")});var bRe,HW,SRe=I(()=>{Ce();De();Q_();bRe=i(t=>(e,r)=>async n=>{let{response:s}=await e(n),{operationSchema:o}=Ar(r),[,a,c,l,u,d]=o??[];try{let p=await t.protocol.deserializeResponse($x(a,c,l,u,d),{...t,...r},s);return{response:s,output:p}}catch(p){if(Object.defineProperty(p,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in p)){let m="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{p.message+=` + `+m}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(m):r.logger?.warn?.(m)}typeof p.$responseBodyText<"u"&&p.$response&&(p.$response.body=p.$responseBodyText);try{if(es.isInstance(s)){let{headers:f={}}=s,g=Object.entries(f);p.$metadata={httpStatusCode:s.statusCode,requestId:HW(/^x-[\w-]+-request-?id$/,g),extendedRequestId:HW(/^x-[\w-]+-id-2$/,g),cfId:HW(/^x-[\w-]+-cf-id$/,g)}}}catch{}}throw p}},"schemaDeserializationMiddleware"),HW=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var BRe,RRe=I(()=>{Ce();wt();Q_();BRe=i(t=>(e,r)=>async n=>{let{operationSchema:s}=Ar(r),[,o,a,c,l,u]=s??[],d=r.endpointV2?async()=>Sa(r.endpointV2):t.endpoint,p=await t.protocol.serializeRequest($x(o,a,c,l,u),n.input,{...t,...r,endpoint:d});return e({...n,request:p})},"schemaSerializationMiddleware")});function Ru(t){return{applyToStack:i(e=>{e.add(BRe(t),TRe),e.add(bRe(t),NRe),t.protocol.setSerdeContext(t)},"applyToStack")}}var NRe,TRe,PRe=I(()=>{SRe();RRe();NRe={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},TRe={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(Ru,"getSchemaSerdePlugin")});var zr,sp=I(()=>{zr=class{static{i(this,"Schema")}name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var D_,rCt,vRe=I(()=>{sp();D_=class t extends zr{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=t.symbol},rCt=i((t,e,r,n)=>zr.assign(new D_,{name:e,namespace:t,traits:r,valueSchema:n}),"list")});var k_,nCt,_Re=I(()=>{sp();k_=class t extends zr{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=t.symbol},nCt=i((t,e,r,n,s)=>zr.assign(new k_,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s}),"map")});var L_,sCt,QRe=I(()=>{sp();L_=class t extends zr{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=t.symbol},sCt=i((t,e,r,n,s)=>zr.assign(new L_,{name:e,namespace:t,traits:r,input:n,output:s}),"op")});var dy,oCt,zW=I(()=>{sp();dy=class t extends zr{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=t.symbol},oCt=i((t,e,r,n,s)=>zr.assign(new dy,{name:e,namespace:t,traits:r,memberNames:n,memberList:s}),"struct")});var O_,iCt,DRe=I(()=>{sp();zW();O_=class t extends dy{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},iCt=i((t,e,r,n,s,o)=>zr.assign(new O_,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null}),"error")});function Xc(t){if(typeof t=="object")return t;if(t=t|0,M_[t])return M_[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return M_[t]=e}var M_,VW=I(()=>{M_=[];i(Xc,"translateTraits")});function Hx(t,e){if(t instanceof Ee)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=Ee;return new r(t,e)}var Gx,F_,U_,Ee,YW,kRe,LRe=I(()=>{aY();VW();Gx={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},F_=[],U_={},Ee=class t{static{i(this,"NormalizedSchema")}ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],s=e,o=e;for(this._isMemberSchema=!1;YW(s);)n.push(s[1]),s=s[0],o=xa(s),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let a=n.length-1;a>=0;--a){let c=n[a];Object.assign(this.memberTraits,Xc(c))}}else this.memberTraits=0;if(o instanceof t){let a=this.memberTraits;Object.assign(this,o),this.memberTraits=Object.assign({},a,o.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??o.memberName;return}if(this.schema=xa(o),kRe(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(o),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(F_[e])return F_[e]}else if(typeof e=="string"){if(U_[e])return U_[e]}else if(r&&e[Gx.ns])return e[Gx.ns];let n=xa(e);if(n instanceof t)return n;if(YW(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),Xc(a)),o;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let s=new t(n);return r?e[Gx.ns]=s:typeof n=="string"?U_[n]=s:typeof n=="number"?F_[n]=s:s}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Xc(this.memberTraits)}getOwnTraits(){return Xc(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),s=e?15:n[4]??0;return Hx([s,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,s]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],o=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||s)?e[3+e[0]]:r?15:void 0;if(o!=null)return Hx([o,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),s=r[5][n];return Hx(YW(s)?s:[s,0],e)}if(this.isDocumentSchema())return Hx([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[Gx.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let s=0;sArray.isArray(t)&&t.length===2,"isMemberSchema"),kRe=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var zx,aCt,cCt,ORe=I(()=>{sp();zx=class t extends zr{static{i(this,"SimpleSchema")}static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=t.symbol},aCt=i((t,e,r,n)=>zr.assign(new zx,{name:e,namespace:t,traits:n,schemaRef:r}),"sim"),cCt=i((t,e,r,n)=>zr.assign(new zx,{name:e,namespace:t,traits:r,schemaRef:n}),"simAdapter")});var lCt,MRe=I(()=>{lCt={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var yr,FRe=I(()=>{yr=class t{static{i(this,"TypeRegistry")}namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n}static for(e){return t.registries.has(e)||t.registries.set(e,new t(e)),t.registries.get(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[s,o]of e.schemas)r.has(s)||r.set(s,o);for(let[s,o]of e.exceptions)n.has(s)||n.set(s,o)}register(e,r){let n=this.normalizeShapeId(e);for(let s of[this,t.for(n.split("#")[0])])s.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,s=[];for(let[o,a]of this.schemas.entries())o.endsWith(n)&&s.push(a);if(s.length===1)return s[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,s=n[1];for(let o of[this,t.for(s)])o.schemas.set(s+"#"+n[2],n),o.exceptions.set(n,r)}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,s=r+"#"+n;if(s.startsWith("smithy.ts.sdk.synthetic.")&&s.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var Vx={};rn(Vx,{ErrorSchema:()=>O_,ListSchema:()=>D_,MapSchema:()=>k_,NormalizedSchema:()=>Ee,OperationSchema:()=>L_,SCHEMA:()=>lCt,Schema:()=>zr,SimpleSchema:()=>zx,StructureSchema:()=>dy,TypeRegistry:()=>yr,deref:()=>xa,deserializerMiddlewareOption:()=>NRe,error:()=>iCt,getSchemaSerdePlugin:()=>Ru,isStaticSchema:()=>kRe,list:()=>rCt,map:()=>nCt,op:()=>sCt,operation:()=>$x,serializerMiddlewareOption:()=>TRe,sim:()=>aCt,simAdapter:()=>cCt,simpleSchemaCacheN:()=>F_,simpleSchemaCacheS:()=>U_,struct:()=>oCt,traitsCache:()=>M_,translateTraits:()=>Xc});var Ct=I(()=>{aY();PRe();vRe();_Re();QRe();Q_();DRe();LRe();sp();ORe();zW();MRe();VW();FRe()});function py(t,e){if(e==null)return e;let r=Ee.of(t);if(r.getMergedTraits().sensitive)return WW;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return WW}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return WW}else if(r.isStructSchema()&&typeof e=="object"){let n=e,s={};for(let[o,a]of r.structIterator())n[o]!=null&&(s[o]=py(a,n[o]));return s}return e}var WW,jW=I(()=>{Ct();WW="***SensitiveInformation***";i(py,"schemaLogFilter")});var URe,mn,JW,qRe=I(()=>{URe=D(Ia());rv();jW();mn=class{static{i(this,"Command")}middlewareStack=Yd();schema;static classBuilder(){return new JW}resolveMiddlewareWithContext(e,r,n,{middlewareFn:s,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,smithyContext:u,additionalContext:d,CommandCtor:p}){for(let w of s.bind(this)(p,e,r,n))this.middlewareStack.use(w);let m=e.concat(this.middlewareStack),{logger:f}=r,g={logger:f,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,[URe.SMITHY_CONTEXT_KEY]:{commandInstance:this,...u},...d},{requestHandler:E}=r,x=n??{};return u.eventStream&&(x={isEventStream:!0,...x}),m.resolve(w=>E.handle(w.request,x),g)}},JW=class{static{i(this,"ClassBuilder")}_init=i(()=>{},"_init");_ep={};_middlewareFn=i(()=>[],"_middlewareFn");_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,r;return r=class extends mn{static{i(this,"CommandRef")}input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,s,o){let a=e._operationSchema,c=a?.[4]??a?.input,l=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,s,o,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?py.bind(null,c):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?py.bind(null,l):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var $Re,GRe=I(()=>{$Re="***SensitiveInformation***"});var nl,HRe=I(()=>{nl=i((t,e,r)=>{for(let[o,a]of Object.entries(t)){let c=i(async function(u,d,p){let m=new a(u);if(typeof d=="function")this.send(m,d);else if(typeof p=="function"){if(typeof d!="object")throw new Error(`Expected http options but got ${typeof d}`);this.send(m,d||{},p)}else return this.send(m,d)},"methodImpl"),l=(o[0].toLowerCase()+o.slice(1)).replace(/Command$/,"");e.prototype[l]=c}let{paginators:n={},waiters:s={}}=r??{};for(let[o,a]of Object.entries(n))e.prototype[o]===void 0&&(e.prototype[o]=function(c={},l,...u){return a({...l,client:this},c,...u)});for(let[o,a]of Object.entries(s))e.prototype[o]===void 0&&(e.prototype[o]=async function(c={},l,...u){let d=l;return typeof l=="number"&&(d={maxWaitTime:l}),a({...d,client:this},c,...u)})},"createAggregatedClient")});var Ui,Rf,KW=I(()=>{Ui=class t extends Error{static{i(this,"ServiceException")}$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;let r=e;return t.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let r=e;return this===t?t.isInstance(e):t.isInstance(e)?r.name&&this.name?this.prototype.isPrototypeOf(e)||r.name===this.name:this.prototype.isPrototypeOf(e):!1}},Rf=i((t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,s])=>{(t[n]==null||t[n]==="")&&(t[n]=s)});let r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},"decorateServiceException")});var XW,zRe,uCt,VRe=I(()=>{KW();XW=i(({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let s=uCt(t),o=s.httpStatusCode?s.httpStatusCode+"":void 0,a=new r({name:e?.code||e?.Code||n||o||"UnknownError",$fault:"client",$metadata:s});throw Rf(a,e)},"throwDefaultError"),zRe=i(t=>({output:e,parsedBody:r,errorCode:n})=>{XW({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},"withBaseException"),uCt=i(t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),"deserializeMetadata")});var sl,YRe=I(()=>{sl=i(t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},"loadConfigsForDefaultMode")});var WRe,ol,jRe=I(()=>{WRe=!1,ol=i(t=>{t&&!WRe&&parseInt(t.substring(1,t.indexOf(".")))<16&&(WRe=!0)},"emitWarningIfUnsupportedVersion")});var my,JRe,q_,$_,ZW=I(()=>{my=D(Ia()),JRe=Object.values(my.AlgorithmId),q_=i(t=>{let e=[];for(let r in my.AlgorithmId){let n=my.AlgorithmId[r];t[n]!==void 0&&e.push({algorithmId:i(()=>n,"algorithmId"),checksumConstructor:i(()=>t[n],"checksumConstructor")})}for(let[r,n]of Object.entries(t.checksumAlgorithms??{}))e.push({algorithmId:i(()=>r,"algorithmId"),checksumConstructor:i(()=>n,"checksumConstructor")});return{addChecksumAlgorithm(r){t.checksumAlgorithms=t.checksumAlgorithms??{};let n=r.algorithmId(),s=r.checksumConstructor();JRe.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=s:t.checksumAlgorithms[n]=s,e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),$_=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();JRe.includes(n)&&(e[n]=r.checksumConstructor())}),e},"resolveChecksumRuntimeConfig")});var G_,H_,e8=I(()=>{G_=i(t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),"getRetryConfiguration"),H_=i(t=>{let e={};return e.retryStrategy=t.retryStrategy(),e},"resolveRetryRuntimeConfig")});var Na,KRe,il,XRe=I(()=>{ZW();e8();Na=i(t=>Object.assign(q_(t),G_(t)),"getDefaultExtensionConfiguration"),KRe=Na,il=i(t=>Object.assign($_(t),H_(t)),"resolveDefaultRuntimeConfig")});var ZRe,eNe=I(()=>{ZRe=i(t=>Array.isArray(t)?t:[t],"getArrayIfSingleItem")});var Nf,tNe=I(()=>{Nf=i(t=>{let e="#text";for(let r in t)t.hasOwnProperty(r)&&t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=Nf(t[r]));return t},"getValueFromTextNode")});var rNe,nNe=I(()=>{rNe=i(t=>t!=null,"isSerializableHeaderValue")});var uo,sNe=I(()=>{uo=class{static{i(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}}});function t8(t,e,r){let n,s,o;if(typeof e>"u"&&typeof r>"u")n={},o=t;else{if(n=t,typeof e=="function")return s=e,o=r,dCt(n,s,o);o=e}for(let a of Object.keys(o)){if(!Array.isArray(o[a])){n[a]=o[a];continue}aNe(n,null,o,a)}return n}var oNe,iNe,dCt,aNe,pCt,mCt,cNe=I(()=>{i(t8,"map");oNe=i(t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},"convertMap"),iNe=i((t,e)=>{let r={};for(let n in e)aNe(r,t,e,n);return r},"take"),dCt=i((t,e,r)=>t8(t,Object.entries(r).reduce((n,[s,o])=>(Array.isArray(o)?n[s]=o:typeof o=="function"?n[s]=[e,o()]:n[s]=[e,o],n),{})),"mapWithFilter"),aNe=i((t,e,r,n)=>{if(e!==null){let a=r[n];typeof a=="function"&&(a=[,a]);let[c=pCt,l=mCt,u=n]=a;(typeof c=="function"&&c(e[u])||typeof c!="function"&&c)&&(t[n]=l(e[u]));return}let[s,o]=r[n];if(typeof o=="function"){let a,c=s===void 0&&(a=o())!=null,l=typeof s=="function"&&!!s(void 0)||typeof s!="function"&&!!s;c?t[n]=a:l&&(t[n]=o())}else{let a=s===void 0&&o!=null,c=typeof s=="function"&&!!s(o)||typeof s!="function"&&!!s;(a||c)&&(t[n]=o)}},"applyInstruction"),pCt=i(t=>t!=null,"nonNullish"),mCt=i(t=>t,"pass")});var lNe,uNe,dNe=I(()=>{lNe=i(t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},"serializeFloat"),uNe=i(t=>t.toISOString().replace(".000Z","Z"),"serializeDateTime")});var z_,pNe=I(()=>{z_=i(t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(z_);if(typeof t=="object"){let e={};for(let r of Object.keys(t))t[r]!=null&&(e[r]=z_(t[r]));return e}return t},"_json")});var qi={};rn(qi,{AlgorithmId:()=>my.AlgorithmId,Client:()=>Kn,Command:()=>mn,NoOpLogger:()=>uo,SENSITIVE_STRING:()=>$Re,ServiceException:()=>Ui,WaiterState:()=>Yo,_json:()=>z_,checkExceptions:()=>Uxe,constructStack:()=>Yd,convertMap:()=>oNe,createAggregatedClient:()=>nl,createWaiter:()=>Vxe,decorateServiceException:()=>Rf,emitWarningIfUnsupportedVersion:()=>ol,getArrayIfSingleItem:()=>ZRe,getChecksumConfiguration:()=>q_,getDefaultClientConfiguration:()=>KRe,getDefaultExtensionConfiguration:()=>Na,getRetryConfiguration:()=>G_,getSmithyContext:()=>Ar,getValueFromTextNode:()=>Nf,invalidFunction:()=>Dxe,invalidProvider:()=>Lxe,isSerializableHeaderValue:()=>rNe,loadConfigsForDefaultMode:()=>sl,map:()=>t8,normalizeProvider:()=>Ut,resolveChecksumRuntimeConfig:()=>$_,resolveDefaultRuntimeConfig:()=>il,resolveRetryRuntimeConfig:()=>H_,schemaLogFilter:()=>py,serializeDateTime:()=>uNe,serializeFloat:()=>lNe,take:()=>iNe,throwDefaultError:()=>XW,waiterServiceDefaults:()=>nv,withBaseException:()=>zRe});var Ce=I(()=>{rv();_xe();Qxe();kxe();Oxe();Yxe();sv();Wxe();qRe();GRe();HRe();VRe();YRe();jRe();KW();XRe();ZW();e8();eNe();tNe();nNe();sNe();cNe();jW();dNe();pNe()});var mNe,fNe,ANe,hNe,gNe,yNe,ENe=I(()=>{mNe=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],fNe=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],ANe=["TimeoutError","RequestTimeout","RequestTimeoutException"],hNe=[500,502,503,504],gNe=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],yNe=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"]});function s8(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var Yx,V_,r8,n8,al,op,Y_,fy=I(()=>{ENe();Yx=i(t=>t?.$retryable!==void 0,"isRetryableByTrait"),V_=i(t=>mNe.includes(t.name),"isClockSkewError"),r8=i(t=>t.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),n8=i(t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},"isBrowserNetworkError"),al=i(t=>t.$metadata?.httpStatusCode===429||fNe.includes(t.name)||t.$retryable?.throttling==!0,"isThrottlingError"),op=i((t,e=0)=>Yx(t)||r8(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||ANe.includes(t.name)||gNe.includes(t?.code||"")||yNe.includes(t?.code||"")||hNe.includes(t.$metadata?.httpStatusCode||0)||n8(t)||s8(t)||t.cause!==void 0&&e<=10&&op(t.cause,e+1),"isTransientError"),Y_=i(t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!op(t)}return!1},"isServerError");i(s8,"isNodeJsHttp2TransientError")});var W_,Wx,j_,Ay,o8,i8,J_,ip,ap,jx=I(()=>{W_=100,Wx=2e4,j_=500,Ay=500,o8=5,i8=10,J_=1,ip="amz-sdk-invocation-id",ap="amz-sdk-request"});function a8(t,e){if(es.isInstance(t))for(let r of Object.keys(t.headers)){let n=r.toLowerCase();if(n==="retry-after"){let s=t.headers[r],o=NaN;if(s.endsWith("GMT"))try{o=(Gg(s).getTime()-Date.now())/1e3}catch(a){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(a)}else s.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?o=Number(s.match(/ GMT, ([\d.]+)$/)?.[1]):s.match(/^((\d+)|(\d+\.\d+))$/)?o=Number(s):Date.parse(s)>=Date.now()&&(o=(Date.parse(s)-Date.now())/1e3);return isNaN(o)?void 0:new Date(Date.now()+o*1e3)}else if(n==="x-amz-retry-after"){let s=t.headers[r],o=Number(s);if(isNaN(o)){e?.trace?.(`Failed to parse x-amz-retry-after=${s}`);return}return new Date(Date.now()+o)}}}function CNe(t,e){return a8(t,e)}var c8=I(()=>{De();st();i(a8,"parseRetryAfterHeader");i(CNe,"getRetryAfterHint")});var K_,l8=I(()=>{K_=i(t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),"asSdkError")});function u8(t){return e=>(r,n)=>async s=>{let o=await e.retryStrategy(),a=await e.maxAttempts();if(fCt(o)){o=o;let c=await o.acquireInitialRetryToken((n.partition_id??"")+(n.__retryLongPoll?":longpoll":"")),l=new Error,u=0,d=0,{request:p}=s,m=mt.isInstance(p);for(m&&(p.headers[ip]=ey());;)try{m&&(p.headers[ap]=`attempt=${u+1}; max=${a}`);let{response:f,output:g}=await r(s);return o.recordSuccess(c),g.$metadata.attempts=u+1,g.$metadata.totalRetryDelay=d,{response:f,output:g}}catch(f){let g=ACt(f,e.logger);if(l=K_(f),m&&t(p))throw(n.logger instanceof uo?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),l;try{c=await o.refreshRetryTokenForRetry(c,g)}catch(x){throw typeof x.$backoff=="number"&&await INe(x.$backoff),l.$metadata||(l.$metadata={}),l.$metadata.attempts=u+1,l.$metadata.totalRetryDelay=d,l}u=c.getRetryCount();let E=c.getRetryDelay();d+=E,await INe(E)}}else return o=o,o?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(r,s)}}function xNe(t){let e=u8(t);return r=>({applyToStack:i(n=>{n.add(e(r),d8)},"applyToStack")})}var INe,fCt,ACt,hCt,d8,p8=I(()=>{Ce();De();st();fy();jx();c8();l8();i(u8,"bindRetryMiddleware");INe=i(t=>new Promise(e=>setTimeout(e,t)),"cooldown"),fCt=i(t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u","isRetryStrategyV2"),ACt=i((t,e)=>{let r={error:t,errorType:hCt(t)},n=a8(t.$response,e);return n&&(r.retryAfterHint=n),r},"getRetryErrorInfo"),hCt=i(t=>al(t)?"THROTTLING":op(t)?"TRANSIENT":Y_(t)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),d8={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};i(xNe,"bindGetRetryPlugin")});var cp,X_=I(()=>{fy();cp=class t{static{i(this,"DefaultRateLimiter")}static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let n=e;if(n?.errorType==="THROTTLING"||al(n?.error??e)){let a=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let o=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(o)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(n=>t.setTimeoutFn(n,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}});var fn,Jx=I(()=>{fn=class t{static{i(this,"Retry")}static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}}});var Z_,wNe=I(()=>{Jx();Z_=class{static{i(this,"DefaultRetryBackoffStrategy")}x=fn.delay();computeNextBackoffDelay(e){let s=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(s)}setDelayBase(e){this.x=e}}});var Kx,bNe=I(()=>{Kx=class{static{i(this,"DefaultRetryToken")}delay;count;cost;longPoll;constructor(e,r,n,s){this.delay=e,this.count=r,this.cost=n,this.longPoll=s}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}});var wn,Ta,$i,Tf=I(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(wn||(wn={}));Ta=3,$i=wn.STANDARD});var eQ,Pa,Xx=I(()=>{wNe();bNe();Tf();Jx();eQ={incompatible:1,attempts:2,capacity:3},Pa=class{static{i(this,"StandardRetryStrategy")}mode=wn.STANDARD;capacity=500;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>Ta,this.baseDelay??=fn.delay(),this.retryBackoffStrategy??=new Z_}async acquireInitialRetryToken(e){return new Kx(fn.delay(),0,void 0,fn.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let n=await this.getMaxAttempts(),s=this.retryCode(e,r,n),o=s===0,a=e.isLongPoll?.();if(o||a){let c=r.errorType;this.retryBackoffStrategy.setDelayBase(c==="THROTTLING"?fn.throttlingDelay():this.baseDelay);let l=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=l;if(r.retryAfterHint instanceof Date&&(u=Math.max(l,Math.min(r.retryAfterHint.getTime()-Date.now(),l+5e3))),o){let d=this.getCapacityCost(c);return this.capacity-=d,new Kx(u,e.getRetryCount()+1,d,e.isLongPoll?.()??!1)}else throw Object.assign(new Error("No retry token available"),{$backoff:fn.v2026&&s===eQ.capacity&&a?u:0})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Ta}`),Ta}}retryCode(e,r,n){let s=e.getRetryCount()+1,o=this.isRetryableError(r.errorType)?0:eQ.incompatible,a=s=this.getCapacityCost(r.errorType)?0:eQ.capacity;return o||a||c}getCapacityCost(e){return e===fn.modifiedCostType()?fn.throttlingCost():fn.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var hy,m8=I(()=>{X_();Xx();Tf();hy=class{static{i(this,"AdaptiveRetryStrategy")}mode=wn.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new cp,this.standardRetryStrategy=r?new Pa({maxAttempts:typeof e=="number"?e:3,...r}):new Pa(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}});var tQ,SNe=I(()=>{Xx();Jx();tQ=class extends Pa{static{i(this,"ConfiguredRetryStrategy")}computeNextBackoffDelay;constructor(e,r=fn.delay()){super(typeof e=="function"?e:async()=>e),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r}async refreshRetryTokenForRetry(e,r){let n=await super.refreshRetryTokenForRetry(e,r);return n.getRetryDelay=()=>this.computeNextBackoffDelay(n.getRetryCount()),n}}});var BNe,RNe=I(()=>{BNe=i((t,e)=>{let r=t,n=e?.noRetryIncrement??1,s=e?.retryCost??5,o=e?.timeoutRetryCost??10,a=t,c=i(p=>p.name==="TimeoutError"?o:s,"getCapacityAmount"),l=i(p=>c(p)<=a,"hasRetryTokens");return Object.freeze({hasRetryTokens:l,retrieveRetryTokens:i(p=>{if(!l(p))throw new Error("No retry token available");let m=c(p);return a-=m,m},"retrieveRetryTokens"),releaseRetryTokens:i(p=>{a+=p??n,a=Math.min(a,r)},"releaseRetryTokens")})},"getDefaultRetryQuota")});var rQ,f8=I(()=>{rQ=i((t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t)),"defaultDelayDecider")});var nQ,A8=I(()=>{fy();nQ=i(t=>t?Yx(t)||V_(t)||al(t)||op(t):!1,"defaultRetryDecider")});var gy,gCt,h8=I(()=>{De();st();fy();Tf();jx();l8();RNe();f8();A8();gy=class{static{i(this,"StandardRetryStrategy")}maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=wn.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??nQ,this.delayDecider=r?.delayDecider??rQ,this.retryQuota=r?.retryQuota??BNe(500)}shouldRetry(e,r,n){return rsetTimeout(g,f));continue}throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=o,d.$metadata.totalRetryDelay=a,d}}},gCt=i(t=>{if(!es.isInstance(t))return;let e=Object.keys(t.headers).find(o=>o.toLowerCase()==="retry-after");if(!e)return;let r=t.headers[e],n=Number(r);return Number.isNaN(n)?new Date(r).getTime()-Date.now():n*1e3},"getDelayFromRetryAfterHeader")});var sQ,NNe=I(()=>{X_();Tf();h8();sQ=class extends gy{static{i(this,"AdaptiveRetryStrategy")}rateLimiter;constructor(e,r){let{rateLimiter:n,...s}=r??{};super(e,s),this.rateLimiter=n??new cp,this.mode=wn.ADAPTIVE}async retry(e,r){return super.retry(e,r,{beforeRequest:i(async()=>this.rateLimiter.getSendToken(),"beforeRequest"),afterRequest:i(n=>{this.rateLimiter.updateClientSendingRate(n)},"afterRequest")})}}});var oQ,iQ,cl,ll,g8,y8,ul,TNe=I(()=>{Ce();m8();Xx();Tf();oQ="AWS_MAX_ATTEMPTS",iQ="max_attempts",cl={environmentVariableSelector:i(t=>{let e=t[oQ];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${oQ} mast be a number, got "${e}"`);return r},"environmentVariableSelector"),configFileSelector:i(t=>{let e=t[iQ];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${iQ} mast be a number, got "${e}"`);return r},"configFileSelector"),default:Ta},ll=i(t=>{let{retryStrategy:e,retryMode:r}=t,n=Ut(t.maxAttempts??Ta),s=e?Promise.resolve(e):void 0,o=i(async()=>await Ut(r)()===wn.ADAPTIVE?new hy(n):new Pa(n),"getDefault");return Object.assign(t,{maxAttempts:n,retryStrategy:i(()=>s??=o(),"retryStrategy")})},"resolveRetryConfig"),g8="AWS_RETRY_MODE",y8="retry_mode",ul={environmentVariableSelector:i(t=>t[g8],"environmentVariableSelector"),configFileSelector:i(t=>t[y8],"configFileSelector"),default:$i}});var E8,C8,PNe,vNe=I(()=>{De();jx();E8=i(()=>t=>async e=>{let{request:r}=e;return mt.isInstance(r)&&(delete r.headers[ip],delete r.headers[ap]),t(e)},"omitRetryHeadersMiddleware"),C8={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},PNe=i(t=>({applyToStack:i(e=>{e.addRelativeTo(E8(),C8)},"applyToStack")}),"getOmitRetryHeadersPlugin")});var Zx={};rn(Zx,{AdaptiveRetryStrategy:()=>hy,CONFIG_MAX_ATTEMPTS:()=>iQ,CONFIG_RETRY_MODE:()=>y8,ConfiguredRetryStrategy:()=>tQ,DEFAULT_MAX_ATTEMPTS:()=>Ta,DEFAULT_RETRY_DELAY_BASE:()=>W_,DEFAULT_RETRY_MODE:()=>$i,DefaultRateLimiter:()=>cp,DeprecatedAdaptiveRetryStrategy:()=>sQ,DeprecatedStandardRetryStrategy:()=>gy,ENV_MAX_ATTEMPTS:()=>oQ,ENV_RETRY_MODE:()=>g8,INITIAL_RETRY_TOKENS:()=>Ay,INVOCATION_ID_HEADER:()=>ip,MAXIMUM_RETRY_DELAY:()=>Wx,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>cl,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>ul,NO_RETRY_INCREMENT:()=>J_,REQUEST_HEADER:()=>ap,RETRY_COST:()=>o8,RETRY_MODES:()=>wn,Retry:()=>fn,StandardRetryStrategy:()=>Pa,THROTTLING_RETRY_DELAY_BASE:()=>j_,TIMEOUT_RETRY_COST:()=>i8,defaultDelayDecider:()=>rQ,defaultRetryDecider:()=>nQ,getOmitRetryHeadersPlugin:()=>PNe,getRetryAfterHint:()=>CNe,getRetryPlugin:()=>Nu,isBrowserNetworkError:()=>n8,isClockSkewCorrectedError:()=>r8,isClockSkewError:()=>V_,isNodeJsHttp2TransientError:()=>s8,isRetryableByTrait:()=>Yx,isServerError:()=>Y_,isThrottlingError:()=>al,isTransientError:()=>op,omitRetryHeadersMiddleware:()=>E8,omitRetryHeadersMiddlewareOptions:()=>C8,resolveRetryConfig:()=>ll,retryMiddleware:()=>yCt,retryMiddlewareOptions:()=>d8});var yCt,Nu,Qs=I(()=>{Txe();p8();fy();m8();SNe();X_();Xx();Tf();jx();Jx();NNe();h8();f8();A8();TNe();vNe();p8();c8();yCt=u8(sY),Nu=xNe(sY)});function Gi(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var I8=I(()=>{Qs();fn.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";i(Gi,"setFeature")});function _Ne(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var QNe=I(()=>{i(_Ne,"setTokenFeature")});function yy(t){return t}var x8,w8,dl,DNe=I(()=>{De();i(yy,"resolveHostHeaderConfig");x8=i(t=>e=>async r=>{if(!mt.isInstance(r.request))return e(r);let{request:n}=r,{handlerProtocol:s=""}=t.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let o=n.hostname;n.port!=null&&(o+=`:${n.port}`),n.headers.host=o}return e(r)},"hostHeaderMiddleware"),w8={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},dl=i(t=>({applyToStack:i(e=>{e.add(x8(t),w8)},"applyToStack")}),"getHostHeaderPlugin")});var b8,S8,pl,kNe=I(()=>{b8=i(()=>(t,e)=>async r=>{try{let n=await t(r),{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l,overrideOutputFilterSensitiveLog:u}=c,d=l??e.inputFilterSensitiveLog,p=u??e.outputFilterSensitiveLog,{$metadata:m,...f}=n.output;return a?.info?.({clientName:s,commandName:o,input:d(r.input),output:p(f),metadata:m}),n}catch(n){let{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l}=c,u=l??e.inputFilterSensitiveLog;throw a?.error?.({clientName:s,commandName:o,input:u(r.input),error:n,metadata:n.$metadata}),n}},"loggerMiddleware"),S8={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},pl=i(t=>({applyToStack:i(e=>{e.add(b8(),S8)},"applyToStack")}),"getLoggerPlugin")});var aQ,B8=I(()=>{aQ={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var ew,R8,cQ,N8,T8,lQ,LNe=I(()=>{ew={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")},R8=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");R8||(globalThis.awslambda=globalThis.awslambda||{});cQ=class{static{i(this,"InvokeStoreBase")}static PROTECTED_KEYS=ew;isProtectedKey(e){return Object.values(ew).includes(e)}getRequestId(){return this.get(ew.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(ew.X_RAY_TRACE_ID)}getTenantId(){return this.get(ew.TENANT_ID)}},N8=class extends cQ{static{i(this,"InvokeStoreSingle")}currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},T8=class t extends cQ{static{i(this,"InvokeStoreMulti")}als;static async create(){let e=new t,r=await import("node:async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=r}run(e,r){return this.als.run(e,r)}};(function(t){let e=null;async function r(){return e||(e=(async()=>{let s="AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await T8.create():new N8;return!R8&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!R8&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=s),s)})()),e}i(r,"getInstanceAsync"),t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:i(()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}},"reset")}:void 0})(lQ||(lQ={}))});var P8,ECt,CCt,uQ,v8=I(()=>{LNe();De();P8="X-Amzn-Trace-Id",ECt="AWS_LAMBDA_FUNCTION_NAME",CCt="_X_AMZN_TRACE_ID",uQ=i(()=>t=>async e=>{let{request:r}=e;if(!mt.isInstance(r))return t(e);let n=Object.keys(r.headers??{}).find(d=>d.toLowerCase()===P8.toLowerCase())??P8;if(r.headers.hasOwnProperty(n))return t(e);let s=process.env[ECt],o=process.env[CCt],l=(await lQ.getInstanceAsync())?.getXRayTraceId()??o,u=i(d=>typeof d=="string"&&d.length>0,"nonEmptyString");return u(s)&&u(l)&&(r.headers[P8]=l),t({...e,request:r})},"recursionDetectionMiddleware")});var ml,ONe=I(()=>{B8();v8();ml=i(t=>({applyToStack:i(e=>{e.add(uQ(),aQ)},"applyToStack")}),"getRecursionDetectionPlugin")});var _8,ICt,MNe=I(()=>{_8=D(Ia()),ICt=i(t=>t[_8.SMITHY_CONTEXT_KEY]||(t[_8.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});var FNe,UNe=I(()=>{FNe=i((t,e)=>{if(!e||e.length===0)return t;let r=[];for(let n of e)for(let s of t)s.schemeId.split("#")[1]===n&&r.push(s);for(let n of t)r.find(({schemeId:s})=>s===n.schemeId)||r.push(n);return r},"resolveAuthOptions")});function xCt(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var tw,dQ=I(()=>{Ce();UNe();i(xCt,"convertHttpAuthSchemesToMap");tw=i((t,e)=>(r,n)=>async s=>{let o=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,s.input)),a=t.authSchemePreference?await t.authSchemePreference():[],c=FNe(o,a),l=xCt(t.httpAuthSchemes),u=Ar(n),d=[];for(let p of c){let m=l.get(p.schemeId);if(!m){d.push(`HttpAuthScheme \`${p.schemeId}\` was not enabled for this service.`);continue}let f=m.identityProvider(await e.identityProviderConfigProvider(t));if(!f){d.push(`HttpAuthScheme \`${p.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:g={},signingProperties:E={}}=p.propertiesExtractor?.(t,n)||{};p.identityProperties=Object.assign(p.identityProperties||{},g),p.signingProperties=Object.assign(p.signingProperties||{},E),u.selectedHttpAuthScheme={httpAuthOption:p,identity:await f(p.identityProperties),signer:m.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(d.join(` +`));return r(s)},"httpAuthSchemeMiddleware")});var qNe,Tu,$Ne=I(()=>{dQ();qNe={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Tu=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(tw(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),qNe)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var GNe,wCt,HNe=I(()=>{dQ();GNe={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},wCt=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(tw(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),GNe)},"applyToStack")}),"getHttpAuthSchemePlugin")});var zNe=I(()=>{dQ();$Ne();HNe()});var bCt,SCt,Q8,D8=I(()=>{Ce();De();bCt=i(t=>e=>{throw e},"defaultErrorHandler"),SCt=i((t,e)=>{},"defaultSuccessHandler"),Q8=i(t=>(e,r)=>async n=>{if(!mt.isInstance(n.request))return e(n);let o=Ar(r).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:l}=o,u=await e({...n,request:await l.sign(n.request,c,a)}).catch((l.errorHandler||bCt)(a));return(l.successHandler||SCt)(u.response,a),u},"httpSigningMiddleware")});var VNe,Pu,YNe=I(()=>{D8();VNe={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Pu=i(t=>({applyToStack:i(e=>{e.addRelativeTo(Q8(t),VNe)},"applyToStack")}),"getHttpSigningPlugin")});var WNe=I(()=>{D8();YNe()});var fl,jNe=I(()=>{fl=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function JNe(t,e,r,n,s){return i(async function*(a,c,...l){let u=c,d=a.startingToken??u[r],p=!0,m;for(;p;){if(u[r]=d,s&&(u[s]=u[s]??a.pageSize),a.client instanceof t)m=await BCt(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield m;let f=d;d=RCt(m,n),p=!!(d&&(!a.stopOnSameToken||d!==f))}return void 0},"paginateOperation")}var BCt,RCt,KNe=I(()=>{BCt=i(async(t,e,r,n=o=>o,...s)=>{let o=new t(r);return o=n(o)??o,await e.send(o,...s)},"makePagedClientRequest");i(JNe,"createPaginator");RCt=i((t,e)=>{let r=t,n=e.split(".");for(let s of n){if(!r||typeof r!="object")return;r=r[s]}return r},"get")});var XNe=I(()=>{De()});function NCt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var ZNe=I(()=>{i(NCt,"setFeature")});var va,eTe=I(()=>{va=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(e){for(let r in e){let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var k8,L8,tTe=I(()=>{De();k8=D(Ia()),L8=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=mt.clone(e);if(n.in===k8.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===k8.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return s}}});var O8,rTe=I(()=>{De();O8=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=mt.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${r.token}`,s}}});var Xo,nTe=I(()=>{Xo=class{static{i(this,"NoAuthSigner")}async sign(e,r,n){return e}}});var sTe=I(()=>{tTe();rTe();nTe()});var oTe,iTe,M8,pQ,F8,aTe=I(()=>{oTe=i(t=>i(function(r){return pQ(r)&&r.expiration.getTime()-Date.now()t.expiration!==void 0,"doesIdentityRequireRefresh"),F8=i((t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,s,o,a,c=!1,l=i(async u=>{o||(o=n(u));try{s=await o,a=!0,c=!1}finally{o=void 0}return s},"coalesceProvider");return e===void 0?async u=>((!a||u?.forceRefresh)&&(s=await l(u)),s):async u=>((!a||u?.forceRefresh)&&(s=await l(u)),c?s:r(s)?(e(s)&&await l(u),s):(c=!0,s))},"memoizeIdentityProvider")});var cTe=I(()=>{eTe();sTe();aTe()});var U8={};rn(U8,{DefaultIdentityProviderConfig:()=>va,EXPIRATION_MS:()=>iTe,HttpApiKeyAuthSigner:()=>L8,HttpBearerAuthSigner:()=>O8,NoAuthSigner:()=>Xo,createIsIdentityExpiredFunction:()=>oTe,createPaginator:()=>JNe,doesIdentityRequireRefresh:()=>pQ,getHttpAuthSchemeEndpointRuleSetPlugin:()=>Tu,getHttpAuthSchemePlugin:()=>wCt,getHttpSigningPlugin:()=>Pu,getSmithyContext:()=>ICt,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>qNe,httpAuthSchemeMiddleware:()=>tw,httpAuthSchemeMiddlewareOptions:()=>GNe,httpSigningMiddleware:()=>Q8,httpSigningMiddlewareOptions:()=>VNe,isIdentityExpired:()=>M8,memoizeIdentityProvider:()=>F8,normalizeProvider:()=>fl,requestBuilder:()=>MW,setFeature:()=>NCt});var Ds=I(()=>{MNe();zNe();WNe();jNe();KNe();XNe();ZNe();cTe()});function TCt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function Al(t){let e=fl(t.userAgentAppId??rw),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:i(async()=>{let n=await e();if(!TCt(n)){let s=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?s?.warn("userAgentAppId must be a string or undefined."):n.length>50&&s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n},"userAgentAppId")})}var rw,q8=I(()=>{Ds();rw=void 0;i(TCt,"isValidUserAgentAppId");i(Al,"resolveUserAgentConfig")});var $8,lTe=I(()=>{$8={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"}});var uTe,dTe,mQ,G8,pTe,fQ,AQ=I(()=>{lTe();uTe=$8,dTe="",mQ=i(t=>{let{partitions:e}=uTe;for(let n of e){let{regions:s,outputs:o}=n;for(let[a,c]of Object.entries(s))if(a===t)return{...o,...c}}for(let n of e){let{regionRegex:s,outputs:o}=n;if(new RegExp(s).test(t))return{...o}}let r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},"partition"),G8=i((t,e="")=>{uTe=t,dTe=e},"setPartitionInfo"),pTe=i(()=>{G8($8,"")},"useDefaultPartitionInfo"),fQ=i(()=>dTe,"getUserAgentPrefix")});async function mTe(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Gi(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let o=await e.retryStrategy();if(typeof o.mode=="string")switch(o.mode){case wn.ADAPTIVE:Gi(t,"RETRY_MODE_ADAPTIVE","F");break;case wn.STANDARD:Gi(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let o=t.endpointV2;switch(String(o?.url?.hostname).match(PCt)&&Gi(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":Gi(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Gi(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Gi(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let s=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){let o=s;o.accountId&&Gi(t,"RESOLVED_ACCOUNT_ID","T");for(let[a,c]of Object.entries(o.$source??{}))Gi(t,a,c)}}var PCt,fTe=I(()=>{Qs();I8();PCt=/\d{12}\.ddb/;i(mTe,"checkFeatures")});var H8,hQ,ATe,hTe,gTe=I(()=>{H8="user-agent",hQ="x-amz-user-agent",ATe=/[^!$%&'*+\-.^_`|~\w]/g,hTe=/[^!$%&'*+\-.^_`|~\w#]/g});function yTe(t){let e="";for(let r in t){let n=t[r];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var ETe=I(()=>{i(yTe,"encodeFeatures")});var V8,gQ,Y8,hl,xTe=I(()=>{De();AQ();fTe();gTe();ETe();V8=i(t=>(e,r)=>async n=>{let{request:s}=n;if(!mt.isInstance(s))return e(n);let{headers:o}=s,a=r?.userAgent?.map(gQ)||[],c=(await t.defaultUserAgentProvider()).map(gQ);await mTe(r,t,n);let l=r;c.push(`m/${yTe(Object.assign({},r.__smithy_context?.features,l.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(gQ)||[],d=await t.userAgentAppId();d&&c.push(gQ(["app",`${d}`]));let p=fQ(),m=(p?[p]:[]).concat([...c,...a,...u]).join(" "),f=[...c.filter(g=>g.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(f&&(o[hQ]=o[hQ]?`${o[H8]} ${f}`:f),o[H8]=m):o[hQ]=m,e({...n,request:s})},"userAgentMiddleware"),gQ=i(t=>{let e=t[0].split("/").map(a=>a.replace(ATe,"-")).join("/"),r=t[1]?.replace(hTe,"-"),n=e.indexOf("/"),s=e.substring(0,n),o=e.substring(n+1);return s==="api"&&(o=o.toLowerCase()),[s,o,r].filter(a=>a&&a.length>0).reduce((a,c,l)=>{switch(l){case 0:return c;case 1:return`${a}/${c}`;default:return`${a}#${c}`}},"")},"escapeUserAgent"),Y8={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},hl=i(t=>({applyToStack:i(e=>{e.add(V8(t),Y8)},"applyToStack")}),"getUserAgentPlugin")});var yQ,wTe,bTe=I(()=>{yQ=require("node:process"),wTe=i(()=>{let t=["deno","bun","llrt"];for(let e of t)if(yQ.versions[e])return[`md/${e}`,yQ.versions[e]];return["md/nodejs",yQ.versions.node]},"getRuntimeUserAgentPair")});var nw,STe,BTe=I(()=>{nw=require("node:path"),STe=i(t=>{let e=process.cwd();if(!t)return[e];let r=(0,nw.normalize)(t),n=r.split(nw.sep),s=n.indexOf("node_modules"),o=s!==-1?n.slice(0,s).join(nw.sep):r;return e===o?[e]:[o,e]},"getNodeModulesParentDirs")});var vCt,EQ,W8=I(()=>{vCt=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/,EQ=i((t="")=>{let e=t.match(vCt);if(!e)return;let[r,n,s,o]=[e[1],e[2],e[3],e[4]];return o?`${r}.${n}.${s}-${o}`:`${r}.${n}.${s}`},"getSanitizedTypeScriptVersion")});var _Ct,QCt,RTe,NTe=I(()=>{W8();_Ct=["^","~",">=","<=",">","<"],QCt=["latest","beta","dev","rc","insiders","next"],RTe=i((t="")=>{if(QCt.includes(t))return t;let e=_Ct.find(n=>t.startsWith(n))??"",r=EQ(t.slice(e.length));if(r)return`${e}${r}`},"getSanitizedDevTypeScriptVersion")});var j8,CQ,gl,DCt,TTe,PTe=I(()=>{Tt();j8=require("node:fs/promises"),CQ=require("node:path");BTe();NTe();W8();DCt=(0,CQ.join)("node_modules","typescript","package.json"),TTe=i(async()=>{if(gl===null)return;if(typeof gl=="string")return["md/tsc",gl];let t=!1;try{t=ao(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",ts.ENV)||!1}catch{}if(t){gl=null;return}let r=STe(typeof __dirname<"u"?__dirname:void 0),n;for(let a of r)try{let c=(0,CQ.join)(a,"package.json"),l=await(0,j8.readFile)(c,"utf-8"),{dependencies:u,devDependencies:d}=JSON.parse(l),p=d?.typescript??u?.typescript;if(typeof p!="string")continue;n=p;break}catch{}if(!n){gl=null;return}let s;for(let a of r)try{let c=(0,CQ.join)(a,DCt),l=await(0,j8.readFile)(c,"utf-8"),{version:u}=JSON.parse(l),d=EQ(u);if(typeof d!="string")continue;s=d;break}catch{}if(s)return gl=s,["md/tsc",gl];let o=RTe(n);if(typeof o!="string"){gl=null;return}return gl=`dev_${o}`,["md/tsc",gl]},"getTypeScriptUserAgentPair")});var sw,J8=I(()=>{sw={isCrtAvailable:!1}});var vTe,_Te=I(()=>{J8();vTe=i(()=>sw.isCrtAvailable?["md/crt-avail"]:null,"isCrtAvailable")});var IQ,K8,_a,QTe,DTe=I(()=>{IQ=require("node:os"),K8=require("node:process");bTe();PTe();_Te();J8();_a=i(({serviceId:t,clientVersion:e})=>{let r=wTe();return async n=>{let s=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,IQ.platform)()}`,(0,IQ.release)()],["lang/js"],r],o=await TTe();o&&s.push(o);let a=vTe();a&&s.push(a),t&&s.push([`api/${t}`,e]),K8.env.AWS_EXECUTION_ENV&&s.push([`exec-env/${K8.env.AWS_EXECUTION_ENV}`]);let c=await n?.userAgentAppId?.();return c?[...s,[`app/${c}`]]:[...s]}},"createDefaultUserAgentProvider"),QTe=_a});var X8,Z8,kCt,yl,kTe=I(()=>{q8();X8="AWS_SDK_UA_APP_ID",Z8="sdk_ua_app_id",kCt="sdk-ua-app-id",yl={environmentVariableSelector:i(t=>t[X8],"environmentVariableSelector"),configFileSelector:i(t=>t[Z8]??t[kCt],"configFileSelector"),default:rw}});var LTe=b((ow,ej)=>{(function(t,e){typeof ow=="object"&&typeof ej=="object"?ej.exports=e():typeof define=="function"&&define.amd?define([],e):typeof ow=="object"?ow.bowser=e():t.bowser=e()})(ow,(function(){return(function(t){var e={};function r(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return i(r,"r"),r.m=t,r.c=e,r.d=function(n,s,o){r.o(n,s)||Object.defineProperty(n,s,{enumerable:!0,get:o})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,s){if(1&s&&(n=r(n)),8&s||4&s&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&s&&typeof n!="string")for(var a in n)r.d(o,a,function(c){return n[c]}.bind(null,a));return o},r.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(s,"a",s),s},r.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},r.p="",r(r.s=90)})({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),s=(function(){function o(){}return i(o,"e"),o.getFirstMatch=function(a,c){var l=c.match(a);return l&&l.length>0&&l[1]||""},o.getSecondMatch=function(a,c){var l=c.match(a);return l&&l.length>1&&l[2]||""},o.matchAndReturnConst=function(a,c,l){if(a.test(c))return l},o.getWindowsVersionName=function(a){switch(a){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},o.getMacOSVersionName=function(a){var c=a.split(".").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),c[0]===10)switch(c[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},o.getAndroidVersionName=function(a){var c=a.split(".").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),!(c[0]===1&&c[1]<5))return c[0]===1&&c[1]<6?"Cupcake":c[0]===1&&c[1]>=6?"Donut":c[0]===2&&c[1]<2?"Eclair":c[0]===2&&c[1]===2?"Froyo":c[0]===2&&c[1]>2?"Gingerbread":c[0]===3?"Honeycomb":c[0]===4&&c[1]<1?"Ice Cream Sandwich":c[0]===4&&c[1]<4?"Jelly Bean":c[0]===4&&c[1]>=4?"KitKat":c[0]===5?"Lollipop":c[0]===6?"Marshmallow":c[0]===7?"Nougat":c[0]===8?"Oreo":c[0]===9?"Pie":void 0},o.getVersionPrecision=function(a){return a.split(".").length},o.compareVersions=function(a,c,l){l===void 0&&(l=!1);var u=o.getVersionPrecision(a),d=o.getVersionPrecision(c),p=Math.max(u,d),m=0,f=o.map([a,c],(function(g){var E=p-o.getVersionPrecision(g),x=g+new Array(E+1).join(".0");return o.map(x.split("."),(function(w){return new Array(20-w.length).join("0")+w})).reverse()}));for(l&&(m=p-Math.min(u,d)),p-=1;p>=m;){if(f[0][p]>f[1][p])return 1;if(f[0][p]===f[1][p]){if(p===m)return 0;p-=1}else if(f[0][p]1?d-1:0),m=1;m0){var S=Object.keys(g),P=c.default.find(S,(function(Le){return f.isOS(Le)}));if(P){var Q=this.satisfies(g[P]);if(Q!==void 0)return Q}var q=c.default.find(S,(function(Le){return f.isPlatform(Le)}));if(q){var M=this.satisfies(g[q]);if(M!==void 0)return M}}if(w>0){var V=Object.keys(x),pe=c.default.find(V,(function(Le){return f.isBrowser(Le,!0)}));if(pe!==void 0)return this.compareVersion(x[pe])}},p.isBrowser=function(m,f){f===void 0&&(f=!1);var g=this.getBrowserName().toLowerCase(),E=m.toLowerCase(),x=c.default.getBrowserTypeByAlias(E);return f&&x&&(E=x.toLowerCase()),E===g},p.compareVersion=function(m){var f=[0],g=m,E=!1,x=this.getBrowserVersion();if(typeof x=="string")return m[0]===">"||m[0]==="<"?(g=m.substr(1),m[1]==="="?(E=!0,g=m.substr(2)):f=[],m[0]===">"?f.push(1):f.push(-1)):m[0]==="="?g=m.substr(1):m[0]==="~"&&(E=!0,g=m.substr(1)),f.indexOf(c.default.compareVersions(x,g,E))>-1},p.isOS=function(m){return this.getOSName(!0)===String(m).toLowerCase()},p.isPlatform=function(m){return this.getPlatformType(!0)===String(m).toLowerCase()},p.isEngine=function(m){return this.getEngineName(!0)===String(m).toLowerCase()},p.is=function(m,f){return f===void 0&&(f=!1),this.isBrowser(m,f)||this.isOS(m)||this.isPlatform(m)},p.some=function(m){var f=this;return m===void 0&&(m=[]),m.some((function(g){return f.is(g)}))},d})();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:i(function(c){var l={name:"Googlebot"},u=s.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/opera/i],describe:i(function(c){var l={name:"Opera"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/opr\/|opios/i],describe:i(function(c){var l={name:"Opera"},u=s.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/SamsungBrowser/i],describe:i(function(c){var l={name:"Samsung Internet for Android"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/Whale/i],describe:i(function(c){var l={name:"NAVER Whale Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/MZBrowser/i],describe:i(function(c){var l={name:"MZ Browser"},u=s.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/focus/i],describe:i(function(c){var l={name:"Focus"},u=s.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/swing/i],describe:i(function(c){var l={name:"Swing"},u=s.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/coast/i],describe:i(function(c){var l={name:"Opera Coast"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:i(function(c){var l={name:"Opera Touch"},u=s.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/yabrowser/i],describe:i(function(c){var l={name:"Yandex Browser"},u=s.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/ucbrowser/i],describe:i(function(c){var l={name:"UC Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/Maxthon|mxios/i],describe:i(function(c){var l={name:"Maxthon"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/epiphany/i],describe:i(function(c){var l={name:"Epiphany"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/puffin/i],describe:i(function(c){var l={name:"Puffin"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/sleipnir/i],describe:i(function(c){var l={name:"Sleipnir"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/k-meleon/i],describe:i(function(c){var l={name:"K-Meleon"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/micromessenger/i],describe:i(function(c){var l={name:"WeChat"},u=s.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/qqbrowser/i],describe:i(function(c){var l={name:/qqbrowserlite/i.test(c)?"QQ Browser Lite":"QQ Browser"},u=s.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/msie|trident/i],describe:i(function(c){var l={name:"Internet Explorer"},u=s.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/\sedg\//i],describe:i(function(c){var l={name:"Microsoft Edge"},u=s.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/edg([ea]|ios)/i],describe:i(function(c){var l={name:"Microsoft Edge"},u=s.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/vivaldi/i],describe:i(function(c){var l={name:"Vivaldi"},u=s.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/seamonkey/i],describe:i(function(c){var l={name:"SeaMonkey"},u=s.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/sailfish/i],describe:i(function(c){var l={name:"Sailfish"},u=s.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,c);return u&&(l.version=u),l},"describe")},{test:[/silk/i],describe:i(function(c){var l={name:"Amazon Silk"},u=s.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/phantom/i],describe:i(function(c){var l={name:"PhantomJS"},u=s.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/slimerjs/i],describe:i(function(c){var l={name:"SlimerJS"},u=s.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:i(function(c){var l={name:"BlackBerry"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/(web|hpw)[o0]s/i],describe:i(function(c){var l={name:"WebOS Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/bada/i],describe:i(function(c){var l={name:"Bada"},u=s.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/tizen/i],describe:i(function(c){var l={name:"Tizen"},u=s.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/qupzilla/i],describe:i(function(c){var l={name:"QupZilla"},u=s.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/firefox|iceweasel|fxios/i],describe:i(function(c){var l={name:"Firefox"},u=s.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/electron/i],describe:i(function(c){var l={name:"Electron"},u=s.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/MiuiBrowser/i],describe:i(function(c){var l={name:"Miui"},u=s.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/chromium/i],describe:i(function(c){var l={name:"Chromium"},u=s.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/chrome|crios|crmo/i],describe:i(function(c){var l={name:"Chrome"},u=s.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/GSA/i],describe:i(function(c){var l={name:"Google Search"},u=s.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){var l=!c.test(/like android/i),u=c.test(/android/i);return l&&u},"test"),describe:i(function(c){var l={name:"Android Browser"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/playstation 4/i],describe:i(function(c){var l={name:"PlayStation 4"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/safari|applewebkit/i],describe:i(function(c){var l={name:"Safari"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/.*/i],describe:i(function(c){var l=c.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:s.default.getFirstMatch(l,c),version:s.default.getSecondMatch(l,c)}},"describe")}];e.default=a,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:i(function(c){var l=s.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,c);return{name:o.OS_MAP.Roku,version:l}},"describe")},{test:[/windows phone/i],describe:i(function(c){var l=s.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.WindowsPhone,version:l}},"describe")},{test:[/windows /i],describe:i(function(c){var l=s.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,c),u=s.default.getWindowsVersionName(l);return{name:o.OS_MAP.Windows,version:l,versionName:u}},"describe")},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:i(function(c){var l={name:o.OS_MAP.iOS},u=s.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,c);return u&&(l.version=u),l},"describe")},{test:[/macintosh/i],describe:i(function(c){var l=s.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,c).replace(/[_\s]/g,"."),u=s.default.getMacOSVersionName(l),d={name:o.OS_MAP.MacOS,version:l};return u&&(d.versionName=u),d},"describe")},{test:[/(ipod|iphone|ipad)/i],describe:i(function(c){var l=s.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,c).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:l}},"describe")},{test:i(function(c){var l=!c.test(/like android/i),u=c.test(/android/i);return l&&u},"test"),describe:i(function(c){var l=s.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,c),u=s.default.getAndroidVersionName(l),d={name:o.OS_MAP.Android,version:l};return u&&(d.versionName=u),d},"describe")},{test:[/(web|hpw)[o0]s/i],describe:i(function(c){var l=s.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,c),u={name:o.OS_MAP.WebOS};return l&&l.length&&(u.version=l),u},"describe")},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:i(function(c){var l=s.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,c)||s.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,c)||s.default.getFirstMatch(/\bbb(\d+)/i,c);return{name:o.OS_MAP.BlackBerry,version:l}},"describe")},{test:[/bada/i],describe:i(function(c){var l=s.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.Bada,version:l}},"describe")},{test:[/tizen/i],describe:i(function(c){var l=s.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.Tizen,version:l}},"describe")},{test:[/linux/i],describe:i(function(){return{name:o.OS_MAP.Linux}},"describe")},{test:[/CrOS/],describe:i(function(){return{name:o.OS_MAP.ChromeOS}},"describe")},{test:[/PlayStation 4/],describe:i(function(c){var l=s.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.PlayStation4,version:l}},"describe")}];e.default=a,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:i(function(){return{type:"bot",vendor:"Google"}},"describe")},{test:[/huawei/i],describe:i(function(c){var l=s.default.getFirstMatch(/(can-l01)/i,c)&&"Nova",u={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return l&&(u.model=l),u},"describe")},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}},"describe")},{test:[/ipad/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}},"describe")},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}},"describe")},{test:[/kftt build/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}},"describe")},{test:[/silk/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}},"describe")},{test:[/tablet(?! pc)/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet}},"describe")},{test:i(function(c){var l=c.test(/ipod|iphone/i),u=c.test(/like (ipod|iphone)/i);return l&&!u},"test"),describe:i(function(c){var l=s.default.getFirstMatch(/(ipod|iphone)/i,c);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:l}},"describe")},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}},"describe")},{test:[/[^-]mobi/i],describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getBrowserName(!0)==="blackberry"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}},"describe")},{test:i(function(c){return c.getBrowserName(!0)==="bada"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getBrowserName()==="windows phone"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}},"describe")},{test:i(function(c){var l=Number(String(c.getOSVersion()).split(".")[0]);return c.getOSName(!0)==="android"&&l>=3},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tablet}},"describe")},{test:i(function(c){return c.getOSName(!0)==="android"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getOSName(!0)==="macos"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}},"describe")},{test:i(function(c){return c.getOSName(!0)==="windows"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop}},"describe")},{test:i(function(c){return c.getOSName(!0)==="linux"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop}},"describe")},{test:i(function(c){return c.getOSName(!0)==="playstation 4"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tv}},"describe")},{test:i(function(c){return c.getOSName(!0)==="roku"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tv}},"describe")}];e.default=a,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:i(function(c){return c.getBrowserName(!0)==="microsoft edge"},"test"),describe:i(function(c){if(/\sedg\//i.test(c))return{name:o.ENGINE_MAP.Blink};var l=s.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,c);return{name:o.ENGINE_MAP.EdgeHTML,version:l}},"describe")},{test:[/trident/i],describe:i(function(c){var l={name:o.ENGINE_MAP.Trident},u=s.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){return c.test(/presto/i)},"test"),describe:i(function(c){var l={name:o.ENGINE_MAP.Presto},u=s.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){var l=c.test(/gecko/i),u=c.test(/like gecko/i);return l&&!u},"test"),describe:i(function(c){var l={name:o.ENGINE_MAP.Gecko},u=s.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/(apple)?webkit\/537\.36/i],describe:i(function(){return{name:o.ENGINE_MAP.Blink}},"describe")},{test:[/(apple)?webkit/i],describe:i(function(c){var l={name:o.ENGINE_MAP.WebKit},u=s.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")}];e.default=a,t.exports=e.default}})}))});var OTe,MTe=I(()=>{OTe=i(({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>D(LTe())),s=n.parse??n.default.parse??(()=>""),o=typeof window<"u"&&window?.navigator?.userAgent?s(window.navigator.userAgent):void 0,a=[["aws-sdk-js",e],["ua","2.1"],[`os/${o?.os?.name||"other"}`,o?.os?.version],["lang/js"],["md/browser",`${o?.browser?.name??"unknown"}_${o?.browser?.version??"unknown"}`]];t&&a.push([`api/${t}`,e]);let c=await r?.userAgentAppId?.();return c&&a.push([`app/${c}`]),a},"createUserAgentStringParsingProvider")});var FTe,UTe=I(()=>{FTe={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}}});var tj=I(()=>{wt()});var iw,rj=I(()=>{wt();tj();iw=i((t,e=!1)=>{if(e){for(let r of t.split("."))if(!iw(r))return!1;return!0}return!(!Eu(t)||t.length<3||t.length>63||t!==t.toLowerCase()||Iu(t))},"isVirtualHostableS3Bucket")});var xQ,nj=I(()=>{xQ=i(t=>{let e=t.split(":");if(e.length<6)return null;let[r,n,s,o,a,...c]=e;if(r!=="arn"||n===""||s===""||c.join(":")==="")return null;let l=c.map(u=>u.split("/")).flat();return{partition:n,service:s,region:o,accountId:a,resourceId:l}},"parseArn")});var Qa,qTe=I(()=>{wt();rj();nj();AQ();Qa={isVirtualHostableS3Bucket:iw,parseArn:xQ,partition:mQ};co.aws=Qa});var $Te=I(()=>{wt()});var GTe,sj,HTe=I(()=>{De();GTe=i(t=>{if(typeof t.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>sj(t.endpointProvider({Region:typeof t.region=="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint=="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint=="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))),t},"resolveDefaultAwsRegionalEndpointsConfig"),sj=i(t=>rs(t.url),"toEndpointV1")});var zTe=I(()=>{wt()});var VTe=I(()=>{Tt();Tt()});function wQ(t={}){return nt({...kn,async default(){return oj.silence||console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...vs,...t})}var oj,YTe=I(()=>{Tt();i(wQ,"stsRegionDefaultResolver");oj={silence:!1}});var El,Cl,WTe=I(()=>{El=i(t=>({setRegion(e){t.region=e},region(){return t.region}}),"getAwsRegionExtensionConfiguration"),Cl=i(t=>({region:t.region()}),"resolveAwsRegionExtensionConfiguration")});var ks={};rn(ks,{DEFAULT_UA_APP_ID:()=>rw,EndpointError:()=>St,NODE_APP_ID_CONFIG_OPTIONS:()=>yl,NODE_REGION_CONFIG_FILE_OPTIONS:()=>vs,NODE_REGION_CONFIG_OPTIONS:()=>kn,REGION_ENV_NAME:()=>jg,REGION_INI_NAME:()=>Jg,UA_APP_ID_ENV_NAME:()=>X8,UA_APP_ID_INI_NAME:()=>Z8,awsEndpointFunctions:()=>Qa,createDefaultUserAgentProvider:()=>_a,createUserAgentStringParsingProvider:()=>OTe,crtAvailability:()=>sw,defaultUserAgent:()=>QTe,emitWarningIfUnsupportedVersion:()=>qc,fallback:()=>FTe,getAwsRegionExtensionConfiguration:()=>El,getHostHeaderPlugin:()=>dl,getLoggerPlugin:()=>pl,getLongPollPlugin:()=>Sxe,getRecursionDetectionPlugin:()=>ml,getUserAgentMiddlewareOptions:()=>Y8,getUserAgentPlugin:()=>hl,getUserAgentPrefix:()=>fQ,hostHeaderMiddleware:()=>x8,hostHeaderMiddlewareOptions:()=>w8,isIpAddress:()=>Iu,isVirtualHostableS3Bucket:()=>iw,loggerMiddleware:()=>b8,loggerMiddlewareOptions:()=>S8,parseArn:()=>xQ,partition:()=>mQ,recursionDetectionMiddleware:()=>uQ,recursionDetectionMiddlewareOptions:()=>aQ,resolveAwsRegionExtensionConfiguration:()=>Cl,resolveDefaultAwsRegionalEndpointsConfig:()=>GTe,resolveEndpoint:()=>Mx,resolveHostHeaderConfig:()=>yy,resolveRegionConfig:()=>jo,resolveUserAgentConfig:()=>Al,setCredentialFeature:()=>zd,setFeature:()=>Gi,setPartitionInfo:()=>G8,setTokenFeature:()=>_Ne,state:()=>Sx,stsRegionDefaultResolver:()=>wQ,stsRegionWarning:()=>oj,toEndpointV1:()=>sj,useDefaultPartitionInfo:()=>pTe,userAgentMiddleware:()=>V8});var bt=I(()=>{bxe();Bxe();Rxe();I8();QNe();DNe();kNe();B8();ONe();v8();q8();xTe();DTe();kTe();UTe();MTe();qTe();$Te();HTe();tj();rj();nj();AQ();zTe();VTe();YTe();WTe()});var ij,jTe=I(()=>{De();ij=i(t=>es.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,"getDateHeader")});var Ey,aj=I(()=>{Ey=i(t=>new Date(Date.now()+t),"getSkewCorrectedDate")});var JTe,KTe=I(()=>{aj();JTe=i((t,e)=>Math.abs(Ey(e).getTime()-t)>=3e5,"isClockSkewed")});var cj,XTe=I(()=>{KTe();cj=i((t,e)=>{let r=Date.parse(t);return JTe(r,e)?r-Date.now():e},"getUpdatedSystemClockOffset")});var lj=I(()=>{jTe();aj();XTe()});var aw,cw,Mn,ZTe,uj=I(()=>{De();lj();aw=i((t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},"throwSigningPropertyError"),cw=i(async t=>{let e=aw("context",t.context),r=aw("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],o=await aw("signer",r.signer)(n),a=t?.signingRegion,c=t?.signingRegionSet,l=t?.signingName;return{config:r,signer:o,signingRegion:a,signingRegionSet:c,signingName:l}},"validateSigningProperties"),Mn=class{static{i(this,"AwsSdkSigV4Signer")}async sign(e,r,n){if(!mt.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await cw(n),{config:o,signer:a}=s,{signingRegion:c,signingName:l}=s,u=n.context;if(u?.authSchemes?.length??!1){let[p,m]=u.authSchemes;p?.name==="sigv4a"&&m?.name==="sigv4"&&(c=m?.signingRegion??c,l=m?.signingName??l)}return await a.sign(e,{signingDate:Ey(o.systemClockOffset),signingRegion:c,signingService:l})}errorHandler(e){return r=>{let n=r.ServerTime??ij(r.$response);if(n){let s=aw("config",e.config),o=s.systemClockOffset;s.systemClockOffset=cj(n,s.systemClockOffset),s.systemClockOffset!==o&&r.$metadata&&(r.$metadata.clockSkewCorrected=!0)}throw r}}successHandler(e,r){let n=ij(e);if(n){let s=aw("config",r.config);s.systemClockOffset=cj(n,s.systemClockOffset)}}},ZTe=Mn});var lp,ePe=I(()=>{De();lj();uj();lp=class extends Mn{static{i(this,"AwsSdkSigV4ASigner")}async sign(e,r,n){if(!mt.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:s,signer:o,signingRegion:a,signingRegionSet:c,signingName:l}=await cw(n),d=(await s.sigv4aSigningRegionSet?.()??c??[a]).join(",");return await o.sign(e,{signingDate:Ey(s.systemClockOffset),signingRegion:d,signingService:l})}}});var dj,tPe=I(()=>{dj=i(t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[],"getArrayForCommaSeparatedString")});var pj,mj=I(()=>{pj=i(t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`,"getBearerTokenEnvKey")});var rPe,nPe,vu,sPe=I(()=>{tPe();mj();rPe="AWS_AUTH_SCHEME_PREFERENCE",nPe="auth_scheme_preference",vu={environmentVariableSelector:i((t,e)=>{if(e?.signingName&&pj(e.signingName)in t)return["httpBearerAuth"];if(rPe in t)return dj(t[rPe])},"environmentVariableSelector"),configFileSelector:i(t=>{if(nPe in t)return dj(t[nPe])},"configFileSelector"),default:[]}});var fj,Aj,oPe=I(()=>{Ds();Tt();fj=i(t=>(t.sigv4aSigningRegionSet=fl(t.sigv4aSigningRegionSet),t),"resolveAwsSdkSigV4AConfig"),Aj={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new Wo("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new Wo("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var Rj=b(ct=>{"use strict";var ns=(st(),W(Zd)),iPe=(Ce(),W(qi)),Iy=(De(),W(rl)),hj=class{static{i(this,"HeaderFormatter")}format(e){let r=[];for(let o of Object.keys(e)){let a=ns.fromUtf8(o);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}let n=new Uint8Array(r.reduce((o,a)=>o+a.byteLength,0)),s=0;for(let o of r)n.set(o,s),s+=o.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(o.buffer);return a.set(e.value,3),a;case"string":let c=ns.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(gj.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!LCt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(ns.fromHex(e.value.replace(/\-/g,"")),1),p}}},aPe;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(aPe||(aPe={}));var LCt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,gj=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&cPe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&cPe(e),parseInt(ns.toHex(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function cPe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}i(cPe,"negate");var uPe="X-Amz-Algorithm",dPe="X-Amz-Credential",Ij="X-Amz-Date",pPe="X-Amz-SignedHeaders",mPe="X-Amz-Expires",xj="X-Amz-Signature",wj="X-Amz-Security-Token",OCt="X-Amz-Region-Set",bj="authorization",Sj=Ij.toLowerCase(),fPe="date",APe=[bj,Sj,fPe],hPe=xj.toLowerCase(),NQ="x-amz-content-sha256",gPe=wj.toLowerCase(),MCt="host",yPe={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},EPe=/^proxy-/,CPe=/^sec-/,FCt=[/^proxy-/i,/^sec-/i],bQ="AWS4-HMAC-SHA256",UCt="AWS4-ECDSA-P256-SHA256",IPe="AWS4-HMAC-SHA256-PAYLOAD",xPe="UNSIGNED-PAYLOAD",wPe=50,Bj="aws4_request",bPe=3600*24*7,SPe=i(({query:t={}})=>{let e=[],r={};for(let n of Object.keys(t)){if(n.toLowerCase()===hPe)continue;let s=Iy.escapeUri(n);e.push(s);let o=t[n];typeof o=="string"?r[s]=`${s}=${Iy.escapeUri(o)}`:Array.isArray(o)&&(r[s]=o.slice(0).reduce((a,c)=>a.concat([`${s}=${Iy.escapeUri(c)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},"getCanonicalQuery"),qCt=i(t=>$Ct(t).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),$Ct=i(t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,"toDate"),TQ=class{static{i(this,"SignatureV4Base")}service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){this.service=s,this.sha256=o,this.uriEscapePath=a,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=iPe.normalizeProvider(n),this.credentialProvider=iPe.normalizeProvider(r)}createCanonicalRequest(e,r,n){let s=Object.keys(r).sort();return`${e.method} ${this.getCanonicalPath(e)} -${mPe(e)} +${SPe(e)} ${s.map(o=>`${o}:${r[o]}`).join(` `)} @@ -118,23 +118,23 @@ ${s.join(";")} ${n}`}async createStringToSign(e,r,n,s){let o=new this.sha256;o.update(ns.toUint8Array(n));let a=await o.digest();return`${s} ${e} ${r} -${ns.toHex(a)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let o of e.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return yy.escapeUri(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=DCt(e).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},gy={},IQ=[],xQ=i((t,e,r)=>`${t}/${e}/${r}/${Ej}`,"createScope"),fPe=i(async(t,e,r,n,s)=>{let o=await KTe(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${ns.toHex(o)}:${e.sessionToken}`;if(a in gy)return gy[a];for(IQ.push(a);IQ.length>dPe;)delete gy[IQ.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,Ej])c=await KTe(t,c,l);return gy[a]=c},"getSigningKey"),LCt=i(()=>{IQ.length=0,Object.keys(gy).forEach(t=>{delete gy[t]})},"clearCredentialCache"),KTe=i((t,e,r)=>{let n=new t(e);return n.update(ns.toUint8Array(r)),n.digest()},"hmac"),dj=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(o in iPe||e?.has(o)||aPe.test(o)||cPe.test(o))&&(!r||r&&!r.has(o))||(n[o]=t[s].trim().replace(/\s+/g," "))}return n},"getCanonicalHeaders"),wQ=i(async({headers:t,body:e},r)=>{for(let n of Object.keys(t))if(n.toLowerCase()===bQ)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||ns.isArrayBuffer(e)){let n=new r;return n.update(ns.toUint8Array(e)),ns.toHex(await n.digest())}return uPe},"getPayloadHash"),APe=i((t,e)=>{t=t.toLowerCase();for(let r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},"hasHeader"),hPe=i((t,e={})=>{let{headers:r,query:n={}}=yy.HttpRequest.clone(t);for(let s of Object.keys(r)){let o=s.toLowerCase();(o.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(o)||e.hoistableHeaders?.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},"moveHeadersToQuery"),pj=i(t=>{t=yy.HttpRequest.clone(t);for(let e of Object.keys(t.headers))nPe.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),mj=class extends SQ{static{i(this,"SignatureV4")}headerFormatter=new lj;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:l,signingRegion:u,signingService:d}=r,p=await this.credentialProvider();this.validateResolvedCredentials(p);let m=u??await this.regionProvider(),{longDate:f,shortDate:g}=this.formatDate(n);if(s>pPe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let E=xQ(g,m,d??this.service),x=hPe(pj(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(x.query[hj]=p.sessionToken),x.query[XTe]=CQ,x.query[ZTe]=`${p.accessKeyId}/${E}`,x.query[fj]=f,x.query[tPe]=s.toString(10);let w=dj(x,o,c);return x.query[ePe]=this.getCanonicalHeaderList(w),x.query[Aj]=await this.getSignature(f,E,this.getSigningKey(p,m,g,d),this.createCanonicalRequest(x,w,await wQ(e,this.sha256))),x}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:s,signingRegion:o,signingService:a,eventStreamCredentials:c}){let l=o??await this.regionProvider(),{shortDate:u,longDate:d}=this.formatDate(n),p=xQ(u,l,a??this.service),m=await wQ({headers:{},body:r},this.sha256),f=new this.sha256;f.update(e);let g=ns.toHex(await f.digest()),E=[lPe,d,p,s,g,m].join(` -`);return this.signString(E,{signingDate:n,signingRegion:l,signingService:a,eventStreamCredentials:c})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:s,priorSignature:e.priorSignature,eventStreamCredentials:o}).then(c=>({message:e.message,signature:c}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}={}){let a=o??await this.credentialProvider();this.validateResolvedCredentials(a);let c=n??await this.regionProvider(),{shortDate:l}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(a,c,l,s));return u.update(ns.toUint8Array(e)),ns.toHex(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:s,signingRegion:o,signingService:a}={}){let c=await this.credentialProvider();this.validateResolvedCredentials(c);let l=o??await this.regionProvider(),u=pj(e),{longDate:d,shortDate:p}=this.formatDate(r),m=xQ(p,l,a??this.service);u.headers[yj]=d,c.sessionToken&&(u.headers[oPe]=c.sessionToken);let f=await wQ(u,this.sha256);!APe(bQ,u.headers)&&this.applyChecksum&&(u.headers[bQ]=f);let g=dj(u,s,n),E=await this.getSignature(d,m,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,g,f));return u.headers[gj]=`${CQ} Credential=${c.accessKeyId}/${m}, SignedHeaders=${this.getCanonicalHeaderList(g)}, Signature=${E}`,u}async getSignature(e,r,n,s){let o=await this.createStringToSign(e,r,s,CQ),a=new this.sha256(await n);return a.update(ns.toUint8Array(o)),ns.toHex(await a.digest())}getSigningKey(e,r,n,s){return fPe(this.sha256,e,n,r,s||this.service)}},OCt={SignatureV4a:null};ct.ALGORITHM_IDENTIFIER=CQ;ct.ALGORITHM_IDENTIFIER_V4A=QCt;ct.ALGORITHM_QUERY_PARAM=XTe;ct.ALWAYS_UNSIGNABLE_HEADERS=iPe;ct.AMZ_DATE_HEADER=yj;ct.AMZ_DATE_QUERY_PARAM=fj;ct.AUTH_HEADER=gj;ct.CREDENTIAL_QUERY_PARAM=ZTe;ct.DATE_HEADER=rPe;ct.EVENT_ALGORITHM_IDENTIFIER=lPe;ct.EXPIRES_QUERY_PARAM=tPe;ct.GENERATED_HEADERS=nPe;ct.HOST_HEADER=vCt;ct.KEY_TYPE_IDENTIFIER=Ej;ct.MAX_CACHE_SIZE=dPe;ct.MAX_PRESIGNED_TTL=pPe;ct.PROXY_HEADER_PATTERN=aPe;ct.REGION_SET_PARAM=PCt;ct.SEC_HEADER_PATTERN=cPe;ct.SHA256_HEADER=bQ;ct.SIGNATURE_HEADER=sPe;ct.SIGNATURE_QUERY_PARAM=Aj;ct.SIGNED_HEADERS_QUERY_PARAM=ePe;ct.SignatureV4=mj;ct.SignatureV4Base=SQ;ct.TOKEN_HEADER=oPe;ct.TOKEN_QUERY_PARAM=hj;ct.UNSIGNABLE_PATTERNS=_Ct;ct.UNSIGNED_PAYLOAD=uPe;ct.clearCredentialCache=LCt;ct.createScope=xQ;ct.getCanonicalHeaders=dj;ct.getCanonicalQuery=mPe;ct.getPayloadHash=wQ;ct.getSigningKey=fPe;ct.hasHeader=APe;ct.moveHeadersToQuery=hPe;ct.prepareRequest=pj;ct.signatureV4aContainer=OCt});function FCt(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=_8(e,v8,cQ):r?n=fl(r(Object.assign({},t,{parentClientConfig:t}))):n=i(async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},"credentialsProvider"),n.memoized=!0,n}function UCt(t,e){if(e.configBound)return e;let r=i(async n=>e({...n,callerClientConfig:t}),"fn");return r.memoized=e.memoized,r.configBound=!0,r}var Ij,Il,MCt,gPe=I(()=>{wt();Qs();Ij=D(Cj()),Il=i(t=>{let e=t.credentials,r=!!t.credentials,n;Object.defineProperty(t,"credentials",{set(u){u&&u!==e&&u!==n&&(r=!0),e=u;let d=FCt(t,{credentials:e,credentialDefaultProvider:t.credentialDefaultProvider}),p=UCt(t,d);if(r&&!p.attributed){let m=typeof e=="object"&&e!==null;n=i(async f=>{let E=await p(f);return m&&(!E.$source||Object.keys(E.$source).length===0)?zd(E,"CREDENTIALS_CODE","e"):E},"resolvedCredentials"),n.memoized=p.memoized,n.configBound=p.configBound,n.attributed=!0}else n=p},get(){return n},enumerable:!0,configurable:!0}),t.credentials=e;let{signingEscapePath:s=!0,systemClockOffset:o=t.systemClockOffset||0,sha256:a}=t,c;return t.signer?c=fl(t.signer):t.regionInfoProvider?c=i(()=>fl(t.region)().then(async u=>[await t.regionInfoProvider(u,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},u]).then(([u,d])=>{let{signingRegion:p,signingService:m}=u;t.signingRegion=t.signingRegion||p||d,t.signingName=t.signingName||m||t.serviceId;let f={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:a,uriEscapePath:s},g=t.signerConstructor||Ij.SignatureV4;return new g(f)}),"signer"):c=i(async u=>{u=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await fl(t.region)(),properties:{}},u);let d=u.signingRegion,p=u.signingName;t.signingRegion=t.signingRegion||d,t.signingName=t.signingName||p||t.serviceId;let m={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:a,uriEscapePath:s},f=t.signerConstructor||Ij.SignatureV4;return new f(m)},"signer"),Object.assign(t,{systemClockOffset:o,signingEscapePath:s,signer:c})},"resolveAwsSdkSigV4Config"),MCt=Il;i(FCt,"normalizeCredentialProvider");i(UCt,"bindCallerConfig")});var yPe=I(()=>{nj();$Te();VTe();YTe();gPe()});var up={};en(up,{AWSSDKSigV4Signer:()=>qTe,AwsSdkSigV4ASigner:()=>lp,AwsSdkSigV4Signer:()=>On,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>Pu,NODE_SIGV4A_CONFIG_OPTIONS:()=>cj,getBearerTokenEnvKey:()=>oj,resolveAWSSDKSigV4Config:()=>MCt,resolveAwsSdkSigV4AConfig:()=>aj,resolveAwsSdkSigV4Config:()=>Il,validateSigningProperties:()=>sw});var Xr=I(()=>{yPe();ij()});var wj=b(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.resolveHttpAuthSchemeConfig=dp.defaultECRHttpAuthSchemeProvider=dp.defaultECRHttpAuthSchemeParametersProvider=void 0;var qCt=(Xr(),W(up)),xj=(Ce(),W(Ui)),$Ct=i(async(t,e,r)=>({operation:(0,xj.getSmithyContext)(e).operation,region:await(0,xj.normalizeProvider)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");dp.defaultECRHttpAuthSchemeParametersProvider=$Ct;function GCt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(GCt,"createAwsAuthSigv4HttpAuthOption");var HCt=i(t=>{let e=[];switch(t.operation){default:e.push(GCt(t))}return e},"defaultECRHttpAuthSchemeProvider");dp.defaultECRHttpAuthSchemeProvider=HCt;var zCt=i(t=>{let e=(0,qCt.resolveAwsSdkSigV4Config)(t);return Object.assign(e,{authSchemePreference:(0,xj.normalizeProvider)(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig");dp.resolveHttpAuthSchemeConfig=zCt});var EPe=b((gOr,VCt)=>{VCt.exports={name:"@aws-sdk/client-ecr",description:"AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",version:"3.1052.0",scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-ecr","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecr","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.13","@aws-sdk/credential-provider-node":"^3.972.44","@aws-sdk/types":"^3.973.9","@smithy/core":"^3.24.3","@smithy/fetch-http-handler":"^5.4.3","@smithy/node-http-handler":"^4.7.3","@smithy/types":"^4.14.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},engines:{node:">=20.0.0"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-ecr"}}});var bj=b(pp=>{"use strict";var YCt=(wt(),W(Ds)),WCt=(Tt(),W(kn)),CPe="AWS_ACCESS_KEY_ID",IPe="AWS_SECRET_ACCESS_KEY",xPe="AWS_SESSION_TOKEN",wPe="AWS_CREDENTIAL_EXPIRATION",bPe="AWS_CREDENTIAL_SCOPE",SPe="AWS_ACCOUNT_ID",jCt=i(t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[CPe],r=process.env[IPe],n=process.env[xPe],s=process.env[wPe],o=process.env[bPe],a=process.env[SPe];if(e&&r){let c={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...o&&{credentialScope:o},...a&&{accountId:a}};return YCt.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new WCt.CredentialsProviderError("Unable to find environment variable credentials.",{logger:t?.logger})},"fromEnv");pp.ENV_ACCOUNT_ID=SPe;pp.ENV_CREDENTIAL_SCOPE=bPe;pp.ENV_EXPIRATION=wPe;pp.ENV_KEY=CPe;pp.ENV_SECRET=IPe;pp.ENV_SESSION=xPe;pp.fromEnv=jCt});var NQ=b(ss=>{"use strict";var JCt=require("node:url"),Ko=(Tt(),W(kn)),KCt=require("node:http"),XCt=(Qe(),W(rl)),TPe=i(t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string","isImdsCredentials"),PPe=i(t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),"fromImdsCredentials"),vPe=1e3,_Pe=0,Tj=i(({maxRetries:t=_Pe,timeout:e=vPe})=>({maxRetries:t,timeout:e}),"providerConfigFromInit");function ow(t){return new Promise((e,r)=>{let n=KCt.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",s=>{r(Object.assign(new Ko.ProviderError("Unable to connect to instance metadata service"),s)),n.destroy()}),n.on("timeout",()=>{r(new Ko.ProviderError("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new Ko.ProviderError("Error response received from instance metadata service"),{statusCode:o})),n.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{e(Buffer.concat(a)),n.destroy()})}),n.end()})}i(ow,"httpRequest");var Bj=i((t,e)=>{let r=t();for(let n=0;n{let{timeout:e,maxRetries:r}=Tj(t);return()=>Bj(async()=>{let n=await sIt({logger:t.logger}),s=JSON.parse(await eIt(e,n));if(!TPe(s))throw new Ko.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:t.logger});return PPe(s)},r)},"fromContainerMetadata"),eIt=i(async(t,e)=>(process.env[Rj]&&(e.headers={...e.headers,Authorization:process.env[Rj]}),(await ow({...e,timeout:t})).toString()),"requestFromEcsImds"),tIt="169.254.170.2",rIt={localhost:!0,"127.0.0.1":!0},nIt={"http:":!0,"https:":!0},sIt=i(async({logger:t})=>{if(process.env[RQ])return{hostname:tIt,path:process.env[RQ]};if(process.env[BQ]){let e=JCt.parse(process.env[BQ]);if(!e.hostname||!(e.hostname in rIt))throw new Ko.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!(e.protocol in nIt))throw new Ko.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:t});return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Ko.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${RQ} or ${BQ} environment variable is set`,{tryNextLink:!1,logger:t})},"getCmdsUri"),Nj=class t extends Ko.CredentialsProviderError{static{i(this,"InstanceMetadataV1FallbackError")}tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}};ss.Endpoint=void 0;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(ss.Endpoint||(ss.Endpoint={}));var oIt="AWS_EC2_METADATA_SERVICE_ENDPOINT",iIt="ec2_metadata_service_endpoint",aIt={environmentVariableSelector:i(t=>t[oIt],"environmentVariableSelector"),configFileSelector:i(t=>t[iIt],"configFileSelector"),default:void 0},Ey;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(Ey||(Ey={}));var cIt="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",lIt="ec2_metadata_service_endpoint_mode",uIt={environmentVariableSelector:i(t=>t[cIt],"environmentVariableSelector"),configFileSelector:i(t=>t[lIt],"configFileSelector"),default:Ey.IPv4},QPe=i(async()=>XCt.parseUrl(await dIt()||await pIt()),"getInstanceMetadataEndpoint"),dIt=i(async()=>Ko.loadConfig(aIt)(),"getFromEndpointConfig"),pIt=i(async()=>{let t=await Ko.loadConfig(uIt)();switch(t){case Ey.IPv4:return ss.Endpoint.IPv4;case Ey.IPv6:return ss.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(Ey)}`)}},"getFromEndpointModeConfig"),mIt=300,fIt=300,AIt="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",BPe=i((t,e)=>{let r=mIt+Math.floor(Math.random()*fIt),n=new Date(Date.now()+r*1e3);e.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}. -For more information, please visit: `+AIt);let s=t.originalExpiration??t.expiration;return{...t,...s?{originalExpiration:s}:{},expiration:n}},"getExtendedInstanceMetadataCredentials"),hIt=i((t,e={})=>{let r=e?.logger||console,n;return async()=>{let s;try{s=await t(),s.expiration&&s.expiration.getTime()hIt(EIt(t),{logger:t.logger}),"fromInstanceMetadata"),EIt=i((t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:s,maxRetries:o}=Tj(t),a=i(async(c,l)=>{if(e||l.headers?.[NPe]==null){let p=!1,m=!1,f=await Ko.loadConfig({environmentVariableSelector:i(g=>{let E=g[Sj];if(m=!!E&&E!=="false",E===void 0)throw new Ko.CredentialsProviderError(`${Sj} not set in env, checking config file next.`,{logger:t.logger});return m},"environmentVariableSelector"),configFileSelector:i(g=>{let E=g[RPe];return p=!!E&&E!=="false",p},"configFileSelector"),default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||f){let g=[];throw t.ec2MetadataV1Disabled&&g.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),p&&g.push(`config file profile (${RPe})`),m&&g.push(`process environment variable (${Sj})`),new Nj(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${g.join(", ")}].`)}}let d=(await Bj(async()=>{let p;try{p=await IIt(l)}catch(m){throw m.statusCode===401&&(e=!1),m}return p},c)).trim();return Bj(async()=>{let p;try{p=await xIt(d,l,t)}catch(m){throw m.statusCode===401&&(e=!1),m}return p},c)},"getCredentials");return async()=>{let c=await QPe();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),a(o,{...c,timeout:s});{let l;try{l=(await CIt({...c,timeout:s})).toString()}catch(u){if(u?.statusCode===400)throw Object.assign(u,{message:"EC2 Metadata token request returned error"});return(u.message==="TimeoutError"||[403,404,405].includes(u.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),a(o,{...c,timeout:s})}return a(o,{...c,headers:{[NPe]:l},timeout:s})}}},"getInstanceMetadataProvider"),CIt=i(async t=>ow({...t,path:gIt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),IIt=i(async t=>(await ow({...t,path:DPe})).toString(),"getProfile"),xIt=i(async(t,e,r)=>{let n=JSON.parse((await ow({...e,path:DPe+t})).toString());if(!TPe(n))throw new Ko.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:r.logger});return PPe(n)},"getCredentialsFromProfile");ss.DEFAULT_MAX_RETRIES=_Pe;ss.DEFAULT_TIMEOUT=vPe;ss.ENV_CMDS_AUTH_TOKEN=Rj;ss.ENV_CMDS_FULL_URI=BQ;ss.ENV_CMDS_RELATIVE_URI=RQ;ss.fromContainerMetadata=ZCt;ss.fromInstanceMetadata=yIt;ss.getInstanceMetadataEndpoint=QPe;ss.httpRequest=ow;ss.providerConfigFromInit=Tj});var vu=b(aw=>{"use strict";var TQ=require("node:https"),vQ=(Qe(),W(rl)),FPe=require("node:stream"),_Q=require("node:http2");function QQ(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let s=new Error("Request aborted");return s.name="AbortError",s.cause=e,s}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}i(QQ,"buildAbortError");var wIt=["ECONNRESET","EPIPE","ETIMEDOUT"],UPe=i(t=>{let e={};for(let r in t){let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},"getTransformedHeaders"),Mn={setTimeout:i((t,e)=>setTimeout(t,e),"setTimeout"),clearTimeout:i(t=>clearTimeout(t),"clearTimeout")},kPe=1e3,bIt=i((t,e,r=0)=>{if(!r)return-1;let n=i(s=>{let o=Mn.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-s),a=i(c=>{c?.connecting?c.on("connect",()=>{Mn.clearTimeout(o)}):Mn.clearTimeout(o)},"doWithSocket");t.socket?a(t.socket):t.on("socket",a)},"registerTimeout");return r<2e3?(n(0),0):Mn.setTimeout(n.bind(null,kPe),kPe)},"setConnectionTimeout"),SIt=i((t,e,r=0,n,s)=>r?Mn.setTimeout(()=>{let o=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let a=Object.assign(new Error(o),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(a),e(a)}else o+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(o)},r):-1,"setRequestTimeout"),BIt=3e3,RIt=i((t,{keepAlive:e,keepAliveMsecs:r},n=BIt)=>{if(e!==!0)return-1;let s=i(()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",o=>{o.setKeepAlive(e,r||0)})},"registerListener");return n===0?(s(),0):Mn.setTimeout(s,n)},"setSocketKeepAlive"),LPe=3e3,NIt=i((t,e,r=0)=>{let n=i(s=>{let o=r-s,a=i(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))},"onTimeout");t.socket?(t.socket.setTimeout(o,a),t.on("close",()=>t.socket?.removeListener("timeout",a))):t.setTimeout(o,a)},"registerTimeout");return 0{a=Number(Mn.setTimeout(()=>l(!0),Math.max(OPe,r)))}),new Promise(l=>{t.on("continue",()=>{Mn.clearTimeout(a),l(!0)}),t.on("response",()=>{Mn.clearTimeout(a),l(!1)}),t.on("error",()=>{Mn.clearTimeout(a),l(!1)})})])),c&&TIt(t,e.body)}i(qPe,"writeRequestBody");function TIt(t,e){if(e instanceof FPe.Readable){e.pipe(t);return}if(e){let r=Buffer.isBuffer(e);if(r||typeof e=="string"){r&&e.byteLength===0?t.end():t.end(e);return}let s=e;if(typeof s=="object"&&s.buffer&&typeof s.byteOffset=="number"&&typeof s.byteLength=="number"){t.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}t.end(Buffer.from(e));return}t.end()}i(TIt,"writeBody");var PIt=0,PQ,MPe,Pj=class t{static{i(this,"NodeHttpHandler")}config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return typeof e?.handle=="function"?e:new t(e)}static checkSocketUsage(e,r,n=console){let{sockets:s,requests:o,maxSockets:a}=e;if(typeof a!="number"||a===1/0||Date.now()-15e3=a&&d>=2*a)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${u} and ${d} additional requests are enqueued. +${ns.toHex(a)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let o of e.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return Iy.escapeUri(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=qCt(e).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},Cy={},SQ=[],BQ=i((t,e,r)=>`${t}/${e}/${r}/${Bj}`,"createScope"),BPe=i(async(t,e,r,n,s)=>{let o=await lPe(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${ns.toHex(o)}:${e.sessionToken}`;if(a in Cy)return Cy[a];for(SQ.push(a);SQ.length>wPe;)delete Cy[SQ.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,Bj])c=await lPe(t,c,l);return Cy[a]=c},"getSigningKey"),GCt=i(()=>{SQ.length=0,Object.keys(Cy).forEach(t=>{delete Cy[t]})},"clearCredentialCache"),lPe=i((t,e,r)=>{let n=new t(e);return n.update(ns.toUint8Array(r)),n.digest()},"hmac"),yj=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(o in yPe||e?.has(o)||EPe.test(o)||CPe.test(o))&&(!r||r&&!r.has(o))||(n[o]=t[s].trim().replace(/\s+/g," "))}return n},"getCanonicalHeaders"),RQ=i(async({headers:t,body:e},r)=>{for(let n of Object.keys(t))if(n.toLowerCase()===NQ)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||ns.isArrayBuffer(e)){let n=new r;return n.update(ns.toUint8Array(e)),ns.toHex(await n.digest())}return xPe},"getPayloadHash"),RPe=i((t,e)=>{t=t.toLowerCase();for(let r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},"hasHeader"),NPe=i((t,e={})=>{let{headers:r,query:n={}}=Iy.HttpRequest.clone(t);for(let s of Object.keys(r)){let o=s.toLowerCase();(o.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(o)||e.hoistableHeaders?.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},"moveHeadersToQuery"),Ej=i(t=>{t=Iy.HttpRequest.clone(t);for(let e of Object.keys(t.headers))APe.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),Cj=class extends TQ{static{i(this,"SignatureV4")}headerFormatter=new hj;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:l,signingRegion:u,signingService:d}=r,p=await this.credentialProvider();this.validateResolvedCredentials(p);let m=u??await this.regionProvider(),{longDate:f,shortDate:g}=this.formatDate(n);if(s>bPe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let E=BQ(g,m,d??this.service),x=NPe(Ej(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(x.query[wj]=p.sessionToken),x.query[uPe]=bQ,x.query[dPe]=`${p.accessKeyId}/${E}`,x.query[Ij]=f,x.query[mPe]=s.toString(10);let w=yj(x,o,c);return x.query[pPe]=this.getCanonicalHeaderList(w),x.query[xj]=await this.getSignature(f,E,this.getSigningKey(p,m,g,d),this.createCanonicalRequest(x,w,await RQ(e,this.sha256))),x}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:s,signingRegion:o,signingService:a,eventStreamCredentials:c}){let l=o??await this.regionProvider(),{shortDate:u,longDate:d}=this.formatDate(n),p=BQ(u,l,a??this.service),m=await RQ({headers:{},body:r},this.sha256),f=new this.sha256;f.update(e);let g=ns.toHex(await f.digest()),E=[IPe,d,p,s,g,m].join(` +`);return this.signString(E,{signingDate:n,signingRegion:l,signingService:a,eventStreamCredentials:c})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:s,priorSignature:e.priorSignature,eventStreamCredentials:o}).then(c=>({message:e.message,signature:c}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}={}){let a=o??await this.credentialProvider();this.validateResolvedCredentials(a);let c=n??await this.regionProvider(),{shortDate:l}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(a,c,l,s));return u.update(ns.toUint8Array(e)),ns.toHex(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:s,signingRegion:o,signingService:a}={}){let c=await this.credentialProvider();this.validateResolvedCredentials(c);let l=o??await this.regionProvider(),u=Ej(e),{longDate:d,shortDate:p}=this.formatDate(r),m=BQ(p,l,a??this.service);u.headers[Sj]=d,c.sessionToken&&(u.headers[gPe]=c.sessionToken);let f=await RQ(u,this.sha256);!RPe(NQ,u.headers)&&this.applyChecksum&&(u.headers[NQ]=f);let g=yj(u,s,n),E=await this.getSignature(d,m,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,g,f));return u.headers[bj]=`${bQ} Credential=${c.accessKeyId}/${m}, SignedHeaders=${this.getCanonicalHeaderList(g)}, Signature=${E}`,u}async getSignature(e,r,n,s){let o=await this.createStringToSign(e,r,s,bQ),a=new this.sha256(await n);return a.update(ns.toUint8Array(o)),ns.toHex(await a.digest())}getSigningKey(e,r,n,s){return BPe(this.sha256,e,n,r,s||this.service)}},HCt={SignatureV4a:null};ct.ALGORITHM_IDENTIFIER=bQ;ct.ALGORITHM_IDENTIFIER_V4A=UCt;ct.ALGORITHM_QUERY_PARAM=uPe;ct.ALWAYS_UNSIGNABLE_HEADERS=yPe;ct.AMZ_DATE_HEADER=Sj;ct.AMZ_DATE_QUERY_PARAM=Ij;ct.AUTH_HEADER=bj;ct.CREDENTIAL_QUERY_PARAM=dPe;ct.DATE_HEADER=fPe;ct.EVENT_ALGORITHM_IDENTIFIER=IPe;ct.EXPIRES_QUERY_PARAM=mPe;ct.GENERATED_HEADERS=APe;ct.HOST_HEADER=MCt;ct.KEY_TYPE_IDENTIFIER=Bj;ct.MAX_CACHE_SIZE=wPe;ct.MAX_PRESIGNED_TTL=bPe;ct.PROXY_HEADER_PATTERN=EPe;ct.REGION_SET_PARAM=OCt;ct.SEC_HEADER_PATTERN=CPe;ct.SHA256_HEADER=NQ;ct.SIGNATURE_HEADER=hPe;ct.SIGNATURE_QUERY_PARAM=xj;ct.SIGNED_HEADERS_QUERY_PARAM=pPe;ct.SignatureV4=Cj;ct.SignatureV4Base=TQ;ct.TOKEN_HEADER=gPe;ct.TOKEN_QUERY_PARAM=wj;ct.UNSIGNABLE_PATTERNS=FCt;ct.UNSIGNED_PAYLOAD=xPe;ct.clearCredentialCache=GCt;ct.createScope=BQ;ct.getCanonicalHeaders=yj;ct.getCanonicalQuery=SPe;ct.getPayloadHash=RQ;ct.getSigningKey=BPe;ct.hasHeader=RPe;ct.moveHeadersToQuery=NPe;ct.prepareRequest=Ej;ct.signatureV4aContainer=HCt});function VCt(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=F8(e,M8,pQ):r?n=fl(r(Object.assign({},t,{parentClientConfig:t}))):n=i(async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},"credentialsProvider"),n.memoized=!0,n}function YCt(t,e){if(e.configBound)return e;let r=i(async n=>e({...n,callerClientConfig:t}),"fn");return r.memoized=e.memoized,r.configBound=!0,r}var Nj,Il,zCt,TPe=I(()=>{bt();Ds();Nj=D(Rj()),Il=i(t=>{let e=t.credentials,r=!!t.credentials,n;Object.defineProperty(t,"credentials",{set(u){u&&u!==e&&u!==n&&(r=!0),e=u;let d=VCt(t,{credentials:e,credentialDefaultProvider:t.credentialDefaultProvider}),p=YCt(t,d);if(r&&!p.attributed){let m=typeof e=="object"&&e!==null;n=i(async f=>{let E=await p(f);return m&&(!E.$source||Object.keys(E.$source).length===0)?zd(E,"CREDENTIALS_CODE","e"):E},"resolvedCredentials"),n.memoized=p.memoized,n.configBound=p.configBound,n.attributed=!0}else n=p},get(){return n},enumerable:!0,configurable:!0}),t.credentials=e;let{signingEscapePath:s=!0,systemClockOffset:o=t.systemClockOffset||0,sha256:a}=t,c;return t.signer?c=fl(t.signer):t.regionInfoProvider?c=i(()=>fl(t.region)().then(async u=>[await t.regionInfoProvider(u,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},u]).then(([u,d])=>{let{signingRegion:p,signingService:m}=u;t.signingRegion=t.signingRegion||p||d,t.signingName=t.signingName||m||t.serviceId;let f={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:a,uriEscapePath:s},g=t.signerConstructor||Nj.SignatureV4;return new g(f)}),"signer"):c=i(async u=>{u=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await fl(t.region)(),properties:{}},u);let d=u.signingRegion,p=u.signingName;t.signingRegion=t.signingRegion||d,t.signingName=t.signingName||p||t.serviceId;let m={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:a,uriEscapePath:s},f=t.signerConstructor||Nj.SignatureV4;return new f(m)},"signer"),Object.assign(t,{systemClockOffset:o,signingEscapePath:s,signer:c})},"resolveAwsSdkSigV4Config"),zCt=Il;i(VCt,"normalizeCredentialProvider");i(YCt,"bindCallerConfig")});var PPe=I(()=>{uj();ePe();sPe();oPe();TPe()});var up={};rn(up,{AWSSDKSigV4Signer:()=>ZTe,AwsSdkSigV4ASigner:()=>lp,AwsSdkSigV4Signer:()=>Mn,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>vu,NODE_SIGV4A_CONFIG_OPTIONS:()=>Aj,getBearerTokenEnvKey:()=>pj,resolveAWSSDKSigV4Config:()=>zCt,resolveAwsSdkSigV4AConfig:()=>fj,resolveAwsSdkSigV4Config:()=>Il,validateSigningProperties:()=>cw});var en=I(()=>{PPe();mj()});var Pj=b(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.resolveHttpAuthSchemeConfig=dp.defaultECRHttpAuthSchemeProvider=dp.defaultECRHttpAuthSchemeParametersProvider=void 0;var WCt=(en(),W(up)),Tj=(Ce(),W(qi)),jCt=i(async(t,e,r)=>({operation:(0,Tj.getSmithyContext)(e).operation,region:await(0,Tj.normalizeProvider)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");dp.defaultECRHttpAuthSchemeParametersProvider=jCt;function JCt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(JCt,"createAwsAuthSigv4HttpAuthOption");var KCt=i(t=>{let e=[];switch(t.operation){default:e.push(JCt(t))}return e},"defaultECRHttpAuthSchemeProvider");dp.defaultECRHttpAuthSchemeProvider=KCt;var XCt=i(t=>{let e=(0,WCt.resolveAwsSdkSigV4Config)(t);return Object.assign(e,{authSchemePreference:(0,Tj.normalizeProvider)(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig");dp.resolveHttpAuthSchemeConfig=XCt});var vPe=b((bOr,ZCt)=>{ZCt.exports={name:"@aws-sdk/client-ecr",description:"AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",version:"3.1052.0",scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-ecr","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecr","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.13","@aws-sdk/credential-provider-node":"^3.972.44","@aws-sdk/types":"^3.973.9","@smithy/core":"^3.24.3","@smithy/fetch-http-handler":"^5.4.3","@smithy/node-http-handler":"^4.7.3","@smithy/types":"^4.14.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},engines:{node:">=20.0.0"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-ecr"}}});var vj=b(pp=>{"use strict";var eIt=(bt(),W(ks)),tIt=(Tt(),W(Ln)),_Pe="AWS_ACCESS_KEY_ID",QPe="AWS_SECRET_ACCESS_KEY",DPe="AWS_SESSION_TOKEN",kPe="AWS_CREDENTIAL_EXPIRATION",LPe="AWS_CREDENTIAL_SCOPE",OPe="AWS_ACCOUNT_ID",rIt=i(t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[_Pe],r=process.env[QPe],n=process.env[DPe],s=process.env[kPe],o=process.env[LPe],a=process.env[OPe];if(e&&r){let c={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...o&&{credentialScope:o},...a&&{accountId:a}};return eIt.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new tIt.CredentialsProviderError("Unable to find environment variable credentials.",{logger:t?.logger})},"fromEnv");pp.ENV_ACCOUNT_ID=OPe;pp.ENV_CREDENTIAL_SCOPE=LPe;pp.ENV_EXPIRATION=kPe;pp.ENV_KEY=_Pe;pp.ENV_SECRET=QPe;pp.ENV_SESSION=DPe;pp.fromEnv=rIt});var _Q=b(ss=>{"use strict";var nIt=require("node:url"),Zo=(Tt(),W(Ln)),sIt=require("node:http"),oIt=(De(),W(rl)),qPe=i(t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string","isImdsCredentials"),$Pe=i(t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),"fromImdsCredentials"),GPe=1e3,HPe=0,Lj=i(({maxRetries:t=HPe,timeout:e=GPe})=>({maxRetries:t,timeout:e}),"providerConfigFromInit");function lw(t){return new Promise((e,r)=>{let n=sIt.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",s=>{r(Object.assign(new Zo.ProviderError("Unable to connect to instance metadata service"),s)),n.destroy()}),n.on("timeout",()=>{r(new Zo.ProviderError("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new Zo.ProviderError("Error response received from instance metadata service"),{statusCode:o})),n.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{e(Buffer.concat(a)),n.destroy()})}),n.end()})}i(lw,"httpRequest");var Qj=i((t,e)=>{let r=t();for(let n=0;n{let{timeout:e,maxRetries:r}=Lj(t);return()=>Qj(async()=>{let n=await dIt({logger:t.logger}),s=JSON.parse(await aIt(e,n));if(!qPe(s))throw new Zo.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:t.logger});return $Pe(s)},r)},"fromContainerMetadata"),aIt=i(async(t,e)=>(process.env[Dj]&&(e.headers={...e.headers,Authorization:process.env[Dj]}),(await lw({...e,timeout:t})).toString()),"requestFromEcsImds"),cIt="169.254.170.2",lIt={localhost:!0,"127.0.0.1":!0},uIt={"http:":!0,"https:":!0},dIt=i(async({logger:t})=>{if(process.env[vQ])return{hostname:cIt,path:process.env[vQ]};if(process.env[PQ]){let e=nIt.parse(process.env[PQ]);if(!e.hostname||!(e.hostname in lIt))throw new Zo.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!(e.protocol in uIt))throw new Zo.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:t});return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Zo.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${vQ} or ${PQ} environment variable is set`,{tryNextLink:!1,logger:t})},"getCmdsUri"),kj=class t extends Zo.CredentialsProviderError{static{i(this,"InstanceMetadataV1FallbackError")}tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}};ss.Endpoint=void 0;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(ss.Endpoint||(ss.Endpoint={}));var pIt="AWS_EC2_METADATA_SERVICE_ENDPOINT",mIt="ec2_metadata_service_endpoint",fIt={environmentVariableSelector:i(t=>t[pIt],"environmentVariableSelector"),configFileSelector:i(t=>t[mIt],"configFileSelector"),default:void 0},xy;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(xy||(xy={}));var AIt="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",hIt="ec2_metadata_service_endpoint_mode",gIt={environmentVariableSelector:i(t=>t[AIt],"environmentVariableSelector"),configFileSelector:i(t=>t[hIt],"configFileSelector"),default:xy.IPv4},zPe=i(async()=>oIt.parseUrl(await yIt()||await EIt()),"getInstanceMetadataEndpoint"),yIt=i(async()=>Zo.loadConfig(fIt)(),"getFromEndpointConfig"),EIt=i(async()=>{let t=await Zo.loadConfig(gIt)();switch(t){case xy.IPv4:return ss.Endpoint.IPv4;case xy.IPv6:return ss.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(xy)}`)}},"getFromEndpointModeConfig"),CIt=300,IIt=300,xIt="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",MPe=i((t,e)=>{let r=CIt+Math.floor(Math.random()*IIt),n=new Date(Date.now()+r*1e3);e.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}. +For more information, please visit: `+xIt);let s=t.originalExpiration??t.expiration;return{...t,...s?{originalExpiration:s}:{},expiration:n}},"getExtendedInstanceMetadataCredentials"),wIt=i((t,e={})=>{let r=e?.logger||console,n;return async()=>{let s;try{s=await t(),s.expiration&&s.expiration.getTime()wIt(BIt(t),{logger:t.logger}),"fromInstanceMetadata"),BIt=i((t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:s,maxRetries:o}=Lj(t),a=i(async(c,l)=>{if(e||l.headers?.[UPe]==null){let p=!1,m=!1,f=await Zo.loadConfig({environmentVariableSelector:i(g=>{let E=g[_j];if(m=!!E&&E!=="false",E===void 0)throw new Zo.CredentialsProviderError(`${_j} not set in env, checking config file next.`,{logger:t.logger});return m},"environmentVariableSelector"),configFileSelector:i(g=>{let E=g[FPe];return p=!!E&&E!=="false",p},"configFileSelector"),default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||f){let g=[];throw t.ec2MetadataV1Disabled&&g.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),p&&g.push(`config file profile (${FPe})`),m&&g.push(`process environment variable (${_j})`),new kj(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${g.join(", ")}].`)}}let d=(await Qj(async()=>{let p;try{p=await NIt(l)}catch(m){throw m.statusCode===401&&(e=!1),m}return p},c)).trim();return Qj(async()=>{let p;try{p=await TIt(d,l,t)}catch(m){throw m.statusCode===401&&(e=!1),m}return p},c)},"getCredentials");return async()=>{let c=await zPe();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),a(o,{...c,timeout:s});{let l;try{l=(await RIt({...c,timeout:s})).toString()}catch(u){if(u?.statusCode===400)throw Object.assign(u,{message:"EC2 Metadata token request returned error"});return(u.message==="TimeoutError"||[403,404,405].includes(u.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),a(o,{...c,timeout:s})}return a(o,{...c,headers:{[UPe]:l},timeout:s})}}},"getInstanceMetadataProvider"),RIt=i(async t=>lw({...t,path:bIt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),NIt=i(async t=>(await lw({...t,path:VPe})).toString(),"getProfile"),TIt=i(async(t,e,r)=>{let n=JSON.parse((await lw({...e,path:VPe+t})).toString());if(!qPe(n))throw new Zo.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:r.logger});return $Pe(n)},"getCredentialsFromProfile");ss.DEFAULT_MAX_RETRIES=HPe;ss.DEFAULT_TIMEOUT=GPe;ss.ENV_CMDS_AUTH_TOKEN=Dj;ss.ENV_CMDS_FULL_URI=PQ;ss.ENV_CMDS_RELATIVE_URI=vQ;ss.fromContainerMetadata=iIt;ss.fromInstanceMetadata=SIt;ss.getInstanceMetadataEndpoint=zPe;ss.httpRequest=lw;ss.providerConfigFromInit=Lj});var _u=b(dw=>{"use strict";var QQ=require("node:https"),kQ=(De(),W(rl)),KPe=require("node:stream"),LQ=require("node:http2");function OQ(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let s=new Error("Request aborted");return s.name="AbortError",s.cause=e,s}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}i(OQ,"buildAbortError");var PIt=["ECONNRESET","EPIPE","ETIMEDOUT"],XPe=i(t=>{let e={};for(let r in t){let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},"getTransformedHeaders"),Fn={setTimeout:i((t,e)=>setTimeout(t,e),"setTimeout"),clearTimeout:i(t=>clearTimeout(t),"clearTimeout")},YPe=1e3,vIt=i((t,e,r=0)=>{if(!r)return-1;let n=i(s=>{let o=Fn.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-s),a=i(c=>{c?.connecting?c.on("connect",()=>{Fn.clearTimeout(o)}):Fn.clearTimeout(o)},"doWithSocket");t.socket?a(t.socket):t.on("socket",a)},"registerTimeout");return r<2e3?(n(0),0):Fn.setTimeout(n.bind(null,YPe),YPe)},"setConnectionTimeout"),_It=i((t,e,r=0,n,s)=>r?Fn.setTimeout(()=>{let o=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let a=Object.assign(new Error(o),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(a),e(a)}else o+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(o)},r):-1,"setRequestTimeout"),QIt=3e3,DIt=i((t,{keepAlive:e,keepAliveMsecs:r},n=QIt)=>{if(e!==!0)return-1;let s=i(()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",o=>{o.setKeepAlive(e,r||0)})},"registerListener");return n===0?(s(),0):Fn.setTimeout(s,n)},"setSocketKeepAlive"),WPe=3e3,kIt=i((t,e,r=0)=>{let n=i(s=>{let o=r-s,a=i(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))},"onTimeout");t.socket?(t.socket.setTimeout(o,a),t.on("close",()=>t.socket?.removeListener("timeout",a))):t.setTimeout(o,a)},"registerTimeout");return 0{a=Number(Fn.setTimeout(()=>l(!0),Math.max(jPe,r)))}),new Promise(l=>{t.on("continue",()=>{Fn.clearTimeout(a),l(!0)}),t.on("response",()=>{Fn.clearTimeout(a),l(!1)}),t.on("error",()=>{Fn.clearTimeout(a),l(!1)})})])),c&&LIt(t,e.body)}i(ZPe,"writeRequestBody");function LIt(t,e){if(e instanceof KPe.Readable){e.pipe(t);return}if(e){let r=Buffer.isBuffer(e);if(r||typeof e=="string"){r&&e.byteLength===0?t.end():t.end(e);return}let s=e;if(typeof s=="object"&&s.buffer&&typeof s.byteOffset=="number"&&typeof s.byteLength=="number"){t.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}t.end(Buffer.from(e));return}t.end()}i(LIt,"writeBody");var OIt=0,DQ,JPe,Oj=class t{static{i(this,"NodeHttpHandler")}config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return typeof e?.handle=="function"?e:new t(e)}static checkSocketUsage(e,r,n=console){let{sockets:s,requests:o,maxSockets:a}=e;if(typeof a!="number"||a===1/0||Date.now()-15e3=a&&d>=2*a)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${u} and ${d} additional requests are enqueued. See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html -or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(this.resolveDefaultConfig(s))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let s=this.config,o=e.protocol==="https:";return!o&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((a,c)=>{let l,u=-1,d=-1,p=-1,m=-1,f=-1,g=i(()=>{Mn.clearTimeout(u),Mn.clearTimeout(d),Mn.clearTimeout(p),Mn.clearTimeout(m),Mn.clearTimeout(f)},"clearTimeouts"),E=i(async H=>{await l,g(),a(H)},"resolve"),x=i(async H=>{await l,g(),c(H)},"reject");if(r?.aborted){let H=QQ(r);x(H);return}let w=e.headers,S=w?(w.Expect??w.expect)==="100-continue":!1,P=o?s.httpsAgent:s.httpAgent;S&&!this.externalAgent&&(P=new(o?TQ.Agent:PQ)({keepAlive:!1,maxSockets:1/0})),u=Mn.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(P,this.socketWarningTimestamp,s.logger)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3));let Q=e.query?vQ.buildQueryString(e.query):"",q;if(e.username!=null||e.password!=null){let H=e.username??"",oe=e.password??"";q=`${H}:${oe}`}let M=e.path;Q&&(M+=`?${Q}`),e.fragment&&(M+=`#${e.fragment}`);let V=e.hostname??"";V[0]==="["&&V.endsWith("]")?V=e.hostname.slice(1,-1):V=e.hostname;let pe={headers:e.headers,host:V,method:e.method,path:M,port:e.port,agent:P,auth:q},Re=(o?TQ.request:MPe)(pe,H=>{let oe=new vQ.HttpResponse({statusCode:H.statusCode||-1,reason:H.statusMessage,headers:UPe(H.headers),body:H});E({response:oe})});if(Re.on("error",H=>{wIt.includes(H.code)?x(Object.assign(H,{name:"TimeoutError"})):x(H)}),r){let H=i(()=>{Re.destroy();let oe=QQ(r);x(oe)},"onAbort");if(typeof r.addEventListener=="function"){let oe=r;oe.addEventListener("abort",H,{once:!0}),Re.once("close",()=>oe.removeEventListener("abort",H))}else r.onabort=H}let se=n??s.requestTimeout;d=bIt(Re,x,s.connectionTimeout),p=SIt(Re,x,se,s.throwOnRequestTimeout,s.logger??console),m=NIt(Re,x,s.socketTimeout);let ye=pe.agent;typeof ye=="object"&&"keepAlive"in ye&&(f=RIt(Re,{keepAlive:ye.keepAlive,keepAliveMsecs:ye.keepAliveMsecs})),l=qPe(Re,e,se,this.externalAgent).catch(H=>(g(),c(H)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:s,socketAcquisitionWarningTimeout:o,httpAgent:a,httpsAgent:c,throwOnRequestTimeout:l,logger:u}=e||{},d=!0,p=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:l,httpAgentProvider:i(async()=>{let{Agent:m,request:f}=await import("node:http");return MPe=f,PQ=m,a instanceof PQ||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new PQ({keepAlive:d,maxSockets:p,...a})},"httpAgentProvider"),httpsAgent:c instanceof TQ.Agent||typeof c?.destroy=="function"?(this.externalAgent=!0,c):new TQ.Agent({keepAlive:d,maxSockets:p,...c}),logger:u}}},vIt=new Uint16Array(1),iw=class{static{i(this,"ClientHttp2SessionRef")}id=vIt[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||this.session.destroy()}useCount(){return this.refs}},vj=class{static{i(this,"NodeHttp2ConnectionPool")}sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new iw(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},_j=class{static{i(this,"NodeHttp2ConnectionManager")}config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),s=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=s.poll();if(u)return u.retain(),u}let o=new iw(this.connect(n)),a=o.deref();this.config.maxConcurrency&&a.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=i(()=>{this.removeFromPoolAndClose(n,o)},"graceful"),l=i(()=>{this.removeFromPoolAndCheckedDestroy(n,o)},"ensureDestroyed");return a.on("goaway",c),a.on("error",l),a.on("frameError",l),a.on("close",l),r.requestTimeout&&a.setTimeout(r.requestTimeout,l),s.offerLast(o),o.retain(),o}release(e,r){r.free()}createIsolatedSession(e,r){let n=this.getUrlString(e),s=new iw(this.connect(n)),o=s.deref();o.settings({maxConcurrentStreams:1});let a=i(()=>{s.destroy()},"ensureDestroyed");return o.on("error",a),o.on("frameError",a),o.on("close",a),r.requestTimeout&&o.setTimeout(r.requestTimeout,a),s.retain(),s}destroy(){for(let[e,r]of this.connectionPools){for(let n of[...r])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let r of this.connectionPools.values())r.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[r,n]of this.connectionPools){let s=[];for(let o of n)s.push({id:o.id,active:o.useCount(),maxConcurrent:o.max,totalRequests:o.total});e[r]={sessions:s}}return e}removeFromPoolAndClose(e,r){this.connectionPools.get(e)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(e,r){this.connectionPools.get(e)?.remove(r),r.destroy()}getPool(e){if(!this.connectionPools.has(e)){let r=new vj;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,r)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?_Q.connect(e):_Q.connect(e,this.connectOptions)}},Qj=class t{static{i(this,"NodeHttp2Handler")}config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new _j({});static create(e){return typeof e?.handle=="function"?e:new t(e)}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(s||{})}).catch(n):r(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:r,requestTimeout:n,isEventStream:s}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:d,nodeHttp2ConnectOptions:p}=this.config;this.connectionManager.setDisableConcurrentStreams(u??!1),d&&this.connectionManager.setMaxConcurrentStreams(d),p&&this.connectionManager.setNodeHttp2ConnectOptions(p)}let{requestTimeout:o,disableConcurrentStreams:a}=this.config,c=a||s,l=n??o;return new Promise((u,d)=>{let p=!1,m,f=i(async oe=>{await m,u(oe)},"resolve"),g=i(async oe=>{await m,d(oe)},"reject");if(r?.aborted){p=!0;let oe=QQ(r);g(oe);return}let{hostname:E,method:x,port:w,protocol:S,query:P}=e,Q="";if(e.username!=null||e.password!=null){let oe=e.username??"",It=e.password??"";Q=`${oe}:${It}@`}let q=`${S}//${Q}${E}${w?`:${w}`:""}`,M={destination:new URL(q)},V={requestTimeout:this.config?.sessionTimeout,isEventStream:s},pe=c?this.connectionManager.createIsolatedSession(M,V):this.connectionManager.lease(M,V),ke=pe.deref(),Re=i(oe=>{c&&pe.destroy(),p=!0,g(oe)},"rejectWithDestroy"),se=P?vQ.buildQueryString(P):"",ye=e.path;se&&(ye+=`?${se}`),e.fragment&&(ye+=`#${e.fragment}`);let H=ke.request({...e.headers,[_Q.constants.HTTP2_HEADER_PATH]:ye,[_Q.constants.HTTP2_HEADER_METHOD]:x});if(l&&H.setTimeout(l,()=>{H.close();let oe=new Error(`Stream timed out because of no activity for ${l} ms`);oe.name="TimeoutError",Re(oe)}),r){let oe=i(()=>{H.close();let It=QQ(r);Re(It)},"onAbort");if(typeof r.addEventListener=="function"){let It=r;It.addEventListener("abort",oe,{once:!0}),H.once("close",()=>It.removeEventListener("abort",oe))}else r.onabort=oe}H.on("frameError",(oe,It,at)=>{Re(new Error(`Frame type id ${oe} in stream id ${at} has failed with code ${It}.`))}),H.on("error",Re),H.on("aborted",()=>{Re(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${H.rstCode}.`))}),H.on("response",oe=>{let It=new vQ.HttpResponse({statusCode:oe[":status"]??-1,headers:UPe(oe),body:H});p=!0,f({response:It}),c&&ke.close()}),H.on("close",()=>{c?pe.destroy():this.connectionManager.release(M,pe),p||Re(new Error("Unexpected error: http2 request did not get a response"))}),m=qPe(H,e,l)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}},Dj=class extends FPe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}},_It=i(t=>QIt(t)?DIt(t):new Promise((e,r)=>{let n=new Dj;t.pipe(n),t.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));e(s)})}),"streamCollector"),QIt=i(t=>typeof ReadableStream=="function"&&t instanceof ReadableStream,"isReadableStreamInstance");async function DIt(t){let e=[],r=t.getReader(),n=!1,s=0;for(;!n;){let{done:c,value:l}=await r.read();l&&(e.push(l),s+=l.length),n=c}let o=new Uint8Array(s),a=0;for(let c of e)o.set(c,a),a+=c.length;return o}i(DIt,"collectReadableStream");aw.DEFAULT_REQUEST_TIMEOUT=PIt;aw.NodeHttp2Handler=Qj;aw.NodeHttpHandler=Pj;aw.streamCollector=_It});var $Pe=b(DQ=>{"use strict";Object.defineProperty(DQ,"__esModule",{value:!0});DQ.checkUrl=void 0;var kIt=(Tt(),W(kn)),LIt="169.254.170.2",OIt="169.254.170.23",MIt="[fd00:ec2::23]",FIt=i((t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===LIt||t.hostname===OIt||t.hostname===MIt)){if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(t.hostname==="localhost")return;let r=t.hostname.split("."),n=i(s=>{let o=parseInt(s,10);return 0<=o&&o<=255},"inRange");if(r[0]==="127"&&n(r[1])&&n(r[2])&&n(r[3])&&r.length===4)return}throw new kIt.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following: +or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(this.resolveDefaultConfig(s))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let s=this.config,o=e.protocol==="https:";return!o&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((a,c)=>{let l,u=-1,d=-1,p=-1,m=-1,f=-1,g=i(()=>{Fn.clearTimeout(u),Fn.clearTimeout(d),Fn.clearTimeout(p),Fn.clearTimeout(m),Fn.clearTimeout(f)},"clearTimeouts"),E=i(async H=>{await l,g(),a(H)},"resolve"),x=i(async H=>{await l,g(),c(H)},"reject");if(r?.aborted){let H=OQ(r);x(H);return}let w=e.headers,S=w?(w.Expect??w.expect)==="100-continue":!1,P=o?s.httpsAgent:s.httpAgent;S&&!this.externalAgent&&(P=new(o?QQ.Agent:DQ)({keepAlive:!1,maxSockets:1/0})),u=Fn.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(P,this.socketWarningTimestamp,s.logger)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3));let Q=e.query?kQ.buildQueryString(e.query):"",q;if(e.username!=null||e.password!=null){let H=e.username??"",ne=e.password??"";q=`${H}:${ne}`}let M=e.path;Q&&(M+=`?${Q}`),e.fragment&&(M+=`#${e.fragment}`);let V=e.hostname??"";V[0]==="["&&V.endsWith("]")?V=e.hostname.slice(1,-1):V=e.hostname;let pe={headers:e.headers,host:V,method:e.method,path:M,port:e.port,agent:P,auth:q},Re=(o?QQ.request:JPe)(pe,H=>{let ne=new kQ.HttpResponse({statusCode:H.statusCode||-1,reason:H.statusMessage,headers:XPe(H.headers),body:H});E({response:ne})});if(Re.on("error",H=>{PIt.includes(H.code)?x(Object.assign(H,{name:"TimeoutError"})):x(H)}),r){let H=i(()=>{Re.destroy();let ne=OQ(r);x(ne)},"onAbort");if(typeof r.addEventListener=="function"){let ne=r;ne.addEventListener("abort",H,{once:!0}),Re.once("close",()=>ne.removeEventListener("abort",H))}else r.onabort=H}let oe=n??s.requestTimeout;d=vIt(Re,x,s.connectionTimeout),p=_It(Re,x,oe,s.throwOnRequestTimeout,s.logger??console),m=kIt(Re,x,s.socketTimeout);let ye=pe.agent;typeof ye=="object"&&"keepAlive"in ye&&(f=DIt(Re,{keepAlive:ye.keepAlive,keepAliveMsecs:ye.keepAliveMsecs})),l=ZPe(Re,e,oe,this.externalAgent).catch(H=>(g(),c(H)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:s,socketAcquisitionWarningTimeout:o,httpAgent:a,httpsAgent:c,throwOnRequestTimeout:l,logger:u}=e||{},d=!0,p=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:l,httpAgentProvider:i(async()=>{let{Agent:m,request:f}=await import("node:http");return JPe=f,DQ=m,a instanceof DQ||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new DQ({keepAlive:d,maxSockets:p,...a})},"httpAgentProvider"),httpsAgent:c instanceof QQ.Agent||typeof c?.destroy=="function"?(this.externalAgent=!0,c):new QQ.Agent({keepAlive:d,maxSockets:p,...c}),logger:u}}},MIt=new Uint16Array(1),uw=class{static{i(this,"ClientHttp2SessionRef")}id=MIt[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||this.session.destroy()}useCount(){return this.refs}},Mj=class{static{i(this,"NodeHttp2ConnectionPool")}sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new uw(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},Fj=class{static{i(this,"NodeHttp2ConnectionManager")}config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),s=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=s.poll();if(u)return u.retain(),u}let o=new uw(this.connect(n)),a=o.deref();this.config.maxConcurrency&&a.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=i(()=>{this.removeFromPoolAndClose(n,o)},"graceful"),l=i(()=>{this.removeFromPoolAndCheckedDestroy(n,o)},"ensureDestroyed");return a.on("goaway",c),a.on("error",l),a.on("frameError",l),a.on("close",l),r.requestTimeout&&a.setTimeout(r.requestTimeout,l),s.offerLast(o),o.retain(),o}release(e,r){r.free()}createIsolatedSession(e,r){let n=this.getUrlString(e),s=new uw(this.connect(n)),o=s.deref();o.settings({maxConcurrentStreams:1});let a=i(()=>{s.destroy()},"ensureDestroyed");return o.on("error",a),o.on("frameError",a),o.on("close",a),r.requestTimeout&&o.setTimeout(r.requestTimeout,a),s.retain(),s}destroy(){for(let[e,r]of this.connectionPools){for(let n of[...r])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let r of this.connectionPools.values())r.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[r,n]of this.connectionPools){let s=[];for(let o of n)s.push({id:o.id,active:o.useCount(),maxConcurrent:o.max,totalRequests:o.total});e[r]={sessions:s}}return e}removeFromPoolAndClose(e,r){this.connectionPools.get(e)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(e,r){this.connectionPools.get(e)?.remove(r),r.destroy()}getPool(e){if(!this.connectionPools.has(e)){let r=new Mj;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,r)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?LQ.connect(e):LQ.connect(e,this.connectOptions)}},Uj=class t{static{i(this,"NodeHttp2Handler")}config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new Fj({});static create(e){return typeof e?.handle=="function"?e:new t(e)}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(s||{})}).catch(n):r(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:r,requestTimeout:n,isEventStream:s}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:d,nodeHttp2ConnectOptions:p}=this.config;this.connectionManager.setDisableConcurrentStreams(u??!1),d&&this.connectionManager.setMaxConcurrentStreams(d),p&&this.connectionManager.setNodeHttp2ConnectOptions(p)}let{requestTimeout:o,disableConcurrentStreams:a}=this.config,c=a||s,l=n??o;return new Promise((u,d)=>{let p=!1,m,f=i(async ne=>{await m,u(ne)},"resolve"),g=i(async ne=>{await m,d(ne)},"reject");if(r?.aborted){p=!0;let ne=OQ(r);g(ne);return}let{hostname:E,method:x,port:w,protocol:S,query:P}=e,Q="";if(e.username!=null||e.password!=null){let ne=e.username??"",It=e.password??"";Q=`${ne}:${It}@`}let q=`${S}//${Q}${E}${w?`:${w}`:""}`,M={destination:new URL(q)},V={requestTimeout:this.config?.sessionTimeout,isEventStream:s},pe=c?this.connectionManager.createIsolatedSession(M,V):this.connectionManager.lease(M,V),Le=pe.deref(),Re=i(ne=>{c&&pe.destroy(),p=!0,g(ne)},"rejectWithDestroy"),oe=P?kQ.buildQueryString(P):"",ye=e.path;oe&&(ye+=`?${oe}`),e.fragment&&(ye+=`#${e.fragment}`);let H=Le.request({...e.headers,[LQ.constants.HTTP2_HEADER_PATH]:ye,[LQ.constants.HTTP2_HEADER_METHOD]:x});if(l&&H.setTimeout(l,()=>{H.close();let ne=new Error(`Stream timed out because of no activity for ${l} ms`);ne.name="TimeoutError",Re(ne)}),r){let ne=i(()=>{H.close();let It=OQ(r);Re(It)},"onAbort");if(typeof r.addEventListener=="function"){let It=r;It.addEventListener("abort",ne,{once:!0}),H.once("close",()=>It.removeEventListener("abort",ne))}else r.onabort=ne}H.on("frameError",(ne,It,at)=>{Re(new Error(`Frame type id ${ne} in stream id ${at} has failed with code ${It}.`))}),H.on("error",Re),H.on("aborted",()=>{Re(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${H.rstCode}.`))}),H.on("response",ne=>{let It=new kQ.HttpResponse({statusCode:ne[":status"]??-1,headers:XPe(ne),body:H});p=!0,f({response:It}),c&&Le.close()}),H.on("close",()=>{c?pe.destroy():this.connectionManager.release(M,pe),p||Re(new Error("Unexpected error: http2 request did not get a response"))}),m=ZPe(H,e,l)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}},qj=class extends KPe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}},FIt=i(t=>UIt(t)?qIt(t):new Promise((e,r)=>{let n=new qj;t.pipe(n),t.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));e(s)})}),"streamCollector"),UIt=i(t=>typeof ReadableStream=="function"&&t instanceof ReadableStream,"isReadableStreamInstance");async function qIt(t){let e=[],r=t.getReader(),n=!1,s=0;for(;!n;){let{done:c,value:l}=await r.read();l&&(e.push(l),s+=l.length),n=c}let o=new Uint8Array(s),a=0;for(let c of e)o.set(c,a),a+=c.length;return o}i(qIt,"collectReadableStream");dw.DEFAULT_REQUEST_TIMEOUT=OIt;dw.NodeHttp2Handler=Uj;dw.NodeHttpHandler=Oj;dw.streamCollector=FIt});var eve=b(MQ=>{"use strict";Object.defineProperty(MQ,"__esModule",{value:!0});MQ.checkUrl=void 0;var $It=(Tt(),W(Ln)),GIt="169.254.170.2",HIt="169.254.170.23",zIt="[fd00:ec2::23]",VIt=i((t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===GIt||t.hostname===HIt||t.hostname===zIt)){if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(t.hostname==="localhost")return;let r=t.hostname.split("."),n=i(s=>{let o=parseInt(s,10);return 0<=o&&o<=255},"inRange");if(r[0]==="127"&&n(r[1])&&n(r[2])&&n(r[3])&&r.length===4)return}throw new $It.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following: - loopback CIDR 127.0.0.0/8 or [::1/128] - ECS container host 169.254.170.2 - - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}},"checkUrl");DQ.checkUrl=FIt});var GPe=b(kQ=>{"use strict";Object.defineProperty(kQ,"__esModule",{value:!0});kQ.createGetRequest=GIt;kQ.getCredentials=HIt;var kj=(Tt(),W(kn)),UIt=(Qe(),W(rl)),qIt=(st(),W(Zd)),$It=(st(),W(Zd));function GIt(t){return new UIt.HttpRequest({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}i(GIt,"createGetRequest");async function HIt(t,e){let n=await(0,$It.sdkStreamMixin)(t.body).transformToString();if(t.statusCode===200){let s=JSON.parse(n);if(typeof s.AccessKeyId!="string"||typeof s.SecretAccessKey!="string"||typeof s.Token!="string"||typeof s.Expiration!="string")throw new kj.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.Token,expiration:(0,qIt.parseRfc3339DateTime)(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new kj.CredentialsProviderError(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new kj.CredentialsProviderError(`Server responded with status: ${t.statusCode}`,{logger:e})}i(HIt,"getCredentials")});var HPe=b(LQ=>{"use strict";Object.defineProperty(LQ,"__esModule",{value:!0});LQ.retryWrapper=void 0;var zIt=i((t,e,r)=>async()=>{for(let n=0;nsetTimeout(o,r))}return await t()},"retryWrapper");LQ.retryWrapper=zIt});var YPe=b(OQ=>{"use strict";Object.defineProperty(OQ,"__esModule",{value:!0});OQ.fromHttp=void 0;var VIt=(ty(),W(ey)),YIt=(wt(),W(Ds)),zPe=(Tt(),W(kn)),WIt=vu(),jIt=VIt.__importDefault(require("node:fs/promises")),JIt=$Pe(),VPe=GPe(),KIt=HPe(),XIt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",ZIt="http://169.254.170.2",ext="AWS_CONTAINER_CREDENTIALS_FULL_URI",txt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",rxt="AWS_CONTAINER_AUTHORIZATION_TOKEN",nxt=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[XIt],n=t.awsContainerCredentialsFullUri??process.env[ext],s=t.awsContainerAuthorizationToken??process.env[rxt],o=t.awsContainerAuthorizationTokenFile??process.env[txt],a=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsFullUri will take precedence.")),s&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationToken will take precedence.")),n)e=n;else if(r)e=`${ZIt}${r}`;else throw new zPe.CredentialsProviderError(`No HTTP credential provider host provided. -Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let c=new URL(e);(0,JIt.checkUrl)(c,t.logger);let l=WIt.NodeHttpHandler.create({requestTimeout:t.timeout??1e3,connectionTimeout:t.timeout??1e3});return(0,KIt.retryWrapper)(async()=>{let u=(0,VPe.createGetRequest)(c);s?u.headers.Authorization=s:o&&(u.headers.Authorization=(await jIt.default.readFile(o)).toString());try{let d=await l.handle(u);return(0,VPe.getCredentials)(d.response).then(p=>(0,YIt.setCredentialFeature)(p,"CREDENTIALS_HTTP","z"))}catch(d){throw new zPe.CredentialsProviderError(String(d),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3)},"fromHttp");OQ.fromHttp=nxt});var Lj=b(WPe=>{"use strict";var sxt=YPe();WPe.fromHttp=sxt.fromHttp});function oxt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function ixt(t){return{schemeId:"smithy.api#noAuth"}}var jPe,JPe,KPe,Oj=I(()=>{Xr();Ce();jPe=i(async(t,e,r)=>({operation:fr(e).operation,region:await Ut(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(oxt,"createAwsAuthSigv4HttpAuthOption");i(ixt,"createSmithyApiNoAuthHttpAuthOption");JPe=i(t=>{let e=[];return t.operation==="CreateToken"?e.push(ixt(t)):e.push(oxt(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),KPe=i(t=>{let e=Il(t);return Object.assign(e,{authSchemePreference:Ut(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var XPe,ZPe,Mj=I(()=>{XPe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),ZPe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var mp,cw=I(()=>{mp={name:"@aws-sdk/nested-clients",version:"3.997.11",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=20.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.13","@aws-sdk/signature-v4-multi-region":"^3.996.28","@aws-sdk/types":"^3.973.9","@smithy/core":"^3.24.3","@smithy/fetch-http-handler":"^5.4.3","@smithy/node-http-handler":"^4.7.3","@smithy/types":"^4.14.2",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}}}});function fp(t){return typeof Buffer<"u"?Buffer.alloc(t):new Uint8Array(t)}function MQ(t){return t[Fj]=!0,t}var Fj,FQ=I(()=>{i(fp,"alloc");Fj=Symbol("@smithy/core/cbor::tagSymbol");i(MQ,"tag")});function tve(t){Ot=t,Qu=new DataView(Ot.buffer,Ot.byteOffset,Ot.byteLength)}function xl(t,e){if(t>=e)throw new Error("unexpected end of (decode) payload.");let r=(Ot[t]&224)>>5,n=Ot[t]&31;switch(r){case 0:case 1:case 6:let s,o;if(n<24)s=n,o=1;else switch(n){case 24:case 25:case 26:case 27:let a=nve[n],c=a+1;if(o=c,e-t>7,n=(t&124)>>2,s=(t&3)<<8|e,o=r===0?1:-1,a,c;if(n===0){if(s===0)return 0;a=Math.pow(2,-14),c=0}else{if(n===31)return s===0?o*(1/0):NaN;a=Math.pow(2,n-15),c=1}return c+=s/1024,o*(a*c)}function pw(t,e){let r=Ot[t]&31;if(r<24)return dt=1,r;if(r===24||r===25||r===26||r===27){let n=nve[r];if(dt=n+1,e-t>5,o=Ot[t]&31;if(s!==3)throw new Error(`unexpected major type ${s} in indefinite string.`);if(o===31)throw new Error("nested indefinite string.");let a=Vj(t,e);t+=dt;for(let l=0;l>5,o=Ot[t]&31;if(s!==2)throw new Error(`unexpected major type ${s} in indefinite string.`);if(o===31)throw new Error("nested indefinite string.");let a=Vj(t,e);t+=dt;for(let l=0;l=e)throw new Error("unexpected end of map payload.");let c=(Ot[t]&224)>>5;if(c!==3)throw new Error(`unexpected major type ${c} for map key at index ${t}.`);let l=xl(t,e);t+=dt;let u=xl(t,e);t+=dt,o[l]=u}return dt=n+(t-s),o}function Ext(t,e){t+=1;let r=t,n={};for(;t=e)throw new Error("unexpected end of map payload.");if(Ot[t]===255)return dt=t-r+2,n;let s=(Ot[t]&224)>>5;if(s!==3)throw new Error(`unexpected major type ${s} for map key.`);let o=xl(t,e);t+=dt;let a=xl(t,e);t+=dt,n[o]=a}throw new Error("expected break marker.")}function Cxt(t,e){let r=Ot[t]&31;switch(r){case 21:case 20:return dt=1,r===21;case 22:return dt=1,null;case 23:return dt=1,null;case 25:if(e-t<3)throw new Error("incomplete float16 at end of buf.");return dt=3,pxt(Ot[t+1],Ot[t+2]);case 26:if(e-t<5)throw new Error("incomplete float32 at end of buf.");return dt=5,Qu.getFloat32(t+1);case 27:if(e-t<9)throw new Error("incomplete float64 at end of buf.");return dt=9,Qu.getFloat64(t+1);default:throw new Error(`unexpected minor value ${r}.`)}}function Uj(t){if(typeof t=="number")return t;let e=Number(t);return Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:t}var lxt,uxt,Ot,Qu,eve,dt,nve,sve=I(()=>{st();FQ();lxt=typeof TextDecoder<"u",uxt=typeof Buffer<"u",Ot=fp(0),Qu=new DataView(Ot.buffer,Ot.byteOffset,Ot.byteLength),eve=lxt?new TextDecoder:null,dt=0;i(tve,"setPayload");i(xl,"decode");i(rve,"bytesToUtf8");i(dxt,"demote");nve={24:1,25:2,26:4,27:8};i(pxt,"bytesToFloat16");i(pw,"decodeCount");i(mxt,"decodeUtf8String");i(fxt,"decodeUtf8StringIndefinite");i(Vj,"decodeUnstructuredByteString");i(Axt,"decodeUnstructuredByteStringIndefinite");i(hxt,"decodeList");i(gxt,"decodeListIndefinite");i(yxt,"decodeMap");i(Ext,"decodeMapIndefinite");i(Cxt,"decodeSpecial");i(Uj,"castBigInt")});function Wj(t){Ye.byteLength-Be=0,s=n?0:1,o=n?r:-r-1;o<24?Ye[Be++]=s<<5|o:o<256?(Ye[Be++]=s<<5|24,Ye[Be++]=o):o<65536?(Ye[Be++]=s<<5|25,Ye[Be++]=o>>8,Ye[Be++]=o):o<4294967296?(Ye[Be++]=s<<5|26,Lu.setUint32(Be,o),Be+=4):(Ye[Be++]=s<<5|27,Lu.setBigUint64(Be,BigInt(o)),Be+=8);continue}Ye[Be++]=251,Lu.setFloat64(Be,r),Be+=8;continue}else if(typeof r=="bigint"){let n=r>=0,s=n?0:1,o=n?r:-r-BigInt(1),a=Number(o);if(a<24)Ye[Be++]=s<<5|a;else if(a<256)Ye[Be++]=s<<5|24,Ye[Be++]=a;else if(a<65536)Ye[Be++]=s<<5|25,Ye[Be++]=a>>8,Ye[Be++]=a&255;else if(a<4294967296)Ye[Be++]=s<<5|26,Lu.setUint32(Be,a),Be+=4;else if(o=0;)l[l.byteLength-d]=Number(u&BigInt(255)),u>>=BigInt(8);Wj(l.byteLength*2),Ye[Be++]=n?194:195,ove?ku(2,Buffer.byteLength(l)):ku(2,l.byteLength),Ye.set(l,Be),Be+=l.byteLength}continue}else if(r===null){Ye[Be++]=246;continue}else if(typeof r=="boolean"){Ye[Be++]=224|(r?21:20);continue}else{if(typeof r>"u")throw new Error("@smithy/core/cbor: client may not serialize undefined value.");if(Array.isArray(r)){for(let n=r.length-1;n>=0;--n)e.push(r[n]);ku(4,r.length);continue}else if(typeof r.byteLength=="number"){Wj(r.length*2),ku(2,r.length),Ye.set(r,Be),Be+=r.byteLength;continue}else if(typeof r=="object"){if(r instanceof qt){let s=r.string.indexOf("."),o=s===-1?0:s-r.string.length+1,a=BigInt(r.string.replace(".",""));Ye[Be++]=196,e.push(a),e.push(o),ku(4,2);continue}if(r[Fj])if("tag"in r&&"value"in r){e.push(r.value),ku(6,r.tag);continue}else throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(r));let n=Object.keys(r);for(let s=n.length-1;s>=0;--s){let o=n[s];e.push(r[o]),e.push(o)}ku(5,n.length);continue}}throw new Error(`data type ${r?.constructor?.name??typeof r} not compatible for encoding.`)}}var ove,Ixt,Ye,Lu,Be,ave=I(()=>{st();FQ();ove=typeof Buffer<"u",Ixt=2048,Ye=fp(Ixt),Lu=new DataView(Ye.buffer,Ye.byteOffset,Ye.byteLength),Be=0;i(Wj,"ensureSpace");i(jj,"toUint8Array");i(qQ,"resize");i(ku,"encodeHeader");i(ive,"encode")});var Jj,cve=I(()=>{sve();ave();Jj={deserialize(t){return tve(t),xl(0,t.length)},serialize(t){try{return ive(t),jj()}catch(e){throw jj(),e}},resizeEncodingBuffer(t){qQ(t)}}});var $Q,GQ,HQ=I(()=>{FQ();$Q=i(t=>MQ({tag:1,value:t.getTime()/1e3}),"dateToTag"),GQ=i((t,e)=>{let r=i(s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},"sanitizeErrorCode");if(e.__type!==void 0)return r(e.__type);let n;for(let s in e)if(s.toLowerCase()==="code"){n=s;break}if(n&&e[n]!==void 0)return r(e[n])},"loadSmithyRpcV2CborErrorCode")});var zQ,Kj,Xj,Zj=I(()=>{Qe();Ct();st();cve();HQ();zQ=class extends vs{static{i(this,"CborCodec")}createSerializer(){let e=new Kj;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Xj;return e.setSerdeContext(this.serdeContext),e}},Kj=class extends vs{static{i(this,"CborShapeSerializer")}value;write(e,r){this.value=this.serialize(e,r)}serialize(e,r){let n=Ee.of(e);if(r==null)return n.isIdempotencyToken()?Ba():r;if(n.isBlobSchema())return typeof r=="string"?(this.serdeContext?.base64Decoder??$r)(r):r;if(n.isTimestampSchema())return typeof r=="number"||typeof r=="bigint"?$Q(new Date(Number(r)/1e3|0)):$Q(r);if(typeof r=="function"||typeof r=="object"){let s=r;if(n.isListSchema()&&Array.isArray(s)){let a=!!n.getMergedTraits().sparse,c=[],l=0;for(let u of s){let d=this.serialize(n.getValueSchema(),u);(d!=null||a)&&(c[l++]=d)}return c}if(s instanceof Date)return $Q(s);let o={};if(n.isMapSchema()){let a=!!n.getMergedTraits().sparse;for(let c in s){let l=this.serialize(n.getValueSchema(),s[c]);(l!=null||a)&&(o[c]=l)}}else if(n.isStructSchema()){for(let[c,l]of n.structIterator()){let u=this.serialize(l,s[c]);u!=null&&(o[c]=u)}if(n.isUnionSchema()&&Array.isArray(s.$unknown)){let[c,l]=s.$unknown;o[c]=l}else if(typeof s.__type=="string")for(let c in s)c in o||(o[c]=this.serialize(15,s[c]))}else if(n.isDocumentSchema())for(let a in s)o[a]=this.serialize(n.getValueSchema(),s[a]);else if(n.isBigDecimalSchema())return s;return o}return r}flush(){let e=Jj.serialize(this.value);return this.value=void 0,e}},Xj=class extends vs{static{i(this,"CborShapeDeserializer")}read(e,r){let n=Jj.deserialize(r);return this.readValue(e,n)}readValue(e,r){let n=Ee.of(e);if(n.isTimestampSchema()){if(typeof r=="number")return lf(r);if(typeof r=="object"&&r.tag===1&&"value"in r)return lf(r.value)}if(n.isBlobSchema())return typeof r=="string"?(this.serdeContext?.base64Decoder??$r)(r):r;if(typeof r>"u"||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="bigint"||typeof r=="symbol")return r;if(typeof r=="object"){if(r===null)return null;if("byteLength"in r||r instanceof Date||n.isDocumentSchema())return r;if(n.isListSchema()){let o=[],a=n.getValueSchema();for(let c of r){let l=this.readValue(a,c);o.push(l)}return o}let s={};if(n.isMapSchema()){let o=n.getValueSchema();for(let a in r){let c=this.readValue(o,r[a]);s[a]=c}}else if(n.isStructSchema()){let o=n.isUnionSchema(),a;if(o){a=new Set;for(let c in r)c!=="__type"&&a.add(c)}for(let[c,l]of n.structIterator())o&&a.delete(c),r[c]!=null&&(s[c]=this.readValue(l,r[c]));if(o&&a?.size===1){let c=!0;for(let l in s){c=!1;break}if(c){let l=a.values().next().value;s.$unknown=[l,r[l]]}}else if(typeof r.__type=="string")for(let c in r)c in s||(s[c]=r[c])}else if(r instanceof qt)return r;return s}else return r}}});var VQ,lve=I(()=>{Ce();Qe();Ct();Zj();HQ();VQ=class extends Su{static{i(this,"SmithyRpcV2CborProtocol")}codec=new zQ;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);if(Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),Ia(e.input)==="unit")delete s.body,delete s.headers["content-type"];else{s.body||(this.serializer.write(15,{}),s.body=this.serializer.flush());try{s.headers["content-length"]=String(s.body.byteLength)}catch{}}let{service:o,operation:a}=fr(n),c=`/service/${o}/operation/${a}`;return s.path.endsWith("/")?s.path+=c.slice(1):s.path+=c,s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=GQ(n,s)??"Unknown",c={$metadata:o,$fault:n.statusCode<=500?"client":"server"},l=this.options.defaultNamespace;a.includes("#")&&([l]=a.split("#"));let u=this.compositeErrorRegistry,d=gr.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let S=gr.for("smithy.ts.sdk.synthetic."+l);u.copyFrom(S);let P=u.getBaseException();if(P){let Q=u.getErrorCtor(P);throw Object.assign(new Q({name:a}),c,s)}throw Object.assign(new Error(a),c,s)}let m=Ee.of(p),f=u.getErrorCtor(p),g=s.message??s.Message??"Unknown",E=new f({}),x={};for(let[w,S]of m.structIterator())x[w]=this.deserializer.readValue(S,s[w]);throw Object.assign(E,c,{$fault:m.getMergedTraits().error,message:g},x)}getDefaultContentType(){return"application/cbor"}}});var uve=I(()=>{HQ();lve();Zj()});var Gi,Iy=I(()=>{Ce();Ct();Gi=class{static{i(this,"ProtocolLib")}queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){let n=r.getMemberSchemas(),s=Object.values(n).find(o=>!!o.getMergedTraits().httpPayload);if(s){let o=s.getMergedTraits().mediaType;return o||(s.isStringSchema()?"text/plain":s.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(a=>{let{httpQuery:c,httpQueryParams:l,httpHeader:u,httpLabel:d,httpPrefixHeaders:p}=a.getMergedTraits();return!c&&!l&&!u&&!d&&p===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,s,o,a){let c=e;e.includes("#")&&([,c]=e.split("#"));let l={$metadata:o,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:a?.(this.errorRegistry,c)??this.errorRegistry.getSchema(e),errorMetadata:l}}catch{s.message=s.message??s.Message??"UnknownError";let d=this.errorRegistry,p=d.getBaseException();if(p){let g=d.getErrorCtor(p)??Error;throw this.decorateServiceException(Object.assign(new g({name:c}),l),s)}let m=s,f=m?.message??m?.Message??m?.Error?.Message??m?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(f),{name:c},l),s)}}compose(e,r,n){let s=n;r.includes("#")&&([s]=r.split("#"));let o=gr.for(s),a=gr.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(o),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,r={}){if(this.queryCompat){let n=e.Message??r.Message,s=bf(e,r);n&&(s.message=n);let o=s.Error??{};o.Type=s.Error?.Type,o.Code=s.Error?.Code,o.Message=s.Error?.message??s.Error?.Message??n,s.Error=o;let a=s.$metadata.requestId;return a&&(s.RequestId=a),s}return bf(e,r)}setQueryCompatError(e,r){let n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[s,o]=n.split(";"),a=Object.keys(e),c={Code:s,Type:o};e.Code=s,e.Type=o;for(let l=0;lEe.of(s).getMergedTraits().awsQueryError?.[0]===r)}}}});var eJ,dve=I(()=>{uve();Ct();Iy();eJ=class extends VQ{static{i(this,"AwsSmithyRpcV2CborProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new Gi(this.awsQueryCompatible)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),s}async handleError(e,r,n,s,o){this.awsQueryCompatible&&this.mixin.setQueryCompatError(s,n);let a=(()=>{let g=n.headers["x-amzn-query-error"];return g&&this.awsQueryCompatible?g.split(";")[0]:GQ(n,s)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=Ee.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,m=new p({}),f={};for(let[g,E]of u.structIterator())s[g]!=null&&(f[g]=this.deserializer.readValue(E,s[g]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(s,f),this.mixin.decorateServiceException(Object.assign(m,l,{$fault:u.getMergedTraits().error,message:d},f),s)}}});var xxt,wxt,bxt,pve=I(()=>{xxt=i(t=>{if(t==null)return t;if(typeof t=="number"||typeof t=="bigint"){let e=new Error(`Received number ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}if(typeof t=="boolean"){let e=new Error(`Received boolean ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}return t},"_toStr"),wxt=i(t=>{if(t==null)return t;if(typeof t=="string"){let e=t.toLowerCase();if(t!==""&&e!=="false"&&e!=="true"){let r=new Error(`Received string "${t}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return t!==""&&e!=="false"}return t},"_toBool"),bxt=i(t=>{if(t==null)return t;if(typeof t=="string"){let e=Number(t);if(e.toString()!==t){let r=new Error(`Received string "${t}" where a number was expected.`);return r.name="Warning",console.warn(r),t}return e}return t},"_toNum")});var os,yp=I(()=>{os=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var xy,tJ=I(()=>{xy=class{static{i(this,"UnionSerde")}from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function mve(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number"&&(e>Number.MAX_SAFE_INTEGER||e{st();i(mve,"jsonReviver")});var YQ,rJ=I(()=>{Qe();st();YQ=i((t,e)=>co(t,e).then(r=>(e?.utf8Encoder??hr)(r)),"collectBodyString")});var WQ,Sxt,Ave,nJ,sJ,oJ,hve,mw=I(()=>{rJ();WQ=i((t,e)=>YQ(t,e).then(r=>{if(r.length)try{return JSON.parse(r)}catch(n){throw n?.name==="SyntaxError"&&Object.defineProperty(n,"$responseBodyText",{value:r}),n}return{}}),"parseJsonBody"),Sxt=i(async(t,e)=>{let r=await WQ(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),Ave=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),nJ=i(t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},"sanitizeErrorCode"),sJ=i((t,e)=>hve(t,e,["header","code","type"]),"loadRestJsonErrorCode"),oJ=i((t,e,r=!1)=>hve(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),hve=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=Ave(t??{},"x-amzn-errortype");if(s!==void 0)return nJ(t[s]);break;case"code":let o=Ave(e??{},"code");if(o&&e[o]!==void 0)return nJ(e[o]);break;case"type":if(e?.__type!==void 0)return nJ(e.__type);break}},"loadErrorCode")});var fw,iJ=I(()=>{Qe();Ct();st();st();yp();tJ();fve();mw();fw=class extends os{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){return this._read(e,typeof r=="string"?JSON.parse(r,mve):await WQ(r,this.serdeContext))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=Ee.of(e);if(n){if(s.isStructSchema()){let a=r,c=s.isUnionSchema(),l={},u,{jsonName:d}=this.settings;d&&(u={});let p;c&&(p=new xy(a,l));for(let[m,f]of s.structIterator()){let g=m;d&&(g=f.getMergedTraits().jsonName??g,u[g]=m),c&&p.mark(g),a[g]!=null&&(l[m]=this._read(f,a[g]))}if(c)p.writeUnknown();else if(typeof a.__type=="string")for(let m in a){let f=a[m],g=d?u[m]??m:m;g in l||(l[g]=f)}return l}if(Array.isArray(r)&&s.isListSchema()){let a=s.getValueSchema(),c=[];for(let l of r)c.push(this._read(a,l));return c}if(s.isMapSchema()){let a=s.getValueSchema(),c={};for(let l in r)c[l]=this._read(a,r[l]);return c}}if(s.isBlobSchema()&&typeof r=="string")return $r(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Zn.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(jo(s,this.settings)){case 5:return pv(r);case 6:return Ug(r);case 7:return mv(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(s.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(s.isBigDecimalSchema()&&r!=null){if(r instanceof qt)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new qt(a.string,a.type):new qt(String(r),"bigDecimal")}if(s.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(s.isDocumentSchema())if(n){let a=Array.isArray(r)?[]:{};for(let c in r){let l=r[c];l instanceof qt?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var gve,jQ,yve=I(()=>{st();gve="\u039D",jQ=class{static{i(this,"JsonReplacer")}values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof qt){let n=`${gve+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${gve+"b"+this.counter++}_`+n;return this.values.set(`"${s}"`,n),s}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var Aw,aJ=I(()=>{Qe();Ct();st();yp();yve();Aw=class extends os{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=Ee.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new jQ;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=Ee.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=Ee.of(e);if(s){if(o.isStructSchema()){let a=r,c={},{jsonName:l}=this.settings,u;l&&(u={});let d=0;for(let[p,m]of o.structIterator()){let f=this._write(m,a[p],o);if(f!==void 0){let g=p;l&&(g=m.getMergedTraits().jsonName??p,u[p]=g),c[g]=f,d++}}if(o.isUnionSchema()&&d===0){let{$unknown:p}=a;if(Array.isArray(p)){let[m,f]=p;c[m]=this._write(15,f)}}else if(typeof a.__type=="string")for(let p in a){let m=a[p],f=l?u[p]??p:p;f in c||(c[f]=this._write(15,m))}return c}if(Array.isArray(r)&&o.isListSchema()){let a=o.getValueSchema(),c=[],l=!!o.getMergedTraits().sparse;for(let u of r)(l||u!=null)&&c.push(this._write(a,u));return c}if(o.isMapSchema()){let a=o.getValueSchema(),c={},l=!!o.getMergedTraits().sparse;for(let u in r){let d=r[u];(l||d!=null)&&(c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema()))return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ar)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(jo(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return wa(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof qt&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return Ba();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?Zn.from(r):r}if(typeof r=="number"&&o.isNumericSchema())return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ar)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){let a=Array.isArray(r)?[]:{};for(let c in r){let l=r[c];l instanceof qt?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var Rf,JQ=I(()=>{yp();iJ();aJ();Rf=class extends os{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Aw(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new fw(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Nf,KQ=I(()=>{Qe();Ct();Iy();JQ();mw();Nf=class extends Su{static{i(this,"AwsJsonRpcProtocol")}serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r}),this.serviceTarget=n,this.codec=o??new Rf({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new Gi(this.awsQueryCompatible)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);return s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,s.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),(Ia(e.input)==="unit"||!s.body)&&(s.body="{}"),s}getPayloadCodec(){return this.codec}async handleError(e,r,n,s,o){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(s,n);let c=oJ(n,s,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,c,this.options.defaultNamespace);let{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,s,o,a?this.mixin.findQueryCompatibleError:void 0),d=Ee.of(l),p=s.message??s.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(l)??Error,f=new m({}),g={},E=this.codec.createDeserializer();for(let[x,w]of d.structIterator())s[x]!=null&&(g[x]=E.readObject(w,s[x]));throw a&&this.mixin.queryCompatOutput(s,g),this.mixin.decorateServiceException(Object.assign(f,u,{$fault:d.getMergedTraits().error,message:p},g),s)}}});var cJ,Eve=I(()=>{KQ();cJ=class extends Nf{static{i(this,"AwsJson1_0Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var lJ,Cve=I(()=>{KQ();lJ=class extends Nf{static{i(this,"AwsJson1_1Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var Ou,Ive=I(()=>{Qe();Ct();Iy();JQ();mw();Ou=class extends Cf{static{i(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new Gi;constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new Rf(n),this.serializer=new wf(this.codec.createSerializer(),n),this.deserializer=new xf(this.codec.createDeserializer(),n)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n),o=Ee.of(e.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return s.body==null&&s.headers["content-type"]===this.getDefaultContentType()&&(s.body="{}"),s}async deserializeResponse(e,r,n){let s=await super.deserializeResponse(e,r,n),o=Ee.of(e.output);for(let[a,c]of o.structIterator())c.getMemberTraits().httpPayload&&!(a in s)&&(s[a]=null);return s}async handleError(e,r,n,s,o){let a=sJ(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o),u=Ee.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,m=new p({});await this.deserializeHttpMessage(c,r,n,s);let f={},g=this.codec.createDeserializer();for(let[E,x]of u.structIterator()){let w=x.getMergedTraits().jsonName??E;f[E]=g.readObject(x,s[w])}throw this.mixin.decorateServiceException(Object.assign(m,l,{$fault:u.getMergedTraits().error,message:d},f),s)}getDefaultContentType(){return"application/json"}}});var Bxt,xve=I(()=>{st();Bxt=i(t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,cv(t)},"awsExpectUnion")});var bve=b((FFr,wve)=>{(()=>{"use strict";var t={d:i((C,h)=>{for(var y in h)t.o(h,y)&&!t.o(C,y)&&Object.defineProperty(C,y,{enumerable:!0,get:h[y]})},"d"),o:i((C,h)=>Object.prototype.hasOwnProperty.call(C,h),"o"),r:i(C=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},"r")},e={};t.r(e),t.d(e,{XMLBuilder:i(()=>YMe,"XMLBuilder"),XMLParser:i(()=>MMe,"XMLParser"),XMLValidator:i(()=>WMe,"XMLValidator")});let r=":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",n=new RegExp("^["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(C,h){let y=[],N=h.exec(C);for(;N;){let B=[];B.startIndex=h.lastIndex-N[0].length;let v=N.length;for(let L=0;L"&&C[v]!==" "&&C[v]!==" "&&C[v]!==` + - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}},"checkUrl");MQ.checkUrl=VIt});var tve=b(FQ=>{"use strict";Object.defineProperty(FQ,"__esModule",{value:!0});FQ.createGetRequest=JIt;FQ.getCredentials=KIt;var $j=(Tt(),W(Ln)),YIt=(De(),W(rl)),WIt=(st(),W(Zd)),jIt=(st(),W(Zd));function JIt(t){return new YIt.HttpRequest({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}i(JIt,"createGetRequest");async function KIt(t,e){let n=await(0,jIt.sdkStreamMixin)(t.body).transformToString();if(t.statusCode===200){let s=JSON.parse(n);if(typeof s.AccessKeyId!="string"||typeof s.SecretAccessKey!="string"||typeof s.Token!="string"||typeof s.Expiration!="string")throw new $j.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.Token,expiration:(0,WIt.parseRfc3339DateTime)(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new $j.CredentialsProviderError(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new $j.CredentialsProviderError(`Server responded with status: ${t.statusCode}`,{logger:e})}i(KIt,"getCredentials")});var rve=b(UQ=>{"use strict";Object.defineProperty(UQ,"__esModule",{value:!0});UQ.retryWrapper=void 0;var XIt=i((t,e,r)=>async()=>{for(let n=0;nsetTimeout(o,r))}return await t()},"retryWrapper");UQ.retryWrapper=XIt});var ove=b(qQ=>{"use strict";Object.defineProperty(qQ,"__esModule",{value:!0});qQ.fromHttp=void 0;var ZIt=(sy(),W(ny)),ext=(bt(),W(ks)),nve=(Tt(),W(Ln)),txt=_u(),rxt=ZIt.__importDefault(require("node:fs/promises")),nxt=eve(),sve=tve(),sxt=rve(),oxt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",ixt="http://169.254.170.2",axt="AWS_CONTAINER_CREDENTIALS_FULL_URI",cxt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",lxt="AWS_CONTAINER_AUTHORIZATION_TOKEN",uxt=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[oxt],n=t.awsContainerCredentialsFullUri??process.env[axt],s=t.awsContainerAuthorizationToken??process.env[lxt],o=t.awsContainerAuthorizationTokenFile??process.env[cxt],a=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsFullUri will take precedence.")),s&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationToken will take precedence.")),n)e=n;else if(r)e=`${ixt}${r}`;else throw new nve.CredentialsProviderError(`No HTTP credential provider host provided. +Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let c=new URL(e);(0,nxt.checkUrl)(c,t.logger);let l=txt.NodeHttpHandler.create({requestTimeout:t.timeout??1e3,connectionTimeout:t.timeout??1e3});return(0,sxt.retryWrapper)(async()=>{let u=(0,sve.createGetRequest)(c);s?u.headers.Authorization=s:o&&(u.headers.Authorization=(await rxt.default.readFile(o)).toString());try{let d=await l.handle(u);return(0,sve.getCredentials)(d.response).then(p=>(0,ext.setCredentialFeature)(p,"CREDENTIALS_HTTP","z"))}catch(d){throw new nve.CredentialsProviderError(String(d),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3)},"fromHttp");qQ.fromHttp=uxt});var Gj=b(ive=>{"use strict";var dxt=ove();ive.fromHttp=dxt.fromHttp});function pxt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function mxt(t){return{schemeId:"smithy.api#noAuth"}}var ave,cve,lve,Hj=I(()=>{en();Ce();ave=i(async(t,e,r)=>({operation:Ar(e).operation,region:await Ut(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(pxt,"createAwsAuthSigv4HttpAuthOption");i(mxt,"createSmithyApiNoAuthHttpAuthOption");cve=i(t=>{let e=[];return t.operation==="CreateToken"?e.push(mxt(t)):e.push(pxt(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),lve=i(t=>{let e=Il(t);return Object.assign(e,{authSchemePreference:Ut(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var uve,dve,zj=I(()=>{uve=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),dve={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var mp,pw=I(()=>{mp={name:"@aws-sdk/nested-clients",version:"3.997.11",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=20.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.13","@aws-sdk/signature-v4-multi-region":"^3.996.28","@aws-sdk/types":"^3.973.9","@smithy/core":"^3.24.3","@smithy/fetch-http-handler":"^5.4.3","@smithy/node-http-handler":"^4.7.3","@smithy/types":"^4.14.2",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}}}});function fp(t){return typeof Buffer<"u"?Buffer.alloc(t):new Uint8Array(t)}function $Q(t){return t[Vj]=!0,t}var Vj,GQ=I(()=>{i(fp,"alloc");Vj=Symbol("@smithy/core/cbor::tagSymbol");i($Q,"tag")});function mve(t){Ot=t,Du=new DataView(Ot.buffer,Ot.byteOffset,Ot.byteLength)}function xl(t,e){if(t>=e)throw new Error("unexpected end of (decode) payload.");let r=(Ot[t]&224)>>5,n=Ot[t]&31;switch(r){case 0:case 1:case 6:let s,o;if(n<24)s=n,o=1;else switch(n){case 24:case 25:case 26:case 27:let a=Ave[n],c=a+1;if(o=c,e-t>7,n=(t&124)>>2,s=(t&3)<<8|e,o=r===0?1:-1,a,c;if(n===0){if(s===0)return 0;a=Math.pow(2,-14),c=0}else{if(n===31)return s===0?o*(1/0):NaN;a=Math.pow(2,n-15),c=1}return c+=s/1024,o*(a*c)}function hw(t,e){let r=Ot[t]&31;if(r<24)return dt=1,r;if(r===24||r===25||r===26||r===27){let n=Ave[r];if(dt=n+1,e-t>5,o=Ot[t]&31;if(s!==3)throw new Error(`unexpected major type ${s} in indefinite string.`);if(o===31)throw new Error("nested indefinite string.");let a=Zj(t,e);t+=dt;for(let l=0;l>5,o=Ot[t]&31;if(s!==2)throw new Error(`unexpected major type ${s} in indefinite string.`);if(o===31)throw new Error("nested indefinite string.");let a=Zj(t,e);t+=dt;for(let l=0;l=e)throw new Error("unexpected end of map payload.");let c=(Ot[t]&224)>>5;if(c!==3)throw new Error(`unexpected major type ${c} for map key at index ${t}.`);let l=xl(t,e);t+=dt;let u=xl(t,e);t+=dt,o[l]=u}return dt=n+(t-s),o}function Bxt(t,e){t+=1;let r=t,n={};for(;t=e)throw new Error("unexpected end of map payload.");if(Ot[t]===255)return dt=t-r+2,n;let s=(Ot[t]&224)>>5;if(s!==3)throw new Error(`unexpected major type ${s} for map key.`);let o=xl(t,e);t+=dt;let a=xl(t,e);t+=dt,n[o]=a}throw new Error("expected break marker.")}function Rxt(t,e){let r=Ot[t]&31;switch(r){case 21:case 20:return dt=1,r===21;case 22:return dt=1,null;case 23:return dt=1,null;case 25:if(e-t<3)throw new Error("incomplete float16 at end of buf.");return dt=3,Ext(Ot[t+1],Ot[t+2]);case 26:if(e-t<5)throw new Error("incomplete float32 at end of buf.");return dt=5,Du.getFloat32(t+1);case 27:if(e-t<9)throw new Error("incomplete float64 at end of buf.");return dt=9,Du.getFloat64(t+1);default:throw new Error(`unexpected minor value ${r}.`)}}function Yj(t){if(typeof t=="number")return t;let e=Number(t);return Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:t}var hxt,gxt,Ot,Du,pve,dt,Ave,hve=I(()=>{st();GQ();hxt=typeof TextDecoder<"u",gxt=typeof Buffer<"u",Ot=fp(0),Du=new DataView(Ot.buffer,Ot.byteOffset,Ot.byteLength),pve=hxt?new TextDecoder:null,dt=0;i(mve,"setPayload");i(xl,"decode");i(fve,"bytesToUtf8");i(yxt,"demote");Ave={24:1,25:2,26:4,27:8};i(Ext,"bytesToFloat16");i(hw,"decodeCount");i(Cxt,"decodeUtf8String");i(Ixt,"decodeUtf8StringIndefinite");i(Zj,"decodeUnstructuredByteString");i(xxt,"decodeUnstructuredByteStringIndefinite");i(wxt,"decodeList");i(bxt,"decodeListIndefinite");i(Sxt,"decodeMap");i(Bxt,"decodeMapIndefinite");i(Rxt,"decodeSpecial");i(Yj,"castBigInt")});function tJ(t){We.byteLength-Be=0,s=n?0:1,o=n?r:-r-1;o<24?We[Be++]=s<<5|o:o<256?(We[Be++]=s<<5|24,We[Be++]=o):o<65536?(We[Be++]=s<<5|25,We[Be++]=o>>8,We[Be++]=o):o<4294967296?(We[Be++]=s<<5|26,Ou.setUint32(Be,o),Be+=4):(We[Be++]=s<<5|27,Ou.setBigUint64(Be,BigInt(o)),Be+=8);continue}We[Be++]=251,Ou.setFloat64(Be,r),Be+=8;continue}else if(typeof r=="bigint"){let n=r>=0,s=n?0:1,o=n?r:-r-BigInt(1),a=Number(o);if(a<24)We[Be++]=s<<5|a;else if(a<256)We[Be++]=s<<5|24,We[Be++]=a;else if(a<65536)We[Be++]=s<<5|25,We[Be++]=a>>8,We[Be++]=a&255;else if(a<4294967296)We[Be++]=s<<5|26,Ou.setUint32(Be,a),Be+=4;else if(o=0;)l[l.byteLength-d]=Number(u&BigInt(255)),u>>=BigInt(8);tJ(l.byteLength*2),We[Be++]=n?194:195,gve?Lu(2,Buffer.byteLength(l)):Lu(2,l.byteLength),We.set(l,Be),Be+=l.byteLength}continue}else if(r===null){We[Be++]=246;continue}else if(typeof r=="boolean"){We[Be++]=224|(r?21:20);continue}else{if(typeof r>"u")throw new Error("@smithy/core/cbor: client may not serialize undefined value.");if(Array.isArray(r)){for(let n=r.length-1;n>=0;--n)e.push(r[n]);Lu(4,r.length);continue}else if(typeof r.byteLength=="number"){tJ(r.length*2),Lu(2,r.length),We.set(r,Be),Be+=r.byteLength;continue}else if(typeof r=="object"){if(r instanceof qt){let s=r.string.indexOf("."),o=s===-1?0:s-r.string.length+1,a=BigInt(r.string.replace(".",""));We[Be++]=196,e.push(a),e.push(o),Lu(4,2);continue}if(r[Vj])if("tag"in r&&"value"in r){e.push(r.value),Lu(6,r.tag);continue}else throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(r));let n=Object.keys(r);for(let s=n.length-1;s>=0;--s){let o=n[s];e.push(r[o]),e.push(o)}Lu(5,n.length);continue}}throw new Error(`data type ${r?.constructor?.name??typeof r} not compatible for encoding.`)}}var gve,Nxt,We,Ou,Be,Eve=I(()=>{st();GQ();gve=typeof Buffer<"u",Nxt=2048,We=fp(Nxt),Ou=new DataView(We.buffer,We.byteOffset,We.byteLength),Be=0;i(tJ,"ensureSpace");i(rJ,"toUint8Array");i(zQ,"resize");i(Lu,"encodeHeader");i(yve,"encode")});var nJ,Cve=I(()=>{hve();Eve();nJ={deserialize(t){return mve(t),xl(0,t.length)},serialize(t){try{return yve(t),rJ()}catch(e){throw rJ(),e}},resizeEncodingBuffer(t){zQ(t)}}});var VQ,YQ,WQ=I(()=>{GQ();VQ=i(t=>$Q({tag:1,value:t.getTime()/1e3}),"dateToTag"),YQ=i((t,e)=>{let r=i(s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},"sanitizeErrorCode");if(e.__type!==void 0)return r(e.__type);let n;for(let s in e)if(s.toLowerCase()==="code"){n=s;break}if(n&&e[n]!==void 0)return r(e[n])},"loadSmithyRpcV2CborErrorCode")});var jQ,sJ,oJ,iJ=I(()=>{De();Ct();st();Cve();WQ();jQ=class extends _s{static{i(this,"CborCodec")}createSerializer(){let e=new sJ;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new oJ;return e.setSerdeContext(this.serdeContext),e}},sJ=class extends _s{static{i(this,"CborShapeSerializer")}value;write(e,r){this.value=this.serialize(e,r)}serialize(e,r){let n=Ee.of(e);if(r==null)return n.isIdempotencyToken()?Ra():r;if(n.isBlobSchema())return typeof r=="string"?(this.serdeContext?.base64Decoder??Gr)(r):r;if(n.isTimestampSchema())return typeof r=="number"||typeof r=="bigint"?VQ(new Date(Number(r)/1e3|0)):VQ(r);if(typeof r=="function"||typeof r=="object"){let s=r;if(n.isListSchema()&&Array.isArray(s)){let a=!!n.getMergedTraits().sparse,c=[],l=0;for(let u of s){let d=this.serialize(n.getValueSchema(),u);(d!=null||a)&&(c[l++]=d)}return c}if(s instanceof Date)return VQ(s);let o={};if(n.isMapSchema()){let a=!!n.getMergedTraits().sparse;for(let c in s){let l=this.serialize(n.getValueSchema(),s[c]);(l!=null||a)&&(o[c]=l)}}else if(n.isStructSchema()){for(let[c,l]of n.structIterator()){let u=this.serialize(l,s[c]);u!=null&&(o[c]=u)}if(n.isUnionSchema()&&Array.isArray(s.$unknown)){let[c,l]=s.$unknown;o[c]=l}else if(typeof s.__type=="string")for(let c in s)c in o||(o[c]=this.serialize(15,s[c]))}else if(n.isDocumentSchema())for(let a in s)o[a]=this.serialize(n.getValueSchema(),s[a]);else if(n.isBigDecimalSchema())return s;return o}return r}flush(){let e=nJ.serialize(this.value);return this.value=void 0,e}},oJ=class extends _s{static{i(this,"CborShapeDeserializer")}read(e,r){let n=nJ.deserialize(r);return this.readValue(e,n)}readValue(e,r){let n=Ee.of(e);if(n.isTimestampSchema()){if(typeof r=="number")return pf(r);if(typeof r=="object"&&r.tag===1&&"value"in r)return pf(r.value)}if(n.isBlobSchema())return typeof r=="string"?(this.serdeContext?.base64Decoder??Gr)(r):r;if(typeof r>"u"||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="bigint"||typeof r=="symbol")return r;if(typeof r=="object"){if(r===null)return null;if("byteLength"in r||r instanceof Date||n.isDocumentSchema())return r;if(n.isListSchema()){let o=[],a=n.getValueSchema();for(let c of r){let l=this.readValue(a,c);o.push(l)}return o}let s={};if(n.isMapSchema()){let o=n.getValueSchema();for(let a in r){let c=this.readValue(o,r[a]);s[a]=c}}else if(n.isStructSchema()){let o=n.isUnionSchema(),a;if(o){a=new Set;for(let c in r)c!=="__type"&&a.add(c)}for(let[c,l]of n.structIterator())o&&a.delete(c),r[c]!=null&&(s[c]=this.readValue(l,r[c]));if(o&&a?.size===1){let c=!0;for(let l in s){c=!1;break}if(c){let l=a.values().next().value;s.$unknown=[l,r[l]]}}else if(typeof r.__type=="string")for(let c in r)c in s||(s[c]=r[c])}else if(r instanceof qt)return r;return s}else return r}}});var JQ,Ive=I(()=>{Ce();De();Ct();iJ();WQ();JQ=class extends Bu{static{i(this,"SmithyRpcV2CborProtocol")}codec=new jQ;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);if(Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),xa(e.input)==="unit")delete s.body,delete s.headers["content-type"];else{s.body||(this.serializer.write(15,{}),s.body=this.serializer.flush());try{s.headers["content-length"]=String(s.body.byteLength)}catch{}}let{service:o,operation:a}=Ar(n),c=`/service/${o}/operation/${a}`;return s.path.endsWith("/")?s.path+=c.slice(1):s.path+=c,s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=YQ(n,s)??"Unknown",c={$metadata:o,$fault:n.statusCode<=500?"client":"server"},l=this.options.defaultNamespace;a.includes("#")&&([l]=a.split("#"));let u=this.compositeErrorRegistry,d=yr.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let S=yr.for("smithy.ts.sdk.synthetic."+l);u.copyFrom(S);let P=u.getBaseException();if(P){let Q=u.getErrorCtor(P);throw Object.assign(new Q({name:a}),c,s)}throw Object.assign(new Error(a),c,s)}let m=Ee.of(p),f=u.getErrorCtor(p),g=s.message??s.Message??"Unknown",E=new f({}),x={};for(let[w,S]of m.structIterator())x[w]=this.deserializer.readValue(S,s[w]);throw Object.assign(E,c,{$fault:m.getMergedTraits().error,message:g},x)}getDefaultContentType(){return"application/cbor"}}});var xve=I(()=>{WQ();Ive();iJ()});var Hi,by=I(()=>{Ce();Ct();Hi=class{static{i(this,"ProtocolLib")}queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){let n=r.getMemberSchemas(),s=Object.values(n).find(o=>!!o.getMergedTraits().httpPayload);if(s){let o=s.getMergedTraits().mediaType;return o||(s.isStringSchema()?"text/plain":s.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(a=>{let{httpQuery:c,httpQueryParams:l,httpHeader:u,httpLabel:d,httpPrefixHeaders:p}=a.getMergedTraits();return!c&&!l&&!u&&!d&&p===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,s,o,a){let c=e;e.includes("#")&&([,c]=e.split("#"));let l={$metadata:o,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:a?.(this.errorRegistry,c)??this.errorRegistry.getSchema(e),errorMetadata:l}}catch{s.message=s.message??s.Message??"UnknownError";let d=this.errorRegistry,p=d.getBaseException();if(p){let g=d.getErrorCtor(p)??Error;throw this.decorateServiceException(Object.assign(new g({name:c}),l),s)}let m=s,f=m?.message??m?.Message??m?.Error?.Message??m?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(f),{name:c},l),s)}}compose(e,r,n){let s=n;r.includes("#")&&([s]=r.split("#"));let o=yr.for(s),a=yr.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(o),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,r={}){if(this.queryCompat){let n=e.Message??r.Message,s=Rf(e,r);n&&(s.message=n);let o=s.Error??{};o.Type=s.Error?.Type,o.Code=s.Error?.Code,o.Message=s.Error?.message??s.Error?.Message??n,s.Error=o;let a=s.$metadata.requestId;return a&&(s.RequestId=a),s}return Rf(e,r)}setQueryCompatError(e,r){let n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[s,o]=n.split(";"),a=Object.keys(e),c={Code:s,Type:o};e.Code=s,e.Type=o;for(let l=0;lEe.of(s).getMergedTraits().awsQueryError?.[0]===r)}}}});var aJ,wve=I(()=>{xve();Ct();by();aJ=class extends JQ{static{i(this,"AwsSmithyRpcV2CborProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new Hi(this.awsQueryCompatible)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),s}async handleError(e,r,n,s,o){this.awsQueryCompatible&&this.mixin.setQueryCompatError(s,n);let a=(()=>{let g=n.headers["x-amzn-query-error"];return g&&this.awsQueryCompatible?g.split(";")[0]:YQ(n,s)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=Ee.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,m=new p({}),f={};for(let[g,E]of u.structIterator())s[g]!=null&&(f[g]=this.deserializer.readValue(E,s[g]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(s,f),this.mixin.decorateServiceException(Object.assign(m,l,{$fault:u.getMergedTraits().error,message:d},f),s)}}});var Txt,Pxt,vxt,bve=I(()=>{Txt=i(t=>{if(t==null)return t;if(typeof t=="number"||typeof t=="bigint"){let e=new Error(`Received number ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}if(typeof t=="boolean"){let e=new Error(`Received boolean ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}return t},"_toStr"),Pxt=i(t=>{if(t==null)return t;if(typeof t=="string"){let e=t.toLowerCase();if(t!==""&&e!=="false"&&e!=="true"){let r=new Error(`Received string "${t}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return t!==""&&e!=="false"}return t},"_toBool"),vxt=i(t=>{if(t==null)return t;if(typeof t=="string"){let e=Number(t);if(e.toString()!==t){let r=new Error(`Received string "${t}" where a number was expected.`);return r.name="Warning",console.warn(r),t}return e}return t},"_toNum")});var os,yp=I(()=>{os=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var Sy,cJ=I(()=>{Sy=class{static{i(this,"UnionSerde")}from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function Sve(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number"&&(e>Number.MAX_SAFE_INTEGER||e{st();i(Sve,"jsonReviver")});var KQ,lJ=I(()=>{De();st();KQ=i((t,e)=>lo(t,e).then(r=>(e?.utf8Encoder??gr)(r)),"collectBodyString")});var XQ,_xt,Rve,uJ,dJ,pJ,Nve,gw=I(()=>{lJ();XQ=i((t,e)=>KQ(t,e).then(r=>{if(r.length)try{return JSON.parse(r)}catch(n){throw n?.name==="SyntaxError"&&Object.defineProperty(n,"$responseBodyText",{value:r}),n}return{}}),"parseJsonBody"),_xt=i(async(t,e)=>{let r=await XQ(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),Rve=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),uJ=i(t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},"sanitizeErrorCode"),dJ=i((t,e)=>Nve(t,e,["header","code","type"]),"loadRestJsonErrorCode"),pJ=i((t,e,r=!1)=>Nve(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),Nve=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=Rve(t??{},"x-amzn-errortype");if(s!==void 0)return uJ(t[s]);break;case"code":let o=Rve(e??{},"code");if(o&&e[o]!==void 0)return uJ(e[o]);break;case"type":if(e?.__type!==void 0)return uJ(e.__type);break}},"loadErrorCode")});var yw,mJ=I(()=>{De();Ct();st();st();yp();cJ();Bve();gw();yw=class extends os{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){return this._read(e,typeof r=="string"?JSON.parse(r,Sve):await XQ(r,this.serdeContext))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=Ee.of(e);if(n){if(s.isStructSchema()){let a=r,c=s.isUnionSchema(),l={},u,{jsonName:d}=this.settings;d&&(u={});let p;c&&(p=new Sy(a,l));for(let[m,f]of s.structIterator()){let g=m;d&&(g=f.getMergedTraits().jsonName??g,u[g]=m),c&&p.mark(g),a[g]!=null&&(l[m]=this._read(f,a[g]))}if(c)p.writeUnknown();else if(typeof a.__type=="string")for(let m in a){let f=a[m],g=d?u[m]??m:m;g in l||(l[g]=f)}return l}if(Array.isArray(r)&&s.isListSchema()){let a=s.getValueSchema(),c=[];for(let l of r)c.push(this._read(a,l));return c}if(s.isMapSchema()){let a=s.getValueSchema(),c={};for(let l in r)c[l]=this._read(a,r[l]);return c}}if(s.isBlobSchema()&&typeof r=="string")return Gr(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Zn.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(Ko(s,this.settings)){case 5:return hv(r);case 6:return Gg(r);case 7:return gv(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(s.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(s.isBigDecimalSchema()&&r!=null){if(r instanceof qt)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new qt(a.string,a.type):new qt(String(r),"bigDecimal")}if(s.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(s.isDocumentSchema())if(n){let a=Array.isArray(r)?[]:{};for(let c in r){let l=r[c];l instanceof qt?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var Tve,ZQ,Pve=I(()=>{st();Tve="\u039D",ZQ=class{static{i(this,"JsonReplacer")}values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof qt){let n=`${Tve+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${Tve+"b"+this.counter++}_`+n;return this.values.set(`"${s}"`,n),s}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var Ew,fJ=I(()=>{De();Ct();st();yp();Pve();Ew=class extends os{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=Ee.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new ZQ;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=Ee.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=Ee.of(e);if(s){if(o.isStructSchema()){let a=r,c={},{jsonName:l}=this.settings,u;l&&(u={});let d=0;for(let[p,m]of o.structIterator()){let f=this._write(m,a[p],o);if(f!==void 0){let g=p;l&&(g=m.getMergedTraits().jsonName??p,u[p]=g),c[g]=f,d++}}if(o.isUnionSchema()&&d===0){let{$unknown:p}=a;if(Array.isArray(p)){let[m,f]=p;c[m]=this._write(15,f)}}else if(typeof a.__type=="string")for(let p in a){let m=a[p],f=l?u[p]??p:p;f in c||(c[f]=this._write(15,m))}return c}if(Array.isArray(r)&&o.isListSchema()){let a=o.getValueSchema(),c=[],l=!!o.getMergedTraits().sparse;for(let u of r)(l||u!=null)&&c.push(this._write(a,u));return c}if(o.isMapSchema()){let a=o.getValueSchema(),c={},l=!!o.getMergedTraits().sparse;for(let u in r){let d=r[u];(l||d!=null)&&(c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema()))return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??hr)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(Ko(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return ba(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof qt&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return Ra();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?Zn.from(r):r}if(typeof r=="number"&&o.isNumericSchema())return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??hr)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){let a=Array.isArray(r)?[]:{};for(let c in r){let l=r[c];l instanceof qt?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var Pf,eD=I(()=>{yp();mJ();fJ();Pf=class extends os{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Ew(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new yw(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var vf,tD=I(()=>{De();Ct();by();eD();gw();vf=class extends Bu{static{i(this,"AwsJsonRpcProtocol")}serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r}),this.serviceTarget=n,this.codec=o??new Pf({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new Hi(this.awsQueryCompatible)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);return s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,s.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),(xa(e.input)==="unit"||!s.body)&&(s.body="{}"),s}getPayloadCodec(){return this.codec}async handleError(e,r,n,s,o){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(s,n);let c=pJ(n,s,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,c,this.options.defaultNamespace);let{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,s,o,a?this.mixin.findQueryCompatibleError:void 0),d=Ee.of(l),p=s.message??s.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(l)??Error,f=new m({}),g={},E=this.codec.createDeserializer();for(let[x,w]of d.structIterator())s[x]!=null&&(g[x]=E.readObject(w,s[x]));throw a&&this.mixin.queryCompatOutput(s,g),this.mixin.decorateServiceException(Object.assign(f,u,{$fault:d.getMergedTraits().error,message:p},g),s)}}});var AJ,vve=I(()=>{tD();AJ=class extends vf{static{i(this,"AwsJson1_0Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var hJ,_ve=I(()=>{tD();hJ=class extends vf{static{i(this,"AwsJson1_1Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var Mu,Qve=I(()=>{De();Ct();by();eD();gw();Mu=class extends wf{static{i(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new Hi;constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new Pf(n),this.serializer=new Bf(this.codec.createSerializer(),n),this.deserializer=new Sf(this.codec.createDeserializer(),n)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n),o=Ee.of(e.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return s.body==null&&s.headers["content-type"]===this.getDefaultContentType()&&(s.body="{}"),s}async deserializeResponse(e,r,n){let s=await super.deserializeResponse(e,r,n),o=Ee.of(e.output);for(let[a,c]of o.structIterator())c.getMemberTraits().httpPayload&&!(a in s)&&(s[a]=null);return s}async handleError(e,r,n,s,o){let a=dJ(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o),u=Ee.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,m=new p({});await this.deserializeHttpMessage(c,r,n,s);let f={},g=this.codec.createDeserializer();for(let[E,x]of u.structIterator()){let w=x.getMergedTraits().jsonName??E;f[E]=g.readObject(x,s[w])}throw this.mixin.decorateServiceException(Object.assign(m,l,{$fault:u.getMergedTraits().error,message:d},f),s)}getDefaultContentType(){return"application/json"}}});var Qxt,Dve=I(()=>{st();Qxt=i(t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,pv(t)},"awsExpectUnion")});var Lve=b((VFr,kve)=>{(()=>{"use strict";var t={d:i((C,h)=>{for(var y in h)t.o(h,y)&&!t.o(C,y)&&Object.defineProperty(C,y,{enumerable:!0,get:h[y]})},"d"),o:i((C,h)=>Object.prototype.hasOwnProperty.call(C,h),"o"),r:i(C=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},"r")},e={};t.r(e),t.d(e,{XMLBuilder:i(()=>oFe,"XMLBuilder"),XMLParser:i(()=>JMe,"XMLParser"),XMLValidator:i(()=>iFe,"XMLValidator")});let r=":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",n=new RegExp("^["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(C,h){let y=[],N=h.exec(C);for(;N;){let B=[];B.startIndex=h.lastIndex-N[0].length;let v=N.length;for(let L=0;L"&&C[v]!==" "&&C[v]!==" "&&C[v]!==` `&&C[v]!=="\r";v++)O+=C[v];if(O=O.trim(),O[O.length-1]==="/"&&(O=O.substring(0,O.length-1),v--),!q(O)){let J;return J=O.trim().length===0?"Invalid space after '<'.":"Tag '"+O+"' is an invalid name.",P("InvalidTag",J,M(C,v))}let k=E(C,v);if(k===!1)return P("InvalidAttr","Attributes for '"+O+"' have open quote.",M(C,v));let U=k.value;if(v=k.index,U[U.length-1]==="/"){let J=v-U.length;U=U.substring(0,U.length-1);let Ae=w(U,h);if(Ae!==!0)return P(Ae.err.code,Ae.err.msg,M(C,J+Ae.err.line));N=!0}else if(_){if(!k.tagClosed)return P("InvalidTag","Closing tag '"+O+"' doesn't have proper closing.",M(C,v));if(U.trim().length>0)return P("InvalidTag","Closing tag '"+O+"' can't have attributes or invalid starting.",M(C,L));if(y.length===0)return P("InvalidTag","Closing tag '"+O+"' has not been opened.",M(C,L));{let J=y.pop();if(O!==J.tagName){let Ae=M(C,J.tagStartPos);return P("InvalidTag","Expected closing tag '"+J.tagName+"' (opened in line "+Ae.line+", col "+Ae.col+") instead of closing tag '"+O+"'.",M(C,L))}y.length==0&&(B=!0)}}else{let J=w(U,h);if(J!==!0)return P(J.err.code,J.err.msg,M(C,v-U.length+J.err.line));if(B===!0)return P("InvalidXml","Multiple possible root nodes found.",M(C,v));h.unpairedTags.indexOf(O)!==-1||y.push({tagName:O,tagStartPos:L}),N=!0}for(v++;v0)||P("InvalidXml","Invalid '"+JSON.stringify(y.map(v=>v.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):P("InvalidXml","Start tag expected.",1)}i(u,"l");function d(C){return C===" "||C===" "||C===` -`||C==="\r"}i(d,"u");function p(C,h){let y=h;for(;h5&&N==="xml")return P("InvalidXml","XML declaration allowed only at the start of the document.",M(C,h));if(C[h]=="?"&&C[h+1]==">"){h++;break}continue}return h}i(p,"p");function m(C,h){if(C.length>h+5&&C[h+1]==="-"&&C[h+2]==="-"){for(h+=3;h"){h+=2;break}}else if(C.length>h+8&&C[h+1]==="D"&&C[h+2]==="O"&&C[h+3]==="C"&&C[h+4]==="T"&&C[h+5]==="Y"&&C[h+6]==="P"&&C[h+7]==="E"){let y=1;for(h+=8;h"&&(y--,y===0))break}else if(C.length>h+9&&C[h+1]==="["&&C[h+2]==="C"&&C[h+3]==="D"&&C[h+4]==="A"&&C[h+5]==="T"&&C[h+6]==="A"&&C[h+7]==="["){for(h+=8;h"){h+=2;break}}return h}i(m,"c");let f='"',g="'";function E(C,h){let y="",N="",B=!1;for(;h"&&N===""){B=!0;break}y+=C[h]}return N===""&&{value:y,index:h,tagClosed:B}}i(E,"g");let x=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function w(C,h){let y=s(C,x),N={};for(let B=0;Ba.includes(C)?"__"+C:C,"S"),ke={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:i(function(C,h){return h},"tagValueProcessor"),attributeValueProcessor:i(function(C,h){return h},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:i(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:i(function(C,h,y){return C},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:pe};function Re(C,h){if(typeof C!="string")return;let y=C.toLowerCase();if(a.some(N=>y===N.toLowerCase()))throw new Error(`[SECURITY] Invalid ${h}: "${C}" is a reserved JavaScript keyword that could cause prototype pollution`);if(c.some(N=>y===N.toLowerCase()))throw new Error(`[SECURITY] Invalid ${h}: "${C}" is a reserved JavaScript keyword that could cause prototype pollution`)}i(Re,"A");function se(C,h){return typeof C=="boolean"?{enabled:C,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof C=="object"&&C!==null?{enabled:C.enabled!==!1,maxEntitySize:Math.max(1,C.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,C.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,C.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,C.maxExpandedLength??1e5),maxEntityCount:Math.max(1,C.maxEntityCount??1e3),allowedTags:C.allowedTags??null,tagFilter:C.tagFilter??null,appliesTo:C.appliesTo??"all"}:se(!0)}i(se,"T");let ye=i(function(C){let h=Object.assign({},ke,C),y=[{value:h.attributeNamePrefix,name:"attributeNamePrefix"},{value:h.attributesGroupName,name:"attributesGroupName"},{value:h.textNodeName,name:"textNodeName"},{value:h.cdataPropName,name:"cdataPropName"},{value:h.commentPropName,name:"commentPropName"}];for(let{value:N,name:B}of y)N&&Re(N,B);return h.onDangerousProperty===null&&(h.onDangerousProperty=pe),h.processEntities=se(h.processEntities,h.htmlEntities),h.unpairedTagsSet=new Set(h.unpairedTags),h.stopNodes&&Array.isArray(h.stopNodes)&&(h.stopNodes=h.stopNodes.map(N=>typeof N=="string"&&N.startsWith("*.")?".."+N.substring(2):N)),h},"C"),H;H=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class oe{static{i(this,"O")}constructor(h){this.tagname=h,this.child=[],this[":@"]=Object.create(null)}add(h,y){h==="__proto__"&&(h="#__proto__"),this.child.push({[h]:y})}addChild(h,y){h.tagname==="__proto__"&&(h.tagname="#__proto__"),h[":@"]&&Object.keys(h[":@"]).length>0?this.child.push({[h.tagname]:h.child,":@":h[":@"]}):this.child.push({[h.tagname]:h.child}),y!==void 0&&(this.child[this.child.length-1][H]={startIndex:y})}static getMetaDataSymbol(){return H}}class It{static{i(this,"$")}constructor(h){this.suppressValidationErr=!h,this.options=h}readDocType(h,y){let N=Object.create(null),B=0;if(h[y+3]!=="O"||h[y+4]!=="C"||h[y+5]!=="T"||h[y+6]!=="Y"||h[y+7]!=="P"||h[y+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{y+=9;let v=1,L=!1,_=!1,O="";for(;y"){if(_?h[y-1]==="-"&&h[y-2]==="-"&&(_=!1,v--):v--,v===0)break}else h[y]==="["?L=!0:O+=h[y];else{if(L&&_t(h,"!ENTITY",y)){let k,U;if(y+=7,[k,U,y]=this.readEntityExp(h,y+1,this.suppressValidationErr),U.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&B>=this.options.maxEntityCount)throw new Error(`Entity count (${B+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);N[k]=U,B++}}else if(L&&_t(h,"!ELEMENT",y)){y+=8;let{index:k}=this.readElementExp(h,y+1);y=k}else if(L&&_t(h,"!ATTLIST",y))y+=8;else if(L&&_t(h,"!NOTATION",y)){y+=9;let{index:k}=this.readNotationExp(h,y+1,this.suppressValidationErr);y=k}else{if(!_t(h,"!--",y))throw new Error("Invalid DOCTYPE");_=!0}v++,O=""}if(v!==0)throw new Error("Unclosed DOCTYPE")}return{entities:N,i:y}}readEntityExp(h,y){let N=y=at(h,y);for(;ythis.options.maxEntitySize)throw new Error(`Entity "${B}" size (${v.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[B,v,--y]}readNotationExp(h,y){let N=y=at(h,y);for(;y{for(;h0?h[h.length-1].tag:void 0}getCurrentNamespace(){let h=this._matcher.path;return h.length>0?h[h.length-1].namespace:void 0}getAttrValue(h){let y=this._matcher.path;if(y.length!==0)return y[y.length-1].values?.[h]}hasAttr(h){let y=this._matcher.path;if(y.length===0)return!1;let N=y[y.length-1];return N.values!==void 0&&h in N.values}getPosition(){let h=this._matcher.path;return h.length===0?-1:h[h.length-1].position??0}getCounter(){let h=this._matcher.path;return h.length===0?-1:h[h.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(h,y=!0){return this._matcher.toString(h,y)}toArray(){return this._matcher.path.map(h=>h.tag)}matches(h){return this._matcher.matches(h)}matchesAny(h){return h.matchesAny(this._matcher)}}class jL{static{i(this,"R")}constructor(h={}){this.separator=h.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new pMe(this)}push(h,y=null,N=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let B=this.path.length;this.siblingStacks[B]||(this.siblingStacks[B]=new Map);let v=this.siblingStacks[B],L=N?`${N}:${h}`:h,_=v.get(L)||0,O=0;for(let U of v.values())O+=U;v.set(L,_+1);let k={tag:h,position:O,counter:_};N!=null&&(k.namespace=N),y!=null&&(k.values=y),this.path.push(k)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let h=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),h}updateCurrent(h){if(this.path.length>0){let y=this.path[this.path.length-1];h!=null&&(y.values=h)}}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(h){if(this.path.length!==0)return this.path[this.path.length-1].values?.[h]}hasAttr(h){if(this.path.length===0)return!1;let y=this.path[this.path.length-1];return y.values!==void 0&&h in y.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(h,y=!0){let N=h||this.separator;if(N===this.separator&&y===!0){if(this._pathStringCache!==null)return this._pathStringCache;let B=this.path.map(v=>v.namespace?`${v.namespace}:${v.tag}`:v.tag).join(N);return this._pathStringCache=B,B}return this.path.map(B=>y&&B.namespace?`${B.namespace}:${B.tag}`:B.tag).join(N)}toArray(){return this.path.map(h=>h.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(h){let y=h.segments;return y.length!==0&&(h.hasDeepWildcard()?this._matchWithDeepWildcard(y):this._matchSimple(y))}_matchSimple(h){if(this.path.length!==h.length)return!1;for(let y=0;y=0&&y>=0;){let B=h[N];if(B.type==="deep-wildcard"){if(N--,N<0)return!0;let v=h[N],L=!1;for(let _=y;_>=0;_--)if(this._matchSegment(v,this.path[_],_===this.path.length-1)){y=_-1,N--,L=!0;break}if(!L)return!1}else{if(!this._matchSegment(B,this.path[y],y===this.path.length-1))return!1;y--,N--}}return N<0}_matchSegment(h,y,N){if(h.tag!=="*"&&h.tag!==y.tag||h.namespace!==void 0&&h.namespace!=="*"&&h.namespace!==y.namespace||h.attrName!==void 0&&(!N||!y.values||!(h.attrName in y.values)||h.attrValue!==void 0&&String(y.values[h.attrName])!==String(h.attrValue)))return!1;if(h.position!==void 0){if(!N)return!1;let B=y.counter??0;if(h.position==="first"&&B!==0||h.position==="odd"&&B%2!=1||h.position==="even"&&B%2!=0||h.position==="nth"&&B!==h.positionValue)return!1}return!0}matchesAny(h){return h.matchesAny(this)}snapshot(){return{path:this.path.map(h=>({...h})),siblingStacks:this.siblingStacks.map(h=>new Map(h))}}restore(h){this._pathStringCache=null,this.path=h.path.map(y=>({...y})),this.siblingStacks=h.siblingStacks.map(y=>new Map(y))}readOnly(){return this._view}}class eA{static{i(this,"G")}constructor(h,y={},N){this.pattern=h,this.separator=y.separator||".",this.segments=this._parse(h),this.data=N,this._hasDeepWildcard=this.segments.some(B=>B.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(B=>B.attrName!==void 0),this._hasPositionSelector=this.segments.some(B=>B.position!==void 0)}_parse(h){let y=[],N=0,B="";for(;N",lt:"<",quot:'"'},AMe={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"},hMe=new Set("!?\\\\/[]$%{}^&*()<>|+");function H9(C){if(C[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${C}"`);for(let h of C)if(hMe.has(h))throw new Error(`[EntityReplacer] Invalid character '${h}' in entity name: "${C}"`);return C}i(H9,"z");function JL(...C){let h=Object.create(null);for(let y of C)if(y)for(let N of Object.keys(y)){let B=y[N];if(typeof B=="string")h[N]=B;else if(B&&typeof B=="object"&&B.val!==void 0){let v=B.val;typeof v=="string"&&(h[N]=v)}}return h}i(JL,"q");let Dp="external",R0="base",KL="all",ho=Object.freeze({allow:0,leave:1,remove:2,throw:3}),gMe=new Set([9,10,13]);class yMe{static{i(this,"tt")}constructor(h={}){var y;this._limit=h.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof h.postCheck=="function"?h.postCheck:B=>B,this._limitTiers=(y=this._limit.applyLimitsTo??Dp)&&y!==Dp?y===KL?new Set([KL]):y===R0?new Set([R0]):Array.isArray(y)?new Set(y):new Set([Dp]):new Set([Dp]),this._numericAllowed=h.numericAllowed??!0,this._baseMap=JL(G9,h.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(h.remove&&Array.isArray(h.remove)?h.remove:[]),this._leaveSet=new Set(h.leave&&Array.isArray(h.leave)?h.leave:[]);let N=(function(B){if(!B)return{xmlVersion:1,onLevel:ho.allow,nullLevel:ho.remove};let v=B.xmlVersion===1.1?1.1:1,L=ho[B.onNCR]??ho.allow,_=ho[B.nullNCR]??ho.remove;return{xmlVersion:v,onLevel:L,nullLevel:Math.max(_,ho.remove)}})(h.ncr);this._ncrXmlVersion=N.xmlVersion,this._ncrOnLevel=N.onLevel,this._ncrNullLevel=N.nullLevel}setExternalEntities(h){if(h)for(let y of Object.keys(h))H9(y);this._externalMap=JL(h)}addExternalEntity(h,y){H9(h),typeof y=="string"&&y.indexOf("&")===-1&&(this._externalMap[h]=y)}addInputEntities(h){this._totalExpansions=0,this._expandedLength=0,this._inputMap=JL(h)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(h){this._ncrXmlVersion=h===1.1?1.1:1}decode(h){if(typeof h!="string"||h.length===0)return h;let y=h,N=[],B=h.length,v=0,L=0,_=this._maxTotalExpansions>0,O=this._maxExpandedLength>0,k=_||O;for(;L=B||h.charCodeAt(J)!==59){L++;continue}let Ae=h.slice(L+1,J);if(Ae.length===0){L++;continue}let we,ve;if(this._removeSet.has(Ae))we="",ve===void 0&&(ve=Dp);else{if(this._leaveSet.has(Ae)){L++;continue}if(Ae.charCodeAt(0)===35){let lt=this._resolveNCR(Ae);if(lt===void 0){L++;continue}we=lt,ve=R0}else{let lt=this._resolveName(Ae);we=lt?.value,ve=lt?.tier}}if(we!==void 0){if(L>v&&N.push(h.slice(v,L)),N.push(we),v=J+1,L=v,k&&this._tierCounts(ve)){if(_&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(O){let lt=we.length-(Ae.length+2);if(lt>0&&(this._expandedLength+=lt,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else L++}v=55296&&h<=57343||this._ncrXmlVersion===1&&h>=1&&h<=31&&!gMe.has(h)?ho.remove:-1}_applyNCRAction(h,y,N){switch(h){case ho.allow:return String.fromCodePoint(N);case ho.remove:return"";case ho.leave:return;case ho.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${y}; (U+${N.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(N)}}_resolveNCR(h){let y=h.charCodeAt(1),N;if(N=y===120||y===88?parseInt(h.slice(2),16):parseInt(h.slice(1),10),Number.isNaN(N)||N<0||N>1114111)return;let B=this._classifyNCR(N);if(!this._numericAllowed&&B0){let y=C.substring(0,h);if(y!=="xmlns")return y}}i(CMe,"nt");class IMe{static{i(this,"it")}constructor(h,y){var N;this.options=h,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=BMe,this.parseTextData=xMe,this.resolveNameSpace=wMe,this.buildAttributesMap=SMe,this.isItStopNode=PMe,this.replaceEntitiesValue=NMe,this.readStopNodeData=_Me,this.saveTextToParentTag=TMe,this.addChild=RMe,this.ignoreAttributesFn=typeof(N=this.options.ignoreAttributes)=="function"?N:Array.isArray(N)?L=>{for(let _ of N)if(typeof _=="string"&&L===_||_ instanceof RegExp&&_.test(L))return!0}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let B={...G9};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?B=this.options.htmlEntities:this.options.htmlEntities===!0&&(B={...AMe,...fMe}),this.entityDecoder=new yMe({namedEntities:{...B,...y},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new jL,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new mMe;let v=this.options.stopNodes;if(v&&v.length>0){for(let L=0;L0)){L||(C=this.replaceEntitiesValue(C,h,y));let O=_.jPath?y.toString():y,k=_.tagValueProcessor(h,C,O,B,v);return k==null?C:typeof k!=typeof C||k!==C?k:_.trimValues||C.trim()===C?z9(C,_.parseTagValue,_.numberParseOptions):C}}i(xMe,"st");function wMe(C){if(this.options.removeNSPrefix){let h=C.split(":"),y=C.charAt(0)==="/"?"/":"";if(h[0]==="xmlns")return"";h.length===2&&(C=y+h[1])}return C}i(wMe,"rt");let bMe=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function SMe(C,h,y,N=!1){let B=this.options;if(N===!0||B.ignoreAttributes!==!0&&typeof C=="string"){let v=s(C,bMe),L=v.length,_={},O=new Array(L),k=!1,U={};for(let we=0;we",_,"Closing Tag is not closed."),U=C.substring(_+2,k).trim();if(B.removeNSPrefix){let Ae=U.indexOf(":");Ae!==-1&&(U=U.substr(Ae+1))}U=ZL(B.transformTagName,U,"",B).tagName,y&&(N=this.saveTextToParentTag(N,y,this.readonlyMatcher));let J=this.matcher.getCurrentTag();if(U&&B.unpairedTagsSet.has(U))throw new Error(`Unpaired tag can not be used as closing tag: `);J&&B.unpairedTagsSet.has(J)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,y=this.tagsNodeStack.pop(),N="",_=k}else if(O===63){let k=XL(C,_,!1,"?>");if(!k)throw new Error("Pi Tag is not closed.");N=this.saveTextToParentTag(N,y,this.readonlyMatcher);let U=this.buildAttributesMap(k.tagExp,this.matcher,k.tagName,!0);if(U){let J=U[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(J)||1)}if(!(B.ignoreDeclaration&&k.tagName==="?xml"||B.ignorePiTags)){let J=new oe(k.tagName);J.add(B.textNodeName,""),k.tagName!==k.tagExp&&k.attrExpPresent&&B.ignoreAttributes!==!0&&(J[":@"]=U),this.addChild(y,J,this.readonlyMatcher,_)}_=k.closeIndex+1}else if(O===33&&C.charCodeAt(_+2)===45&&C.charCodeAt(_+3)===45){let k=tA(C,"-->",_+4,"Comment is not closed.");if(B.commentPropName){let U=C.substring(_+4,k-2);N=this.saveTextToParentTag(N,y,this.readonlyMatcher),y.add(B.commentPropName,[{[B.textNodeName]:U}])}_=k}else if(O===33&&C.charCodeAt(_+2)===68){let k=v.readDocType(C,_);this.entityDecoder.addInputEntities(k.entities),_=k.i}else if(O===33&&C.charCodeAt(_+2)===91){let k=tA(C,"]]>",_,"CDATA is not closed.")-2,U=C.substring(_+9,k);N=this.saveTextToParentTag(N,y,this.readonlyMatcher);let J=this.parseTextData(U,y.tagname,this.readonlyMatcher,!0,!1,!0,!0);J==null&&(J=""),B.cdataPropName?y.add(B.cdataPropName,[{[B.textNodeName]:U}]):y.add(B.textNodeName,J),_=k+2}else{let k=XL(C,_,B.removeNSPrefix);if(!k){let Pr=C.substring(Math.max(0,_-50),Math.min(L,_+50));throw new Error(`readTagExp returned undefined at position ${_}. Context: "${Pr}"`)}let U=k.tagName,J=k.rawTagName,Ae=k.tagExp,we=k.attrExpPresent,ve=k.closeIndex;if({tagName:U,tagExp:Ae}=ZL(B.transformTagName,U,Ae,B),B.strictReservedNames&&(U===B.commentPropName||U===B.cdataPropName||U===B.textNodeName||U===B.attributesGroupName))throw new Error(`Invalid tag name: ${U}`);y&&N&&y.tagname!=="!xml"&&(N=this.saveTextToParentTag(N,y,this.readonlyMatcher,!1));let lt=y;lt&&B.unpairedTagsSet.has(lt.tagname)&&(y=this.tagsNodeStack.pop(),this.matcher.pop());let zr=!1;Ae.length>0&&Ae.lastIndexOf("/")===Ae.length-1&&(zr=!0,U[U.length-1]==="/"?(U=U.substr(0,U.length-1),Ae=U):Ae=Ae.substr(0,Ae.length-1),we=U!==Ae);let ls,Bn=null,nA={};ls=CMe(J),U!==h.tagname&&this.matcher.push(U,{},ls),U!==Ae&&we&&(Bn=this.buildAttributesMap(Ae,this.matcher,U),Bn&&(nA=EMe(Bn,B))),U!==h.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let us=_;if(this.isCurrentNodeStopNode){let Pr="";if(zr)_=k.closeIndex;else if(B.unpairedTagsSet.has(U))_=k.closeIndex;else{let nO=this.readStopNodeData(C,J,ve+1);if(!nO)throw new Error(`Unexpected end of ${J}`);_=nO.i,Pr=nO.tagContent}let rO=new oe(U);Bn&&(rO[":@"]=Bn),rO.add(B.textNodeName,Pr),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(y,rO,this.readonlyMatcher,us)}else{if(zr){({tagName:U,tagExp:Ae}=ZL(B.transformTagName,U,Ae,B));let Pr=new oe(U);Bn&&(Pr[":@"]=Bn),this.addChild(y,Pr,this.readonlyMatcher,us),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(B.unpairedTagsSet.has(U)){let Pr=new oe(U);Bn&&(Pr[":@"]=Bn),this.addChild(y,Pr,this.readonlyMatcher,us),this.matcher.pop(),this.isCurrentNodeStopNode=!1,_=k.closeIndex;continue}{let Pr=new oe(U);if(this.tagsNodeStack.length>B.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(y),Bn&&(Pr[":@"]=Bn),this.addChild(y,Pr,this.readonlyMatcher,us),y=Pr}}N="",_=ve}}}else N+=C[_];return h.child},"ht");function RMe(C,h,y,N){this.options.captureMetaData||(N=void 0);let B=this.options.jPath?y.toString():y,v=this.options.updateTag(h.tagname,B,h[":@"]);v===!1||(typeof v=="string"&&(h.tagname=v),C.addChild(h,N))}i(RMe,"lt");function NMe(C,h,y){let N=this.options.processEntities;if(!N||!N.enabled)return C;if(N.allowedTags){let B=this.options.jPath?y.toString():y;if(!(Array.isArray(N.allowedTags)?N.allowedTags.includes(h):N.allowedTags(h,B)))return C}if(N.tagFilter){let B=this.options.jPath?y.toString():y;if(!N.tagFilter(h,B))return C}return this.entityDecoder.decode(C)}i(NMe,"ut");function TMe(C,h,y,N){return C&&(N===void 0&&(N=h.child.length===0),(C=this.parseTextData(C,h.tagname,y,!1,!!h[":@"]&&Object.keys(h[":@"]).length!==0,N))!==void 0&&C!==""&&h.add(this.options.textNodeName,C),C=""),C}i(TMe,"pt");function PMe(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}i(PMe,"ct");function tA(C,h,y,N){let B=C.indexOf(h,y);if(B===-1)throw new Error(N);return B+h.length-1}i(tA,"dt");function vMe(C,h,y,N){let B=C.indexOf(h,y);if(B===-1)throw new Error(N);return B}i(vMe,"ft");function XL(C,h,y,N=">"){let B=(function(J,Ae,we=">"){let ve=0,lt=J.length,zr=we.charCodeAt(0),ls=we.length>1?we.charCodeAt(1):-1,Bn="",nA=Ae;for(let us=Ae;us",y,`${h} is not closed`);if(C.substring(y+2,_).trim()===h&&(B--,B===0))return{tagContent:C.substring(N,y),i:_};y=_}else if(L===63)y=tA(C,"?>",y+1,"StopNode is not closed.");else if(L===33&&C.charCodeAt(y+2)===45&&C.charCodeAt(y+3)===45)y=tA(C,"-->",y+3,"StopNode is not closed.");else if(L===33&&C.charCodeAt(y+2)===91)y=tA(C,"]]>",y,"StopNode is not closed.")-2;else{let _=XL(C,y,!1);_&&((_&&_.tagName)===h&&_.tagExp[_.tagExp.length-1]!=="/"&&B++,y=_.closeIndex)}}}i(_Me,"mt");function z9(C,h,y){if(h&&typeof C=="string"){let N=C.trim();return N==="true"||N!=="false"&&(function(B,v={}){if(v=Object.assign({},Nl,v),!B||typeof B!="string")return B;let L=B.trim();if(L.length===0||v.skipLike!==void 0&&v.skipLike.test(L))return B;if(L==="0")return 0;if(v.hex&&cs.test(L))return(function(O){if(parseInt)return parseInt(O,16);if(Number.parseInt)return Number.parseInt(O,16);if(window&&window.parseInt)return window.parseInt(O,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")})(L);if(isFinite(L)){if(L.includes("e")||L.includes("E"))return(function(O,k,U){if(!U.eNotation)return O;let J=k.match($u);if(J){let Ae=J[1]||"",we=J[3].indexOf("e")===-1?"E":"e",ve=J[2],lt=Ae?O[ve.length+1]===we:O[ve.length]===we;return ve.length>1&<?O:(ve.length!==1||!J[3].startsWith(`.${we}`)&&J[3][0]!==we)&&ve.length>0?U.leadingZeros&&!lt?(k=(J[1]||"")+J[3],Number(k)):O:Number(k)}return O})(B,L,v);{let O=Zo.exec(L);if(O){let k=O[1]||"",U=O[2],J=((_=O[3])&&_.indexOf(".")!==-1&&((_=_.replace(/0+$/,""))==="."?_="0":_[0]==="."?_="0"+_:_[_.length-1]==="."&&(_=_.substring(0,_.length-1))),_),Ae=k?B[U.length+1]===".":B[U.length]===".";if(!v.leadingZeros&&(U.length>1||U.length===1&&!Ae))return B;{let we=Number(L),ve=String(we);if(we===0)return we;if(ve.search(/[eE]/)!==-1)return v.eNotation?we:B;if(L.indexOf(".")!==-1)return ve==="0"||ve===J||ve===`${k}${J}`?we:B;let lt=U?J:L;return U?lt===ve||k+lt===ve?we:B:lt===ve||lt===k+ve?we:B}}return B}}var _;return(function(O,k,U){let J=k===1/0;switch(U.infinity.toLowerCase()){case"null":return null;case"infinity":return k;case"string":return J?"Infinity":"-Infinity";default:return O}})(B,Number(L),v)})(C,y)}return C!==void 0?C:""}i(z9,"xt");function ZL(C,h,y,N){if(C){let B=C(h);y===h&&(y=B),h=B}return{tagName:h=V9(h,N),tagExp:y}}i(ZL,"Nt");function V9(C,h){if(c.includes(C))throw new Error(`[SECURITY] Invalid name: "${C}" is a reserved JavaScript keyword that could cause prototype pollution`);return a.includes(C)?h.onDangerousProperty(C):C}i(V9,"bt");let eO=oe.getMetaDataSymbol();function QMe(C,h){if(!C||typeof C!="object")return{};if(!h)return C;let y={};for(let N in C)N.startsWith(h)?y[N.substring(h.length)]=C[N]:y[N]=C[N];return y}i(QMe,"Et");function DMe(C,h,y,N){return Y9(C,h,y,N)}i(DMe,"wt");function Y9(C,h,y,N){let B,v={};for(let L=0;L0&&(v[h.textNodeName]=B):B!==void 0&&(v[h.textNodeName]=B),v}i(Y9,"vt");function kMe(C){let h=Object.keys(C);for(let y=0;y/g,"]]]]>")}i(j9,"Pt");function rA(C){return String(C).replace(/"/g,""").replace(/'/g,"'")}i(rA,"Ot");function FMe(C,h){let y="";h.format&&h.indentBy.length>0&&(y=` -`);let N=[];if(h.stopNodes&&Array.isArray(h.stopNodes))for(let B=0;Bh.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(C)){if(C!=null){let _=C.toString();return _=tO(_,h),_}return""}for(let _=0;_`,L=!1,N.pop();continue}if(k===h.commentPropName){v+=y+``,L=!0,N.pop();continue}if(k[0]==="?"){let lt=Z9(O[":@"],h,J),zr=k==="?xml"?"":y,ls=O[k][0][h.textNodeName];ls=ls.length!==0?" "+ls:"",v+=zr+`<${k}${ls}${lt}?>`,L=!0,N.pop();continue}let Ae=y;Ae!==""&&(Ae+=h.indentBy);let we=y+`<${k}${Z9(O[":@"],h,J)}`,ve;ve=J?K9(O[k],h):J9(O[k],h,Ae,N,B),h.unpairedTags.indexOf(k)!==-1?h.suppressUnpairedNode?v+=we+">":v+=we+"/>":ve&&ve.length!==0||!h.suppressEmptyNode?ve&&ve.endsWith(">")?v+=we+`>${ve}${y}`:(v+=we+">",ve&&y!==""&&(ve.includes("/>")||ve.includes("`):v+=we+"/>",L=!0,N.pop()}return v}i(J9,"It");function UMe(C,h){if(!C||h.ignoreAttributes)return null;let y={},N=!1;for(let B in C)Object.prototype.hasOwnProperty.call(C,B)&&(y[B.startsWith(h.attributeNamePrefix)?B.substr(h.attributeNamePrefix.length):B]=rA(C[B]),N=!0);return N?y:null}i(UMe,"Dt");function K9(C,h){if(!Array.isArray(C))return C!=null?C.toString():"";let y="";for(let N=0;N${_}`:y+=`<${v}${L}/>`}}}return y}i(K9,"Mt");function qMe(C,h){let y="";if(C&&!h.ignoreAttributes)for(let N in C){if(!Object.prototype.hasOwnProperty.call(C,N))continue;let B=C[N];B===!0&&h.suppressBooleanAttributes?y+=` ${N.substr(h.attributeNamePrefix.length)}`:y+=` ${N.substr(h.attributeNamePrefix.length)}="${rA(B)}"`}return y}i(qMe,"jt");function X9(C){let h=Object.keys(C);for(let y=0;y0&&h.processEntities)for(let y=0;y","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};function ei(C){if(this.options=Object.assign({},GMe,C),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(y=>typeof y=="string"&&y.startsWith("*.")?".."+y.substring(2):y)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let y=0;y{for(let N of h)if(typeof N=="string"&&y===N||N instanceof RegExp&&N.test(y))return!0}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=VMe),this.processTextOrObjNode=HMe,this.options.format?(this.indentate=zMe,this.tagEndChar=`> +`||C==="\r"}i(d,"u");function p(C,h){let y=h;for(;h5&&N==="xml")return P("InvalidXml","XML declaration allowed only at the start of the document.",M(C,h));if(C[h]=="?"&&C[h+1]==">"){h++;break}continue}return h}i(p,"p");function m(C,h){if(C.length>h+5&&C[h+1]==="-"&&C[h+2]==="-"){for(h+=3;h"){h+=2;break}}else if(C.length>h+8&&C[h+1]==="D"&&C[h+2]==="O"&&C[h+3]==="C"&&C[h+4]==="T"&&C[h+5]==="Y"&&C[h+6]==="P"&&C[h+7]==="E"){let y=1;for(h+=8;h"&&(y--,y===0))break}else if(C.length>h+9&&C[h+1]==="["&&C[h+2]==="C"&&C[h+3]==="D"&&C[h+4]==="A"&&C[h+5]==="T"&&C[h+6]==="A"&&C[h+7]==="["){for(h+=8;h"){h+=2;break}}return h}i(m,"c");let f='"',g="'";function E(C,h){let y="",N="",B=!1;for(;h"&&N===""){B=!0;break}y+=C[h]}return N===""&&{value:y,index:h,tagClosed:B}}i(E,"g");let x=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function w(C,h){let y=s(C,x),N={};for(let B=0;Ba.includes(C)?"__"+C:C,"S"),Le={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:i(function(C,h){return h},"tagValueProcessor"),attributeValueProcessor:i(function(C,h){return h},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:i(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:i(function(C,h,y){return C},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:pe};function Re(C,h){if(typeof C!="string")return;let y=C.toLowerCase();if(a.some(N=>y===N.toLowerCase()))throw new Error(`[SECURITY] Invalid ${h}: "${C}" is a reserved JavaScript keyword that could cause prototype pollution`);if(c.some(N=>y===N.toLowerCase()))throw new Error(`[SECURITY] Invalid ${h}: "${C}" is a reserved JavaScript keyword that could cause prototype pollution`)}i(Re,"A");function oe(C,h){return typeof C=="boolean"?{enabled:C,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof C=="object"&&C!==null?{enabled:C.enabled!==!1,maxEntitySize:Math.max(1,C.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,C.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,C.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,C.maxExpandedLength??1e5),maxEntityCount:Math.max(1,C.maxEntityCount??1e3),allowedTags:C.allowedTags??null,tagFilter:C.tagFilter??null,appliesTo:C.appliesTo??"all"}:oe(!0)}i(oe,"T");let ye=i(function(C){let h=Object.assign({},Le,C),y=[{value:h.attributeNamePrefix,name:"attributeNamePrefix"},{value:h.attributesGroupName,name:"attributesGroupName"},{value:h.textNodeName,name:"textNodeName"},{value:h.cdataPropName,name:"cdataPropName"},{value:h.commentPropName,name:"commentPropName"}];for(let{value:N,name:B}of y)N&&Re(N,B);return h.onDangerousProperty===null&&(h.onDangerousProperty=pe),h.processEntities=oe(h.processEntities,h.htmlEntities),h.unpairedTagsSet=new Set(h.unpairedTags),h.stopNodes&&Array.isArray(h.stopNodes)&&(h.stopNodes=h.stopNodes.map(N=>typeof N=="string"&&N.startsWith("*.")?".."+N.substring(2):N)),h},"C"),H;H=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class ne{static{i(this,"O")}constructor(h){this.tagname=h,this.child=[],this[":@"]=Object.create(null)}add(h,y){h==="__proto__"&&(h="#__proto__"),this.child.push({[h]:y})}addChild(h,y){h.tagname==="__proto__"&&(h.tagname="#__proto__"),h[":@"]&&Object.keys(h[":@"]).length>0?this.child.push({[h.tagname]:h.child,":@":h[":@"]}):this.child.push({[h.tagname]:h.child}),y!==void 0&&(this.child[this.child.length-1][H]={startIndex:y})}static getMetaDataSymbol(){return H}}class It{static{i(this,"$")}constructor(h){this.suppressValidationErr=!h,this.options=h}readDocType(h,y){let N=Object.create(null),B=0;if(h[y+3]!=="O"||h[y+4]!=="C"||h[y+5]!=="T"||h[y+6]!=="Y"||h[y+7]!=="P"||h[y+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{y+=9;let v=1,L=!1,_=!1,O="";for(;y"){if(_?h[y-1]==="-"&&h[y-2]==="-"&&(_=!1,v--):v--,v===0)break}else h[y]==="["?L=!0:O+=h[y];else{if(L&&_t(h,"!ENTITY",y)){let k,U;if(y+=7,[k,U,y]=this.readEntityExp(h,y+1,this.suppressValidationErr),U.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&B>=this.options.maxEntityCount)throw new Error(`Entity count (${B+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);N[k]=U,B++}}else if(L&&_t(h,"!ELEMENT",y)){y+=8;let{index:k}=this.readElementExp(h,y+1);y=k}else if(L&&_t(h,"!ATTLIST",y))y+=8;else if(L&&_t(h,"!NOTATION",y)){y+=9;let{index:k}=this.readNotationExp(h,y+1,this.suppressValidationErr);y=k}else{if(!_t(h,"!--",y))throw new Error("Invalid DOCTYPE");_=!0}v++,O=""}if(v!==0)throw new Error("Unclosed DOCTYPE")}return{entities:N,i:y}}readEntityExp(h,y){let N=y=at(h,y);for(;ythis.options.maxEntitySize)throw new Error(`Entity "${B}" size (${v.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[B,v,--y]}readNotationExp(h,y){let N=y=at(h,y);for(;y{for(;h0?h[h.length-1].tag:void 0}getCurrentNamespace(){let h=this._matcher.path;return h.length>0?h[h.length-1].namespace:void 0}getAttrValue(h){let y=this._matcher.path;if(y.length!==0)return y[y.length-1].values?.[h]}hasAttr(h){let y=this._matcher.path;if(y.length===0)return!1;let N=y[y.length-1];return N.values!==void 0&&h in N.values}getPosition(){let h=this._matcher.path;return h.length===0?-1:h[h.length-1].position??0}getCounter(){let h=this._matcher.path;return h.length===0?-1:h[h.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(h,y=!0){return this._matcher.toString(h,y)}toArray(){return this._matcher.path.map(h=>h.tag)}matches(h){return this._matcher.matches(h)}matchesAny(h){return h.matchesAny(this._matcher)}}class ZL{static{i(this,"R")}constructor(h={}){this.separator=h.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new bMe(this)}push(h,y=null,N=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let B=this.path.length;this.siblingStacks[B]||(this.siblingStacks[B]=new Map);let v=this.siblingStacks[B],L=N?`${N}:${h}`:h,_=v.get(L)||0,O=0;for(let U of v.values())O+=U;v.set(L,_+1);let k={tag:h,position:O,counter:_};N!=null&&(k.namespace=N),y!=null&&(k.values=y),this.path.push(k)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let h=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),h}updateCurrent(h){if(this.path.length>0){let y=this.path[this.path.length-1];h!=null&&(y.values=h)}}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(h){if(this.path.length!==0)return this.path[this.path.length-1].values?.[h]}hasAttr(h){if(this.path.length===0)return!1;let y=this.path[this.path.length-1];return y.values!==void 0&&h in y.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(h,y=!0){let N=h||this.separator;if(N===this.separator&&y===!0){if(this._pathStringCache!==null)return this._pathStringCache;let B=this.path.map(v=>v.namespace?`${v.namespace}:${v.tag}`:v.tag).join(N);return this._pathStringCache=B,B}return this.path.map(B=>y&&B.namespace?`${B.namespace}:${B.tag}`:B.tag).join(N)}toArray(){return this.path.map(h=>h.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(h){let y=h.segments;return y.length!==0&&(h.hasDeepWildcard()?this._matchWithDeepWildcard(y):this._matchSimple(y))}_matchSimple(h){if(this.path.length!==h.length)return!1;for(let y=0;y=0&&y>=0;){let B=h[N];if(B.type==="deep-wildcard"){if(N--,N<0)return!0;let v=h[N],L=!1;for(let _=y;_>=0;_--)if(this._matchSegment(v,this.path[_],_===this.path.length-1)){y=_-1,N--,L=!0;break}if(!L)return!1}else{if(!this._matchSegment(B,this.path[y],y===this.path.length-1))return!1;y--,N--}}return N<0}_matchSegment(h,y,N){if(h.tag!=="*"&&h.tag!==y.tag||h.namespace!==void 0&&h.namespace!=="*"&&h.namespace!==y.namespace||h.attrName!==void 0&&(!N||!y.values||!(h.attrName in y.values)||h.attrValue!==void 0&&String(y.values[h.attrName])!==String(h.attrValue)))return!1;if(h.position!==void 0){if(!N)return!1;let B=y.counter??0;if(h.position==="first"&&B!==0||h.position==="odd"&&B%2!=1||h.position==="even"&&B%2!=0||h.position==="nth"&&B!==h.positionValue)return!1}return!0}matchesAny(h){return h.matchesAny(this)}snapshot(){return{path:this.path.map(h=>({...h})),siblingStacks:this.siblingStacks.map(h=>new Map(h))}}restore(h){this._pathStringCache=null,this.path=h.path.map(y=>({...y})),this.siblingStacks=h.siblingStacks.map(y=>new Map(y))}readOnly(){return this._view}}class nA{static{i(this,"G")}constructor(h,y={},N){this.pattern=h,this.separator=y.separator||".",this.segments=this._parse(h),this.data=N,this._hasDeepWildcard=this.segments.some(B=>B.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(B=>B.attrName!==void 0),this._hasPositionSelector=this.segments.some(B=>B.position!==void 0)}_parse(h){let y=[],N=0,B="";for(;N",lt:"<",quot:'"'},RMe={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"},NMe=new Set("!?\\\\/[]$%{}^&*()<>|+");function K9(C){if(C[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${C}"`);for(let h of C)if(NMe.has(h))throw new Error(`[EntityReplacer] Invalid character '${h}' in entity name: "${C}"`);return C}i(K9,"z");function eO(...C){let h=Object.create(null);for(let y of C)if(y)for(let N of Object.keys(y)){let B=y[N];if(typeof B=="string")h[N]=B;else if(B&&typeof B=="object"&&B.val!==void 0){let v=B.val;typeof v=="string"&&(h[N]=v)}}return h}i(eO,"q");let Dp="external",v0="base",tO="all",go=Object.freeze({allow:0,leave:1,remove:2,throw:3}),TMe=new Set([9,10,13]);class PMe{static{i(this,"tt")}constructor(h={}){var y;this._limit=h.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof h.postCheck=="function"?h.postCheck:B=>B,this._limitTiers=(y=this._limit.applyLimitsTo??Dp)&&y!==Dp?y===tO?new Set([tO]):y===v0?new Set([v0]):Array.isArray(y)?new Set(y):new Set([Dp]):new Set([Dp]),this._numericAllowed=h.numericAllowed??!0,this._baseMap=eO(J9,h.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(h.remove&&Array.isArray(h.remove)?h.remove:[]),this._leaveSet=new Set(h.leave&&Array.isArray(h.leave)?h.leave:[]);let N=(function(B){if(!B)return{xmlVersion:1,onLevel:go.allow,nullLevel:go.remove};let v=B.xmlVersion===1.1?1.1:1,L=go[B.onNCR]??go.allow,_=go[B.nullNCR]??go.remove;return{xmlVersion:v,onLevel:L,nullLevel:Math.max(_,go.remove)}})(h.ncr);this._ncrXmlVersion=N.xmlVersion,this._ncrOnLevel=N.onLevel,this._ncrNullLevel=N.nullLevel}setExternalEntities(h){if(h)for(let y of Object.keys(h))K9(y);this._externalMap=eO(h)}addExternalEntity(h,y){K9(h),typeof y=="string"&&y.indexOf("&")===-1&&(this._externalMap[h]=y)}addInputEntities(h){this._totalExpansions=0,this._expandedLength=0,this._inputMap=eO(h)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(h){this._ncrXmlVersion=h===1.1?1.1:1}decode(h){if(typeof h!="string"||h.length===0)return h;let y=h,N=[],B=h.length,v=0,L=0,_=this._maxTotalExpansions>0,O=this._maxExpandedLength>0,k=_||O;for(;L=B||h.charCodeAt(J)!==59){L++;continue}let Ae=h.slice(L+1,J);if(Ae.length===0){L++;continue}let we,_e;if(this._removeSet.has(Ae))we="",_e===void 0&&(_e=Dp);else{if(this._leaveSet.has(Ae)){L++;continue}if(Ae.charCodeAt(0)===35){let lt=this._resolveNCR(Ae);if(lt===void 0){L++;continue}we=lt,_e=v0}else{let lt=this._resolveName(Ae);we=lt?.value,_e=lt?.tier}}if(we!==void 0){if(L>v&&N.push(h.slice(v,L)),N.push(we),v=J+1,L=v,k&&this._tierCounts(_e)){if(_&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(O){let lt=we.length-(Ae.length+2);if(lt>0&&(this._expandedLength+=lt,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else L++}v=55296&&h<=57343||this._ncrXmlVersion===1&&h>=1&&h<=31&&!TMe.has(h)?go.remove:-1}_applyNCRAction(h,y,N){switch(h){case go.allow:return String.fromCodePoint(N);case go.remove:return"";case go.leave:return;case go.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${y}; (U+${N.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(N)}}_resolveNCR(h){let y=h.charCodeAt(1),N;if(N=y===120||y===88?parseInt(h.slice(2),16):parseInt(h.slice(1),10),Number.isNaN(N)||N<0||N>1114111)return;let B=this._classifyNCR(N);if(!this._numericAllowed&&B0){let y=C.substring(0,h);if(y!=="xmlns")return y}}i(_Me,"nt");class QMe{static{i(this,"it")}constructor(h,y){var N;this.options=h,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=MMe,this.parseTextData=DMe,this.resolveNameSpace=kMe,this.buildAttributesMap=OMe,this.isItStopNode=$Me,this.replaceEntitiesValue=UMe,this.readStopNodeData=HMe,this.saveTextToParentTag=qMe,this.addChild=FMe,this.ignoreAttributesFn=typeof(N=this.options.ignoreAttributes)=="function"?N:Array.isArray(N)?L=>{for(let _ of N)if(typeof _=="string"&&L===_||_ instanceof RegExp&&_.test(L))return!0}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let B={...J9};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?B=this.options.htmlEntities:this.options.htmlEntities===!0&&(B={...RMe,...BMe}),this.entityDecoder=new PMe({namedEntities:{...B,...y},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new ZL,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new SMe;let v=this.options.stopNodes;if(v&&v.length>0){for(let L=0;L0)){L||(C=this.replaceEntitiesValue(C,h,y));let O=_.jPath?y.toString():y,k=_.tagValueProcessor(h,C,O,B,v);return k==null?C:typeof k!=typeof C||k!==C?k:_.trimValues||C.trim()===C?X9(C,_.parseTagValue,_.numberParseOptions):C}}i(DMe,"st");function kMe(C){if(this.options.removeNSPrefix){let h=C.split(":"),y=C.charAt(0)==="/"?"/":"";if(h[0]==="xmlns")return"";h.length===2&&(C=y+h[1])}return C}i(kMe,"rt");let LMe=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function OMe(C,h,y,N=!1){let B=this.options;if(N===!0||B.ignoreAttributes!==!0&&typeof C=="string"){let v=s(C,LMe),L=v.length,_={},O=new Array(L),k=!1,U={};for(let we=0;we",_,"Closing Tag is not closed."),U=C.substring(_+2,k).trim();if(B.removeNSPrefix){let Ae=U.indexOf(":");Ae!==-1&&(U=U.substr(Ae+1))}U=nO(B.transformTagName,U,"",B).tagName,y&&(N=this.saveTextToParentTag(N,y,this.readonlyMatcher));let J=this.matcher.getCurrentTag();if(U&&B.unpairedTagsSet.has(U))throw new Error(`Unpaired tag can not be used as closing tag: `);J&&B.unpairedTagsSet.has(J)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,y=this.tagsNodeStack.pop(),N="",_=k}else if(O===63){let k=rO(C,_,!1,"?>");if(!k)throw new Error("Pi Tag is not closed.");N=this.saveTextToParentTag(N,y,this.readonlyMatcher);let U=this.buildAttributesMap(k.tagExp,this.matcher,k.tagName,!0);if(U){let J=U[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(J)||1)}if(!(B.ignoreDeclaration&&k.tagName==="?xml"||B.ignorePiTags)){let J=new ne(k.tagName);J.add(B.textNodeName,""),k.tagName!==k.tagExp&&k.attrExpPresent&&B.ignoreAttributes!==!0&&(J[":@"]=U),this.addChild(y,J,this.readonlyMatcher,_)}_=k.closeIndex+1}else if(O===33&&C.charCodeAt(_+2)===45&&C.charCodeAt(_+3)===45){let k=sA(C,"-->",_+4,"Comment is not closed.");if(B.commentPropName){let U=C.substring(_+4,k-2);N=this.saveTextToParentTag(N,y,this.readonlyMatcher),y.add(B.commentPropName,[{[B.textNodeName]:U}])}_=k}else if(O===33&&C.charCodeAt(_+2)===68){let k=v.readDocType(C,_);this.entityDecoder.addInputEntities(k.entities),_=k.i}else if(O===33&&C.charCodeAt(_+2)===91){let k=sA(C,"]]>",_,"CDATA is not closed.")-2,U=C.substring(_+9,k);N=this.saveTextToParentTag(N,y,this.readonlyMatcher);let J=this.parseTextData(U,y.tagname,this.readonlyMatcher,!0,!1,!0,!0);J==null&&(J=""),B.cdataPropName?y.add(B.cdataPropName,[{[B.textNodeName]:U}]):y.add(B.textNodeName,J),_=k+2}else{let k=rO(C,_,B.removeNSPrefix);if(!k){let vr=C.substring(Math.max(0,_-50),Math.min(L,_+50));throw new Error(`readTagExp returned undefined at position ${_}. Context: "${vr}"`)}let U=k.tagName,J=k.rawTagName,Ae=k.tagExp,we=k.attrExpPresent,_e=k.closeIndex;if({tagName:U,tagExp:Ae}=nO(B.transformTagName,U,Ae,B),B.strictReservedNames&&(U===B.commentPropName||U===B.cdataPropName||U===B.textNodeName||U===B.attributesGroupName))throw new Error(`Invalid tag name: ${U}`);y&&N&&y.tagname!=="!xml"&&(N=this.saveTextToParentTag(N,y,this.readonlyMatcher,!1));let lt=y;lt&&B.unpairedTagsSet.has(lt.tagname)&&(y=this.tagsNodeStack.pop(),this.matcher.pop());let Vr=!1;Ae.length>0&&Ae.lastIndexOf("/")===Ae.length-1&&(Vr=!0,U[U.length-1]==="/"?(U=U.substr(0,U.length-1),Ae=U):Ae=Ae.substr(0,Ae.length-1),we=U!==Ae);let ls,Rn=null,iA={};ls=_Me(J),U!==h.tagname&&this.matcher.push(U,{},ls),U!==Ae&&we&&(Rn=this.buildAttributesMap(Ae,this.matcher,U),Rn&&(iA=vMe(Rn,B))),U!==h.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let us=_;if(this.isCurrentNodeStopNode){let vr="";if(Vr)_=k.closeIndex;else if(B.unpairedTagsSet.has(U))_=k.closeIndex;else{let aO=this.readStopNodeData(C,J,_e+1);if(!aO)throw new Error(`Unexpected end of ${J}`);_=aO.i,vr=aO.tagContent}let iO=new ne(U);Rn&&(iO[":@"]=Rn),iO.add(B.textNodeName,vr),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(y,iO,this.readonlyMatcher,us)}else{if(Vr){({tagName:U,tagExp:Ae}=nO(B.transformTagName,U,Ae,B));let vr=new ne(U);Rn&&(vr[":@"]=Rn),this.addChild(y,vr,this.readonlyMatcher,us),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(B.unpairedTagsSet.has(U)){let vr=new ne(U);Rn&&(vr[":@"]=Rn),this.addChild(y,vr,this.readonlyMatcher,us),this.matcher.pop(),this.isCurrentNodeStopNode=!1,_=k.closeIndex;continue}{let vr=new ne(U);if(this.tagsNodeStack.length>B.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(y),Rn&&(vr[":@"]=Rn),this.addChild(y,vr,this.readonlyMatcher,us),y=vr}}N="",_=_e}}}else N+=C[_];return h.child},"ht");function FMe(C,h,y,N){this.options.captureMetaData||(N=void 0);let B=this.options.jPath?y.toString():y,v=this.options.updateTag(h.tagname,B,h[":@"]);v===!1||(typeof v=="string"&&(h.tagname=v),C.addChild(h,N))}i(FMe,"lt");function UMe(C,h,y){let N=this.options.processEntities;if(!N||!N.enabled)return C;if(N.allowedTags){let B=this.options.jPath?y.toString():y;if(!(Array.isArray(N.allowedTags)?N.allowedTags.includes(h):N.allowedTags(h,B)))return C}if(N.tagFilter){let B=this.options.jPath?y.toString():y;if(!N.tagFilter(h,B))return C}return this.entityDecoder.decode(C)}i(UMe,"ut");function qMe(C,h,y,N){return C&&(N===void 0&&(N=h.child.length===0),(C=this.parseTextData(C,h.tagname,y,!1,!!h[":@"]&&Object.keys(h[":@"]).length!==0,N))!==void 0&&C!==""&&h.add(this.options.textNodeName,C),C=""),C}i(qMe,"pt");function $Me(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}i($Me,"ct");function sA(C,h,y,N){let B=C.indexOf(h,y);if(B===-1)throw new Error(N);return B+h.length-1}i(sA,"dt");function GMe(C,h,y,N){let B=C.indexOf(h,y);if(B===-1)throw new Error(N);return B}i(GMe,"ft");function rO(C,h,y,N=">"){let B=(function(J,Ae,we=">"){let _e=0,lt=J.length,Vr=we.charCodeAt(0),ls=we.length>1?we.charCodeAt(1):-1,Rn="",iA=Ae;for(let us=Ae;us",y,`${h} is not closed`);if(C.substring(y+2,_).trim()===h&&(B--,B===0))return{tagContent:C.substring(N,y),i:_};y=_}else if(L===63)y=sA(C,"?>",y+1,"StopNode is not closed.");else if(L===33&&C.charCodeAt(y+2)===45&&C.charCodeAt(y+3)===45)y=sA(C,"-->",y+3,"StopNode is not closed.");else if(L===33&&C.charCodeAt(y+2)===91)y=sA(C,"]]>",y,"StopNode is not closed.")-2;else{let _=rO(C,y,!1);_&&((_&&_.tagName)===h&&_.tagExp[_.tagExp.length-1]!=="/"&&B++,y=_.closeIndex)}}}i(HMe,"mt");function X9(C,h,y){if(h&&typeof C=="string"){let N=C.trim();return N==="true"||N!=="false"&&(function(B,v={}){if(v=Object.assign({},Nl,v),!B||typeof B!="string")return B;let L=B.trim();if(L.length===0||v.skipLike!==void 0&&v.skipLike.test(L))return B;if(L==="0")return 0;if(v.hex&&cs.test(L))return(function(O){if(parseInt)return parseInt(O,16);if(Number.parseInt)return Number.parseInt(O,16);if(window&&window.parseInt)return window.parseInt(O,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")})(L);if(isFinite(L)){if(L.includes("e")||L.includes("E"))return(function(O,k,U){if(!U.eNotation)return O;let J=k.match(Gu);if(J){let Ae=J[1]||"",we=J[3].indexOf("e")===-1?"E":"e",_e=J[2],lt=Ae?O[_e.length+1]===we:O[_e.length]===we;return _e.length>1&<?O:(_e.length!==1||!J[3].startsWith(`.${we}`)&&J[3][0]!==we)&&_e.length>0?U.leadingZeros&&!lt?(k=(J[1]||"")+J[3],Number(k)):O:Number(k)}return O})(B,L,v);{let O=ti.exec(L);if(O){let k=O[1]||"",U=O[2],J=((_=O[3])&&_.indexOf(".")!==-1&&((_=_.replace(/0+$/,""))==="."?_="0":_[0]==="."?_="0"+_:_[_.length-1]==="."&&(_=_.substring(0,_.length-1))),_),Ae=k?B[U.length+1]===".":B[U.length]===".";if(!v.leadingZeros&&(U.length>1||U.length===1&&!Ae))return B;{let we=Number(L),_e=String(we);if(we===0)return we;if(_e.search(/[eE]/)!==-1)return v.eNotation?we:B;if(L.indexOf(".")!==-1)return _e==="0"||_e===J||_e===`${k}${J}`?we:B;let lt=U?J:L;return U?lt===_e||k+lt===_e?we:B:lt===_e||lt===k+_e?we:B}}return B}}var _;return(function(O,k,U){let J=k===1/0;switch(U.infinity.toLowerCase()){case"null":return null;case"infinity":return k;case"string":return J?"Infinity":"-Infinity";default:return O}})(B,Number(L),v)})(C,y)}return C!==void 0?C:""}i(X9,"xt");function nO(C,h,y,N){if(C){let B=C(h);y===h&&(y=B),h=B}return{tagName:h=Z9(h,N),tagExp:y}}i(nO,"Nt");function Z9(C,h){if(c.includes(C))throw new Error(`[SECURITY] Invalid name: "${C}" is a reserved JavaScript keyword that could cause prototype pollution`);return a.includes(C)?h.onDangerousProperty(C):C}i(Z9,"bt");let sO=ne.getMetaDataSymbol();function zMe(C,h){if(!C||typeof C!="object")return{};if(!h)return C;let y={};for(let N in C)N.startsWith(h)?y[N.substring(h.length)]=C[N]:y[N]=C[N];return y}i(zMe,"Et");function VMe(C,h,y,N){return eK(C,h,y,N)}i(VMe,"wt");function eK(C,h,y,N){let B,v={};for(let L=0;L0&&(v[h.textNodeName]=B):B!==void 0&&(v[h.textNodeName]=B),v}i(eK,"vt");function YMe(C){let h=Object.keys(C);for(let y=0;y/g,"]]]]>")}i(rK,"Pt");function oA(C){return String(C).replace(/"/g,""").replace(/'/g,"'")}i(oA,"Ot");function KMe(C,h){let y="";h.format&&h.indentBy.length>0&&(y=` +`);let N=[];if(h.stopNodes&&Array.isArray(h.stopNodes))for(let B=0;Bh.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(C)){if(C!=null){let _=C.toString();return _=oO(_,h),_}return""}for(let _=0;_`,L=!1,N.pop();continue}if(k===h.commentPropName){v+=y+``,L=!0,N.pop();continue}if(k[0]==="?"){let lt=iK(O[":@"],h,J),Vr=k==="?xml"?"":y,ls=O[k][0][h.textNodeName];ls=ls.length!==0?" "+ls:"",v+=Vr+`<${k}${ls}${lt}?>`,L=!0,N.pop();continue}let Ae=y;Ae!==""&&(Ae+=h.indentBy);let we=y+`<${k}${iK(O[":@"],h,J)}`,_e;_e=J?sK(O[k],h):nK(O[k],h,Ae,N,B),h.unpairedTags.indexOf(k)!==-1?h.suppressUnpairedNode?v+=we+">":v+=we+"/>":_e&&_e.length!==0||!h.suppressEmptyNode?_e&&_e.endsWith(">")?v+=we+`>${_e}${y}`:(v+=we+">",_e&&y!==""&&(_e.includes("/>")||_e.includes("`):v+=we+"/>",L=!0,N.pop()}return v}i(nK,"It");function XMe(C,h){if(!C||h.ignoreAttributes)return null;let y={},N=!1;for(let B in C)Object.prototype.hasOwnProperty.call(C,B)&&(y[B.startsWith(h.attributeNamePrefix)?B.substr(h.attributeNamePrefix.length):B]=oA(C[B]),N=!0);return N?y:null}i(XMe,"Dt");function sK(C,h){if(!Array.isArray(C))return C!=null?C.toString():"";let y="";for(let N=0;N${_}`:y+=`<${v}${L}/>`}}}return y}i(sK,"Mt");function ZMe(C,h){let y="";if(C&&!h.ignoreAttributes)for(let N in C){if(!Object.prototype.hasOwnProperty.call(C,N))continue;let B=C[N];B===!0&&h.suppressBooleanAttributes?y+=` ${N.substr(h.attributeNamePrefix.length)}`:y+=` ${N.substr(h.attributeNamePrefix.length)}="${oA(B)}"`}return y}i(ZMe,"jt");function oK(C){let h=Object.keys(C);for(let y=0;y0&&h.processEntities)for(let y=0;y","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};function ri(C){if(this.options=Object.assign({},tFe,C),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(y=>typeof y=="string"&&y.startsWith("*.")?".."+y.substring(2):y)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let y=0;y{for(let N of h)if(typeof N=="string"&&y===N||N instanceof RegExp&&N.test(y))return!0}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=sFe),this.processTextOrObjNode=rFe,this.options.format?(this.indentate=nFe,this.tagEndChar=`> `,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(ei,"Gt");function HMe(C,h,y,N){let B=this.extractAttributes(C);if(N.push(h,B),this.checkStopNode(N)){let L=this.buildRawContent(C),_=this.buildAttributesForStopNode(C);return N.pop(),this.buildObjectNode(L,h,_,y)}let v=this.j2x(C,y+1,N);return N.pop(),C[this.options.textNodeName]!==void 0&&Object.keys(C).length===1?this.buildTextValNode(C[this.options.textNodeName],h,v.attrStr,y,N):this.buildObjectNode(v.val,h,v.attrStr,y)}i(HMe,"Bt");function zMe(C){return this.options.indentBy.repeat(C)}i(zMe,"Ut");function VMe(C){return!(!C.startsWith(this.options.attributeNamePrefix)||C===this.options.textNodeName)&&C.substr(this.attrPrefixLen)}i(VMe,"Wt"),ei.prototype.build=function(C){if(this.options.preserveOrder)return FMe(C,this.options);{Array.isArray(C)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(C={[this.options.arrayNodeName]:C});let h=new jL;return this.j2x(C,0,h).val}},ei.prototype.j2x=function(C,h,y){let N="",B="";if(this.options.maxNestedTags&&y.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let v=this.options.jPath?y.toString():y,L=this.checkStopNode(y);for(let _ in C)if(Object.prototype.hasOwnProperty.call(C,_))if(C[_]===void 0)this.isAttribute(_)&&(B+="");else if(C[_]===null)this.isAttribute(_)||_===this.options.cdataPropName||_===this.options.commentPropName?B+="":_[0]==="?"?B+=this.indentate(h)+"<"+_+"?"+this.tagEndChar:B+=this.indentate(h)+"<"+_+"/"+this.tagEndChar;else if(C[_]instanceof Date)B+=this.buildTextValNode(C[_],_,"",h,y);else if(typeof C[_]!="object"){let O=this.isAttribute(_);if(O&&!this.ignoreAttributesFn(O,v))N+=this.buildAttrPairStr(O,""+C[_],L);else if(!O)if(_===this.options.textNodeName){let k=this.options.tagValueProcessor(_,""+C[_]);B+=this.replaceEntitiesValue(k)}else{y.push(_);let k=this.checkStopNode(y);if(y.pop(),k){let U=""+C[_];B+=U===""?this.indentate(h)+"<"+_+this.closeTag(_)+this.tagEndChar:this.indentate(h)+"<"+_+">"+U+""+ve+"${B}`;else if(typeof B=="object"&&B!==null){let v=this.buildRawContent(B),L=this.buildAttributesForStopNode(B);h+=v===""?`<${y}${L}/>`:`<${y}${L}>${v}`}}else if(typeof N=="object"&&N!==null){let B=this.buildRawContent(N),v=this.buildAttributesForStopNode(N);h+=B===""?`<${y}${v}/>`:`<${y}${v}>${B}`}else h+=`<${y}>${N}`}return h},ei.prototype.buildAttributesForStopNode=function(C){if(!C||typeof C!="object")return"";let h="";if(this.options.attributesGroupName&&C[this.options.attributesGroupName]){let y=C[this.options.attributesGroupName];for(let N in y){if(!Object.prototype.hasOwnProperty.call(y,N))continue;let B=N.startsWith(this.options.attributeNamePrefix)?N.substring(this.options.attributeNamePrefix.length):N,v=y[N];v===!0&&this.options.suppressBooleanAttributes?h+=" "+B:h+=" "+B+'="'+v+'"'}}else for(let y in C){if(!Object.prototype.hasOwnProperty.call(C,y))continue;let N=this.isAttribute(y);if(N){let B=C[y];B===!0&&this.options.suppressBooleanAttributes?h+=" "+N:h+=" "+N+'="'+B+'"'}}return h},ei.prototype.buildObjectNode=function(C,h,y,N){if(C==="")return h[0]==="?"?this.indentate(N)+"<"+h+y+"?"+this.tagEndChar:this.indentate(N)+"<"+h+y+this.closeTag(h)+this.tagEndChar;{let B="`+this.newLine:this.indentate(N)+"<"+h+y+v+this.tagEndChar+C+this.indentate(N)+B:this.indentate(N)+"<"+h+y+v+">"+C+B}},ei.prototype.closeTag=function(C){let h="";return this.options.unpairedTags.indexOf(C)!==-1?this.options.suppressUnpairedNode||(h="/"):h=this.options.suppressEmptyNode?"/":`>`+this.newLine}if(this.options.commentPropName!==!1&&h===this.options.commentPropName){let v=W9(C);return this.indentate(N)+``+this.newLine}if(h[0]==="?")return this.indentate(N)+"<"+h+y+"?"+this.tagEndChar;{let v=this.options.tagValueProcessor(h,C);return v=this.replaceEntitiesValue(v),v===""?this.indentate(N)+"<"+h+y+this.closeTag(h)+this.tagEndChar:this.indentate(N)+"<"+h+y+">"+v+"0&&this.options.processEntities)for(let h=0;h{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.EntityDecoderImpl=Qa.CURRENCY=Qa.COMMON_HTML=Qa.XML=void 0;Qa.XML={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Qa.COMMON_HTML={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"};Qa.CURRENCY={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Rxt=new Set("!?\\/[]$%{}^&*()<>|+");function Sve(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Rxt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}i(Sve,"validateEntityName");function uJ(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let o=s.val;typeof o=="string"&&(e[n]=o)}}return e}i(uJ,"mergeEntityMaps");var Tf="external",XQ="base",dJ="all";function Nxt(t){return!t||t===Tf?new Set([Tf]):t===dJ?new Set([dJ]):t===XQ?new Set([XQ]):Array.isArray(t)?new Set(t):new Set([Tf])}i(Nxt,"parseLimitTiers");var uo=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Txt=new Set([9,10,13]);function Pxt(t){if(!t)return{xmlVersion:1,onLevel:uo.allow,nullLevel:uo.remove};let e=t.xmlVersion===1.1?1.1:1,r=uo[t.onNCR??"allow"]??uo.allow,n=uo[t.nullNCR??"remove"]??uo.remove,s=Math.max(n,uo.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}i(Pxt,"parseNCRConfig");var vxt=class{static{i(this,"EntityDecoderImpl")}_limit;_maxTotalExpansions;_maxExpandedLength;_postCheck;_limitTiers;_numericAllowed;_baseMap;_externalMap;_inputMap;_totalExpansions;_expandedLength;_removeSet;_leaveSet;_ncrXmlVersion;_ncrOnLevel;_ncrNullLevel;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=Nxt(this._limit.applyLimitsTo??Tf),this._numericAllowed=e.numericAllowed??!0,this._baseMap=uJ(Qa.XML,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=Pxt(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))Sve(r);this._externalMap=uJ(e)}addExternalEntity(e,r){Sve(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=uJ(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e==="1.1"||e===1.1?1.1:1}decode(e){if(typeof e!="string"||e.length===0)return e;let r=e,n=[],s=e.length,o=0,a=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;a=s||e.charCodeAt(p)!==59){a++;continue}let m=e.slice(a+1,p);if(m.length===0){a++;continue}let f,g;if(this._removeSet.has(m))f="",g===void 0&&(g=Tf);else if(this._leaveSet.has(m)){a++;continue}else if(m.charCodeAt(0)===35){let E=this._resolveNCR(m);if(E===void 0){a++;continue}f=E,g=XQ}else{let E=this._resolveName(m);f=E?.value,g=E?.tier}if(f===void 0){a++;continue}if(a>o&&n.push(e.slice(o,a)),n.push(f),o=p+1,a=o,u&&this._tierCounts(g)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let E=f.length-(m.length+2);if(E>0&&(this._expandedLength+=E,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}o=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!Txt.has(e)?uo.remove:-1}_applyNCRAction(e,r,n){switch(e){case uo.allow:return String.fromCodePoint(n);case uo.remove:return"";case uo.leave:return;case uo.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 s=this._classifyNCR(n);if(!this._numericAllowed&&s{"use strict";Object.defineProperty(pJ,"__esModule",{value:!0});pJ.parseXML=Dxt;var _xt=bve(),ZQ=Bve(),eD=new ZQ.EntityDecoderImpl({namedEntities:{...ZQ.XML,...ZQ.COMMON_HTML,...ZQ.CURRENCY},numericAllowed:!0,limit:{maxTotalExpansions:1/0},ncr:{xmlVersion:1.1}}),Qxt=new _xt.XMLParser({attributeNamePrefix:"",processEntities:{enabled:!0,maxTotalExpansions:1/0},htmlEntities:!0,entityDecoder:{setExternalEntities:i(t=>{eD.setExternalEntities(t)},"setExternalEntities"),addInputEntities:i(t=>{eD.addInputEntities(t)},"addInputEntities"),reset:i(()=>{eD.reset()},"reset"),decode:i(t=>eD.decode(t),"decode"),setXmlVersion:i(t=>{},"setXmlVersion")},ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:i((t,e)=>e.trim()===""&&e.includes(` -`)?"":void 0,"tagValueProcessor"),maxNestedTags:1/0});function Dxt(t){return Qxt.parse(t,!0)}i(Dxt,"parseXML")});var nD=b(rD=>{"use strict";var kxt=Rve(),Lxt=/[&<>"]/g,Oxt={"&":"&","<":"<",">":">",'"':"""};function Mxt(t){return t.replace(Lxt,e=>Oxt[e])}i(Mxt,"escapeAttribute");var Fxt=/[&"'<>\r\n\u0085\u2028]/g,Uxt={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","\x85":"…","\u2028":"
"};function qxt(t){return t.replace(Fxt,e=>Uxt[e])}i(qxt,"escapeElement");var tD=class{static{i(this,"XmlText")}value;constructor(e){this.value=e}toString(){return qxt(""+this.value)}},mJ=class t{static{i(this,"XmlNode")}name;children;attributes={};static of(e,r,n){let s=new t(e);return r!==void 0&&s.addChildNode(new tD(r)),n!==void 0&&s.withName(n),s}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let s=t.of(r,e[r]).withName(n);this.c(s)}}l(e,r,n,s){e[r]!=null&&s().map(a=>{a.withName(n),this.c(a)})}lc(e,r,n,s){if(e[r]!=null){let o=s(),a=new t(n);o.map(c=>{a.c(c)}),this.c(a)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let s of Object.keys(n)){let o=n[s];o!=null&&(r+=` ${s}="${Mxt(""+o)}"`)}return r+=e?`>${this.children.map(s=>s.toString()).join("")}`:"/>"}};rD.parseXML=kxt.parseXML;rD.XmlNode=mJ;rD.XmlText=tD});var Nve,Pf,sD=I(()=>{Nve=D(nD());Ce();Qe();Ct();st();yp();tJ();Pf=class extends os{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new If(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=Ee.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(u=>!!u.getMemberTraits().eventPayload)){let u={},d=Object.keys(o)[0];return o[d].isBlobSchema()?u[d]=r:u[d]=this.read(o[d],r),u}let c=(this.serdeContext?.utf8Encoder??hr)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=Ee.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[u];if(d==null)return l;let p=Array.isArray(d)?d:[d];for(let m of p)l.push(this.readSchema(c,m));return l}let a={};if(n.isMapSchema()){let c=n.getKeySchema(),l=n.getValueSchema(),u;o?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let d=c.getMergedTraits().xmlName??"key",p=l.getMergedTraits().xmlName??"value";for(let m of u){let f=m[d],g=m[p];a[f]=this.readSchema(l,g)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new xy(r,a));for(let[u,d]of n.structIterator()){let p=d.getMergedTraits(),m=p.httpPayload?p.xmlName??d.getName():d.getMemberTraits().xmlName??u;c&&l.mark(m),r[m]!=null&&(a[u]=this.readSchema(d,r[m]))}return c&&l.writeUnknown(),a}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,Nve.parseXML)(e)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:e}),a}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),Sf(o)}return{}}}});var hw,fJ=I(()=>{Qe();Ct();st();st();yp();hw=class extends os{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=Ee.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Ar)(r)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):s.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(Ba()));else if(s.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(s.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof qt?r.string:String(r)));else if(s.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),jo(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(wa(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(s.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(s.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let o=s.getValueSchema(),a=this.settings.flattenLists||s.getMergedTraits().xmlFlattened,c=1;for(let l of r){if(l==null)continue;let u=o.getMergedTraits(),d=this.getKey("member",u.xmlName,u.ec2QueryName),p=a?`${n}${c}`:`${n}${d}.${c}`;this.write(o,l,p),++c}}}else if(s.isMapSchema()){if(r&&typeof r=="object"){let o=s.getKeySchema(),a=s.getValueSchema(),c=s.getMergedTraits().xmlFlattened,l=1;for(let u in r){let d=r[u];if(d==null)continue;let p=o.getMergedTraits(),m=this.getKey("key",p.xmlName,p.ec2QueryName),f=c?`${n}${l}.${m}`:`${n}entry.${l}.${m}`,g=a.getMergedTraits(),E=this.getKey("value",g.xmlName,g.ec2QueryName),x=c?`${n}${l}.${E}`:`${n}entry.${l}.${E}`;this.write(o,u,f),this.write(a,d,x),++l}}}else if(s.isStructSchema()){if(r&&typeof r=="object"){let o=!1;for(let[a,c]of s.structIterator()){if(r[a]==null&&!c.isIdempotencyToken())continue;let l=c.getMergedTraits(),u=this.getKey(a,l.xmlName,l.ec2QueryName,"struct"),d=`${n}${u}`;this.write(c,r[a],d),o=!0}if(!o&&s.isUnionSchema()){let{$unknown:a}=r;if(Array.isArray(a)){let[c,l]=a,u=`${n}${c}`;this.write(15,l,u)}}}}else if(!s.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${s.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,r,n,s){let{ec2:o,capitalizeKeys:a}=this.settings;if(o&&n)return n;let c=r??e;return a&&s==="struct"?c[0].toUpperCase()+c.slice(1):c}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${Jc(e)}=`}writeValue(e){this.buffer+=Jc(e)}}});var vf,AJ=I(()=>{Qe();Ct();Iy();sD();fJ();vf=class extends Su{static{i(this,"AwsQueryProtocol")}options;serializer;deserializer;mixin=new Gi;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new hw(r),this.deserializer=new Pf(r)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]="application/x-www-form-urlencoded",(Ia(e.input)==="unit"||!s.body)&&(s.body="");let o=e.name.split("#")[1]??e.name;return s.body=`Action=${o}&Version=${this.options.version}`+s.body,s.body.endsWith("&")&&(s.body=s.body.slice(-1)),s}async deserializeResponse(e,r,n){let s=this.deserializer,o=Ee.of(e.output),a={};if(n.statusCode>=300){let d=await co(n.body,r);d.byteLength>0&&Object.assign(a,await s.read(15,d)),await this.handleError(e,r,n,a,this.deserializeMetadata(n))}for(let d in n.headers){let p=n.headers[d];delete n.headers[d],n.headers[d.toLowerCase()]=p}let c=e.name.split("#")[1]??e.name,l=o.isStructSchema()&&this.useNestedResult()?c+"Result":void 0,u=await co(n.body,r);return u.byteLength>0&&Object.assign(a,await s.read(o,u,l)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,r,n,s,o){let a=this.loadQueryErrorCode(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let c=this.loadQueryError(s)??{},l=this.loadQueryErrorMessage(s);c.message=l,c.Error={Type:c.Type,Code:c.Code,Message:l};let{errorSchema:u,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,c,o,this.mixin.findQueryCompatibleError),p=Ee.of(u),m=this.compositeErrorRegistry.getErrorCtor(u)??Error,f=new m({}),g={Type:c.Error.Type,Code:c.Error.Code,Error:c.Error};for(let[E,x]of p.structIterator()){let w=x.getMergedTraits().xmlName??E,S=c[w]??s[w];g[E]=this.deserializer.readSchema(x,S)}throw this.mixin.decorateServiceException(Object.assign(f,d,{$fault:p.getMergedTraits().error,message:l},g),s)}loadQueryErrorCode(e,r){let n=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let r=this.loadQueryError(e);return r?.message??r?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var hJ,Tve=I(()=>{AJ();hJ=class extends vf{static{i(this,"AwsEc2QueryProtocol")}options;constructor(e){super(e),this.options=e;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var Pve=I(()=>{});var vve,_ve,$xt,gJ,yJ=I(()=>{vve=D(nD());Ce();rJ();_ve=i((t,e)=>YQ(t,e).then(r=>{if(r.length){let n;try{n=(0,vve.parseXML)(r)}catch(c){throw c&&typeof c=="object"&&Object.defineProperty(c,"$responseBodyText",{value:r}),c}let s="#text",o=Object.keys(n)[0],a=n[o];return a[s]&&(a[o]=a[s],delete a[s]),Sf(a)}return{}}),"parseXmlBody"),$xt=i(async(t,e)=>{let r=await _ve(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},"parseXmlErrorBody"),gJ=i((t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var ks,gw,EJ=I(()=>{ks=D(nD());Qe();Ct();st();st();yp();gw=class extends os{static{i(this,"XmlShapeSerializer")}settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=Ee.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??$r)(r);else{this.buffer=this.writeStruct(n,r,void 0);let s=n.getMergedTraits();s.httpPayload&&!s.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,r,n){let s=e.getMergedTraits(),o=e.isMemberSchema()&&!s.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():s.xmlName??e.getName();if(!o||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=ks.XmlNode.of(o),[c,l]=this.getXmlnsAttribute(e,n);for(let[d,p]of e.structIterator()){let m=r[d];if(m!=null||p.isIdempotencyToken()){if(p.getMergedTraits().xmlAttribute){a.addAttribute(p.getMergedTraits().xmlName??d,this.writeSimple(p,m));continue}if(p.isListSchema())this.writeList(p,m,a,l);else if(p.isMapSchema())this.writeMap(p,m,a,l);else if(p.isStructSchema())a.addChildNode(this.writeStruct(p,m,l));else{let f=ks.XmlNode.of(p.getMergedTraits().xmlName??p.getMemberName());this.writeSimpleInto(p,m,f,l),a.addChildNode(f)}}}let{$unknown:u}=r;if(u&&e.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){let[d,p]=u,m=ks.XmlNode.of(d);if(typeof p!="string")if(r instanceof ks.XmlNode||r instanceof ks.XmlText)a.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,p,m,l),a.addChildNode(m)}return l&&a.addAttribute(c,l),a}writeList(e,r,n,s){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let o=e.getMergedTraits(),a=e.getValueSchema(),c=a.getMergedTraits(),l=!!c.sparse,u=!!o.xmlFlattened,[d,p]=this.getXmlnsAttribute(e,s),m=i((f,g)=>{if(a.isListSchema())this.writeList(a,Array.isArray(g)?g:[g],f,p);else if(a.isMapSchema())this.writeMap(a,g,f,p);else if(a.isStructSchema()){let E=this.writeStruct(a,g,p);f.addChildNode(E.withName(u?o.xmlName??e.getMemberName():c.xmlName??"member"))}else{let E=ks.XmlNode.of(u?o.xmlName??e.getMemberName():c.xmlName??"member");this.writeSimpleInto(a,g,E,p),f.addChildNode(E)}},"writeItem");if(u)for(let f of r)(l||f!=null)&&m(n,f);else{let f=ks.XmlNode.of(o.xmlName??e.getMemberName());p&&f.addAttribute(d,p);for(let g of r)(l||g!=null)&&m(f,g);n.addChildNode(f)}}writeMap(e,r,n,s,o=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),c=e.getKeySchema(),u=c.getMergedTraits().xmlName??"key",d=e.getValueSchema(),p=d.getMergedTraits(),m=p.xmlName??"value",f=!!p.sparse,g=!!a.xmlFlattened,[E,x]=this.getXmlnsAttribute(e,s),w=i((S,P,Q)=>{let q=ks.XmlNode.of(u,P),[M,V]=this.getXmlnsAttribute(c,x);V&&q.addAttribute(M,V),S.addChildNode(q);let pe=ks.XmlNode.of(m);d.isListSchema()?this.writeList(d,Q,pe,x):d.isMapSchema()?this.writeMap(d,Q,pe,x,!0):d.isStructSchema()?pe=this.writeStruct(d,Q,x):this.writeSimpleInto(d,Q,pe,x),S.addChildNode(pe)},"addKeyValue");if(g)for(let S in r){let P=r[S];if(f||P!=null){let Q=ks.XmlNode.of(a.xmlName??e.getMemberName());w(Q,S,P),n.addChildNode(Q)}}else{let S;o||(S=ks.XmlNode.of(a.xmlName??e.getMemberName()),x&&S.addAttribute(E,x),n.addChildNode(S));for(let P in r){let Q=r[P];if(f||Q!=null){let q=ks.XmlNode.of("entry");w(q,P,Q),(o?n:S).addChildNode(q)}}}}writeSimple(e,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=Ee.of(e),s=null;if(r&&typeof r=="object")if(n.isBlobSchema())s=(this.serdeContext?.base64Encoder??Ar)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(jo(n,this.settings)){case 5:s=r.toISOString().replace(".000Z","Z");break;case 6:s=wa(r);break;case 7:s=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),s=wa(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof qt?r.string:String(r);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(s=String(r)),n.isStringSchema()&&(r===void 0&&n.isIdempotencyToken()?s=Ba():s=String(r)),s===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${r}`);return s}writeSimpleInto(e,r,n,s){let o=this.writeSimple(e,r),a=Ee.of(e),c=new ks.XmlText(o),[l,u]=this.getXmlnsAttribute(a,s);u&&n.addAttribute(l,u),n.addChildNode(c)}getXmlnsAttribute(e,r){let n=e.getMergedTraits(),[s,o]=n.xmlNamespace??[];return o&&o!==r?[s?`xmlns:${s}`:"xmlns",o]:[void 0,void 0]}}});var yw,CJ=I(()=>{yp();sD();EJ();yw=class extends os{static{i(this,"XmlCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new gw(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Pf(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var IJ,Qve=I(()=>{Qe();Ct();Iy();yJ();CJ();IJ=class extends Cf{static{i(this,"AwsRestXmlProtocol")}codec;serializer;deserializer;mixin=new Gi;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new yw(r),this.serializer=new wf(this.codec.createSerializer(),r),this.deserializer=new xf(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n),o=Ee.of(e.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return typeof s.body=="string"&&s.headers["content-type"]===this.getDefaultContentType()&&!s.body.startsWith("'+s.body),s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=gJ(n,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let E of Object.keys(s.Error))s[E]=s.Error[E],E.toLowerCase()==="message"&&(s.message=s.Error[E]);s.RequestId&&!o.requestId&&(o.requestId=s.RequestId);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o),u=Ee.of(c),d=s.Error?.message??s.Error?.Message??s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,m=new p({});await this.deserializeHttpMessage(c,r,n,s);let f={},g=this.codec.createDeserializer();for(let[E,x]of u.structIterator()){let w=x.getMergedTraits().xmlName??E,S=s.Error?.[w]??s[w];f[E]=g.readSchema(x,S)}throw this.mixin.decorateServiceException(Object.assign(m,l,{$fault:u.getMergedTraits().error,message:d},f),s)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,r]of e.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var xJ={};en(xJ,{AwsEc2QueryProtocol:()=>hJ,AwsJson1_0Protocol:()=>cJ,AwsJson1_1Protocol:()=>lJ,AwsJsonRpcProtocol:()=>Nf,AwsQueryProtocol:()=>vf,AwsRestJsonProtocol:()=>Ou,AwsRestXmlProtocol:()=>IJ,AwsSmithyRpcV2CborProtocol:()=>eJ,JsonCodec:()=>Rf,JsonShapeDeserializer:()=>fw,JsonShapeSerializer:()=>Aw,QueryShapeSerializer:()=>hw,XmlCodec:()=>yw,XmlShapeDeserializer:()=>Pf,XmlShapeSerializer:()=>gw,_toBool:()=>wxt,_toNum:()=>bxt,_toStr:()=>xxt,awsExpectUnion:()=>Bxt,loadJsonRpcErrorCode:()=>oJ,loadRestJsonErrorCode:()=>sJ,loadRestXmlErrorCode:()=>gJ,parseJsonBody:()=>WQ,parseJsonErrorBody:()=>Sxt,parseXmlBody:()=>_ve,parseXmlErrorBody:()=>$xt});var _f=I(()=>{dve();pve();Eve();Cve();KQ();Ive();JQ();iJ();aJ();xve();mw();Tve();AJ();Pve();fJ();Qve();CJ();sD();EJ();yJ()});var Ew,Qf,oD,Dve,Mve,iD,wJ,kve,bJ,wy,Lve,Ove,Gxt,po,Hxt,Fve,Uve=I(()=>{xt();Ew="ref",Qf=-1,oD=!0,Dve="isSet",Mve="PartitionResult",iD="booleanEquals",wJ="getAttr",kve={[Ew]:"Endpoint"},bJ={[Ew]:Mve},wy={},Lve=[{[Ew]:"Region"}],Ove={conditions:[[Dve,[kve]],[Dve,Lve],["aws.partition",Lve,Mve],[iD,[{[Ew]:"UseFIPS"},oD]],[iD,[{[Ew]:"UseDualStack"},oD]],[iD,[{fn:wJ,argv:[bJ,"supportsDualStack"]},oD]],[iD,[{fn:wJ,argv:[bJ,"supportsFIPS"]},oD]],["stringEquals",[{fn:wJ,argv:[bJ,"name"]},"aws-us-gov"]]],results:[[Qf],[Qf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[kve,wy],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",wy],[Qf,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",wy],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",wy],[Qf,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",wy],[Qf,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",wy],[Qf,"Invalid Configuration: Missing Region"]]},Gxt=2,po=1e8,Hxt=new Int32Array([-1,1,-1,0,13,3,1,4,po+12,2,5,po+12,3,8,6,4,7,po+11,5,po+9,po+10,4,11,9,6,10,po+8,7,po+6,po+7,5,12,po+5,6,po+4,po+5,3,po+1,14,4,po+2,po+3]),Fve=ki.from(Hxt,Gxt,Ove.conditions,Ove.results)});var zxt,qve,$ve=I(()=>{wt();xt();Uve();zxt=new Li({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),qve=i((t,e={})=>zxt.get(t,()=>jc(Fve,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ao.aws=_a});var wn,aD=I(()=>{Ce();wn=class t extends Fi{static{i(this,"SSOOIDCServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Cw,Iw,xw,ww,bw,Sw,Bw,Rw,Nw,Tw,Pw,SJ=I(()=>{aD();Cw=class t extends wn{static{i(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Iw=class t extends wn{static{i(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},xw=class t extends wn{static{i(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},ww=class t extends wn{static{i(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},bw=class t extends wn{static{i(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Sw=class t extends wn{static{i(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Bw=class t extends wn{static{i(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Rw=class t extends wn{static{i(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Nw=class t extends wn{static{i(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Tw=class t extends wn{static{i(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Pw=class t extends wn{static{i(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}}});var Vxt,Yxt,Wxt,jxt,Jxt,Kxt,Xxt,Zxt,ewt,twt,rwt,nwt,swt,owt,iwt,awt,cwt,lwt,uwt,dwt,wl,pwt,mwt,fwt,Awt,hwt,Tr,gwt,Da,ywt,Ewt,ka,Cwt,Gve,Hve,Iwt,zve,xwt,wwt,bwt,Zr,Vve,Yve,Hi,Wve,jve,Jve,Kve,Xve,Zve,e_e,t_e,r_e,n_e,s_e,BJ,Swt,Bwt,Rwt,Nwt,o_e,i_e,a_e,RJ,cD=I(()=>{Ct();SJ();aD();Vxt="AccessDeniedException",Yxt="AuthorizationPendingException",Wxt="AccessToken",jxt="ClientSecret",Jxt="CreateToken",Kxt="CreateTokenRequest",Xxt="CreateTokenResponse",Zxt="CodeVerifier",ewt="ExpiredTokenException",twt="InvalidClientException",rwt="InvalidGrantException",nwt="InvalidRequestException",swt="InternalServerException",owt="InvalidScopeException",iwt="IdToken",awt="RefreshToken",cwt="SlowDownException",lwt="UnauthorizedClientException",uwt="UnsupportedGrantTypeException",dwt="accessToken",wl="client",pwt="clientId",mwt="clientSecret",fwt="codeVerifier",Awt="code",hwt="deviceCode",Tr="error",gwt="expiresIn",Da="error_description",ywt="grantType",Ewt="http",ka="httpError",Cwt="idToken",Gve="reason",Hve="refreshToken",Iwt="redirectUri",zve="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",xwt="scope",wwt="server",bwt="tokenType",Zr="com.amazonaws.ssooidc",Vve=gr.for(zve),Yve=[-3,zve,"SSOOIDCServiceException",0,[],[]];Vve.registerError(Yve,wn);Hi=gr.for(Zr),Wve=[-3,Zr,Vxt,{[Tr]:wl,[ka]:400},[Tr,Gve,Da],[0,0,0]];Hi.registerError(Wve,Cw);jve=[-3,Zr,Yxt,{[Tr]:wl,[ka]:400},[Tr,Da],[0,0]];Hi.registerError(jve,Iw);Jve=[-3,Zr,ewt,{[Tr]:wl,[ka]:400},[Tr,Da],[0,0]];Hi.registerError(Jve,xw);Kve=[-3,Zr,swt,{[Tr]:wwt,[ka]:500},[Tr,Da],[0,0]];Hi.registerError(Kve,ww);Xve=[-3,Zr,twt,{[Tr]:wl,[ka]:401},[Tr,Da],[0,0]];Hi.registerError(Xve,bw);Zve=[-3,Zr,rwt,{[Tr]:wl,[ka]:400},[Tr,Da],[0,0]];Hi.registerError(Zve,Sw);e_e=[-3,Zr,nwt,{[Tr]:wl,[ka]:400},[Tr,Gve,Da],[0,0,0]];Hi.registerError(e_e,Bw);t_e=[-3,Zr,owt,{[Tr]:wl,[ka]:400},[Tr,Da],[0,0]];Hi.registerError(t_e,Rw);r_e=[-3,Zr,cwt,{[Tr]:wl,[ka]:400},[Tr,Da],[0,0]];Hi.registerError(r_e,Nw);n_e=[-3,Zr,lwt,{[Tr]:wl,[ka]:400},[Tr,Da],[0,0]];Hi.registerError(n_e,Tw);s_e=[-3,Zr,uwt,{[Tr]:wl,[ka]:400},[Tr,Da],[0,0]];Hi.registerError(s_e,Pw);BJ=[Vve,Hi],Swt=[0,Zr,Wxt,8,0],Bwt=[0,Zr,jxt,8,0],Rwt=[0,Zr,Zxt,8,0],Nwt=[0,Zr,iwt,8,0],o_e=[0,Zr,awt,8,0],i_e=[3,Zr,Kxt,0,[pwt,mwt,ywt,hwt,Awt,Hve,xwt,Iwt,fwt],[0,[()=>Bwt,0],0,0,0,[()=>o_e,0],64,0,[()=>Rwt,0]],3],a_e=[3,Zr,Xxt,0,[dwt,bwt,gwt,Hve,Cwt],[[()=>Swt,0],0,1,[()=>o_e,0],[()=>Nwt,0]]],RJ=[9,Zr,Jxt,{[Ewt]:["POST","/token",200]},()=>i_e,()=>a_e]});var c_e,l_e=I(()=>{Xr();_f();Qs();Ce();Qe();st();Oj();$ve();cD();c_e=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??$r,base64Encoder:t?.base64Encoder??Ar,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??qve,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??JPe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new On},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Jo}],logger:t?.logger??new lo,protocol:t?.protocol??Ou,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:BJ,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",urlParser:t?.urlParser??rs,utf8Decoder:t?.utf8Decoder??Gr,utf8Encoder:t?.utf8Encoder??hr}),"getRuntimeConfig")});var lD,u_e,d_e=I(()=>{cw();wt();Xr();Ce();Tt();_s();st();lD=D(vu());l_e();u_e=i(t=>{ol(process.version);let e=Wc(t),r=i(()=>e().then(sl),"defaultConfigProvider"),n=c_e(t);qc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??nt(Pu,s),bodyLengthChecker:t?.bodyLengthChecker??Gc,defaultUserAgentProvider:t?.defaultUserAgentProvider??va({serviceId:n.serviceId,clientVersion:mp.version}),maxAttempts:t?.maxAttempts??nt(cl,t),region:t?.region??nt(Dn,{...Ps,...s}),requestHandler:lD.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??nt({...ul,default:i(async()=>(await r()).retryMode||qi,"default")},t),sha256:t?.sha256??Mi.bind(null,"sha256"),streamCollector:t?.streamCollector??lD.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??nt(Vc,s),useFipsEndpoint:t?.useFipsEndpoint??nt(Yc,s),userAgentAppId:t?.userAgentAppId??nt(yl,s)}},"getRuntimeConfig")});var p_e,m_e,f_e=I(()=>{p_e=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),m_e=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var A_e,h_e=I(()=>{wt();Ce();Qe();f_e();A_e=i((t,e)=>{let r=Object.assign(El(t),Ra(t),Zc(t),p_e(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Cl(r),il(r),el(r),m_e(r))},"resolveRuntimeExtensions")});var vw,NJ=I(()=>{wt();Qs();Ce();Tt();xt();Qe();_s();Ct();Oj();Mj();d_e();h_e();vw=class extends Kn{static{i(this,"SSOOIDCClient")}config;constructor(...[e]){let r=u_e(e||{});super(r),this.initConfig=r;let n=XPe(r),s=Al(n),o=ll(s),a=Yo(o),c=a,l=xu(c),u=KPe(l),d=A_e(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Bu(this.config)),this.middlewareStack.use(hl(this.config)),this.middlewareStack.use(Ru(this.config)),this.middlewareStack.use(tl(this.config)),this.middlewareStack.use(dl(this.config)),this.middlewareStack.use(pl(this.config)),this.middlewareStack.use(ml(this.config)),this.middlewareStack.use(Nu(this.config,{httpAuthSchemeParametersProvider:jPe,identityProviderConfigProvider:i(async p=>new Pa({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Tu(this.config))}destroy(){super.destroy()}}});var _w,TJ=I(()=>{Ce();xt();Mj();cD();_w=class extends pn.classBuilder().ep(ZPe).m(function(e,r,n,s){return[Sa(n,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(RJ).build(){static{i(this,"CreateTokenCommand")}}});var Twt,uD,g_e=I(()=>{Ce();TJ();NJ();Twt={CreateTokenCommand:_w},uD=class extends vw{static{i(this,"SSOOIDC")}};nl(Twt,uD)});var y_e=I(()=>{TJ()});var Pwt,vwt,E_e=I(()=>{Pwt={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},vwt={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var C_e=I(()=>{});var PJ={};en(PJ,{$Command:()=>pn,AccessDeniedException:()=>Cw,AccessDeniedException$:()=>Wve,AccessDeniedExceptionReason:()=>Pwt,AuthorizationPendingException:()=>Iw,AuthorizationPendingException$:()=>jve,CreateToken$:()=>RJ,CreateTokenCommand:()=>_w,CreateTokenRequest$:()=>i_e,CreateTokenResponse$:()=>a_e,ExpiredTokenException:()=>xw,ExpiredTokenException$:()=>Jve,InternalServerException:()=>ww,InternalServerException$:()=>Kve,InvalidClientException:()=>bw,InvalidClientException$:()=>Xve,InvalidGrantException:()=>Sw,InvalidGrantException$:()=>Zve,InvalidRequestException:()=>Bw,InvalidRequestException$:()=>e_e,InvalidRequestExceptionReason:()=>vwt,InvalidScopeException:()=>Rw,InvalidScopeException$:()=>t_e,SSOOIDC:()=>uD,SSOOIDCClient:()=>vw,SSOOIDCServiceException:()=>wn,SSOOIDCServiceException$:()=>Yve,SlowDownException:()=>Nw,SlowDownException$:()=>r_e,UnauthorizedClientException:()=>Tw,UnauthorizedClientException$:()=>n_e,UnsupportedGrantTypeException:()=>Pw,UnsupportedGrantTypeException$:()=>s_e,__Client:()=>Kn,errorTypeRegistries:()=>BJ});var vJ=I(()=>{NJ();g_e();y_e();cD();E_e();SJ();C_e();aD()});var b_e=b(Qw=>{"use strict";var _wt=(wt(),W(Ds)),Qwt=(Xr(),W(up)),bn=(Tt(),W(kn)),Dwt=require("node:fs"),kwt=i(({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new bn.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:t});let r=Qwt.getBearerTokenEnvKey(e);if(!(r in process.env))throw new bn.TokenProviderError(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return _wt.setTokenFeature(n,"BEARER_SERVICE_ENV_VARS","3"),n},"fromEnvSigningName"),Lwt=300*1e3,_J="To refresh this SSO session run 'aws sso login' with the corresponding profile.",Owt=i(async(t,e={},r)=>{let{SSOOIDCClient:n}=await Promise.resolve().then(()=>(vJ(),PJ)),s=i(a=>e.clientConfig?.[a]??e.parentClientConfig?.[a]??r?.[a],"coalesce");return new n(Object.assign({},e.clientConfig??{},{region:t??e.clientConfig?.region,logger:s("logger"),userAgentAppId:s("userAgentAppId")}))},"getSsoOidcClient"),Mwt=i(async(t,e,r={},n)=>{let{CreateTokenCommand:s}=await Promise.resolve().then(()=>(vJ(),PJ));return(await Owt(e,r,n)).send(new s({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken"),I_e=i(t=>{if(t.expiration&&t.expiration.getTime(){if(typeof e>"u")throw new bn.TokenProviderError(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${_J}`,!1)},"validateTokenKey"),{writeFile:Fwt}=Dwt.promises,Uwt=i((t,e)=>{let r=bn.getSSOTokenFilepath(t),n=JSON.stringify(e,null,2);return Fwt(r,n)},"writeSSOTokenToFile"),x_e=new Date(0),w_e=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await bn.parseKnownFiles(t),n=bn.getProfileName({profile:t.profile??e?.profile}),s=r[n];if(s){if(!s.sso_session)throw new bn.TokenProviderError(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new bn.TokenProviderError(`Profile '${n}' could not be found in shared credentials file.`,!1);let o=s.sso_session,c=(await bn.loadSsoSessionData(t))[o];if(!c)throw new bn.TokenProviderError(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let f of["sso_start_url","sso_region"])if(!c[f])throw new bn.TokenProviderError(`Sso session '${o}' is missing required property '${f}'.`,!1);c.sso_start_url;let l=c.sso_region,u;try{u=await bn.getSSOTokenFromFile(o)}catch{throw new bn.TokenProviderError(`The SSO session token associated with profile=${n} was not found or is invalid. ${_J}`,!1)}Df("accessToken",u.accessToken),Df("expiresAt",u.expiresAt);let{accessToken:d,expiresAt:p}=u,m={token:d,expiration:new Date(p)};if(m.expiration.getTime()-Date.now()>Lwt)return m;if(Date.now()-x_e.getTime()<30*1e3)return I_e(m),m;Df("clientId",u.clientId,!0),Df("clientSecret",u.clientSecret,!0),Df("refreshToken",u.refreshToken,!0);try{x_e.setTime(Date.now());let f=await Mwt(u,l,t,e);Df("accessToken",f.accessToken),Df("expiresIn",f.expiresIn);let g=new Date(Date.now()+f.expiresIn*1e3);try{await Uwt(o,{...u,accessToken:f.accessToken,expiresAt:g.toISOString(),refreshToken:f.refreshToken})}catch{}return{token:f.accessToken,expiration:g}}catch{return I_e(m),m}},"fromSso"),qwt=i(({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new bn.TokenProviderError("Please pass a valid token to fromStatic",!1);return t},"fromStatic"),$wt=i((t={})=>bn.memoize(bn.chain(w_e(t),async()=>{throw new bn.TokenProviderError("Could not load token from any providers",!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0),"nodeProvider");Qw.fromEnvSigningName=kwt;Qw.fromSso=w_e;Qw.fromStatic=qwt;Qw.nodeProvider=$wt});function Gwt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function Hwt(t){return{schemeId:"smithy.api#noAuth"}}var S_e,B_e,R_e,QJ=I(()=>{Xr();Ce();S_e=i(async(t,e,r)=>({operation:fr(e).operation,region:await Ut(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOHttpAuthSchemeParametersProvider");i(Gwt,"createAwsAuthSigv4HttpAuthOption");i(Hwt,"createSmithyApiNoAuthHttpAuthOption");B_e=i(t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(Hwt(t)):e.push(Gwt(t)),e},"defaultSSOHttpAuthSchemeProvider"),R_e=i(t=>{let e=Il(t);return Object.assign(e,{authSchemePreference:Ut(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var N_e,T_e,DJ=I(()=>{N_e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),"resolveClientEndpointParameters"),T_e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Dw,kf,dD,P_e,D_e,pD,kJ,v_e,LJ,by,__e,Q_e,zwt,mo,Vwt,k_e,L_e=I(()=>{xt();Dw="ref",kf=-1,dD=!0,P_e="isSet",D_e="PartitionResult",pD="booleanEquals",kJ="getAttr",v_e={[Dw]:"Endpoint"},LJ={[Dw]:D_e},by={},__e=[{[Dw]:"Region"}],Q_e={conditions:[[P_e,[v_e]],[P_e,__e],["aws.partition",__e,D_e],[pD,[{[Dw]:"UseFIPS"},dD]],[pD,[{[Dw]:"UseDualStack"},dD]],[pD,[{fn:kJ,argv:[LJ,"supportsDualStack"]},dD]],[pD,[{fn:kJ,argv:[LJ,"supportsFIPS"]},dD]],["stringEquals",[{fn:kJ,argv:[LJ,"name"]},"aws-us-gov"]]],results:[[kf],[kf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[kf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[v_e,by],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",by],[kf,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",by],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",by],[kf,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",by],[kf,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",by],[kf,"Invalid Configuration: Missing Region"]]},zwt=2,mo=1e8,Vwt=new Int32Array([-1,1,-1,0,13,3,1,4,mo+12,2,5,mo+12,3,8,6,4,7,mo+11,5,mo+9,mo+10,4,11,9,6,10,mo+8,7,mo+6,mo+7,5,12,mo+5,6,mo+4,mo+5,3,mo+1,14,4,mo+2,mo+3]),k_e=ki.from(Vwt,zwt,Q_e.conditions,Q_e.results)});var Ywt,O_e,M_e=I(()=>{wt();xt();L_e();Ywt=new Li({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),O_e=i((t,e={})=>Ywt.get(t,()=>jc(k_e,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ao.aws=_a});var La,mD=I(()=>{Ce();La=class t extends Fi{static{i(this,"SSOServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var kw,Lw,Ow,Mw,OJ=I(()=>{mD();kw=class t extends La{static{i(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Lw=class t extends La{static{i(this,"ResourceNotFoundException")}name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Ow=class t extends La{static{i(this,"TooManyRequestsException")}name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Mw=class t extends La{static{i(this,"UnauthorizedException")}name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var Wwt,jwt,Jwt,Kwt,Xwt,Zwt,e0t,t0t,r0t,n0t,s0t,o0t,i0t,a0t,c0t,fD,AD,l0t,u0t,hD,d0t,F_e,gD,p0t,m0t,f0t,U_e,A0t,h0t,g0t,zi,q_e,$_e,Fw,G_e,H_e,z_e,V_e,MJ,y0t,E0t,C0t,Y_e,W_e,j_e,FJ,yD=I(()=>{Ct();OJ();mD();Wwt="AccessTokenType",jwt="GetRoleCredentials",Jwt="GetRoleCredentialsRequest",Kwt="GetRoleCredentialsResponse",Xwt="InvalidRequestException",Zwt="RoleCredentials",e0t="ResourceNotFoundException",t0t="SecretAccessKeyType",r0t="SessionTokenType",n0t="TooManyRequestsException",s0t="UnauthorizedException",o0t="accountId",i0t="accessKeyId",a0t="accessToken",c0t="account_id",fD="client",AD="error",l0t="expiration",u0t="http",hD="httpError",d0t="httpHeader",F_e="httpQuery",gD="message",p0t="roleCredentials",m0t="roleName",f0t="role_name",U_e="smithy.ts.sdk.synthetic.com.amazonaws.sso",A0t="secretAccessKey",h0t="sessionToken",g0t="x-amz-sso_bearer_token",zi="com.amazonaws.sso",q_e=gr.for(U_e),$_e=[-3,U_e,"SSOServiceException",0,[],[]];q_e.registerError($_e,La);Fw=gr.for(zi),G_e=[-3,zi,Xwt,{[AD]:fD,[hD]:400},[gD],[0]];Fw.registerError(G_e,kw);H_e=[-3,zi,e0t,{[AD]:fD,[hD]:404},[gD],[0]];Fw.registerError(H_e,Lw);z_e=[-3,zi,n0t,{[AD]:fD,[hD]:429},[gD],[0]];Fw.registerError(z_e,Ow);V_e=[-3,zi,s0t,{[AD]:fD,[hD]:401},[gD],[0]];Fw.registerError(V_e,Mw);MJ=[q_e,Fw],y0t=[0,zi,Wwt,8,0],E0t=[0,zi,t0t,8,0],C0t=[0,zi,r0t,8,0],Y_e=[3,zi,Jwt,0,[m0t,o0t,a0t],[[0,{[F_e]:f0t}],[0,{[F_e]:c0t}],[()=>y0t,{[d0t]:g0t}]],3],W_e=[3,zi,Kwt,0,[p0t],[[()=>j_e,0]]],j_e=[3,zi,Zwt,0,[i0t,A0t,h0t,l0t],[0,[()=>E0t,0],[()=>C0t,0],1]],FJ=[9,zi,jwt,{[u0t]:["GET","/federation/credentials",200]},()=>Y_e,()=>W_e]});var J_e,K_e=I(()=>{Xr();_f();Qs();Ce();Qe();st();QJ();M_e();yD();J_e=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??$r,base64Encoder:t?.base64Encoder??Ar,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??O_e,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??B_e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new On},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Jo}],logger:t?.logger??new lo,protocol:t?.protocol??Ou,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:MJ,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",urlParser:t?.urlParser??rs,utf8Decoder:t?.utf8Decoder??Gr,utf8Encoder:t?.utf8Encoder??hr}),"getRuntimeConfig")});var ED,X_e,Z_e=I(()=>{cw();wt();Xr();Ce();Tt();_s();st();ED=D(vu());K_e();X_e=i(t=>{ol(process.version);let e=Wc(t),r=i(()=>e().then(sl),"defaultConfigProvider"),n=J_e(t);qc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??nt(Pu,s),bodyLengthChecker:t?.bodyLengthChecker??Gc,defaultUserAgentProvider:t?.defaultUserAgentProvider??va({serviceId:n.serviceId,clientVersion:mp.version}),maxAttempts:t?.maxAttempts??nt(cl,t),region:t?.region??nt(Dn,{...Ps,...s}),requestHandler:ED.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??nt({...ul,default:i(async()=>(await r()).retryMode||qi,"default")},t),sha256:t?.sha256??Mi.bind(null,"sha256"),streamCollector:t?.streamCollector??ED.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??nt(Vc,s),useFipsEndpoint:t?.useFipsEndpoint??nt(Yc,s),userAgentAppId:t?.userAgentAppId??nt(yl,s)}},"getRuntimeConfig")});var eQe,tQe,rQe=I(()=>{eQe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),tQe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var nQe,sQe=I(()=>{wt();Ce();Qe();rQe();nQe=i((t,e)=>{let r=Object.assign(El(t),Ra(t),Zc(t),eQe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Cl(r),il(r),el(r),tQe(r))},"resolveRuntimeExtensions")});var Uw,UJ=I(()=>{wt();Qs();Ce();Tt();xt();Qe();_s();Ct();QJ();DJ();Z_e();sQe();Uw=class extends Kn{static{i(this,"SSOClient")}config;constructor(...[e]){let r=X_e(e||{});super(r),this.initConfig=r;let n=N_e(r),s=Al(n),o=ll(s),a=Yo(o),c=a,l=xu(c),u=R_e(l),d=nQe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Bu(this.config)),this.middlewareStack.use(hl(this.config)),this.middlewareStack.use(Ru(this.config)),this.middlewareStack.use(tl(this.config)),this.middlewareStack.use(dl(this.config)),this.middlewareStack.use(pl(this.config)),this.middlewareStack.use(ml(this.config)),this.middlewareStack.use(Nu(this.config,{httpAuthSchemeParametersProvider:S_e,identityProviderConfigProvider:i(async p=>new Pa({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Tu(this.config))}destroy(){super.destroy()}}});var qw,qJ=I(()=>{Ce();xt();DJ();yD();qw=class extends pn.classBuilder().ep(T_e).m(function(e,r,n,s){return[Sa(n,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(FJ).build(){static{i(this,"GetRoleCredentialsCommand")}}});var I0t,CD,oQe=I(()=>{Ce();qJ();UJ();I0t={GetRoleCredentialsCommand:qw},CD=class extends Uw{static{i(this,"SSO")}};nl(I0t,CD)});var iQe=I(()=>{qJ()});var aQe=I(()=>{});var cQe={};en(cQe,{$Command:()=>pn,GetRoleCredentials$:()=>FJ,GetRoleCredentialsCommand:()=>qw,GetRoleCredentialsRequest$:()=>Y_e,GetRoleCredentialsResponse$:()=>W_e,InvalidRequestException:()=>kw,InvalidRequestException$:()=>G_e,ResourceNotFoundException:()=>Lw,ResourceNotFoundException$:()=>H_e,RoleCredentials$:()=>j_e,SSO:()=>CD,SSOClient:()=>Uw,SSOServiceException:()=>La,SSOServiceException$:()=>$_e,TooManyRequestsException:()=>Ow,TooManyRequestsException$:()=>z_e,UnauthorizedException:()=>Mw,UnauthorizedException$:()=>V_e,__Client:()=>Kn,errorTypeRegistries:()=>MJ});var lQe=I(()=>{UJ();oQe();iQe();yD();OJ();aQe();mD()});var dQe=b($J=>{"use strict";var uQe=(lQe(),W(cQe));$J.GetRoleCredentialsCommand=uQe.GetRoleCredentialsCommand;$J.SSOClient=uQe.SSOClient});var GJ=b(ID=>{"use strict";var Ls=(Tt(),W(kn)),pQe=(wt(),W(Ds)),x0t=b_e(),fQe=i(t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),"isSsoProfile"),$w=!1,mQe=i(async({ssoStartUrl:t,ssoSession:e,ssoAccountId:r,ssoRegion:n,ssoRoleName:s,ssoClient:o,clientConfig:a,parentClientConfig:c,callerClientConfig:l,profile:u,filepath:d,configFilepath:p,ignoreCache:m,logger:f})=>{let g,E="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let ye=await x0t.fromSso({profile:u,filepath:d,configFilepath:p,ignoreCache:m})();g={accessToken:ye.token,expiresAt:new Date(ye.expiration).toISOString()}}catch(ye){throw new Ls.CredentialsProviderError(ye.message,{tryNextLink:$w,logger:f})}else try{g=await Ls.getSSOTokenFromFile(t)}catch{throw new Ls.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${E}`,{tryNextLink:$w,logger:f})}if(new Date(g.expiresAt).getTime()-Date.now()<=0)throw new Ls.CredentialsProviderError(`The SSO session associated with this profile has expired. ${E}`,{tryNextLink:$w,logger:f});let{accessToken:x}=g,{SSOClient:w,GetRoleCredentialsCommand:S}=await Promise.resolve().then(function(){return dQe()}),P=o||new w(Object.assign({},a??{},{logger:a?.logger??l?.logger??c?.logger,region:a?.region??n,userAgentAppId:a?.userAgentAppId??l?.userAgentAppId??c?.userAgentAppId})),Q;try{Q=await P.send(new S({accountId:r,roleName:s,accessToken:x}))}catch(ye){throw new Ls.CredentialsProviderError(ye,{tryNextLink:$w,logger:f})}let{roleCredentials:{accessKeyId:q,secretAccessKey:M,sessionToken:V,expiration:pe,credentialScope:ke,accountId:Re}={}}=Q;if(!q||!M||!V||!pe)throw new Ls.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:$w,logger:f});let se={accessKeyId:q,secretAccessKey:M,sessionToken:V,expiration:new Date(pe),...ke&&{credentialScope:ke},...Re&&{accountId:Re}};return e?pQe.setCredentialFeature(se,"CREDENTIALS_SSO","s"):pQe.setCredentialFeature(se,"CREDENTIALS_SSO_LEGACY","u"),se},"resolveSSOCredentials"),AQe=i((t,e)=>{let{sso_start_url:r,sso_account_id:n,sso_region:s,sso_role_name:o}=t;if(!r||!n||!s||!o)throw new Ls.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")} -Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),w0t=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t,{ssoClient:c}=t,l=Ls.getProfileName({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await Ls.parseKnownFiles(t))[l];if(!d)throw new Ls.CredentialsProviderError(`Profile ${l} was not found.`,{logger:t.logger});if(!fQe(d))throw new Ls.CredentialsProviderError(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let w=(await Ls.loadSsoSessionData(t))[d.sso_session],S=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==w.sso_region)throw new Ls.CredentialsProviderError("Conflicting SSO region"+S,{tryNextLink:!1,logger:t.logger});if(r&&r!==w.sso_start_url)throw new Ls.CredentialsProviderError("Conflicting SSO start_url"+S,{tryNextLink:!1,logger:t.logger});d.sso_region=w.sso_region,d.sso_start_url=w.sso_start_url}let{sso_start_url:p,sso_account_id:m,sso_region:f,sso_role_name:g,sso_session:E}=AQe(d,t.logger);return mQe({ssoStartUrl:p,ssoSession:E,ssoAccountId:m,ssoRegion:f,ssoRoleName:g,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new Ls.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return mQe({ssoStartUrl:r,ssoSession:a,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}},"fromSSO");ID.fromSSO=w0t;ID.isSsoProfile=fQe;ID.validateSsoProfile=AQe});function b0t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function S0t(t){return{schemeId:"smithy.api#noAuth"}}var hQe,gQe,yQe,HJ=I(()=>{Xr();Ce();hQe=i(async(t,e,r)=>({operation:fr(e).operation,region:await Ut(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSigninHttpAuthSchemeParametersProvider");i(b0t,"createAwsAuthSigv4HttpAuthOption");i(S0t,"createSmithyApiNoAuthHttpAuthOption");gQe=i(t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(S0t(t)):e.push(b0t(t)),e},"defaultSigninHttpAuthSchemeProvider"),yQe=i(t=>{let e=Il(t);return Object.assign(e,{authSchemePreference:Ut(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var EQe,CQe,zJ=I(()=>{EQe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),"resolveClientEndpointParameters"),CQe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Gw,Lf,xD,IQe,SQe,wD,WJ,VJ,xQe,jJ,YJ,Ep,wQe,bQe,B0t,is,R0t,BQe,RQe=I(()=>{xt();Gw="ref",Lf=-1,xD=!0,IQe="isSet",SQe="PartitionResult",wD="booleanEquals",WJ="getAttr",VJ="stringEquals",xQe={[Gw]:"Endpoint"},jJ={[Gw]:SQe},YJ={fn:WJ,argv:[jJ,"name"]},Ep={},wQe=[{[Gw]:"Region"}],bQe={conditions:[[IQe,[xQe]],[IQe,wQe],["aws.partition",wQe,SQe],[wD,[{[Gw]:"UseFIPS"},xD]],[wD,[{[Gw]:"UseDualStack"},xD]],[wD,[{fn:WJ,argv:[jJ,"supportsDualStack"]},xD]],[wD,[{fn:WJ,argv:[jJ,"supportsFIPS"]},xD]],[VJ,[YJ,"aws"]],[VJ,[YJ,"aws-cn"]],[VJ,[YJ,"aws-us-gov"]]],results:[[Lf],[Lf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Lf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[xQe,Ep],["https://{Region}.signin.aws.amazon.com",Ep],["https://{Region}.signin.amazonaws.cn",Ep],["https://{Region}.signin.amazonaws-us-gov.com",Ep],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ep],[Lf,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Ep],[Lf,"FIPS is enabled but this partition does not support FIPS"],["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",Ep],[Lf,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Ep],[Lf,"Invalid Configuration: Missing Region"]]},B0t=2,is=1e8,R0t=new Int32Array([-1,1,-1,0,15,3,1,4,is+14,2,5,is+14,3,11,6,4,10,7,7,is+4,8,8,is+5,9,9,is+6,is+13,5,is+11,is+12,4,13,12,6,is+9,is+10,5,14,is+8,6,is+7,is+8,3,is+1,16,4,is+2,is+3]),BQe=ki.from(R0t,B0t,bQe.conditions,bQe.results)});var N0t,NQe,TQe=I(()=>{wt();xt();RQe();N0t=new Li({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),NQe=i((t,e={})=>N0t.get(t,()=>jc(BQe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ao.aws=_a});var Oa,bD=I(()=>{Ce();Oa=class t extends Fi{static{i(this,"SigninServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Hw,zw,Vw,Yw,JJ=I(()=>{bD();Hw=class t extends Oa{static{i(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},zw=class t extends Oa{static{i(this,"InternalServerException")}name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},Vw=class t extends Oa{static{i(this,"TooManyRequestsError")}name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},Yw=class t extends Oa{static{i(this,"ValidationException")}name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}}});var T0t,P0t,v0t,_0t,Q0t,D0t,k0t,L0t,O0t,M0t,F0t,PQe,vQe,KJ,_Qe,QQe,U0t,Cp,DQe,kQe,q0t,XJ,LQe,Xo,BD,SD,OQe,qQe,MQe,FQe,$0t,G0t,H0t,UQe,Vi,$Qe,GQe,Ww,HQe,zQe,VQe,YQe,ZJ,WQe,jQe,JQe,KQe,XQe,ZQe,e5,RD=I(()=>{Ct();JJ();bD();T0t="AccessDeniedException",P0t="AccessToken",v0t="CreateOAuth2Token",_0t="CreateOAuth2TokenRequest",Q0t="CreateOAuth2TokenRequestBody",D0t="CreateOAuth2TokenResponseBody",k0t="CreateOAuth2TokenResponse",L0t="InternalServerException",O0t="RefreshToken",M0t="TooManyRequestsError",F0t="ValidationException",PQe="accessKeyId",vQe="accessToken",KJ="client",_Qe="clientId",QQe="codeVerifier",U0t="code",Cp="error",DQe="expiresIn",kQe="grantType",q0t="http",XJ="httpError",LQe="idToken",Xo="jsonName",BD="message",SD="refreshToken",OQe="redirectUri",qQe="smithy.ts.sdk.synthetic.com.amazonaws.signin",MQe="secretAccessKey",FQe="sessionToken",$0t="server",G0t="tokenInput",H0t="tokenOutput",UQe="tokenType",Vi="com.amazonaws.signin",$Qe=gr.for(qQe),GQe=[-3,qQe,"SigninServiceException",0,[],[]];$Qe.registerError(GQe,Oa);Ww=gr.for(Vi),HQe=[-3,Vi,T0t,{[Cp]:KJ},[Cp,BD],[0,0],2];Ww.registerError(HQe,Hw);zQe=[-3,Vi,L0t,{[Cp]:$0t,[XJ]:500},[Cp,BD],[0,0],2];Ww.registerError(zQe,zw);VQe=[-3,Vi,M0t,{[Cp]:KJ,[XJ]:429},[Cp,BD],[0,0],2];Ww.registerError(VQe,Vw);YQe=[-3,Vi,F0t,{[Cp]:KJ,[XJ]:400},[Cp,BD],[0,0],2];Ww.registerError(YQe,Yw);ZJ=[$Qe,Ww],WQe=[0,Vi,O0t,8,0],jQe=[3,Vi,P0t,8,[PQe,MQe,FQe],[[0,{[Xo]:PQe}],[0,{[Xo]:MQe}],[0,{[Xo]:FQe}]],3],JQe=[3,Vi,_0t,0,[G0t],[[()=>KQe,16]],1],KQe=[3,Vi,Q0t,0,[_Qe,kQe,U0t,OQe,QQe,SD],[[0,{[Xo]:_Qe}],[0,{[Xo]:kQe}],0,[0,{[Xo]:OQe}],[0,{[Xo]:QQe}],[()=>WQe,{[Xo]:SD}]],2],XQe=[3,Vi,k0t,0,[H0t],[[()=>ZQe,16]],1],ZQe=[3,Vi,D0t,0,[vQe,UQe,DQe,SD,LQe],[[()=>jQe,{[Xo]:vQe}],[0,{[Xo]:UQe}],[1,{[Xo]:DQe}],[()=>WQe,{[Xo]:SD}],[0,{[Xo]:LQe}]],4],e5=[9,Vi,v0t,{[q0t]:["POST","/v1/token",200]},()=>JQe,()=>XQe]});var eDe,tDe=I(()=>{Xr();_f();Qs();Ce();Qe();st();HJ();TQe();RD();eDe=i(t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??$r,base64Encoder:t?.base64Encoder??Ar,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??NQe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??gQe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new On},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Jo}],logger:t?.logger??new lo,protocol:t?.protocol??Ou,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:ZJ,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",urlParser:t?.urlParser??rs,utf8Decoder:t?.utf8Decoder??Gr,utf8Encoder:t?.utf8Encoder??hr}),"getRuntimeConfig")});var ND,rDe,nDe=I(()=>{cw();wt();Xr();Ce();Tt();_s();st();ND=D(vu());tDe();rDe=i(t=>{ol(process.version);let e=Wc(t),r=i(()=>e().then(sl),"defaultConfigProvider"),n=eDe(t);qc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??nt(Pu,s),bodyLengthChecker:t?.bodyLengthChecker??Gc,defaultUserAgentProvider:t?.defaultUserAgentProvider??va({serviceId:n.serviceId,clientVersion:mp.version}),maxAttempts:t?.maxAttempts??nt(cl,t),region:t?.region??nt(Dn,{...Ps,...s}),requestHandler:ND.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??nt({...ul,default:i(async()=>(await r()).retryMode||qi,"default")},t),sha256:t?.sha256??Mi.bind(null,"sha256"),streamCollector:t?.streamCollector??ND.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??nt(Vc,s),useFipsEndpoint:t?.useFipsEndpoint??nt(Yc,s),userAgentAppId:t?.userAgentAppId??nt(yl,s)}},"getRuntimeConfig")});var sDe,oDe,iDe=I(()=>{sDe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),oDe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var aDe,cDe=I(()=>{wt();Ce();Qe();iDe();aDe=i((t,e)=>{let r=Object.assign(El(t),Ra(t),Zc(t),sDe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Cl(r),il(r),el(r),oDe(r))},"resolveRuntimeExtensions")});var jw,t5=I(()=>{wt();Qs();Ce();Tt();xt();Qe();_s();Ct();HJ();zJ();nDe();cDe();jw=class extends Kn{static{i(this,"SigninClient")}config;constructor(...[e]){let r=rDe(e||{});super(r),this.initConfig=r;let n=EQe(r),s=Al(n),o=ll(s),a=Yo(o),c=a,l=xu(c),u=yQe(l),d=aDe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Bu(this.config)),this.middlewareStack.use(hl(this.config)),this.middlewareStack.use(Ru(this.config)),this.middlewareStack.use(tl(this.config)),this.middlewareStack.use(dl(this.config)),this.middlewareStack.use(pl(this.config)),this.middlewareStack.use(ml(this.config)),this.middlewareStack.use(Nu(this.config,{httpAuthSchemeParametersProvider:hQe,identityProviderConfigProvider:i(async p=>new Pa({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Tu(this.config))}destroy(){super.destroy()}}});var Jw,r5=I(()=>{Ce();xt();zJ();RD();Jw=class extends pn.classBuilder().ep(CQe).m(function(e,r,n,s){return[Sa(n,e.getEndpointParameterInstructions())]}).s("Signin","CreateOAuth2Token",{}).n("SigninClient","CreateOAuth2TokenCommand").sc(e5).build(){static{i(this,"CreateOAuth2TokenCommand")}}});var z0t,TD,lDe=I(()=>{Ce();r5();t5();z0t={CreateOAuth2TokenCommand:Jw},TD=class extends jw{static{i(this,"Signin")}};nl(z0t,TD)});var uDe=I(()=>{r5()});var V0t,dDe=I(()=>{V0t={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",SERVER_ERROR:"server_error",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var pDe=I(()=>{});var mDe={};en(mDe,{$Command:()=>pn,AccessDeniedException:()=>Hw,AccessDeniedException$:()=>HQe,AccessToken$:()=>jQe,CreateOAuth2Token$:()=>e5,CreateOAuth2TokenCommand:()=>Jw,CreateOAuth2TokenRequest$:()=>JQe,CreateOAuth2TokenRequestBody$:()=>KQe,CreateOAuth2TokenResponse$:()=>XQe,CreateOAuth2TokenResponseBody$:()=>ZQe,InternalServerException:()=>zw,InternalServerException$:()=>zQe,OAuth2ErrorCode:()=>V0t,Signin:()=>TD,SigninClient:()=>jw,SigninServiceException:()=>Oa,SigninServiceException$:()=>GQe,TooManyRequestsError:()=>Vw,TooManyRequestsError$:()=>VQe,ValidationException:()=>Yw,ValidationException$:()=>YQe,__Client:()=>Kn,errorTypeRegistries:()=>ZJ});var fDe=I(()=>{t5();lDe();uDe();RD();dDe();JJ();pDe();bD()});var hDe=b(ADe=>{"use strict";var Y0t=(wt(),W(Ds)),Ma=(Tt(),W(kn)),W0t=(Qe(),W(rl)),PD=require("node:crypto"),n5=require("node:fs"),j0t=require("node:os"),s5=require("node:path"),o5=class t{static{i(this,"LoginCredentialsFetcher")}profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,r,n){this.profileData=e,this.init=r,this.callerClientConfig=n}async loadCredentials(){let e=await this.loadToken();if(!e)throw new Ma.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=e.accessToken,n=Date.now();return new Date(r.expiresAt).getTime()-n<=t.REFRESH_THRESHOLD?this.refresh(e):{accessKeyId:r.accessKeyId,secretAccessKey:r.secretAccessKey,sessionToken:r.sessionToken,accountId:r.accountId,expiration:new Date(r.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:r,CreateOAuth2TokenCommand:n}=await Promise.resolve().then(()=>(fDe(),mDe)),{logger:s,userAgentAppId:o}=this.callerClientConfig??{},c=i(p=>p?.metadata?.handlerProtocol==="h2","isH2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,l=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,u=new r({credentials:{accessKeyId:"",secretAccessKey:""},region:l,requestHandler:c,logger:s,userAgentAppId:o,...this.init?.clientConfig});this.createDPoPInterceptor(u.middlewareStack);let d={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{let p=await u.send(new n(d)),{accessKeyId:m,secretAccessKey:f,sessionToken:g}=p.tokenOutput?.accessToken??{},{refreshToken:E,expiresIn:x}=p.tokenOutput??{};if(!m||!f||!g||!E)throw new Ma.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let w=(x??900)*1e3,S=new Date(Date.now()+w),P={...e,accessToken:{...e.accessToken,accessKeyId:m,secretAccessKey:f,sessionToken:g,expiresAt:S.toISOString()},refreshToken:E};await this.saveToken(P);let Q=P.accessToken;return{accessKeyId:Q.accessKeyId,secretAccessKey:Q.secretAccessKey,sessionToken:Q.sessionToken,accountId:Q.accountId,expiration:S}}catch(p){if(p.name==="AccessDeniedException"){let m=p.error,f;switch(m){case"TOKEN_EXPIRED":f="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":f="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":f="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:f=`Failed to refresh token: ${String(p)}. Please re-authenticate using \`aws login\``}throw new Ma.CredentialsProviderError(f,{logger:this.logger,tryNextLink:!1})}throw new Ma.CredentialsProviderError(`Failed to refresh token: ${String(p)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r;try{r=await Ma.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{r=await n5.promises.readFile(e,"utf8")}let n=JSON.parse(r),s=["accessToken","clientId","refreshToken","dpopKey"].filter(o=>!n[o]);if(n.accessToken?.accountId||s.push("accountId"),s.length>0)throw new Ma.CredentialsProviderError(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new Ma.CredentialsProviderError(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=s5.dirname(r);try{await n5.promises.mkdir(n,{recursive:!0})}catch{}await n5.promises.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??s5.join(j0t.homedir(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=PD.createHash("sha256").update(r).digest("hex");return s5.join(e,`${n}.json`)}derToRawSignature(e){let r=2;if(e[r]!==2)throw new Error("Invalid DER signature");r++;let n=e[r++],s=e.subarray(r,r+n);if(r+=n,e[r]!==2)throw new Error("Invalid DER signature");r++;let o=e[r++],a=e.subarray(r,r+o);s=s[0]===0?s.subarray(1):s,a=a[0]===0?a.subarray(1):a;let c=Buffer.concat([Buffer.alloc(32-s.length),s]),l=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([c,l])}createDPoPInterceptor(e){e.add(r=>async n=>{if(W0t.HttpRequest.isInstance(n.request)){let s=n.request,o=`${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}${s.path}`,a=await this.generateDpop(s.method,o);s.headers={...s.headers,DPoP:a}}return r(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",r){let n=await this.loadToken();try{let s=PD.createPrivateKey({key:n.dpopKey,format:"pem",type:"sec1"}),a=PD.createPublicKey(s).export({format:"der",type:"spki"}),c=-1;for(let S=0;Sasync({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await Ma.parseKnownFiles(t||{}),n=Ma.getProfileName({profile:t?.profile??e?.profile}),s=r[n];if(!s?.login_session)throw new Ma.CredentialsProviderError(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let a=await new o5(s,t,e).loadCredentials();return Y0t.setCredentialFeature(a,"CREDENTIALS_LOGIN","AD")},"fromLoginCredentials");ADe.fromLoginCredentials=J0t});var l5=b(_D=>{"use strict";var i5=Cj(),Kw={CrtSignerV4:null},a5="X-Amz-S3session-Token",gDe=a5.toLowerCase(),vD=class extends i5.SignatureV4{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=yDe(r);e.headers[gDe]=r.sessionToken;let o=this;return EDe(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=yDe(r);return delete e.headers[gDe],e.headers[a5]=r.sessionToken,e.query=e.query??{},e.query[a5]=r.sessionToken,EDe(this,s),this.presign(e,n)}};function yDe(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(yDe,"getCredentialsWithoutSessionToken");function EDe(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(EDe,"setSingleOverride");var c5=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof Kw.CrtSignerV4=="function"?"crt":typeof i5.signatureV4aContainer.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new vD(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),o=Kw.CrtSignerV4;if(o&&s instanceof o)return s.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Kw.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Kw.CrtSignerV4,r=i5.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};_D.SignatureV4MultiRegion=c5;_D.SignatureV4SignWithCredentials=vD;_D.signatureV4CrtContainer=Kw});var By,Of,Xw,CDe,NDe,Zw,Fn,u5,IDe,xDe,wDe,bDe,SDe,Un,d5,Sy,BDe,RDe,K0t,Pt,X0t,TDe,PDe=I(()=>{xt();By="ref",Of=-1,Xw=!0,CDe="isSet",NDe="PartitionResult",Zw="booleanEquals",Fn="stringEquals",u5="getAttr",IDe="us-east-1",xDe="sigv4",wDe="sts",bDe="https://sts.{Region}.{PartitionResult#dnsSuffix}",SDe={[By]:"Endpoint"},Un={[By]:"Region"},d5={[By]:NDe},Sy={},BDe=[Un],RDe={conditions:[[CDe,[SDe]],[CDe,BDe],["aws.partition",BDe,NDe],[Zw,[{[By]:"UseFIPS"},Xw]],[Zw,[{[By]:"UseDualStack"},Xw]],[Fn,[Un,"aws-global"]],[Zw,[{[By]:"UseGlobalEndpoint"},Xw]],[Fn,[Un,"eu-central-1"]],[Zw,[{fn:u5,argv:[d5,"supportsDualStack"]},Xw]],[Zw,[{fn:u5,argv:[d5,"supportsFIPS"]},Xw]],[Fn,[Un,"ap-south-1"]],[Fn,[Un,"eu-north-1"]],[Fn,[Un,"eu-west-1"]],[Fn,[Un,"eu-west-2"]],[Fn,[Un,"eu-west-3"]],[Fn,[Un,"sa-east-1"]],[Fn,[Un,IDe]],[Fn,[Un,"us-east-2"]],[Fn,[Un,"us-west-2"]],[Fn,[Un,"us-west-1"]],[Fn,[Un,"ca-central-1"]],[Fn,[Un,"ap-southeast-1"]],[Fn,[Un,"ap-northeast-1"]],[Fn,[Un,"ap-southeast-2"]],[Fn,[{fn:u5,argv:[d5,"name"]},"aws-us-gov"]]],results:[[Of],["https://sts.amazonaws.com",{authSchemes:[{name:xDe,signingName:wDe,signingRegion:IDe}]}],[bDe,{authSchemes:[{name:xDe,signingName:wDe,signingRegion:"{Region}"}]}],[Of,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Of,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[SDe,Sy],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Sy],[Of,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Sy],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Sy],[Of,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Sy],[Of,"DualStack is enabled but this partition does not support DualStack"],[bDe,Sy],[Of,"Invalid Configuration: Missing Region"]]},K0t=2,Pt=1e8,X0t=new Int32Array([-1,1,-1,0,30,3,1,4,Pt+14,2,5,Pt+14,3,25,6,4,24,7,5,Pt+1,8,6,9,Pt+13,7,Pt+1,10,10,Pt+1,11,11,Pt+1,12,12,Pt+1,13,13,Pt+1,14,14,Pt+1,15,15,Pt+1,16,16,Pt+1,17,17,Pt+1,18,18,Pt+1,19,19,Pt+1,20,20,Pt+1,21,21,Pt+1,22,22,Pt+1,23,23,Pt+1,Pt+2,8,Pt+11,Pt+12,4,28,26,9,27,Pt+10,24,Pt+8,Pt+9,8,29,Pt+7,9,Pt+6,Pt+7,3,Pt+3,31,4,Pt+4,Pt+5]),TDe=ki.from(X0t,K0t,RDe.conditions,RDe.results)});var Z0t,QD,p5=I(()=>{wt();xt();PDe();Z0t=new Li({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),QD=i((t,e={})=>Z0t.get(t,()=>jc(TDe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ao.aws=_a});function QDe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function m5(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function DDe(t){return{schemeId:"smithy.api#noAuth"}}var vDe,ebt,tbt,_De,rbt,nbt,kDe,LDe,f5=I(()=>{Xr();vDe=D(l5());Ce();xt();p5();ebt=i(t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await t(e,r,n),o=fr(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await vx(n,{getEndpointParameterInstructions:o},e);return Object.assign(s,a)},"createEndpointRuleSetHttpAuthSchemeParametersProvider"),tbt=i(async(t,e,r)=>({operation:fr(e).operation,region:await Ut(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"_defaultSTSHttpAuthSchemeParametersProvider"),_De=ebt(tbt);i(QDe,"createAwsAuthSigv4HttpAuthOption");i(m5,"createAwsAuthSigv4aHttpAuthOption");i(DDe,"createSmithyApiNoAuthHttpAuthOption");rbt=i((t,e,r)=>i(s=>{let a=t(s).properties?.authSchemes;if(!a)return e(s);let c=[];for(let l of a){let{name:u,properties:d={},...p}=l,m=u.toLowerCase();u!==m&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${m}'`);let f;if(m==="sigv4a"){f="aws.auth#sigv4a";let x=a.find(w=>{let S=w.name.toLowerCase();return S!=="sigv4a"&&S.startsWith("sigv4")});if(vDe.SignatureV4MultiRegion.sigv4aDependency()==="none"&&x)continue}else if(m.startsWith("sigv4"))f="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${m}'`);let g=r[f];if(!g)throw new Error(`Could not find HttpAuthOption create function for '${f}'`);let E=g(s);E.schemeId=f,E.signingProperties={...E.signingProperties||{},...p,...d},c.push(E)}return c},"endpointRuleSetHttpAuthSchemeProvider"),"createEndpointRuleSetHttpAuthSchemeProvider"),nbt=i(t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(DDe(t)),e.push(m5(t))):(e.push(QDe(t)),e.push(m5(t))),e},"_defaultSTSHttpAuthSchemeProvider"),kDe=rbt(QD,nbt,{"aws.auth#sigv4":QDe,"aws.auth#sigv4a":m5,"smithy.api#noAuth":DDe}),LDe=i(t=>{let e=Il(t),r=aj(e);return Object.assign(r,{authSchemePreference:Ut(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var ODe,DD,kD=I(()=>{ODe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters"),DD={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var fo,LD=I(()=>{Ce();fo=class t extends Fi{static{i(this,"STSServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var e0,t0,r0,n0,s0,o0,i0,A5=I(()=>{LD();e0=class t extends fo{static{i(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},t0=class t extends fo{static{i(this,"MalformedPolicyDocumentException")}name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},r0=class t extends fo{static{i(this,"PackedPolicyTooLargeException")}name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},n0=class t extends fo{static{i(this,"RegionDisabledException")}name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},s0=class t extends fo{static{i(this,"IDPRejectedClaimException")}name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},o0=class t extends fo{static{i(this,"InvalidIdentityTokenException")}name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},i0=class t extends fo{static{i(this,"IDPCommunicationErrorException")}name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var sbt,obt,ibt,abt,cbt,lbt,h5,ubt,dbt,pbt,mbt,g5,fbt,MDe,Abt,hbt,gbt,ybt,Ebt,Cbt,Ibt,xbt,FDe,UDe,wbt,bbt,Sbt,Bbt,Rbt,Nbt,qDe,Tbt,Pbt,$De,vbt,GDe,_bt,Qbt,y5,Dbt,kbt,Lbt,Obt,Mbt,Fbt,Ubt,qbt,$bt,Gbt,Mf,Ff,Hbt,Uf,qf,$f,zbt,HDe,Vbt,ir,zDe,VDe,Ip,YDe,WDe,jDe,JDe,KDe,XDe,ZDe,E5,Ybt,Wbt,C5,eke,tke,rke,nke,I5,ske,oke,ike,ake,jbt,Jbt,x5,w5,a0=I(()=>{Ct();A5();LD();sbt="Arn",obt="AccessKeyId",ibt="AssumeRole",abt="AssumedRoleId",cbt="AssumeRoleRequest",lbt="AssumeRoleResponse",h5="AssumedRoleUser",ubt="AssumeRoleWithWebIdentity",dbt="AssumeRoleWithWebIdentityRequest",pbt="AssumeRoleWithWebIdentityResponse",mbt="Audience",g5="Credentials",fbt="ContextAssertion",MDe="DurationSeconds",Abt="Expiration",hbt="ExternalId",gbt="ExpiredTokenException",ybt="IDPCommunicationErrorException",Ebt="IDPRejectedClaimException",Cbt="InvalidIdentityTokenException",Ibt="Key",xbt="MalformedPolicyDocumentException",FDe="Policy",UDe="PolicyArns",wbt="ProviderArn",bbt="ProvidedContexts",Sbt="ProvidedContextsListType",Bbt="ProvidedContext",Rbt="PolicyDescriptorType",Nbt="ProviderId",qDe="PackedPolicySize",Tbt="PackedPolicyTooLargeException",Pbt="Provider",$De="RoleArn",vbt="RegionDisabledException",GDe="RoleSessionName",_bt="SecretAccessKey",Qbt="SubjectFromWebIdentityToken",y5="SourceIdentity",Dbt="SerialNumber",kbt="SessionToken",Lbt="Tags",Obt="TokenCode",Mbt="TransitiveTagKeys",Fbt="Tag",Ubt="Value",qbt="WebIdentityToken",$bt="arn",Gbt="accessKeySecretType",Mf="awsQueryError",Ff="client",Hbt="clientTokenType",Uf="error",qf="httpError",$f="message",zbt="policyDescriptorListType",HDe="smithy.ts.sdk.synthetic.com.amazonaws.sts",Vbt="tagListType",ir="com.amazonaws.sts",zDe=gr.for(HDe),VDe=[-3,HDe,"STSServiceException",0,[],[]];zDe.registerError(VDe,fo);Ip=gr.for(ir),YDe=[-3,ir,gbt,{[Mf]:["ExpiredTokenException",400],[Uf]:Ff,[qf]:400},[$f],[0]];Ip.registerError(YDe,e0);WDe=[-3,ir,ybt,{[Mf]:["IDPCommunicationError",400],[Uf]:Ff,[qf]:400},[$f],[0]];Ip.registerError(WDe,i0);jDe=[-3,ir,Ebt,{[Mf]:["IDPRejectedClaim",403],[Uf]:Ff,[qf]:403},[$f],[0]];Ip.registerError(jDe,s0);JDe=[-3,ir,Cbt,{[Mf]:["InvalidIdentityToken",400],[Uf]:Ff,[qf]:400},[$f],[0]];Ip.registerError(JDe,o0);KDe=[-3,ir,xbt,{[Mf]:["MalformedPolicyDocument",400],[Uf]:Ff,[qf]:400},[$f],[0]];Ip.registerError(KDe,t0);XDe=[-3,ir,Tbt,{[Mf]:["PackedPolicyTooLarge",400],[Uf]:Ff,[qf]:400},[$f],[0]];Ip.registerError(XDe,r0);ZDe=[-3,ir,vbt,{[Mf]:["RegionDisabledException",403],[Uf]:Ff,[qf]:403},[$f],[0]];Ip.registerError(ZDe,n0);E5=[zDe,Ip],Ybt=[0,ir,Gbt,8,0],Wbt=[0,ir,Hbt,8,0],C5=[3,ir,h5,0,[abt,sbt],[0,0],2],eke=[3,ir,cbt,0,[$De,GDe,UDe,FDe,MDe,Lbt,Mbt,hbt,Dbt,Obt,y5,bbt],[0,0,()=>ake,0,1,()=>Jbt,64,0,0,0,0,()=>jbt],2],tke=[3,ir,lbt,0,[g5,h5,qDe,y5],[[()=>I5,0],()=>C5,1,0]],rke=[3,ir,dbt,0,[$De,GDe,qbt,Nbt,UDe,FDe,MDe],[0,0,[()=>Wbt,0],0,()=>ake,0,1],3],nke=[3,ir,pbt,0,[g5,Qbt,h5,qDe,Pbt,mbt,y5],[[()=>I5,0],0,()=>C5,1,0,0,0]],I5=[3,ir,g5,0,[obt,_bt,kbt,Abt],[0,[()=>Ybt,0],0,4],4],ske=[3,ir,Rbt,0,[$bt],[0]],oke=[3,ir,Bbt,0,[wbt,fbt],[0,0]],ike=[3,ir,Fbt,0,[Ibt,Ubt],[0,0],2],ake=[1,ir,zbt,0,()=>ske],jbt=[1,ir,Sbt,0,()=>oke],Jbt=[1,ir,Vbt,0,()=>ike],x5=[9,ir,ibt,0,()=>eke,()=>tke],w5=[9,ir,ubt,0,()=>rke,()=>nke]});var cke,lke,uke=I(()=>{Xr();_f();cke=D(l5());Qs();Ce();Qe();st();f5();p5();a0();lke=i(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??$r,base64Encoder:t?.base64Encoder??Ar,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??QD,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??kDe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new On},{schemeId:"aws.auth#sigv4a",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new lp},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Jo}],logger:t?.logger??new lo,protocol:t?.protocol??vf,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:E5,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",signerConstructor:t?.signerConstructor??cke.SignatureV4MultiRegion,urlParser:t?.urlParser??rs,utf8Decoder:t?.utf8Decoder??Gr,utf8Encoder:t?.utf8Encoder??hr}),"getRuntimeConfig")});var OD,dke,pke=I(()=>{cw();wt();Xr();Qs();Ce();Tt();_s();st();OD=D(vu());uke();dke=i(t=>{ol(process.version);let e=Wc(t),r=i(()=>e().then(sl),"defaultConfigProvider"),n=lke(t);qc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??nt(Pu,s),bodyLengthChecker:t?.bodyLengthChecker??Gc,defaultUserAgentProvider:t?.defaultUserAgentProvider??va({serviceId:n.serviceId,clientVersion:mp.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4")||(async a=>await t.credentialDefaultProvider(a?.__config||{})()),"identityProvider"),signer:new On},{schemeId:"aws.auth#sigv4a",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new lp},{schemeId:"smithy.api#noAuth",identityProvider:i(o=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Jo}],maxAttempts:t?.maxAttempts??nt(cl,t),region:t?.region??nt(Dn,{...Ps,...s}),requestHandler:OD.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??nt({...ul,default:i(async()=>(await r()).retryMode||qi,"default")},t),sha256:t?.sha256??Mi.bind(null,"sha256"),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??nt(cj,s),streamCollector:t?.streamCollector??OD.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??nt(Vc,s),useFipsEndpoint:t?.useFipsEndpoint??nt(Yc,s),userAgentAppId:t?.userAgentAppId??nt(yl,s)}},"getRuntimeConfig")});var mke,fke,Ake=I(()=>{mke=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),fke=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var hke,gke=I(()=>{wt();Ce();Qe();Ake();hke=i((t,e)=>{let r=Object.assign(El(t),Ra(t),Zc(t),mke(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Cl(r),il(r),el(r),fke(r))},"resolveRuntimeExtensions")});var xp,MD=I(()=>{wt();Qs();Ce();Tt();xt();Qe();_s();Ct();f5();kD();pke();gke();xp=class extends Kn{static{i(this,"STSClient")}config;constructor(...[e]){let r=dke(e||{});super(r),this.initConfig=r;let n=ODe(r),s=Al(n),o=ll(s),a=Yo(o),c=a,l=xu(c),u=LDe(l),d=hke(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Bu(this.config)),this.middlewareStack.use(hl(this.config)),this.middlewareStack.use(Ru(this.config)),this.middlewareStack.use(tl(this.config)),this.middlewareStack.use(dl(this.config)),this.middlewareStack.use(pl(this.config)),this.middlewareStack.use(ml(this.config)),this.middlewareStack.use(Nu(this.config,{httpAuthSchemeParametersProvider:_De,identityProviderConfigProvider:i(async p=>new Pa({"aws.auth#sigv4":p.credentials,"aws.auth#sigv4a":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Tu(this.config))}destroy(){super.destroy()}}});var Gf,FD=I(()=>{Ce();xt();kD();a0();Gf=class extends pn.classBuilder().ep(DD).m(function(e,r,n,s){return[Sa(n,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(x5).build(){static{i(this,"AssumeRoleCommand")}}});var Hf,UD=I(()=>{Ce();xt();kD();a0();Hf=class extends pn.classBuilder().ep(DD).m(function(e,r,n,s){return[Sa(n,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(w5).build(){static{i(this,"AssumeRoleWithWebIdentityCommand")}}});var Kbt,qD,yke=I(()=>{Ce();FD();UD();MD();Kbt={AssumeRoleCommand:Gf,AssumeRoleWithWebIdentityCommand:Hf},qD=class extends xp{static{i(this,"STS")}};nl(Kbt,qD)});var Eke=I(()=>{FD();UD()});var Cke=I(()=>{});var Ike,xke,wke,bke,Ske,Bke=I(()=>{wt();FD();UD();Ike=i(t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},"getAccountIdFromAssumedRoleUser"),xke=i(async(t,e,r,n={})=>{let s=typeof t=="function"?await t():t,o=typeof e=="function"?await e():e,a="",c=s??o??(a=await EQ(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),c},"resolveRegion"),wke=i((t,e)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:d=t?.parentClientConfig?.logger,profile:p=t?.parentClientConfig?.profile,region:m,requestHandler:f=t?.parentClientConfig?.requestHandler,credentialProviderLogger:g,userAgentAppId:E=t?.parentClientConfig?.userAgentAppId}=t,x=await xke(m,t?.parentClientConfig?.region,g,{logger:d,profile:p}),w=!Ske(f);r=new e({...t,userAgentAppId:E,profile:p,credentialDefaultProvider:i(()=>async()=>n,"credentialDefaultProvider"),region:x,requestHandler:w?f:void 0,logger:d})}let{Credentials:a,AssumedRoleUser:c}=await r.send(new Gf(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let l=Ike(c),u={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...l&&{accountId:l}};return zd(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},"getDefaultRoleAssumer"),bke=i((t,e)=>{let r;return async n=>{if(!r){let{logger:l=t?.parentClientConfig?.logger,profile:u=t?.parentClientConfig?.profile,region:d,requestHandler:p=t?.parentClientConfig?.requestHandler,credentialProviderLogger:m,userAgentAppId:f=t?.parentClientConfig?.userAgentAppId}=t,g=await xke(d,t?.parentClientConfig?.region,m,{logger:l,profile:u}),E=!Ske(p);r=new e({...t,userAgentAppId:f,profile:u,region:g,requestHandler:E?p:void 0,logger:l})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new Hf(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ike(o),c={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};return a&&zd(c,"RESOLVED_ACCOUNT_ID","T"),zd(c,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),c}},"getDefaultRoleAssumerWithWebIdentity"),Ske=i(t=>t?.metadata?.handlerProtocol==="h2","isH2")});var Rke,Nke,Tke,Xbt,Pke=I(()=>{Bke();MD();Rke=i((t,e)=>e?class extends t{static{i(this,"CustomizableSTSClient")}constructor(n){super(n);for(let s of e)this.middlewareStack.use(s)}}:t,"getCustomizableStsClientCtor"),Nke=i((t={},e)=>wke(t,Rke(xp,e)),"getDefaultRoleAssumer"),Tke=i((t={},e)=>bke(t,Rke(xp,e)),"getDefaultRoleAssumerWithWebIdentity"),Xbt=i(t=>e=>t({roleAssumer:Nke(e),roleAssumerWithWebIdentity:Tke(e),...e}),"decorateDefaultCredentialProvider")});var b5={};en(b5,{$Command:()=>pn,AssumeRole$:()=>x5,AssumeRoleCommand:()=>Gf,AssumeRoleRequest$:()=>eke,AssumeRoleResponse$:()=>tke,AssumeRoleWithWebIdentity$:()=>w5,AssumeRoleWithWebIdentityCommand:()=>Hf,AssumeRoleWithWebIdentityRequest$:()=>rke,AssumeRoleWithWebIdentityResponse$:()=>nke,AssumedRoleUser$:()=>C5,Credentials$:()=>I5,ExpiredTokenException:()=>e0,ExpiredTokenException$:()=>YDe,IDPCommunicationErrorException:()=>i0,IDPCommunicationErrorException$:()=>WDe,IDPRejectedClaimException:()=>s0,IDPRejectedClaimException$:()=>jDe,InvalidIdentityTokenException:()=>o0,InvalidIdentityTokenException$:()=>JDe,MalformedPolicyDocumentException:()=>t0,MalformedPolicyDocumentException$:()=>KDe,PackedPolicyTooLargeException:()=>r0,PackedPolicyTooLargeException$:()=>XDe,PolicyDescriptorType$:()=>ske,ProvidedContext$:()=>oke,RegionDisabledException:()=>n0,RegionDisabledException$:()=>ZDe,STS:()=>qD,STSClient:()=>xp,STSServiceException:()=>fo,STSServiceException$:()=>VDe,Tag$:()=>ike,__Client:()=>Kn,decorateDefaultCredentialProvider:()=>Xbt,errorTypeRegistries:()=>E5,getDefaultRoleAssumer:()=>Nke,getDefaultRoleAssumerWithWebIdentity:()=>Tke});var S5=I(()=>{MD();yke();Eke();a0();A5();Cke();Pke();LD()});var B5=b(vke=>{"use strict";var Ry=(Tt(),W(kn)),Zbt=require("node:child_process"),eSt=require("node:util"),tSt=(wt(),W(Ds)),rSt=i((t,e,r)=>{if(e.Version!==1)throw Error(`Profile ${t} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${t} credential_process returned invalid credentials.`);if(e.Expiration){let o=new Date;if(new Date(e.Expiration){let n=e[t];if(e[t]){let s=n.credential_process;if(s!==void 0){let o=eSt.promisify(Ry.externalDataInterceptor?.getTokenRecord?.().exec??Zbt.exec);try{let{stdout:a}=await o(s),c;try{c=JSON.parse(a.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return rSt(t,c,e)}catch(a){throw new Ry.CredentialsProviderError(a.message,{logger:r})}}else throw new Ry.CredentialsProviderError(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new Ry.CredentialsProviderError(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},"resolveProcessCredentials"),sSt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await Ry.parseKnownFiles(t);return nSt(Ry.getProfileName({profile:t.profile??e?.profile}),r,t.logger)},"fromProcess");vke.fromProcess=sSt});var R5=b($D=>{"use strict";Object.defineProperty($D,"__esModule",{value:!0});$D.fromWebToken=void 0;var oSt=i(t=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:s,providerId:o,policyArns:a,policy:c,durationSeconds:l}=t,{roleAssumerWithWebIdentity:u}=t;if(!u){let{getDefaultRoleAssumerWithWebIdentity:d}=await Promise.resolve().then(()=>(S5(),b5));u=d({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...e?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return u({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:o,PolicyArns:a,Policy:c,DurationSeconds:l})},"fromWebToken");$D.fromWebToken=oSt});var Dke=b(GD=>{"use strict";Object.defineProperty(GD,"__esModule",{value:!0});GD.fromTokenFile=void 0;var iSt=(wt(),W(Ds)),_ke=(Tt(),W(kn)),aSt=require("node:fs"),cSt=R5(),Qke="AWS_WEB_IDENTITY_TOKEN_FILE",lSt="AWS_ROLE_ARN",uSt="AWS_ROLE_SESSION_NAME",dSt=i((t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[Qke],n=t?.roleArn??process.env[lSt],s=t?.roleSessionName??process.env[uSt];if(!r||!n)throw new _ke.CredentialsProviderError("Web identity configuration not specified",{logger:t.logger});let o=await(0,cSt.fromWebToken)({...t,webIdentityToken:_ke.externalDataInterceptor?.getTokenRecord?.()[r]??(0,aSt.readFileSync)(r,{encoding:"ascii"}),roleArn:n,roleSessionName:s})(e);return r===process.env[Qke]&&(0,iSt.setCredentialFeature)(o,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),o},"fromTokenFile");GD.fromTokenFile=dSt});var N5=b(Mu=>{"use strict";var HD=Dke(),zD=R5();Object.prototype.hasOwnProperty.call(HD,"__proto__")&&!Object.prototype.hasOwnProperty.call(Mu,"__proto__")&&Object.defineProperty(Mu,"__proto__",{enumerable:!0,value:HD.__proto__});Object.keys(HD).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(Mu,t)&&(Mu[t]=HD[t])});Object.prototype.hasOwnProperty.call(zD,"__proto__")&&!Object.prototype.hasOwnProperty.call(Mu,"__proto__")&&Object.defineProperty(Mu,"__proto__",{enumerable:!0,value:zD.__proto__});Object.keys(zD).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(Mu,t)&&(Mu[t]=zD[t])})});var Uke=b(Fke=>{"use strict";var wp=(Tt(),W(kn)),Fu=(wt(),W(Ds)),pSt=hDe(),mSt=i((t,e,r)=>{let n={EcsContainer:i(async s=>{let{fromHttp:o}=await Promise.resolve().then(()=>D(Lj())),{fromContainerMetadata:a}=await Promise.resolve().then(()=>D(NQ()));return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>wp.chain(o(s??{}),a(s))().then(T5)},"EcsContainer"),Ec2InstanceMetadata:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:o}=await Promise.resolve().then(()=>D(NQ()));return async()=>o(s)().then(T5)},"Ec2InstanceMetadata"),Environment:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:o}=await Promise.resolve().then(()=>D(bj()));return async()=>o(s)().then(T5)},"Environment")};if(t in n)return n[t];throw new wp.CredentialsProviderError(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),T5=i(t=>Fu.setCredentialFeature(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider"),fSt=i((t,{profile:e="default",logger:r}={})=>!!t&&typeof t=="object"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(ASt(t,{profile:e,logger:r})||hSt(t,{profile:e,logger:r})),"isAssumeRoleProfile"),ASt=i((t,{profile:e,logger:r})=>{let n=typeof t.source_profile=="string"&&typeof t.credential_source>"u";return n&&r?.debug?.(` ${e} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`),n},"isAssumeRoleWithSourceProfile"),hSt=i((t,{profile:e,logger:r})=>{let n=typeof t.credential_source=="string"&&typeof t.source_profile>"u";return n&&r?.debug?.(` ${e} isCredentialSourceProfile credential_source=${t.credential_source}`),n},"isCredentialSourceProfile"),gSt=i(async(t,e,r,n,s={},o)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let a=e[t],{source_profile:c,region:l}=a;if(!r.roleAssumer){let{getDefaultRoleAssumer:d}=await Promise.resolve().then(()=>(S5(),b5));r.roleAssumer=d({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:l??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(c&&c in s)throw new wp.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${wp.getProfileName(r)}. Profiles visited: `+Object.keys(s).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${c?`source_profile=[${c}]`:`profile=[${t}]`}`);let u=c?o(c,e,r,n,{...s,[c]:!0},kke(e[c]??{})):(await mSt(a.credential_source,t,r.logger)(r))();if(kke(a))return u.then(d=>Fu.setCredentialFeature(d,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let d={RoleArn:a.role_arn,RoleSessionName:a.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:a.external_id,DurationSeconds:parseInt(a.duration_seconds||"3600",10)},{mfa_serial:p}=a;if(p){if(!r.mfaCodeProvider)throw new wp.CredentialsProviderError(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});d.SerialNumber=p,d.TokenCode=await r.mfaCodeProvider(p)}let m=await u;return r.roleAssumer(m,d).then(f=>Fu.setCredentialFeature(f,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),kke=i(t=>!t.role_arn&&!!t.credential_source,"isCredentialSourceWithoutRoleArn"),ySt=i(t=>!!(t&&t.login_session),"isLoginProfile"),ESt=i(async(t,e,r)=>{let n=await pSt.fromLoginCredentials({...e,profile:t})({callerClientConfig:r});return Fu.setCredentialFeature(n,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials"),CSt=i(t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string","isProcessProfile"),ISt=i(async(t,e)=>Promise.resolve().then(()=>D(B5())).then(({fromProcess:r})=>r({...t,profile:e})().then(n=>Fu.setCredentialFeature(n,"CREDENTIALS_PROFILE_PROCESS","v"))),"resolveProcessCredentials"),xSt=i(async(t,e,r={},n)=>{let{fromSSO:s}=await Promise.resolve().then(()=>D(GJ()));return s({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(o=>e.sso_session?Fu.setCredentialFeature(o,"CREDENTIALS_PROFILE_SSO","r"):Fu.setCredentialFeature(o,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),wSt=i(t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),"isSsoProfile"),Lke=i(t=>!!t&&typeof t=="object"&&typeof t.aws_access_key_id=="string"&&typeof t.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1,"isStaticCredsProfile"),Oke=i(async(t,e)=>{e?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return Fu.setCredentialFeature(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials"),bSt=i(t=>!!t&&typeof t=="object"&&typeof t.web_identity_token_file=="string"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1,"isWebIdentityProfile"),SSt=i(async(t,e,r)=>Promise.resolve().then(()=>D(N5())).then(({fromTokenFile:n})=>n({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity,logger:e.logger,parentClientConfig:e.parentClientConfig})({callerClientConfig:r}).then(s=>Fu.setCredentialFeature(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q"))),"resolveWebIdentityCredentials"),Mke=i(async(t,e,r,n,s={},o=!1)=>{let a=e[t];if(Object.keys(s).length>0&&Lke(a))return Oke(a,r);if(o||fSt(a,{profile:t,logger:r.logger}))return gSt(t,e,r,n,s,Mke);if(Lke(a))return Oke(a,r);if(bSt(a))return SSt(a,r,n);if(CSt(a))return ISt(r,t);if(wSt(a))return await xSt(t,a,r,n);if(ySt(a))return ESt(t,r,n);throw new wp.CredentialsProviderError(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData"),BSt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await wp.parseKnownFiles(t);return Mke(wp.getProfileName({profile:t.profile??e?.profile}),r,t,e)},"fromIni");Fke.fromIni=BSt});var v5=b(VD=>{"use strict";var P5=bj(),Ny=(Tt(),W(kn)),qke="AWS_EC2_METADATA_DISABLED",RSt=i(async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:s}=await Promise.resolve().then(()=>D(NQ()));if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:o}=await Promise.resolve().then(()=>D(Lj()));return Ny.chain(o(t),n(t))}return process.env[qke]&&process.env[qke]!=="false"?async()=>{throw new Ny.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),s(t))},"remoteProvider");function NSt(t,e){let r=TSt(t),n,s,o,a=i(async c=>{if(c?.forceRefresh)return await r(c);if(o?.expiration&&o?.expiration?.getTime(){o=l}).finally(()=>{s=void 0}));else return n=r(c).then(l=>{o=l}).finally(()=>{n=void 0}),a(c);return o},"provider");return a}i(NSt,"memoizeChain");var TSt=i(t=>async e=>{let r;for(let n of t)try{return await n(e)}catch(s){if(r=s,s?.tryNextLink)continue;throw s}throw r},"internalCreateChain"),$ke=!1,PSt=i((t={})=>NSt([async()=>{if(t.profile??process.env[Ny.ENV_PROFILE])throw process.env[P5.ENV_KEY]&&process.env[P5.ENV_SECRET]&&($ke||((t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING: +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(ri,"Gt");function rFe(C,h,y,N){let B=this.extractAttributes(C);if(N.push(h,B),this.checkStopNode(N)){let L=this.buildRawContent(C),_=this.buildAttributesForStopNode(C);return N.pop(),this.buildObjectNode(L,h,_,y)}let v=this.j2x(C,y+1,N);return N.pop(),C[this.options.textNodeName]!==void 0&&Object.keys(C).length===1?this.buildTextValNode(C[this.options.textNodeName],h,v.attrStr,y,N):this.buildObjectNode(v.val,h,v.attrStr,y)}i(rFe,"Bt");function nFe(C){return this.options.indentBy.repeat(C)}i(nFe,"Ut");function sFe(C){return!(!C.startsWith(this.options.attributeNamePrefix)||C===this.options.textNodeName)&&C.substr(this.attrPrefixLen)}i(sFe,"Wt"),ri.prototype.build=function(C){if(this.options.preserveOrder)return KMe(C,this.options);{Array.isArray(C)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(C={[this.options.arrayNodeName]:C});let h=new ZL;return this.j2x(C,0,h).val}},ri.prototype.j2x=function(C,h,y){let N="",B="";if(this.options.maxNestedTags&&y.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let v=this.options.jPath?y.toString():y,L=this.checkStopNode(y);for(let _ in C)if(Object.prototype.hasOwnProperty.call(C,_))if(C[_]===void 0)this.isAttribute(_)&&(B+="");else if(C[_]===null)this.isAttribute(_)||_===this.options.cdataPropName||_===this.options.commentPropName?B+="":_[0]==="?"?B+=this.indentate(h)+"<"+_+"?"+this.tagEndChar:B+=this.indentate(h)+"<"+_+"/"+this.tagEndChar;else if(C[_]instanceof Date)B+=this.buildTextValNode(C[_],_,"",h,y);else if(typeof C[_]!="object"){let O=this.isAttribute(_);if(O&&!this.ignoreAttributesFn(O,v))N+=this.buildAttrPairStr(O,""+C[_],L);else if(!O)if(_===this.options.textNodeName){let k=this.options.tagValueProcessor(_,""+C[_]);B+=this.replaceEntitiesValue(k)}else{y.push(_);let k=this.checkStopNode(y);if(y.pop(),k){let U=""+C[_];B+=U===""?this.indentate(h)+"<"+_+this.closeTag(_)+this.tagEndChar:this.indentate(h)+"<"+_+">"+U+""+_e+"${B}`;else if(typeof B=="object"&&B!==null){let v=this.buildRawContent(B),L=this.buildAttributesForStopNode(B);h+=v===""?`<${y}${L}/>`:`<${y}${L}>${v}`}}else if(typeof N=="object"&&N!==null){let B=this.buildRawContent(N),v=this.buildAttributesForStopNode(N);h+=B===""?`<${y}${v}/>`:`<${y}${v}>${B}`}else h+=`<${y}>${N}`}return h},ri.prototype.buildAttributesForStopNode=function(C){if(!C||typeof C!="object")return"";let h="";if(this.options.attributesGroupName&&C[this.options.attributesGroupName]){let y=C[this.options.attributesGroupName];for(let N in y){if(!Object.prototype.hasOwnProperty.call(y,N))continue;let B=N.startsWith(this.options.attributeNamePrefix)?N.substring(this.options.attributeNamePrefix.length):N,v=y[N];v===!0&&this.options.suppressBooleanAttributes?h+=" "+B:h+=" "+B+'="'+v+'"'}}else for(let y in C){if(!Object.prototype.hasOwnProperty.call(C,y))continue;let N=this.isAttribute(y);if(N){let B=C[y];B===!0&&this.options.suppressBooleanAttributes?h+=" "+N:h+=" "+N+'="'+B+'"'}}return h},ri.prototype.buildObjectNode=function(C,h,y,N){if(C==="")return h[0]==="?"?this.indentate(N)+"<"+h+y+"?"+this.tagEndChar:this.indentate(N)+"<"+h+y+this.closeTag(h)+this.tagEndChar;{let B="`+this.newLine:this.indentate(N)+"<"+h+y+v+this.tagEndChar+C+this.indentate(N)+B:this.indentate(N)+"<"+h+y+v+">"+C+B}},ri.prototype.closeTag=function(C){let h="";return this.options.unpairedTags.indexOf(C)!==-1?this.options.suppressUnpairedNode||(h="/"):h=this.options.suppressEmptyNode?"/":`>`+this.newLine}if(this.options.commentPropName!==!1&&h===this.options.commentPropName){let v=tK(C);return this.indentate(N)+``+this.newLine}if(h[0]==="?")return this.indentate(N)+"<"+h+y+"?"+this.tagEndChar;{let v=this.options.tagValueProcessor(h,C);return v=this.replaceEntitiesValue(v),v===""?this.indentate(N)+"<"+h+y+this.closeTag(h)+this.tagEndChar:this.indentate(N)+"<"+h+y+">"+v+"0&&this.options.processEntities)for(let h=0;h{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.EntityDecoderImpl=Da.CURRENCY=Da.COMMON_HTML=Da.XML=void 0;Da.XML={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Da.COMMON_HTML={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"};Da.CURRENCY={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Dxt=new Set("!?\\/[]$%{}^&*()<>|+");function Ove(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Dxt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}i(Ove,"validateEntityName");function gJ(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let o=s.val;typeof o=="string"&&(e[n]=o)}}return e}i(gJ,"mergeEntityMaps");var _f="external",rD="base",yJ="all";function kxt(t){return!t||t===_f?new Set([_f]):t===yJ?new Set([yJ]):t===rD?new Set([rD]):Array.isArray(t)?new Set(t):new Set([_f])}i(kxt,"parseLimitTiers");var po=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Lxt=new Set([9,10,13]);function Oxt(t){if(!t)return{xmlVersion:1,onLevel:po.allow,nullLevel:po.remove};let e=t.xmlVersion===1.1?1.1:1,r=po[t.onNCR??"allow"]??po.allow,n=po[t.nullNCR??"remove"]??po.remove,s=Math.max(n,po.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}i(Oxt,"parseNCRConfig");var Mxt=class{static{i(this,"EntityDecoderImpl")}_limit;_maxTotalExpansions;_maxExpandedLength;_postCheck;_limitTiers;_numericAllowed;_baseMap;_externalMap;_inputMap;_totalExpansions;_expandedLength;_removeSet;_leaveSet;_ncrXmlVersion;_ncrOnLevel;_ncrNullLevel;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=kxt(this._limit.applyLimitsTo??_f),this._numericAllowed=e.numericAllowed??!0,this._baseMap=gJ(Da.XML,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=Oxt(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))Ove(r);this._externalMap=gJ(e)}addExternalEntity(e,r){Ove(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=gJ(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e==="1.1"||e===1.1?1.1:1}decode(e){if(typeof e!="string"||e.length===0)return e;let r=e,n=[],s=e.length,o=0,a=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;a=s||e.charCodeAt(p)!==59){a++;continue}let m=e.slice(a+1,p);if(m.length===0){a++;continue}let f,g;if(this._removeSet.has(m))f="",g===void 0&&(g=_f);else if(this._leaveSet.has(m)){a++;continue}else if(m.charCodeAt(0)===35){let E=this._resolveNCR(m);if(E===void 0){a++;continue}f=E,g=rD}else{let E=this._resolveName(m);f=E?.value,g=E?.tier}if(f===void 0){a++;continue}if(a>o&&n.push(e.slice(o,a)),n.push(f),o=p+1,a=o,u&&this._tierCounts(g)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let E=f.length-(m.length+2);if(E>0&&(this._expandedLength+=E,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}o=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!Lxt.has(e)?po.remove:-1}_applyNCRAction(e,r,n){switch(e){case po.allow:return String.fromCodePoint(n);case po.remove:return"";case po.leave:return;case po.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 s=this._classifyNCR(n);if(!this._numericAllowed&&s{"use strict";Object.defineProperty(EJ,"__esModule",{value:!0});EJ.parseXML=qxt;var Fxt=Lve(),nD=Mve(),sD=new nD.EntityDecoderImpl({namedEntities:{...nD.XML,...nD.COMMON_HTML,...nD.CURRENCY},numericAllowed:!0,limit:{maxTotalExpansions:1/0},ncr:{xmlVersion:1.1}}),Uxt=new Fxt.XMLParser({attributeNamePrefix:"",processEntities:{enabled:!0,maxTotalExpansions:1/0},htmlEntities:!0,entityDecoder:{setExternalEntities:i(t=>{sD.setExternalEntities(t)},"setExternalEntities"),addInputEntities:i(t=>{sD.addInputEntities(t)},"addInputEntities"),reset:i(()=>{sD.reset()},"reset"),decode:i(t=>sD.decode(t),"decode"),setXmlVersion:i(t=>{},"setXmlVersion")},ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:i((t,e)=>e.trim()===""&&e.includes(` +`)?"":void 0,"tagValueProcessor"),maxNestedTags:1/0});function qxt(t){return Uxt.parse(t,!0)}i(qxt,"parseXML")});var aD=b(iD=>{"use strict";var $xt=Fve(),Gxt=/[&<>"]/g,Hxt={"&":"&","<":"<",">":">",'"':"""};function zxt(t){return t.replace(Gxt,e=>Hxt[e])}i(zxt,"escapeAttribute");var Vxt=/[&"'<>\r\n\u0085\u2028]/g,Yxt={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","\x85":"…","\u2028":"
"};function Wxt(t){return t.replace(Vxt,e=>Yxt[e])}i(Wxt,"escapeElement");var oD=class{static{i(this,"XmlText")}value;constructor(e){this.value=e}toString(){return Wxt(""+this.value)}},CJ=class t{static{i(this,"XmlNode")}name;children;attributes={};static of(e,r,n){let s=new t(e);return r!==void 0&&s.addChildNode(new oD(r)),n!==void 0&&s.withName(n),s}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let s=t.of(r,e[r]).withName(n);this.c(s)}}l(e,r,n,s){e[r]!=null&&s().map(a=>{a.withName(n),this.c(a)})}lc(e,r,n,s){if(e[r]!=null){let o=s(),a=new t(n);o.map(c=>{a.c(c)}),this.c(a)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let s of Object.keys(n)){let o=n[s];o!=null&&(r+=` ${s}="${zxt(""+o)}"`)}return r+=e?`>${this.children.map(s=>s.toString()).join("")}`:"/>"}};iD.parseXML=$xt.parseXML;iD.XmlNode=CJ;iD.XmlText=oD});var Uve,Qf,cD=I(()=>{Uve=D(aD());Ce();De();Ct();st();yp();cJ();Qf=class extends os{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new bf(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=Ee.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(u=>!!u.getMemberTraits().eventPayload)){let u={},d=Object.keys(o)[0];return o[d].isBlobSchema()?u[d]=r:u[d]=this.read(o[d],r),u}let c=(this.serdeContext?.utf8Encoder??gr)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=Ee.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[u];if(d==null)return l;let p=Array.isArray(d)?d:[d];for(let m of p)l.push(this.readSchema(c,m));return l}let a={};if(n.isMapSchema()){let c=n.getKeySchema(),l=n.getValueSchema(),u;o?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let d=c.getMergedTraits().xmlName??"key",p=l.getMergedTraits().xmlName??"value";for(let m of u){let f=m[d],g=m[p];a[f]=this.readSchema(l,g)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new Sy(r,a));for(let[u,d]of n.structIterator()){let p=d.getMergedTraits(),m=p.httpPayload?p.xmlName??d.getName():d.getMemberTraits().xmlName??u;c&&l.mark(m),r[m]!=null&&(a[u]=this.readSchema(d,r[m]))}return c&&l.writeUnknown(),a}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,Uve.parseXML)(e)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:e}),a}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),Nf(o)}return{}}}});var Cw,IJ=I(()=>{De();Ct();st();st();yp();Cw=class extends os{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=Ee.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??hr)(r)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):s.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(Ra()));else if(s.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(s.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof qt?r.string:String(r)));else if(s.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),Ko(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(ba(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(s.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(s.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let o=s.getValueSchema(),a=this.settings.flattenLists||s.getMergedTraits().xmlFlattened,c=1;for(let l of r){if(l==null)continue;let u=o.getMergedTraits(),d=this.getKey("member",u.xmlName,u.ec2QueryName),p=a?`${n}${c}`:`${n}${d}.${c}`;this.write(o,l,p),++c}}}else if(s.isMapSchema()){if(r&&typeof r=="object"){let o=s.getKeySchema(),a=s.getValueSchema(),c=s.getMergedTraits().xmlFlattened,l=1;for(let u in r){let d=r[u];if(d==null)continue;let p=o.getMergedTraits(),m=this.getKey("key",p.xmlName,p.ec2QueryName),f=c?`${n}${l}.${m}`:`${n}entry.${l}.${m}`,g=a.getMergedTraits(),E=this.getKey("value",g.xmlName,g.ec2QueryName),x=c?`${n}${l}.${E}`:`${n}entry.${l}.${E}`;this.write(o,u,f),this.write(a,d,x),++l}}}else if(s.isStructSchema()){if(r&&typeof r=="object"){let o=!1;for(let[a,c]of s.structIterator()){if(r[a]==null&&!c.isIdempotencyToken())continue;let l=c.getMergedTraits(),u=this.getKey(a,l.xmlName,l.ec2QueryName,"struct"),d=`${n}${u}`;this.write(c,r[a],d),o=!0}if(!o&&s.isUnionSchema()){let{$unknown:a}=r;if(Array.isArray(a)){let[c,l]=a,u=`${n}${c}`;this.write(15,l,u)}}}}else if(!s.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${s.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,r,n,s){let{ec2:o,capitalizeKeys:a}=this.settings;if(o&&n)return n;let c=r??e;return a&&s==="struct"?c[0].toUpperCase()+c.slice(1):c}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${Jc(e)}=`}writeValue(e){this.buffer+=Jc(e)}}});var Df,xJ=I(()=>{De();Ct();by();cD();IJ();Df=class extends Bu{static{i(this,"AwsQueryProtocol")}options;serializer;deserializer;mixin=new Hi;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Cw(r),this.deserializer=new Qf(r)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]="application/x-www-form-urlencoded",(xa(e.input)==="unit"||!s.body)&&(s.body="");let o=e.name.split("#")[1]??e.name;return s.body=`Action=${o}&Version=${this.options.version}`+s.body,s.body.endsWith("&")&&(s.body=s.body.slice(-1)),s}async deserializeResponse(e,r,n){let s=this.deserializer,o=Ee.of(e.output),a={};if(n.statusCode>=300){let d=await lo(n.body,r);d.byteLength>0&&Object.assign(a,await s.read(15,d)),await this.handleError(e,r,n,a,this.deserializeMetadata(n))}for(let d in n.headers){let p=n.headers[d];delete n.headers[d],n.headers[d.toLowerCase()]=p}let c=e.name.split("#")[1]??e.name,l=o.isStructSchema()&&this.useNestedResult()?c+"Result":void 0,u=await lo(n.body,r);return u.byteLength>0&&Object.assign(a,await s.read(o,u,l)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,r,n,s,o){let a=this.loadQueryErrorCode(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let c=this.loadQueryError(s)??{},l=this.loadQueryErrorMessage(s);c.message=l,c.Error={Type:c.Type,Code:c.Code,Message:l};let{errorSchema:u,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,c,o,this.mixin.findQueryCompatibleError),p=Ee.of(u),m=this.compositeErrorRegistry.getErrorCtor(u)??Error,f=new m({}),g={Type:c.Error.Type,Code:c.Error.Code,Error:c.Error};for(let[E,x]of p.structIterator()){let w=x.getMergedTraits().xmlName??E,S=c[w]??s[w];g[E]=this.deserializer.readSchema(x,S)}throw this.mixin.decorateServiceException(Object.assign(f,d,{$fault:p.getMergedTraits().error,message:l},g),s)}loadQueryErrorCode(e,r){let n=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let r=this.loadQueryError(e);return r?.message??r?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var wJ,qve=I(()=>{xJ();wJ=class extends Df{static{i(this,"AwsEc2QueryProtocol")}options;constructor(e){super(e),this.options=e;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var $ve=I(()=>{});var Gve,Hve,jxt,bJ,SJ=I(()=>{Gve=D(aD());Ce();lJ();Hve=i((t,e)=>KQ(t,e).then(r=>{if(r.length){let n;try{n=(0,Gve.parseXML)(r)}catch(c){throw c&&typeof c=="object"&&Object.defineProperty(c,"$responseBodyText",{value:r}),c}let s="#text",o=Object.keys(n)[0],a=n[o];return a[s]&&(a[o]=a[s],delete a[s]),Nf(a)}return{}}),"parseXmlBody"),jxt=i(async(t,e)=>{let r=await Hve(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},"parseXmlErrorBody"),bJ=i((t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var Ls,Iw,BJ=I(()=>{Ls=D(aD());De();Ct();st();st();yp();Iw=class extends os{static{i(this,"XmlShapeSerializer")}settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=Ee.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??Gr)(r);else{this.buffer=this.writeStruct(n,r,void 0);let s=n.getMergedTraits();s.httpPayload&&!s.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,r,n){let s=e.getMergedTraits(),o=e.isMemberSchema()&&!s.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():s.xmlName??e.getName();if(!o||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=Ls.XmlNode.of(o),[c,l]=this.getXmlnsAttribute(e,n);for(let[d,p]of e.structIterator()){let m=r[d];if(m!=null||p.isIdempotencyToken()){if(p.getMergedTraits().xmlAttribute){a.addAttribute(p.getMergedTraits().xmlName??d,this.writeSimple(p,m));continue}if(p.isListSchema())this.writeList(p,m,a,l);else if(p.isMapSchema())this.writeMap(p,m,a,l);else if(p.isStructSchema())a.addChildNode(this.writeStruct(p,m,l));else{let f=Ls.XmlNode.of(p.getMergedTraits().xmlName??p.getMemberName());this.writeSimpleInto(p,m,f,l),a.addChildNode(f)}}}let{$unknown:u}=r;if(u&&e.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){let[d,p]=u,m=Ls.XmlNode.of(d);if(typeof p!="string")if(r instanceof Ls.XmlNode||r instanceof Ls.XmlText)a.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,p,m,l),a.addChildNode(m)}return l&&a.addAttribute(c,l),a}writeList(e,r,n,s){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let o=e.getMergedTraits(),a=e.getValueSchema(),c=a.getMergedTraits(),l=!!c.sparse,u=!!o.xmlFlattened,[d,p]=this.getXmlnsAttribute(e,s),m=i((f,g)=>{if(a.isListSchema())this.writeList(a,Array.isArray(g)?g:[g],f,p);else if(a.isMapSchema())this.writeMap(a,g,f,p);else if(a.isStructSchema()){let E=this.writeStruct(a,g,p);f.addChildNode(E.withName(u?o.xmlName??e.getMemberName():c.xmlName??"member"))}else{let E=Ls.XmlNode.of(u?o.xmlName??e.getMemberName():c.xmlName??"member");this.writeSimpleInto(a,g,E,p),f.addChildNode(E)}},"writeItem");if(u)for(let f of r)(l||f!=null)&&m(n,f);else{let f=Ls.XmlNode.of(o.xmlName??e.getMemberName());p&&f.addAttribute(d,p);for(let g of r)(l||g!=null)&&m(f,g);n.addChildNode(f)}}writeMap(e,r,n,s,o=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),c=e.getKeySchema(),u=c.getMergedTraits().xmlName??"key",d=e.getValueSchema(),p=d.getMergedTraits(),m=p.xmlName??"value",f=!!p.sparse,g=!!a.xmlFlattened,[E,x]=this.getXmlnsAttribute(e,s),w=i((S,P,Q)=>{let q=Ls.XmlNode.of(u,P),[M,V]=this.getXmlnsAttribute(c,x);V&&q.addAttribute(M,V),S.addChildNode(q);let pe=Ls.XmlNode.of(m);d.isListSchema()?this.writeList(d,Q,pe,x):d.isMapSchema()?this.writeMap(d,Q,pe,x,!0):d.isStructSchema()?pe=this.writeStruct(d,Q,x):this.writeSimpleInto(d,Q,pe,x),S.addChildNode(pe)},"addKeyValue");if(g)for(let S in r){let P=r[S];if(f||P!=null){let Q=Ls.XmlNode.of(a.xmlName??e.getMemberName());w(Q,S,P),n.addChildNode(Q)}}else{let S;o||(S=Ls.XmlNode.of(a.xmlName??e.getMemberName()),x&&S.addAttribute(E,x),n.addChildNode(S));for(let P in r){let Q=r[P];if(f||Q!=null){let q=Ls.XmlNode.of("entry");w(q,P,Q),(o?n:S).addChildNode(q)}}}}writeSimple(e,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=Ee.of(e),s=null;if(r&&typeof r=="object")if(n.isBlobSchema())s=(this.serdeContext?.base64Encoder??hr)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(Ko(n,this.settings)){case 5:s=r.toISOString().replace(".000Z","Z");break;case 6:s=ba(r);break;case 7:s=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),s=ba(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof qt?r.string:String(r);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(s=String(r)),n.isStringSchema()&&(r===void 0&&n.isIdempotencyToken()?s=Ra():s=String(r)),s===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${r}`);return s}writeSimpleInto(e,r,n,s){let o=this.writeSimple(e,r),a=Ee.of(e),c=new Ls.XmlText(o),[l,u]=this.getXmlnsAttribute(a,s);u&&n.addAttribute(l,u),n.addChildNode(c)}getXmlnsAttribute(e,r){let n=e.getMergedTraits(),[s,o]=n.xmlNamespace??[];return o&&o!==r?[s?`xmlns:${s}`:"xmlns",o]:[void 0,void 0]}}});var xw,RJ=I(()=>{yp();cD();BJ();xw=class extends os{static{i(this,"XmlCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Iw(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Qf(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var NJ,zve=I(()=>{De();Ct();by();SJ();RJ();NJ=class extends wf{static{i(this,"AwsRestXmlProtocol")}codec;serializer;deserializer;mixin=new Hi;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new xw(r),this.serializer=new Bf(this.codec.createSerializer(),r),this.deserializer=new Sf(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n),o=Ee.of(e.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return typeof s.body=="string"&&s.headers["content-type"]===this.getDefaultContentType()&&!s.body.startsWith("'+s.body),s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=bJ(n,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let E of Object.keys(s.Error))s[E]=s.Error[E],E.toLowerCase()==="message"&&(s.message=s.Error[E]);s.RequestId&&!o.requestId&&(o.requestId=s.RequestId);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o),u=Ee.of(c),d=s.Error?.message??s.Error?.Message??s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,m=new p({});await this.deserializeHttpMessage(c,r,n,s);let f={},g=this.codec.createDeserializer();for(let[E,x]of u.structIterator()){let w=x.getMergedTraits().xmlName??E,S=s.Error?.[w]??s[w];f[E]=g.readSchema(x,S)}throw this.mixin.decorateServiceException(Object.assign(m,l,{$fault:u.getMergedTraits().error,message:d},f),s)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,r]of e.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var TJ={};rn(TJ,{AwsEc2QueryProtocol:()=>wJ,AwsJson1_0Protocol:()=>AJ,AwsJson1_1Protocol:()=>hJ,AwsJsonRpcProtocol:()=>vf,AwsQueryProtocol:()=>Df,AwsRestJsonProtocol:()=>Mu,AwsRestXmlProtocol:()=>NJ,AwsSmithyRpcV2CborProtocol:()=>aJ,JsonCodec:()=>Pf,JsonShapeDeserializer:()=>yw,JsonShapeSerializer:()=>Ew,QueryShapeSerializer:()=>Cw,XmlCodec:()=>xw,XmlShapeDeserializer:()=>Qf,XmlShapeSerializer:()=>Iw,_toBool:()=>Pxt,_toNum:()=>vxt,_toStr:()=>Txt,awsExpectUnion:()=>Qxt,loadJsonRpcErrorCode:()=>pJ,loadRestJsonErrorCode:()=>dJ,loadRestXmlErrorCode:()=>bJ,parseJsonBody:()=>XQ,parseJsonErrorBody:()=>_xt,parseXmlBody:()=>Hve,parseXmlErrorBody:()=>jxt});var kf=I(()=>{wve();bve();vve();_ve();tD();Qve();eD();mJ();fJ();Dve();gw();qve();xJ();$ve();IJ();zve();RJ();cD();BJ();SJ()});var ww,Lf,lD,Vve,Jve,uD,PJ,Yve,vJ,By,Wve,jve,Jxt,mo,Kxt,Kve,Xve=I(()=>{wt();ww="ref",Lf=-1,lD=!0,Vve="isSet",Jve="PartitionResult",uD="booleanEquals",PJ="getAttr",Yve={[ww]:"Endpoint"},vJ={[ww]:Jve},By={},Wve=[{[ww]:"Region"}],jve={conditions:[[Vve,[Yve]],[Vve,Wve],["aws.partition",Wve,Jve],[uD,[{[ww]:"UseFIPS"},lD]],[uD,[{[ww]:"UseDualStack"},lD]],[uD,[{fn:PJ,argv:[vJ,"supportsDualStack"]},lD]],[uD,[{fn:PJ,argv:[vJ,"supportsFIPS"]},lD]],["stringEquals",[{fn:PJ,argv:[vJ,"name"]},"aws-us-gov"]]],results:[[Lf],[Lf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Lf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Yve,By],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",By],[Lf,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",By],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",By],[Lf,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",By],[Lf,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",By],[Lf,"Invalid Configuration: Missing Region"]]},Jxt=2,mo=1e8,Kxt=new Int32Array([-1,1,-1,0,13,3,1,4,mo+12,2,5,mo+12,3,8,6,4,7,mo+11,5,mo+9,mo+10,4,11,9,6,10,mo+8,7,mo+6,mo+7,5,12,mo+5,6,mo+4,mo+5,3,mo+1,14,4,mo+2,mo+3]),Kve=Li.from(Kxt,Jxt,jve.conditions,jve.results)});var Xxt,Zve,e_e=I(()=>{bt();wt();Xve();Xxt=new Oi({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Zve=i((t,e={})=>Xxt.get(t,()=>jc(Kve,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");co.aws=Qa});var bn,dD=I(()=>{Ce();bn=class t extends Ui{static{i(this,"SSOOIDCServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var bw,Sw,Bw,Rw,Nw,Tw,Pw,vw,_w,Qw,Dw,_J=I(()=>{dD();bw=class t extends bn{static{i(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Sw=class t extends bn{static{i(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Bw=class t extends bn{static{i(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Rw=class t extends bn{static{i(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Nw=class t extends bn{static{i(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Tw=class t extends bn{static{i(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Pw=class t extends bn{static{i(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},vw=class t extends bn{static{i(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},_w=class t extends bn{static{i(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Qw=class t extends bn{static{i(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Dw=class t extends bn{static{i(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}}});var Zxt,ewt,twt,rwt,nwt,swt,owt,iwt,awt,cwt,lwt,uwt,dwt,pwt,mwt,fwt,Awt,hwt,gwt,ywt,wl,Ewt,Cwt,Iwt,xwt,wwt,Pr,bwt,ka,Swt,Bwt,La,Rwt,t_e,r_e,Nwt,n_e,Twt,Pwt,vwt,tn,s_e,o_e,zi,i_e,a_e,c_e,l_e,u_e,d_e,p_e,m_e,f_e,A_e,h_e,QJ,_wt,Qwt,Dwt,kwt,g_e,y_e,E_e,DJ,pD=I(()=>{Ct();_J();dD();Zxt="AccessDeniedException",ewt="AuthorizationPendingException",twt="AccessToken",rwt="ClientSecret",nwt="CreateToken",swt="CreateTokenRequest",owt="CreateTokenResponse",iwt="CodeVerifier",awt="ExpiredTokenException",cwt="InvalidClientException",lwt="InvalidGrantException",uwt="InvalidRequestException",dwt="InternalServerException",pwt="InvalidScopeException",mwt="IdToken",fwt="RefreshToken",Awt="SlowDownException",hwt="UnauthorizedClientException",gwt="UnsupportedGrantTypeException",ywt="accessToken",wl="client",Ewt="clientId",Cwt="clientSecret",Iwt="codeVerifier",xwt="code",wwt="deviceCode",Pr="error",bwt="expiresIn",ka="error_description",Swt="grantType",Bwt="http",La="httpError",Rwt="idToken",t_e="reason",r_e="refreshToken",Nwt="redirectUri",n_e="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",Twt="scope",Pwt="server",vwt="tokenType",tn="com.amazonaws.ssooidc",s_e=yr.for(n_e),o_e=[-3,n_e,"SSOOIDCServiceException",0,[],[]];s_e.registerError(o_e,bn);zi=yr.for(tn),i_e=[-3,tn,Zxt,{[Pr]:wl,[La]:400},[Pr,t_e,ka],[0,0,0]];zi.registerError(i_e,bw);a_e=[-3,tn,ewt,{[Pr]:wl,[La]:400},[Pr,ka],[0,0]];zi.registerError(a_e,Sw);c_e=[-3,tn,awt,{[Pr]:wl,[La]:400},[Pr,ka],[0,0]];zi.registerError(c_e,Bw);l_e=[-3,tn,dwt,{[Pr]:Pwt,[La]:500},[Pr,ka],[0,0]];zi.registerError(l_e,Rw);u_e=[-3,tn,cwt,{[Pr]:wl,[La]:401},[Pr,ka],[0,0]];zi.registerError(u_e,Nw);d_e=[-3,tn,lwt,{[Pr]:wl,[La]:400},[Pr,ka],[0,0]];zi.registerError(d_e,Tw);p_e=[-3,tn,uwt,{[Pr]:wl,[La]:400},[Pr,t_e,ka],[0,0,0]];zi.registerError(p_e,Pw);m_e=[-3,tn,pwt,{[Pr]:wl,[La]:400},[Pr,ka],[0,0]];zi.registerError(m_e,vw);f_e=[-3,tn,Awt,{[Pr]:wl,[La]:400},[Pr,ka],[0,0]];zi.registerError(f_e,_w);A_e=[-3,tn,hwt,{[Pr]:wl,[La]:400},[Pr,ka],[0,0]];zi.registerError(A_e,Qw);h_e=[-3,tn,gwt,{[Pr]:wl,[La]:400},[Pr,ka],[0,0]];zi.registerError(h_e,Dw);QJ=[s_e,zi],_wt=[0,tn,twt,8,0],Qwt=[0,tn,rwt,8,0],Dwt=[0,tn,iwt,8,0],kwt=[0,tn,mwt,8,0],g_e=[0,tn,fwt,8,0],y_e=[3,tn,swt,0,[Ewt,Cwt,Swt,wwt,xwt,r_e,Twt,Nwt,Iwt],[0,[()=>Qwt,0],0,0,0,[()=>g_e,0],64,0,[()=>Dwt,0]],3],E_e=[3,tn,owt,0,[ywt,vwt,bwt,r_e,Rwt],[[()=>_wt,0],0,1,[()=>g_e,0],[()=>kwt,0]]],DJ=[9,tn,nwt,{[Bwt]:["POST","/token",200]},()=>y_e,()=>E_e]});var C_e,I_e=I(()=>{en();kf();Ds();Ce();De();st();Hj();e_e();pD();C_e=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Gr,base64Encoder:t?.base64Encoder??hr,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Zve,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??cve,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Mn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Xo}],logger:t?.logger??new uo,protocol:t?.protocol??Mu,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:QJ,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",urlParser:t?.urlParser??rs,utf8Decoder:t?.utf8Decoder??Hr,utf8Encoder:t?.utf8Encoder??gr}),"getRuntimeConfig")});var mD,x_e,w_e=I(()=>{pw();bt();en();Ce();Tt();Qs();st();mD=D(_u());I_e();x_e=i(t=>{ol(process.version);let e=Wc(t),r=i(()=>e().then(sl),"defaultConfigProvider"),n=C_e(t);qc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??nt(vu,s),bodyLengthChecker:t?.bodyLengthChecker??Gc,defaultUserAgentProvider:t?.defaultUserAgentProvider??_a({serviceId:n.serviceId,clientVersion:mp.version}),maxAttempts:t?.maxAttempts??nt(cl,t),region:t?.region??nt(kn,{...vs,...s}),requestHandler:mD.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??nt({...ul,default:i(async()=>(await r()).retryMode||$i,"default")},t),sha256:t?.sha256??Fi.bind(null,"sha256"),streamCollector:t?.streamCollector??mD.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??nt(Vc,s),useFipsEndpoint:t?.useFipsEndpoint??nt(Yc,s),userAgentAppId:t?.userAgentAppId??nt(yl,s)}},"getRuntimeConfig")});var b_e,S_e,B_e=I(()=>{b_e=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),S_e=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var R_e,N_e=I(()=>{bt();Ce();De();B_e();R_e=i((t,e)=>{let r=Object.assign(El(t),Na(t),Zc(t),b_e(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Cl(r),il(r),el(r),S_e(r))},"resolveRuntimeExtensions")});var kw,kJ=I(()=>{bt();Ds();Ce();Tt();wt();De();Qs();Ct();Hj();zj();w_e();N_e();kw=class extends Kn{static{i(this,"SSOOIDCClient")}config;constructor(...[e]){let r=x_e(e||{});super(r),this.initConfig=r;let n=uve(r),s=Al(n),o=ll(s),a=jo(o),c=a,l=wu(c),u=lve(l),d=R_e(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Ru(this.config)),this.middlewareStack.use(hl(this.config)),this.middlewareStack.use(Nu(this.config)),this.middlewareStack.use(tl(this.config)),this.middlewareStack.use(dl(this.config)),this.middlewareStack.use(pl(this.config)),this.middlewareStack.use(ml(this.config)),this.middlewareStack.use(Tu(this.config,{httpAuthSchemeParametersProvider:ave,identityProviderConfigProvider:i(async p=>new va({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Pu(this.config))}destroy(){super.destroy()}}});var Lw,LJ=I(()=>{Ce();wt();zj();pD();Lw=class extends mn.classBuilder().ep(dve).m(function(e,r,n,s){return[Ba(n,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(DJ).build(){static{i(this,"CreateTokenCommand")}}});var Lwt,fD,T_e=I(()=>{Ce();LJ();kJ();Lwt={CreateTokenCommand:Lw},fD=class extends kw{static{i(this,"SSOOIDC")}};nl(Lwt,fD)});var P_e=I(()=>{LJ()});var Owt,Mwt,v_e=I(()=>{Owt={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},Mwt={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var __e=I(()=>{});var OJ={};rn(OJ,{$Command:()=>mn,AccessDeniedException:()=>bw,AccessDeniedException$:()=>i_e,AccessDeniedExceptionReason:()=>Owt,AuthorizationPendingException:()=>Sw,AuthorizationPendingException$:()=>a_e,CreateToken$:()=>DJ,CreateTokenCommand:()=>Lw,CreateTokenRequest$:()=>y_e,CreateTokenResponse$:()=>E_e,ExpiredTokenException:()=>Bw,ExpiredTokenException$:()=>c_e,InternalServerException:()=>Rw,InternalServerException$:()=>l_e,InvalidClientException:()=>Nw,InvalidClientException$:()=>u_e,InvalidGrantException:()=>Tw,InvalidGrantException$:()=>d_e,InvalidRequestException:()=>Pw,InvalidRequestException$:()=>p_e,InvalidRequestExceptionReason:()=>Mwt,InvalidScopeException:()=>vw,InvalidScopeException$:()=>m_e,SSOOIDC:()=>fD,SSOOIDCClient:()=>kw,SSOOIDCServiceException:()=>bn,SSOOIDCServiceException$:()=>o_e,SlowDownException:()=>_w,SlowDownException$:()=>f_e,UnauthorizedClientException:()=>Qw,UnauthorizedClientException$:()=>A_e,UnsupportedGrantTypeException:()=>Dw,UnsupportedGrantTypeException$:()=>h_e,__Client:()=>Kn,errorTypeRegistries:()=>QJ});var MJ=I(()=>{kJ();T_e();P_e();pD();v_e();_J();__e();dD()});var L_e=b(Ow=>{"use strict";var Fwt=(bt(),W(ks)),Uwt=(en(),W(up)),Sn=(Tt(),W(Ln)),qwt=require("node:fs"),$wt=i(({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new Sn.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:t});let r=Uwt.getBearerTokenEnvKey(e);if(!(r in process.env))throw new Sn.TokenProviderError(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return Fwt.setTokenFeature(n,"BEARER_SERVICE_ENV_VARS","3"),n},"fromEnvSigningName"),Gwt=300*1e3,FJ="To refresh this SSO session run 'aws sso login' with the corresponding profile.",Hwt=i(async(t,e={},r)=>{let{SSOOIDCClient:n}=await Promise.resolve().then(()=>(MJ(),OJ)),s=i(a=>e.clientConfig?.[a]??e.parentClientConfig?.[a]??r?.[a],"coalesce");return new n(Object.assign({},e.clientConfig??{},{region:t??e.clientConfig?.region,logger:s("logger"),userAgentAppId:s("userAgentAppId")}))},"getSsoOidcClient"),zwt=i(async(t,e,r={},n)=>{let{CreateTokenCommand:s}=await Promise.resolve().then(()=>(MJ(),OJ));return(await Hwt(e,r,n)).send(new s({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken"),Q_e=i(t=>{if(t.expiration&&t.expiration.getTime(){if(typeof e>"u")throw new Sn.TokenProviderError(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${FJ}`,!1)},"validateTokenKey"),{writeFile:Vwt}=qwt.promises,Ywt=i((t,e)=>{let r=Sn.getSSOTokenFilepath(t),n=JSON.stringify(e,null,2);return Vwt(r,n)},"writeSSOTokenToFile"),D_e=new Date(0),k_e=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await Sn.parseKnownFiles(t),n=Sn.getProfileName({profile:t.profile??e?.profile}),s=r[n];if(s){if(!s.sso_session)throw new Sn.TokenProviderError(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new Sn.TokenProviderError(`Profile '${n}' could not be found in shared credentials file.`,!1);let o=s.sso_session,c=(await Sn.loadSsoSessionData(t))[o];if(!c)throw new Sn.TokenProviderError(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let f of["sso_start_url","sso_region"])if(!c[f])throw new Sn.TokenProviderError(`Sso session '${o}' is missing required property '${f}'.`,!1);c.sso_start_url;let l=c.sso_region,u;try{u=await Sn.getSSOTokenFromFile(o)}catch{throw new Sn.TokenProviderError(`The SSO session token associated with profile=${n} was not found or is invalid. ${FJ}`,!1)}Of("accessToken",u.accessToken),Of("expiresAt",u.expiresAt);let{accessToken:d,expiresAt:p}=u,m={token:d,expiration:new Date(p)};if(m.expiration.getTime()-Date.now()>Gwt)return m;if(Date.now()-D_e.getTime()<30*1e3)return Q_e(m),m;Of("clientId",u.clientId,!0),Of("clientSecret",u.clientSecret,!0),Of("refreshToken",u.refreshToken,!0);try{D_e.setTime(Date.now());let f=await zwt(u,l,t,e);Of("accessToken",f.accessToken),Of("expiresIn",f.expiresIn);let g=new Date(Date.now()+f.expiresIn*1e3);try{await Ywt(o,{...u,accessToken:f.accessToken,expiresAt:g.toISOString(),refreshToken:f.refreshToken})}catch{}return{token:f.accessToken,expiration:g}}catch{return Q_e(m),m}},"fromSso"),Wwt=i(({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new Sn.TokenProviderError("Please pass a valid token to fromStatic",!1);return t},"fromStatic"),jwt=i((t={})=>Sn.memoize(Sn.chain(k_e(t),async()=>{throw new Sn.TokenProviderError("Could not load token from any providers",!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0),"nodeProvider");Ow.fromEnvSigningName=$wt;Ow.fromSso=k_e;Ow.fromStatic=Wwt;Ow.nodeProvider=jwt});function Jwt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function Kwt(t){return{schemeId:"smithy.api#noAuth"}}var O_e,M_e,F_e,UJ=I(()=>{en();Ce();O_e=i(async(t,e,r)=>({operation:Ar(e).operation,region:await Ut(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOHttpAuthSchemeParametersProvider");i(Jwt,"createAwsAuthSigv4HttpAuthOption");i(Kwt,"createSmithyApiNoAuthHttpAuthOption");M_e=i(t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(Kwt(t)):e.push(Jwt(t)),e},"defaultSSOHttpAuthSchemeProvider"),F_e=i(t=>{let e=Il(t);return Object.assign(e,{authSchemePreference:Ut(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var U_e,q_e,qJ=I(()=>{U_e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),"resolveClientEndpointParameters"),q_e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Mw,Mf,AD,$_e,V_e,hD,$J,G_e,GJ,Ry,H_e,z_e,Xwt,fo,Zwt,Y_e,W_e=I(()=>{wt();Mw="ref",Mf=-1,AD=!0,$_e="isSet",V_e="PartitionResult",hD="booleanEquals",$J="getAttr",G_e={[Mw]:"Endpoint"},GJ={[Mw]:V_e},Ry={},H_e=[{[Mw]:"Region"}],z_e={conditions:[[$_e,[G_e]],[$_e,H_e],["aws.partition",H_e,V_e],[hD,[{[Mw]:"UseFIPS"},AD]],[hD,[{[Mw]:"UseDualStack"},AD]],[hD,[{fn:$J,argv:[GJ,"supportsDualStack"]},AD]],[hD,[{fn:$J,argv:[GJ,"supportsFIPS"]},AD]],["stringEquals",[{fn:$J,argv:[GJ,"name"]},"aws-us-gov"]]],results:[[Mf],[Mf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Mf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[G_e,Ry],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ry],[Mf,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Ry],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Ry],[Mf,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Ry],[Mf,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Ry],[Mf,"Invalid Configuration: Missing Region"]]},Xwt=2,fo=1e8,Zwt=new Int32Array([-1,1,-1,0,13,3,1,4,fo+12,2,5,fo+12,3,8,6,4,7,fo+11,5,fo+9,fo+10,4,11,9,6,10,fo+8,7,fo+6,fo+7,5,12,fo+5,6,fo+4,fo+5,3,fo+1,14,4,fo+2,fo+3]),Y_e=Li.from(Zwt,Xwt,z_e.conditions,z_e.results)});var e0t,j_e,J_e=I(()=>{bt();wt();W_e();e0t=new Oi({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),j_e=i((t,e={})=>e0t.get(t,()=>jc(Y_e,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");co.aws=Qa});var Oa,gD=I(()=>{Ce();Oa=class t extends Ui{static{i(this,"SSOServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Fw,Uw,qw,$w,HJ=I(()=>{gD();Fw=class t extends Oa{static{i(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Uw=class t extends Oa{static{i(this,"ResourceNotFoundException")}name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},qw=class t extends Oa{static{i(this,"TooManyRequestsException")}name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},$w=class t extends Oa{static{i(this,"UnauthorizedException")}name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var t0t,r0t,n0t,s0t,o0t,i0t,a0t,c0t,l0t,u0t,d0t,p0t,m0t,f0t,A0t,yD,ED,h0t,g0t,CD,y0t,K_e,ID,E0t,C0t,I0t,X_e,x0t,w0t,b0t,Vi,Z_e,eQe,Gw,tQe,rQe,nQe,sQe,zJ,S0t,B0t,R0t,oQe,iQe,aQe,VJ,xD=I(()=>{Ct();HJ();gD();t0t="AccessTokenType",r0t="GetRoleCredentials",n0t="GetRoleCredentialsRequest",s0t="GetRoleCredentialsResponse",o0t="InvalidRequestException",i0t="RoleCredentials",a0t="ResourceNotFoundException",c0t="SecretAccessKeyType",l0t="SessionTokenType",u0t="TooManyRequestsException",d0t="UnauthorizedException",p0t="accountId",m0t="accessKeyId",f0t="accessToken",A0t="account_id",yD="client",ED="error",h0t="expiration",g0t="http",CD="httpError",y0t="httpHeader",K_e="httpQuery",ID="message",E0t="roleCredentials",C0t="roleName",I0t="role_name",X_e="smithy.ts.sdk.synthetic.com.amazonaws.sso",x0t="secretAccessKey",w0t="sessionToken",b0t="x-amz-sso_bearer_token",Vi="com.amazonaws.sso",Z_e=yr.for(X_e),eQe=[-3,X_e,"SSOServiceException",0,[],[]];Z_e.registerError(eQe,Oa);Gw=yr.for(Vi),tQe=[-3,Vi,o0t,{[ED]:yD,[CD]:400},[ID],[0]];Gw.registerError(tQe,Fw);rQe=[-3,Vi,a0t,{[ED]:yD,[CD]:404},[ID],[0]];Gw.registerError(rQe,Uw);nQe=[-3,Vi,u0t,{[ED]:yD,[CD]:429},[ID],[0]];Gw.registerError(nQe,qw);sQe=[-3,Vi,d0t,{[ED]:yD,[CD]:401},[ID],[0]];Gw.registerError(sQe,$w);zJ=[Z_e,Gw],S0t=[0,Vi,t0t,8,0],B0t=[0,Vi,c0t,8,0],R0t=[0,Vi,l0t,8,0],oQe=[3,Vi,n0t,0,[C0t,p0t,f0t],[[0,{[K_e]:I0t}],[0,{[K_e]:A0t}],[()=>S0t,{[y0t]:b0t}]],3],iQe=[3,Vi,s0t,0,[E0t],[[()=>aQe,0]]],aQe=[3,Vi,i0t,0,[m0t,x0t,w0t,h0t],[0,[()=>B0t,0],[()=>R0t,0],1]],VJ=[9,Vi,r0t,{[g0t]:["GET","/federation/credentials",200]},()=>oQe,()=>iQe]});var cQe,lQe=I(()=>{en();kf();Ds();Ce();De();st();UJ();J_e();xD();cQe=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Gr,base64Encoder:t?.base64Encoder??hr,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??j_e,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??M_e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Mn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Xo}],logger:t?.logger??new uo,protocol:t?.protocol??Mu,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:zJ,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",urlParser:t?.urlParser??rs,utf8Decoder:t?.utf8Decoder??Hr,utf8Encoder:t?.utf8Encoder??gr}),"getRuntimeConfig")});var wD,uQe,dQe=I(()=>{pw();bt();en();Ce();Tt();Qs();st();wD=D(_u());lQe();uQe=i(t=>{ol(process.version);let e=Wc(t),r=i(()=>e().then(sl),"defaultConfigProvider"),n=cQe(t);qc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??nt(vu,s),bodyLengthChecker:t?.bodyLengthChecker??Gc,defaultUserAgentProvider:t?.defaultUserAgentProvider??_a({serviceId:n.serviceId,clientVersion:mp.version}),maxAttempts:t?.maxAttempts??nt(cl,t),region:t?.region??nt(kn,{...vs,...s}),requestHandler:wD.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??nt({...ul,default:i(async()=>(await r()).retryMode||$i,"default")},t),sha256:t?.sha256??Fi.bind(null,"sha256"),streamCollector:t?.streamCollector??wD.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??nt(Vc,s),useFipsEndpoint:t?.useFipsEndpoint??nt(Yc,s),userAgentAppId:t?.userAgentAppId??nt(yl,s)}},"getRuntimeConfig")});var pQe,mQe,fQe=I(()=>{pQe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),mQe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var AQe,hQe=I(()=>{bt();Ce();De();fQe();AQe=i((t,e)=>{let r=Object.assign(El(t),Na(t),Zc(t),pQe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Cl(r),il(r),el(r),mQe(r))},"resolveRuntimeExtensions")});var Hw,YJ=I(()=>{bt();Ds();Ce();Tt();wt();De();Qs();Ct();UJ();qJ();dQe();hQe();Hw=class extends Kn{static{i(this,"SSOClient")}config;constructor(...[e]){let r=uQe(e||{});super(r),this.initConfig=r;let n=U_e(r),s=Al(n),o=ll(s),a=jo(o),c=a,l=wu(c),u=F_e(l),d=AQe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Ru(this.config)),this.middlewareStack.use(hl(this.config)),this.middlewareStack.use(Nu(this.config)),this.middlewareStack.use(tl(this.config)),this.middlewareStack.use(dl(this.config)),this.middlewareStack.use(pl(this.config)),this.middlewareStack.use(ml(this.config)),this.middlewareStack.use(Tu(this.config,{httpAuthSchemeParametersProvider:O_e,identityProviderConfigProvider:i(async p=>new va({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Pu(this.config))}destroy(){super.destroy()}}});var zw,WJ=I(()=>{Ce();wt();qJ();xD();zw=class extends mn.classBuilder().ep(q_e).m(function(e,r,n,s){return[Ba(n,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(VJ).build(){static{i(this,"GetRoleCredentialsCommand")}}});var N0t,bD,gQe=I(()=>{Ce();WJ();YJ();N0t={GetRoleCredentialsCommand:zw},bD=class extends Hw{static{i(this,"SSO")}};nl(N0t,bD)});var yQe=I(()=>{WJ()});var EQe=I(()=>{});var CQe={};rn(CQe,{$Command:()=>mn,GetRoleCredentials$:()=>VJ,GetRoleCredentialsCommand:()=>zw,GetRoleCredentialsRequest$:()=>oQe,GetRoleCredentialsResponse$:()=>iQe,InvalidRequestException:()=>Fw,InvalidRequestException$:()=>tQe,ResourceNotFoundException:()=>Uw,ResourceNotFoundException$:()=>rQe,RoleCredentials$:()=>aQe,SSO:()=>bD,SSOClient:()=>Hw,SSOServiceException:()=>Oa,SSOServiceException$:()=>eQe,TooManyRequestsException:()=>qw,TooManyRequestsException$:()=>nQe,UnauthorizedException:()=>$w,UnauthorizedException$:()=>sQe,__Client:()=>Kn,errorTypeRegistries:()=>zJ});var IQe=I(()=>{YJ();gQe();yQe();xD();HJ();EQe();gD()});var wQe=b(jJ=>{"use strict";var xQe=(IQe(),W(CQe));jJ.GetRoleCredentialsCommand=xQe.GetRoleCredentialsCommand;jJ.SSOClient=xQe.SSOClient});var JJ=b(SD=>{"use strict";var Os=(Tt(),W(Ln)),bQe=(bt(),W(ks)),T0t=L_e(),BQe=i(t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),"isSsoProfile"),Vw=!1,SQe=i(async({ssoStartUrl:t,ssoSession:e,ssoAccountId:r,ssoRegion:n,ssoRoleName:s,ssoClient:o,clientConfig:a,parentClientConfig:c,callerClientConfig:l,profile:u,filepath:d,configFilepath:p,ignoreCache:m,logger:f})=>{let g,E="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let ye=await T0t.fromSso({profile:u,filepath:d,configFilepath:p,ignoreCache:m})();g={accessToken:ye.token,expiresAt:new Date(ye.expiration).toISOString()}}catch(ye){throw new Os.CredentialsProviderError(ye.message,{tryNextLink:Vw,logger:f})}else try{g=await Os.getSSOTokenFromFile(t)}catch{throw new Os.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${E}`,{tryNextLink:Vw,logger:f})}if(new Date(g.expiresAt).getTime()-Date.now()<=0)throw new Os.CredentialsProviderError(`The SSO session associated with this profile has expired. ${E}`,{tryNextLink:Vw,logger:f});let{accessToken:x}=g,{SSOClient:w,GetRoleCredentialsCommand:S}=await Promise.resolve().then(function(){return wQe()}),P=o||new w(Object.assign({},a??{},{logger:a?.logger??l?.logger??c?.logger,region:a?.region??n,userAgentAppId:a?.userAgentAppId??l?.userAgentAppId??c?.userAgentAppId})),Q;try{Q=await P.send(new S({accountId:r,roleName:s,accessToken:x}))}catch(ye){throw new Os.CredentialsProviderError(ye,{tryNextLink:Vw,logger:f})}let{roleCredentials:{accessKeyId:q,secretAccessKey:M,sessionToken:V,expiration:pe,credentialScope:Le,accountId:Re}={}}=Q;if(!q||!M||!V||!pe)throw new Os.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:Vw,logger:f});let oe={accessKeyId:q,secretAccessKey:M,sessionToken:V,expiration:new Date(pe),...Le&&{credentialScope:Le},...Re&&{accountId:Re}};return e?bQe.setCredentialFeature(oe,"CREDENTIALS_SSO","s"):bQe.setCredentialFeature(oe,"CREDENTIALS_SSO_LEGACY","u"),oe},"resolveSSOCredentials"),RQe=i((t,e)=>{let{sso_start_url:r,sso_account_id:n,sso_region:s,sso_role_name:o}=t;if(!r||!n||!s||!o)throw new Os.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")} +Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),P0t=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t,{ssoClient:c}=t,l=Os.getProfileName({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await Os.parseKnownFiles(t))[l];if(!d)throw new Os.CredentialsProviderError(`Profile ${l} was not found.`,{logger:t.logger});if(!BQe(d))throw new Os.CredentialsProviderError(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let w=(await Os.loadSsoSessionData(t))[d.sso_session],S=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==w.sso_region)throw new Os.CredentialsProviderError("Conflicting SSO region"+S,{tryNextLink:!1,logger:t.logger});if(r&&r!==w.sso_start_url)throw new Os.CredentialsProviderError("Conflicting SSO start_url"+S,{tryNextLink:!1,logger:t.logger});d.sso_region=w.sso_region,d.sso_start_url=w.sso_start_url}let{sso_start_url:p,sso_account_id:m,sso_region:f,sso_role_name:g,sso_session:E}=RQe(d,t.logger);return SQe({ssoStartUrl:p,ssoSession:E,ssoAccountId:m,ssoRegion:f,ssoRoleName:g,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new Os.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return SQe({ssoStartUrl:r,ssoSession:a,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}},"fromSSO");SD.fromSSO=P0t;SD.isSsoProfile=BQe;SD.validateSsoProfile=RQe});function v0t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function _0t(t){return{schemeId:"smithy.api#noAuth"}}var NQe,TQe,PQe,KJ=I(()=>{en();Ce();NQe=i(async(t,e,r)=>({operation:Ar(e).operation,region:await Ut(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSigninHttpAuthSchemeParametersProvider");i(v0t,"createAwsAuthSigv4HttpAuthOption");i(_0t,"createSmithyApiNoAuthHttpAuthOption");TQe=i(t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(_0t(t)):e.push(v0t(t)),e},"defaultSigninHttpAuthSchemeProvider"),PQe=i(t=>{let e=Il(t);return Object.assign(e,{authSchemePreference:Ut(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var vQe,_Qe,XJ=I(()=>{vQe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),"resolveClientEndpointParameters"),_Qe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Yw,Ff,BD,QQe,OQe,RD,t5,ZJ,DQe,r5,e5,Ep,kQe,LQe,Q0t,is,D0t,MQe,FQe=I(()=>{wt();Yw="ref",Ff=-1,BD=!0,QQe="isSet",OQe="PartitionResult",RD="booleanEquals",t5="getAttr",ZJ="stringEquals",DQe={[Yw]:"Endpoint"},r5={[Yw]:OQe},e5={fn:t5,argv:[r5,"name"]},Ep={},kQe=[{[Yw]:"Region"}],LQe={conditions:[[QQe,[DQe]],[QQe,kQe],["aws.partition",kQe,OQe],[RD,[{[Yw]:"UseFIPS"},BD]],[RD,[{[Yw]:"UseDualStack"},BD]],[RD,[{fn:t5,argv:[r5,"supportsDualStack"]},BD]],[RD,[{fn:t5,argv:[r5,"supportsFIPS"]},BD]],[ZJ,[e5,"aws"]],[ZJ,[e5,"aws-cn"]],[ZJ,[e5,"aws-us-gov"]]],results:[[Ff],[Ff,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Ff,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[DQe,Ep],["https://{Region}.signin.aws.amazon.com",Ep],["https://{Region}.signin.amazonaws.cn",Ep],["https://{Region}.signin.amazonaws-us-gov.com",Ep],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ep],[Ff,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Ep],[Ff,"FIPS is enabled but this partition does not support FIPS"],["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",Ep],[Ff,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Ep],[Ff,"Invalid Configuration: Missing Region"]]},Q0t=2,is=1e8,D0t=new Int32Array([-1,1,-1,0,15,3,1,4,is+14,2,5,is+14,3,11,6,4,10,7,7,is+4,8,8,is+5,9,9,is+6,is+13,5,is+11,is+12,4,13,12,6,is+9,is+10,5,14,is+8,6,is+7,is+8,3,is+1,16,4,is+2,is+3]),MQe=Li.from(D0t,Q0t,LQe.conditions,LQe.results)});var k0t,UQe,qQe=I(()=>{bt();wt();FQe();k0t=new Oi({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),UQe=i((t,e={})=>k0t.get(t,()=>jc(MQe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");co.aws=Qa});var Ma,ND=I(()=>{Ce();Ma=class t extends Ui{static{i(this,"SigninServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Ww,jw,Jw,Kw,n5=I(()=>{ND();Ww=class t extends Ma{static{i(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},jw=class t extends Ma{static{i(this,"InternalServerException")}name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},Jw=class t extends Ma{static{i(this,"TooManyRequestsError")}name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},Kw=class t extends Ma{static{i(this,"ValidationException")}name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}}});var L0t,O0t,M0t,F0t,U0t,q0t,$0t,G0t,H0t,z0t,V0t,$Qe,GQe,s5,HQe,zQe,Y0t,Cp,VQe,YQe,W0t,o5,WQe,ei,PD,TD,jQe,ZQe,JQe,KQe,j0t,J0t,K0t,XQe,Yi,eDe,tDe,Xw,rDe,nDe,sDe,oDe,i5,iDe,aDe,cDe,lDe,uDe,dDe,a5,vD=I(()=>{Ct();n5();ND();L0t="AccessDeniedException",O0t="AccessToken",M0t="CreateOAuth2Token",F0t="CreateOAuth2TokenRequest",U0t="CreateOAuth2TokenRequestBody",q0t="CreateOAuth2TokenResponseBody",$0t="CreateOAuth2TokenResponse",G0t="InternalServerException",H0t="RefreshToken",z0t="TooManyRequestsError",V0t="ValidationException",$Qe="accessKeyId",GQe="accessToken",s5="client",HQe="clientId",zQe="codeVerifier",Y0t="code",Cp="error",VQe="expiresIn",YQe="grantType",W0t="http",o5="httpError",WQe="idToken",ei="jsonName",PD="message",TD="refreshToken",jQe="redirectUri",ZQe="smithy.ts.sdk.synthetic.com.amazonaws.signin",JQe="secretAccessKey",KQe="sessionToken",j0t="server",J0t="tokenInput",K0t="tokenOutput",XQe="tokenType",Yi="com.amazonaws.signin",eDe=yr.for(ZQe),tDe=[-3,ZQe,"SigninServiceException",0,[],[]];eDe.registerError(tDe,Ma);Xw=yr.for(Yi),rDe=[-3,Yi,L0t,{[Cp]:s5},[Cp,PD],[0,0],2];Xw.registerError(rDe,Ww);nDe=[-3,Yi,G0t,{[Cp]:j0t,[o5]:500},[Cp,PD],[0,0],2];Xw.registerError(nDe,jw);sDe=[-3,Yi,z0t,{[Cp]:s5,[o5]:429},[Cp,PD],[0,0],2];Xw.registerError(sDe,Jw);oDe=[-3,Yi,V0t,{[Cp]:s5,[o5]:400},[Cp,PD],[0,0],2];Xw.registerError(oDe,Kw);i5=[eDe,Xw],iDe=[0,Yi,H0t,8,0],aDe=[3,Yi,O0t,8,[$Qe,JQe,KQe],[[0,{[ei]:$Qe}],[0,{[ei]:JQe}],[0,{[ei]:KQe}]],3],cDe=[3,Yi,F0t,0,[J0t],[[()=>lDe,16]],1],lDe=[3,Yi,U0t,0,[HQe,YQe,Y0t,jQe,zQe,TD],[[0,{[ei]:HQe}],[0,{[ei]:YQe}],0,[0,{[ei]:jQe}],[0,{[ei]:zQe}],[()=>iDe,{[ei]:TD}]],2],uDe=[3,Yi,$0t,0,[K0t],[[()=>dDe,16]],1],dDe=[3,Yi,q0t,0,[GQe,XQe,VQe,TD,WQe],[[()=>aDe,{[ei]:GQe}],[0,{[ei]:XQe}],[1,{[ei]:VQe}],[()=>iDe,{[ei]:TD}],[0,{[ei]:WQe}]],4],a5=[9,Yi,M0t,{[W0t]:["POST","/v1/token",200]},()=>cDe,()=>uDe]});var pDe,mDe=I(()=>{en();kf();Ds();Ce();De();st();KJ();qQe();vD();pDe=i(t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??Gr,base64Encoder:t?.base64Encoder??hr,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??UQe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??TQe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Mn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Xo}],logger:t?.logger??new uo,protocol:t?.protocol??Mu,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:i5,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",urlParser:t?.urlParser??rs,utf8Decoder:t?.utf8Decoder??Hr,utf8Encoder:t?.utf8Encoder??gr}),"getRuntimeConfig")});var _D,fDe,ADe=I(()=>{pw();bt();en();Ce();Tt();Qs();st();_D=D(_u());mDe();fDe=i(t=>{ol(process.version);let e=Wc(t),r=i(()=>e().then(sl),"defaultConfigProvider"),n=pDe(t);qc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??nt(vu,s),bodyLengthChecker:t?.bodyLengthChecker??Gc,defaultUserAgentProvider:t?.defaultUserAgentProvider??_a({serviceId:n.serviceId,clientVersion:mp.version}),maxAttempts:t?.maxAttempts??nt(cl,t),region:t?.region??nt(kn,{...vs,...s}),requestHandler:_D.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??nt({...ul,default:i(async()=>(await r()).retryMode||$i,"default")},t),sha256:t?.sha256??Fi.bind(null,"sha256"),streamCollector:t?.streamCollector??_D.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??nt(Vc,s),useFipsEndpoint:t?.useFipsEndpoint??nt(Yc,s),userAgentAppId:t?.userAgentAppId??nt(yl,s)}},"getRuntimeConfig")});var hDe,gDe,yDe=I(()=>{hDe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),gDe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var EDe,CDe=I(()=>{bt();Ce();De();yDe();EDe=i((t,e)=>{let r=Object.assign(El(t),Na(t),Zc(t),hDe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Cl(r),il(r),el(r),gDe(r))},"resolveRuntimeExtensions")});var Zw,c5=I(()=>{bt();Ds();Ce();Tt();wt();De();Qs();Ct();KJ();XJ();ADe();CDe();Zw=class extends Kn{static{i(this,"SigninClient")}config;constructor(...[e]){let r=fDe(e||{});super(r),this.initConfig=r;let n=vQe(r),s=Al(n),o=ll(s),a=jo(o),c=a,l=wu(c),u=PQe(l),d=EDe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Ru(this.config)),this.middlewareStack.use(hl(this.config)),this.middlewareStack.use(Nu(this.config)),this.middlewareStack.use(tl(this.config)),this.middlewareStack.use(dl(this.config)),this.middlewareStack.use(pl(this.config)),this.middlewareStack.use(ml(this.config)),this.middlewareStack.use(Tu(this.config,{httpAuthSchemeParametersProvider:NQe,identityProviderConfigProvider:i(async p=>new va({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Pu(this.config))}destroy(){super.destroy()}}});var e0,l5=I(()=>{Ce();wt();XJ();vD();e0=class extends mn.classBuilder().ep(_Qe).m(function(e,r,n,s){return[Ba(n,e.getEndpointParameterInstructions())]}).s("Signin","CreateOAuth2Token",{}).n("SigninClient","CreateOAuth2TokenCommand").sc(a5).build(){static{i(this,"CreateOAuth2TokenCommand")}}});var X0t,QD,IDe=I(()=>{Ce();l5();c5();X0t={CreateOAuth2TokenCommand:e0},QD=class extends Zw{static{i(this,"Signin")}};nl(X0t,QD)});var xDe=I(()=>{l5()});var Z0t,wDe=I(()=>{Z0t={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",SERVER_ERROR:"server_error",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var bDe=I(()=>{});var SDe={};rn(SDe,{$Command:()=>mn,AccessDeniedException:()=>Ww,AccessDeniedException$:()=>rDe,AccessToken$:()=>aDe,CreateOAuth2Token$:()=>a5,CreateOAuth2TokenCommand:()=>e0,CreateOAuth2TokenRequest$:()=>cDe,CreateOAuth2TokenRequestBody$:()=>lDe,CreateOAuth2TokenResponse$:()=>uDe,CreateOAuth2TokenResponseBody$:()=>dDe,InternalServerException:()=>jw,InternalServerException$:()=>nDe,OAuth2ErrorCode:()=>Z0t,Signin:()=>QD,SigninClient:()=>Zw,SigninServiceException:()=>Ma,SigninServiceException$:()=>tDe,TooManyRequestsError:()=>Jw,TooManyRequestsError$:()=>sDe,ValidationException:()=>Kw,ValidationException$:()=>oDe,__Client:()=>Kn,errorTypeRegistries:()=>i5});var BDe=I(()=>{c5();IDe();xDe();vD();wDe();n5();bDe();ND()});var NDe=b(RDe=>{"use strict";var ebt=(bt(),W(ks)),Fa=(Tt(),W(Ln)),tbt=(De(),W(rl)),DD=require("node:crypto"),u5=require("node:fs"),rbt=require("node:os"),d5=require("node:path"),p5=class t{static{i(this,"LoginCredentialsFetcher")}profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,r,n){this.profileData=e,this.init=r,this.callerClientConfig=n}async loadCredentials(){let e=await this.loadToken();if(!e)throw new Fa.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=e.accessToken,n=Date.now();return new Date(r.expiresAt).getTime()-n<=t.REFRESH_THRESHOLD?this.refresh(e):{accessKeyId:r.accessKeyId,secretAccessKey:r.secretAccessKey,sessionToken:r.sessionToken,accountId:r.accountId,expiration:new Date(r.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:r,CreateOAuth2TokenCommand:n}=await Promise.resolve().then(()=>(BDe(),SDe)),{logger:s,userAgentAppId:o}=this.callerClientConfig??{},c=i(p=>p?.metadata?.handlerProtocol==="h2","isH2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,l=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,u=new r({credentials:{accessKeyId:"",secretAccessKey:""},region:l,requestHandler:c,logger:s,userAgentAppId:o,...this.init?.clientConfig});this.createDPoPInterceptor(u.middlewareStack);let d={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{let p=await u.send(new n(d)),{accessKeyId:m,secretAccessKey:f,sessionToken:g}=p.tokenOutput?.accessToken??{},{refreshToken:E,expiresIn:x}=p.tokenOutput??{};if(!m||!f||!g||!E)throw new Fa.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let w=(x??900)*1e3,S=new Date(Date.now()+w),P={...e,accessToken:{...e.accessToken,accessKeyId:m,secretAccessKey:f,sessionToken:g,expiresAt:S.toISOString()},refreshToken:E};await this.saveToken(P);let Q=P.accessToken;return{accessKeyId:Q.accessKeyId,secretAccessKey:Q.secretAccessKey,sessionToken:Q.sessionToken,accountId:Q.accountId,expiration:S}}catch(p){if(p.name==="AccessDeniedException"){let m=p.error,f;switch(m){case"TOKEN_EXPIRED":f="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":f="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":f="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:f=`Failed to refresh token: ${String(p)}. Please re-authenticate using \`aws login\``}throw new Fa.CredentialsProviderError(f,{logger:this.logger,tryNextLink:!1})}throw new Fa.CredentialsProviderError(`Failed to refresh token: ${String(p)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r;try{r=await Fa.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{r=await u5.promises.readFile(e,"utf8")}let n=JSON.parse(r),s=["accessToken","clientId","refreshToken","dpopKey"].filter(o=>!n[o]);if(n.accessToken?.accountId||s.push("accountId"),s.length>0)throw new Fa.CredentialsProviderError(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new Fa.CredentialsProviderError(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=d5.dirname(r);try{await u5.promises.mkdir(n,{recursive:!0})}catch{}await u5.promises.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??d5.join(rbt.homedir(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=DD.createHash("sha256").update(r).digest("hex");return d5.join(e,`${n}.json`)}derToRawSignature(e){let r=2;if(e[r]!==2)throw new Error("Invalid DER signature");r++;let n=e[r++],s=e.subarray(r,r+n);if(r+=n,e[r]!==2)throw new Error("Invalid DER signature");r++;let o=e[r++],a=e.subarray(r,r+o);s=s[0]===0?s.subarray(1):s,a=a[0]===0?a.subarray(1):a;let c=Buffer.concat([Buffer.alloc(32-s.length),s]),l=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([c,l])}createDPoPInterceptor(e){e.add(r=>async n=>{if(tbt.HttpRequest.isInstance(n.request)){let s=n.request,o=`${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}${s.path}`,a=await this.generateDpop(s.method,o);s.headers={...s.headers,DPoP:a}}return r(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",r){let n=await this.loadToken();try{let s=DD.createPrivateKey({key:n.dpopKey,format:"pem",type:"sec1"}),a=DD.createPublicKey(s).export({format:"der",type:"spki"}),c=-1;for(let S=0;Sasync({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await Fa.parseKnownFiles(t||{}),n=Fa.getProfileName({profile:t?.profile??e?.profile}),s=r[n];if(!s?.login_session)throw new Fa.CredentialsProviderError(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let a=await new p5(s,t,e).loadCredentials();return ebt.setCredentialFeature(a,"CREDENTIALS_LOGIN","AD")},"fromLoginCredentials");RDe.fromLoginCredentials=nbt});var h5=b(LD=>{"use strict";var m5=Rj(),t0={CrtSignerV4:null},f5="X-Amz-S3session-Token",TDe=f5.toLowerCase(),kD=class extends m5.SignatureV4{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=PDe(r);e.headers[TDe]=r.sessionToken;let o=this;return vDe(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=PDe(r);return delete e.headers[TDe],e.headers[f5]=r.sessionToken,e.query=e.query??{},e.query[f5]=r.sessionToken,vDe(this,s),this.presign(e,n)}};function PDe(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(PDe,"getCredentialsWithoutSessionToken");function vDe(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(vDe,"setSingleOverride");var A5=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof t0.CrtSignerV4=="function"?"crt":typeof m5.signatureV4aContainer.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new kD(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),o=t0.CrtSignerV4;if(o&&s instanceof o)return s.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=t0.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=t0.CrtSignerV4,r=m5.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};LD.SignatureV4MultiRegion=A5;LD.SignatureV4SignWithCredentials=kD;LD.signatureV4CrtContainer=t0});var Ty,Uf,r0,_De,UDe,n0,Un,g5,QDe,DDe,kDe,LDe,ODe,qn,y5,Ny,MDe,FDe,sbt,Pt,obt,qDe,$De=I(()=>{wt();Ty="ref",Uf=-1,r0=!0,_De="isSet",UDe="PartitionResult",n0="booleanEquals",Un="stringEquals",g5="getAttr",QDe="us-east-1",DDe="sigv4",kDe="sts",LDe="https://sts.{Region}.{PartitionResult#dnsSuffix}",ODe={[Ty]:"Endpoint"},qn={[Ty]:"Region"},y5={[Ty]:UDe},Ny={},MDe=[qn],FDe={conditions:[[_De,[ODe]],[_De,MDe],["aws.partition",MDe,UDe],[n0,[{[Ty]:"UseFIPS"},r0]],[n0,[{[Ty]:"UseDualStack"},r0]],[Un,[qn,"aws-global"]],[n0,[{[Ty]:"UseGlobalEndpoint"},r0]],[Un,[qn,"eu-central-1"]],[n0,[{fn:g5,argv:[y5,"supportsDualStack"]},r0]],[n0,[{fn:g5,argv:[y5,"supportsFIPS"]},r0]],[Un,[qn,"ap-south-1"]],[Un,[qn,"eu-north-1"]],[Un,[qn,"eu-west-1"]],[Un,[qn,"eu-west-2"]],[Un,[qn,"eu-west-3"]],[Un,[qn,"sa-east-1"]],[Un,[qn,QDe]],[Un,[qn,"us-east-2"]],[Un,[qn,"us-west-2"]],[Un,[qn,"us-west-1"]],[Un,[qn,"ca-central-1"]],[Un,[qn,"ap-southeast-1"]],[Un,[qn,"ap-northeast-1"]],[Un,[qn,"ap-southeast-2"]],[Un,[{fn:g5,argv:[y5,"name"]},"aws-us-gov"]]],results:[[Uf],["https://sts.amazonaws.com",{authSchemes:[{name:DDe,signingName:kDe,signingRegion:QDe}]}],[LDe,{authSchemes:[{name:DDe,signingName:kDe,signingRegion:"{Region}"}]}],[Uf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Uf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ODe,Ny],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ny],[Uf,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Ny],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Ny],[Uf,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Ny],[Uf,"DualStack is enabled but this partition does not support DualStack"],[LDe,Ny],[Uf,"Invalid Configuration: Missing Region"]]},sbt=2,Pt=1e8,obt=new Int32Array([-1,1,-1,0,30,3,1,4,Pt+14,2,5,Pt+14,3,25,6,4,24,7,5,Pt+1,8,6,9,Pt+13,7,Pt+1,10,10,Pt+1,11,11,Pt+1,12,12,Pt+1,13,13,Pt+1,14,14,Pt+1,15,15,Pt+1,16,16,Pt+1,17,17,Pt+1,18,18,Pt+1,19,19,Pt+1,20,20,Pt+1,21,21,Pt+1,22,22,Pt+1,23,23,Pt+1,Pt+2,8,Pt+11,Pt+12,4,28,26,9,27,Pt+10,24,Pt+8,Pt+9,8,29,Pt+7,9,Pt+6,Pt+7,3,Pt+3,31,4,Pt+4,Pt+5]),qDe=Li.from(obt,sbt,FDe.conditions,FDe.results)});var ibt,OD,E5=I(()=>{bt();wt();$De();ibt=new Oi({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),OD=i((t,e={})=>ibt.get(t,()=>jc(qDe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");co.aws=Qa});function zDe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function C5(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function VDe(t){return{schemeId:"smithy.api#noAuth"}}var GDe,abt,cbt,HDe,lbt,ubt,YDe,WDe,I5=I(()=>{en();GDe=D(h5());Ce();wt();E5();abt=i(t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await t(e,r,n),o=Ar(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await kx(n,{getEndpointParameterInstructions:o},e);return Object.assign(s,a)},"createEndpointRuleSetHttpAuthSchemeParametersProvider"),cbt=i(async(t,e,r)=>({operation:Ar(e).operation,region:await Ut(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"_defaultSTSHttpAuthSchemeParametersProvider"),HDe=abt(cbt);i(zDe,"createAwsAuthSigv4HttpAuthOption");i(C5,"createAwsAuthSigv4aHttpAuthOption");i(VDe,"createSmithyApiNoAuthHttpAuthOption");lbt=i((t,e,r)=>i(s=>{let a=t(s).properties?.authSchemes;if(!a)return e(s);let c=[];for(let l of a){let{name:u,properties:d={},...p}=l,m=u.toLowerCase();u!==m&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${m}'`);let f;if(m==="sigv4a"){f="aws.auth#sigv4a";let x=a.find(w=>{let S=w.name.toLowerCase();return S!=="sigv4a"&&S.startsWith("sigv4")});if(GDe.SignatureV4MultiRegion.sigv4aDependency()==="none"&&x)continue}else if(m.startsWith("sigv4"))f="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${m}'`);let g=r[f];if(!g)throw new Error(`Could not find HttpAuthOption create function for '${f}'`);let E=g(s);E.schemeId=f,E.signingProperties={...E.signingProperties||{},...p,...d},c.push(E)}return c},"endpointRuleSetHttpAuthSchemeProvider"),"createEndpointRuleSetHttpAuthSchemeProvider"),ubt=i(t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(VDe(t)),e.push(C5(t))):(e.push(zDe(t)),e.push(C5(t))),e},"_defaultSTSHttpAuthSchemeProvider"),YDe=lbt(OD,ubt,{"aws.auth#sigv4":zDe,"aws.auth#sigv4a":C5,"smithy.api#noAuth":VDe}),WDe=i(t=>{let e=Il(t),r=fj(e);return Object.assign(r,{authSchemePreference:Ut(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var jDe,MD,FD=I(()=>{jDe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters"),MD={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Ao,UD=I(()=>{Ce();Ao=class t extends Ui{static{i(this,"STSServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var s0,o0,i0,a0,c0,l0,u0,x5=I(()=>{UD();s0=class t extends Ao{static{i(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},o0=class t extends Ao{static{i(this,"MalformedPolicyDocumentException")}name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},i0=class t extends Ao{static{i(this,"PackedPolicyTooLargeException")}name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},a0=class t extends Ao{static{i(this,"RegionDisabledException")}name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},c0=class t extends Ao{static{i(this,"IDPRejectedClaimException")}name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},l0=class t extends Ao{static{i(this,"InvalidIdentityTokenException")}name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},u0=class t extends Ao{static{i(this,"IDPCommunicationErrorException")}name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var dbt,pbt,mbt,fbt,Abt,hbt,w5,gbt,ybt,Ebt,Cbt,b5,Ibt,JDe,xbt,wbt,bbt,Sbt,Bbt,Rbt,Nbt,Tbt,KDe,XDe,Pbt,vbt,_bt,Qbt,Dbt,kbt,ZDe,Lbt,Obt,eke,Mbt,tke,Fbt,Ubt,S5,qbt,$bt,Gbt,Hbt,zbt,Vbt,Ybt,Wbt,jbt,Jbt,qf,$f,Kbt,Gf,Hf,zf,Xbt,rke,Zbt,ar,nke,ske,Ip,oke,ike,ake,cke,lke,uke,dke,B5,eSt,tSt,R5,pke,mke,fke,Ake,N5,hke,gke,yke,Eke,rSt,nSt,T5,P5,d0=I(()=>{Ct();x5();UD();dbt="Arn",pbt="AccessKeyId",mbt="AssumeRole",fbt="AssumedRoleId",Abt="AssumeRoleRequest",hbt="AssumeRoleResponse",w5="AssumedRoleUser",gbt="AssumeRoleWithWebIdentity",ybt="AssumeRoleWithWebIdentityRequest",Ebt="AssumeRoleWithWebIdentityResponse",Cbt="Audience",b5="Credentials",Ibt="ContextAssertion",JDe="DurationSeconds",xbt="Expiration",wbt="ExternalId",bbt="ExpiredTokenException",Sbt="IDPCommunicationErrorException",Bbt="IDPRejectedClaimException",Rbt="InvalidIdentityTokenException",Nbt="Key",Tbt="MalformedPolicyDocumentException",KDe="Policy",XDe="PolicyArns",Pbt="ProviderArn",vbt="ProvidedContexts",_bt="ProvidedContextsListType",Qbt="ProvidedContext",Dbt="PolicyDescriptorType",kbt="ProviderId",ZDe="PackedPolicySize",Lbt="PackedPolicyTooLargeException",Obt="Provider",eke="RoleArn",Mbt="RegionDisabledException",tke="RoleSessionName",Fbt="SecretAccessKey",Ubt="SubjectFromWebIdentityToken",S5="SourceIdentity",qbt="SerialNumber",$bt="SessionToken",Gbt="Tags",Hbt="TokenCode",zbt="TransitiveTagKeys",Vbt="Tag",Ybt="Value",Wbt="WebIdentityToken",jbt="arn",Jbt="accessKeySecretType",qf="awsQueryError",$f="client",Kbt="clientTokenType",Gf="error",Hf="httpError",zf="message",Xbt="policyDescriptorListType",rke="smithy.ts.sdk.synthetic.com.amazonaws.sts",Zbt="tagListType",ar="com.amazonaws.sts",nke=yr.for(rke),ske=[-3,rke,"STSServiceException",0,[],[]];nke.registerError(ske,Ao);Ip=yr.for(ar),oke=[-3,ar,bbt,{[qf]:["ExpiredTokenException",400],[Gf]:$f,[Hf]:400},[zf],[0]];Ip.registerError(oke,s0);ike=[-3,ar,Sbt,{[qf]:["IDPCommunicationError",400],[Gf]:$f,[Hf]:400},[zf],[0]];Ip.registerError(ike,u0);ake=[-3,ar,Bbt,{[qf]:["IDPRejectedClaim",403],[Gf]:$f,[Hf]:403},[zf],[0]];Ip.registerError(ake,c0);cke=[-3,ar,Rbt,{[qf]:["InvalidIdentityToken",400],[Gf]:$f,[Hf]:400},[zf],[0]];Ip.registerError(cke,l0);lke=[-3,ar,Tbt,{[qf]:["MalformedPolicyDocument",400],[Gf]:$f,[Hf]:400},[zf],[0]];Ip.registerError(lke,o0);uke=[-3,ar,Lbt,{[qf]:["PackedPolicyTooLarge",400],[Gf]:$f,[Hf]:400},[zf],[0]];Ip.registerError(uke,i0);dke=[-3,ar,Mbt,{[qf]:["RegionDisabledException",403],[Gf]:$f,[Hf]:403},[zf],[0]];Ip.registerError(dke,a0);B5=[nke,Ip],eSt=[0,ar,Jbt,8,0],tSt=[0,ar,Kbt,8,0],R5=[3,ar,w5,0,[fbt,dbt],[0,0],2],pke=[3,ar,Abt,0,[eke,tke,XDe,KDe,JDe,Gbt,zbt,wbt,qbt,Hbt,S5,vbt],[0,0,()=>Eke,0,1,()=>nSt,64,0,0,0,0,()=>rSt],2],mke=[3,ar,hbt,0,[b5,w5,ZDe,S5],[[()=>N5,0],()=>R5,1,0]],fke=[3,ar,ybt,0,[eke,tke,Wbt,kbt,XDe,KDe,JDe],[0,0,[()=>tSt,0],0,()=>Eke,0,1],3],Ake=[3,ar,Ebt,0,[b5,Ubt,w5,ZDe,Obt,Cbt,S5],[[()=>N5,0],0,()=>R5,1,0,0,0]],N5=[3,ar,b5,0,[pbt,Fbt,$bt,xbt],[0,[()=>eSt,0],0,4],4],hke=[3,ar,Dbt,0,[jbt],[0]],gke=[3,ar,Qbt,0,[Pbt,Ibt],[0,0]],yke=[3,ar,Vbt,0,[Nbt,Ybt],[0,0],2],Eke=[1,ar,Xbt,0,()=>hke],rSt=[1,ar,_bt,0,()=>gke],nSt=[1,ar,Zbt,0,()=>yke],T5=[9,ar,mbt,0,()=>pke,()=>mke],P5=[9,ar,gbt,0,()=>fke,()=>Ake]});var Cke,Ike,xke=I(()=>{en();kf();Cke=D(h5());Ds();Ce();De();st();I5();E5();d0();Ike=i(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Gr,base64Encoder:t?.base64Encoder??hr,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??OD,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??YDe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Mn},{schemeId:"aws.auth#sigv4a",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new lp},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Xo}],logger:t?.logger??new uo,protocol:t?.protocol??Df,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:B5,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",signerConstructor:t?.signerConstructor??Cke.SignatureV4MultiRegion,urlParser:t?.urlParser??rs,utf8Decoder:t?.utf8Decoder??Hr,utf8Encoder:t?.utf8Encoder??gr}),"getRuntimeConfig")});var qD,wke,bke=I(()=>{pw();bt();en();Ds();Ce();Tt();Qs();st();qD=D(_u());xke();wke=i(t=>{ol(process.version);let e=Wc(t),r=i(()=>e().then(sl),"defaultConfigProvider"),n=Ike(t);qc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??nt(vu,s),bodyLengthChecker:t?.bodyLengthChecker??Gc,defaultUserAgentProvider:t?.defaultUserAgentProvider??_a({serviceId:n.serviceId,clientVersion:mp.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4")||(async a=>await t.credentialDefaultProvider(a?.__config||{})()),"identityProvider"),signer:new Mn},{schemeId:"aws.auth#sigv4a",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new lp},{schemeId:"smithy.api#noAuth",identityProvider:i(o=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Xo}],maxAttempts:t?.maxAttempts??nt(cl,t),region:t?.region??nt(kn,{...vs,...s}),requestHandler:qD.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??nt({...ul,default:i(async()=>(await r()).retryMode||$i,"default")},t),sha256:t?.sha256??Fi.bind(null,"sha256"),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??nt(Aj,s),streamCollector:t?.streamCollector??qD.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??nt(Vc,s),useFipsEndpoint:t?.useFipsEndpoint??nt(Yc,s),userAgentAppId:t?.userAgentAppId??nt(yl,s)}},"getRuntimeConfig")});var Ske,Bke,Rke=I(()=>{Ske=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),Bke=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var Nke,Tke=I(()=>{bt();Ce();De();Rke();Nke=i((t,e)=>{let r=Object.assign(El(t),Na(t),Zc(t),Ske(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Cl(r),il(r),el(r),Bke(r))},"resolveRuntimeExtensions")});var xp,$D=I(()=>{bt();Ds();Ce();Tt();wt();De();Qs();Ct();I5();FD();bke();Tke();xp=class extends Kn{static{i(this,"STSClient")}config;constructor(...[e]){let r=wke(e||{});super(r),this.initConfig=r;let n=jDe(r),s=Al(n),o=ll(s),a=jo(o),c=a,l=wu(c),u=WDe(l),d=Nke(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Ru(this.config)),this.middlewareStack.use(hl(this.config)),this.middlewareStack.use(Nu(this.config)),this.middlewareStack.use(tl(this.config)),this.middlewareStack.use(dl(this.config)),this.middlewareStack.use(pl(this.config)),this.middlewareStack.use(ml(this.config)),this.middlewareStack.use(Tu(this.config,{httpAuthSchemeParametersProvider:HDe,identityProviderConfigProvider:i(async p=>new va({"aws.auth#sigv4":p.credentials,"aws.auth#sigv4a":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Pu(this.config))}destroy(){super.destroy()}}});var Vf,GD=I(()=>{Ce();wt();FD();d0();Vf=class extends mn.classBuilder().ep(MD).m(function(e,r,n,s){return[Ba(n,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(T5).build(){static{i(this,"AssumeRoleCommand")}}});var Yf,HD=I(()=>{Ce();wt();FD();d0();Yf=class extends mn.classBuilder().ep(MD).m(function(e,r,n,s){return[Ba(n,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(P5).build(){static{i(this,"AssumeRoleWithWebIdentityCommand")}}});var sSt,zD,Pke=I(()=>{Ce();GD();HD();$D();sSt={AssumeRoleCommand:Vf,AssumeRoleWithWebIdentityCommand:Yf},zD=class extends xp{static{i(this,"STS")}};nl(sSt,zD)});var vke=I(()=>{GD();HD()});var _ke=I(()=>{});var Qke,Dke,kke,Lke,Oke,Mke=I(()=>{bt();GD();HD();Qke=i(t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},"getAccountIdFromAssumedRoleUser"),Dke=i(async(t,e,r,n={})=>{let s=typeof t=="function"?await t():t,o=typeof e=="function"?await e():e,a="",c=s??o??(a=await wQ(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),c},"resolveRegion"),kke=i((t,e)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:d=t?.parentClientConfig?.logger,profile:p=t?.parentClientConfig?.profile,region:m,requestHandler:f=t?.parentClientConfig?.requestHandler,credentialProviderLogger:g,userAgentAppId:E=t?.parentClientConfig?.userAgentAppId}=t,x=await Dke(m,t?.parentClientConfig?.region,g,{logger:d,profile:p}),w=!Oke(f);r=new e({...t,userAgentAppId:E,profile:p,credentialDefaultProvider:i(()=>async()=>n,"credentialDefaultProvider"),region:x,requestHandler:w?f:void 0,logger:d})}let{Credentials:a,AssumedRoleUser:c}=await r.send(new Vf(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let l=Qke(c),u={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...l&&{accountId:l}};return zd(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},"getDefaultRoleAssumer"),Lke=i((t,e)=>{let r;return async n=>{if(!r){let{logger:l=t?.parentClientConfig?.logger,profile:u=t?.parentClientConfig?.profile,region:d,requestHandler:p=t?.parentClientConfig?.requestHandler,credentialProviderLogger:m,userAgentAppId:f=t?.parentClientConfig?.userAgentAppId}=t,g=await Dke(d,t?.parentClientConfig?.region,m,{logger:l,profile:u}),E=!Oke(p);r=new e({...t,userAgentAppId:f,profile:u,region:g,requestHandler:E?p:void 0,logger:l})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new Yf(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Qke(o),c={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};return a&&zd(c,"RESOLVED_ACCOUNT_ID","T"),zd(c,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),c}},"getDefaultRoleAssumerWithWebIdentity"),Oke=i(t=>t?.metadata?.handlerProtocol==="h2","isH2")});var Fke,Uke,qke,oSt,$ke=I(()=>{Mke();$D();Fke=i((t,e)=>e?class extends t{static{i(this,"CustomizableSTSClient")}constructor(n){super(n);for(let s of e)this.middlewareStack.use(s)}}:t,"getCustomizableStsClientCtor"),Uke=i((t={},e)=>kke(t,Fke(xp,e)),"getDefaultRoleAssumer"),qke=i((t={},e)=>Lke(t,Fke(xp,e)),"getDefaultRoleAssumerWithWebIdentity"),oSt=i(t=>e=>t({roleAssumer:Uke(e),roleAssumerWithWebIdentity:qke(e),...e}),"decorateDefaultCredentialProvider")});var v5={};rn(v5,{$Command:()=>mn,AssumeRole$:()=>T5,AssumeRoleCommand:()=>Vf,AssumeRoleRequest$:()=>pke,AssumeRoleResponse$:()=>mke,AssumeRoleWithWebIdentity$:()=>P5,AssumeRoleWithWebIdentityCommand:()=>Yf,AssumeRoleWithWebIdentityRequest$:()=>fke,AssumeRoleWithWebIdentityResponse$:()=>Ake,AssumedRoleUser$:()=>R5,Credentials$:()=>N5,ExpiredTokenException:()=>s0,ExpiredTokenException$:()=>oke,IDPCommunicationErrorException:()=>u0,IDPCommunicationErrorException$:()=>ike,IDPRejectedClaimException:()=>c0,IDPRejectedClaimException$:()=>ake,InvalidIdentityTokenException:()=>l0,InvalidIdentityTokenException$:()=>cke,MalformedPolicyDocumentException:()=>o0,MalformedPolicyDocumentException$:()=>lke,PackedPolicyTooLargeException:()=>i0,PackedPolicyTooLargeException$:()=>uke,PolicyDescriptorType$:()=>hke,ProvidedContext$:()=>gke,RegionDisabledException:()=>a0,RegionDisabledException$:()=>dke,STS:()=>zD,STSClient:()=>xp,STSServiceException:()=>Ao,STSServiceException$:()=>ske,Tag$:()=>yke,__Client:()=>Kn,decorateDefaultCredentialProvider:()=>oSt,errorTypeRegistries:()=>B5,getDefaultRoleAssumer:()=>Uke,getDefaultRoleAssumerWithWebIdentity:()=>qke});var _5=I(()=>{$D();Pke();vke();d0();x5();_ke();$ke();UD()});var Q5=b(Gke=>{"use strict";var Py=(Tt(),W(Ln)),iSt=require("node:child_process"),aSt=require("node:util"),cSt=(bt(),W(ks)),lSt=i((t,e,r)=>{if(e.Version!==1)throw Error(`Profile ${t} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${t} credential_process returned invalid credentials.`);if(e.Expiration){let o=new Date;if(new Date(e.Expiration){let n=e[t];if(e[t]){let s=n.credential_process;if(s!==void 0){let o=aSt.promisify(Py.externalDataInterceptor?.getTokenRecord?.().exec??iSt.exec);try{let{stdout:a}=await o(s),c;try{c=JSON.parse(a.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return lSt(t,c,e)}catch(a){throw new Py.CredentialsProviderError(a.message,{logger:r})}}else throw new Py.CredentialsProviderError(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new Py.CredentialsProviderError(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},"resolveProcessCredentials"),dSt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await Py.parseKnownFiles(t);return uSt(Py.getProfileName({profile:t.profile??e?.profile}),r,t.logger)},"fromProcess");Gke.fromProcess=dSt});var D5=b(VD=>{"use strict";Object.defineProperty(VD,"__esModule",{value:!0});VD.fromWebToken=void 0;var pSt=i(t=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:s,providerId:o,policyArns:a,policy:c,durationSeconds:l}=t,{roleAssumerWithWebIdentity:u}=t;if(!u){let{getDefaultRoleAssumerWithWebIdentity:d}=await Promise.resolve().then(()=>(_5(),v5));u=d({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...e?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return u({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:o,PolicyArns:a,Policy:c,DurationSeconds:l})},"fromWebToken");VD.fromWebToken=pSt});var Vke=b(YD=>{"use strict";Object.defineProperty(YD,"__esModule",{value:!0});YD.fromTokenFile=void 0;var mSt=(bt(),W(ks)),Hke=(Tt(),W(Ln)),fSt=require("node:fs"),ASt=D5(),zke="AWS_WEB_IDENTITY_TOKEN_FILE",hSt="AWS_ROLE_ARN",gSt="AWS_ROLE_SESSION_NAME",ySt=i((t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[zke],n=t?.roleArn??process.env[hSt],s=t?.roleSessionName??process.env[gSt];if(!r||!n)throw new Hke.CredentialsProviderError("Web identity configuration not specified",{logger:t.logger});let o=await(0,ASt.fromWebToken)({...t,webIdentityToken:Hke.externalDataInterceptor?.getTokenRecord?.()[r]??(0,fSt.readFileSync)(r,{encoding:"ascii"}),roleArn:n,roleSessionName:s})(e);return r===process.env[zke]&&(0,mSt.setCredentialFeature)(o,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),o},"fromTokenFile");YD.fromTokenFile=ySt});var k5=b(Fu=>{"use strict";var WD=Vke(),jD=D5();Object.prototype.hasOwnProperty.call(WD,"__proto__")&&!Object.prototype.hasOwnProperty.call(Fu,"__proto__")&&Object.defineProperty(Fu,"__proto__",{enumerable:!0,value:WD.__proto__});Object.keys(WD).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(Fu,t)&&(Fu[t]=WD[t])});Object.prototype.hasOwnProperty.call(jD,"__proto__")&&!Object.prototype.hasOwnProperty.call(Fu,"__proto__")&&Object.defineProperty(Fu,"__proto__",{enumerable:!0,value:jD.__proto__});Object.keys(jD).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(Fu,t)&&(Fu[t]=jD[t])})});var Xke=b(Kke=>{"use strict";var wp=(Tt(),W(Ln)),Uu=(bt(),W(ks)),ESt=NDe(),CSt=i((t,e,r)=>{let n={EcsContainer:i(async s=>{let{fromHttp:o}=await Promise.resolve().then(()=>D(Gj())),{fromContainerMetadata:a}=await Promise.resolve().then(()=>D(_Q()));return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>wp.chain(o(s??{}),a(s))().then(L5)},"EcsContainer"),Ec2InstanceMetadata:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:o}=await Promise.resolve().then(()=>D(_Q()));return async()=>o(s)().then(L5)},"Ec2InstanceMetadata"),Environment:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:o}=await Promise.resolve().then(()=>D(vj()));return async()=>o(s)().then(L5)},"Environment")};if(t in n)return n[t];throw new wp.CredentialsProviderError(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),L5=i(t=>Uu.setCredentialFeature(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider"),ISt=i((t,{profile:e="default",logger:r}={})=>!!t&&typeof t=="object"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(xSt(t,{profile:e,logger:r})||wSt(t,{profile:e,logger:r})),"isAssumeRoleProfile"),xSt=i((t,{profile:e,logger:r})=>{let n=typeof t.source_profile=="string"&&typeof t.credential_source>"u";return n&&r?.debug?.(` ${e} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`),n},"isAssumeRoleWithSourceProfile"),wSt=i((t,{profile:e,logger:r})=>{let n=typeof t.credential_source=="string"&&typeof t.source_profile>"u";return n&&r?.debug?.(` ${e} isCredentialSourceProfile credential_source=${t.credential_source}`),n},"isCredentialSourceProfile"),bSt=i(async(t,e,r,n,s={},o)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let a=e[t],{source_profile:c,region:l}=a;if(!r.roleAssumer){let{getDefaultRoleAssumer:d}=await Promise.resolve().then(()=>(_5(),v5));r.roleAssumer=d({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:l??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(c&&c in s)throw new wp.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${wp.getProfileName(r)}. Profiles visited: `+Object.keys(s).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${c?`source_profile=[${c}]`:`profile=[${t}]`}`);let u=c?o(c,e,r,n,{...s,[c]:!0},Yke(e[c]??{})):(await CSt(a.credential_source,t,r.logger)(r))();if(Yke(a))return u.then(d=>Uu.setCredentialFeature(d,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let d={RoleArn:a.role_arn,RoleSessionName:a.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:a.external_id,DurationSeconds:parseInt(a.duration_seconds||"3600",10)},{mfa_serial:p}=a;if(p){if(!r.mfaCodeProvider)throw new wp.CredentialsProviderError(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});d.SerialNumber=p,d.TokenCode=await r.mfaCodeProvider(p)}let m=await u;return r.roleAssumer(m,d).then(f=>Uu.setCredentialFeature(f,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),Yke=i(t=>!t.role_arn&&!!t.credential_source,"isCredentialSourceWithoutRoleArn"),SSt=i(t=>!!(t&&t.login_session),"isLoginProfile"),BSt=i(async(t,e,r)=>{let n=await ESt.fromLoginCredentials({...e,profile:t})({callerClientConfig:r});return Uu.setCredentialFeature(n,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials"),RSt=i(t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string","isProcessProfile"),NSt=i(async(t,e)=>Promise.resolve().then(()=>D(Q5())).then(({fromProcess:r})=>r({...t,profile:e})().then(n=>Uu.setCredentialFeature(n,"CREDENTIALS_PROFILE_PROCESS","v"))),"resolveProcessCredentials"),TSt=i(async(t,e,r={},n)=>{let{fromSSO:s}=await Promise.resolve().then(()=>D(JJ()));return s({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(o=>e.sso_session?Uu.setCredentialFeature(o,"CREDENTIALS_PROFILE_SSO","r"):Uu.setCredentialFeature(o,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),PSt=i(t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),"isSsoProfile"),Wke=i(t=>!!t&&typeof t=="object"&&typeof t.aws_access_key_id=="string"&&typeof t.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1,"isStaticCredsProfile"),jke=i(async(t,e)=>{e?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return Uu.setCredentialFeature(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials"),vSt=i(t=>!!t&&typeof t=="object"&&typeof t.web_identity_token_file=="string"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1,"isWebIdentityProfile"),_St=i(async(t,e,r)=>Promise.resolve().then(()=>D(k5())).then(({fromTokenFile:n})=>n({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity,logger:e.logger,parentClientConfig:e.parentClientConfig})({callerClientConfig:r}).then(s=>Uu.setCredentialFeature(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q"))),"resolveWebIdentityCredentials"),Jke=i(async(t,e,r,n,s={},o=!1)=>{let a=e[t];if(Object.keys(s).length>0&&Wke(a))return jke(a,r);if(o||ISt(a,{profile:t,logger:r.logger}))return bSt(t,e,r,n,s,Jke);if(Wke(a))return jke(a,r);if(vSt(a))return _St(a,r,n);if(RSt(a))return NSt(r,t);if(PSt(a))return await TSt(t,a,r,n);if(SSt(a))return BSt(t,r,n);throw new wp.CredentialsProviderError(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData"),QSt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await wp.parseKnownFiles(t);return Jke(wp.getProfileName({profile:t.profile??e?.profile}),r,t,e)},"fromIni");Kke.fromIni=QSt});var M5=b(JD=>{"use strict";var O5=vj(),vy=(Tt(),W(Ln)),Zke="AWS_EC2_METADATA_DISABLED",DSt=i(async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:s}=await Promise.resolve().then(()=>D(_Q()));if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:o}=await Promise.resolve().then(()=>D(Gj()));return vy.chain(o(t),n(t))}return process.env[Zke]&&process.env[Zke]!=="false"?async()=>{throw new vy.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),s(t))},"remoteProvider");function kSt(t,e){let r=LSt(t),n,s,o,a=i(async c=>{if(c?.forceRefresh)return await r(c);if(o?.expiration&&o?.expiration?.getTime(){o=l}).finally(()=>{s=void 0}));else return n=r(c).then(l=>{o=l}).finally(()=>{n=void 0}),a(c);return o},"provider");return a}i(kSt,"memoizeChain");var LSt=i(t=>async e=>{let r;for(let n of t)try{return await n(e)}catch(s){if(r=s,s?.tryNextLink)continue;throw s}throw r},"internalCreateChain"),eLe=!1,OSt=i((t={})=>kSt([async()=>{if(t.profile??process.env[vy.ENV_PROFILE])throw process.env[O5.ENV_KEY]&&process.env[O5.ENV_SECRET]&&(eLe||((t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING: Multiple credential sources detected: Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set. This SDK will proceed with the AWS_PROFILE value. @@ -142,92 +142,92 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht However, a future version may change this behavior to prefer the ENV static credentials. Please ensure that your environment only sets either the AWS_PROFILE or the AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair. -`),$ke=!0)),new Ny.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),P5.fromEnv(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t;if(!r&&!n&&!s&&!o&&!a)throw new Ny.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=await Promise.resolve().then(()=>D(GJ()));return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=await Promise.resolve().then(()=>D(Uke()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=await Promise.resolve().then(()=>D(B5()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=await Promise.resolve().then(()=>D(N5()));return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await RSt(t))()),async()=>{throw new Ny.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],Gke),"defaultProvider"),vSt=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),Gke=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");VD.credentialsTreatedAsExpired=Gke;VD.credentialsWillNeedRefresh=vSt;VD.defaultProvider=PSt});var jke=b(jD=>{"use strict";Object.defineProperty(jD,"__esModule",{value:!0});jD.bdd=void 0;var _St=(xt(),W(df)),Ty="ref",zf=-1,YD=!0,Hke="isSet",Q5="PartitionResult",bp="stringEquals",WD="booleanEquals",_5="getAttr",zke={[Ty]:"Endpoint"},Sp={fn:_5,argv:[{[Ty]:Q5},"name"]},Vke={[Ty]:Q5},Vf={},Yke=[{[Ty]:"Region"}],Wke={conditions:[[Hke,[zke]],[Hke,Yke],["aws.partition",Yke,Q5],[bp,[Sp,"aws-eusc"]],[bp,[Sp,"aws-iso-f"]],[bp,[Sp,"aws-iso-e"]],[bp,[Sp,"aws-iso-b"]],[bp,[Sp,"aws-iso"]],[bp,[Sp,"aws-cn"]],[bp,[Sp,"aws-us-gov"]],[bp,[Sp,"aws"]],[WD,[{[Ty]:"UseFIPS"},YD]],[WD,[{fn:_5,argv:[Vke,"supportsFIPS"]},YD]],[WD,[{[Ty]:"UseDualStack"},YD]],[WD,[{fn:_5,argv:[Vke,"supportsDualStack"]},YD]]],results:[[zf],[zf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[zf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[zke,Vf],["https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",Vf],["https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Vf],["https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",Vf],["https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Vf],["https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Vf],[zf,"FIPS and DualStack are enabled, but this partition does not support one or both"],[zf,"FIPS is enabled but this partition does not support FIPS"],["https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Vf],[zf,"DualStack is enabled but this partition does not support DualStack"],[zf,"Invalid Configuration: Missing Region"]]},QSt=2,qn=1e8,DSt=new Int32Array([-1,1,-1,0,23,3,1,4,qn+13,2,5,qn+13,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,qn+4,14,qn+11,qn+12,12,18,17,13,qn+9,qn+10,13,19,qn+6,14,qn+8,qn+9,11,22,21,13,qn+5,qn+4,13,qn+7,qn+6,11,qn+1,24,13,qn+2,qn+3]);jD.bdd=_St.BinaryDecisionDiagram.from(DSt,QSt,Wke.conditions,Wke.results)});var Jke=b(JD=>{"use strict";Object.defineProperty(JD,"__esModule",{value:!0});JD.defaultEndpointResolver=void 0;var kSt=(wt(),W(Ds)),D5=(xt(),W(df)),LSt=jke(),OSt=new D5.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),MSt=i((t,e={})=>OSt.get(t,()=>(0,D5.decideEndpoint)(LSt.bdd,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");JD.defaultEndpointResolver=MSt;D5.customEndpointFunctions.aws=kSt.awsEndpointFunctions});var KD=b(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});Py.ECRServiceException=Py.__ServiceException=void 0;var Kke=(Ce(),W(Ui));Object.defineProperty(Py,"__ServiceException",{enumerable:!0,get:i(function(){return Kke.ServiceException},"get")});var k5=class t extends Kke.ServiceException{static{i(this,"ECRServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Py.ECRServiceException=k5});var T6=b(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.InvalidLayerPartException=z.ImageStorageClassUpdateNotSupportedException=z.LifecyclePolicyPreviewInProgressException=z.UnsupportedImageTypeException=z.ImageArchivedException=z.ExclusionAlreadyExistsException=z.BlockedByOrganizationPolicyException=z.ReferencedImagesNotFoundException=z.ImageTagAlreadyExistsException=z.ImageDigestDoesNotMatchException=z.ImageAlreadyExistsException=z.UnableToListUpstreamImageReferrersException=z.LifecyclePolicyPreviewNotFoundException=z.UnableToGetUpstreamLayerException=z.LayersNotFoundException=z.LayerInaccessibleException=z.ScanNotFoundException=z.ImageNotFoundException=z.ExclusionNotFoundException=z.SigningConfigurationNotFoundException=z.RepositoryPolicyNotFoundException=z.TemplateNotFoundException=z.RepositoryNotEmptyException=z.RegistryPolicyNotFoundException=z.PullThroughCacheRuleNotFoundException=z.LifecyclePolicyNotFoundException=z.TemplateAlreadyExistsException=z.TooManyTagsException=z.RepositoryAlreadyExistsException=z.InvalidTagParameterException=z.UnsupportedUpstreamRegistryException=z.UnableToDecryptSecretValueException=z.UnableToAccessSecretException=z.SecretNotFoundException=z.PullThroughCacheRuleAlreadyExistsException=z.UploadNotFoundException=z.LayerPartTooSmallException=z.LayerAlreadyExistsException=z.KmsException=z.InvalidLayerException=z.EmptyUploadException=z.ValidationException=z.UnableToGetUpstreamImageException=z.LimitExceededException=z.ServerException=z.RepositoryNotFoundException=z.InvalidParameterException=void 0;var Ge=KD(),L5=class t extends Ge.ECRServiceException{static{i(this,"InvalidParameterException")}name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.InvalidParameterException=L5;var O5=class t extends Ge.ECRServiceException{static{i(this,"RepositoryNotFoundException")}name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.RepositoryNotFoundException=O5;var M5=class t extends Ge.ECRServiceException{static{i(this,"ServerException")}name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ServerException=M5;var F5=class t extends Ge.ECRServiceException{static{i(this,"LimitExceededException")}name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LimitExceededException=F5;var U5=class t extends Ge.ECRServiceException{static{i(this,"UnableToGetUpstreamImageException")}name="UnableToGetUpstreamImageException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamImageException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnableToGetUpstreamImageException=U5;var q5=class t extends Ge.ECRServiceException{static{i(this,"ValidationException")}name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ValidationException=q5;var $5=class t extends Ge.ECRServiceException{static{i(this,"EmptyUploadException")}name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.EmptyUploadException=$5;var G5=class t extends Ge.ECRServiceException{static{i(this,"InvalidLayerException")}name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.InvalidLayerException=G5;var H5=class t extends Ge.ECRServiceException{static{i(this,"KmsException")}name="KmsException";$fault="client";kmsError;constructor(e){super({name:"KmsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.kmsError=e.kmsError}};z.KmsException=H5;var z5=class t extends Ge.ECRServiceException{static{i(this,"LayerAlreadyExistsException")}name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LayerAlreadyExistsException=z5;var V5=class t extends Ge.ECRServiceException{static{i(this,"LayerPartTooSmallException")}name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LayerPartTooSmallException=V5;var Y5=class t extends Ge.ECRServiceException{static{i(this,"UploadNotFoundException")}name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UploadNotFoundException=Y5;var W5=class t extends Ge.ECRServiceException{static{i(this,"PullThroughCacheRuleAlreadyExistsException")}name="PullThroughCacheRuleAlreadyExistsException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.PullThroughCacheRuleAlreadyExistsException=W5;var j5=class t extends Ge.ECRServiceException{static{i(this,"SecretNotFoundException")}name="SecretNotFoundException";$fault="client";constructor(e){super({name:"SecretNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.SecretNotFoundException=j5;var J5=class t extends Ge.ECRServiceException{static{i(this,"UnableToAccessSecretException")}name="UnableToAccessSecretException";$fault="client";constructor(e){super({name:"UnableToAccessSecretException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnableToAccessSecretException=J5;var K5=class t extends Ge.ECRServiceException{static{i(this,"UnableToDecryptSecretValueException")}name="UnableToDecryptSecretValueException";$fault="client";constructor(e){super({name:"UnableToDecryptSecretValueException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnableToDecryptSecretValueException=K5;var X5=class t extends Ge.ECRServiceException{static{i(this,"UnsupportedUpstreamRegistryException")}name="UnsupportedUpstreamRegistryException";$fault="client";constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnsupportedUpstreamRegistryException=X5;var Z5=class t extends Ge.ECRServiceException{static{i(this,"InvalidTagParameterException")}name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.InvalidTagParameterException=Z5;var e6=class t extends Ge.ECRServiceException{static{i(this,"RepositoryAlreadyExistsException")}name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.RepositoryAlreadyExistsException=e6;var t6=class t extends Ge.ECRServiceException{static{i(this,"TooManyTagsException")}name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.TooManyTagsException=t6;var r6=class t extends Ge.ECRServiceException{static{i(this,"TemplateAlreadyExistsException")}name="TemplateAlreadyExistsException";$fault="client";constructor(e){super({name:"TemplateAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.TemplateAlreadyExistsException=r6;var n6=class t extends Ge.ECRServiceException{static{i(this,"LifecyclePolicyNotFoundException")}name="LifecyclePolicyNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LifecyclePolicyNotFoundException=n6;var s6=class t extends Ge.ECRServiceException{static{i(this,"PullThroughCacheRuleNotFoundException")}name="PullThroughCacheRuleNotFoundException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.PullThroughCacheRuleNotFoundException=s6;var o6=class t extends Ge.ECRServiceException{static{i(this,"RegistryPolicyNotFoundException")}name="RegistryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.RegistryPolicyNotFoundException=o6;var i6=class t extends Ge.ECRServiceException{static{i(this,"RepositoryNotEmptyException")}name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.RepositoryNotEmptyException=i6;var a6=class t extends Ge.ECRServiceException{static{i(this,"TemplateNotFoundException")}name="TemplateNotFoundException";$fault="client";constructor(e){super({name:"TemplateNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.TemplateNotFoundException=a6;var c6=class t extends Ge.ECRServiceException{static{i(this,"RepositoryPolicyNotFoundException")}name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.RepositoryPolicyNotFoundException=c6;var l6=class t extends Ge.ECRServiceException{static{i(this,"SigningConfigurationNotFoundException")}name="SigningConfigurationNotFoundException";$fault="client";constructor(e){super({name:"SigningConfigurationNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.SigningConfigurationNotFoundException=l6;var u6=class t extends Ge.ECRServiceException{static{i(this,"ExclusionNotFoundException")}name="ExclusionNotFoundException";$fault="client";constructor(e){super({name:"ExclusionNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ExclusionNotFoundException=u6;var d6=class t extends Ge.ECRServiceException{static{i(this,"ImageNotFoundException")}name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageNotFoundException=d6;var p6=class t extends Ge.ECRServiceException{static{i(this,"ScanNotFoundException")}name="ScanNotFoundException";$fault="client";constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ScanNotFoundException=p6;var m6=class t extends Ge.ECRServiceException{static{i(this,"LayerInaccessibleException")}name="LayerInaccessibleException";$fault="client";constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LayerInaccessibleException=m6;var f6=class t extends Ge.ECRServiceException{static{i(this,"LayersNotFoundException")}name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LayersNotFoundException=f6;var A6=class t extends Ge.ECRServiceException{static{i(this,"UnableToGetUpstreamLayerException")}name="UnableToGetUpstreamLayerException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnableToGetUpstreamLayerException=A6;var h6=class t extends Ge.ECRServiceException{static{i(this,"LifecyclePolicyPreviewNotFoundException")}name="LifecyclePolicyPreviewNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LifecyclePolicyPreviewNotFoundException=h6;var g6=class t extends Ge.ECRServiceException{static{i(this,"UnableToListUpstreamImageReferrersException")}name="UnableToListUpstreamImageReferrersException";$fault="client";constructor(e){super({name:"UnableToListUpstreamImageReferrersException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnableToListUpstreamImageReferrersException=g6;var y6=class t extends Ge.ECRServiceException{static{i(this,"ImageAlreadyExistsException")}name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageAlreadyExistsException=y6;var E6=class t extends Ge.ECRServiceException{static{i(this,"ImageDigestDoesNotMatchException")}name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageDigestDoesNotMatchException=E6;var C6=class t extends Ge.ECRServiceException{static{i(this,"ImageTagAlreadyExistsException")}name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageTagAlreadyExistsException=C6;var I6=class t extends Ge.ECRServiceException{static{i(this,"ReferencedImagesNotFoundException")}name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ReferencedImagesNotFoundException=I6;var x6=class t extends Ge.ECRServiceException{static{i(this,"BlockedByOrganizationPolicyException")}name="BlockedByOrganizationPolicyException";$fault="client";constructor(e){super({name:"BlockedByOrganizationPolicyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.BlockedByOrganizationPolicyException=x6;var w6=class t extends Ge.ECRServiceException{static{i(this,"ExclusionAlreadyExistsException")}name="ExclusionAlreadyExistsException";$fault="client";constructor(e){super({name:"ExclusionAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ExclusionAlreadyExistsException=w6;var b6=class t extends Ge.ECRServiceException{static{i(this,"ImageArchivedException")}name="ImageArchivedException";$fault="client";constructor(e){super({name:"ImageArchivedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageArchivedException=b6;var S6=class t extends Ge.ECRServiceException{static{i(this,"UnsupportedImageTypeException")}name="UnsupportedImageTypeException";$fault="client";constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnsupportedImageTypeException=S6;var B6=class t extends Ge.ECRServiceException{static{i(this,"LifecyclePolicyPreviewInProgressException")}name="LifecyclePolicyPreviewInProgressException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LifecyclePolicyPreviewInProgressException=B6;var R6=class t extends Ge.ECRServiceException{static{i(this,"ImageStorageClassUpdateNotSupportedException")}name="ImageStorageClassUpdateNotSupportedException";$fault="client";constructor(e){super({name:"ImageStorageClassUpdateNotSupportedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageStorageClassUpdateNotSupportedException=R6;var N6=class t extends Ge.ECRServiceException{static{i(this,"InvalidLayerPartException")}name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.registryId=e.registryId,this.repositoryName=e.repositoryName,this.uploadId=e.uploadId,this.lastValidByteReceived=e.lastValidByteReceived}};z.InvalidLayerPartException=N6});var V6=b(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.Attribute$=A.errorTypeRegistries=A.ValidationException$=A.UploadNotFoundException$=A.UnsupportedUpstreamRegistryException$=A.UnsupportedImageTypeException$=A.UnableToListUpstreamImageReferrersException$=A.UnableToGetUpstreamLayerException$=A.UnableToGetUpstreamImageException$=A.UnableToDecryptSecretValueException$=A.UnableToAccessSecretException$=A.TooManyTagsException$=A.TemplateNotFoundException$=A.TemplateAlreadyExistsException$=A.SigningConfigurationNotFoundException$=A.ServerException$=A.SecretNotFoundException$=A.ScanNotFoundException$=A.RepositoryPolicyNotFoundException$=A.RepositoryNotFoundException$=A.RepositoryNotEmptyException$=A.RepositoryAlreadyExistsException$=A.RegistryPolicyNotFoundException$=A.ReferencedImagesNotFoundException$=A.PullThroughCacheRuleNotFoundException$=A.PullThroughCacheRuleAlreadyExistsException$=A.LimitExceededException$=A.LifecyclePolicyPreviewNotFoundException$=A.LifecyclePolicyPreviewInProgressException$=A.LifecyclePolicyNotFoundException$=A.LayersNotFoundException$=A.LayerPartTooSmallException$=A.LayerInaccessibleException$=A.LayerAlreadyExistsException$=A.KmsException$=A.InvalidTagParameterException$=A.InvalidParameterException$=A.InvalidLayerPartException$=A.InvalidLayerException$=A.ImageTagAlreadyExistsException$=A.ImageStorageClassUpdateNotSupportedException$=A.ImageNotFoundException$=A.ImageDigestDoesNotMatchException$=A.ImageArchivedException$=A.ImageAlreadyExistsException$=A.ExclusionNotFoundException$=A.ExclusionAlreadyExistsException$=A.EmptyUploadException$=A.BlockedByOrganizationPolicyException$=A.ECRServiceException$=void 0;A.DescribeRegistryResponse$=A.DescribeRegistryRequest$=A.DescribePullThroughCacheRulesResponse$=A.DescribePullThroughCacheRulesRequest$=A.DescribeImagesResponse$=A.DescribeImagesRequest$=A.DescribeImageSigningStatusResponse$=A.DescribeImageSigningStatusRequest$=A.DescribeImagesFilter$=A.DescribeImageScanFindingsResponse$=A.DescribeImageScanFindingsRequest$=A.DescribeImageReplicationStatusResponse$=A.DescribeImageReplicationStatusRequest$=A.DeregisterPullTimeUpdateExclusionResponse$=A.DeregisterPullTimeUpdateExclusionRequest$=A.DeleteSigningConfigurationResponse$=A.DeleteSigningConfigurationRequest$=A.DeleteRepositoryResponse$=A.DeleteRepositoryRequest$=A.DeleteRepositoryPolicyResponse$=A.DeleteRepositoryPolicyRequest$=A.DeleteRepositoryCreationTemplateResponse$=A.DeleteRepositoryCreationTemplateRequest$=A.DeleteRegistryPolicyResponse$=A.DeleteRegistryPolicyRequest$=A.DeletePullThroughCacheRuleResponse$=A.DeletePullThroughCacheRuleRequest$=A.DeleteLifecyclePolicyResponse$=A.DeleteLifecyclePolicyRequest$=A.CvssScoreDetails$=A.CvssScoreAdjustment$=A.CvssScore$=A.CreateRepositoryResponse$=A.CreateRepositoryRequest$=A.CreateRepositoryCreationTemplateResponse$=A.CreateRepositoryCreationTemplateRequest$=A.CreatePullThroughCacheRuleResponse$=A.CreatePullThroughCacheRuleRequest$=A.CompleteLayerUploadResponse$=A.CompleteLayerUploadRequest$=A.BatchGetRepositoryScanningConfigurationResponse$=A.BatchGetRepositoryScanningConfigurationRequest$=A.BatchGetImageResponse$=A.BatchGetImageRequest$=A.BatchDeleteImageResponse$=A.BatchDeleteImageRequest$=A.BatchCheckLayerAvailabilityResponse$=A.BatchCheckLayerAvailabilityRequest$=A.AwsEcrContainerImageDetails$=A.AuthorizationData$=void 0;A.ListImagesFilter$=A.ListImageReferrersResponse$=A.ListImageReferrersRequest$=A.ListImageReferrersFilter$=A.LifecyclePolicyRuleAction$=A.LifecyclePolicyPreviewSummary$=A.LifecyclePolicyPreviewResult$=A.LifecyclePolicyPreviewFilter$=A.LayerFailure$=A.Layer$=A.InitiateLayerUploadResponse$=A.InitiateLayerUploadRequest$=A.ImageTagMutabilityExclusionFilter$=A.ImageSigningStatus$=A.ImageScanStatus$=A.ImageScanningConfiguration$=A.ImageScanFindingsSummary$=A.ImageScanFindings$=A.ImageScanFinding$=A.ImageReplicationStatus$=A.ImageReferrer$=A.ImageIdentifier$=A.ImageFailure$=A.ImageDetail$=A.Image$=A.GetSigningConfigurationResponse$=A.GetSigningConfigurationRequest$=A.GetRepositoryPolicyResponse$=A.GetRepositoryPolicyRequest$=A.GetRegistryScanningConfigurationResponse$=A.GetRegistryScanningConfigurationRequest$=A.GetRegistryPolicyResponse$=A.GetRegistryPolicyRequest$=A.GetLifecyclePolicyResponse$=A.GetLifecyclePolicyRequest$=A.GetLifecyclePolicyPreviewResponse$=A.GetLifecyclePolicyPreviewRequest$=A.GetDownloadUrlForLayerResponse$=A.GetDownloadUrlForLayerRequest$=A.GetAuthorizationTokenResponse$=A.GetAuthorizationTokenRequest$=A.GetAccountSettingResponse$=A.GetAccountSettingRequest$=A.EnhancedImageScanFinding$=A.EncryptionConfigurationForRepositoryCreationTemplate$=A.EncryptionConfiguration$=A.DescribeRepositoryCreationTemplatesResponse$=A.DescribeRepositoryCreationTemplatesRequest$=A.DescribeRepositoriesResponse$=A.DescribeRepositoriesRequest$=void 0;A.StartImageScanRequest$=A.SigningRule$=A.SigningRepositoryFilter$=A.SigningConfiguration$=A.SetRepositoryPolicyResponse$=A.SetRepositoryPolicyRequest$=A.ScoreDetails$=A.ScanningRepositoryFilter$=A.ResourceDetails$=A.Resource$=A.RepositoryScanningConfigurationFailure$=A.RepositoryScanningConfiguration$=A.RepositoryFilter$=A.RepositoryCreationTemplate$=A.Repository$=A.ReplicationRule$=A.ReplicationDestination$=A.ReplicationConfiguration$=A.Remediation$=A.RegistryScanningRule$=A.RegistryScanningConfiguration$=A.RegisterPullTimeUpdateExclusionResponse$=A.RegisterPullTimeUpdateExclusionRequest$=A.Recommendation$=A.PutSigningConfigurationResponse$=A.PutSigningConfigurationRequest$=A.PutReplicationConfigurationResponse$=A.PutReplicationConfigurationRequest$=A.PutRegistryScanningConfigurationResponse$=A.PutRegistryScanningConfigurationRequest$=A.PutRegistryPolicyResponse$=A.PutRegistryPolicyRequest$=A.PutLifecyclePolicyResponse$=A.PutLifecyclePolicyRequest$=A.PutImageTagMutabilityResponse$=A.PutImageTagMutabilityRequest$=A.PutImageScanningConfigurationResponse$=A.PutImageScanningConfigurationRequest$=A.PutImageResponse$=A.PutImageRequest$=A.PutAccountSettingResponse$=A.PutAccountSettingRequest$=A.PullThroughCacheRule$=A.PackageVulnerabilityDetails$=A.ListTagsForResourceResponse$=A.ListTagsForResourceRequest$=A.ListPullTimeUpdateExclusionsResponse$=A.ListPullTimeUpdateExclusionsRequest$=A.ListImagesResponse$=A.ListImagesRequest$=void 0;A.GetLifecyclePolicyPreview$=A.GetLifecyclePolicy$=A.GetDownloadUrlForLayer$=A.GetAuthorizationToken$=A.GetAccountSetting$=A.DescribeRepositoryCreationTemplates$=A.DescribeRepositories$=A.DescribeRegistry$=A.DescribePullThroughCacheRules$=A.DescribeImageSigningStatus$=A.DescribeImageScanFindings$=A.DescribeImages$=A.DescribeImageReplicationStatus$=A.DeregisterPullTimeUpdateExclusion$=A.DeleteSigningConfiguration$=A.DeleteRepositoryPolicy$=A.DeleteRepositoryCreationTemplate$=A.DeleteRepository$=A.DeleteRegistryPolicy$=A.DeletePullThroughCacheRule$=A.DeleteLifecyclePolicy$=A.CreateRepositoryCreationTemplate$=A.CreateRepository$=A.CreatePullThroughCacheRule$=A.CompleteLayerUpload$=A.BatchGetRepositoryScanningConfiguration$=A.BatchGetImage$=A.BatchDeleteImage$=A.BatchCheckLayerAvailability$=A.VulnerablePackage$=A.ValidatePullThroughCacheRuleResponse$=A.ValidatePullThroughCacheRuleRequest$=A.UploadLayerPartResponse$=A.UploadLayerPartRequest$=A.UpdateRepositoryCreationTemplateResponse$=A.UpdateRepositoryCreationTemplateRequest$=A.UpdatePullThroughCacheRuleResponse$=A.UpdatePullThroughCacheRuleRequest$=A.UpdateImageStorageClassResponse$=A.UpdateImageStorageClassRequest$=A.UntagResourceResponse$=A.UntagResourceRequest$=A.TransitioningImageTotalCount$=A.TagResourceResponse$=A.TagResourceRequest$=A.Tag$=A.SubjectIdentifier$=A.StartLifecyclePolicyPreviewResponse$=A.StartLifecyclePolicyPreviewRequest$=A.StartImageScanResponse$=void 0;A.ValidatePullThroughCacheRule$=A.UploadLayerPart$=A.UpdateRepositoryCreationTemplate$=A.UpdatePullThroughCacheRule$=A.UpdateImageStorageClass$=A.UntagResource$=A.TagResource$=A.StartLifecyclePolicyPreview$=A.StartImageScan$=A.SetRepositoryPolicy$=A.RegisterPullTimeUpdateExclusion$=A.PutSigningConfiguration$=A.PutReplicationConfiguration$=A.PutRegistryScanningConfiguration$=A.PutRegistryPolicy$=A.PutLifecyclePolicy$=A.PutImageTagMutability$=A.PutImageScanningConfiguration$=A.PutImage$=A.PutAccountSetting$=A.ListTagsForResource$=A.ListPullTimeUpdateExclusions$=A.ListImages$=A.ListImageReferrers$=A.InitiateLayerUpload$=A.GetSigningConfiguration$=A.GetRepositoryPolicy$=A.GetRegistryScanningConfiguration$=A.GetRegistryPolicy$=void 0;var FSt="Attribute",USt="AuthorizationData",qSt="AuthorizationDataList",$St="AwsEcrContainerImageDetails",GSt="AttributeList",HSt="BlockedByOrganizationPolicyException",zSt="BatchCheckLayerAvailability",VSt="BatchCheckLayerAvailabilityRequest",YSt="BatchCheckLayerAvailabilityResponse",WSt="BatchDeleteImage",jSt="BatchDeleteImageRequest",JSt="BatchDeleteImageResponse",KSt="BatchGetImage",XSt="BatchGetImageRequest",ZSt="BatchGetImageResponse",eBt="BatchGetRepositoryScanningConfiguration",tBt="BatchGetRepositoryScanningConfigurationRequest",rBt="BatchGetRepositoryScanningConfigurationResponse",nBt="CompleteLayerUpload",sBt="CompleteLayerUploadRequest",oBt="CompleteLayerUploadResponse",iBt="CreatePullThroughCacheRule",aBt="CreatePullThroughCacheRuleRequest",cBt="CreatePullThroughCacheRuleResponse",lBt="CreateRepository",uBt="CreateRepositoryCreationTemplate",dBt="CreateRepositoryCreationTemplateRequest",pBt="CreateRepositoryCreationTemplateResponse",mBt="CreateRepositoryRequest",fBt="CreateRepositoryResponse",ABt="CvssScore",hBt="CvssScoreAdjustment",gBt="CvssScoreAdjustmentList",yBt="CvssScoreDetails",EBt="CvssScoreList",CBt="DescribeImages",IBt="DescribeImagesFilter",xBt="DescribeImagesRequest",wBt="DescribeImageReplicationStatus",bBt="DescribeImageReplicationStatusRequest",SBt="DescribeImageReplicationStatusResponse",BBt="DescribeImagesResponse",RBt="DescribeImageScanFindings",NBt="DescribeImageScanFindingsRequest",TBt="DescribeImageScanFindingsResponse",PBt="DescribeImageSigningStatus",vBt="DescribeImageSigningStatusRequest",_Bt="DescribeImageSigningStatusResponse",QBt="DeleteLifecyclePolicy",DBt="DeleteLifecyclePolicyRequest",kBt="DeleteLifecyclePolicyResponse",LBt="DeletePullThroughCacheRule",OBt="DeletePullThroughCacheRuleRequest",MBt="DeletePullThroughCacheRuleResponse",FBt="DescribePullThroughCacheRulesRequest",UBt="DescribePullThroughCacheRulesResponse",qBt="DescribePullThroughCacheRules",$Bt="DeregisterPullTimeUpdateExclusion",GBt="DeregisterPullTimeUpdateExclusionRequest",HBt="DeregisterPullTimeUpdateExclusionResponse",zBt="DeleteRepository",VBt="DeleteRepositoryCreationTemplate",YBt="DeleteRepositoryCreationTemplateRequest",WBt="DeleteRepositoryCreationTemplateResponse",jBt="DescribeRepositoryCreationTemplatesRequest",JBt="DescribeRepositoryCreationTemplatesResponse",KBt="DescribeRepositoryCreationTemplates",XBt="DeleteRegistryPolicy",ZBt="DeleteRegistryPolicyRequest",eRt="DeleteRegistryPolicyResponse",tRt="DeleteRepositoryPolicyRequest",rRt="DeleteRepositoryPolicyResponse",nRt="DeleteRepositoryPolicy",sRt="DeleteRepositoryRequest",oRt="DeleteRepositoryResponse",iRt="DescribeRegistryRequest",aRt="DescribeRegistryResponse",cRt="DescribeRepositoriesRequest",lRt="DescribeRepositoriesResponse",uRt="DescribeRegistry",dRt="DescribeRepositories",pRt="DeleteSigningConfiguration",mRt="DeleteSigningConfigurationRequest",fRt="DeleteSigningConfigurationResponse",ARt="ExclusionAlreadyExistsException",hRt="EncryptionConfiguration",gRt="EncryptionConfigurationForRepositoryCreationTemplate",yRt="EnhancedImageScanFinding",ERt="EnhancedImageScanFindingList",CRt="ExclusionNotFoundException",IRt="EmptyUploadException",xRt="GetAccountSetting",wRt="GetAccountSettingRequest",bRt="GetAccountSettingResponse",SRt="GetAuthorizationToken",BRt="GetAuthorizationTokenRequest",RRt="GetAuthorizationTokenResponse",NRt="GetDownloadUrlForLayer",TRt="GetDownloadUrlForLayerRequest",PRt="GetDownloadUrlForLayerResponse",vRt="GetLifecyclePolicy",_Rt="GetLifecyclePolicyPreview",QRt="GetLifecyclePolicyPreviewRequest",DRt="GetLifecyclePolicyPreviewResponse",kRt="GetLifecyclePolicyRequest",LRt="GetLifecyclePolicyResponse",ORt="GetRegistryPolicy",MRt="GetRegistryPolicyRequest",FRt="GetRegistryPolicyResponse",URt="GetRepositoryPolicyRequest",qRt="GetRepositoryPolicyResponse",$Rt="GetRepositoryPolicy",GRt="GetRegistryScanningConfiguration",HRt="GetRegistryScanningConfigurationRequest",zRt="GetRegistryScanningConfigurationResponse",VRt="GetSigningConfiguration",YRt="GetSigningConfigurationRequest",WRt="GetSigningConfigurationResponse",jRt="Image",JRt="ImageArchivedException",KRt="ImageAlreadyExistsException",XRt="ImageDetail",ZRt="ImageDigestDoesNotMatchException",eNt="ImageDetailList",tNt="ImageFailure",rNt="ImageFailureList",nNt="ImageIdentifier",sNt="ImageIdentifierList",oNt="ImageList",iNt="InvalidLayerException",aNt="InvalidLayerPartException",cNt="InitiateLayerUpload",lNt="InitiateLayerUploadRequest",uNt="InitiateLayerUploadResponse",dNt="ImageNotFoundException",pNt="InvalidParameterException",mNt="ImageReferrer",fNt="ImageReferrerList",ANt="ImageReplicationStatus",hNt="ImageReplicationStatusList",gNt="ImageScanningConfiguration",yNt="ImageStorageClassUpdateNotSupportedException",ENt="ImageScanFinding",CNt="ImageScanFindingList",INt="ImageScanFindingsSummary",xNt="ImageScanFindings",wNt="ImageScanStatus",bNt="ImageSigningStatusList",SNt="ImageSigningStatus",BNt="ImageTagAlreadyExistsException",RNt="ImageTagMutabilityExclusionFilter",NNt="ImageTagMutabilityExclusionFilters",TNt="InvalidTagParameterException",PNt="Key",vNt="KmsException",_Nt="Layer",QNt="LayerAlreadyExistsException",DNt="LimitExceededException",kNt="LayerFailure",LNt="LayerFailureList",ONt="ListImages",MNt="LayerInaccessibleException",FNt="ListImagesFilter",UNt="ListImagesRequest",qNt="ListImageReferrersFilter",$Nt="ListImageReferrersRequest",GNt="ListImageReferrersResponse",HNt="ListImagesResponse",zNt="ListImageReferrers",VNt="LayerList",YNt="LayersNotFoundException",WNt="LifecyclePolicyNotFoundException",jNt="LifecyclePolicyPreviewFilter",JNt="LifecyclePolicyPreviewInProgressException",KNt="LifecyclePolicyPreviewNotFoundException",XNt="LifecyclePolicyPreviewResult",ZNt="LifecyclePolicyPreviewResultList",eTt="LifecyclePolicyPreviewSummary",tTt="LifecyclePolicyRuleAction",rTt="LayerPartTooSmallException",nTt="ListPullTimeUpdateExclusions",sTt="ListPullTimeUpdateExclusionsRequest",oTt="ListPullTimeUpdateExclusionsResponse",iTt="ListTagsForResource",aTt="ListTagsForResourceRequest",cTt="ListTagsForResourceResponse",lTt="PutAccountSetting",uTt="PutAccountSettingRequest",dTt="PutAccountSettingResponse",pTt="PutImage",mTt="PutImageRequest",fTt="PutImageResponse",ATt="PutImageScanningConfiguration",hTt="PutImageScanningConfigurationRequest",gTt="PutImageScanningConfigurationResponse",yTt="PutImageTagMutability",ETt="PutImageTagMutabilityRequest",CTt="PutImageTagMutabilityResponse",ITt="PutLifecyclePolicy",xTt="PutLifecyclePolicyRequest",wTt="PutLifecyclePolicyResponse",bTt="PutReplicationConfiguration",STt="PutReplicationConfigurationRequest",BTt="PutReplicationConfigurationResponse",RTt="PutRegistryPolicy",NTt="PutRegistryPolicyRequest",TTt="PutRegistryPolicyResponse",PTt="PutRegistryScanningConfiguration",vTt="PutRegistryScanningConfigurationRequest",_Tt="PutRegistryScanningConfigurationResponse",QTt="PutSigningConfiguration",DTt="PutSigningConfigurationRequest",kTt="PutSigningConfigurationResponse",LTt="PullThroughCacheRule",OTt="PullThroughCacheRuleAlreadyExistsException",MTt="PullThroughCacheRuleList",FTt="PullThroughCacheRuleNotFoundException",UTt="PackageVulnerabilityDetails",qTt="Recommendation",$Tt="RepositoryAlreadyExistsException",GTt="ReplicationConfiguration",HTt="RepositoryCreationTemplate",zTt="RepositoryCreationTemplateList",VTt="ReplicationDestination",YTt="ReplicationDestinationList",WTt="ResourceDetails",jTt="RepositoryFilter",JTt="RepositoryFilterList",KTt="ReferencedImagesNotFoundException",XTt="RepositoryList",ZTt="ResourceList",ePt="RepositoryNotEmptyException",tPt="RepositoryNotFoundException",rPt="RegistryPolicyNotFoundException",nPt="RepositoryPolicyNotFoundException",sPt="RegisterPullTimeUpdateExclusion",oPt="RegisterPullTimeUpdateExclusionRequest",iPt="RegisterPullTimeUpdateExclusionResponse",aPt="ReplicationRule",cPt="ReplicationRuleList",lPt="RegistryScanningConfiguration",uPt="RepositoryScanningConfigurationFailure",dPt="RepositoryScanningConfigurationFailureList",pPt="RepositoryScanningConfigurationList",mPt="RepositoryScanningConfiguration",fPt="RegistryScanningRule",APt="RegistryScanningRuleList",hPt="Remediation",gPt="Repository",yPt="Resource",EPt="SigningConfiguration",CPt="SigningConfigurationNotFoundException",IPt="ScoreDetails",xPt="ServerException",wPt="SubjectIdentifier",bPt="StartImageScan",SPt="StartImageScanRequest",BPt="StartImageScanResponse",RPt="StartLifecyclePolicyPreview",NPt="StartLifecyclePolicyPreviewRequest",TPt="StartLifecyclePolicyPreviewResponse",PPt="ScanNotFoundException",vPt="SecretNotFoundException",_Pt="SigningRule",QPt="ScanningRepositoryFilter",DPt="ScanningRepositoryFilterList",kPt="SigningRepositoryFilterList",LPt="SigningRepositoryFilter",OPt="SigningRuleList",MPt="SetRepositoryPolicy",FPt="SetRepositoryPolicyRequest",UPt="SetRepositoryPolicyResponse",qPt="Tag",$Pt="TemplateAlreadyExistsException",GPt="TransitioningImageTotalCount",HPt="TransitioningImageTotalCounts",zPt="TagList",VPt="TooManyTagsException",YPt="TemplateNotFoundException",WPt="TagResource",jPt="TagResourceRequest",JPt="TagResourceResponse",KPt="UpdateImageStorageClass",XPt="UpdateImageStorageClassRequest",ZPt="UpdateImageStorageClassResponse",evt="UnsupportedImageTypeException",tvt="UploadLayerPart",rvt="UploadLayerPartRequest",nvt="UploadLayerPartResponse",svt="UploadNotFoundException",ovt="UpdatePullThroughCacheRule",ivt="UpdatePullThroughCacheRuleRequest",avt="UpdatePullThroughCacheRuleResponse",cvt="UntagResource",lvt="UpdateRepositoryCreationTemplate",uvt="UpdateRepositoryCreationTemplateRequest",dvt="UpdateRepositoryCreationTemplateResponse",pvt="UntagResourceRequest",mvt="UntagResourceResponse",fvt="UnableToAccessSecretException",Avt="UnableToDecryptSecretValueException",hvt="UnableToGetUpstreamImageException",gvt="UnableToGetUpstreamLayerException",yvt="UnableToListUpstreamImageReferrersException",Evt="UnsupportedUpstreamRegistryException",Cvt="Value",Ivt="ValidationException",xvt="VulnerablePackage",wvt="VulnerablePackagesList",bvt="ValidatePullThroughCacheRule",Svt="ValidatePullThroughCacheRuleRequest",Bvt="ValidatePullThroughCacheRuleResponse",Rvt="architecture",Nvt="awsAccountId",Tvt="authorizationData",Pvt="awsEcrContainerImage",P6="appliedFor",vvt="acceptedMediaTypes",_vt="artifactMediaType",Qvt="appliedRulePriority",Xke="artifactStatus",Dvt="appliedScanFilters",kvt="authorizationToken",Lvt="artifactType",Ovt="artifactTypes",Mvt="action",Fvt="adjustments",Uvt="annotations",qvt="arch",$vt="attributes",Gvt="author",Hvt="baseScore",We="client",Yf="credentialArn",vy="createdAt",bl="customRoleArn",Zke="cvss",_y="description",zvt="downloadUrl",Vvt="destinations",Yvt="details",Wvt="digest",He="error",jvt="expiresAt",Jvt="exploitAvailable",c0="encryptionConfiguration",Kvt="enhancedFindings",Xvt="expiringImageTotalCount",Uu="ecrRepositoryPrefix",Zvt="ecrRepositoryPrefixes",eLe="encryptionType",e_t="epoch",XD="failures",t_t="findingArn",r_t="fixAvailable",l0="failureCode",n_t="fixedInVersion",s_t="firstObservedAt",o_t="filePath",ZD="failureReason",tLe="findingSeverityCounts",ek="filterType",i_t="failure",Bp="filter",a_t="findings",rLe="force",c_t="httpError",l_t="images",u_t="imageDetails",u0="imageDigest",d_t="imageHash",Qy="imageIds",Yi="imageId",nLe="imageManifest",v6="imageManifestMediaType",sLe="imagePushedAt",tk="imageStatus",rk="imageScanningConfiguration",oLe="imageScanCompletedAt",p_t="imageScanFindings",m_t="imageScanFindingsSummary",f_t="imageSizeInBytes",_6="imageScanStatus",Q6="imageTags",A_t="imageTotalCount",Wf="imageTagMutability",jf="imageTagMutabilityExclusionFilters",iLe="imageTag",h_t="inUseCount",g_t="isValid",y_t="id",E_t="image",C_t="key",I_t="kmsError",aLe="kmsKey",x_t="layers",w_t="layerAvailability",b_t="lastArchivedAt",S_t="lastActivatedAt",B_t="lastByteReceived",cLe="layerDigests",d0="layerDigest",lLe="lastEvaluatedAt",R_t="lastInUseAt",N_t="lastObservedAt",D6="lifecyclePolicy",T_t="layerPartBlob",Jf="lifecyclePolicyText",P_t="lastRecordedPullTime",v_t="layerSize",__t="lastValidByteReceived",ze="message",qu="maxResults",uLe="mediaType",Q_t="metric",Dy="name",Sn="nextToken",D_t="platform",k_t="pushedAt",nk="principalArn",L_t="proxyEndpoint",O_t="partFirstByte",M_t="partLastByte",F_t="packageManager",U_t="previewResults",q_t="partSize",Rp="policyText",$_t="pullThroughCacheRules",G_t="pullTimeUpdateExclusions",H_t="packageVulnerabilityDetails",sk="prefix",z_t="prefixes",V_t="registry",k6="resourceArn",dLe="repositoryArn",L6="replicationConfiguration",O6="repositoryCreationTemplate",Y_t="repositoryCreationTemplates",M6="repositoryFilters",ne="registryId",W_t="registryIds",De="repositoryName",pLe="repositoryNames",F6="repositoryPolicy",j_t="replicationStatuses",J_t="registryScanningConfiguration",U6="resourceTags",K_t="referenceUrls",X_t="repositoryUri",Z_t="relatedVulnerabilities",mLe="repository",eQt="reason",tQt="recommendation",rQt="referrers",fLe="region",nQt="release",sQt="remediation",oQt="repositories",iQt="resources",ok="rules",ALe="smithy.ts.sdk.synthetic.com.amazonaws.ecr",aQt="scanningConfigurations",cQt="scanningConfiguration",ik="signingConfiguration",lQt="storageClass",uQt="scoreDetails",hLe="scanFrequency",dQt="subjectId",pQt="sourceLayerHash",mQt="subjectManifestDigest",gLe="scanOnPush",yLe="signingProfileArn",fQt="scoreSource",AQt="signingStatuses",ELe="scanType",hQt="sourceUrl",CLe="scoringVector",ILe="score",gQt="server",xLe="severity",yQt="size",wLe="source",ky="status",EQt="summary",ak="tags",CQt="transitioningImageTotalCounts",IQt="tagKeys",q6="tagStatus",$6="targetStorageClass",xQt="text",wQt="title",G6="type",bQt="uri",ck="updatedAt",Ly="uploadId",H6="upstreamRegistry",Oy="upstreamRepositoryPrefix",p0="upstreamRegistryUrl",SQt="url",lk="value",BQt="vendorCreatedAt",RQt="vulnerabilityId",NQt="vulnerablePackages",TQt="vendorSeverity",bLe="vulnerabilitySourceUpdatedAt",PQt="vendorUpdatedAt",z6="version",T="com.amazonaws.ecr",SLe=(Ct(),W($x)),vQt=KD(),Ve=T6(),BLe=SLe.TypeRegistry.for(ALe);A.ECRServiceException$=[-3,ALe,"ECRServiceException",0,[],[]];BLe.registerError(A.ECRServiceException$,vQt.ECRServiceException);var Ue=SLe.TypeRegistry.for(T);A.BlockedByOrganizationPolicyException$=[-3,T,HSt,{[He]:We},[ze],[0]];Ue.registerError(A.BlockedByOrganizationPolicyException$,Ve.BlockedByOrganizationPolicyException);A.EmptyUploadException$=[-3,T,IRt,{[He]:We},[ze],[0]];Ue.registerError(A.EmptyUploadException$,Ve.EmptyUploadException);A.ExclusionAlreadyExistsException$=[-3,T,ARt,{[He]:We},[ze],[0]];Ue.registerError(A.ExclusionAlreadyExistsException$,Ve.ExclusionAlreadyExistsException);A.ExclusionNotFoundException$=[-3,T,CRt,{[He]:We},[ze],[0]];Ue.registerError(A.ExclusionNotFoundException$,Ve.ExclusionNotFoundException);A.ImageAlreadyExistsException$=[-3,T,KRt,{[He]:We},[ze],[0]];Ue.registerError(A.ImageAlreadyExistsException$,Ve.ImageAlreadyExistsException);A.ImageArchivedException$=[-3,T,JRt,{[He]:We},[ze],[0]];Ue.registerError(A.ImageArchivedException$,Ve.ImageArchivedException);A.ImageDigestDoesNotMatchException$=[-3,T,ZRt,{[He]:We},[ze],[0]];Ue.registerError(A.ImageDigestDoesNotMatchException$,Ve.ImageDigestDoesNotMatchException);A.ImageNotFoundException$=[-3,T,dNt,{[He]:We},[ze],[0]];Ue.registerError(A.ImageNotFoundException$,Ve.ImageNotFoundException);A.ImageStorageClassUpdateNotSupportedException$=[-3,T,yNt,{[He]:We},[ze],[0]];Ue.registerError(A.ImageStorageClassUpdateNotSupportedException$,Ve.ImageStorageClassUpdateNotSupportedException);A.ImageTagAlreadyExistsException$=[-3,T,BNt,{[He]:We},[ze],[0]];Ue.registerError(A.ImageTagAlreadyExistsException$,Ve.ImageTagAlreadyExistsException);A.InvalidLayerException$=[-3,T,iNt,{[He]:We},[ze],[0]];Ue.registerError(A.InvalidLayerException$,Ve.InvalidLayerException);A.InvalidLayerPartException$=[-3,T,aNt,{[He]:We},[ne,De,Ly,__t,ze],[0,0,0,1,0]];Ue.registerError(A.InvalidLayerPartException$,Ve.InvalidLayerPartException);A.InvalidParameterException$=[-3,T,pNt,{[He]:We},[ze],[0]];Ue.registerError(A.InvalidParameterException$,Ve.InvalidParameterException);A.InvalidTagParameterException$=[-3,T,TNt,{[He]:We},[ze],[0]];Ue.registerError(A.InvalidTagParameterException$,Ve.InvalidTagParameterException);A.KmsException$=[-3,T,vNt,{[He]:We},[ze,I_t],[0,0]];Ue.registerError(A.KmsException$,Ve.KmsException);A.LayerAlreadyExistsException$=[-3,T,QNt,{[He]:We},[ze],[0]];Ue.registerError(A.LayerAlreadyExistsException$,Ve.LayerAlreadyExistsException);A.LayerInaccessibleException$=[-3,T,MNt,{[He]:We},[ze],[0]];Ue.registerError(A.LayerInaccessibleException$,Ve.LayerInaccessibleException);A.LayerPartTooSmallException$=[-3,T,rTt,{[He]:We},[ze],[0]];Ue.registerError(A.LayerPartTooSmallException$,Ve.LayerPartTooSmallException);A.LayersNotFoundException$=[-3,T,YNt,{[He]:We},[ze],[0]];Ue.registerError(A.LayersNotFoundException$,Ve.LayersNotFoundException);A.LifecyclePolicyNotFoundException$=[-3,T,WNt,{[He]:We},[ze],[0]];Ue.registerError(A.LifecyclePolicyNotFoundException$,Ve.LifecyclePolicyNotFoundException);A.LifecyclePolicyPreviewInProgressException$=[-3,T,JNt,{[He]:We},[ze],[0]];Ue.registerError(A.LifecyclePolicyPreviewInProgressException$,Ve.LifecyclePolicyPreviewInProgressException);A.LifecyclePolicyPreviewNotFoundException$=[-3,T,KNt,{[He]:We},[ze],[0]];Ue.registerError(A.LifecyclePolicyPreviewNotFoundException$,Ve.LifecyclePolicyPreviewNotFoundException);A.LimitExceededException$=[-3,T,DNt,{[He]:We},[ze],[0]];Ue.registerError(A.LimitExceededException$,Ve.LimitExceededException);A.PullThroughCacheRuleAlreadyExistsException$=[-3,T,OTt,{[He]:We},[ze],[0]];Ue.registerError(A.PullThroughCacheRuleAlreadyExistsException$,Ve.PullThroughCacheRuleAlreadyExistsException);A.PullThroughCacheRuleNotFoundException$=[-3,T,FTt,{[He]:We},[ze],[0]];Ue.registerError(A.PullThroughCacheRuleNotFoundException$,Ve.PullThroughCacheRuleNotFoundException);A.ReferencedImagesNotFoundException$=[-3,T,KTt,{[He]:We},[ze],[0]];Ue.registerError(A.ReferencedImagesNotFoundException$,Ve.ReferencedImagesNotFoundException);A.RegistryPolicyNotFoundException$=[-3,T,rPt,{[He]:We},[ze],[0]];Ue.registerError(A.RegistryPolicyNotFoundException$,Ve.RegistryPolicyNotFoundException);A.RepositoryAlreadyExistsException$=[-3,T,$Tt,{[He]:We},[ze],[0]];Ue.registerError(A.RepositoryAlreadyExistsException$,Ve.RepositoryAlreadyExistsException);A.RepositoryNotEmptyException$=[-3,T,ePt,{[He]:We},[ze],[0]];Ue.registerError(A.RepositoryNotEmptyException$,Ve.RepositoryNotEmptyException);A.RepositoryNotFoundException$=[-3,T,tPt,{[He]:We},[ze],[0]];Ue.registerError(A.RepositoryNotFoundException$,Ve.RepositoryNotFoundException);A.RepositoryPolicyNotFoundException$=[-3,T,nPt,{[He]:We},[ze],[0]];Ue.registerError(A.RepositoryPolicyNotFoundException$,Ve.RepositoryPolicyNotFoundException);A.ScanNotFoundException$=[-3,T,PPt,{[He]:We},[ze],[0]];Ue.registerError(A.ScanNotFoundException$,Ve.ScanNotFoundException);A.SecretNotFoundException$=[-3,T,vPt,{[He]:We},[ze],[0]];Ue.registerError(A.SecretNotFoundException$,Ve.SecretNotFoundException);A.ServerException$=[-3,T,xPt,{[He]:gQt},[ze],[0]];Ue.registerError(A.ServerException$,Ve.ServerException);A.SigningConfigurationNotFoundException$=[-3,T,CPt,{[He]:We},[ze],[0]];Ue.registerError(A.SigningConfigurationNotFoundException$,Ve.SigningConfigurationNotFoundException);A.TemplateAlreadyExistsException$=[-3,T,$Pt,{[He]:We},[ze],[0]];Ue.registerError(A.TemplateAlreadyExistsException$,Ve.TemplateAlreadyExistsException);A.TemplateNotFoundException$=[-3,T,YPt,{[He]:We},[ze],[0]];Ue.registerError(A.TemplateNotFoundException$,Ve.TemplateNotFoundException);A.TooManyTagsException$=[-3,T,VPt,{[He]:We},[ze],[0]];Ue.registerError(A.TooManyTagsException$,Ve.TooManyTagsException);A.UnableToAccessSecretException$=[-3,T,fvt,{[He]:We},[ze],[0]];Ue.registerError(A.UnableToAccessSecretException$,Ve.UnableToAccessSecretException);A.UnableToDecryptSecretValueException$=[-3,T,Avt,{[He]:We},[ze],[0]];Ue.registerError(A.UnableToDecryptSecretValueException$,Ve.UnableToDecryptSecretValueException);A.UnableToGetUpstreamImageException$=[-3,T,hvt,{[He]:We},[ze],[0]];Ue.registerError(A.UnableToGetUpstreamImageException$,Ve.UnableToGetUpstreamImageException);A.UnableToGetUpstreamLayerException$=[-3,T,gvt,{[He]:We},[ze],[0]];Ue.registerError(A.UnableToGetUpstreamLayerException$,Ve.UnableToGetUpstreamLayerException);A.UnableToListUpstreamImageReferrersException$=[-3,T,yvt,{[He]:We},[ze],[0]];Ue.registerError(A.UnableToListUpstreamImageReferrersException$,Ve.UnableToListUpstreamImageReferrersException);A.UnsupportedImageTypeException$=[-3,T,evt,{[He]:We},[ze],[0]];Ue.registerError(A.UnsupportedImageTypeException$,Ve.UnsupportedImageTypeException);A.UnsupportedUpstreamRegistryException$=[-3,T,Evt,{[He]:We},[ze],[0]];Ue.registerError(A.UnsupportedUpstreamRegistryException$,Ve.UnsupportedUpstreamRegistryException);A.UploadNotFoundException$=[-3,T,svt,{[He]:We},[ze],[0]];Ue.registerError(A.UploadNotFoundException$,Ve.UploadNotFoundException);A.ValidationException$=[-3,T,Ivt,{[He]:We,[c_t]:400},[ze],[0]];Ue.registerError(A.ValidationException$,Ve.ValidationException);A.errorTypeRegistries=[BLe,Ue];A.Attribute$=[3,T,FSt,0,[C_t,lk],[0,0],1];A.AuthorizationData$=[3,T,USt,0,[kvt,jvt,L_t],[0,4,0]];A.AwsEcrContainerImageDetails$=[3,T,$St,0,[Rvt,Gvt,d_t,Q6,D_t,k_t,R_t,h_t,V_t,De],[0,0,0,64,0,4,4,1,0,0]];A.BatchCheckLayerAvailabilityRequest$=[3,T,VSt,0,[De,cLe,ne],[0,64,0],2];A.BatchCheckLayerAvailabilityResponse$=[3,T,YSt,0,[x_t,XD],[()=>HQt,()=>GQt]];A.BatchDeleteImageRequest$=[3,T,jSt,0,[De,Qy,ne],[0,()=>My,0],2];A.BatchDeleteImageResponse$=[3,T,JSt,0,[Qy,XD],[()=>My,()=>RLe]];A.BatchGetImageRequest$=[3,T,XSt,0,[De,Qy,ne,vvt],[0,()=>My,0,64],2];A.BatchGetImageResponse$=[3,T,ZSt,0,[l_t,XD],[()=>MQt,()=>RLe]];A.BatchGetRepositoryScanningConfigurationRequest$=[3,T,tBt,0,[pLe],[64],1];A.BatchGetRepositoryScanningConfigurationResponse$=[3,T,rBt,0,[aQt,XD],[()=>ZQt,()=>XQt]];A.CompleteLayerUploadRequest$=[3,T,sBt,0,[De,Ly,cLe,ne],[0,0,64,0],3];A.CompleteLayerUploadResponse$=[3,T,oBt,0,[ne,De,Ly,d0],[0,0,0,0]];A.CreatePullThroughCacheRuleRequest$=[3,T,aBt,0,[Uu,p0,ne,H6,Yf,bl,Oy],[0,0,0,0,0,0,0],2];A.CreatePullThroughCacheRuleResponse$=[3,T,cBt,0,[Uu,p0,vy,ne,H6,Yf,bl,Oy],[0,0,4,0,0,0,0,0]];A.CreateRepositoryCreationTemplateRequest$=[3,T,dBt,0,[sk,P6,_y,c0,U6,Wf,jf,F6,D6,bl],[0,64,0,()=>A.EncryptionConfigurationForRepositoryCreationTemplate$,()=>Fy,0,()=>Kf,0,0,0],2];A.CreateRepositoryCreationTemplateResponse$=[3,T,pBt,0,[ne,O6],[0,()=>A.RepositoryCreationTemplate$]];A.CreateRepositoryRequest$=[3,T,mBt,0,[De,ne,ak,Wf,jf,rk,c0],[0,0,()=>Fy,0,()=>Kf,()=>A.ImageScanningConfiguration$,()=>A.EncryptionConfiguration$],1];A.CreateRepositoryResponse$=[3,T,fBt,0,[mLe],[()=>A.Repository$]];A.CvssScore$=[3,T,ABt,0,[Hvt,CLe,wLe,z6],[1,0,0,0]];A.CvssScoreAdjustment$=[3,T,hBt,0,[Q_t,eQt],[0,0]];A.CvssScoreDetails$=[3,T,yBt,0,[Fvt,ILe,fQt,CLe,z6],[()=>DQt,1,0,0,0]];A.DeleteLifecyclePolicyRequest$=[3,T,DBt,0,[De,ne],[0,0],1];A.DeleteLifecyclePolicyResponse$=[3,T,kBt,0,[ne,De,Jf,lLe],[0,0,0,4]];A.DeletePullThroughCacheRuleRequest$=[3,T,OBt,0,[Uu,ne],[0,0],1];A.DeletePullThroughCacheRuleResponse$=[3,T,MBt,0,[Uu,p0,vy,ne,Yf,bl,Oy],[0,0,4,0,0,0,0]];A.DeleteRegistryPolicyRequest$=[3,T,ZBt,0,[],[]];A.DeleteRegistryPolicyResponse$=[3,T,eRt,0,[ne,Rp],[0,0]];A.DeleteRepositoryCreationTemplateRequest$=[3,T,YBt,0,[sk],[0],1];A.DeleteRepositoryCreationTemplateResponse$=[3,T,WBt,0,[ne,O6],[0,()=>A.RepositoryCreationTemplate$]];A.DeleteRepositoryPolicyRequest$=[3,T,tRt,0,[De,ne],[0,0],1];A.DeleteRepositoryPolicyResponse$=[3,T,rRt,0,[ne,De,Rp],[0,0,0]];A.DeleteRepositoryRequest$=[3,T,sRt,0,[De,ne,rLe],[0,0,2],1];A.DeleteRepositoryResponse$=[3,T,oRt,0,[mLe],[()=>A.Repository$]];A.DeleteSigningConfigurationRequest$=[3,T,mRt,0,[],[]];A.DeleteSigningConfigurationResponse$=[3,T,fRt,0,[ne,ik],[0,()=>A.SigningConfiguration$]];A.DeregisterPullTimeUpdateExclusionRequest$=[3,T,GBt,0,[nk],[0],1];A.DeregisterPullTimeUpdateExclusionResponse$=[3,T,HBt,0,[nk],[0]];A.DescribeImageReplicationStatusRequest$=[3,T,bBt,0,[De,Yi,ne],[0,()=>A.ImageIdentifier$,0],2];A.DescribeImageReplicationStatusResponse$=[3,T,SBt,0,[De,Yi,j_t],[0,()=>A.ImageIdentifier$,()=>UQt]];A.DescribeImageScanFindingsRequest$=[3,T,NBt,0,[De,Yi,ne,Sn,qu],[0,()=>A.ImageIdentifier$,0,0,1],2];A.DescribeImageScanFindingsResponse$=[3,T,TBt,0,[ne,De,Yi,_6,p_t,Sn],[0,0,()=>A.ImageIdentifier$,()=>A.ImageScanStatus$,()=>A.ImageScanFindings$,0]];A.DescribeImagesFilter$=[3,T,IBt,0,[q6,tk],[0,0]];A.DescribeImageSigningStatusRequest$=[3,T,vBt,0,[De,Yi,ne],[0,()=>A.ImageIdentifier$,0],2];A.DescribeImageSigningStatusResponse$=[3,T,_Bt,0,[De,Yi,ne,AQt],[0,()=>A.ImageIdentifier$,0,()=>$Qt]];A.DescribeImagesRequest$=[3,T,xBt,0,[De,ne,Qy,Sn,qu,Bp],[0,0,()=>My,0,1,()=>A.DescribeImagesFilter$],1];A.DescribeImagesResponse$=[3,T,BBt,0,[u_t,Sn],[()=>OQt,0]];A.DescribePullThroughCacheRulesRequest$=[3,T,FBt,0,[ne,Zvt,Sn,qu],[0,64,0,1]];A.DescribePullThroughCacheRulesResponse$=[3,T,UBt,0,[$_t,Sn],[()=>VQt,0]];A.DescribeRegistryRequest$=[3,T,iRt,0,[],[]];A.DescribeRegistryResponse$=[3,T,aRt,0,[ne,L6],[0,()=>A.ReplicationConfiguration$]];A.DescribeRepositoriesRequest$=[3,T,cRt,0,[ne,pLe,Sn,qu],[0,64,0,1]];A.DescribeRepositoriesResponse$=[3,T,lRt,0,[oQt,Sn],[()=>KQt,0]];A.DescribeRepositoryCreationTemplatesRequest$=[3,T,jBt,0,[z_t,Sn,qu],[64,0,1]];A.DescribeRepositoryCreationTemplatesResponse$=[3,T,JBt,0,[ne,Y_t,Sn],[0,()=>jQt,0]];A.EncryptionConfiguration$=[3,T,hRt,0,[eLe,aLe],[0,0],1];A.EncryptionConfigurationForRepositoryCreationTemplate$=[3,T,gRt,0,[eLe,aLe],[0,0],1];A.EnhancedImageScanFinding$=[3,T,yRt,0,[Nvt,_y,t_t,s_t,N_t,H_t,sQt,iQt,ILe,uQt,xLe,ky,wQt,G6,ck,r_t,Jvt],[0,0,0,4,4,()=>A.PackageVulnerabilityDetails$,()=>A.Remediation$,()=>eDt,1,()=>A.ScoreDetails$,0,0,0,0,4,0,0]];A.GetAccountSettingRequest$=[3,T,wRt,0,[Dy],[0],1];A.GetAccountSettingResponse$=[3,T,bRt,0,[Dy,lk],[0,0]];A.GetAuthorizationTokenRequest$=[3,T,BRt,0,[W_t],[64]];A.GetAuthorizationTokenResponse$=[3,T,RRt,0,[Tvt],[()=>QQt]];A.GetDownloadUrlForLayerRequest$=[3,T,TRt,0,[De,d0,ne],[0,0,0],2];A.GetDownloadUrlForLayerResponse$=[3,T,PRt,0,[zvt,d0],[0,0]];A.GetLifecyclePolicyPreviewRequest$=[3,T,QRt,0,[De,ne,Qy,Sn,qu,Bp],[0,0,()=>My,0,1,()=>A.LifecyclePolicyPreviewFilter$],1];A.GetLifecyclePolicyPreviewResponse$=[3,T,DRt,0,[ne,De,Jf,ky,Sn,U_t,EQt],[0,0,0,0,0,()=>zQt,()=>A.LifecyclePolicyPreviewSummary$]];A.GetLifecyclePolicyRequest$=[3,T,kRt,0,[De,ne],[0,0],1];A.GetLifecyclePolicyResponse$=[3,T,LRt,0,[ne,De,Jf,lLe],[0,0,0,4]];A.GetRegistryPolicyRequest$=[3,T,MRt,0,[],[]];A.GetRegistryPolicyResponse$=[3,T,FRt,0,[ne,Rp],[0,0]];A.GetRegistryScanningConfigurationRequest$=[3,T,HRt,0,[],[]];A.GetRegistryScanningConfigurationResponse$=[3,T,zRt,0,[ne,cQt],[0,()=>A.RegistryScanningConfiguration$]];A.GetRepositoryPolicyRequest$=[3,T,URt,0,[De,ne],[0,0],1];A.GetRepositoryPolicyResponse$=[3,T,qRt,0,[ne,De,Rp],[0,0,0]];A.GetSigningConfigurationRequest$=[3,T,YRt,0,[],[]];A.GetSigningConfigurationResponse$=[3,T,WRt,0,[ne,ik],[0,()=>A.SigningConfiguration$]];A.Image$=[3,T,jRt,0,[ne,De,Yi,nLe,v6],[0,0,()=>A.ImageIdentifier$,0,0]];A.ImageDetail$=[3,T,XRt,0,[ne,De,u0,Q6,f_t,sLe,_6,m_t,v6,_vt,P_t,mQt,tk,b_t,S_t],[0,0,0,64,1,4,()=>A.ImageScanStatus$,()=>A.ImageScanFindingsSummary$,0,0,4,0,0,4,4]];A.ImageFailure$=[3,T,tNt,0,[Yi,l0,ZD],[()=>A.ImageIdentifier$,0,0]];A.ImageIdentifier$=[3,T,nNt,0,[u0,iLe],[0,0]];A.ImageReferrer$=[3,T,mNt,0,[Wvt,uLe,yQt,Lvt,Uvt,Xke],[0,0,1,0,128,0],3];A.ImageReplicationStatus$=[3,T,ANt,0,[fLe,ne,ky,l0],[0,0,0,0]];A.ImageScanFinding$=[3,T,ENt,0,[Dy,_y,bQt,xLe,$vt],[0,0,0,0,()=>_Qt]];A.ImageScanFindings$=[3,T,xNt,0,[oLe,bLe,tLe,a_t,Kvt],[4,4,129,()=>qQt,()=>LQt]];A.ImageScanFindingsSummary$=[3,T,INt,0,[oLe,bLe,tLe],[4,4,129]];A.ImageScanningConfiguration$=[3,T,gNt,0,[gLe],[2]];A.ImageScanStatus$=[3,T,wNt,0,[ky,_y],[0,0]];A.ImageSigningStatus$=[3,T,SNt,0,[yLe,l0,ZD,ky],[0,0,0,0]];A.ImageTagMutabilityExclusionFilter$=[3,T,RNt,0,[ek,Bp],[0,0],2];A.InitiateLayerUploadRequest$=[3,T,lNt,0,[De,ne],[0,0],1];A.InitiateLayerUploadResponse$=[3,T,uNt,0,[Ly,q_t],[0,1]];A.Layer$=[3,T,_Nt,0,[d0,w_t,v_t,uLe],[0,0,1,0]];A.LayerFailure$=[3,T,kNt,0,[d0,l0,ZD],[0,0,0]];A.LifecyclePolicyPreviewFilter$=[3,T,jNt,0,[q6],[0]];A.LifecyclePolicyPreviewResult$=[3,T,XNt,0,[Q6,u0,sLe,Mvt,Qvt,lQt],[64,0,4,()=>A.LifecyclePolicyRuleAction$,1,0]];A.LifecyclePolicyPreviewSummary$=[3,T,eTt,0,[Xvt,CQt],[1,()=>nDt]];A.LifecyclePolicyRuleAction$=[3,T,tTt,0,[G6,$6],[0,0]];A.ListImageReferrersFilter$=[3,T,qNt,0,[Ovt,Xke],[64,0]];A.ListImageReferrersRequest$=[3,T,$Nt,0,[De,dQt,ne,Bp,Sn,qu],[0,()=>A.SubjectIdentifier$,0,()=>A.ListImageReferrersFilter$,0,1],2];A.ListImageReferrersResponse$=[3,T,GNt,0,[rQt,Sn],[()=>FQt,0]];A.ListImagesFilter$=[3,T,FNt,0,[q6,tk],[0,0]];A.ListImagesRequest$=[3,T,UNt,0,[De,ne,Sn,qu,Bp],[0,0,0,1,()=>A.ListImagesFilter$],1];A.ListImagesResponse$=[3,T,HNt,0,[Qy,Sn],[()=>My,0]];A.ListPullTimeUpdateExclusionsRequest$=[3,T,sTt,0,[qu,Sn],[1,0]];A.ListPullTimeUpdateExclusionsResponse$=[3,T,oTt,0,[G_t,Sn],[64,0]];A.ListTagsForResourceRequest$=[3,T,aTt,0,[k6],[0],1];A.ListTagsForResourceResponse$=[3,T,cTt,0,[ak],[()=>Fy]];A.PackageVulnerabilityDetails$=[3,T,UTt,0,[Zke,K_t,Z_t,wLe,hQt,BQt,TQt,PQt,RQt,NQt],[()=>kQt,64,64,0,0,4,0,4,0,()=>sDt]];A.PullThroughCacheRule$=[3,T,LTt,0,[Uu,p0,vy,ne,Yf,bl,Oy,H6,ck],[0,0,4,0,0,0,0,0,4]];A.PutAccountSettingRequest$=[3,T,uTt,0,[Dy,lk],[0,0],2];A.PutAccountSettingResponse$=[3,T,dTt,0,[Dy,lk],[0,0]];A.PutImageRequest$=[3,T,mTt,0,[De,nLe,ne,v6,iLe,u0],[0,0,0,0,0,0],2];A.PutImageResponse$=[3,T,fTt,0,[E_t],[()=>A.Image$]];A.PutImageScanningConfigurationRequest$=[3,T,hTt,0,[De,rk,ne],[0,()=>A.ImageScanningConfiguration$,0],2];A.PutImageScanningConfigurationResponse$=[3,T,gTt,0,[ne,De,rk],[0,0,()=>A.ImageScanningConfiguration$]];A.PutImageTagMutabilityRequest$=[3,T,ETt,0,[De,Wf,ne,jf],[0,0,0,()=>Kf],2];A.PutImageTagMutabilityResponse$=[3,T,CTt,0,[ne,De,Wf,jf],[0,0,0,()=>Kf]];A.PutLifecyclePolicyRequest$=[3,T,xTt,0,[De,Jf,ne],[0,0,0],2];A.PutLifecyclePolicyResponse$=[3,T,wTt,0,[ne,De,Jf],[0,0,0]];A.PutRegistryPolicyRequest$=[3,T,NTt,0,[Rp],[0],1];A.PutRegistryPolicyResponse$=[3,T,TTt,0,[ne,Rp],[0,0]];A.PutRegistryScanningConfigurationRequest$=[3,T,vTt,0,[ELe,ok],[0,()=>NLe]];A.PutRegistryScanningConfigurationResponse$=[3,T,_Tt,0,[J_t],[()=>A.RegistryScanningConfiguration$]];A.PutReplicationConfigurationRequest$=[3,T,STt,0,[L6],[()=>A.ReplicationConfiguration$],1];A.PutReplicationConfigurationResponse$=[3,T,BTt,0,[L6],[()=>A.ReplicationConfiguration$]];A.PutSigningConfigurationRequest$=[3,T,DTt,0,[ik],[()=>A.SigningConfiguration$],1];A.PutSigningConfigurationResponse$=[3,T,kTt,0,[ik],[()=>A.SigningConfiguration$]];A.Recommendation$=[3,T,qTt,0,[SQt,xQt],[0,0]];A.RegisterPullTimeUpdateExclusionRequest$=[3,T,oPt,0,[nk],[0],1];A.RegisterPullTimeUpdateExclusionResponse$=[3,T,iPt,0,[nk,vy],[0,4]];A.RegistryScanningConfiguration$=[3,T,lPt,0,[ELe,ok],[0,()=>NLe]];A.RegistryScanningRule$=[3,T,fPt,0,[hLe,M6],[0,()=>TLe],2];A.Remediation$=[3,T,hPt,0,[tQt],[()=>A.Recommendation$]];A.ReplicationConfiguration$=[3,T,GTt,0,[ok],[()=>WQt],1];A.ReplicationDestination$=[3,T,VTt,0,[fLe,ne],[0,0],2];A.ReplicationRule$=[3,T,aPt,0,[Vvt,M6],[()=>YQt,()=>JQt],1];A.Repository$=[3,T,gPt,0,[dLe,ne,De,X_t,vy,Wf,jf,rk,c0],[0,0,0,0,4,0,()=>Kf,()=>A.ImageScanningConfiguration$,()=>A.EncryptionConfiguration$]];A.RepositoryCreationTemplate$=[3,T,HTt,0,[sk,_y,c0,U6,Wf,jf,F6,D6,P6,bl,vy,ck],[0,0,()=>A.EncryptionConfigurationForRepositoryCreationTemplate$,()=>Fy,0,()=>Kf,0,0,64,0,4,4]];A.RepositoryFilter$=[3,T,jTt,0,[Bp,ek],[0,0],2];A.RepositoryScanningConfiguration$=[3,T,mPt,0,[dLe,De,gLe,hLe,Dvt],[0,0,2,0,()=>TLe]];A.RepositoryScanningConfigurationFailure$=[3,T,uPt,0,[De,l0,ZD],[0,0,0]];A.Resource$=[3,T,yPt,0,[Yvt,y_t,ak,G6],[()=>A.ResourceDetails$,0,128,0]];A.ResourceDetails$=[3,T,WTt,0,[Pvt],[()=>A.AwsEcrContainerImageDetails$]];A.ScanningRepositoryFilter$=[3,T,QPt,0,[Bp,ek],[0,0],2];A.ScoreDetails$=[3,T,IPt,0,[Zke],[()=>A.CvssScoreDetails$]];A.SetRepositoryPolicyRequest$=[3,T,FPt,0,[De,Rp,ne,rLe],[0,0,0,2],2];A.SetRepositoryPolicyResponse$=[3,T,UPt,0,[ne,De,Rp],[0,0,0]];A.SigningConfiguration$=[3,T,EPt,0,[ok],[()=>rDt],1];A.SigningRepositoryFilter$=[3,T,LPt,0,[Bp,ek],[0,0],2];A.SigningRule$=[3,T,_Pt,0,[yLe,M6],[0,()=>tDt],1];A.StartImageScanRequest$=[3,T,SPt,0,[De,Yi,ne],[0,()=>A.ImageIdentifier$,0],2];A.StartImageScanResponse$=[3,T,BPt,0,[ne,De,Yi,_6],[0,0,()=>A.ImageIdentifier$,()=>A.ImageScanStatus$]];A.StartLifecyclePolicyPreviewRequest$=[3,T,NPt,0,[De,ne,Jf],[0,0,0],1];A.StartLifecyclePolicyPreviewResponse$=[3,T,TPt,0,[ne,De,Jf,ky],[0,0,0,0]];A.SubjectIdentifier$=[3,T,wPt,0,[u0],[0],1];A.Tag$=[3,T,qPt,0,[PNt,Cvt],[0,0],2];A.TagResourceRequest$=[3,T,jPt,0,[k6,ak],[0,()=>Fy],2];A.TagResourceResponse$=[3,T,JPt,0,[],[]];A.TransitioningImageTotalCount$=[3,T,GPt,0,[$6,A_t],[0,1]];A.UntagResourceRequest$=[3,T,pvt,0,[k6,IQt],[0,64],2];A.UntagResourceResponse$=[3,T,mvt,0,[],[]];A.UpdateImageStorageClassRequest$=[3,T,XPt,0,[De,Yi,$6,ne],[0,()=>A.ImageIdentifier$,0,0],3];A.UpdateImageStorageClassResponse$=[3,T,ZPt,0,[ne,De,Yi,tk],[0,0,()=>A.ImageIdentifier$,0]];A.UpdatePullThroughCacheRuleRequest$=[3,T,ivt,0,[Uu,ne,Yf,bl],[0,0,0,0],1];A.UpdatePullThroughCacheRuleResponse$=[3,T,avt,0,[Uu,ne,ck,Yf,bl,Oy],[0,0,4,0,0,0]];A.UpdateRepositoryCreationTemplateRequest$=[3,T,uvt,0,[sk,_y,c0,U6,Wf,jf,F6,D6,P6,bl],[0,0,()=>A.EncryptionConfigurationForRepositoryCreationTemplate$,()=>Fy,0,()=>Kf,0,0,64,0],1];A.UpdateRepositoryCreationTemplateResponse$=[3,T,dvt,0,[ne,O6],[0,()=>A.RepositoryCreationTemplate$]];A.UploadLayerPartRequest$=[3,T,rvt,0,[De,Ly,O_t,M_t,T_t,ne],[0,0,1,1,21,0],5];A.UploadLayerPartResponse$=[3,T,nvt,0,[ne,De,Ly,B_t],[0,0,0,1]];A.ValidatePullThroughCacheRuleRequest$=[3,T,Svt,0,[Uu,ne],[0,0],1];A.ValidatePullThroughCacheRuleResponse$=[3,T,Bvt,0,[Uu,ne,p0,Yf,bl,Oy,g_t,i_t],[0,0,0,0,0,0,2,0]];A.VulnerablePackage$=[3,T,xvt,0,[qvt,e_t,o_t,Dy,F_t,nQt,pQt,z6,n_t],[0,1,0,0,0,0,0,0,0]];var _Qt=[1,T,GSt,0,()=>A.Attribute$],QQt=[1,T,qSt,0,()=>A.AuthorizationData$],DQt=[1,T,gBt,0,()=>A.CvssScoreAdjustment$],kQt=[1,T,EBt,0,()=>A.CvssScore$],LQt=[1,T,ERt,0,()=>A.EnhancedImageScanFinding$],OQt=[1,T,eNt,0,()=>A.ImageDetail$],RLe=[1,T,rNt,0,()=>A.ImageFailure$],My=[1,T,sNt,0,()=>A.ImageIdentifier$],MQt=[1,T,oNt,0,()=>A.Image$],FQt=[1,T,fNt,0,()=>A.ImageReferrer$],UQt=[1,T,hNt,0,()=>A.ImageReplicationStatus$],qQt=[1,T,CNt,0,()=>A.ImageScanFinding$],$Qt=[1,T,bNt,0,()=>A.ImageSigningStatus$],Kf=[1,T,NNt,0,()=>A.ImageTagMutabilityExclusionFilter$],GQt=[1,T,LNt,0,()=>A.LayerFailure$],HQt=[1,T,VNt,0,()=>A.Layer$],zQt=[1,T,ZNt,0,()=>A.LifecyclePolicyPreviewResult$],VQt=[1,T,MTt,0,()=>A.PullThroughCacheRule$],NLe=[1,T,APt,0,()=>A.RegistryScanningRule$],YQt=[1,T,YTt,0,()=>A.ReplicationDestination$],WQt=[1,T,cPt,0,()=>A.ReplicationRule$],jQt=[1,T,zTt,0,()=>A.RepositoryCreationTemplate$],JQt=[1,T,JTt,0,()=>A.RepositoryFilter$],KQt=[1,T,XTt,0,()=>A.Repository$],XQt=[1,T,dPt,0,()=>A.RepositoryScanningConfigurationFailure$],ZQt=[1,T,pPt,0,()=>A.RepositoryScanningConfiguration$],eDt=[1,T,ZTt,0,()=>A.Resource$],TLe=[1,T,DPt,0,()=>A.ScanningRepositoryFilter$],tDt=[1,T,kPt,0,()=>A.SigningRepositoryFilter$],rDt=[1,T,OPt,0,()=>A.SigningRule$],Fy=[1,T,zPt,0,()=>A.Tag$],nDt=[1,T,HPt,0,()=>A.TransitioningImageTotalCount$],sDt=[1,T,wvt,0,()=>A.VulnerablePackage$];A.BatchCheckLayerAvailability$=[9,T,zSt,0,()=>A.BatchCheckLayerAvailabilityRequest$,()=>A.BatchCheckLayerAvailabilityResponse$];A.BatchDeleteImage$=[9,T,WSt,0,()=>A.BatchDeleteImageRequest$,()=>A.BatchDeleteImageResponse$];A.BatchGetImage$=[9,T,KSt,0,()=>A.BatchGetImageRequest$,()=>A.BatchGetImageResponse$];A.BatchGetRepositoryScanningConfiguration$=[9,T,eBt,0,()=>A.BatchGetRepositoryScanningConfigurationRequest$,()=>A.BatchGetRepositoryScanningConfigurationResponse$];A.CompleteLayerUpload$=[9,T,nBt,0,()=>A.CompleteLayerUploadRequest$,()=>A.CompleteLayerUploadResponse$];A.CreatePullThroughCacheRule$=[9,T,iBt,0,()=>A.CreatePullThroughCacheRuleRequest$,()=>A.CreatePullThroughCacheRuleResponse$];A.CreateRepository$=[9,T,lBt,0,()=>A.CreateRepositoryRequest$,()=>A.CreateRepositoryResponse$];A.CreateRepositoryCreationTemplate$=[9,T,uBt,0,()=>A.CreateRepositoryCreationTemplateRequest$,()=>A.CreateRepositoryCreationTemplateResponse$];A.DeleteLifecyclePolicy$=[9,T,QBt,0,()=>A.DeleteLifecyclePolicyRequest$,()=>A.DeleteLifecyclePolicyResponse$];A.DeletePullThroughCacheRule$=[9,T,LBt,0,()=>A.DeletePullThroughCacheRuleRequest$,()=>A.DeletePullThroughCacheRuleResponse$];A.DeleteRegistryPolicy$=[9,T,XBt,0,()=>A.DeleteRegistryPolicyRequest$,()=>A.DeleteRegistryPolicyResponse$];A.DeleteRepository$=[9,T,zBt,0,()=>A.DeleteRepositoryRequest$,()=>A.DeleteRepositoryResponse$];A.DeleteRepositoryCreationTemplate$=[9,T,VBt,0,()=>A.DeleteRepositoryCreationTemplateRequest$,()=>A.DeleteRepositoryCreationTemplateResponse$];A.DeleteRepositoryPolicy$=[9,T,nRt,0,()=>A.DeleteRepositoryPolicyRequest$,()=>A.DeleteRepositoryPolicyResponse$];A.DeleteSigningConfiguration$=[9,T,pRt,0,()=>A.DeleteSigningConfigurationRequest$,()=>A.DeleteSigningConfigurationResponse$];A.DeregisterPullTimeUpdateExclusion$=[9,T,$Bt,0,()=>A.DeregisterPullTimeUpdateExclusionRequest$,()=>A.DeregisterPullTimeUpdateExclusionResponse$];A.DescribeImageReplicationStatus$=[9,T,wBt,0,()=>A.DescribeImageReplicationStatusRequest$,()=>A.DescribeImageReplicationStatusResponse$];A.DescribeImages$=[9,T,CBt,0,()=>A.DescribeImagesRequest$,()=>A.DescribeImagesResponse$];A.DescribeImageScanFindings$=[9,T,RBt,0,()=>A.DescribeImageScanFindingsRequest$,()=>A.DescribeImageScanFindingsResponse$];A.DescribeImageSigningStatus$=[9,T,PBt,0,()=>A.DescribeImageSigningStatusRequest$,()=>A.DescribeImageSigningStatusResponse$];A.DescribePullThroughCacheRules$=[9,T,qBt,0,()=>A.DescribePullThroughCacheRulesRequest$,()=>A.DescribePullThroughCacheRulesResponse$];A.DescribeRegistry$=[9,T,uRt,0,()=>A.DescribeRegistryRequest$,()=>A.DescribeRegistryResponse$];A.DescribeRepositories$=[9,T,dRt,0,()=>A.DescribeRepositoriesRequest$,()=>A.DescribeRepositoriesResponse$];A.DescribeRepositoryCreationTemplates$=[9,T,KBt,0,()=>A.DescribeRepositoryCreationTemplatesRequest$,()=>A.DescribeRepositoryCreationTemplatesResponse$];A.GetAccountSetting$=[9,T,xRt,0,()=>A.GetAccountSettingRequest$,()=>A.GetAccountSettingResponse$];A.GetAuthorizationToken$=[9,T,SRt,0,()=>A.GetAuthorizationTokenRequest$,()=>A.GetAuthorizationTokenResponse$];A.GetDownloadUrlForLayer$=[9,T,NRt,0,()=>A.GetDownloadUrlForLayerRequest$,()=>A.GetDownloadUrlForLayerResponse$];A.GetLifecyclePolicy$=[9,T,vRt,0,()=>A.GetLifecyclePolicyRequest$,()=>A.GetLifecyclePolicyResponse$];A.GetLifecyclePolicyPreview$=[9,T,_Rt,0,()=>A.GetLifecyclePolicyPreviewRequest$,()=>A.GetLifecyclePolicyPreviewResponse$];A.GetRegistryPolicy$=[9,T,ORt,0,()=>A.GetRegistryPolicyRequest$,()=>A.GetRegistryPolicyResponse$];A.GetRegistryScanningConfiguration$=[9,T,GRt,0,()=>A.GetRegistryScanningConfigurationRequest$,()=>A.GetRegistryScanningConfigurationResponse$];A.GetRepositoryPolicy$=[9,T,$Rt,0,()=>A.GetRepositoryPolicyRequest$,()=>A.GetRepositoryPolicyResponse$];A.GetSigningConfiguration$=[9,T,VRt,0,()=>A.GetSigningConfigurationRequest$,()=>A.GetSigningConfigurationResponse$];A.InitiateLayerUpload$=[9,T,cNt,0,()=>A.InitiateLayerUploadRequest$,()=>A.InitiateLayerUploadResponse$];A.ListImageReferrers$=[9,T,zNt,0,()=>A.ListImageReferrersRequest$,()=>A.ListImageReferrersResponse$];A.ListImages$=[9,T,ONt,0,()=>A.ListImagesRequest$,()=>A.ListImagesResponse$];A.ListPullTimeUpdateExclusions$=[9,T,nTt,0,()=>A.ListPullTimeUpdateExclusionsRequest$,()=>A.ListPullTimeUpdateExclusionsResponse$];A.ListTagsForResource$=[9,T,iTt,0,()=>A.ListTagsForResourceRequest$,()=>A.ListTagsForResourceResponse$];A.PutAccountSetting$=[9,T,lTt,0,()=>A.PutAccountSettingRequest$,()=>A.PutAccountSettingResponse$];A.PutImage$=[9,T,pTt,0,()=>A.PutImageRequest$,()=>A.PutImageResponse$];A.PutImageScanningConfiguration$=[9,T,ATt,0,()=>A.PutImageScanningConfigurationRequest$,()=>A.PutImageScanningConfigurationResponse$];A.PutImageTagMutability$=[9,T,yTt,0,()=>A.PutImageTagMutabilityRequest$,()=>A.PutImageTagMutabilityResponse$];A.PutLifecyclePolicy$=[9,T,ITt,0,()=>A.PutLifecyclePolicyRequest$,()=>A.PutLifecyclePolicyResponse$];A.PutRegistryPolicy$=[9,T,RTt,0,()=>A.PutRegistryPolicyRequest$,()=>A.PutRegistryPolicyResponse$];A.PutRegistryScanningConfiguration$=[9,T,PTt,0,()=>A.PutRegistryScanningConfigurationRequest$,()=>A.PutRegistryScanningConfigurationResponse$];A.PutReplicationConfiguration$=[9,T,bTt,0,()=>A.PutReplicationConfigurationRequest$,()=>A.PutReplicationConfigurationResponse$];A.PutSigningConfiguration$=[9,T,QTt,0,()=>A.PutSigningConfigurationRequest$,()=>A.PutSigningConfigurationResponse$];A.RegisterPullTimeUpdateExclusion$=[9,T,sPt,0,()=>A.RegisterPullTimeUpdateExclusionRequest$,()=>A.RegisterPullTimeUpdateExclusionResponse$];A.SetRepositoryPolicy$=[9,T,MPt,0,()=>A.SetRepositoryPolicyRequest$,()=>A.SetRepositoryPolicyResponse$];A.StartImageScan$=[9,T,bPt,0,()=>A.StartImageScanRequest$,()=>A.StartImageScanResponse$];A.StartLifecyclePolicyPreview$=[9,T,RPt,0,()=>A.StartLifecyclePolicyPreviewRequest$,()=>A.StartLifecyclePolicyPreviewResponse$];A.TagResource$=[9,T,WPt,0,()=>A.TagResourceRequest$,()=>A.TagResourceResponse$];A.UntagResource$=[9,T,cvt,0,()=>A.UntagResourceRequest$,()=>A.UntagResourceResponse$];A.UpdateImageStorageClass$=[9,T,KPt,0,()=>A.UpdateImageStorageClassRequest$,()=>A.UpdateImageStorageClassResponse$];A.UpdatePullThroughCacheRule$=[9,T,ovt,0,()=>A.UpdatePullThroughCacheRuleRequest$,()=>A.UpdatePullThroughCacheRuleResponse$];A.UpdateRepositoryCreationTemplate$=[9,T,lvt,0,()=>A.UpdateRepositoryCreationTemplateRequest$,()=>A.UpdateRepositoryCreationTemplateResponse$];A.UploadLayerPart$=[9,T,tvt,0,()=>A.UploadLayerPartRequest$,()=>A.UploadLayerPartResponse$];A.ValidatePullThroughCacheRule$=[9,T,bvt,0,()=>A.ValidatePullThroughCacheRuleRequest$,()=>A.ValidatePullThroughCacheRuleResponse$]});var PLe=b(dk=>{"use strict";Object.defineProperty(dk,"__esModule",{value:!0});dk.getRuntimeConfig=void 0;var oDt=(Xr(),W(up)),iDt=(_f(),W(xJ)),aDt=(Ce(),W(Ui)),cDt=(Qe(),W(rl)),uk=(st(),W(Zd)),lDt=wj(),uDt=Jke(),dDt=V6(),pDt=i(t=>({apiVersion:"2015-09-21",base64Decoder:t?.base64Decoder??uk.fromBase64,base64Encoder:t?.base64Encoder??uk.toBase64,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??uDt.defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??lDt.defaultECRHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new oDt.AwsSdkSigV4Signer}],logger:t?.logger??new aDt.NoOpLogger,protocol:t?.protocol??iDt.AwsJson1_1Protocol,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:dDt.errorTypeRegistries,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:t?.serviceId??"ECR",urlParser:t?.urlParser??cDt.parseUrl,utf8Decoder:t?.utf8Decoder??uk.fromUtf8,utf8Encoder:t?.utf8Encoder??uk.toUtf8}),"getRuntimeConfig");dk.getRuntimeConfig=pDt});var DLe=b(pk=>{"use strict";Object.defineProperty(pk,"__esModule",{value:!0});pk.getRuntimeConfig=void 0;var mDt=(ty(),W(ey)),fDt=mDt.__importDefault(EPe()),Y6=(wt(),W(Ds)),ADt=(Xr(),W(up)),hDt=v5(),vLe=(Ce(),W(Ui)),Wi=(Tt(),W(kn)),W6=(_s(),W(jx)),_Le=(st(),W(Zd)),QLe=vu(),gDt=PLe(),yDt=i(t=>{(0,vLe.emitWarningIfUnsupportedVersion)(process.version);let e=(0,Wi.resolveDefaultsModeConfig)(t),r=i(()=>e().then(vLe.loadConfigsForDefaultMode),"defaultConfigProvider"),n=(0,gDt.getRuntimeConfig)(t);(0,Y6.emitWarningIfUnsupportedVersion)(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??(0,Wi.loadConfig)(ADt.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:t?.bodyLengthChecker??_Le.calculateBodyLength,credentialDefaultProvider:t?.credentialDefaultProvider??hDt.defaultProvider,defaultUserAgentProvider:t?.defaultUserAgentProvider??(0,Y6.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:fDt.default.version}),maxAttempts:t?.maxAttempts??(0,Wi.loadConfig)(W6.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,t),region:t?.region??(0,Wi.loadConfig)(Wi.NODE_REGION_CONFIG_OPTIONS,{...Wi.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:QLe.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??(0,Wi.loadConfig)({...W6.NODE_RETRY_MODE_CONFIG_OPTIONS,default:i(async()=>(await r()).retryMode||W6.DEFAULT_RETRY_MODE,"default")},t),sha256:t?.sha256??_Le.Hash.bind(null,"sha256"),streamCollector:t?.streamCollector??QLe.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??(0,Wi.loadConfig)(Wi.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:t?.useFipsEndpoint??(0,Wi.loadConfig)(Wi.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:t?.userAgentAppId??(0,Wi.loadConfig)(Y6.NODE_APP_ID_CONFIG_OPTIONS,s)}},"getRuntimeConfig");pk.getRuntimeConfig=yDt});var WLe=b($=>{"use strict";var Np=(wt(),W(Ds)),Sl=(Qs(),W(Q8)),X=(Ce(),W(Ui)),EDt=(Tt(),W(kn)),Ie=(xt(),W(df)),j6=(Qe(),W(rl)),kLe=(_s(),W(jx)),CDt=(Ct(),W($x)),LLe=wj(),IDt=DLe(),ge=V6(),mk=T6(),xDt=KD(),wDt=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr"}),"resolveClientEndpointParameters"),xe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},bDt=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),SDt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),BDt=i((t,e)=>{let r=Object.assign(Np.getAwsRegionExtensionConfiguration(t),X.getDefaultExtensionConfiguration(t),j6.getHttpHandlerExtensionConfiguration(t),bDt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Np.resolveAwsRegionExtensionConfiguration(r),X.resolveDefaultRuntimeConfig(r),j6.resolveHttpHandlerRuntimeConfig(r),SDt(r))},"resolveRuntimeExtensions"),Fa=class extends X.Client{static{i(this,"ECRClient")}config;constructor(...[e]){let r=IDt.getRuntimeConfig(e||{});super(r),this.initConfig=r;let n=wDt(r),s=Np.resolveUserAgentConfig(n),o=kLe.resolveRetryConfig(s),a=EDt.resolveRegionConfig(o),c=Np.resolveHostHeaderConfig(a),l=Ie.resolveEndpointConfig(c),u=LLe.resolveHttpAuthSchemeConfig(l),d=BDt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(CDt.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Np.getUserAgentPlugin(this.config)),this.middlewareStack.use(kLe.getRetryPlugin(this.config)),this.middlewareStack.use(j6.getContentLengthPlugin(this.config)),this.middlewareStack.use(Np.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Np.getLoggerPlugin(this.config)),this.middlewareStack.use(Np.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(Sl.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:LLe.defaultECRHttpAuthSchemeParametersProvider,identityProviderConfigProvider:i(async p=>new Sl.DefaultIdentityProviderConfig({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Sl.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},fk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","BatchCheckLayerAvailability",{}).n("ECRClient","BatchCheckLayerAvailabilityCommand").sc(ge.BatchCheckLayerAvailability$).build(){static{i(this,"BatchCheckLayerAvailabilityCommand")}},Ak=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","BatchDeleteImage",{}).n("ECRClient","BatchDeleteImageCommand").sc(ge.BatchDeleteImage$).build(){static{i(this,"BatchDeleteImageCommand")}},hk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","BatchGetImage",{}).n("ECRClient","BatchGetImageCommand").sc(ge.BatchGetImage$).build(){static{i(this,"BatchGetImageCommand")}},gk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","BatchGetRepositoryScanningConfiguration",{}).n("ECRClient","BatchGetRepositoryScanningConfigurationCommand").sc(ge.BatchGetRepositoryScanningConfiguration$).build(){static{i(this,"BatchGetRepositoryScanningConfigurationCommand")}},yk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","CompleteLayerUpload",{}).n("ECRClient","CompleteLayerUploadCommand").sc(ge.CompleteLayerUpload$).build(){static{i(this,"CompleteLayerUploadCommand")}},Ek=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","CreatePullThroughCacheRule",{}).n("ECRClient","CreatePullThroughCacheRuleCommand").sc(ge.CreatePullThroughCacheRule$).build(){static{i(this,"CreatePullThroughCacheRuleCommand")}},Ck=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","CreateRepository",{}).n("ECRClient","CreateRepositoryCommand").sc(ge.CreateRepository$).build(){static{i(this,"CreateRepositoryCommand")}},Ik=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","CreateRepositoryCreationTemplate",{}).n("ECRClient","CreateRepositoryCreationTemplateCommand").sc(ge.CreateRepositoryCreationTemplate$).build(){static{i(this,"CreateRepositoryCreationTemplateCommand")}},xk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteLifecyclePolicy",{}).n("ECRClient","DeleteLifecyclePolicyCommand").sc(ge.DeleteLifecyclePolicy$).build(){static{i(this,"DeleteLifecyclePolicyCommand")}},wk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeletePullThroughCacheRule",{}).n("ECRClient","DeletePullThroughCacheRuleCommand").sc(ge.DeletePullThroughCacheRule$).build(){static{i(this,"DeletePullThroughCacheRuleCommand")}},bk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteRegistryPolicy",{}).n("ECRClient","DeleteRegistryPolicyCommand").sc(ge.DeleteRegistryPolicy$).build(){static{i(this,"DeleteRegistryPolicyCommand")}},Sk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepository",{}).n("ECRClient","DeleteRepositoryCommand").sc(ge.DeleteRepository$).build(){static{i(this,"DeleteRepositoryCommand")}},Bk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryCreationTemplate",{}).n("ECRClient","DeleteRepositoryCreationTemplateCommand").sc(ge.DeleteRepositoryCreationTemplate$).build(){static{i(this,"DeleteRepositoryCreationTemplateCommand")}},Rk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryPolicy",{}).n("ECRClient","DeleteRepositoryPolicyCommand").sc(ge.DeleteRepositoryPolicy$).build(){static{i(this,"DeleteRepositoryPolicyCommand")}},Nk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteSigningConfiguration",{}).n("ECRClient","DeleteSigningConfigurationCommand").sc(ge.DeleteSigningConfiguration$).build(){static{i(this,"DeleteSigningConfigurationCommand")}},Tk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeregisterPullTimeUpdateExclusion",{}).n("ECRClient","DeregisterPullTimeUpdateExclusionCommand").sc(ge.DeregisterPullTimeUpdateExclusion$).build(){static{i(this,"DeregisterPullTimeUpdateExclusionCommand")}},Pk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageReplicationStatus",{}).n("ECRClient","DescribeImageReplicationStatusCommand").sc(ge.DescribeImageReplicationStatus$).build(){static{i(this,"DescribeImageReplicationStatusCommand")}},Uy=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageScanFindings",{}).n("ECRClient","DescribeImageScanFindingsCommand").sc(ge.DescribeImageScanFindings$).build(){static{i(this,"DescribeImageScanFindingsCommand")}},m0=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeImages",{}).n("ECRClient","DescribeImagesCommand").sc(ge.DescribeImages$).build(){static{i(this,"DescribeImagesCommand")}},vk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageSigningStatus",{}).n("ECRClient","DescribeImageSigningStatusCommand").sc(ge.DescribeImageSigningStatus$).build(){static{i(this,"DescribeImageSigningStatusCommand")}},f0=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribePullThroughCacheRules",{}).n("ECRClient","DescribePullThroughCacheRulesCommand").sc(ge.DescribePullThroughCacheRules$).build(){static{i(this,"DescribePullThroughCacheRulesCommand")}},_k=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeRegistry",{}).n("ECRClient","DescribeRegistryCommand").sc(ge.DescribeRegistry$).build(){static{i(this,"DescribeRegistryCommand")}},A0=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositories",{}).n("ECRClient","DescribeRepositoriesCommand").sc(ge.DescribeRepositories$).build(){static{i(this,"DescribeRepositoriesCommand")}},h0=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositoryCreationTemplates",{}).n("ECRClient","DescribeRepositoryCreationTemplatesCommand").sc(ge.DescribeRepositoryCreationTemplates$).build(){static{i(this,"DescribeRepositoryCreationTemplatesCommand")}},Qk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetAccountSetting",{}).n("ECRClient","GetAccountSettingCommand").sc(ge.GetAccountSetting$).build(){static{i(this,"GetAccountSettingCommand")}},Dk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetAuthorizationToken",{}).n("ECRClient","GetAuthorizationTokenCommand").sc(ge.GetAuthorizationToken$).build(){static{i(this,"GetAuthorizationTokenCommand")}},kk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetDownloadUrlForLayer",{}).n("ECRClient","GetDownloadUrlForLayerCommand").sc(ge.GetDownloadUrlForLayer$).build(){static{i(this,"GetDownloadUrlForLayerCommand")}},Lk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicy",{}).n("ECRClient","GetLifecyclePolicyCommand").sc(ge.GetLifecyclePolicy$).build(){static{i(this,"GetLifecyclePolicyCommand")}},qy=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicyPreview",{}).n("ECRClient","GetLifecyclePolicyPreviewCommand").sc(ge.GetLifecyclePolicyPreview$).build(){static{i(this,"GetLifecyclePolicyPreviewCommand")}},Ok=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryPolicy",{}).n("ECRClient","GetRegistryPolicyCommand").sc(ge.GetRegistryPolicy$).build(){static{i(this,"GetRegistryPolicyCommand")}},Mk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryScanningConfiguration",{}).n("ECRClient","GetRegistryScanningConfigurationCommand").sc(ge.GetRegistryScanningConfiguration$).build(){static{i(this,"GetRegistryScanningConfigurationCommand")}},Fk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetRepositoryPolicy",{}).n("ECRClient","GetRepositoryPolicyCommand").sc(ge.GetRepositoryPolicy$).build(){static{i(this,"GetRepositoryPolicyCommand")}},Uk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetSigningConfiguration",{}).n("ECRClient","GetSigningConfigurationCommand").sc(ge.GetSigningConfiguration$).build(){static{i(this,"GetSigningConfigurationCommand")}},qk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","InitiateLayerUpload",{}).n("ECRClient","InitiateLayerUploadCommand").sc(ge.InitiateLayerUpload$).build(){static{i(this,"InitiateLayerUploadCommand")}},$k=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","ListImageReferrers",{}).n("ECRClient","ListImageReferrersCommand").sc(ge.ListImageReferrers$).build(){static{i(this,"ListImageReferrersCommand")}},g0=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","ListImages",{}).n("ECRClient","ListImagesCommand").sc(ge.ListImages$).build(){static{i(this,"ListImagesCommand")}},Gk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","ListPullTimeUpdateExclusions",{}).n("ECRClient","ListPullTimeUpdateExclusionsCommand").sc(ge.ListPullTimeUpdateExclusions$).build(){static{i(this,"ListPullTimeUpdateExclusionsCommand")}},Hk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","ListTagsForResource",{}).n("ECRClient","ListTagsForResourceCommand").sc(ge.ListTagsForResource$).build(){static{i(this,"ListTagsForResourceCommand")}},zk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutAccountSetting",{}).n("ECRClient","PutAccountSettingCommand").sc(ge.PutAccountSetting$).build(){static{i(this,"PutAccountSettingCommand")}},Vk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutImage",{}).n("ECRClient","PutImageCommand").sc(ge.PutImage$).build(){static{i(this,"PutImageCommand")}},Yk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutImageScanningConfiguration",{}).n("ECRClient","PutImageScanningConfigurationCommand").sc(ge.PutImageScanningConfiguration$).build(){static{i(this,"PutImageScanningConfigurationCommand")}},Wk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutImageTagMutability",{}).n("ECRClient","PutImageTagMutabilityCommand").sc(ge.PutImageTagMutability$).build(){static{i(this,"PutImageTagMutabilityCommand")}},jk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutLifecyclePolicy",{}).n("ECRClient","PutLifecyclePolicyCommand").sc(ge.PutLifecyclePolicy$).build(){static{i(this,"PutLifecyclePolicyCommand")}},Jk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryPolicy",{}).n("ECRClient","PutRegistryPolicyCommand").sc(ge.PutRegistryPolicy$).build(){static{i(this,"PutRegistryPolicyCommand")}},Kk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryScanningConfiguration",{}).n("ECRClient","PutRegistryScanningConfigurationCommand").sc(ge.PutRegistryScanningConfiguration$).build(){static{i(this,"PutRegistryScanningConfigurationCommand")}},Xk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutReplicationConfiguration",{}).n("ECRClient","PutReplicationConfigurationCommand").sc(ge.PutReplicationConfiguration$).build(){static{i(this,"PutReplicationConfigurationCommand")}},Zk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutSigningConfiguration",{}).n("ECRClient","PutSigningConfigurationCommand").sc(ge.PutSigningConfiguration$).build(){static{i(this,"PutSigningConfigurationCommand")}},eL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","RegisterPullTimeUpdateExclusion",{}).n("ECRClient","RegisterPullTimeUpdateExclusionCommand").sc(ge.RegisterPullTimeUpdateExclusion$).build(){static{i(this,"RegisterPullTimeUpdateExclusionCommand")}},tL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","SetRepositoryPolicy",{}).n("ECRClient","SetRepositoryPolicyCommand").sc(ge.SetRepositoryPolicy$).build(){static{i(this,"SetRepositoryPolicyCommand")}},rL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","StartImageScan",{}).n("ECRClient","StartImageScanCommand").sc(ge.StartImageScan$).build(){static{i(this,"StartImageScanCommand")}},nL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","StartLifecyclePolicyPreview",{}).n("ECRClient","StartLifecyclePolicyPreviewCommand").sc(ge.StartLifecyclePolicyPreview$).build(){static{i(this,"StartLifecyclePolicyPreviewCommand")}},sL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","TagResource",{}).n("ECRClient","TagResourceCommand").sc(ge.TagResource$).build(){static{i(this,"TagResourceCommand")}},oL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","UntagResource",{}).n("ECRClient","UntagResourceCommand").sc(ge.UntagResource$).build(){static{i(this,"UntagResourceCommand")}},iL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","UpdateImageStorageClass",{}).n("ECRClient","UpdateImageStorageClassCommand").sc(ge.UpdateImageStorageClass$).build(){static{i(this,"UpdateImageStorageClassCommand")}},aL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","UpdatePullThroughCacheRule",{}).n("ECRClient","UpdatePullThroughCacheRuleCommand").sc(ge.UpdatePullThroughCacheRule$).build(){static{i(this,"UpdatePullThroughCacheRuleCommand")}},cL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","UpdateRepositoryCreationTemplate",{}).n("ECRClient","UpdateRepositoryCreationTemplateCommand").sc(ge.UpdateRepositoryCreationTemplate$).build(){static{i(this,"UpdateRepositoryCreationTemplateCommand")}},lL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","UploadLayerPart",{}).n("ECRClient","UploadLayerPartCommand").sc(ge.UploadLayerPart$).build(){static{i(this,"UploadLayerPartCommand")}},uL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","ValidatePullThroughCacheRule",{}).n("ECRClient","ValidatePullThroughCacheRuleCommand").sc(ge.ValidatePullThroughCacheRule$).build(){static{i(this,"ValidatePullThroughCacheRuleCommand")}},OLe=Sl.createPaginator(Fa,Uy,"nextToken","nextToken","maxResults"),MLe=Sl.createPaginator(Fa,m0,"nextToken","nextToken","maxResults"),FLe=Sl.createPaginator(Fa,f0,"nextToken","nextToken","maxResults"),ULe=Sl.createPaginator(Fa,A0,"nextToken","nextToken","maxResults"),qLe=Sl.createPaginator(Fa,h0,"nextToken","nextToken","maxResults"),$Le=Sl.createPaginator(Fa,qy,"nextToken","nextToken","maxResults"),GLe=Sl.createPaginator(Fa,g0,"nextToken","nextToken","maxResults"),HLe=i(async(t,e)=>{let r;try{let n=await t.send(new Uy(e));r=n;try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="COMPLETE")return{state:X.WaiterState.SUCCESS,reason:r}}catch{}try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="FAILED")return{state:X.WaiterState.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:X.WaiterState.RETRY,reason:r}},"checkState$1"),RDt=i(async(t,e)=>{let r={minDelay:5,maxDelay:120};return X.createWaiter({...r,...t},e,HLe)},"waitForImageScanComplete"),zLe=i(async(t,e)=>{let r={minDelay:5,maxDelay:120},n=await X.createWaiter({...r,...t},e,HLe);return X.checkExceptions(n)},"waitUntilImageScanComplete"),VLe=i(async(t,e)=>{let r;try{let n=await t.send(new qy(e));r=n;try{if(i(()=>n.status,"returnComparator")()==="COMPLETE")return{state:X.WaiterState.SUCCESS,reason:r}}catch{}try{if(i(()=>n.status,"returnComparator")()==="FAILED")return{state:X.WaiterState.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:X.WaiterState.RETRY,reason:r}},"checkState"),NDt=i(async(t,e)=>{let r={minDelay:5,maxDelay:120};return X.createWaiter({...r,...t},e,VLe)},"waitForLifecyclePolicyPreviewComplete"),YLe=i(async(t,e)=>{let r={minDelay:5,maxDelay:120},n=await X.createWaiter({...r,...t},e,VLe);return X.checkExceptions(n)},"waitUntilLifecyclePolicyPreviewComplete"),TDt={BatchCheckLayerAvailabilityCommand:fk,BatchDeleteImageCommand:Ak,BatchGetImageCommand:hk,BatchGetRepositoryScanningConfigurationCommand:gk,CompleteLayerUploadCommand:yk,CreatePullThroughCacheRuleCommand:Ek,CreateRepositoryCommand:Ck,CreateRepositoryCreationTemplateCommand:Ik,DeleteLifecyclePolicyCommand:xk,DeletePullThroughCacheRuleCommand:wk,DeleteRegistryPolicyCommand:bk,DeleteRepositoryCommand:Sk,DeleteRepositoryCreationTemplateCommand:Bk,DeleteRepositoryPolicyCommand:Rk,DeleteSigningConfigurationCommand:Nk,DeregisterPullTimeUpdateExclusionCommand:Tk,DescribeImageReplicationStatusCommand:Pk,DescribeImagesCommand:m0,DescribeImageScanFindingsCommand:Uy,DescribeImageSigningStatusCommand:vk,DescribePullThroughCacheRulesCommand:f0,DescribeRegistryCommand:_k,DescribeRepositoriesCommand:A0,DescribeRepositoryCreationTemplatesCommand:h0,GetAccountSettingCommand:Qk,GetAuthorizationTokenCommand:Dk,GetDownloadUrlForLayerCommand:kk,GetLifecyclePolicyCommand:Lk,GetLifecyclePolicyPreviewCommand:qy,GetRegistryPolicyCommand:Ok,GetRegistryScanningConfigurationCommand:Mk,GetRepositoryPolicyCommand:Fk,GetSigningConfigurationCommand:Uk,InitiateLayerUploadCommand:qk,ListImageReferrersCommand:$k,ListImagesCommand:g0,ListPullTimeUpdateExclusionsCommand:Gk,ListTagsForResourceCommand:Hk,PutAccountSettingCommand:zk,PutImageCommand:Vk,PutImageScanningConfigurationCommand:Yk,PutImageTagMutabilityCommand:Wk,PutLifecyclePolicyCommand:jk,PutRegistryPolicyCommand:Jk,PutRegistryScanningConfigurationCommand:Kk,PutReplicationConfigurationCommand:Xk,PutSigningConfigurationCommand:Zk,RegisterPullTimeUpdateExclusionCommand:eL,SetRepositoryPolicyCommand:tL,StartImageScanCommand:rL,StartLifecyclePolicyPreviewCommand:nL,TagResourceCommand:sL,UntagResourceCommand:oL,UpdateImageStorageClassCommand:iL,UpdatePullThroughCacheRuleCommand:aL,UpdateRepositoryCreationTemplateCommand:cL,UploadLayerPartCommand:lL,ValidatePullThroughCacheRuleCommand:uL},PDt={paginateDescribeImages:MLe,paginateDescribeImageScanFindings:OLe,paginateDescribePullThroughCacheRules:FLe,paginateDescribeRepositories:ULe,paginateDescribeRepositoryCreationTemplates:qLe,paginateGetLifecyclePolicyPreview:$Le,paginateListImages:GLe},vDt={waitUntilImageScanComplete:zLe,waitUntilLifecyclePolicyPreviewComplete:YLe},dL=class extends Fa{static{i(this,"ECR")}};X.createAggregatedClient(TDt,dL,{paginators:PDt,waiters:vDt});var _Dt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},QDt={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},DDt={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"},kDt={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"},LDt={WILDCARD:"WILDCARD"},ODt={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"},MDt={AzureContainerRegistry:"azure-container-registry",Chainguard:"chainguard",DockerHub:"docker-hub",Ecr:"ecr",EcrPublic:"ecr-public",GitHubContainerRegistry:"github-container-registry",GitLabContainerRegistry:"gitlab-container-registry",K8s:"k8s",Quay:"quay"},FDt={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"},UDt={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"},qDt={WILDCARD:"WILDCARD"},$Dt={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"},GDt={WILDCARD_MATCH:"WILDCARD_MATCH"},HDt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},zDt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},VDt={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"},YDt={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"},WDt={ACTIVE:"ACTIVE",COMPLETE:"COMPLETE",FAILED:"FAILED",FINDINGS_UNAVAILABLE:"FINDINGS_UNAVAILABLE",IMAGE_ARCHIVED:"IMAGE_ARCHIVED",IN_PROGRESS:"IN_PROGRESS",LIMIT_EXCEEDED:"LIMIT_EXCEEDED",PENDING:"PENDING",SCAN_ELIGIBILITY_EXPIRED:"SCAN_ELIGIBILITY_EXPIRED",UNSUPPORTED_IMAGE:"UNSUPPORTED_IMAGE"},jDt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},JDt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},KDt={PREFIX_MATCH:"PREFIX_MATCH"},XDt={ARCHIVE:"ARCHIVE"},ZDt={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"},ekt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"},tkt={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},rkt={BASIC:"BASIC",ENHANCED:"ENHANCED"},nkt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},skt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},okt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};$.$Command=X.Command;$.__Client=X.Client;$.ECRServiceException=xDt.ECRServiceException;$.ArtifactStatus=skt;$.ArtifactStatusFilter=nkt;$.BatchCheckLayerAvailabilityCommand=fk;$.BatchDeleteImageCommand=Ak;$.BatchGetImageCommand=hk;$.BatchGetRepositoryScanningConfigurationCommand=gk;$.CompleteLayerUploadCommand=yk;$.CreatePullThroughCacheRuleCommand=Ek;$.CreateRepositoryCommand=Ck;$.CreateRepositoryCreationTemplateCommand=Ik;$.DeleteLifecyclePolicyCommand=xk;$.DeletePullThroughCacheRuleCommand=wk;$.DeleteRegistryPolicyCommand=bk;$.DeleteRepositoryCommand=Sk;$.DeleteRepositoryCreationTemplateCommand=Bk;$.DeleteRepositoryPolicyCommand=Rk;$.DeleteSigningConfigurationCommand=Nk;$.DeregisterPullTimeUpdateExclusionCommand=Tk;$.DescribeImageReplicationStatusCommand=Pk;$.DescribeImageScanFindingsCommand=Uy;$.DescribeImageSigningStatusCommand=vk;$.DescribeImagesCommand=m0;$.DescribePullThroughCacheRulesCommand=f0;$.DescribeRegistryCommand=_k;$.DescribeRepositoriesCommand=A0;$.DescribeRepositoryCreationTemplatesCommand=h0;$.ECR=dL;$.ECRClient=Fa;$.EncryptionType=FDt;$.FindingSeverity=YDt;$.GetAccountSettingCommand=Qk;$.GetAuthorizationTokenCommand=Dk;$.GetDownloadUrlForLayerCommand=kk;$.GetLifecyclePolicyCommand=Lk;$.GetLifecyclePolicyPreviewCommand=qy;$.GetRegistryPolicyCommand=Ok;$.GetRegistryScanningConfigurationCommand=Mk;$.GetRepositoryPolicyCommand=Fk;$.GetSigningConfigurationCommand=Uk;$.ImageActionType=ZDt;$.ImageFailureCode=DDt;$.ImageStatus=jDt;$.ImageStatusFilter=zDt;$.ImageTagMutability=UDt;$.ImageTagMutabilityExclusionFilterType=qDt;$.InitiateLayerUploadCommand=qk;$.LayerAvailability=QDt;$.LayerFailureCode=_Dt;$.LifecyclePolicyPreviewStatus=tkt;$.LifecyclePolicyStorageClass=ekt;$.LifecyclePolicyTargetStorageClass=XDt;$.ListImageReferrersCommand=$k;$.ListImagesCommand=g0;$.ListPullTimeUpdateExclusionsCommand=Gk;$.ListTagsForResourceCommand=Hk;$.PutAccountSettingCommand=zk;$.PutImageCommand=Vk;$.PutImageScanningConfigurationCommand=Yk;$.PutImageTagMutabilityCommand=Wk;$.PutLifecyclePolicyCommand=jk;$.PutRegistryPolicyCommand=Jk;$.PutRegistryScanningConfigurationCommand=Kk;$.PutReplicationConfigurationCommand=Xk;$.PutSigningConfigurationCommand=Zk;$.RCTAppliedFor=$Dt;$.RegisterPullTimeUpdateExclusionCommand=eL;$.ReplicationStatus=HDt;$.RepositoryFilterType=KDt;$.ScanFrequency=ODt;$.ScanStatus=WDt;$.ScanType=rkt;$.ScanningConfigurationFailureCode=kDt;$.ScanningRepositoryFilterType=LDt;$.SetRepositoryPolicyCommand=tL;$.SigningRepositoryFilterType=GDt;$.SigningStatus=JDt;$.StartImageScanCommand=rL;$.StartLifecyclePolicyPreviewCommand=nL;$.TagResourceCommand=sL;$.TagStatus=VDt;$.TargetStorageClass=okt;$.UntagResourceCommand=oL;$.UpdateImageStorageClassCommand=iL;$.UpdatePullThroughCacheRuleCommand=aL;$.UpdateRepositoryCreationTemplateCommand=cL;$.UploadLayerPartCommand=lL;$.UpstreamRegistry=MDt;$.ValidatePullThroughCacheRuleCommand=uL;$.paginateDescribeImageScanFindings=OLe;$.paginateDescribeImages=MLe;$.paginateDescribePullThroughCacheRules=FLe;$.paginateDescribeRepositories=ULe;$.paginateDescribeRepositoryCreationTemplates=qLe;$.paginateGetLifecyclePolicyPreview=$Le;$.paginateListImages=GLe;$.waitForImageScanComplete=RDt;$.waitForLifecyclePolicyPreviewComplete=NDt;$.waitUntilImageScanComplete=zLe;$.waitUntilLifecyclePolicyPreviewComplete=YLe;Object.prototype.hasOwnProperty.call(ge,"__proto__")&&!Object.prototype.hasOwnProperty.call($,"__proto__")&&Object.defineProperty($,"__proto__",{enumerable:!0,value:ge.__proto__});Object.keys(ge).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call($,t)&&($[t]=ge[t])});Object.prototype.hasOwnProperty.call(mk,"__proto__")&&!Object.prototype.hasOwnProperty.call($,"__proto__")&&Object.defineProperty($,"__proto__",{enumerable:!0,value:mk.__proto__});Object.keys(mk).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call($,t)&&($[t]=mk[t])})});var K6=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.resolveHttpAuthSchemeConfig=Tp.defaultECRPUBLICHttpAuthSchemeProvider=Tp.defaultECRPUBLICHttpAuthSchemeParametersProvider=void 0;var ikt=(Xr(),W(up)),J6=(Ce(),W(Ui)),akt=i(async(t,e,r)=>({operation:(0,J6.getSmithyContext)(e).operation,region:await(0,J6.normalizeProvider)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRPUBLICHttpAuthSchemeParametersProvider");Tp.defaultECRPUBLICHttpAuthSchemeParametersProvider=akt;function ckt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(ckt,"createAwsAuthSigv4HttpAuthOption");var lkt=i(t=>{let e=[];switch(t.operation){default:e.push(ckt(t))}return e},"defaultECRPUBLICHttpAuthSchemeProvider");Tp.defaultECRPUBLICHttpAuthSchemeProvider=lkt;var ukt=i(t=>{let e=(0,ikt.resolveAwsSdkSigV4Config)(t);return Object.assign(e,{authSchemePreference:(0,J6.normalizeProvider)(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig");Tp.resolveHttpAuthSchemeConfig=ukt});var jLe=b((P3r,dkt)=>{dkt.exports={name:"@aws-sdk/client-ecr-public",description:"AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native",version:"3.1052.0",scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-ecr-public","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecr-public","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.13","@aws-sdk/credential-provider-node":"^3.972.44","@aws-sdk/types":"^3.973.9","@smithy/core":"^3.24.3","@smithy/fetch-http-handler":"^5.4.3","@smithy/node-http-handler":"^4.7.3","@smithy/types":"^4.14.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},engines:{node:">=20.0.0"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr-public",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-ecr-public"}}});var tOe=b(fL=>{"use strict";Object.defineProperty(fL,"__esModule",{value:!0});fL.bdd=void 0;var pkt=(xt(),W(df)),y0="ref",Xf=-1,pL=!0,JLe="isSet",eOe="PartitionResult",mL="booleanEquals",X6="getAttr",KLe={[y0]:"Endpoint"},Z6={[y0]:eOe},$y={},XLe=[{[y0]:"Region"}],ZLe={conditions:[[JLe,[KLe]],[JLe,XLe],["aws.partition",XLe,eOe],[mL,[{[y0]:"UseFIPS"},pL]],[mL,[{[y0]:"UseDualStack"},pL]],[mL,[{fn:X6,argv:[Z6,"supportsDualStack"]},pL]],[mL,[{fn:X6,argv:[Z6,"supportsFIPS"]},pL]],["stringEquals",[{fn:X6,argv:[Z6,"name"]},"aws"]]],results:[[Xf],[Xf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Xf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[KLe,$y],["https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",$y],[Xf,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",$y],[Xf,"FIPS is enabled but this partition does not support FIPS"],["https://ecr-public.{Region}.api.aws",$y],["https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",$y],[Xf,"DualStack is enabled but this partition does not support DualStack"],["https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",$y],[Xf,"Invalid Configuration: Missing Region"]]},mkt=2,Ao=1e8,fkt=new Int32Array([-1,1,-1,0,13,3,1,4,Ao+12,2,5,Ao+12,3,9,6,4,7,Ao+11,5,8,Ao+10,7,Ao+8,Ao+9,4,11,10,6,Ao+6,Ao+7,5,12,Ao+5,6,Ao+4,Ao+5,3,Ao+1,14,4,Ao+2,Ao+3]);fL.bdd=pkt.BinaryDecisionDiagram.from(fkt,mkt,ZLe.conditions,ZLe.results)});var rOe=b(AL=>{"use strict";Object.defineProperty(AL,"__esModule",{value:!0});AL.defaultEndpointResolver=void 0;var Akt=(wt(),W(Ds)),e9=(xt(),W(df)),hkt=tOe(),gkt=new e9.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),ykt=i((t,e={})=>gkt.get(t,()=>(0,e9.decideEndpoint)(hkt.bdd,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");AL.defaultEndpointResolver=ykt;e9.customEndpointFunctions.aws=Akt.awsEndpointFunctions});var hL=b(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});Gy.ECRPUBLICServiceException=Gy.__ServiceException=void 0;var nOe=(Ce(),W(Ui));Object.defineProperty(Gy,"__ServiceException",{enumerable:!0,get:i(function(){return nOe.ServiceException},"get")});var t9=class t extends nOe.ServiceException{static{i(this,"ECRPUBLICServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Gy.ECRPUBLICServiceException=t9});var B9=b(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.ReferencedImagesNotFoundException=Me.LayersNotFoundException=Me.InvalidLayerPartException=Me.ImageTagAlreadyExistsException=Me.ImageDigestDoesNotMatchException=Me.ImageAlreadyExistsException=Me.RepositoryCatalogDataNotFoundException=Me.ImageNotFoundException=Me.RepositoryPolicyNotFoundException=Me.RepositoryNotEmptyException=Me.TooManyTagsException=Me.RepositoryAlreadyExistsException=Me.LimitExceededException=Me.InvalidTagParameterException=Me.UploadNotFoundException=Me.LayerPartTooSmallException=Me.LayerAlreadyExistsException=Me.InvalidLayerException=Me.EmptyUploadException=Me.UnsupportedCommandException=Me.ServerException=Me.RepositoryNotFoundException=Me.RegistryNotFoundException=Me.InvalidParameterException=void 0;var ar=hL(),r9=class t extends ar.ECRPUBLICServiceException{static{i(this,"InvalidParameterException")}name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.InvalidParameterException=r9;var n9=class t extends ar.ECRPUBLICServiceException{static{i(this,"RegistryNotFoundException")}name="RegistryNotFoundException";$fault="client";constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.RegistryNotFoundException=n9;var s9=class t extends ar.ECRPUBLICServiceException{static{i(this,"RepositoryNotFoundException")}name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.RepositoryNotFoundException=s9;var o9=class t extends ar.ECRPUBLICServiceException{static{i(this,"ServerException")}name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.ServerException=o9;var i9=class t extends ar.ECRPUBLICServiceException{static{i(this,"UnsupportedCommandException")}name="UnsupportedCommandException";$fault="client";constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.UnsupportedCommandException=i9;var a9=class t extends ar.ECRPUBLICServiceException{static{i(this,"EmptyUploadException")}name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.EmptyUploadException=a9;var c9=class t extends ar.ECRPUBLICServiceException{static{i(this,"InvalidLayerException")}name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.InvalidLayerException=c9;var l9=class t extends ar.ECRPUBLICServiceException{static{i(this,"LayerAlreadyExistsException")}name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.LayerAlreadyExistsException=l9;var u9=class t extends ar.ECRPUBLICServiceException{static{i(this,"LayerPartTooSmallException")}name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.LayerPartTooSmallException=u9;var d9=class t extends ar.ECRPUBLICServiceException{static{i(this,"UploadNotFoundException")}name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.UploadNotFoundException=d9;var p9=class t extends ar.ECRPUBLICServiceException{static{i(this,"InvalidTagParameterException")}name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.InvalidTagParameterException=p9;var m9=class t extends ar.ECRPUBLICServiceException{static{i(this,"LimitExceededException")}name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.LimitExceededException=m9;var f9=class t extends ar.ECRPUBLICServiceException{static{i(this,"RepositoryAlreadyExistsException")}name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.RepositoryAlreadyExistsException=f9;var A9=class t extends ar.ECRPUBLICServiceException{static{i(this,"TooManyTagsException")}name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.TooManyTagsException=A9;var h9=class t extends ar.ECRPUBLICServiceException{static{i(this,"RepositoryNotEmptyException")}name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.RepositoryNotEmptyException=h9;var g9=class t extends ar.ECRPUBLICServiceException{static{i(this,"RepositoryPolicyNotFoundException")}name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.RepositoryPolicyNotFoundException=g9;var y9=class t extends ar.ECRPUBLICServiceException{static{i(this,"ImageNotFoundException")}name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.ImageNotFoundException=y9;var E9=class t extends ar.ECRPUBLICServiceException{static{i(this,"RepositoryCatalogDataNotFoundException")}name="RepositoryCatalogDataNotFoundException";$fault="client";constructor(e){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.RepositoryCatalogDataNotFoundException=E9;var C9=class t extends ar.ECRPUBLICServiceException{static{i(this,"ImageAlreadyExistsException")}name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.ImageAlreadyExistsException=C9;var I9=class t extends ar.ECRPUBLICServiceException{static{i(this,"ImageDigestDoesNotMatchException")}name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.ImageDigestDoesNotMatchException=I9;var x9=class t extends ar.ECRPUBLICServiceException{static{i(this,"ImageTagAlreadyExistsException")}name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.ImageTagAlreadyExistsException=x9;var w9=class t extends ar.ECRPUBLICServiceException{static{i(this,"InvalidLayerPartException")}name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.registryId=e.registryId,this.repositoryName=e.repositoryName,this.uploadId=e.uploadId,this.lastValidByteReceived=e.lastValidByteReceived}};Me.InvalidLayerPartException=w9;var b9=class t extends ar.ECRPUBLICServiceException{static{i(this,"LayersNotFoundException")}name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.LayersNotFoundException=b9;var S9=class t extends ar.ECRPUBLICServiceException{static{i(this,"ReferencedImagesNotFoundException")}name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Me.ReferencedImagesNotFoundException=S9});var D9=b(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.GetRegistryCatalogDataRequest$=R.GetAuthorizationTokenResponse$=R.GetAuthorizationTokenRequest$=R.DescribeRepositoriesResponse$=R.DescribeRepositoriesRequest$=R.DescribeRegistriesResponse$=R.DescribeRegistriesRequest$=R.DescribeImageTagsResponse$=R.DescribeImageTagsRequest$=R.DescribeImagesResponse$=R.DescribeImagesRequest$=R.DeleteRepositoryResponse$=R.DeleteRepositoryRequest$=R.DeleteRepositoryPolicyResponse$=R.DeleteRepositoryPolicyRequest$=R.CreateRepositoryResponse$=R.CreateRepositoryRequest$=R.CompleteLayerUploadResponse$=R.CompleteLayerUploadRequest$=R.BatchDeleteImageResponse$=R.BatchDeleteImageRequest$=R.BatchCheckLayerAvailabilityResponse$=R.BatchCheckLayerAvailabilityRequest$=R.AuthorizationData$=R.errorTypeRegistries=R.UploadNotFoundException$=R.UnsupportedCommandException$=R.TooManyTagsException$=R.ServerException$=R.RepositoryPolicyNotFoundException$=R.RepositoryNotFoundException$=R.RepositoryNotEmptyException$=R.RepositoryCatalogDataNotFoundException$=R.RepositoryAlreadyExistsException$=R.RegistryNotFoundException$=R.ReferencedImagesNotFoundException$=R.LimitExceededException$=R.LayersNotFoundException$=R.LayerPartTooSmallException$=R.LayerAlreadyExistsException$=R.InvalidTagParameterException$=R.InvalidParameterException$=R.InvalidLayerPartException$=R.InvalidLayerException$=R.ImageTagAlreadyExistsException$=R.ImageNotFoundException$=R.ImageDigestDoesNotMatchException$=R.ImageAlreadyExistsException$=R.EmptyUploadException$=R.ECRPUBLICServiceException$=void 0;R.GetRegistryCatalogData$=R.GetAuthorizationToken$=R.DescribeRepositories$=R.DescribeRegistries$=R.DescribeImageTags$=R.DescribeImages$=R.DeleteRepositoryPolicy$=R.DeleteRepository$=R.CreateRepository$=R.CompleteLayerUpload$=R.BatchDeleteImage$=R.BatchCheckLayerAvailability$=R.UploadLayerPartResponse$=R.UploadLayerPartRequest$=R.UntagResourceResponse$=R.UntagResourceRequest$=R.TagResourceResponse$=R.TagResourceRequest$=R.Tag$=R.SetRepositoryPolicyResponse$=R.SetRepositoryPolicyRequest$=R.RepositoryCatalogDataInput$=R.RepositoryCatalogData$=R.Repository$=R.RegistryCatalogData$=R.RegistryAlias$=R.Registry$=R.ReferencedImageDetail$=R.PutRepositoryCatalogDataResponse$=R.PutRepositoryCatalogDataRequest$=R.PutRegistryCatalogDataResponse$=R.PutRegistryCatalogDataRequest$=R.PutImageResponse$=R.PutImageRequest$=R.ListTagsForResourceResponse$=R.ListTagsForResourceRequest$=R.LayerFailure$=R.Layer$=R.InitiateLayerUploadResponse$=R.InitiateLayerUploadRequest$=R.ImageTagDetail$=R.ImageIdentifier$=R.ImageFailure$=R.ImageDetail$=R.Image$=R.GetRepositoryPolicyResponse$=R.GetRepositoryPolicyRequest$=R.GetRepositoryCatalogDataResponse$=R.GetRepositoryCatalogDataRequest$=R.GetRegistryCatalogDataResponse$=void 0;R.UploadLayerPart$=R.UntagResource$=R.TagResource$=R.SetRepositoryPolicy$=R.PutRepositoryCatalogData$=R.PutRegistryCatalogData$=R.PutImage$=R.ListTagsForResource$=R.InitiateLayerUpload$=R.GetRepositoryPolicy$=R.GetRepositoryCatalogData$=void 0;var Ekt="AuthorizationData",Ckt="BatchCheckLayerAvailability",Ikt="BatchCheckLayerAvailabilityRequest",xkt="BatchCheckLayerAvailabilityResponse",wkt="BatchDeleteImage",bkt="BatchDeleteImageRequest",Skt="BatchDeleteImageResponse",Bkt="CompleteLayerUpload",Rkt="CompleteLayerUploadRequest",Nkt="CompleteLayerUploadResponse",Tkt="CreateRepository",Pkt="CreateRepositoryRequest",vkt="CreateRepositoryResponse",_kt="DescribeImages",Qkt="DescribeImagesRequest",Dkt="DescribeImagesResponse",kkt="DescribeImageTags",Lkt="DescribeImageTagsRequest",Okt="DescribeImageTagsResponse",Mkt="DeleteRepository",Fkt="DeleteRepositoryPolicy",Ukt="DeleteRepositoryPolicyRequest",qkt="DeleteRepositoryPolicyResponse",$kt="DeleteRepositoryRequest",Gkt="DeleteRepositoryResponse",Hkt="DescribeRegistriesRequest",zkt="DescribeRegistriesResponse",Vkt="DescribeRepositoriesRequest",Ykt="DescribeRepositoriesResponse",Wkt="DescribeRegistries",jkt="DescribeRepositories",Jkt="EmptyUploadException",Kkt="GetAuthorizationToken",Xkt="GetAuthorizationTokenRequest",Zkt="GetAuthorizationTokenResponse",eLt="GetRegistryCatalogData",tLt="GetRegistryCatalogDataRequest",rLt="GetRegistryCatalogDataResponse",nLt="GetRepositoryCatalogDataRequest",sLt="GetRepositoryCatalogDataResponse",oLt="GetRepositoryCatalogData",iLt="GetRepositoryPolicy",aLt="GetRepositoryPolicyRequest",cLt="GetRepositoryPolicyResponse",lLt="Image",uLt="ImageAlreadyExistsException",dLt="ImageDetail",pLt="ImageDigestDoesNotMatchException",mLt="ImageDetailList",fLt="ImageFailure",ALt="ImageFailureList",hLt="ImageIdentifier",gLt="ImageIdentifierList",yLt="InvalidLayerException",ELt="InvalidLayerPartException",CLt="InitiateLayerUpload",ILt="InitiateLayerUploadRequest",xLt="InitiateLayerUploadResponse",wLt="ImageNotFoundException",bLt="InvalidParameterException",SLt="ImageTagAlreadyExistsException",BLt="ImageTagDetail",RLt="ImageTagDetailList",NLt="InvalidTagParameterException",TLt="Key",PLt="Layer",vLt="LayerAlreadyExistsException",_Lt="LimitExceededException",QLt="LayerFailure",DLt="LayerFailureList",kLt="LayerList",LLt="LayersNotFoundException",OLt="LayerPartTooSmallException",MLt="ListTagsForResource",FLt="ListTagsForResourceRequest",ULt="ListTagsForResourceResponse",qLt="PutImage",$Lt="PutImageRequest",GLt="PutImageResponse",HLt="PutRegistryCatalogData",zLt="PutRegistryCatalogDataRequest",VLt="PutRegistryCatalogDataResponse",YLt="PutRepositoryCatalogDataRequest",WLt="PutRepositoryCatalogDataResponse",jLt="PutRepositoryCatalogData",JLt="Registry",KLt="RegistryAlias",XLt="RepositoryAlreadyExistsException",ZLt="RegistryAliasList",eOt="RegistryCatalogData",tOt="RepositoryCatalogDataInput",rOt="RepositoryCatalogDataNotFoundException",nOt="RepositoryCatalogData",sOt="ReferencedImageDetail",oOt="ReferencedImagesNotFoundException",iOt="RegistryList",aOt="RepositoryList",cOt="RepositoryNotEmptyException",lOt="RegistryNotFoundException",uOt="RepositoryNotFoundException",dOt="RepositoryPolicyNotFoundException",pOt="Repository",mOt="ServerException",fOt="SetRepositoryPolicy",AOt="SetRepositoryPolicyRequest",hOt="SetRepositoryPolicyResponse",gOt="Tag",yOt="TagList",EOt="TooManyTagsException",COt="TagResource",IOt="TagResourceRequest",xOt="TagResourceResponse",wOt="UnsupportedCommandException",bOt="UploadLayerPart",SOt="UploadLayerPartRequest",BOt="UploadLayerPartResponse",ROt="UploadNotFoundException",NOt="UntagResource",TOt="UntagResourceRequest",POt="UntagResourceResponse",vOt="Value",_Ot="aliases",QOt="authorizationData",sOe="artifactMediaType",DOt="authorizationToken",oOe="aboutText",iOe="architectures",yr="client",aOe="createdAt",E0="catalogData",cOe="description",lOe="displayName",kOt="defaultRegistryAlias",cr="error",LOt="expiresAt",uOe="failures",dOe="failureCode",pOe="failureReason",mOe="force",OOt="image",MOt="imageDetails",gL="imageDigest",FOt="imageDetail",R9="imageIds",fOe="imageId",AOe="imageManifest",yL="imageManifestMediaType",hOe="imagePushedAt",gOe="imageSizeInBytes",UOt="imageTags",qOt="imageTagDetails",N9="imageTag",$Ot="layers",GOt="layerAvailability",HOt="lastByteReceived",yOe="layerDigests",T9="layerDigest",zOt="logoImageBlob",VOt="layerPartBlob",YOt="layerSize",WOt="logoUrl",jOt="lastValidByteReceived",lr="message",JOt="marketplaceCertified",EL="maxResults",KOt="mediaType",XOt="name",Pp="nextToken",EOe="operatingSystems",ZOt="partFirstByte",eMt="partLastByte",tMt="primaryRegistryAlias",rMt="partSize",CL="policyText",COe="repository",P9="resourceArn",nMt="registryArn",sMt="repositoryArn",IOe="registryCatalogData",Kt="registryId",ur="repositoryName",oMt="repositoryNames",iMt="registryUri",aMt="repositoryUri",cMt="registries",lMt="repositories",xOe="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic",uMt="server",dMt="status",v9="tags",pMt="tagKeys",Hy="uploadId",wOe="usageText",mMt="verified",F="com.amazonaws.ecrpublic",bOe=(Ct(),W($x)),fMt=hL(),dr=B9(),SOe=bOe.TypeRegistry.for(xOe);R.ECRPUBLICServiceException$=[-3,xOe,"ECRPUBLICServiceException",0,[],[]];SOe.registerError(R.ECRPUBLICServiceException$,fMt.ECRPUBLICServiceException);var Xt=bOe.TypeRegistry.for(F);R.EmptyUploadException$=[-3,F,Jkt,{[cr]:yr},[lr],[0]];Xt.registerError(R.EmptyUploadException$,dr.EmptyUploadException);R.ImageAlreadyExistsException$=[-3,F,uLt,{[cr]:yr},[lr],[0]];Xt.registerError(R.ImageAlreadyExistsException$,dr.ImageAlreadyExistsException);R.ImageDigestDoesNotMatchException$=[-3,F,pLt,{[cr]:yr},[lr],[0]];Xt.registerError(R.ImageDigestDoesNotMatchException$,dr.ImageDigestDoesNotMatchException);R.ImageNotFoundException$=[-3,F,wLt,{[cr]:yr},[lr],[0]];Xt.registerError(R.ImageNotFoundException$,dr.ImageNotFoundException);R.ImageTagAlreadyExistsException$=[-3,F,SLt,{[cr]:yr},[lr],[0]];Xt.registerError(R.ImageTagAlreadyExistsException$,dr.ImageTagAlreadyExistsException);R.InvalidLayerException$=[-3,F,yLt,{[cr]:yr},[lr],[0]];Xt.registerError(R.InvalidLayerException$,dr.InvalidLayerException);R.InvalidLayerPartException$=[-3,F,ELt,{[cr]:yr},[Kt,ur,Hy,jOt,lr],[0,0,0,1,0]];Xt.registerError(R.InvalidLayerPartException$,dr.InvalidLayerPartException);R.InvalidParameterException$=[-3,F,bLt,{[cr]:yr},[lr],[0]];Xt.registerError(R.InvalidParameterException$,dr.InvalidParameterException);R.InvalidTagParameterException$=[-3,F,NLt,{[cr]:yr},[lr],[0]];Xt.registerError(R.InvalidTagParameterException$,dr.InvalidTagParameterException);R.LayerAlreadyExistsException$=[-3,F,vLt,{[cr]:yr},[lr],[0]];Xt.registerError(R.LayerAlreadyExistsException$,dr.LayerAlreadyExistsException);R.LayerPartTooSmallException$=[-3,F,OLt,{[cr]:yr},[lr],[0]];Xt.registerError(R.LayerPartTooSmallException$,dr.LayerPartTooSmallException);R.LayersNotFoundException$=[-3,F,LLt,{[cr]:yr},[lr],[0]];Xt.registerError(R.LayersNotFoundException$,dr.LayersNotFoundException);R.LimitExceededException$=[-3,F,_Lt,{[cr]:yr},[lr],[0]];Xt.registerError(R.LimitExceededException$,dr.LimitExceededException);R.ReferencedImagesNotFoundException$=[-3,F,oOt,{[cr]:yr},[lr],[0]];Xt.registerError(R.ReferencedImagesNotFoundException$,dr.ReferencedImagesNotFoundException);R.RegistryNotFoundException$=[-3,F,lOt,{[cr]:yr},[lr],[0]];Xt.registerError(R.RegistryNotFoundException$,dr.RegistryNotFoundException);R.RepositoryAlreadyExistsException$=[-3,F,XLt,{[cr]:yr},[lr],[0]];Xt.registerError(R.RepositoryAlreadyExistsException$,dr.RepositoryAlreadyExistsException);R.RepositoryCatalogDataNotFoundException$=[-3,F,rOt,{[cr]:yr},[lr],[0]];Xt.registerError(R.RepositoryCatalogDataNotFoundException$,dr.RepositoryCatalogDataNotFoundException);R.RepositoryNotEmptyException$=[-3,F,cOt,{[cr]:yr},[lr],[0]];Xt.registerError(R.RepositoryNotEmptyException$,dr.RepositoryNotEmptyException);R.RepositoryNotFoundException$=[-3,F,uOt,{[cr]:yr},[lr],[0]];Xt.registerError(R.RepositoryNotFoundException$,dr.RepositoryNotFoundException);R.RepositoryPolicyNotFoundException$=[-3,F,dOt,{[cr]:yr},[lr],[0]];Xt.registerError(R.RepositoryPolicyNotFoundException$,dr.RepositoryPolicyNotFoundException);R.ServerException$=[-3,F,mOt,{[cr]:uMt},[lr],[0]];Xt.registerError(R.ServerException$,dr.ServerException);R.TooManyTagsException$=[-3,F,EOt,{[cr]:yr},[lr],[0]];Xt.registerError(R.TooManyTagsException$,dr.TooManyTagsException);R.UnsupportedCommandException$=[-3,F,wOt,{[cr]:yr},[lr],[0]];Xt.registerError(R.UnsupportedCommandException$,dr.UnsupportedCommandException);R.UploadNotFoundException$=[-3,F,ROt,{[cr]:yr},[lr],[0]];Xt.registerError(R.UploadNotFoundException$,dr.UploadNotFoundException);R.errorTypeRegistries=[SOe,Xt];R.AuthorizationData$=[3,F,Ekt,0,[DOt,LOt],[0,4]];R.BatchCheckLayerAvailabilityRequest$=[3,F,Ikt,0,[ur,yOe,Kt],[0,64,0],2];R.BatchCheckLayerAvailabilityResponse$=[3,F,xkt,0,[$Ot,uOe],[()=>EMt,()=>yMt]];R.BatchDeleteImageRequest$=[3,F,bkt,0,[ur,R9,Kt],[0,()=>_9,0],2];R.BatchDeleteImageResponse$=[3,F,Skt,0,[R9,uOe],[()=>_9,()=>hMt]];R.CompleteLayerUploadRequest$=[3,F,Rkt,0,[ur,Hy,yOe,Kt],[0,0,64,0],3];R.CompleteLayerUploadResponse$=[3,F,Nkt,0,[Kt,ur,Hy,T9],[0,0,0,0]];R.CreateRepositoryRequest$=[3,F,Pkt,0,[ur,E0,v9],[0,()=>R.RepositoryCatalogDataInput$,()=>Q9],1];R.CreateRepositoryResponse$=[3,F,vkt,0,[COe,E0],[()=>R.Repository$,()=>R.RepositoryCatalogData$]];R.DeleteRepositoryPolicyRequest$=[3,F,Ukt,0,[ur,Kt],[0,0],1];R.DeleteRepositoryPolicyResponse$=[3,F,qkt,0,[Kt,ur,CL],[0,0,0]];R.DeleteRepositoryRequest$=[3,F,$kt,0,[ur,Kt,mOe],[0,0,2],1];R.DeleteRepositoryResponse$=[3,F,Gkt,0,[COe],[()=>R.Repository$]];R.DescribeImagesRequest$=[3,F,Qkt,0,[ur,Kt,R9,Pp,EL],[0,0,()=>_9,0,1],1];R.DescribeImagesResponse$=[3,F,Dkt,0,[MOt,Pp],[()=>AMt,0]];R.DescribeImageTagsRequest$=[3,F,Lkt,0,[ur,Kt,Pp,EL],[0,0,0,1],1];R.DescribeImageTagsResponse$=[3,F,Okt,0,[qOt,Pp],[()=>gMt,0]];R.DescribeRegistriesRequest$=[3,F,Hkt,0,[Pp,EL],[0,1]];R.DescribeRegistriesResponse$=[3,F,zkt,0,[cMt,Pp],[()=>IMt,0],1];R.DescribeRepositoriesRequest$=[3,F,Vkt,0,[Kt,oMt,Pp,EL],[0,64,0,1]];R.DescribeRepositoriesResponse$=[3,F,Ykt,0,[lMt,Pp],[()=>xMt,0]];R.GetAuthorizationTokenRequest$=[3,F,Xkt,0,[],[]];R.GetAuthorizationTokenResponse$=[3,F,Zkt,0,[QOt],[()=>R.AuthorizationData$]];R.GetRegistryCatalogDataRequest$=[3,F,tLt,0,[],[]];R.GetRegistryCatalogDataResponse$=[3,F,rLt,0,[IOe],[()=>R.RegistryCatalogData$],1];R.GetRepositoryCatalogDataRequest$=[3,F,nLt,0,[ur,Kt],[0,0],1];R.GetRepositoryCatalogDataResponse$=[3,F,sLt,0,[E0],[()=>R.RepositoryCatalogData$]];R.GetRepositoryPolicyRequest$=[3,F,aLt,0,[ur,Kt],[0,0],1];R.GetRepositoryPolicyResponse$=[3,F,cLt,0,[Kt,ur,CL],[0,0,0]];R.Image$=[3,F,lLt,0,[Kt,ur,fOe,AOe,yL],[0,0,()=>R.ImageIdentifier$,0,0]];R.ImageDetail$=[3,F,dLt,0,[Kt,ur,gL,UOt,gOe,hOe,yL,sOe],[0,0,0,64,1,4,0,0]];R.ImageFailure$=[3,F,fLt,0,[fOe,dOe,pOe],[()=>R.ImageIdentifier$,0,0]];R.ImageIdentifier$=[3,F,hLt,0,[gL,N9],[0,0]];R.ImageTagDetail$=[3,F,BLt,0,[N9,aOe,FOt],[0,4,()=>R.ReferencedImageDetail$]];R.InitiateLayerUploadRequest$=[3,F,ILt,0,[ur,Kt],[0,0],1];R.InitiateLayerUploadResponse$=[3,F,xLt,0,[Hy,rMt],[0,1]];R.Layer$=[3,F,PLt,0,[T9,GOt,YOt,KOt],[0,0,1,0]];R.LayerFailure$=[3,F,QLt,0,[T9,dOe,pOe],[0,0,0]];R.ListTagsForResourceRequest$=[3,F,FLt,0,[P9],[0],1];R.ListTagsForResourceResponse$=[3,F,ULt,0,[v9],[()=>Q9]];R.PutImageRequest$=[3,F,$Lt,0,[ur,AOe,Kt,yL,N9,gL],[0,0,0,0,0,0],2];R.PutImageResponse$=[3,F,GLt,0,[OOt],[()=>R.Image$]];R.PutRegistryCatalogDataRequest$=[3,F,zLt,0,[lOe],[0]];R.PutRegistryCatalogDataResponse$=[3,F,VLt,0,[IOe],[()=>R.RegistryCatalogData$],1];R.PutRepositoryCatalogDataRequest$=[3,F,YLt,0,[ur,E0,Kt],[0,()=>R.RepositoryCatalogDataInput$,0],2];R.PutRepositoryCatalogDataResponse$=[3,F,WLt,0,[E0],[()=>R.RepositoryCatalogData$]];R.ReferencedImageDetail$=[3,F,sOt,0,[gL,gOe,hOe,yL,sOe],[0,1,4,0,0]];R.Registry$=[3,F,JLt,0,[Kt,nMt,iMt,mMt,_Ot],[0,0,0,2,()=>CMt],5];R.RegistryAlias$=[3,F,KLt,0,[XOt,dMt,tMt,kOt],[0,0,2,2],4];R.RegistryCatalogData$=[3,F,eOt,0,[lOe],[0]];R.Repository$=[3,F,pOt,0,[sMt,Kt,ur,aMt,aOe],[0,0,0,0,4]];R.RepositoryCatalogData$=[3,F,nOt,0,[cOe,iOe,EOe,WOt,oOe,wOe,JOt],[0,64,64,0,0,0,2]];R.RepositoryCatalogDataInput$=[3,F,tOt,0,[cOe,iOe,EOe,zOt,oOe,wOe],[0,64,64,21,0,0]];R.SetRepositoryPolicyRequest$=[3,F,AOt,0,[ur,CL,Kt,mOe],[0,0,0,2],2];R.SetRepositoryPolicyResponse$=[3,F,hOt,0,[Kt,ur,CL],[0,0,0]];R.Tag$=[3,F,gOt,0,[TLt,vOt],[0,0]];R.TagResourceRequest$=[3,F,IOt,0,[P9,v9],[0,()=>Q9],2];R.TagResourceResponse$=[3,F,xOt,0,[],[]];R.UntagResourceRequest$=[3,F,TOt,0,[P9,pMt],[0,64],2];R.UntagResourceResponse$=[3,F,POt,0,[],[]];R.UploadLayerPartRequest$=[3,F,SOt,0,[ur,Hy,ZOt,eMt,VOt,Kt],[0,0,1,1,21,0],5];R.UploadLayerPartResponse$=[3,F,BOt,0,[Kt,ur,Hy,HOt],[0,0,0,1]];var AMt=[1,F,mLt,0,()=>R.ImageDetail$],hMt=[1,F,ALt,0,()=>R.ImageFailure$],_9=[1,F,gLt,0,()=>R.ImageIdentifier$],gMt=[1,F,RLt,0,()=>R.ImageTagDetail$],yMt=[1,F,DLt,0,()=>R.LayerFailure$],EMt=[1,F,kLt,0,()=>R.Layer$],CMt=[1,F,ZLt,0,()=>R.RegistryAlias$],IMt=[1,F,iOt,0,()=>R.Registry$],xMt=[1,F,aOt,0,()=>R.Repository$],Q9=[1,F,yOt,0,()=>R.Tag$];R.BatchCheckLayerAvailability$=[9,F,Ckt,0,()=>R.BatchCheckLayerAvailabilityRequest$,()=>R.BatchCheckLayerAvailabilityResponse$];R.BatchDeleteImage$=[9,F,wkt,0,()=>R.BatchDeleteImageRequest$,()=>R.BatchDeleteImageResponse$];R.CompleteLayerUpload$=[9,F,Bkt,0,()=>R.CompleteLayerUploadRequest$,()=>R.CompleteLayerUploadResponse$];R.CreateRepository$=[9,F,Tkt,0,()=>R.CreateRepositoryRequest$,()=>R.CreateRepositoryResponse$];R.DeleteRepository$=[9,F,Mkt,0,()=>R.DeleteRepositoryRequest$,()=>R.DeleteRepositoryResponse$];R.DeleteRepositoryPolicy$=[9,F,Fkt,0,()=>R.DeleteRepositoryPolicyRequest$,()=>R.DeleteRepositoryPolicyResponse$];R.DescribeImages$=[9,F,_kt,0,()=>R.DescribeImagesRequest$,()=>R.DescribeImagesResponse$];R.DescribeImageTags$=[9,F,kkt,0,()=>R.DescribeImageTagsRequest$,()=>R.DescribeImageTagsResponse$];R.DescribeRegistries$=[9,F,Wkt,0,()=>R.DescribeRegistriesRequest$,()=>R.DescribeRegistriesResponse$];R.DescribeRepositories$=[9,F,jkt,0,()=>R.DescribeRepositoriesRequest$,()=>R.DescribeRepositoriesResponse$];R.GetAuthorizationToken$=[9,F,Kkt,0,()=>R.GetAuthorizationTokenRequest$,()=>R.GetAuthorizationTokenResponse$];R.GetRegistryCatalogData$=[9,F,eLt,0,()=>R.GetRegistryCatalogDataRequest$,()=>R.GetRegistryCatalogDataResponse$];R.GetRepositoryCatalogData$=[9,F,oLt,0,()=>R.GetRepositoryCatalogDataRequest$,()=>R.GetRepositoryCatalogDataResponse$];R.GetRepositoryPolicy$=[9,F,iLt,0,()=>R.GetRepositoryPolicyRequest$,()=>R.GetRepositoryPolicyResponse$];R.InitiateLayerUpload$=[9,F,CLt,0,()=>R.InitiateLayerUploadRequest$,()=>R.InitiateLayerUploadResponse$];R.ListTagsForResource$=[9,F,MLt,0,()=>R.ListTagsForResourceRequest$,()=>R.ListTagsForResourceResponse$];R.PutImage$=[9,F,qLt,0,()=>R.PutImageRequest$,()=>R.PutImageResponse$];R.PutRegistryCatalogData$=[9,F,HLt,0,()=>R.PutRegistryCatalogDataRequest$,()=>R.PutRegistryCatalogDataResponse$];R.PutRepositoryCatalogData$=[9,F,jLt,0,()=>R.PutRepositoryCatalogDataRequest$,()=>R.PutRepositoryCatalogDataResponse$];R.SetRepositoryPolicy$=[9,F,fOt,0,()=>R.SetRepositoryPolicyRequest$,()=>R.SetRepositoryPolicyResponse$];R.TagResource$=[9,F,COt,0,()=>R.TagResourceRequest$,()=>R.TagResourceResponse$];R.UntagResource$=[9,F,NOt,0,()=>R.UntagResourceRequest$,()=>R.UntagResourceResponse$];R.UploadLayerPart$=[9,F,bOt,0,()=>R.UploadLayerPartRequest$,()=>R.UploadLayerPartResponse$]});var BOe=b(xL=>{"use strict";Object.defineProperty(xL,"__esModule",{value:!0});xL.getRuntimeConfig=void 0;var wMt=(Xr(),W(up)),bMt=(_f(),W(xJ)),SMt=(Ce(),W(Ui)),BMt=(Qe(),W(rl)),IL=(st(),W(Zd)),RMt=K6(),NMt=rOe(),TMt=D9(),PMt=i(t=>({apiVersion:"2020-10-30",base64Decoder:t?.base64Decoder??IL.fromBase64,base64Encoder:t?.base64Encoder??IL.toBase64,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??NMt.defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??RMt.defaultECRPUBLICHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new wMt.AwsSdkSigV4Signer}],logger:t?.logger??new SMt.NoOpLogger,protocol:t?.protocol??bMt.AwsJson1_1Protocol,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",errorTypeRegistries:TMt.errorTypeRegistries,xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:t?.serviceId??"ECR PUBLIC",urlParser:t?.urlParser??BMt.parseUrl,utf8Decoder:t?.utf8Decoder??IL.fromUtf8,utf8Encoder:t?.utf8Encoder??IL.toUtf8}),"getRuntimeConfig");xL.getRuntimeConfig=PMt});var POe=b(wL=>{"use strict";Object.defineProperty(wL,"__esModule",{value:!0});wL.getRuntimeConfig=void 0;var vMt=(ty(),W(ey)),_Mt=vMt.__importDefault(jLe()),k9=(wt(),W(Ds)),QMt=(Xr(),W(up)),DMt=v5(),ROe=(Ce(),W(Ui)),ji=(Tt(),W(kn)),L9=(_s(),W(jx)),NOe=(st(),W(Zd)),TOe=vu(),kMt=BOe(),LMt=i(t=>{(0,ROe.emitWarningIfUnsupportedVersion)(process.version);let e=(0,ji.resolveDefaultsModeConfig)(t),r=i(()=>e().then(ROe.loadConfigsForDefaultMode),"defaultConfigProvider"),n=(0,kMt.getRuntimeConfig)(t);(0,k9.emitWarningIfUnsupportedVersion)(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??(0,ji.loadConfig)(QMt.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:t?.bodyLengthChecker??NOe.calculateBodyLength,credentialDefaultProvider:t?.credentialDefaultProvider??DMt.defaultProvider,defaultUserAgentProvider:t?.defaultUserAgentProvider??(0,k9.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:_Mt.default.version}),maxAttempts:t?.maxAttempts??(0,ji.loadConfig)(L9.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,t),region:t?.region??(0,ji.loadConfig)(ji.NODE_REGION_CONFIG_OPTIONS,{...ji.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:TOe.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??(0,ji.loadConfig)({...L9.NODE_RETRY_MODE_CONFIG_OPTIONS,default:i(async()=>(await r()).retryMode||L9.DEFAULT_RETRY_MODE,"default")},t),sha256:t?.sha256??NOe.Hash.bind(null,"sha256"),streamCollector:t?.streamCollector??TOe.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??(0,ji.loadConfig)(ji.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:t?.useFipsEndpoint??(0,ji.loadConfig)(ji.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:t?.userAgentAppId??(0,ji.loadConfig)(k9.NODE_APP_ID_CONFIG_OPTIONS,s)}},"getRuntimeConfig");wL.getRuntimeConfig=LMt});var OOe=b(Je=>{"use strict";var vp=(wt(),W(Ds)),Zf=(Qs(),W(Q8)),Dt=(Ce(),W(Ui)),OMt=(Tt(),W(kn)),pr=(xt(),W(df)),O9=(Qe(),W(rl)),vOe=(_s(),W(jx)),MMt=(Ct(),W($x)),_Oe=K6(),FMt=POe(),$t=D9(),bL=B9(),UMt=hL(),qMt=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr-public"}),"resolveClientEndpointParameters"),Er={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},$Mt=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),GMt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),HMt=i((t,e)=>{let r=Object.assign(vp.getAwsRegionExtensionConfiguration(t),Dt.getDefaultExtensionConfiguration(t),O9.getHttpHandlerExtensionConfiguration(t),$Mt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,vp.resolveAwsRegionExtensionConfiguration(r),Dt.resolveDefaultRuntimeConfig(r),O9.resolveHttpHandlerRuntimeConfig(r),GMt(r))},"resolveRuntimeExtensions"),_p=class extends Dt.Client{static{i(this,"ECRPUBLICClient")}config;constructor(...[e]){let r=FMt.getRuntimeConfig(e||{});super(r),this.initConfig=r;let n=qMt(r),s=vp.resolveUserAgentConfig(n),o=vOe.resolveRetryConfig(s),a=OMt.resolveRegionConfig(o),c=vp.resolveHostHeaderConfig(a),l=pr.resolveEndpointConfig(c),u=_Oe.resolveHttpAuthSchemeConfig(l),d=HMt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(MMt.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(vp.getUserAgentPlugin(this.config)),this.middlewareStack.use(vOe.getRetryPlugin(this.config)),this.middlewareStack.use(O9.getContentLengthPlugin(this.config)),this.middlewareStack.use(vp.getHostHeaderPlugin(this.config)),this.middlewareStack.use(vp.getLoggerPlugin(this.config)),this.middlewareStack.use(vp.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(Zf.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:_Oe.defaultECRPUBLICHttpAuthSchemeParametersProvider,identityProviderConfigProvider:i(async p=>new Zf.DefaultIdentityProviderConfig({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Zf.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},SL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","BatchCheckLayerAvailability",{}).n("ECRPUBLICClient","BatchCheckLayerAvailabilityCommand").sc($t.BatchCheckLayerAvailability$).build(){static{i(this,"BatchCheckLayerAvailabilityCommand")}},BL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","BatchDeleteImage",{}).n("ECRPUBLICClient","BatchDeleteImageCommand").sc($t.BatchDeleteImage$).build(){static{i(this,"BatchDeleteImageCommand")}},RL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","CompleteLayerUpload",{}).n("ECRPUBLICClient","CompleteLayerUploadCommand").sc($t.CompleteLayerUpload$).build(){static{i(this,"CompleteLayerUploadCommand")}},NL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","CreateRepository",{}).n("ECRPUBLICClient","CreateRepositoryCommand").sc($t.CreateRepository$).build(){static{i(this,"CreateRepositoryCommand")}},TL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DeleteRepository",{}).n("ECRPUBLICClient","DeleteRepositoryCommand").sc($t.DeleteRepository$).build(){static{i(this,"DeleteRepositoryCommand")}},PL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DeleteRepositoryPolicy",{}).n("ECRPUBLICClient","DeleteRepositoryPolicyCommand").sc($t.DeleteRepositoryPolicy$).build(){static{i(this,"DeleteRepositoryPolicyCommand")}},C0=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DescribeImages",{}).n("ECRPUBLICClient","DescribeImagesCommand").sc($t.DescribeImages$).build(){static{i(this,"DescribeImagesCommand")}},I0=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DescribeImageTags",{}).n("ECRPUBLICClient","DescribeImageTagsCommand").sc($t.DescribeImageTags$).build(){static{i(this,"DescribeImageTagsCommand")}},x0=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DescribeRegistries",{}).n("ECRPUBLICClient","DescribeRegistriesCommand").sc($t.DescribeRegistries$).build(){static{i(this,"DescribeRegistriesCommand")}},w0=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DescribeRepositories",{}).n("ECRPUBLICClient","DescribeRepositoriesCommand").sc($t.DescribeRepositories$).build(){static{i(this,"DescribeRepositoriesCommand")}},vL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","GetAuthorizationToken",{}).n("ECRPUBLICClient","GetAuthorizationTokenCommand").sc($t.GetAuthorizationToken$).build(){static{i(this,"GetAuthorizationTokenCommand")}},_L=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","GetRegistryCatalogData",{}).n("ECRPUBLICClient","GetRegistryCatalogDataCommand").sc($t.GetRegistryCatalogData$).build(){static{i(this,"GetRegistryCatalogDataCommand")}},QL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","GetRepositoryCatalogData",{}).n("ECRPUBLICClient","GetRepositoryCatalogDataCommand").sc($t.GetRepositoryCatalogData$).build(){static{i(this,"GetRepositoryCatalogDataCommand")}},DL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","GetRepositoryPolicy",{}).n("ECRPUBLICClient","GetRepositoryPolicyCommand").sc($t.GetRepositoryPolicy$).build(){static{i(this,"GetRepositoryPolicyCommand")}},kL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","InitiateLayerUpload",{}).n("ECRPUBLICClient","InitiateLayerUploadCommand").sc($t.InitiateLayerUpload$).build(){static{i(this,"InitiateLayerUploadCommand")}},LL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","ListTagsForResource",{}).n("ECRPUBLICClient","ListTagsForResourceCommand").sc($t.ListTagsForResource$).build(){static{i(this,"ListTagsForResourceCommand")}},OL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","PutImage",{}).n("ECRPUBLICClient","PutImageCommand").sc($t.PutImage$).build(){static{i(this,"PutImageCommand")}},ML=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","PutRegistryCatalogData",{}).n("ECRPUBLICClient","PutRegistryCatalogDataCommand").sc($t.PutRegistryCatalogData$).build(){static{i(this,"PutRegistryCatalogDataCommand")}},FL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","PutRepositoryCatalogData",{}).n("ECRPUBLICClient","PutRepositoryCatalogDataCommand").sc($t.PutRepositoryCatalogData$).build(){static{i(this,"PutRepositoryCatalogDataCommand")}},UL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","SetRepositoryPolicy",{}).n("ECRPUBLICClient","SetRepositoryPolicyCommand").sc($t.SetRepositoryPolicy$).build(){static{i(this,"SetRepositoryPolicyCommand")}},qL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","TagResource",{}).n("ECRPUBLICClient","TagResourceCommand").sc($t.TagResource$).build(){static{i(this,"TagResourceCommand")}},$L=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","UntagResource",{}).n("ECRPUBLICClient","UntagResourceCommand").sc($t.UntagResource$).build(){static{i(this,"UntagResourceCommand")}},GL=class extends Dt.Command.classBuilder().ep(Er).m(function(e,r,n,s){return[pr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","UploadLayerPart",{}).n("ECRPUBLICClient","UploadLayerPartCommand").sc($t.UploadLayerPart$).build(){static{i(this,"UploadLayerPartCommand")}},QOe=Zf.createPaginator(_p,C0,"nextToken","nextToken","maxResults"),DOe=Zf.createPaginator(_p,I0,"nextToken","nextToken","maxResults"),kOe=Zf.createPaginator(_p,x0,"nextToken","nextToken","maxResults"),LOe=Zf.createPaginator(_p,w0,"nextToken","nextToken","maxResults"),zMt={BatchCheckLayerAvailabilityCommand:SL,BatchDeleteImageCommand:BL,CompleteLayerUploadCommand:RL,CreateRepositoryCommand:NL,DeleteRepositoryCommand:TL,DeleteRepositoryPolicyCommand:PL,DescribeImagesCommand:C0,DescribeImageTagsCommand:I0,DescribeRegistriesCommand:x0,DescribeRepositoriesCommand:w0,GetAuthorizationTokenCommand:vL,GetRegistryCatalogDataCommand:_L,GetRepositoryCatalogDataCommand:QL,GetRepositoryPolicyCommand:DL,InitiateLayerUploadCommand:kL,ListTagsForResourceCommand:LL,PutImageCommand:OL,PutRegistryCatalogDataCommand:ML,PutRepositoryCatalogDataCommand:FL,SetRepositoryPolicyCommand:UL,TagResourceCommand:qL,UntagResourceCommand:$L,UploadLayerPartCommand:GL},VMt={paginateDescribeImages:QOe,paginateDescribeImageTags:DOe,paginateDescribeRegistries:kOe,paginateDescribeRepositories:LOe},HL=class extends _p{static{i(this,"ECRPUBLIC")}};Dt.createAggregatedClient(zMt,HL,{paginators:VMt});var YMt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},WMt={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},jMt={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"},JMt={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};Je.$Command=Dt.Command;Je.__Client=Dt.Client;Je.ECRPUBLICServiceException=UMt.ECRPUBLICServiceException;Je.BatchCheckLayerAvailabilityCommand=SL;Je.BatchDeleteImageCommand=BL;Je.CompleteLayerUploadCommand=RL;Je.CreateRepositoryCommand=NL;Je.DeleteRepositoryCommand=TL;Je.DeleteRepositoryPolicyCommand=PL;Je.DescribeImageTagsCommand=I0;Je.DescribeImagesCommand=C0;Je.DescribeRegistriesCommand=x0;Je.DescribeRepositoriesCommand=w0;Je.ECRPUBLIC=HL;Je.ECRPUBLICClient=_p;Je.GetAuthorizationTokenCommand=vL;Je.GetRegistryCatalogDataCommand=_L;Je.GetRepositoryCatalogDataCommand=QL;Je.GetRepositoryPolicyCommand=DL;Je.ImageFailureCode=jMt;Je.InitiateLayerUploadCommand=kL;Je.LayerAvailability=WMt;Je.LayerFailureCode=YMt;Je.ListTagsForResourceCommand=LL;Je.PutImageCommand=OL;Je.PutRegistryCatalogDataCommand=ML;Je.PutRepositoryCatalogDataCommand=FL;Je.RegistryAliasStatus=JMt;Je.SetRepositoryPolicyCommand=UL;Je.TagResourceCommand=qL;Je.UntagResourceCommand=$L;Je.UploadLayerPartCommand=GL;Je.paginateDescribeImageTags=DOe;Je.paginateDescribeImages=QOe;Je.paginateDescribeRegistries=kOe;Je.paginateDescribeRepositories=LOe;Object.prototype.hasOwnProperty.call($t,"__proto__")&&!Object.prototype.hasOwnProperty.call(Je,"__proto__")&&Object.defineProperty(Je,"__proto__",{enumerable:!0,value:$t.__proto__});Object.keys($t).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(Je,t)&&(Je[t]=$t[t])});Object.prototype.hasOwnProperty.call(bL,"__proto__")&&!Object.prototype.hasOwnProperty.call(Je,"__proto__")&&Object.defineProperty(Je,"__proto__",{enumerable:!0,value:bL.__proto__});Object.keys(bL).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(Je,t)&&(Je[t]=bL[t])})});var cFt={};en(cFt,{main:()=>dMe});module.exports=W(cFt);var rK=D(require("os"),1);function Gu(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(Gu,"toCommandValue");function sO(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}i(sO,"toCommandProperties");function kp(t,e,r){let n=new oO(t,e,r);process.stdout.write(n.toString()+rK.EOL)}i(kp,"issueCommand");function iO(t,e=""){kp(t,{},e)}i(iO,"issue");var tK="::",oO=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=tK+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 s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${tFe(s)}`)}}return e+=`${tK}${eFe(this.message)}`,e}};function eFe(t){return Gu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(eFe,"escapeData");function tFe(t){return Gu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(tFe,"escapeProperty");var nK=D(require("crypto"),1),T0=D(require("fs"),1),N0=D(require("os"),1);function sK(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!T0.existsSync(r))throw new Error(`Missing file at path: ${r}`);T0.appendFileSync(r,`${Gu(e)}${N0.EOL}`,{encoding:"utf8"})}i(sK,"issueFileCommand");function oK(t,e){let r=`ghadelimiter_${nK.randomUUID()}`,n=Gu(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}${N0.EOL}${n}${N0.EOL}${r}`}i(oK,"prepareKeyValueMessage");var eoe=D(require("os"),1);var bS=D(Yy(),1),CWe=D(eh(),1);var Ka;(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"})(Ka||(Ka={}));var _se;(function(t){t.Accept="accept",t.ContentType="content-type"})(_se||(_se={}));var Qse;(function(t){t.ApplicationJson="application/json"})(Qse||(Qse={}));var z2t=[Ka.MovedPermanently,Ka.ResourceMoved,Ka.SeeOther,Ka.TemporaryRedirect,Ka.PermanentRedirect],V2t=[Ka.BadGateway,Ka.ServiceUnavailable,Ka.GatewayTimeout];var Lse=require("os"),YE=require("fs");var P1=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:xWe,appendFile:wWe,writeFile:bWe}=YE.promises,kse="GITHUB_STEP_SUMMARY";var v1=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return P1(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[kse];if(!e)throw new Error(`Unable to find environment variable for $${kse}. Check if your runtime environment supports job summaries.`);try{yield xWe(e,YE.constants.R_OK|YE.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 s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return P1(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?bWe:wWe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return P1(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(Lse.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",m=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,m)}).join("");return this.wrap("tr",o)}).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:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).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}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},tqt=new v1;var q1=D(require("os"),1);var U1=require("string_decoder");var jE=D(require("os"),1),F1=D(require("events"),1),jse=D(require("child_process"),1),Jse=D(require("path"),1);var Hse=require("assert"),Ro=D(require("path"),1);var WE=D(require("fs"),1),ld=D(require("path"),1);var _1=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{chmod:Q1,copyFile:Mse,lstat:SS,mkdir:Fse,open:iqt,readdir:D1,rename:SWe,rm:Use,rmdir:aqt,stat:om,symlink:qse,unlink:k1}=WE.promises,Xa=process.platform==="win32";function $se(t){return _1(this,void 0,void 0,function*(){let e=yield WE.promises.readlink(t);return Xa&&!e.endsWith("\\")?`${e}\\`:e})}i($se,"readlink");var cqt=WE.constants.O_RDONLY;function th(t){return _1(this,void 0,void 0,function*(){try{yield om(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}i(th,"exists");function BS(t){if(t=BWe(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return Xa?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(BS,"isRooted");function L1(t,e){return _1(this,void 0,void 0,function*(){let r;try{r=yield om(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(Xa){let s=ld.extname(t).toUpperCase();if(e.some(o=>o.toUpperCase()===s))return t}else if(Ose(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield om(t)}catch(o){o.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${o}`)}if(r&&r.isFile()){if(Xa){try{let o=ld.dirname(t),a=ld.basename(t).toUpperCase();for(let c of yield D1(o))if(a===c.toUpperCase()){t=ld.join(o,c);break}}catch(o){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${o}`)}return t}else if(Ose(r))return t}}return""})}i(L1,"tryGetExecutablePath");function BWe(t){return t=t||"",Xa?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(BWe,"normalizeSeparators");function Ose(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()}i(Ose,"isUnixExecutable");var im=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function zse(t,e){return im(this,arguments,void 0,function*(r,n,s={}){let{force:o,recursive:a,copySourceDirectory:c}=NWe(s),l=(yield th(n))?yield om(n):null;if(l&&l.isFile()&&!o)return;let u=l&&l.isDirectory()&&c?Ro.join(n,Ro.basename(r)):n;if(!(yield th(r)))throw new Error(`no such file or directory: ${r}`);if((yield om(r)).isDirectory())if(a)yield Vse(r,u,0,o);else throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`);else{if(Ro.relative(r,u)==="")throw new Error(`'${u}' and '${r}' are the same file`);yield Yse(r,u,o)}})}i(zse,"cp");function O1(t){return im(this,void 0,void 0,function*(){if(Xa&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Use(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}i(O1,"rmRF");function am(t){return im(this,void 0,void 0,function*(){(0,Hse.ok)(t,"a path argument must be provided"),yield Fse(t,{recursive:!0})})}i(am,"mkdirP");function Gs(t,e){return im(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield Gs(t,!1);if(!n)throw Xa?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 RWe(t);return r&&r.length>0?r[0]:""})}i(Gs,"which");function RWe(t){return im(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(Xa&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(Ro.delimiter))s&&e.push(s);if(BS(t)){let s=yield L1(t,e);return s?[s]:[]}if(t.includes(Ro.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(Ro.delimiter))s&&r.push(s);let n=[];for(let s of r){let o=yield L1(Ro.join(s,t),e);o&&n.push(o)}return n})}i(RWe,"findInPath");function NWe(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}}i(NWe,"readCopyOptions");function Vse(t,e,r,n){return im(this,void 0,void 0,function*(){if(r>=255)return;r++,yield am(e);let s=yield D1(t);for(let o of s){let a=`${t}/${o}`,c=`${e}/${o}`;(yield SS(a)).isDirectory()?yield Vse(a,c,r,n):yield Yse(a,c,n)}yield Q1(e,(yield om(t)).mode)})}i(Vse,"cpDirRecursive");function Yse(t,e,r){return im(this,void 0,void 0,function*(){if((yield SS(t)).isSymbolicLink()){try{yield SS(e),yield k1(e)}catch(s){s.code==="EPERM"&&(yield Q1(e,"0666"),yield k1(e))}let n=yield $se(t);yield qse(n,e,Xa?"junction":null)}else(!(yield th(e))||r)&&(yield Mse(t,e))})}i(Yse,"copyFile");var Kse=require("timers");var Wse=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},RS=process.platform==="win32",NS=class extends F1.EventEmitter{static{i(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(),s=this._getSpawnArgs(e),o=r?"":"[command]";if(RS)if(this._isCmdFile()){o+=n;for(let a of s)o+=` ${a}`}else if(e.windowsVerbatimArguments){o+=`"${n}"`;for(let a of s)o+=` ${a}`}else{o+=this._windowsQuoteCmdArg(n);for(let a of s)o+=` ${this._windowsQuoteCmdArg(a)}`}else{o+=n;for(let a of s)o+=` ${a}`}return o}_processLineBuffer(e,r,n){try{let s=r+e.toString(),o=s.indexOf(jE.EOL);for(;o>-1;){let a=s.substring(0,o);n(a),s=s.substring(o+jE.EOL.length),o=s.indexOf(jE.EOL)}return s}catch(s){return this._debug(`error processing line. Failed with error ${s}`),""}}_getSpawnFileName(){return RS&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(RS&&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 s='"',o=!0;for(let a=e.length;a>0;a--)s+=e[a-1],o&&e[a-1]==="\\"?s+="\\":e[a-1]==='"'?(o=!0,s+='"'):o=!1;return s+='"',s.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 s=e.length;s>0;s--)r+=e[s-1],n&&e[s-1]==="\\"?r+="\\":e[s-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 Wse(this,void 0,void 0,function*(){return!BS(this.toolPath)&&(this.toolPath.includes("/")||RS&&this.toolPath.includes("\\"))&&(this.toolPath=Jse.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Gs(this.toolPath,!0),new Promise((e,r)=>Wse(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)+jE.EOL);let s=new M1(n,this.toolPath);if(s.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield th(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let o=this._getSpawnFileName(),a=jse.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o)),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=>{s.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=>{s.processError=u.message,s.processExited=!0,s.processClosed=!0,s.CheckComplete()}),a.on("exit",u=>{s.processExitCode=u,s.processExited=!0,this._debug(`Exit code ${u} received from tool '${this.toolPath}'`),s.CheckComplete()}),a.on("close",u=>{s.processExitCode=u,s.processExited=!0,s.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),s.CheckComplete()}),s.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 Xse(t){let e=[],r=!1,n=!1,s="";function o(a){n&&a!=='"'&&(s+="\\"),s+=a,n=!1}i(o,"append");for(let a=0;a0&&(e.push(s),s="");continue}o(c)}return s.length>0&&e.push(s.trim()),e}i(Xse,"argStringToArray");var M1=class t extends F1.EventEmitter{static{i(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,Kse.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 Zse=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function ud(t,e,r){return Zse(this,void 0,void 0,function*(){let n=Xse(t);if(n.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let s=n[0];return e=n.slice(1).concat(e||[]),new NS(s,e,r).exec()})}i(ud,"exec");function JE(t,e,r){return Zse(this,void 0,void 0,function*(){var n,s;let o="",a="",c=new U1.StringDecoder("utf8"),l=new U1.StringDecoder("utf8"),u=(n=r?.listeners)===null||n===void 0?void 0:n.stdout,d=(s=r?.listeners)===null||s===void 0?void 0:s.stderr,p=i(E=>{a+=l.write(E),d&&d(E)},"stdErrListener"),m=i(E=>{o+=c.write(E),u&&u(E)},"stdOutListener"),f=Object.assign(Object.assign({},r?.listeners),{stdout:m,stderr:p}),g=yield ud(t,e,Object.assign(Object.assign({},r),{listeners:f}));return o+=c.end(),a+=l.end(),{exitCode:g,stdout:o,stderr:a}})}i(JE,"getExecOutput");var fqt=q1.default.platform(),Aqt=q1.default.arch();var vWe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},$1;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})($1||($1={}));function Bo(t){kp("add-mask",{},t)}i(Bo,"setSecret");function ia(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()}i(ia,"getInput");function toe(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=ia(t,e);if(r.includes(s))return!0;if(n.includes(s))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\``)}i(toe,"getBooleanInput");function roe(t){process.exitCode=$1.Failure,nh(t)}i(roe,"setFailed");function cm(){return process.env.RUNNER_DEBUG==="1"}i(cm,"isDebug");function G(t){kp("debug",{},t)}i(G,"debug");function nh(t,e={}){kp("error",sO(e),t instanceof Error?t.toString():t)}i(nh,"error");function Qr(t,e={}){kp("warning",sO(e),t instanceof Error?t.toString():t)}i(Qr,"warning");function Ke(t){process.stdout.write(t+eoe.EOL)}i(Ke,"info");function _We(t){iO("group",t)}i(_We,"startGroup");function QWe(){iO("endgroup")}i(QWe,"endGroup");function XE(t,e){return vWe(this,void 0,void 0,function*(){_We(t);let r;try{r=yield e()}finally{QWe()}return r})}i(XE,"group");function lm(t,e){if(process.env.GITHUB_STATE||"")return sK("STATE",oK(t,e));kp("save-state",{name:t},Gu(e))}i(lm,"saveState");function noe(t){return process.env[`STATE_${t}`]||""}i(noe,"getState");var TT=D(require("fs"),1),G3=D(require("os"),1),H3=D(require("path"),1);var ooe=D(require("os"),1);function ZE(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(ZE,"toCommandValue");function ioe(t,e,r){let n=new G1(t,e,r);process.stdout.write(n.toString()+ooe.EOL)}i(ioe,"issueCommand");var soe="::",G1=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=soe+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 s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${kWe(s)}`)}}return e+=`${soe}${DWe(this.message)}`,e}};function DWe(t){return ZE(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(DWe,"escapeData");function kWe(t){return ZE(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(kWe,"escapeProperty");var coe=require("os"),eC=require("fs");var H1=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:LWe,appendFile:OWe,writeFile:MWe}=eC.promises,aoe="GITHUB_STEP_SUMMARY";var z1=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return H1(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[aoe];if(!e)throw new Error(`Unable to find environment variable for $${aoe}. Check if your runtime environment supports job summaries.`);try{yield LWe(e,eC.constants.R_OK|eC.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 s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return H1(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?MWe:OWe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return H1(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(coe.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",m=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,m)}).join("");return this.wrap("tr",o)}).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:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).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}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},zqt=new z1;var V1=D(require("os"),1);var Jqt=V1.default.platform(),Kqt=V1.default.arch();var loe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(loe||(loe={}));function ms(t){ioe("debug",{},t)}i(ms,"debug");var Hs=D(require("fs"),1);var kJe=D(pU(),1);var qS=D(require("os"),1),dd=D(require("path"),1);var ui=D(pU(),1);var eae=require("assert");var Zie=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};var sHt=process.platform==="win32",oHt=process.platform==="darwin";function mU(t,e,r,n){return Zie(this,void 0,void 0,function*(){if(r=ui.clean(r)||r,n=n||qS.arch(),ms(`Caching tool ${e} ${r} ${n}`),ms(`source dir: ${t}`),!Hs.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let s=yield MJe(e,r,n);for(let o of Hs.readdirSync(t)){let a=dd.join(t,o);yield zse(a,s,{recursive:!0})}return FJe(e,r,n),s})}i(mU,"cacheDir");function tae(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||qS.arch(),!rae(e)){let s=OJe(t,r);e=UJe(s,e)}let n="";if(e){e=ui.clean(e)||"";let s=dd.join($S(),t,e,r);ms(`checking cache: ${s}`),Hs.existsSync(s)&&Hs.existsSync(`${s}.complete`)?(ms(`Found tool in cache ${t} ${e} ${r}`),n=s):ms("not found")}return n}i(tae,"find");function OJe(t,e){let r=[];e=e||qS.arch();let n=dd.join($S(),t);if(Hs.existsSync(n)){let s=Hs.readdirSync(n);for(let o of s)if(rae(o)){let a=dd.join(n,o,e||"");Hs.existsSync(a)&&Hs.existsSync(`${a}.complete`)&&r.push(o)}}return r}i(OJe,"findAllVersions");function MJe(t,e,r){return Zie(this,void 0,void 0,function*(){let n=dd.join($S(),t,ui.clean(e)||e,r||"");ms(`destination ${n}`);let s=`${n}.complete`;return yield O1(n),yield O1(s),yield am(n),n})}i(MJe,"_createToolPath");function FJe(t,e,r){let s=`${dd.join($S(),t,ui.clean(e)||e,r||"")}.complete`;Hs.writeFileSync(s,""),ms("finished caching tool")}i(FJe,"_completeToolPath");function rae(t){let e=ui.clean(t)||"";ms(`isExplicit: ${e}`);let r=ui.valid(e)!=null;return ms(`explicit? ${r}`),r}i(rae,"isExplicitVersion");function UJe(t,e){let r="";ms(`evaluating ${t.length} versions`),t=t.sort((n,s)=>ui.gt(n,s)?1:-1);for(let n=t.length-1;n>=0;n--){let s=t[n];if(ui.satisfies(s,e)){r=s;break}}return r?ms(`matched: ${r}`):ms("match not found"),r}i(UJe,"evaluateVersions");function $S(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,eae.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}i($S,"_getCacheDirectory");var $I=D(require("path"),1);var sae=D(require("os"),1);function cC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(cC,"toCommandValue");function oae(t,e,r){let n=new fU(t,e,r);process.stdout.write(n.toString()+sae.EOL)}i(oae,"issueCommand");var nae="::",fU=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=nae+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 s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${GJe(s)}`)}}return e+=`${nae}${$Je(this.message)}`,e}};function $Je(t){return cC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i($Je,"escapeData");function GJe(t){return cC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(GJe,"escapeProperty");var aae=require("os"),lC=require("fs");var AU=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:HJe,appendFile:zJe,writeFile:VJe}=lC.promises,iae="GITHUB_STEP_SUMMARY";var hU=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return AU(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[iae];if(!e)throw new Error(`Unable to find environment variable for $${iae}. Check if your runtime environment supports job summaries.`);try{yield HJe(e,lC.constants.R_OK|lC.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 s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return AU(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?VJe:zJe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return AU(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(aae.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",m=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,m)}).join("");return this.wrap("tr",o)}).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:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).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}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},IHt=new hU;var gU=D(require("os"),1);var BHt=gU.default.platform(),RHt=gU.default.arch();var cae;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(cae||(cae={}));function di(t){oae("debug",{},t)}i(di,"debug");var lh=D(require("fs"),1);function EU(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,di(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,di(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,di(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,di(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,di(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}i(EU,"getOptions");var YS=D(require("path"),1);var oh=D(require("path"),1),pd=D(require("assert"),1);var md=process.platform==="win32";function Hl(t){if(t=Gl(t),md&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=oh.dirname(t);return md&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Gl(e)),e}i(Hl,"dirname");function GS(t,e){if((0,pd.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,pd.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),uC(e))return e;if(md){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,pd.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(aa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,pd.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,pd.default)(uC(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||md&&t.endsWith("\\")||(t+=oh.sep),t+e}i(GS,"ensureAbsoluteRoot");function uC(t){return(0,pd.default)(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=aa(t),md?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}i(uC,"hasAbsoluteRoot");function dC(t){return(0,pd.default)(t,"isRooted parameter 'itemPath' must not be empty"),t=aa(t),md?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(dC,"hasRoot");function aa(t){return t=t||"",md?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(aa,"normalizeSeparators");function Gl(t){return t?(t=aa(t),!t.endsWith(oh.sep)||t===oh.sep||md&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}i(Gl,"safeTrimTrailingSeparator");var ca;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(ca||(ca={}));var lae=process.platform==="win32";function IU(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=lae?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=lae?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let o=!1,a=s,c=Hl(a);for(;c!==a;){if(e[c]){o=!0;break}a=c,c=Hl(a)}o||(r.push(n.searchPath),e[s]="included")}return r}i(IU,"getSearchPaths");function uae(t,e){let r=ca.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}i(uae,"match");function dae(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}i(dae,"partialMatch");var Qae=D(require("os"),1),ch=D(require("path"),1);var Ad=D(require("assert"),1),Dae=D(_ae(),1);var pm=D(require("path"),1);var ah=D(require("assert"),1);var g5e=process.platform==="win32",mm=class{static{i(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if((0,ah.default)(e,"Parameter 'itemPath' must not be empty"),e=Gl(e),!dC(e))this.segments=e.split(pm.sep);else{let r=e,n=Hl(r);for(;n!==r;){let s=pm.basename(r);this.segments.unshift(s),r=n,n=Hl(r)}this.segments.unshift(r)}else{(0,ah.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 mm(c).toString(),this.rootRegExp=new RegExp(t.regExpEscape(c[0]),zl?"i":""),this.isImplicitPattern=r;let l={dot:!0,nobrace:!0,nocase:zl,nocomment:!0,noext:!0,nonegate:!0};o=zl?o.replace(/\\/g,"/"):o,this.minimatch=new y5e(o,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=aa(e),!e.endsWith(ch.sep)&&this.isImplicitPattern===!1&&(e=`${e}${ch.sep}`)):e=Gl(e),this.minimatch.match(e)?this.trailingSeparator?ca.Directory:ca.All:ca.None}partialMatch(e){return e=Gl(e),Hl(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(zl?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(zl?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){(0,Ad.default)(e,"pattern cannot be empty");let n=new mm(e).segments.map(s=>t.getLiteral(s));if((0,Ad.default)(n.every((s,o)=>(s!=="."||o===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),(0,Ad.default)(!dC(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=aa(e),e==="."||e.startsWith(`.${ch.sep}`))e=t.globEscape(process.cwd())+e.substr(1);else if(e==="~"||e.startsWith(`~${ch.sep}`))r=r||Qae.homedir(),(0,Ad.default)(r,"Unable to determine HOME directory"),(0,Ad.default)(uC(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),e=t.globEscape(r)+e.substr(1);else if(zl&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let s=GS("C:\\dummy-root",e.substr(0,2));e.length>2&&!s.endsWith("\\")&&(s+="\\"),e=t.globEscape(s)+e.substr(2)}else if(zl&&(e==="\\"||e.match(/^\\[^\\]/))){let s=GS("C:\\dummy-root","\\");s.endsWith("\\")||(s+="\\"),e=t.globEscape(s)+e.substr(1)}else e=GS(t.globEscape(process.cwd()),e);return aa(e)}static getLiteral(e){let r="";for(let n=0;n=0){if(o.length>1)return"";if(o){r+=o,n=a;continue}}}}r+=s}return r}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}};var fC=class{static{i(this,"SearchState")}constructor(e,r){this.path=e,this.level=r}};var BU=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},E5e=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(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},hd=function(t){return this instanceof hd?(this.v=t,this):new hd(t)},C5e=function(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),s[Symbol.asyncIterator]=function(){return this},s;function a(f){return function(g){return Promise.resolve(g).then(f,p)}}function c(f,g){n[f]&&(s[f]=function(E){return new Promise(function(x,w){o.push([f,E,x,w])>1||l(f,E)})},g&&(s[f]=g(s[f])))}function l(f,g){try{u(n[f](g))}catch(E){m(o[0][3],E)}}function u(f){f.value instanceof hd?Promise.resolve(f.value.v).then(d,p):m(o[0][2],f)}function d(f){l("next",f)}function p(f){l("throw",f)}function m(f,g){f(g),o.shift(),o.length&&l(o[0][0],o[0][1])}},I5e=process.platform==="win32",VS=class t{static{i(this,"DefaultGlobber")}constructor(e){this.patterns=[],this.searchPaths=[],this.options=EU(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return BU(this,void 0,void 0,function*(){var e,r,n,s;let o=[];try{for(var a=!0,c=E5e(this.globGenerator()),l;l=yield c.next(),e=l.done,!e;a=!0){s=l.value,a=!1;let u=s;o.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 o})}globGenerator(){return C5e(this,arguments,i(function*(){let r=EU(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 mC(a.negate,!0,a.segments.concat("**")));let s=[];for(let a of IU(n)){di(`Search path '${a}'`);try{yield hd(lh.promises.lstat(a))}catch(c){if(c.code==="ENOENT")continue;throw c}s.unshift(new fC(a,1))}let o=[];for(;s.length;){let a=s.pop(),c=uae(n,a.path),l=!!c||dae(n,a.path);if(!c&&!l)continue;let u=yield hd(t.stat(a,r,o));if(u&&!(r.excludeHiddenFiles&&YS.basename(a.path).match(/^\./)))if(u.isDirectory()){if(c&ca.Directory&&r.matchDirectories)yield yield hd(a.path);else if(!l)continue;let d=a.level+1,p=(yield hd(lh.promises.readdir(a.path))).map(m=>new fC(YS.join(a.path,m),d));s.push(...p.reverse())}else c&ca.File&&(yield yield hd(a.path))}},"globGenerator_1"))}static create(e,r){return BU(this,void 0,void 0,function*(){let n=new t(r);I5e&&(e=e.replace(/\r\n/g,` +`),eLe=!0)),new vy.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),O5.fromEnv(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t;if(!r&&!n&&!s&&!o&&!a)throw new vy.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=await Promise.resolve().then(()=>D(JJ()));return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=await Promise.resolve().then(()=>D(Xke()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=await Promise.resolve().then(()=>D(Q5()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=await Promise.resolve().then(()=>D(k5()));return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await DSt(t))()),async()=>{throw new vy.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],tLe),"defaultProvider"),MSt=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),tLe=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");JD.credentialsTreatedAsExpired=tLe;JD.credentialsWillNeedRefresh=MSt;JD.defaultProvider=OSt});var aLe=b(ZD=>{"use strict";Object.defineProperty(ZD,"__esModule",{value:!0});ZD.bdd=void 0;var FSt=(wt(),W(ff)),_y="ref",Wf=-1,KD=!0,rLe="isSet",U5="PartitionResult",bp="stringEquals",XD="booleanEquals",F5="getAttr",nLe={[_y]:"Endpoint"},Sp={fn:F5,argv:[{[_y]:U5},"name"]},sLe={[_y]:U5},jf={},oLe=[{[_y]:"Region"}],iLe={conditions:[[rLe,[nLe]],[rLe,oLe],["aws.partition",oLe,U5],[bp,[Sp,"aws-eusc"]],[bp,[Sp,"aws-iso-f"]],[bp,[Sp,"aws-iso-e"]],[bp,[Sp,"aws-iso-b"]],[bp,[Sp,"aws-iso"]],[bp,[Sp,"aws-cn"]],[bp,[Sp,"aws-us-gov"]],[bp,[Sp,"aws"]],[XD,[{[_y]:"UseFIPS"},KD]],[XD,[{fn:F5,argv:[sLe,"supportsFIPS"]},KD]],[XD,[{[_y]:"UseDualStack"},KD]],[XD,[{fn:F5,argv:[sLe,"supportsDualStack"]},KD]]],results:[[Wf],[Wf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Wf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[nLe,jf],["https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",jf],["https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",jf],["https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",jf],["https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",jf],["https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",jf],[Wf,"FIPS and DualStack are enabled, but this partition does not support one or both"],[Wf,"FIPS is enabled but this partition does not support FIPS"],["https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",jf],[Wf,"DualStack is enabled but this partition does not support DualStack"],[Wf,"Invalid Configuration: Missing Region"]]},USt=2,$n=1e8,qSt=new Int32Array([-1,1,-1,0,23,3,1,4,$n+13,2,5,$n+13,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,$n+4,14,$n+11,$n+12,12,18,17,13,$n+9,$n+10,13,19,$n+6,14,$n+8,$n+9,11,22,21,13,$n+5,$n+4,13,$n+7,$n+6,11,$n+1,24,13,$n+2,$n+3]);ZD.bdd=FSt.BinaryDecisionDiagram.from(qSt,USt,iLe.conditions,iLe.results)});var cLe=b(ek=>{"use strict";Object.defineProperty(ek,"__esModule",{value:!0});ek.defaultEndpointResolver=void 0;var $St=(bt(),W(ks)),q5=(wt(),W(ff)),GSt=aLe(),HSt=new q5.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),zSt=i((t,e={})=>HSt.get(t,()=>(0,q5.decideEndpoint)(GSt.bdd,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ek.defaultEndpointResolver=zSt;q5.customEndpointFunctions.aws=$St.awsEndpointFunctions});var tk=b(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});Qy.ECRServiceException=Qy.__ServiceException=void 0;var lLe=(Ce(),W(qi));Object.defineProperty(Qy,"__ServiceException",{enumerable:!0,get:i(function(){return lLe.ServiceException},"get")});var $5=class t extends lLe.ServiceException{static{i(this,"ECRServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Qy.ECRServiceException=$5});var L6=b(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.InvalidLayerPartException=z.ImageStorageClassUpdateNotSupportedException=z.LifecyclePolicyPreviewInProgressException=z.UnsupportedImageTypeException=z.ImageArchivedException=z.ExclusionAlreadyExistsException=z.BlockedByOrganizationPolicyException=z.ReferencedImagesNotFoundException=z.ImageTagAlreadyExistsException=z.ImageDigestDoesNotMatchException=z.ImageAlreadyExistsException=z.UnableToListUpstreamImageReferrersException=z.LifecyclePolicyPreviewNotFoundException=z.UnableToGetUpstreamLayerException=z.LayersNotFoundException=z.LayerInaccessibleException=z.ScanNotFoundException=z.ImageNotFoundException=z.ExclusionNotFoundException=z.SigningConfigurationNotFoundException=z.RepositoryPolicyNotFoundException=z.TemplateNotFoundException=z.RepositoryNotEmptyException=z.RegistryPolicyNotFoundException=z.PullThroughCacheRuleNotFoundException=z.LifecyclePolicyNotFoundException=z.TemplateAlreadyExistsException=z.TooManyTagsException=z.RepositoryAlreadyExistsException=z.InvalidTagParameterException=z.UnsupportedUpstreamRegistryException=z.UnableToDecryptSecretValueException=z.UnableToAccessSecretException=z.SecretNotFoundException=z.PullThroughCacheRuleAlreadyExistsException=z.UploadNotFoundException=z.LayerPartTooSmallException=z.LayerAlreadyExistsException=z.KmsException=z.InvalidLayerException=z.EmptyUploadException=z.ValidationException=z.UnableToGetUpstreamImageException=z.LimitExceededException=z.ServerException=z.RepositoryNotFoundException=z.InvalidParameterException=void 0;var He=tk(),G5=class t extends He.ECRServiceException{static{i(this,"InvalidParameterException")}name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.InvalidParameterException=G5;var H5=class t extends He.ECRServiceException{static{i(this,"RepositoryNotFoundException")}name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.RepositoryNotFoundException=H5;var z5=class t extends He.ECRServiceException{static{i(this,"ServerException")}name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ServerException=z5;var V5=class t extends He.ECRServiceException{static{i(this,"LimitExceededException")}name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LimitExceededException=V5;var Y5=class t extends He.ECRServiceException{static{i(this,"UnableToGetUpstreamImageException")}name="UnableToGetUpstreamImageException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamImageException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnableToGetUpstreamImageException=Y5;var W5=class t extends He.ECRServiceException{static{i(this,"ValidationException")}name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ValidationException=W5;var j5=class t extends He.ECRServiceException{static{i(this,"EmptyUploadException")}name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.EmptyUploadException=j5;var J5=class t extends He.ECRServiceException{static{i(this,"InvalidLayerException")}name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.InvalidLayerException=J5;var K5=class t extends He.ECRServiceException{static{i(this,"KmsException")}name="KmsException";$fault="client";kmsError;constructor(e){super({name:"KmsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.kmsError=e.kmsError}};z.KmsException=K5;var X5=class t extends He.ECRServiceException{static{i(this,"LayerAlreadyExistsException")}name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LayerAlreadyExistsException=X5;var Z5=class t extends He.ECRServiceException{static{i(this,"LayerPartTooSmallException")}name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LayerPartTooSmallException=Z5;var e6=class t extends He.ECRServiceException{static{i(this,"UploadNotFoundException")}name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UploadNotFoundException=e6;var t6=class t extends He.ECRServiceException{static{i(this,"PullThroughCacheRuleAlreadyExistsException")}name="PullThroughCacheRuleAlreadyExistsException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.PullThroughCacheRuleAlreadyExistsException=t6;var r6=class t extends He.ECRServiceException{static{i(this,"SecretNotFoundException")}name="SecretNotFoundException";$fault="client";constructor(e){super({name:"SecretNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.SecretNotFoundException=r6;var n6=class t extends He.ECRServiceException{static{i(this,"UnableToAccessSecretException")}name="UnableToAccessSecretException";$fault="client";constructor(e){super({name:"UnableToAccessSecretException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnableToAccessSecretException=n6;var s6=class t extends He.ECRServiceException{static{i(this,"UnableToDecryptSecretValueException")}name="UnableToDecryptSecretValueException";$fault="client";constructor(e){super({name:"UnableToDecryptSecretValueException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnableToDecryptSecretValueException=s6;var o6=class t extends He.ECRServiceException{static{i(this,"UnsupportedUpstreamRegistryException")}name="UnsupportedUpstreamRegistryException";$fault="client";constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnsupportedUpstreamRegistryException=o6;var i6=class t extends He.ECRServiceException{static{i(this,"InvalidTagParameterException")}name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.InvalidTagParameterException=i6;var a6=class t extends He.ECRServiceException{static{i(this,"RepositoryAlreadyExistsException")}name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.RepositoryAlreadyExistsException=a6;var c6=class t extends He.ECRServiceException{static{i(this,"TooManyTagsException")}name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.TooManyTagsException=c6;var l6=class t extends He.ECRServiceException{static{i(this,"TemplateAlreadyExistsException")}name="TemplateAlreadyExistsException";$fault="client";constructor(e){super({name:"TemplateAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.TemplateAlreadyExistsException=l6;var u6=class t extends He.ECRServiceException{static{i(this,"LifecyclePolicyNotFoundException")}name="LifecyclePolicyNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LifecyclePolicyNotFoundException=u6;var d6=class t extends He.ECRServiceException{static{i(this,"PullThroughCacheRuleNotFoundException")}name="PullThroughCacheRuleNotFoundException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.PullThroughCacheRuleNotFoundException=d6;var p6=class t extends He.ECRServiceException{static{i(this,"RegistryPolicyNotFoundException")}name="RegistryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.RegistryPolicyNotFoundException=p6;var m6=class t extends He.ECRServiceException{static{i(this,"RepositoryNotEmptyException")}name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.RepositoryNotEmptyException=m6;var f6=class t extends He.ECRServiceException{static{i(this,"TemplateNotFoundException")}name="TemplateNotFoundException";$fault="client";constructor(e){super({name:"TemplateNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.TemplateNotFoundException=f6;var A6=class t extends He.ECRServiceException{static{i(this,"RepositoryPolicyNotFoundException")}name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.RepositoryPolicyNotFoundException=A6;var h6=class t extends He.ECRServiceException{static{i(this,"SigningConfigurationNotFoundException")}name="SigningConfigurationNotFoundException";$fault="client";constructor(e){super({name:"SigningConfigurationNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.SigningConfigurationNotFoundException=h6;var g6=class t extends He.ECRServiceException{static{i(this,"ExclusionNotFoundException")}name="ExclusionNotFoundException";$fault="client";constructor(e){super({name:"ExclusionNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ExclusionNotFoundException=g6;var y6=class t extends He.ECRServiceException{static{i(this,"ImageNotFoundException")}name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageNotFoundException=y6;var E6=class t extends He.ECRServiceException{static{i(this,"ScanNotFoundException")}name="ScanNotFoundException";$fault="client";constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ScanNotFoundException=E6;var C6=class t extends He.ECRServiceException{static{i(this,"LayerInaccessibleException")}name="LayerInaccessibleException";$fault="client";constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LayerInaccessibleException=C6;var I6=class t extends He.ECRServiceException{static{i(this,"LayersNotFoundException")}name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LayersNotFoundException=I6;var x6=class t extends He.ECRServiceException{static{i(this,"UnableToGetUpstreamLayerException")}name="UnableToGetUpstreamLayerException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnableToGetUpstreamLayerException=x6;var w6=class t extends He.ECRServiceException{static{i(this,"LifecyclePolicyPreviewNotFoundException")}name="LifecyclePolicyPreviewNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LifecyclePolicyPreviewNotFoundException=w6;var b6=class t extends He.ECRServiceException{static{i(this,"UnableToListUpstreamImageReferrersException")}name="UnableToListUpstreamImageReferrersException";$fault="client";constructor(e){super({name:"UnableToListUpstreamImageReferrersException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnableToListUpstreamImageReferrersException=b6;var S6=class t extends He.ECRServiceException{static{i(this,"ImageAlreadyExistsException")}name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageAlreadyExistsException=S6;var B6=class t extends He.ECRServiceException{static{i(this,"ImageDigestDoesNotMatchException")}name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageDigestDoesNotMatchException=B6;var R6=class t extends He.ECRServiceException{static{i(this,"ImageTagAlreadyExistsException")}name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageTagAlreadyExistsException=R6;var N6=class t extends He.ECRServiceException{static{i(this,"ReferencedImagesNotFoundException")}name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ReferencedImagesNotFoundException=N6;var T6=class t extends He.ECRServiceException{static{i(this,"BlockedByOrganizationPolicyException")}name="BlockedByOrganizationPolicyException";$fault="client";constructor(e){super({name:"BlockedByOrganizationPolicyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.BlockedByOrganizationPolicyException=T6;var P6=class t extends He.ECRServiceException{static{i(this,"ExclusionAlreadyExistsException")}name="ExclusionAlreadyExistsException";$fault="client";constructor(e){super({name:"ExclusionAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ExclusionAlreadyExistsException=P6;var v6=class t extends He.ECRServiceException{static{i(this,"ImageArchivedException")}name="ImageArchivedException";$fault="client";constructor(e){super({name:"ImageArchivedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageArchivedException=v6;var _6=class t extends He.ECRServiceException{static{i(this,"UnsupportedImageTypeException")}name="UnsupportedImageTypeException";$fault="client";constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.UnsupportedImageTypeException=_6;var Q6=class t extends He.ECRServiceException{static{i(this,"LifecyclePolicyPreviewInProgressException")}name="LifecyclePolicyPreviewInProgressException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.LifecyclePolicyPreviewInProgressException=Q6;var D6=class t extends He.ECRServiceException{static{i(this,"ImageStorageClassUpdateNotSupportedException")}name="ImageStorageClassUpdateNotSupportedException";$fault="client";constructor(e){super({name:"ImageStorageClassUpdateNotSupportedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};z.ImageStorageClassUpdateNotSupportedException=D6;var k6=class t extends He.ECRServiceException{static{i(this,"InvalidLayerPartException")}name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.registryId=e.registryId,this.repositoryName=e.repositoryName,this.uploadId=e.uploadId,this.lastValidByteReceived=e.lastValidByteReceived}};z.InvalidLayerPartException=k6});var Z6=b(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.Attribute$=A.errorTypeRegistries=A.ValidationException$=A.UploadNotFoundException$=A.UnsupportedUpstreamRegistryException$=A.UnsupportedImageTypeException$=A.UnableToListUpstreamImageReferrersException$=A.UnableToGetUpstreamLayerException$=A.UnableToGetUpstreamImageException$=A.UnableToDecryptSecretValueException$=A.UnableToAccessSecretException$=A.TooManyTagsException$=A.TemplateNotFoundException$=A.TemplateAlreadyExistsException$=A.SigningConfigurationNotFoundException$=A.ServerException$=A.SecretNotFoundException$=A.ScanNotFoundException$=A.RepositoryPolicyNotFoundException$=A.RepositoryNotFoundException$=A.RepositoryNotEmptyException$=A.RepositoryAlreadyExistsException$=A.RegistryPolicyNotFoundException$=A.ReferencedImagesNotFoundException$=A.PullThroughCacheRuleNotFoundException$=A.PullThroughCacheRuleAlreadyExistsException$=A.LimitExceededException$=A.LifecyclePolicyPreviewNotFoundException$=A.LifecyclePolicyPreviewInProgressException$=A.LifecyclePolicyNotFoundException$=A.LayersNotFoundException$=A.LayerPartTooSmallException$=A.LayerInaccessibleException$=A.LayerAlreadyExistsException$=A.KmsException$=A.InvalidTagParameterException$=A.InvalidParameterException$=A.InvalidLayerPartException$=A.InvalidLayerException$=A.ImageTagAlreadyExistsException$=A.ImageStorageClassUpdateNotSupportedException$=A.ImageNotFoundException$=A.ImageDigestDoesNotMatchException$=A.ImageArchivedException$=A.ImageAlreadyExistsException$=A.ExclusionNotFoundException$=A.ExclusionAlreadyExistsException$=A.EmptyUploadException$=A.BlockedByOrganizationPolicyException$=A.ECRServiceException$=void 0;A.DescribeRegistryResponse$=A.DescribeRegistryRequest$=A.DescribePullThroughCacheRulesResponse$=A.DescribePullThroughCacheRulesRequest$=A.DescribeImagesResponse$=A.DescribeImagesRequest$=A.DescribeImageSigningStatusResponse$=A.DescribeImageSigningStatusRequest$=A.DescribeImagesFilter$=A.DescribeImageScanFindingsResponse$=A.DescribeImageScanFindingsRequest$=A.DescribeImageReplicationStatusResponse$=A.DescribeImageReplicationStatusRequest$=A.DeregisterPullTimeUpdateExclusionResponse$=A.DeregisterPullTimeUpdateExclusionRequest$=A.DeleteSigningConfigurationResponse$=A.DeleteSigningConfigurationRequest$=A.DeleteRepositoryResponse$=A.DeleteRepositoryRequest$=A.DeleteRepositoryPolicyResponse$=A.DeleteRepositoryPolicyRequest$=A.DeleteRepositoryCreationTemplateResponse$=A.DeleteRepositoryCreationTemplateRequest$=A.DeleteRegistryPolicyResponse$=A.DeleteRegistryPolicyRequest$=A.DeletePullThroughCacheRuleResponse$=A.DeletePullThroughCacheRuleRequest$=A.DeleteLifecyclePolicyResponse$=A.DeleteLifecyclePolicyRequest$=A.CvssScoreDetails$=A.CvssScoreAdjustment$=A.CvssScore$=A.CreateRepositoryResponse$=A.CreateRepositoryRequest$=A.CreateRepositoryCreationTemplateResponse$=A.CreateRepositoryCreationTemplateRequest$=A.CreatePullThroughCacheRuleResponse$=A.CreatePullThroughCacheRuleRequest$=A.CompleteLayerUploadResponse$=A.CompleteLayerUploadRequest$=A.BatchGetRepositoryScanningConfigurationResponse$=A.BatchGetRepositoryScanningConfigurationRequest$=A.BatchGetImageResponse$=A.BatchGetImageRequest$=A.BatchDeleteImageResponse$=A.BatchDeleteImageRequest$=A.BatchCheckLayerAvailabilityResponse$=A.BatchCheckLayerAvailabilityRequest$=A.AwsEcrContainerImageDetails$=A.AuthorizationData$=void 0;A.ListImagesFilter$=A.ListImageReferrersResponse$=A.ListImageReferrersRequest$=A.ListImageReferrersFilter$=A.LifecyclePolicyRuleAction$=A.LifecyclePolicyPreviewSummary$=A.LifecyclePolicyPreviewResult$=A.LifecyclePolicyPreviewFilter$=A.LayerFailure$=A.Layer$=A.InitiateLayerUploadResponse$=A.InitiateLayerUploadRequest$=A.ImageTagMutabilityExclusionFilter$=A.ImageSigningStatus$=A.ImageScanStatus$=A.ImageScanningConfiguration$=A.ImageScanFindingsSummary$=A.ImageScanFindings$=A.ImageScanFinding$=A.ImageReplicationStatus$=A.ImageReferrer$=A.ImageIdentifier$=A.ImageFailure$=A.ImageDetail$=A.Image$=A.GetSigningConfigurationResponse$=A.GetSigningConfigurationRequest$=A.GetRepositoryPolicyResponse$=A.GetRepositoryPolicyRequest$=A.GetRegistryScanningConfigurationResponse$=A.GetRegistryScanningConfigurationRequest$=A.GetRegistryPolicyResponse$=A.GetRegistryPolicyRequest$=A.GetLifecyclePolicyResponse$=A.GetLifecyclePolicyRequest$=A.GetLifecyclePolicyPreviewResponse$=A.GetLifecyclePolicyPreviewRequest$=A.GetDownloadUrlForLayerResponse$=A.GetDownloadUrlForLayerRequest$=A.GetAuthorizationTokenResponse$=A.GetAuthorizationTokenRequest$=A.GetAccountSettingResponse$=A.GetAccountSettingRequest$=A.EnhancedImageScanFinding$=A.EncryptionConfigurationForRepositoryCreationTemplate$=A.EncryptionConfiguration$=A.DescribeRepositoryCreationTemplatesResponse$=A.DescribeRepositoryCreationTemplatesRequest$=A.DescribeRepositoriesResponse$=A.DescribeRepositoriesRequest$=void 0;A.StartImageScanRequest$=A.SigningRule$=A.SigningRepositoryFilter$=A.SigningConfiguration$=A.SetRepositoryPolicyResponse$=A.SetRepositoryPolicyRequest$=A.ScoreDetails$=A.ScanningRepositoryFilter$=A.ResourceDetails$=A.Resource$=A.RepositoryScanningConfigurationFailure$=A.RepositoryScanningConfiguration$=A.RepositoryFilter$=A.RepositoryCreationTemplate$=A.Repository$=A.ReplicationRule$=A.ReplicationDestination$=A.ReplicationConfiguration$=A.Remediation$=A.RegistryScanningRule$=A.RegistryScanningConfiguration$=A.RegisterPullTimeUpdateExclusionResponse$=A.RegisterPullTimeUpdateExclusionRequest$=A.Recommendation$=A.PutSigningConfigurationResponse$=A.PutSigningConfigurationRequest$=A.PutReplicationConfigurationResponse$=A.PutReplicationConfigurationRequest$=A.PutRegistryScanningConfigurationResponse$=A.PutRegistryScanningConfigurationRequest$=A.PutRegistryPolicyResponse$=A.PutRegistryPolicyRequest$=A.PutLifecyclePolicyResponse$=A.PutLifecyclePolicyRequest$=A.PutImageTagMutabilityResponse$=A.PutImageTagMutabilityRequest$=A.PutImageScanningConfigurationResponse$=A.PutImageScanningConfigurationRequest$=A.PutImageResponse$=A.PutImageRequest$=A.PutAccountSettingResponse$=A.PutAccountSettingRequest$=A.PullThroughCacheRule$=A.PackageVulnerabilityDetails$=A.ListTagsForResourceResponse$=A.ListTagsForResourceRequest$=A.ListPullTimeUpdateExclusionsResponse$=A.ListPullTimeUpdateExclusionsRequest$=A.ListImagesResponse$=A.ListImagesRequest$=void 0;A.GetLifecyclePolicyPreview$=A.GetLifecyclePolicy$=A.GetDownloadUrlForLayer$=A.GetAuthorizationToken$=A.GetAccountSetting$=A.DescribeRepositoryCreationTemplates$=A.DescribeRepositories$=A.DescribeRegistry$=A.DescribePullThroughCacheRules$=A.DescribeImageSigningStatus$=A.DescribeImageScanFindings$=A.DescribeImages$=A.DescribeImageReplicationStatus$=A.DeregisterPullTimeUpdateExclusion$=A.DeleteSigningConfiguration$=A.DeleteRepositoryPolicy$=A.DeleteRepositoryCreationTemplate$=A.DeleteRepository$=A.DeleteRegistryPolicy$=A.DeletePullThroughCacheRule$=A.DeleteLifecyclePolicy$=A.CreateRepositoryCreationTemplate$=A.CreateRepository$=A.CreatePullThroughCacheRule$=A.CompleteLayerUpload$=A.BatchGetRepositoryScanningConfiguration$=A.BatchGetImage$=A.BatchDeleteImage$=A.BatchCheckLayerAvailability$=A.VulnerablePackage$=A.ValidatePullThroughCacheRuleResponse$=A.ValidatePullThroughCacheRuleRequest$=A.UploadLayerPartResponse$=A.UploadLayerPartRequest$=A.UpdateRepositoryCreationTemplateResponse$=A.UpdateRepositoryCreationTemplateRequest$=A.UpdatePullThroughCacheRuleResponse$=A.UpdatePullThroughCacheRuleRequest$=A.UpdateImageStorageClassResponse$=A.UpdateImageStorageClassRequest$=A.UntagResourceResponse$=A.UntagResourceRequest$=A.TransitioningImageTotalCount$=A.TagResourceResponse$=A.TagResourceRequest$=A.Tag$=A.SubjectIdentifier$=A.StartLifecyclePolicyPreviewResponse$=A.StartLifecyclePolicyPreviewRequest$=A.StartImageScanResponse$=void 0;A.ValidatePullThroughCacheRule$=A.UploadLayerPart$=A.UpdateRepositoryCreationTemplate$=A.UpdatePullThroughCacheRule$=A.UpdateImageStorageClass$=A.UntagResource$=A.TagResource$=A.StartLifecyclePolicyPreview$=A.StartImageScan$=A.SetRepositoryPolicy$=A.RegisterPullTimeUpdateExclusion$=A.PutSigningConfiguration$=A.PutReplicationConfiguration$=A.PutRegistryScanningConfiguration$=A.PutRegistryPolicy$=A.PutLifecyclePolicy$=A.PutImageTagMutability$=A.PutImageScanningConfiguration$=A.PutImage$=A.PutAccountSetting$=A.ListTagsForResource$=A.ListPullTimeUpdateExclusions$=A.ListImages$=A.ListImageReferrers$=A.InitiateLayerUpload$=A.GetSigningConfiguration$=A.GetRepositoryPolicy$=A.GetRegistryScanningConfiguration$=A.GetRegistryPolicy$=void 0;var VSt="Attribute",YSt="AuthorizationData",WSt="AuthorizationDataList",jSt="AwsEcrContainerImageDetails",JSt="AttributeList",KSt="BlockedByOrganizationPolicyException",XSt="BatchCheckLayerAvailability",ZSt="BatchCheckLayerAvailabilityRequest",eBt="BatchCheckLayerAvailabilityResponse",tBt="BatchDeleteImage",rBt="BatchDeleteImageRequest",nBt="BatchDeleteImageResponse",sBt="BatchGetImage",oBt="BatchGetImageRequest",iBt="BatchGetImageResponse",aBt="BatchGetRepositoryScanningConfiguration",cBt="BatchGetRepositoryScanningConfigurationRequest",lBt="BatchGetRepositoryScanningConfigurationResponse",uBt="CompleteLayerUpload",dBt="CompleteLayerUploadRequest",pBt="CompleteLayerUploadResponse",mBt="CreatePullThroughCacheRule",fBt="CreatePullThroughCacheRuleRequest",ABt="CreatePullThroughCacheRuleResponse",hBt="CreateRepository",gBt="CreateRepositoryCreationTemplate",yBt="CreateRepositoryCreationTemplateRequest",EBt="CreateRepositoryCreationTemplateResponse",CBt="CreateRepositoryRequest",IBt="CreateRepositoryResponse",xBt="CvssScore",wBt="CvssScoreAdjustment",bBt="CvssScoreAdjustmentList",SBt="CvssScoreDetails",BBt="CvssScoreList",RBt="DescribeImages",NBt="DescribeImagesFilter",TBt="DescribeImagesRequest",PBt="DescribeImageReplicationStatus",vBt="DescribeImageReplicationStatusRequest",_Bt="DescribeImageReplicationStatusResponse",QBt="DescribeImagesResponse",DBt="DescribeImageScanFindings",kBt="DescribeImageScanFindingsRequest",LBt="DescribeImageScanFindingsResponse",OBt="DescribeImageSigningStatus",MBt="DescribeImageSigningStatusRequest",FBt="DescribeImageSigningStatusResponse",UBt="DeleteLifecyclePolicy",qBt="DeleteLifecyclePolicyRequest",$Bt="DeleteLifecyclePolicyResponse",GBt="DeletePullThroughCacheRule",HBt="DeletePullThroughCacheRuleRequest",zBt="DeletePullThroughCacheRuleResponse",VBt="DescribePullThroughCacheRulesRequest",YBt="DescribePullThroughCacheRulesResponse",WBt="DescribePullThroughCacheRules",jBt="DeregisterPullTimeUpdateExclusion",JBt="DeregisterPullTimeUpdateExclusionRequest",KBt="DeregisterPullTimeUpdateExclusionResponse",XBt="DeleteRepository",ZBt="DeleteRepositoryCreationTemplate",eRt="DeleteRepositoryCreationTemplateRequest",tRt="DeleteRepositoryCreationTemplateResponse",rRt="DescribeRepositoryCreationTemplatesRequest",nRt="DescribeRepositoryCreationTemplatesResponse",sRt="DescribeRepositoryCreationTemplates",oRt="DeleteRegistryPolicy",iRt="DeleteRegistryPolicyRequest",aRt="DeleteRegistryPolicyResponse",cRt="DeleteRepositoryPolicyRequest",lRt="DeleteRepositoryPolicyResponse",uRt="DeleteRepositoryPolicy",dRt="DeleteRepositoryRequest",pRt="DeleteRepositoryResponse",mRt="DescribeRegistryRequest",fRt="DescribeRegistryResponse",ARt="DescribeRepositoriesRequest",hRt="DescribeRepositoriesResponse",gRt="DescribeRegistry",yRt="DescribeRepositories",ERt="DeleteSigningConfiguration",CRt="DeleteSigningConfigurationRequest",IRt="DeleteSigningConfigurationResponse",xRt="ExclusionAlreadyExistsException",wRt="EncryptionConfiguration",bRt="EncryptionConfigurationForRepositoryCreationTemplate",SRt="EnhancedImageScanFinding",BRt="EnhancedImageScanFindingList",RRt="ExclusionNotFoundException",NRt="EmptyUploadException",TRt="GetAccountSetting",PRt="GetAccountSettingRequest",vRt="GetAccountSettingResponse",_Rt="GetAuthorizationToken",QRt="GetAuthorizationTokenRequest",DRt="GetAuthorizationTokenResponse",kRt="GetDownloadUrlForLayer",LRt="GetDownloadUrlForLayerRequest",ORt="GetDownloadUrlForLayerResponse",MRt="GetLifecyclePolicy",FRt="GetLifecyclePolicyPreview",URt="GetLifecyclePolicyPreviewRequest",qRt="GetLifecyclePolicyPreviewResponse",$Rt="GetLifecyclePolicyRequest",GRt="GetLifecyclePolicyResponse",HRt="GetRegistryPolicy",zRt="GetRegistryPolicyRequest",VRt="GetRegistryPolicyResponse",YRt="GetRepositoryPolicyRequest",WRt="GetRepositoryPolicyResponse",jRt="GetRepositoryPolicy",JRt="GetRegistryScanningConfiguration",KRt="GetRegistryScanningConfigurationRequest",XRt="GetRegistryScanningConfigurationResponse",ZRt="GetSigningConfiguration",eNt="GetSigningConfigurationRequest",tNt="GetSigningConfigurationResponse",rNt="Image",nNt="ImageArchivedException",sNt="ImageAlreadyExistsException",oNt="ImageDetail",iNt="ImageDigestDoesNotMatchException",aNt="ImageDetailList",cNt="ImageFailure",lNt="ImageFailureList",uNt="ImageIdentifier",dNt="ImageIdentifierList",pNt="ImageList",mNt="InvalidLayerException",fNt="InvalidLayerPartException",ANt="InitiateLayerUpload",hNt="InitiateLayerUploadRequest",gNt="InitiateLayerUploadResponse",yNt="ImageNotFoundException",ENt="InvalidParameterException",CNt="ImageReferrer",INt="ImageReferrerList",xNt="ImageReplicationStatus",wNt="ImageReplicationStatusList",bNt="ImageScanningConfiguration",SNt="ImageStorageClassUpdateNotSupportedException",BNt="ImageScanFinding",RNt="ImageScanFindingList",NNt="ImageScanFindingsSummary",TNt="ImageScanFindings",PNt="ImageScanStatus",vNt="ImageSigningStatusList",_Nt="ImageSigningStatus",QNt="ImageTagAlreadyExistsException",DNt="ImageTagMutabilityExclusionFilter",kNt="ImageTagMutabilityExclusionFilters",LNt="InvalidTagParameterException",ONt="Key",MNt="KmsException",FNt="Layer",UNt="LayerAlreadyExistsException",qNt="LimitExceededException",$Nt="LayerFailure",GNt="LayerFailureList",HNt="ListImages",zNt="LayerInaccessibleException",VNt="ListImagesFilter",YNt="ListImagesRequest",WNt="ListImageReferrersFilter",jNt="ListImageReferrersRequest",JNt="ListImageReferrersResponse",KNt="ListImagesResponse",XNt="ListImageReferrers",ZNt="LayerList",eTt="LayersNotFoundException",tTt="LifecyclePolicyNotFoundException",rTt="LifecyclePolicyPreviewFilter",nTt="LifecyclePolicyPreviewInProgressException",sTt="LifecyclePolicyPreviewNotFoundException",oTt="LifecyclePolicyPreviewResult",iTt="LifecyclePolicyPreviewResultList",aTt="LifecyclePolicyPreviewSummary",cTt="LifecyclePolicyRuleAction",lTt="LayerPartTooSmallException",uTt="ListPullTimeUpdateExclusions",dTt="ListPullTimeUpdateExclusionsRequest",pTt="ListPullTimeUpdateExclusionsResponse",mTt="ListTagsForResource",fTt="ListTagsForResourceRequest",ATt="ListTagsForResourceResponse",hTt="PutAccountSetting",gTt="PutAccountSettingRequest",yTt="PutAccountSettingResponse",ETt="PutImage",CTt="PutImageRequest",ITt="PutImageResponse",xTt="PutImageScanningConfiguration",wTt="PutImageScanningConfigurationRequest",bTt="PutImageScanningConfigurationResponse",STt="PutImageTagMutability",BTt="PutImageTagMutabilityRequest",RTt="PutImageTagMutabilityResponse",NTt="PutLifecyclePolicy",TTt="PutLifecyclePolicyRequest",PTt="PutLifecyclePolicyResponse",vTt="PutReplicationConfiguration",_Tt="PutReplicationConfigurationRequest",QTt="PutReplicationConfigurationResponse",DTt="PutRegistryPolicy",kTt="PutRegistryPolicyRequest",LTt="PutRegistryPolicyResponse",OTt="PutRegistryScanningConfiguration",MTt="PutRegistryScanningConfigurationRequest",FTt="PutRegistryScanningConfigurationResponse",UTt="PutSigningConfiguration",qTt="PutSigningConfigurationRequest",$Tt="PutSigningConfigurationResponse",GTt="PullThroughCacheRule",HTt="PullThroughCacheRuleAlreadyExistsException",zTt="PullThroughCacheRuleList",VTt="PullThroughCacheRuleNotFoundException",YTt="PackageVulnerabilityDetails",WTt="Recommendation",jTt="RepositoryAlreadyExistsException",JTt="ReplicationConfiguration",KTt="RepositoryCreationTemplate",XTt="RepositoryCreationTemplateList",ZTt="ReplicationDestination",ePt="ReplicationDestinationList",tPt="ResourceDetails",rPt="RepositoryFilter",nPt="RepositoryFilterList",sPt="ReferencedImagesNotFoundException",oPt="RepositoryList",iPt="ResourceList",aPt="RepositoryNotEmptyException",cPt="RepositoryNotFoundException",lPt="RegistryPolicyNotFoundException",uPt="RepositoryPolicyNotFoundException",dPt="RegisterPullTimeUpdateExclusion",pPt="RegisterPullTimeUpdateExclusionRequest",mPt="RegisterPullTimeUpdateExclusionResponse",fPt="ReplicationRule",APt="ReplicationRuleList",hPt="RegistryScanningConfiguration",gPt="RepositoryScanningConfigurationFailure",yPt="RepositoryScanningConfigurationFailureList",EPt="RepositoryScanningConfigurationList",CPt="RepositoryScanningConfiguration",IPt="RegistryScanningRule",xPt="RegistryScanningRuleList",wPt="Remediation",bPt="Repository",SPt="Resource",BPt="SigningConfiguration",RPt="SigningConfigurationNotFoundException",NPt="ScoreDetails",TPt="ServerException",PPt="SubjectIdentifier",vPt="StartImageScan",_Pt="StartImageScanRequest",QPt="StartImageScanResponse",DPt="StartLifecyclePolicyPreview",kPt="StartLifecyclePolicyPreviewRequest",LPt="StartLifecyclePolicyPreviewResponse",OPt="ScanNotFoundException",MPt="SecretNotFoundException",FPt="SigningRule",UPt="ScanningRepositoryFilter",qPt="ScanningRepositoryFilterList",$Pt="SigningRepositoryFilterList",GPt="SigningRepositoryFilter",HPt="SigningRuleList",zPt="SetRepositoryPolicy",VPt="SetRepositoryPolicyRequest",YPt="SetRepositoryPolicyResponse",WPt="Tag",jPt="TemplateAlreadyExistsException",JPt="TransitioningImageTotalCount",KPt="TransitioningImageTotalCounts",XPt="TagList",ZPt="TooManyTagsException",evt="TemplateNotFoundException",tvt="TagResource",rvt="TagResourceRequest",nvt="TagResourceResponse",svt="UpdateImageStorageClass",ovt="UpdateImageStorageClassRequest",ivt="UpdateImageStorageClassResponse",avt="UnsupportedImageTypeException",cvt="UploadLayerPart",lvt="UploadLayerPartRequest",uvt="UploadLayerPartResponse",dvt="UploadNotFoundException",pvt="UpdatePullThroughCacheRule",mvt="UpdatePullThroughCacheRuleRequest",fvt="UpdatePullThroughCacheRuleResponse",Avt="UntagResource",hvt="UpdateRepositoryCreationTemplate",gvt="UpdateRepositoryCreationTemplateRequest",yvt="UpdateRepositoryCreationTemplateResponse",Evt="UntagResourceRequest",Cvt="UntagResourceResponse",Ivt="UnableToAccessSecretException",xvt="UnableToDecryptSecretValueException",wvt="UnableToGetUpstreamImageException",bvt="UnableToGetUpstreamLayerException",Svt="UnableToListUpstreamImageReferrersException",Bvt="UnsupportedUpstreamRegistryException",Rvt="Value",Nvt="ValidationException",Tvt="VulnerablePackage",Pvt="VulnerablePackagesList",vvt="ValidatePullThroughCacheRule",_vt="ValidatePullThroughCacheRuleRequest",Qvt="ValidatePullThroughCacheRuleResponse",Dvt="architecture",kvt="awsAccountId",Lvt="authorizationData",Ovt="awsEcrContainerImage",O6="appliedFor",Mvt="acceptedMediaTypes",Fvt="artifactMediaType",Uvt="appliedRulePriority",uLe="artifactStatus",qvt="appliedScanFilters",$vt="authorizationToken",Gvt="artifactType",Hvt="artifactTypes",zvt="action",Vvt="adjustments",Yvt="annotations",Wvt="arch",jvt="attributes",Jvt="author",Kvt="baseScore",je="client",Jf="credentialArn",Dy="createdAt",bl="customRoleArn",dLe="cvss",ky="description",Xvt="downloadUrl",Zvt="destinations",e_t="details",t_t="digest",ze="error",r_t="expiresAt",n_t="exploitAvailable",p0="encryptionConfiguration",s_t="enhancedFindings",o_t="expiringImageTotalCount",qu="ecrRepositoryPrefix",i_t="ecrRepositoryPrefixes",pLe="encryptionType",a_t="epoch",rk="failures",c_t="findingArn",l_t="fixAvailable",m0="failureCode",u_t="fixedInVersion",d_t="firstObservedAt",p_t="filePath",nk="failureReason",mLe="findingSeverityCounts",sk="filterType",m_t="failure",Bp="filter",f_t="findings",fLe="force",A_t="httpError",h_t="images",g_t="imageDetails",f0="imageDigest",y_t="imageHash",Ly="imageIds",Wi="imageId",ALe="imageManifest",M6="imageManifestMediaType",hLe="imagePushedAt",ok="imageStatus",ik="imageScanningConfiguration",gLe="imageScanCompletedAt",E_t="imageScanFindings",C_t="imageScanFindingsSummary",I_t="imageSizeInBytes",F6="imageScanStatus",U6="imageTags",x_t="imageTotalCount",Kf="imageTagMutability",Xf="imageTagMutabilityExclusionFilters",yLe="imageTag",w_t="inUseCount",b_t="isValid",S_t="id",B_t="image",R_t="key",N_t="kmsError",ELe="kmsKey",T_t="layers",P_t="layerAvailability",v_t="lastArchivedAt",__t="lastActivatedAt",Q_t="lastByteReceived",CLe="layerDigests",A0="layerDigest",ILe="lastEvaluatedAt",D_t="lastInUseAt",k_t="lastObservedAt",q6="lifecyclePolicy",L_t="layerPartBlob",Zf="lifecyclePolicyText",O_t="lastRecordedPullTime",M_t="layerSize",F_t="lastValidByteReceived",Ve="message",$u="maxResults",xLe="mediaType",U_t="metric",Oy="name",Bn="nextToken",q_t="platform",$_t="pushedAt",ak="principalArn",G_t="proxyEndpoint",H_t="partFirstByte",z_t="partLastByte",V_t="packageManager",Y_t="previewResults",W_t="partSize",Rp="policyText",j_t="pullThroughCacheRules",J_t="pullTimeUpdateExclusions",K_t="packageVulnerabilityDetails",ck="prefix",X_t="prefixes",Z_t="registry",$6="resourceArn",wLe="repositoryArn",G6="replicationConfiguration",H6="repositoryCreationTemplate",eQt="repositoryCreationTemplates",z6="repositoryFilters",se="registryId",tQt="registryIds",ke="repositoryName",bLe="repositoryNames",V6="repositoryPolicy",rQt="replicationStatuses",nQt="registryScanningConfiguration",Y6="resourceTags",sQt="referenceUrls",oQt="repositoryUri",iQt="relatedVulnerabilities",SLe="repository",aQt="reason",cQt="recommendation",lQt="referrers",BLe="region",uQt="release",dQt="remediation",pQt="repositories",mQt="resources",lk="rules",RLe="smithy.ts.sdk.synthetic.com.amazonaws.ecr",fQt="scanningConfigurations",AQt="scanningConfiguration",uk="signingConfiguration",hQt="storageClass",gQt="scoreDetails",NLe="scanFrequency",yQt="subjectId",EQt="sourceLayerHash",CQt="subjectManifestDigest",TLe="scanOnPush",PLe="signingProfileArn",IQt="scoreSource",xQt="signingStatuses",vLe="scanType",wQt="sourceUrl",_Le="scoringVector",QLe="score",bQt="server",DLe="severity",SQt="size",kLe="source",My="status",BQt="summary",dk="tags",RQt="transitioningImageTotalCounts",NQt="tagKeys",W6="tagStatus",j6="targetStorageClass",TQt="text",PQt="title",J6="type",vQt="uri",pk="updatedAt",Fy="uploadId",K6="upstreamRegistry",Uy="upstreamRepositoryPrefix",h0="upstreamRegistryUrl",_Qt="url",mk="value",QQt="vendorCreatedAt",DQt="vulnerabilityId",kQt="vulnerablePackages",LQt="vendorSeverity",LLe="vulnerabilitySourceUpdatedAt",OQt="vendorUpdatedAt",X6="version",T="com.amazonaws.ecr",OLe=(Ct(),W(Vx)),MQt=tk(),Ye=L6(),MLe=OLe.TypeRegistry.for(RLe);A.ECRServiceException$=[-3,RLe,"ECRServiceException",0,[],[]];MLe.registerError(A.ECRServiceException$,MQt.ECRServiceException);var qe=OLe.TypeRegistry.for(T);A.BlockedByOrganizationPolicyException$=[-3,T,KSt,{[ze]:je},[Ve],[0]];qe.registerError(A.BlockedByOrganizationPolicyException$,Ye.BlockedByOrganizationPolicyException);A.EmptyUploadException$=[-3,T,NRt,{[ze]:je},[Ve],[0]];qe.registerError(A.EmptyUploadException$,Ye.EmptyUploadException);A.ExclusionAlreadyExistsException$=[-3,T,xRt,{[ze]:je},[Ve],[0]];qe.registerError(A.ExclusionAlreadyExistsException$,Ye.ExclusionAlreadyExistsException);A.ExclusionNotFoundException$=[-3,T,RRt,{[ze]:je},[Ve],[0]];qe.registerError(A.ExclusionNotFoundException$,Ye.ExclusionNotFoundException);A.ImageAlreadyExistsException$=[-3,T,sNt,{[ze]:je},[Ve],[0]];qe.registerError(A.ImageAlreadyExistsException$,Ye.ImageAlreadyExistsException);A.ImageArchivedException$=[-3,T,nNt,{[ze]:je},[Ve],[0]];qe.registerError(A.ImageArchivedException$,Ye.ImageArchivedException);A.ImageDigestDoesNotMatchException$=[-3,T,iNt,{[ze]:je},[Ve],[0]];qe.registerError(A.ImageDigestDoesNotMatchException$,Ye.ImageDigestDoesNotMatchException);A.ImageNotFoundException$=[-3,T,yNt,{[ze]:je},[Ve],[0]];qe.registerError(A.ImageNotFoundException$,Ye.ImageNotFoundException);A.ImageStorageClassUpdateNotSupportedException$=[-3,T,SNt,{[ze]:je},[Ve],[0]];qe.registerError(A.ImageStorageClassUpdateNotSupportedException$,Ye.ImageStorageClassUpdateNotSupportedException);A.ImageTagAlreadyExistsException$=[-3,T,QNt,{[ze]:je},[Ve],[0]];qe.registerError(A.ImageTagAlreadyExistsException$,Ye.ImageTagAlreadyExistsException);A.InvalidLayerException$=[-3,T,mNt,{[ze]:je},[Ve],[0]];qe.registerError(A.InvalidLayerException$,Ye.InvalidLayerException);A.InvalidLayerPartException$=[-3,T,fNt,{[ze]:je},[se,ke,Fy,F_t,Ve],[0,0,0,1,0]];qe.registerError(A.InvalidLayerPartException$,Ye.InvalidLayerPartException);A.InvalidParameterException$=[-3,T,ENt,{[ze]:je},[Ve],[0]];qe.registerError(A.InvalidParameterException$,Ye.InvalidParameterException);A.InvalidTagParameterException$=[-3,T,LNt,{[ze]:je},[Ve],[0]];qe.registerError(A.InvalidTagParameterException$,Ye.InvalidTagParameterException);A.KmsException$=[-3,T,MNt,{[ze]:je},[Ve,N_t],[0,0]];qe.registerError(A.KmsException$,Ye.KmsException);A.LayerAlreadyExistsException$=[-3,T,UNt,{[ze]:je},[Ve],[0]];qe.registerError(A.LayerAlreadyExistsException$,Ye.LayerAlreadyExistsException);A.LayerInaccessibleException$=[-3,T,zNt,{[ze]:je},[Ve],[0]];qe.registerError(A.LayerInaccessibleException$,Ye.LayerInaccessibleException);A.LayerPartTooSmallException$=[-3,T,lTt,{[ze]:je},[Ve],[0]];qe.registerError(A.LayerPartTooSmallException$,Ye.LayerPartTooSmallException);A.LayersNotFoundException$=[-3,T,eTt,{[ze]:je},[Ve],[0]];qe.registerError(A.LayersNotFoundException$,Ye.LayersNotFoundException);A.LifecyclePolicyNotFoundException$=[-3,T,tTt,{[ze]:je},[Ve],[0]];qe.registerError(A.LifecyclePolicyNotFoundException$,Ye.LifecyclePolicyNotFoundException);A.LifecyclePolicyPreviewInProgressException$=[-3,T,nTt,{[ze]:je},[Ve],[0]];qe.registerError(A.LifecyclePolicyPreviewInProgressException$,Ye.LifecyclePolicyPreviewInProgressException);A.LifecyclePolicyPreviewNotFoundException$=[-3,T,sTt,{[ze]:je},[Ve],[0]];qe.registerError(A.LifecyclePolicyPreviewNotFoundException$,Ye.LifecyclePolicyPreviewNotFoundException);A.LimitExceededException$=[-3,T,qNt,{[ze]:je},[Ve],[0]];qe.registerError(A.LimitExceededException$,Ye.LimitExceededException);A.PullThroughCacheRuleAlreadyExistsException$=[-3,T,HTt,{[ze]:je},[Ve],[0]];qe.registerError(A.PullThroughCacheRuleAlreadyExistsException$,Ye.PullThroughCacheRuleAlreadyExistsException);A.PullThroughCacheRuleNotFoundException$=[-3,T,VTt,{[ze]:je},[Ve],[0]];qe.registerError(A.PullThroughCacheRuleNotFoundException$,Ye.PullThroughCacheRuleNotFoundException);A.ReferencedImagesNotFoundException$=[-3,T,sPt,{[ze]:je},[Ve],[0]];qe.registerError(A.ReferencedImagesNotFoundException$,Ye.ReferencedImagesNotFoundException);A.RegistryPolicyNotFoundException$=[-3,T,lPt,{[ze]:je},[Ve],[0]];qe.registerError(A.RegistryPolicyNotFoundException$,Ye.RegistryPolicyNotFoundException);A.RepositoryAlreadyExistsException$=[-3,T,jTt,{[ze]:je},[Ve],[0]];qe.registerError(A.RepositoryAlreadyExistsException$,Ye.RepositoryAlreadyExistsException);A.RepositoryNotEmptyException$=[-3,T,aPt,{[ze]:je},[Ve],[0]];qe.registerError(A.RepositoryNotEmptyException$,Ye.RepositoryNotEmptyException);A.RepositoryNotFoundException$=[-3,T,cPt,{[ze]:je},[Ve],[0]];qe.registerError(A.RepositoryNotFoundException$,Ye.RepositoryNotFoundException);A.RepositoryPolicyNotFoundException$=[-3,T,uPt,{[ze]:je},[Ve],[0]];qe.registerError(A.RepositoryPolicyNotFoundException$,Ye.RepositoryPolicyNotFoundException);A.ScanNotFoundException$=[-3,T,OPt,{[ze]:je},[Ve],[0]];qe.registerError(A.ScanNotFoundException$,Ye.ScanNotFoundException);A.SecretNotFoundException$=[-3,T,MPt,{[ze]:je},[Ve],[0]];qe.registerError(A.SecretNotFoundException$,Ye.SecretNotFoundException);A.ServerException$=[-3,T,TPt,{[ze]:bQt},[Ve],[0]];qe.registerError(A.ServerException$,Ye.ServerException);A.SigningConfigurationNotFoundException$=[-3,T,RPt,{[ze]:je},[Ve],[0]];qe.registerError(A.SigningConfigurationNotFoundException$,Ye.SigningConfigurationNotFoundException);A.TemplateAlreadyExistsException$=[-3,T,jPt,{[ze]:je},[Ve],[0]];qe.registerError(A.TemplateAlreadyExistsException$,Ye.TemplateAlreadyExistsException);A.TemplateNotFoundException$=[-3,T,evt,{[ze]:je},[Ve],[0]];qe.registerError(A.TemplateNotFoundException$,Ye.TemplateNotFoundException);A.TooManyTagsException$=[-3,T,ZPt,{[ze]:je},[Ve],[0]];qe.registerError(A.TooManyTagsException$,Ye.TooManyTagsException);A.UnableToAccessSecretException$=[-3,T,Ivt,{[ze]:je},[Ve],[0]];qe.registerError(A.UnableToAccessSecretException$,Ye.UnableToAccessSecretException);A.UnableToDecryptSecretValueException$=[-3,T,xvt,{[ze]:je},[Ve],[0]];qe.registerError(A.UnableToDecryptSecretValueException$,Ye.UnableToDecryptSecretValueException);A.UnableToGetUpstreamImageException$=[-3,T,wvt,{[ze]:je},[Ve],[0]];qe.registerError(A.UnableToGetUpstreamImageException$,Ye.UnableToGetUpstreamImageException);A.UnableToGetUpstreamLayerException$=[-3,T,bvt,{[ze]:je},[Ve],[0]];qe.registerError(A.UnableToGetUpstreamLayerException$,Ye.UnableToGetUpstreamLayerException);A.UnableToListUpstreamImageReferrersException$=[-3,T,Svt,{[ze]:je},[Ve],[0]];qe.registerError(A.UnableToListUpstreamImageReferrersException$,Ye.UnableToListUpstreamImageReferrersException);A.UnsupportedImageTypeException$=[-3,T,avt,{[ze]:je},[Ve],[0]];qe.registerError(A.UnsupportedImageTypeException$,Ye.UnsupportedImageTypeException);A.UnsupportedUpstreamRegistryException$=[-3,T,Bvt,{[ze]:je},[Ve],[0]];qe.registerError(A.UnsupportedUpstreamRegistryException$,Ye.UnsupportedUpstreamRegistryException);A.UploadNotFoundException$=[-3,T,dvt,{[ze]:je},[Ve],[0]];qe.registerError(A.UploadNotFoundException$,Ye.UploadNotFoundException);A.ValidationException$=[-3,T,Nvt,{[ze]:je,[A_t]:400},[Ve],[0]];qe.registerError(A.ValidationException$,Ye.ValidationException);A.errorTypeRegistries=[MLe,qe];A.Attribute$=[3,T,VSt,0,[R_t,mk],[0,0],1];A.AuthorizationData$=[3,T,YSt,0,[$vt,r_t,G_t],[0,4,0]];A.AwsEcrContainerImageDetails$=[3,T,jSt,0,[Dvt,Jvt,y_t,U6,q_t,$_t,D_t,w_t,Z_t,ke],[0,0,0,64,0,4,4,1,0,0]];A.BatchCheckLayerAvailabilityRequest$=[3,T,ZSt,0,[ke,CLe,se],[0,64,0],2];A.BatchCheckLayerAvailabilityResponse$=[3,T,eBt,0,[T_t,rk],[()=>KQt,()=>JQt]];A.BatchDeleteImageRequest$=[3,T,rBt,0,[ke,Ly,se],[0,()=>qy,0],2];A.BatchDeleteImageResponse$=[3,T,nBt,0,[Ly,rk],[()=>qy,()=>FLe]];A.BatchGetImageRequest$=[3,T,oBt,0,[ke,Ly,se,Mvt],[0,()=>qy,0,64],2];A.BatchGetImageResponse$=[3,T,iBt,0,[h_t,rk],[()=>zQt,()=>FLe]];A.BatchGetRepositoryScanningConfigurationRequest$=[3,T,cBt,0,[bLe],[64],1];A.BatchGetRepositoryScanningConfigurationResponse$=[3,T,lBt,0,[fQt,rk],[()=>iDt,()=>oDt]];A.CompleteLayerUploadRequest$=[3,T,dBt,0,[ke,Fy,CLe,se],[0,0,64,0],3];A.CompleteLayerUploadResponse$=[3,T,pBt,0,[se,ke,Fy,A0],[0,0,0,0]];A.CreatePullThroughCacheRuleRequest$=[3,T,fBt,0,[qu,h0,se,K6,Jf,bl,Uy],[0,0,0,0,0,0,0],2];A.CreatePullThroughCacheRuleResponse$=[3,T,ABt,0,[qu,h0,Dy,se,K6,Jf,bl,Uy],[0,0,4,0,0,0,0,0]];A.CreateRepositoryCreationTemplateRequest$=[3,T,yBt,0,[ck,O6,ky,p0,Y6,Kf,Xf,V6,q6,bl],[0,64,0,()=>A.EncryptionConfigurationForRepositoryCreationTemplate$,()=>$y,0,()=>eA,0,0,0],2];A.CreateRepositoryCreationTemplateResponse$=[3,T,EBt,0,[se,H6],[0,()=>A.RepositoryCreationTemplate$]];A.CreateRepositoryRequest$=[3,T,CBt,0,[ke,se,dk,Kf,Xf,ik,p0],[0,0,()=>$y,0,()=>eA,()=>A.ImageScanningConfiguration$,()=>A.EncryptionConfiguration$],1];A.CreateRepositoryResponse$=[3,T,IBt,0,[SLe],[()=>A.Repository$]];A.CvssScore$=[3,T,xBt,0,[Kvt,_Le,kLe,X6],[1,0,0,0]];A.CvssScoreAdjustment$=[3,T,wBt,0,[U_t,aQt],[0,0]];A.CvssScoreDetails$=[3,T,SBt,0,[Vvt,QLe,IQt,_Le,X6],[()=>qQt,1,0,0,0]];A.DeleteLifecyclePolicyRequest$=[3,T,qBt,0,[ke,se],[0,0],1];A.DeleteLifecyclePolicyResponse$=[3,T,$Bt,0,[se,ke,Zf,ILe],[0,0,0,4]];A.DeletePullThroughCacheRuleRequest$=[3,T,HBt,0,[qu,se],[0,0],1];A.DeletePullThroughCacheRuleResponse$=[3,T,zBt,0,[qu,h0,Dy,se,Jf,bl,Uy],[0,0,4,0,0,0,0]];A.DeleteRegistryPolicyRequest$=[3,T,iRt,0,[],[]];A.DeleteRegistryPolicyResponse$=[3,T,aRt,0,[se,Rp],[0,0]];A.DeleteRepositoryCreationTemplateRequest$=[3,T,eRt,0,[ck],[0],1];A.DeleteRepositoryCreationTemplateResponse$=[3,T,tRt,0,[se,H6],[0,()=>A.RepositoryCreationTemplate$]];A.DeleteRepositoryPolicyRequest$=[3,T,cRt,0,[ke,se],[0,0],1];A.DeleteRepositoryPolicyResponse$=[3,T,lRt,0,[se,ke,Rp],[0,0,0]];A.DeleteRepositoryRequest$=[3,T,dRt,0,[ke,se,fLe],[0,0,2],1];A.DeleteRepositoryResponse$=[3,T,pRt,0,[SLe],[()=>A.Repository$]];A.DeleteSigningConfigurationRequest$=[3,T,CRt,0,[],[]];A.DeleteSigningConfigurationResponse$=[3,T,IRt,0,[se,uk],[0,()=>A.SigningConfiguration$]];A.DeregisterPullTimeUpdateExclusionRequest$=[3,T,JBt,0,[ak],[0],1];A.DeregisterPullTimeUpdateExclusionResponse$=[3,T,KBt,0,[ak],[0]];A.DescribeImageReplicationStatusRequest$=[3,T,vBt,0,[ke,Wi,se],[0,()=>A.ImageIdentifier$,0],2];A.DescribeImageReplicationStatusResponse$=[3,T,_Bt,0,[ke,Wi,rQt],[0,()=>A.ImageIdentifier$,()=>YQt]];A.DescribeImageScanFindingsRequest$=[3,T,kBt,0,[ke,Wi,se,Bn,$u],[0,()=>A.ImageIdentifier$,0,0,1],2];A.DescribeImageScanFindingsResponse$=[3,T,LBt,0,[se,ke,Wi,F6,E_t,Bn],[0,0,()=>A.ImageIdentifier$,()=>A.ImageScanStatus$,()=>A.ImageScanFindings$,0]];A.DescribeImagesFilter$=[3,T,NBt,0,[W6,ok],[0,0]];A.DescribeImageSigningStatusRequest$=[3,T,MBt,0,[ke,Wi,se],[0,()=>A.ImageIdentifier$,0],2];A.DescribeImageSigningStatusResponse$=[3,T,FBt,0,[ke,Wi,se,xQt],[0,()=>A.ImageIdentifier$,0,()=>jQt]];A.DescribeImagesRequest$=[3,T,TBt,0,[ke,se,Ly,Bn,$u,Bp],[0,0,()=>qy,0,1,()=>A.DescribeImagesFilter$],1];A.DescribeImagesResponse$=[3,T,QBt,0,[g_t,Bn],[()=>HQt,0]];A.DescribePullThroughCacheRulesRequest$=[3,T,VBt,0,[se,i_t,Bn,$u],[0,64,0,1]];A.DescribePullThroughCacheRulesResponse$=[3,T,YBt,0,[j_t,Bn],[()=>ZQt,0]];A.DescribeRegistryRequest$=[3,T,mRt,0,[],[]];A.DescribeRegistryResponse$=[3,T,fRt,0,[se,G6],[0,()=>A.ReplicationConfiguration$]];A.DescribeRepositoriesRequest$=[3,T,ARt,0,[se,bLe,Bn,$u],[0,64,0,1]];A.DescribeRepositoriesResponse$=[3,T,hRt,0,[pQt,Bn],[()=>sDt,0]];A.DescribeRepositoryCreationTemplatesRequest$=[3,T,rRt,0,[X_t,Bn,$u],[64,0,1]];A.DescribeRepositoryCreationTemplatesResponse$=[3,T,nRt,0,[se,eQt,Bn],[0,()=>rDt,0]];A.EncryptionConfiguration$=[3,T,wRt,0,[pLe,ELe],[0,0],1];A.EncryptionConfigurationForRepositoryCreationTemplate$=[3,T,bRt,0,[pLe,ELe],[0,0],1];A.EnhancedImageScanFinding$=[3,T,SRt,0,[kvt,ky,c_t,d_t,k_t,K_t,dQt,mQt,QLe,gQt,DLe,My,PQt,J6,pk,l_t,n_t],[0,0,0,4,4,()=>A.PackageVulnerabilityDetails$,()=>A.Remediation$,()=>aDt,1,()=>A.ScoreDetails$,0,0,0,0,4,0,0]];A.GetAccountSettingRequest$=[3,T,PRt,0,[Oy],[0],1];A.GetAccountSettingResponse$=[3,T,vRt,0,[Oy,mk],[0,0]];A.GetAuthorizationTokenRequest$=[3,T,QRt,0,[tQt],[64]];A.GetAuthorizationTokenResponse$=[3,T,DRt,0,[Lvt],[()=>UQt]];A.GetDownloadUrlForLayerRequest$=[3,T,LRt,0,[ke,A0,se],[0,0,0],2];A.GetDownloadUrlForLayerResponse$=[3,T,ORt,0,[Xvt,A0],[0,0]];A.GetLifecyclePolicyPreviewRequest$=[3,T,URt,0,[ke,se,Ly,Bn,$u,Bp],[0,0,()=>qy,0,1,()=>A.LifecyclePolicyPreviewFilter$],1];A.GetLifecyclePolicyPreviewResponse$=[3,T,qRt,0,[se,ke,Zf,My,Bn,Y_t,BQt],[0,0,0,0,0,()=>XQt,()=>A.LifecyclePolicyPreviewSummary$]];A.GetLifecyclePolicyRequest$=[3,T,$Rt,0,[ke,se],[0,0],1];A.GetLifecyclePolicyResponse$=[3,T,GRt,0,[se,ke,Zf,ILe],[0,0,0,4]];A.GetRegistryPolicyRequest$=[3,T,zRt,0,[],[]];A.GetRegistryPolicyResponse$=[3,T,VRt,0,[se,Rp],[0,0]];A.GetRegistryScanningConfigurationRequest$=[3,T,KRt,0,[],[]];A.GetRegistryScanningConfigurationResponse$=[3,T,XRt,0,[se,AQt],[0,()=>A.RegistryScanningConfiguration$]];A.GetRepositoryPolicyRequest$=[3,T,YRt,0,[ke,se],[0,0],1];A.GetRepositoryPolicyResponse$=[3,T,WRt,0,[se,ke,Rp],[0,0,0]];A.GetSigningConfigurationRequest$=[3,T,eNt,0,[],[]];A.GetSigningConfigurationResponse$=[3,T,tNt,0,[se,uk],[0,()=>A.SigningConfiguration$]];A.Image$=[3,T,rNt,0,[se,ke,Wi,ALe,M6],[0,0,()=>A.ImageIdentifier$,0,0]];A.ImageDetail$=[3,T,oNt,0,[se,ke,f0,U6,I_t,hLe,F6,C_t,M6,Fvt,O_t,CQt,ok,v_t,__t],[0,0,0,64,1,4,()=>A.ImageScanStatus$,()=>A.ImageScanFindingsSummary$,0,0,4,0,0,4,4]];A.ImageFailure$=[3,T,cNt,0,[Wi,m0,nk],[()=>A.ImageIdentifier$,0,0]];A.ImageIdentifier$=[3,T,uNt,0,[f0,yLe],[0,0]];A.ImageReferrer$=[3,T,CNt,0,[t_t,xLe,SQt,Gvt,Yvt,uLe],[0,0,1,0,128,0],3];A.ImageReplicationStatus$=[3,T,xNt,0,[BLe,se,My,m0],[0,0,0,0]];A.ImageScanFinding$=[3,T,BNt,0,[Oy,ky,vQt,DLe,jvt],[0,0,0,0,()=>FQt]];A.ImageScanFindings$=[3,T,TNt,0,[gLe,LLe,mLe,f_t,s_t],[4,4,129,()=>WQt,()=>GQt]];A.ImageScanFindingsSummary$=[3,T,NNt,0,[gLe,LLe,mLe],[4,4,129]];A.ImageScanningConfiguration$=[3,T,bNt,0,[TLe],[2]];A.ImageScanStatus$=[3,T,PNt,0,[My,ky],[0,0]];A.ImageSigningStatus$=[3,T,_Nt,0,[PLe,m0,nk,My],[0,0,0,0]];A.ImageTagMutabilityExclusionFilter$=[3,T,DNt,0,[sk,Bp],[0,0],2];A.InitiateLayerUploadRequest$=[3,T,hNt,0,[ke,se],[0,0],1];A.InitiateLayerUploadResponse$=[3,T,gNt,0,[Fy,W_t],[0,1]];A.Layer$=[3,T,FNt,0,[A0,P_t,M_t,xLe],[0,0,1,0]];A.LayerFailure$=[3,T,$Nt,0,[A0,m0,nk],[0,0,0]];A.LifecyclePolicyPreviewFilter$=[3,T,rTt,0,[W6],[0]];A.LifecyclePolicyPreviewResult$=[3,T,oTt,0,[U6,f0,hLe,zvt,Uvt,hQt],[64,0,4,()=>A.LifecyclePolicyRuleAction$,1,0]];A.LifecyclePolicyPreviewSummary$=[3,T,aTt,0,[o_t,RQt],[1,()=>uDt]];A.LifecyclePolicyRuleAction$=[3,T,cTt,0,[J6,j6],[0,0]];A.ListImageReferrersFilter$=[3,T,WNt,0,[Hvt,uLe],[64,0]];A.ListImageReferrersRequest$=[3,T,jNt,0,[ke,yQt,se,Bp,Bn,$u],[0,()=>A.SubjectIdentifier$,0,()=>A.ListImageReferrersFilter$,0,1],2];A.ListImageReferrersResponse$=[3,T,JNt,0,[lQt,Bn],[()=>VQt,0]];A.ListImagesFilter$=[3,T,VNt,0,[W6,ok],[0,0]];A.ListImagesRequest$=[3,T,YNt,0,[ke,se,Bn,$u,Bp],[0,0,0,1,()=>A.ListImagesFilter$],1];A.ListImagesResponse$=[3,T,KNt,0,[Ly,Bn],[()=>qy,0]];A.ListPullTimeUpdateExclusionsRequest$=[3,T,dTt,0,[$u,Bn],[1,0]];A.ListPullTimeUpdateExclusionsResponse$=[3,T,pTt,0,[J_t,Bn],[64,0]];A.ListTagsForResourceRequest$=[3,T,fTt,0,[$6],[0],1];A.ListTagsForResourceResponse$=[3,T,ATt,0,[dk],[()=>$y]];A.PackageVulnerabilityDetails$=[3,T,YTt,0,[dLe,sQt,iQt,kLe,wQt,QQt,LQt,OQt,DQt,kQt],[()=>$Qt,64,64,0,0,4,0,4,0,()=>dDt]];A.PullThroughCacheRule$=[3,T,GTt,0,[qu,h0,Dy,se,Jf,bl,Uy,K6,pk],[0,0,4,0,0,0,0,0,4]];A.PutAccountSettingRequest$=[3,T,gTt,0,[Oy,mk],[0,0],2];A.PutAccountSettingResponse$=[3,T,yTt,0,[Oy,mk],[0,0]];A.PutImageRequest$=[3,T,CTt,0,[ke,ALe,se,M6,yLe,f0],[0,0,0,0,0,0],2];A.PutImageResponse$=[3,T,ITt,0,[B_t],[()=>A.Image$]];A.PutImageScanningConfigurationRequest$=[3,T,wTt,0,[ke,ik,se],[0,()=>A.ImageScanningConfiguration$,0],2];A.PutImageScanningConfigurationResponse$=[3,T,bTt,0,[se,ke,ik],[0,0,()=>A.ImageScanningConfiguration$]];A.PutImageTagMutabilityRequest$=[3,T,BTt,0,[ke,Kf,se,Xf],[0,0,0,()=>eA],2];A.PutImageTagMutabilityResponse$=[3,T,RTt,0,[se,ke,Kf,Xf],[0,0,0,()=>eA]];A.PutLifecyclePolicyRequest$=[3,T,TTt,0,[ke,Zf,se],[0,0,0],2];A.PutLifecyclePolicyResponse$=[3,T,PTt,0,[se,ke,Zf],[0,0,0]];A.PutRegistryPolicyRequest$=[3,T,kTt,0,[Rp],[0],1];A.PutRegistryPolicyResponse$=[3,T,LTt,0,[se,Rp],[0,0]];A.PutRegistryScanningConfigurationRequest$=[3,T,MTt,0,[vLe,lk],[0,()=>ULe]];A.PutRegistryScanningConfigurationResponse$=[3,T,FTt,0,[nQt],[()=>A.RegistryScanningConfiguration$]];A.PutReplicationConfigurationRequest$=[3,T,_Tt,0,[G6],[()=>A.ReplicationConfiguration$],1];A.PutReplicationConfigurationResponse$=[3,T,QTt,0,[G6],[()=>A.ReplicationConfiguration$]];A.PutSigningConfigurationRequest$=[3,T,qTt,0,[uk],[()=>A.SigningConfiguration$],1];A.PutSigningConfigurationResponse$=[3,T,$Tt,0,[uk],[()=>A.SigningConfiguration$]];A.Recommendation$=[3,T,WTt,0,[_Qt,TQt],[0,0]];A.RegisterPullTimeUpdateExclusionRequest$=[3,T,pPt,0,[ak],[0],1];A.RegisterPullTimeUpdateExclusionResponse$=[3,T,mPt,0,[ak,Dy],[0,4]];A.RegistryScanningConfiguration$=[3,T,hPt,0,[vLe,lk],[0,()=>ULe]];A.RegistryScanningRule$=[3,T,IPt,0,[NLe,z6],[0,()=>qLe],2];A.Remediation$=[3,T,wPt,0,[cQt],[()=>A.Recommendation$]];A.ReplicationConfiguration$=[3,T,JTt,0,[lk],[()=>tDt],1];A.ReplicationDestination$=[3,T,ZTt,0,[BLe,se],[0,0],2];A.ReplicationRule$=[3,T,fPt,0,[Zvt,z6],[()=>eDt,()=>nDt],1];A.Repository$=[3,T,bPt,0,[wLe,se,ke,oQt,Dy,Kf,Xf,ik,p0],[0,0,0,0,4,0,()=>eA,()=>A.ImageScanningConfiguration$,()=>A.EncryptionConfiguration$]];A.RepositoryCreationTemplate$=[3,T,KTt,0,[ck,ky,p0,Y6,Kf,Xf,V6,q6,O6,bl,Dy,pk],[0,0,()=>A.EncryptionConfigurationForRepositoryCreationTemplate$,()=>$y,0,()=>eA,0,0,64,0,4,4]];A.RepositoryFilter$=[3,T,rPt,0,[Bp,sk],[0,0],2];A.RepositoryScanningConfiguration$=[3,T,CPt,0,[wLe,ke,TLe,NLe,qvt],[0,0,2,0,()=>qLe]];A.RepositoryScanningConfigurationFailure$=[3,T,gPt,0,[ke,m0,nk],[0,0,0]];A.Resource$=[3,T,SPt,0,[e_t,S_t,dk,J6],[()=>A.ResourceDetails$,0,128,0]];A.ResourceDetails$=[3,T,tPt,0,[Ovt],[()=>A.AwsEcrContainerImageDetails$]];A.ScanningRepositoryFilter$=[3,T,UPt,0,[Bp,sk],[0,0],2];A.ScoreDetails$=[3,T,NPt,0,[dLe],[()=>A.CvssScoreDetails$]];A.SetRepositoryPolicyRequest$=[3,T,VPt,0,[ke,Rp,se,fLe],[0,0,0,2],2];A.SetRepositoryPolicyResponse$=[3,T,YPt,0,[se,ke,Rp],[0,0,0]];A.SigningConfiguration$=[3,T,BPt,0,[lk],[()=>lDt],1];A.SigningRepositoryFilter$=[3,T,GPt,0,[Bp,sk],[0,0],2];A.SigningRule$=[3,T,FPt,0,[PLe,z6],[0,()=>cDt],1];A.StartImageScanRequest$=[3,T,_Pt,0,[ke,Wi,se],[0,()=>A.ImageIdentifier$,0],2];A.StartImageScanResponse$=[3,T,QPt,0,[se,ke,Wi,F6],[0,0,()=>A.ImageIdentifier$,()=>A.ImageScanStatus$]];A.StartLifecyclePolicyPreviewRequest$=[3,T,kPt,0,[ke,se,Zf],[0,0,0],1];A.StartLifecyclePolicyPreviewResponse$=[3,T,LPt,0,[se,ke,Zf,My],[0,0,0,0]];A.SubjectIdentifier$=[3,T,PPt,0,[f0],[0],1];A.Tag$=[3,T,WPt,0,[ONt,Rvt],[0,0],2];A.TagResourceRequest$=[3,T,rvt,0,[$6,dk],[0,()=>$y],2];A.TagResourceResponse$=[3,T,nvt,0,[],[]];A.TransitioningImageTotalCount$=[3,T,JPt,0,[j6,x_t],[0,1]];A.UntagResourceRequest$=[3,T,Evt,0,[$6,NQt],[0,64],2];A.UntagResourceResponse$=[3,T,Cvt,0,[],[]];A.UpdateImageStorageClassRequest$=[3,T,ovt,0,[ke,Wi,j6,se],[0,()=>A.ImageIdentifier$,0,0],3];A.UpdateImageStorageClassResponse$=[3,T,ivt,0,[se,ke,Wi,ok],[0,0,()=>A.ImageIdentifier$,0]];A.UpdatePullThroughCacheRuleRequest$=[3,T,mvt,0,[qu,se,Jf,bl],[0,0,0,0],1];A.UpdatePullThroughCacheRuleResponse$=[3,T,fvt,0,[qu,se,pk,Jf,bl,Uy],[0,0,4,0,0,0]];A.UpdateRepositoryCreationTemplateRequest$=[3,T,gvt,0,[ck,ky,p0,Y6,Kf,Xf,V6,q6,O6,bl],[0,0,()=>A.EncryptionConfigurationForRepositoryCreationTemplate$,()=>$y,0,()=>eA,0,0,64,0],1];A.UpdateRepositoryCreationTemplateResponse$=[3,T,yvt,0,[se,H6],[0,()=>A.RepositoryCreationTemplate$]];A.UploadLayerPartRequest$=[3,T,lvt,0,[ke,Fy,H_t,z_t,L_t,se],[0,0,1,1,21,0],5];A.UploadLayerPartResponse$=[3,T,uvt,0,[se,ke,Fy,Q_t],[0,0,0,1]];A.ValidatePullThroughCacheRuleRequest$=[3,T,_vt,0,[qu,se],[0,0],1];A.ValidatePullThroughCacheRuleResponse$=[3,T,Qvt,0,[qu,se,h0,Jf,bl,Uy,b_t,m_t],[0,0,0,0,0,0,2,0]];A.VulnerablePackage$=[3,T,Tvt,0,[Wvt,a_t,p_t,Oy,V_t,uQt,EQt,X6,u_t],[0,1,0,0,0,0,0,0,0]];var FQt=[1,T,JSt,0,()=>A.Attribute$],UQt=[1,T,WSt,0,()=>A.AuthorizationData$],qQt=[1,T,bBt,0,()=>A.CvssScoreAdjustment$],$Qt=[1,T,BBt,0,()=>A.CvssScore$],GQt=[1,T,BRt,0,()=>A.EnhancedImageScanFinding$],HQt=[1,T,aNt,0,()=>A.ImageDetail$],FLe=[1,T,lNt,0,()=>A.ImageFailure$],qy=[1,T,dNt,0,()=>A.ImageIdentifier$],zQt=[1,T,pNt,0,()=>A.Image$],VQt=[1,T,INt,0,()=>A.ImageReferrer$],YQt=[1,T,wNt,0,()=>A.ImageReplicationStatus$],WQt=[1,T,RNt,0,()=>A.ImageScanFinding$],jQt=[1,T,vNt,0,()=>A.ImageSigningStatus$],eA=[1,T,kNt,0,()=>A.ImageTagMutabilityExclusionFilter$],JQt=[1,T,GNt,0,()=>A.LayerFailure$],KQt=[1,T,ZNt,0,()=>A.Layer$],XQt=[1,T,iTt,0,()=>A.LifecyclePolicyPreviewResult$],ZQt=[1,T,zTt,0,()=>A.PullThroughCacheRule$],ULe=[1,T,xPt,0,()=>A.RegistryScanningRule$],eDt=[1,T,ePt,0,()=>A.ReplicationDestination$],tDt=[1,T,APt,0,()=>A.ReplicationRule$],rDt=[1,T,XTt,0,()=>A.RepositoryCreationTemplate$],nDt=[1,T,nPt,0,()=>A.RepositoryFilter$],sDt=[1,T,oPt,0,()=>A.Repository$],oDt=[1,T,yPt,0,()=>A.RepositoryScanningConfigurationFailure$],iDt=[1,T,EPt,0,()=>A.RepositoryScanningConfiguration$],aDt=[1,T,iPt,0,()=>A.Resource$],qLe=[1,T,qPt,0,()=>A.ScanningRepositoryFilter$],cDt=[1,T,$Pt,0,()=>A.SigningRepositoryFilter$],lDt=[1,T,HPt,0,()=>A.SigningRule$],$y=[1,T,XPt,0,()=>A.Tag$],uDt=[1,T,KPt,0,()=>A.TransitioningImageTotalCount$],dDt=[1,T,Pvt,0,()=>A.VulnerablePackage$];A.BatchCheckLayerAvailability$=[9,T,XSt,0,()=>A.BatchCheckLayerAvailabilityRequest$,()=>A.BatchCheckLayerAvailabilityResponse$];A.BatchDeleteImage$=[9,T,tBt,0,()=>A.BatchDeleteImageRequest$,()=>A.BatchDeleteImageResponse$];A.BatchGetImage$=[9,T,sBt,0,()=>A.BatchGetImageRequest$,()=>A.BatchGetImageResponse$];A.BatchGetRepositoryScanningConfiguration$=[9,T,aBt,0,()=>A.BatchGetRepositoryScanningConfigurationRequest$,()=>A.BatchGetRepositoryScanningConfigurationResponse$];A.CompleteLayerUpload$=[9,T,uBt,0,()=>A.CompleteLayerUploadRequest$,()=>A.CompleteLayerUploadResponse$];A.CreatePullThroughCacheRule$=[9,T,mBt,0,()=>A.CreatePullThroughCacheRuleRequest$,()=>A.CreatePullThroughCacheRuleResponse$];A.CreateRepository$=[9,T,hBt,0,()=>A.CreateRepositoryRequest$,()=>A.CreateRepositoryResponse$];A.CreateRepositoryCreationTemplate$=[9,T,gBt,0,()=>A.CreateRepositoryCreationTemplateRequest$,()=>A.CreateRepositoryCreationTemplateResponse$];A.DeleteLifecyclePolicy$=[9,T,UBt,0,()=>A.DeleteLifecyclePolicyRequest$,()=>A.DeleteLifecyclePolicyResponse$];A.DeletePullThroughCacheRule$=[9,T,GBt,0,()=>A.DeletePullThroughCacheRuleRequest$,()=>A.DeletePullThroughCacheRuleResponse$];A.DeleteRegistryPolicy$=[9,T,oRt,0,()=>A.DeleteRegistryPolicyRequest$,()=>A.DeleteRegistryPolicyResponse$];A.DeleteRepository$=[9,T,XBt,0,()=>A.DeleteRepositoryRequest$,()=>A.DeleteRepositoryResponse$];A.DeleteRepositoryCreationTemplate$=[9,T,ZBt,0,()=>A.DeleteRepositoryCreationTemplateRequest$,()=>A.DeleteRepositoryCreationTemplateResponse$];A.DeleteRepositoryPolicy$=[9,T,uRt,0,()=>A.DeleteRepositoryPolicyRequest$,()=>A.DeleteRepositoryPolicyResponse$];A.DeleteSigningConfiguration$=[9,T,ERt,0,()=>A.DeleteSigningConfigurationRequest$,()=>A.DeleteSigningConfigurationResponse$];A.DeregisterPullTimeUpdateExclusion$=[9,T,jBt,0,()=>A.DeregisterPullTimeUpdateExclusionRequest$,()=>A.DeregisterPullTimeUpdateExclusionResponse$];A.DescribeImageReplicationStatus$=[9,T,PBt,0,()=>A.DescribeImageReplicationStatusRequest$,()=>A.DescribeImageReplicationStatusResponse$];A.DescribeImages$=[9,T,RBt,0,()=>A.DescribeImagesRequest$,()=>A.DescribeImagesResponse$];A.DescribeImageScanFindings$=[9,T,DBt,0,()=>A.DescribeImageScanFindingsRequest$,()=>A.DescribeImageScanFindingsResponse$];A.DescribeImageSigningStatus$=[9,T,OBt,0,()=>A.DescribeImageSigningStatusRequest$,()=>A.DescribeImageSigningStatusResponse$];A.DescribePullThroughCacheRules$=[9,T,WBt,0,()=>A.DescribePullThroughCacheRulesRequest$,()=>A.DescribePullThroughCacheRulesResponse$];A.DescribeRegistry$=[9,T,gRt,0,()=>A.DescribeRegistryRequest$,()=>A.DescribeRegistryResponse$];A.DescribeRepositories$=[9,T,yRt,0,()=>A.DescribeRepositoriesRequest$,()=>A.DescribeRepositoriesResponse$];A.DescribeRepositoryCreationTemplates$=[9,T,sRt,0,()=>A.DescribeRepositoryCreationTemplatesRequest$,()=>A.DescribeRepositoryCreationTemplatesResponse$];A.GetAccountSetting$=[9,T,TRt,0,()=>A.GetAccountSettingRequest$,()=>A.GetAccountSettingResponse$];A.GetAuthorizationToken$=[9,T,_Rt,0,()=>A.GetAuthorizationTokenRequest$,()=>A.GetAuthorizationTokenResponse$];A.GetDownloadUrlForLayer$=[9,T,kRt,0,()=>A.GetDownloadUrlForLayerRequest$,()=>A.GetDownloadUrlForLayerResponse$];A.GetLifecyclePolicy$=[9,T,MRt,0,()=>A.GetLifecyclePolicyRequest$,()=>A.GetLifecyclePolicyResponse$];A.GetLifecyclePolicyPreview$=[9,T,FRt,0,()=>A.GetLifecyclePolicyPreviewRequest$,()=>A.GetLifecyclePolicyPreviewResponse$];A.GetRegistryPolicy$=[9,T,HRt,0,()=>A.GetRegistryPolicyRequest$,()=>A.GetRegistryPolicyResponse$];A.GetRegistryScanningConfiguration$=[9,T,JRt,0,()=>A.GetRegistryScanningConfigurationRequest$,()=>A.GetRegistryScanningConfigurationResponse$];A.GetRepositoryPolicy$=[9,T,jRt,0,()=>A.GetRepositoryPolicyRequest$,()=>A.GetRepositoryPolicyResponse$];A.GetSigningConfiguration$=[9,T,ZRt,0,()=>A.GetSigningConfigurationRequest$,()=>A.GetSigningConfigurationResponse$];A.InitiateLayerUpload$=[9,T,ANt,0,()=>A.InitiateLayerUploadRequest$,()=>A.InitiateLayerUploadResponse$];A.ListImageReferrers$=[9,T,XNt,0,()=>A.ListImageReferrersRequest$,()=>A.ListImageReferrersResponse$];A.ListImages$=[9,T,HNt,0,()=>A.ListImagesRequest$,()=>A.ListImagesResponse$];A.ListPullTimeUpdateExclusions$=[9,T,uTt,0,()=>A.ListPullTimeUpdateExclusionsRequest$,()=>A.ListPullTimeUpdateExclusionsResponse$];A.ListTagsForResource$=[9,T,mTt,0,()=>A.ListTagsForResourceRequest$,()=>A.ListTagsForResourceResponse$];A.PutAccountSetting$=[9,T,hTt,0,()=>A.PutAccountSettingRequest$,()=>A.PutAccountSettingResponse$];A.PutImage$=[9,T,ETt,0,()=>A.PutImageRequest$,()=>A.PutImageResponse$];A.PutImageScanningConfiguration$=[9,T,xTt,0,()=>A.PutImageScanningConfigurationRequest$,()=>A.PutImageScanningConfigurationResponse$];A.PutImageTagMutability$=[9,T,STt,0,()=>A.PutImageTagMutabilityRequest$,()=>A.PutImageTagMutabilityResponse$];A.PutLifecyclePolicy$=[9,T,NTt,0,()=>A.PutLifecyclePolicyRequest$,()=>A.PutLifecyclePolicyResponse$];A.PutRegistryPolicy$=[9,T,DTt,0,()=>A.PutRegistryPolicyRequest$,()=>A.PutRegistryPolicyResponse$];A.PutRegistryScanningConfiguration$=[9,T,OTt,0,()=>A.PutRegistryScanningConfigurationRequest$,()=>A.PutRegistryScanningConfigurationResponse$];A.PutReplicationConfiguration$=[9,T,vTt,0,()=>A.PutReplicationConfigurationRequest$,()=>A.PutReplicationConfigurationResponse$];A.PutSigningConfiguration$=[9,T,UTt,0,()=>A.PutSigningConfigurationRequest$,()=>A.PutSigningConfigurationResponse$];A.RegisterPullTimeUpdateExclusion$=[9,T,dPt,0,()=>A.RegisterPullTimeUpdateExclusionRequest$,()=>A.RegisterPullTimeUpdateExclusionResponse$];A.SetRepositoryPolicy$=[9,T,zPt,0,()=>A.SetRepositoryPolicyRequest$,()=>A.SetRepositoryPolicyResponse$];A.StartImageScan$=[9,T,vPt,0,()=>A.StartImageScanRequest$,()=>A.StartImageScanResponse$];A.StartLifecyclePolicyPreview$=[9,T,DPt,0,()=>A.StartLifecyclePolicyPreviewRequest$,()=>A.StartLifecyclePolicyPreviewResponse$];A.TagResource$=[9,T,tvt,0,()=>A.TagResourceRequest$,()=>A.TagResourceResponse$];A.UntagResource$=[9,T,Avt,0,()=>A.UntagResourceRequest$,()=>A.UntagResourceResponse$];A.UpdateImageStorageClass$=[9,T,svt,0,()=>A.UpdateImageStorageClassRequest$,()=>A.UpdateImageStorageClassResponse$];A.UpdatePullThroughCacheRule$=[9,T,pvt,0,()=>A.UpdatePullThroughCacheRuleRequest$,()=>A.UpdatePullThroughCacheRuleResponse$];A.UpdateRepositoryCreationTemplate$=[9,T,hvt,0,()=>A.UpdateRepositoryCreationTemplateRequest$,()=>A.UpdateRepositoryCreationTemplateResponse$];A.UploadLayerPart$=[9,T,cvt,0,()=>A.UploadLayerPartRequest$,()=>A.UploadLayerPartResponse$];A.ValidatePullThroughCacheRule$=[9,T,vvt,0,()=>A.ValidatePullThroughCacheRuleRequest$,()=>A.ValidatePullThroughCacheRuleResponse$]});var $Le=b(Ak=>{"use strict";Object.defineProperty(Ak,"__esModule",{value:!0});Ak.getRuntimeConfig=void 0;var pDt=(en(),W(up)),mDt=(kf(),W(TJ)),fDt=(Ce(),W(qi)),ADt=(De(),W(rl)),fk=(st(),W(Zd)),hDt=Pj(),gDt=cLe(),yDt=Z6(),EDt=i(t=>({apiVersion:"2015-09-21",base64Decoder:t?.base64Decoder??fk.fromBase64,base64Encoder:t?.base64Encoder??fk.toBase64,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??gDt.defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??hDt.defaultECRHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pDt.AwsSdkSigV4Signer}],logger:t?.logger??new fDt.NoOpLogger,protocol:t?.protocol??mDt.AwsJson1_1Protocol,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:yDt.errorTypeRegistries,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:t?.serviceId??"ECR",urlParser:t?.urlParser??ADt.parseUrl,utf8Decoder:t?.utf8Decoder??fk.fromUtf8,utf8Encoder:t?.utf8Encoder??fk.toUtf8}),"getRuntimeConfig");Ak.getRuntimeConfig=EDt});var VLe=b(hk=>{"use strict";Object.defineProperty(hk,"__esModule",{value:!0});hk.getRuntimeConfig=void 0;var CDt=(sy(),W(ny)),IDt=CDt.__importDefault(vPe()),e9=(bt(),W(ks)),xDt=(en(),W(up)),wDt=M5(),GLe=(Ce(),W(qi)),ji=(Tt(),W(Ln)),t9=(Qs(),W(Zx)),HLe=(st(),W(Zd)),zLe=_u(),bDt=$Le(),SDt=i(t=>{(0,GLe.emitWarningIfUnsupportedVersion)(process.version);let e=(0,ji.resolveDefaultsModeConfig)(t),r=i(()=>e().then(GLe.loadConfigsForDefaultMode),"defaultConfigProvider"),n=(0,bDt.getRuntimeConfig)(t);(0,e9.emitWarningIfUnsupportedVersion)(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??(0,ji.loadConfig)(xDt.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:t?.bodyLengthChecker??HLe.calculateBodyLength,credentialDefaultProvider:t?.credentialDefaultProvider??wDt.defaultProvider,defaultUserAgentProvider:t?.defaultUserAgentProvider??(0,e9.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:IDt.default.version}),maxAttempts:t?.maxAttempts??(0,ji.loadConfig)(t9.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,t),region:t?.region??(0,ji.loadConfig)(ji.NODE_REGION_CONFIG_OPTIONS,{...ji.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:zLe.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??(0,ji.loadConfig)({...t9.NODE_RETRY_MODE_CONFIG_OPTIONS,default:i(async()=>(await r()).retryMode||t9.DEFAULT_RETRY_MODE,"default")},t),sha256:t?.sha256??HLe.Hash.bind(null,"sha256"),streamCollector:t?.streamCollector??zLe.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??(0,ji.loadConfig)(ji.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:t?.useFipsEndpoint??(0,ji.loadConfig)(ji.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:t?.userAgentAppId??(0,ji.loadConfig)(e9.NODE_APP_ID_CONFIG_OPTIONS,s)}},"getRuntimeConfig");hk.getRuntimeConfig=SDt});var iOe=b($=>{"use strict";var Np=(bt(),W(ks)),Sl=(Ds(),W(U8)),X=(Ce(),W(qi)),BDt=(Tt(),W(Ln)),Ie=(wt(),W(ff)),r9=(De(),W(rl)),YLe=(Qs(),W(Zx)),RDt=(Ct(),W(Vx)),WLe=Pj(),NDt=VLe(),ge=Z6(),gk=L6(),TDt=tk(),PDt=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr"}),"resolveClientEndpointParameters"),xe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},vDt=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),_Dt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),QDt=i((t,e)=>{let r=Object.assign(Np.getAwsRegionExtensionConfiguration(t),X.getDefaultExtensionConfiguration(t),r9.getHttpHandlerExtensionConfiguration(t),vDt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Np.resolveAwsRegionExtensionConfiguration(r),X.resolveDefaultRuntimeConfig(r),r9.resolveHttpHandlerRuntimeConfig(r),_Dt(r))},"resolveRuntimeExtensions"),Ua=class extends X.Client{static{i(this,"ECRClient")}config;constructor(...[e]){let r=NDt.getRuntimeConfig(e||{});super(r),this.initConfig=r;let n=PDt(r),s=Np.resolveUserAgentConfig(n),o=YLe.resolveRetryConfig(s),a=BDt.resolveRegionConfig(o),c=Np.resolveHostHeaderConfig(a),l=Ie.resolveEndpointConfig(c),u=WLe.resolveHttpAuthSchemeConfig(l),d=QDt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(RDt.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Np.getUserAgentPlugin(this.config)),this.middlewareStack.use(YLe.getRetryPlugin(this.config)),this.middlewareStack.use(r9.getContentLengthPlugin(this.config)),this.middlewareStack.use(Np.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Np.getLoggerPlugin(this.config)),this.middlewareStack.use(Np.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(Sl.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:WLe.defaultECRHttpAuthSchemeParametersProvider,identityProviderConfigProvider:i(async p=>new Sl.DefaultIdentityProviderConfig({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Sl.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},yk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","BatchCheckLayerAvailability",{}).n("ECRClient","BatchCheckLayerAvailabilityCommand").sc(ge.BatchCheckLayerAvailability$).build(){static{i(this,"BatchCheckLayerAvailabilityCommand")}},Ek=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","BatchDeleteImage",{}).n("ECRClient","BatchDeleteImageCommand").sc(ge.BatchDeleteImage$).build(){static{i(this,"BatchDeleteImageCommand")}},Ck=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","BatchGetImage",{}).n("ECRClient","BatchGetImageCommand").sc(ge.BatchGetImage$).build(){static{i(this,"BatchGetImageCommand")}},Ik=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","BatchGetRepositoryScanningConfiguration",{}).n("ECRClient","BatchGetRepositoryScanningConfigurationCommand").sc(ge.BatchGetRepositoryScanningConfiguration$).build(){static{i(this,"BatchGetRepositoryScanningConfigurationCommand")}},xk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","CompleteLayerUpload",{}).n("ECRClient","CompleteLayerUploadCommand").sc(ge.CompleteLayerUpload$).build(){static{i(this,"CompleteLayerUploadCommand")}},wk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","CreatePullThroughCacheRule",{}).n("ECRClient","CreatePullThroughCacheRuleCommand").sc(ge.CreatePullThroughCacheRule$).build(){static{i(this,"CreatePullThroughCacheRuleCommand")}},bk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","CreateRepository",{}).n("ECRClient","CreateRepositoryCommand").sc(ge.CreateRepository$).build(){static{i(this,"CreateRepositoryCommand")}},Sk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","CreateRepositoryCreationTemplate",{}).n("ECRClient","CreateRepositoryCreationTemplateCommand").sc(ge.CreateRepositoryCreationTemplate$).build(){static{i(this,"CreateRepositoryCreationTemplateCommand")}},Bk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteLifecyclePolicy",{}).n("ECRClient","DeleteLifecyclePolicyCommand").sc(ge.DeleteLifecyclePolicy$).build(){static{i(this,"DeleteLifecyclePolicyCommand")}},Rk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeletePullThroughCacheRule",{}).n("ECRClient","DeletePullThroughCacheRuleCommand").sc(ge.DeletePullThroughCacheRule$).build(){static{i(this,"DeletePullThroughCacheRuleCommand")}},Nk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteRegistryPolicy",{}).n("ECRClient","DeleteRegistryPolicyCommand").sc(ge.DeleteRegistryPolicy$).build(){static{i(this,"DeleteRegistryPolicyCommand")}},Tk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepository",{}).n("ECRClient","DeleteRepositoryCommand").sc(ge.DeleteRepository$).build(){static{i(this,"DeleteRepositoryCommand")}},Pk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryCreationTemplate",{}).n("ECRClient","DeleteRepositoryCreationTemplateCommand").sc(ge.DeleteRepositoryCreationTemplate$).build(){static{i(this,"DeleteRepositoryCreationTemplateCommand")}},vk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryPolicy",{}).n("ECRClient","DeleteRepositoryPolicyCommand").sc(ge.DeleteRepositoryPolicy$).build(){static{i(this,"DeleteRepositoryPolicyCommand")}},_k=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeleteSigningConfiguration",{}).n("ECRClient","DeleteSigningConfigurationCommand").sc(ge.DeleteSigningConfiguration$).build(){static{i(this,"DeleteSigningConfigurationCommand")}},Qk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DeregisterPullTimeUpdateExclusion",{}).n("ECRClient","DeregisterPullTimeUpdateExclusionCommand").sc(ge.DeregisterPullTimeUpdateExclusion$).build(){static{i(this,"DeregisterPullTimeUpdateExclusionCommand")}},Dk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageReplicationStatus",{}).n("ECRClient","DescribeImageReplicationStatusCommand").sc(ge.DescribeImageReplicationStatus$).build(){static{i(this,"DescribeImageReplicationStatusCommand")}},Gy=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageScanFindings",{}).n("ECRClient","DescribeImageScanFindingsCommand").sc(ge.DescribeImageScanFindings$).build(){static{i(this,"DescribeImageScanFindingsCommand")}},g0=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeImages",{}).n("ECRClient","DescribeImagesCommand").sc(ge.DescribeImages$).build(){static{i(this,"DescribeImagesCommand")}},kk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageSigningStatus",{}).n("ECRClient","DescribeImageSigningStatusCommand").sc(ge.DescribeImageSigningStatus$).build(){static{i(this,"DescribeImageSigningStatusCommand")}},y0=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribePullThroughCacheRules",{}).n("ECRClient","DescribePullThroughCacheRulesCommand").sc(ge.DescribePullThroughCacheRules$).build(){static{i(this,"DescribePullThroughCacheRulesCommand")}},Lk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeRegistry",{}).n("ECRClient","DescribeRegistryCommand").sc(ge.DescribeRegistry$).build(){static{i(this,"DescribeRegistryCommand")}},E0=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositories",{}).n("ECRClient","DescribeRepositoriesCommand").sc(ge.DescribeRepositories$).build(){static{i(this,"DescribeRepositoriesCommand")}},C0=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositoryCreationTemplates",{}).n("ECRClient","DescribeRepositoryCreationTemplatesCommand").sc(ge.DescribeRepositoryCreationTemplates$).build(){static{i(this,"DescribeRepositoryCreationTemplatesCommand")}},Ok=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetAccountSetting",{}).n("ECRClient","GetAccountSettingCommand").sc(ge.GetAccountSetting$).build(){static{i(this,"GetAccountSettingCommand")}},Mk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetAuthorizationToken",{}).n("ECRClient","GetAuthorizationTokenCommand").sc(ge.GetAuthorizationToken$).build(){static{i(this,"GetAuthorizationTokenCommand")}},Fk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetDownloadUrlForLayer",{}).n("ECRClient","GetDownloadUrlForLayerCommand").sc(ge.GetDownloadUrlForLayer$).build(){static{i(this,"GetDownloadUrlForLayerCommand")}},Uk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicy",{}).n("ECRClient","GetLifecyclePolicyCommand").sc(ge.GetLifecyclePolicy$).build(){static{i(this,"GetLifecyclePolicyCommand")}},Hy=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicyPreview",{}).n("ECRClient","GetLifecyclePolicyPreviewCommand").sc(ge.GetLifecyclePolicyPreview$).build(){static{i(this,"GetLifecyclePolicyPreviewCommand")}},qk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryPolicy",{}).n("ECRClient","GetRegistryPolicyCommand").sc(ge.GetRegistryPolicy$).build(){static{i(this,"GetRegistryPolicyCommand")}},$k=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryScanningConfiguration",{}).n("ECRClient","GetRegistryScanningConfigurationCommand").sc(ge.GetRegistryScanningConfiguration$).build(){static{i(this,"GetRegistryScanningConfigurationCommand")}},Gk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetRepositoryPolicy",{}).n("ECRClient","GetRepositoryPolicyCommand").sc(ge.GetRepositoryPolicy$).build(){static{i(this,"GetRepositoryPolicyCommand")}},Hk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","GetSigningConfiguration",{}).n("ECRClient","GetSigningConfigurationCommand").sc(ge.GetSigningConfiguration$).build(){static{i(this,"GetSigningConfigurationCommand")}},zk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","InitiateLayerUpload",{}).n("ECRClient","InitiateLayerUploadCommand").sc(ge.InitiateLayerUpload$).build(){static{i(this,"InitiateLayerUploadCommand")}},Vk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","ListImageReferrers",{}).n("ECRClient","ListImageReferrersCommand").sc(ge.ListImageReferrers$).build(){static{i(this,"ListImageReferrersCommand")}},I0=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","ListImages",{}).n("ECRClient","ListImagesCommand").sc(ge.ListImages$).build(){static{i(this,"ListImagesCommand")}},Yk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","ListPullTimeUpdateExclusions",{}).n("ECRClient","ListPullTimeUpdateExclusionsCommand").sc(ge.ListPullTimeUpdateExclusions$).build(){static{i(this,"ListPullTimeUpdateExclusionsCommand")}},Wk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","ListTagsForResource",{}).n("ECRClient","ListTagsForResourceCommand").sc(ge.ListTagsForResource$).build(){static{i(this,"ListTagsForResourceCommand")}},jk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutAccountSetting",{}).n("ECRClient","PutAccountSettingCommand").sc(ge.PutAccountSetting$).build(){static{i(this,"PutAccountSettingCommand")}},Jk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutImage",{}).n("ECRClient","PutImageCommand").sc(ge.PutImage$).build(){static{i(this,"PutImageCommand")}},Kk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutImageScanningConfiguration",{}).n("ECRClient","PutImageScanningConfigurationCommand").sc(ge.PutImageScanningConfiguration$).build(){static{i(this,"PutImageScanningConfigurationCommand")}},Xk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutImageTagMutability",{}).n("ECRClient","PutImageTagMutabilityCommand").sc(ge.PutImageTagMutability$).build(){static{i(this,"PutImageTagMutabilityCommand")}},Zk=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutLifecyclePolicy",{}).n("ECRClient","PutLifecyclePolicyCommand").sc(ge.PutLifecyclePolicy$).build(){static{i(this,"PutLifecyclePolicyCommand")}},eL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryPolicy",{}).n("ECRClient","PutRegistryPolicyCommand").sc(ge.PutRegistryPolicy$).build(){static{i(this,"PutRegistryPolicyCommand")}},tL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryScanningConfiguration",{}).n("ECRClient","PutRegistryScanningConfigurationCommand").sc(ge.PutRegistryScanningConfiguration$).build(){static{i(this,"PutRegistryScanningConfigurationCommand")}},rL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutReplicationConfiguration",{}).n("ECRClient","PutReplicationConfigurationCommand").sc(ge.PutReplicationConfiguration$).build(){static{i(this,"PutReplicationConfigurationCommand")}},nL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","PutSigningConfiguration",{}).n("ECRClient","PutSigningConfigurationCommand").sc(ge.PutSigningConfiguration$).build(){static{i(this,"PutSigningConfigurationCommand")}},sL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","RegisterPullTimeUpdateExclusion",{}).n("ECRClient","RegisterPullTimeUpdateExclusionCommand").sc(ge.RegisterPullTimeUpdateExclusion$).build(){static{i(this,"RegisterPullTimeUpdateExclusionCommand")}},oL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","SetRepositoryPolicy",{}).n("ECRClient","SetRepositoryPolicyCommand").sc(ge.SetRepositoryPolicy$).build(){static{i(this,"SetRepositoryPolicyCommand")}},iL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","StartImageScan",{}).n("ECRClient","StartImageScanCommand").sc(ge.StartImageScan$).build(){static{i(this,"StartImageScanCommand")}},aL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","StartLifecyclePolicyPreview",{}).n("ECRClient","StartLifecyclePolicyPreviewCommand").sc(ge.StartLifecyclePolicyPreview$).build(){static{i(this,"StartLifecyclePolicyPreviewCommand")}},cL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","TagResource",{}).n("ECRClient","TagResourceCommand").sc(ge.TagResource$).build(){static{i(this,"TagResourceCommand")}},lL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","UntagResource",{}).n("ECRClient","UntagResourceCommand").sc(ge.UntagResource$).build(){static{i(this,"UntagResourceCommand")}},uL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","UpdateImageStorageClass",{}).n("ECRClient","UpdateImageStorageClassCommand").sc(ge.UpdateImageStorageClass$).build(){static{i(this,"UpdateImageStorageClassCommand")}},dL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","UpdatePullThroughCacheRule",{}).n("ECRClient","UpdatePullThroughCacheRuleCommand").sc(ge.UpdatePullThroughCacheRule$).build(){static{i(this,"UpdatePullThroughCacheRuleCommand")}},pL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","UpdateRepositoryCreationTemplate",{}).n("ECRClient","UpdateRepositoryCreationTemplateCommand").sc(ge.UpdateRepositoryCreationTemplate$).build(){static{i(this,"UpdateRepositoryCreationTemplateCommand")}},mL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","UploadLayerPart",{}).n("ECRClient","UploadLayerPartCommand").sc(ge.UploadLayerPart$).build(){static{i(this,"UploadLayerPartCommand")}},fL=class extends X.Command.classBuilder().ep(xe).m(function(e,r,n,s){return[Ie.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("AmazonEC2ContainerRegistry_V20150921","ValidatePullThroughCacheRule",{}).n("ECRClient","ValidatePullThroughCacheRuleCommand").sc(ge.ValidatePullThroughCacheRule$).build(){static{i(this,"ValidatePullThroughCacheRuleCommand")}},jLe=Sl.createPaginator(Ua,Gy,"nextToken","nextToken","maxResults"),JLe=Sl.createPaginator(Ua,g0,"nextToken","nextToken","maxResults"),KLe=Sl.createPaginator(Ua,y0,"nextToken","nextToken","maxResults"),XLe=Sl.createPaginator(Ua,E0,"nextToken","nextToken","maxResults"),ZLe=Sl.createPaginator(Ua,C0,"nextToken","nextToken","maxResults"),eOe=Sl.createPaginator(Ua,Hy,"nextToken","nextToken","maxResults"),tOe=Sl.createPaginator(Ua,I0,"nextToken","nextToken","maxResults"),rOe=i(async(t,e)=>{let r;try{let n=await t.send(new Gy(e));r=n;try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="COMPLETE")return{state:X.WaiterState.SUCCESS,reason:r}}catch{}try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="FAILED")return{state:X.WaiterState.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:X.WaiterState.RETRY,reason:r}},"checkState$1"),DDt=i(async(t,e)=>{let r={minDelay:5,maxDelay:120};return X.createWaiter({...r,...t},e,rOe)},"waitForImageScanComplete"),nOe=i(async(t,e)=>{let r={minDelay:5,maxDelay:120},n=await X.createWaiter({...r,...t},e,rOe);return X.checkExceptions(n)},"waitUntilImageScanComplete"),sOe=i(async(t,e)=>{let r;try{let n=await t.send(new Hy(e));r=n;try{if(i(()=>n.status,"returnComparator")()==="COMPLETE")return{state:X.WaiterState.SUCCESS,reason:r}}catch{}try{if(i(()=>n.status,"returnComparator")()==="FAILED")return{state:X.WaiterState.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:X.WaiterState.RETRY,reason:r}},"checkState"),kDt=i(async(t,e)=>{let r={minDelay:5,maxDelay:120};return X.createWaiter({...r,...t},e,sOe)},"waitForLifecyclePolicyPreviewComplete"),oOe=i(async(t,e)=>{let r={minDelay:5,maxDelay:120},n=await X.createWaiter({...r,...t},e,sOe);return X.checkExceptions(n)},"waitUntilLifecyclePolicyPreviewComplete"),LDt={BatchCheckLayerAvailabilityCommand:yk,BatchDeleteImageCommand:Ek,BatchGetImageCommand:Ck,BatchGetRepositoryScanningConfigurationCommand:Ik,CompleteLayerUploadCommand:xk,CreatePullThroughCacheRuleCommand:wk,CreateRepositoryCommand:bk,CreateRepositoryCreationTemplateCommand:Sk,DeleteLifecyclePolicyCommand:Bk,DeletePullThroughCacheRuleCommand:Rk,DeleteRegistryPolicyCommand:Nk,DeleteRepositoryCommand:Tk,DeleteRepositoryCreationTemplateCommand:Pk,DeleteRepositoryPolicyCommand:vk,DeleteSigningConfigurationCommand:_k,DeregisterPullTimeUpdateExclusionCommand:Qk,DescribeImageReplicationStatusCommand:Dk,DescribeImagesCommand:g0,DescribeImageScanFindingsCommand:Gy,DescribeImageSigningStatusCommand:kk,DescribePullThroughCacheRulesCommand:y0,DescribeRegistryCommand:Lk,DescribeRepositoriesCommand:E0,DescribeRepositoryCreationTemplatesCommand:C0,GetAccountSettingCommand:Ok,GetAuthorizationTokenCommand:Mk,GetDownloadUrlForLayerCommand:Fk,GetLifecyclePolicyCommand:Uk,GetLifecyclePolicyPreviewCommand:Hy,GetRegistryPolicyCommand:qk,GetRegistryScanningConfigurationCommand:$k,GetRepositoryPolicyCommand:Gk,GetSigningConfigurationCommand:Hk,InitiateLayerUploadCommand:zk,ListImageReferrersCommand:Vk,ListImagesCommand:I0,ListPullTimeUpdateExclusionsCommand:Yk,ListTagsForResourceCommand:Wk,PutAccountSettingCommand:jk,PutImageCommand:Jk,PutImageScanningConfigurationCommand:Kk,PutImageTagMutabilityCommand:Xk,PutLifecyclePolicyCommand:Zk,PutRegistryPolicyCommand:eL,PutRegistryScanningConfigurationCommand:tL,PutReplicationConfigurationCommand:rL,PutSigningConfigurationCommand:nL,RegisterPullTimeUpdateExclusionCommand:sL,SetRepositoryPolicyCommand:oL,StartImageScanCommand:iL,StartLifecyclePolicyPreviewCommand:aL,TagResourceCommand:cL,UntagResourceCommand:lL,UpdateImageStorageClassCommand:uL,UpdatePullThroughCacheRuleCommand:dL,UpdateRepositoryCreationTemplateCommand:pL,UploadLayerPartCommand:mL,ValidatePullThroughCacheRuleCommand:fL},ODt={paginateDescribeImages:JLe,paginateDescribeImageScanFindings:jLe,paginateDescribePullThroughCacheRules:KLe,paginateDescribeRepositories:XLe,paginateDescribeRepositoryCreationTemplates:ZLe,paginateGetLifecyclePolicyPreview:eOe,paginateListImages:tOe},MDt={waitUntilImageScanComplete:nOe,waitUntilLifecyclePolicyPreviewComplete:oOe},AL=class extends Ua{static{i(this,"ECR")}};X.createAggregatedClient(LDt,AL,{paginators:ODt,waiters:MDt});var FDt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},UDt={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},qDt={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"},$Dt={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"},GDt={WILDCARD:"WILDCARD"},HDt={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"},zDt={AzureContainerRegistry:"azure-container-registry",Chainguard:"chainguard",DockerHub:"docker-hub",Ecr:"ecr",EcrPublic:"ecr-public",GitHubContainerRegistry:"github-container-registry",GitLabContainerRegistry:"gitlab-container-registry",K8s:"k8s",Quay:"quay"},VDt={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"},YDt={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"},WDt={WILDCARD:"WILDCARD"},jDt={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"},JDt={WILDCARD_MATCH:"WILDCARD_MATCH"},KDt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},XDt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},ZDt={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"},ekt={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"},tkt={ACTIVE:"ACTIVE",COMPLETE:"COMPLETE",FAILED:"FAILED",FINDINGS_UNAVAILABLE:"FINDINGS_UNAVAILABLE",IMAGE_ARCHIVED:"IMAGE_ARCHIVED",IN_PROGRESS:"IN_PROGRESS",LIMIT_EXCEEDED:"LIMIT_EXCEEDED",PENDING:"PENDING",SCAN_ELIGIBILITY_EXPIRED:"SCAN_ELIGIBILITY_EXPIRED",UNSUPPORTED_IMAGE:"UNSUPPORTED_IMAGE"},rkt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},nkt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},skt={PREFIX_MATCH:"PREFIX_MATCH"},okt={ARCHIVE:"ARCHIVE"},ikt={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"},akt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"},ckt={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},lkt={BASIC:"BASIC",ENHANCED:"ENHANCED"},ukt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},dkt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},pkt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};$.$Command=X.Command;$.__Client=X.Client;$.ECRServiceException=TDt.ECRServiceException;$.ArtifactStatus=dkt;$.ArtifactStatusFilter=ukt;$.BatchCheckLayerAvailabilityCommand=yk;$.BatchDeleteImageCommand=Ek;$.BatchGetImageCommand=Ck;$.BatchGetRepositoryScanningConfigurationCommand=Ik;$.CompleteLayerUploadCommand=xk;$.CreatePullThroughCacheRuleCommand=wk;$.CreateRepositoryCommand=bk;$.CreateRepositoryCreationTemplateCommand=Sk;$.DeleteLifecyclePolicyCommand=Bk;$.DeletePullThroughCacheRuleCommand=Rk;$.DeleteRegistryPolicyCommand=Nk;$.DeleteRepositoryCommand=Tk;$.DeleteRepositoryCreationTemplateCommand=Pk;$.DeleteRepositoryPolicyCommand=vk;$.DeleteSigningConfigurationCommand=_k;$.DeregisterPullTimeUpdateExclusionCommand=Qk;$.DescribeImageReplicationStatusCommand=Dk;$.DescribeImageScanFindingsCommand=Gy;$.DescribeImageSigningStatusCommand=kk;$.DescribeImagesCommand=g0;$.DescribePullThroughCacheRulesCommand=y0;$.DescribeRegistryCommand=Lk;$.DescribeRepositoriesCommand=E0;$.DescribeRepositoryCreationTemplatesCommand=C0;$.ECR=AL;$.ECRClient=Ua;$.EncryptionType=VDt;$.FindingSeverity=ekt;$.GetAccountSettingCommand=Ok;$.GetAuthorizationTokenCommand=Mk;$.GetDownloadUrlForLayerCommand=Fk;$.GetLifecyclePolicyCommand=Uk;$.GetLifecyclePolicyPreviewCommand=Hy;$.GetRegistryPolicyCommand=qk;$.GetRegistryScanningConfigurationCommand=$k;$.GetRepositoryPolicyCommand=Gk;$.GetSigningConfigurationCommand=Hk;$.ImageActionType=ikt;$.ImageFailureCode=qDt;$.ImageStatus=rkt;$.ImageStatusFilter=XDt;$.ImageTagMutability=YDt;$.ImageTagMutabilityExclusionFilterType=WDt;$.InitiateLayerUploadCommand=zk;$.LayerAvailability=UDt;$.LayerFailureCode=FDt;$.LifecyclePolicyPreviewStatus=ckt;$.LifecyclePolicyStorageClass=akt;$.LifecyclePolicyTargetStorageClass=okt;$.ListImageReferrersCommand=Vk;$.ListImagesCommand=I0;$.ListPullTimeUpdateExclusionsCommand=Yk;$.ListTagsForResourceCommand=Wk;$.PutAccountSettingCommand=jk;$.PutImageCommand=Jk;$.PutImageScanningConfigurationCommand=Kk;$.PutImageTagMutabilityCommand=Xk;$.PutLifecyclePolicyCommand=Zk;$.PutRegistryPolicyCommand=eL;$.PutRegistryScanningConfigurationCommand=tL;$.PutReplicationConfigurationCommand=rL;$.PutSigningConfigurationCommand=nL;$.RCTAppliedFor=jDt;$.RegisterPullTimeUpdateExclusionCommand=sL;$.ReplicationStatus=KDt;$.RepositoryFilterType=skt;$.ScanFrequency=HDt;$.ScanStatus=tkt;$.ScanType=lkt;$.ScanningConfigurationFailureCode=$Dt;$.ScanningRepositoryFilterType=GDt;$.SetRepositoryPolicyCommand=oL;$.SigningRepositoryFilterType=JDt;$.SigningStatus=nkt;$.StartImageScanCommand=iL;$.StartLifecyclePolicyPreviewCommand=aL;$.TagResourceCommand=cL;$.TagStatus=ZDt;$.TargetStorageClass=pkt;$.UntagResourceCommand=lL;$.UpdateImageStorageClassCommand=uL;$.UpdatePullThroughCacheRuleCommand=dL;$.UpdateRepositoryCreationTemplateCommand=pL;$.UploadLayerPartCommand=mL;$.UpstreamRegistry=zDt;$.ValidatePullThroughCacheRuleCommand=fL;$.paginateDescribeImageScanFindings=jLe;$.paginateDescribeImages=JLe;$.paginateDescribePullThroughCacheRules=KLe;$.paginateDescribeRepositories=XLe;$.paginateDescribeRepositoryCreationTemplates=ZLe;$.paginateGetLifecyclePolicyPreview=eOe;$.paginateListImages=tOe;$.waitForImageScanComplete=DDt;$.waitForLifecyclePolicyPreviewComplete=kDt;$.waitUntilImageScanComplete=nOe;$.waitUntilLifecyclePolicyPreviewComplete=oOe;Object.prototype.hasOwnProperty.call(ge,"__proto__")&&!Object.prototype.hasOwnProperty.call($,"__proto__")&&Object.defineProperty($,"__proto__",{enumerable:!0,value:ge.__proto__});Object.keys(ge).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call($,t)&&($[t]=ge[t])});Object.prototype.hasOwnProperty.call(gk,"__proto__")&&!Object.prototype.hasOwnProperty.call($,"__proto__")&&Object.defineProperty($,"__proto__",{enumerable:!0,value:gk.__proto__});Object.keys(gk).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call($,t)&&($[t]=gk[t])})});var s9=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.resolveHttpAuthSchemeConfig=Tp.defaultECRPUBLICHttpAuthSchemeProvider=Tp.defaultECRPUBLICHttpAuthSchemeParametersProvider=void 0;var mkt=(en(),W(up)),n9=(Ce(),W(qi)),fkt=i(async(t,e,r)=>({operation:(0,n9.getSmithyContext)(e).operation,region:await(0,n9.normalizeProvider)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRPUBLICHttpAuthSchemeParametersProvider");Tp.defaultECRPUBLICHttpAuthSchemeParametersProvider=fkt;function Akt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(Akt,"createAwsAuthSigv4HttpAuthOption");var hkt=i(t=>{let e=[];switch(t.operation){default:e.push(Akt(t))}return e},"defaultECRPUBLICHttpAuthSchemeProvider");Tp.defaultECRPUBLICHttpAuthSchemeProvider=hkt;var gkt=i(t=>{let e=(0,mkt.resolveAwsSdkSigV4Config)(t);return Object.assign(e,{authSchemePreference:(0,n9.normalizeProvider)(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig");Tp.resolveHttpAuthSchemeConfig=gkt});var aOe=b((O3r,ykt)=>{ykt.exports={name:"@aws-sdk/client-ecr-public",description:"AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native",version:"3.1052.0",scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-ecr-public","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecr-public","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.13","@aws-sdk/credential-provider-node":"^3.972.44","@aws-sdk/types":"^3.973.9","@smithy/core":"^3.24.3","@smithy/fetch-http-handler":"^5.4.3","@smithy/node-http-handler":"^4.7.3","@smithy/types":"^4.14.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},engines:{node:">=20.0.0"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr-public",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-ecr-public"}}});var mOe=b(yL=>{"use strict";Object.defineProperty(yL,"__esModule",{value:!0});yL.bdd=void 0;var Ekt=(wt(),W(ff)),x0="ref",tA=-1,hL=!0,cOe="isSet",pOe="PartitionResult",gL="booleanEquals",o9="getAttr",lOe={[x0]:"Endpoint"},i9={[x0]:pOe},zy={},uOe=[{[x0]:"Region"}],dOe={conditions:[[cOe,[lOe]],[cOe,uOe],["aws.partition",uOe,pOe],[gL,[{[x0]:"UseFIPS"},hL]],[gL,[{[x0]:"UseDualStack"},hL]],[gL,[{fn:o9,argv:[i9,"supportsDualStack"]},hL]],[gL,[{fn:o9,argv:[i9,"supportsFIPS"]},hL]],["stringEquals",[{fn:o9,argv:[i9,"name"]},"aws"]]],results:[[tA],[tA,"Invalid Configuration: FIPS and custom endpoint are not supported"],[tA,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[lOe,zy],["https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",zy],[tA,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",zy],[tA,"FIPS is enabled but this partition does not support FIPS"],["https://ecr-public.{Region}.api.aws",zy],["https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",zy],[tA,"DualStack is enabled but this partition does not support DualStack"],["https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",zy],[tA,"Invalid Configuration: Missing Region"]]},Ckt=2,ho=1e8,Ikt=new Int32Array([-1,1,-1,0,13,3,1,4,ho+12,2,5,ho+12,3,9,6,4,7,ho+11,5,8,ho+10,7,ho+8,ho+9,4,11,10,6,ho+6,ho+7,5,12,ho+5,6,ho+4,ho+5,3,ho+1,14,4,ho+2,ho+3]);yL.bdd=Ekt.BinaryDecisionDiagram.from(Ikt,Ckt,dOe.conditions,dOe.results)});var fOe=b(EL=>{"use strict";Object.defineProperty(EL,"__esModule",{value:!0});EL.defaultEndpointResolver=void 0;var xkt=(bt(),W(ks)),a9=(wt(),W(ff)),wkt=mOe(),bkt=new a9.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Skt=i((t,e={})=>bkt.get(t,()=>(0,a9.decideEndpoint)(wkt.bdd,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");EL.defaultEndpointResolver=Skt;a9.customEndpointFunctions.aws=xkt.awsEndpointFunctions});var CL=b(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});Vy.ECRPUBLICServiceException=Vy.__ServiceException=void 0;var AOe=(Ce(),W(qi));Object.defineProperty(Vy,"__ServiceException",{enumerable:!0,get:i(function(){return AOe.ServiceException},"get")});var c9=class t extends AOe.ServiceException{static{i(this,"ECRPUBLICServiceException")}constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Vy.ECRPUBLICServiceException=c9});var Q9=b(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ReferencedImagesNotFoundException=Fe.LayersNotFoundException=Fe.InvalidLayerPartException=Fe.ImageTagAlreadyExistsException=Fe.ImageDigestDoesNotMatchException=Fe.ImageAlreadyExistsException=Fe.RepositoryCatalogDataNotFoundException=Fe.ImageNotFoundException=Fe.RepositoryPolicyNotFoundException=Fe.RepositoryNotEmptyException=Fe.TooManyTagsException=Fe.RepositoryAlreadyExistsException=Fe.LimitExceededException=Fe.InvalidTagParameterException=Fe.UploadNotFoundException=Fe.LayerPartTooSmallException=Fe.LayerAlreadyExistsException=Fe.InvalidLayerException=Fe.EmptyUploadException=Fe.UnsupportedCommandException=Fe.ServerException=Fe.RepositoryNotFoundException=Fe.RegistryNotFoundException=Fe.InvalidParameterException=void 0;var cr=CL(),l9=class t extends cr.ECRPUBLICServiceException{static{i(this,"InvalidParameterException")}name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.InvalidParameterException=l9;var u9=class t extends cr.ECRPUBLICServiceException{static{i(this,"RegistryNotFoundException")}name="RegistryNotFoundException";$fault="client";constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.RegistryNotFoundException=u9;var d9=class t extends cr.ECRPUBLICServiceException{static{i(this,"RepositoryNotFoundException")}name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.RepositoryNotFoundException=d9;var p9=class t extends cr.ECRPUBLICServiceException{static{i(this,"ServerException")}name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.ServerException=p9;var m9=class t extends cr.ECRPUBLICServiceException{static{i(this,"UnsupportedCommandException")}name="UnsupportedCommandException";$fault="client";constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.UnsupportedCommandException=m9;var f9=class t extends cr.ECRPUBLICServiceException{static{i(this,"EmptyUploadException")}name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.EmptyUploadException=f9;var A9=class t extends cr.ECRPUBLICServiceException{static{i(this,"InvalidLayerException")}name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.InvalidLayerException=A9;var h9=class t extends cr.ECRPUBLICServiceException{static{i(this,"LayerAlreadyExistsException")}name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.LayerAlreadyExistsException=h9;var g9=class t extends cr.ECRPUBLICServiceException{static{i(this,"LayerPartTooSmallException")}name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.LayerPartTooSmallException=g9;var y9=class t extends cr.ECRPUBLICServiceException{static{i(this,"UploadNotFoundException")}name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.UploadNotFoundException=y9;var E9=class t extends cr.ECRPUBLICServiceException{static{i(this,"InvalidTagParameterException")}name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.InvalidTagParameterException=E9;var C9=class t extends cr.ECRPUBLICServiceException{static{i(this,"LimitExceededException")}name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.LimitExceededException=C9;var I9=class t extends cr.ECRPUBLICServiceException{static{i(this,"RepositoryAlreadyExistsException")}name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.RepositoryAlreadyExistsException=I9;var x9=class t extends cr.ECRPUBLICServiceException{static{i(this,"TooManyTagsException")}name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.TooManyTagsException=x9;var w9=class t extends cr.ECRPUBLICServiceException{static{i(this,"RepositoryNotEmptyException")}name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.RepositoryNotEmptyException=w9;var b9=class t extends cr.ECRPUBLICServiceException{static{i(this,"RepositoryPolicyNotFoundException")}name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.RepositoryPolicyNotFoundException=b9;var S9=class t extends cr.ECRPUBLICServiceException{static{i(this,"ImageNotFoundException")}name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.ImageNotFoundException=S9;var B9=class t extends cr.ECRPUBLICServiceException{static{i(this,"RepositoryCatalogDataNotFoundException")}name="RepositoryCatalogDataNotFoundException";$fault="client";constructor(e){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.RepositoryCatalogDataNotFoundException=B9;var R9=class t extends cr.ECRPUBLICServiceException{static{i(this,"ImageAlreadyExistsException")}name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.ImageAlreadyExistsException=R9;var N9=class t extends cr.ECRPUBLICServiceException{static{i(this,"ImageDigestDoesNotMatchException")}name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.ImageDigestDoesNotMatchException=N9;var T9=class t extends cr.ECRPUBLICServiceException{static{i(this,"ImageTagAlreadyExistsException")}name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.ImageTagAlreadyExistsException=T9;var P9=class t extends cr.ECRPUBLICServiceException{static{i(this,"InvalidLayerPartException")}name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.registryId=e.registryId,this.repositoryName=e.repositoryName,this.uploadId=e.uploadId,this.lastValidByteReceived=e.lastValidByteReceived}};Fe.InvalidLayerPartException=P9;var v9=class t extends cr.ECRPUBLICServiceException{static{i(this,"LayersNotFoundException")}name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.LayersNotFoundException=v9;var _9=class t extends cr.ECRPUBLICServiceException{static{i(this,"ReferencedImagesNotFoundException")}name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}};Fe.ReferencedImagesNotFoundException=_9});var q9=b(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.GetRegistryCatalogDataRequest$=R.GetAuthorizationTokenResponse$=R.GetAuthorizationTokenRequest$=R.DescribeRepositoriesResponse$=R.DescribeRepositoriesRequest$=R.DescribeRegistriesResponse$=R.DescribeRegistriesRequest$=R.DescribeImageTagsResponse$=R.DescribeImageTagsRequest$=R.DescribeImagesResponse$=R.DescribeImagesRequest$=R.DeleteRepositoryResponse$=R.DeleteRepositoryRequest$=R.DeleteRepositoryPolicyResponse$=R.DeleteRepositoryPolicyRequest$=R.CreateRepositoryResponse$=R.CreateRepositoryRequest$=R.CompleteLayerUploadResponse$=R.CompleteLayerUploadRequest$=R.BatchDeleteImageResponse$=R.BatchDeleteImageRequest$=R.BatchCheckLayerAvailabilityResponse$=R.BatchCheckLayerAvailabilityRequest$=R.AuthorizationData$=R.errorTypeRegistries=R.UploadNotFoundException$=R.UnsupportedCommandException$=R.TooManyTagsException$=R.ServerException$=R.RepositoryPolicyNotFoundException$=R.RepositoryNotFoundException$=R.RepositoryNotEmptyException$=R.RepositoryCatalogDataNotFoundException$=R.RepositoryAlreadyExistsException$=R.RegistryNotFoundException$=R.ReferencedImagesNotFoundException$=R.LimitExceededException$=R.LayersNotFoundException$=R.LayerPartTooSmallException$=R.LayerAlreadyExistsException$=R.InvalidTagParameterException$=R.InvalidParameterException$=R.InvalidLayerPartException$=R.InvalidLayerException$=R.ImageTagAlreadyExistsException$=R.ImageNotFoundException$=R.ImageDigestDoesNotMatchException$=R.ImageAlreadyExistsException$=R.EmptyUploadException$=R.ECRPUBLICServiceException$=void 0;R.GetRegistryCatalogData$=R.GetAuthorizationToken$=R.DescribeRepositories$=R.DescribeRegistries$=R.DescribeImageTags$=R.DescribeImages$=R.DeleteRepositoryPolicy$=R.DeleteRepository$=R.CreateRepository$=R.CompleteLayerUpload$=R.BatchDeleteImage$=R.BatchCheckLayerAvailability$=R.UploadLayerPartResponse$=R.UploadLayerPartRequest$=R.UntagResourceResponse$=R.UntagResourceRequest$=R.TagResourceResponse$=R.TagResourceRequest$=R.Tag$=R.SetRepositoryPolicyResponse$=R.SetRepositoryPolicyRequest$=R.RepositoryCatalogDataInput$=R.RepositoryCatalogData$=R.Repository$=R.RegistryCatalogData$=R.RegistryAlias$=R.Registry$=R.ReferencedImageDetail$=R.PutRepositoryCatalogDataResponse$=R.PutRepositoryCatalogDataRequest$=R.PutRegistryCatalogDataResponse$=R.PutRegistryCatalogDataRequest$=R.PutImageResponse$=R.PutImageRequest$=R.ListTagsForResourceResponse$=R.ListTagsForResourceRequest$=R.LayerFailure$=R.Layer$=R.InitiateLayerUploadResponse$=R.InitiateLayerUploadRequest$=R.ImageTagDetail$=R.ImageIdentifier$=R.ImageFailure$=R.ImageDetail$=R.Image$=R.GetRepositoryPolicyResponse$=R.GetRepositoryPolicyRequest$=R.GetRepositoryCatalogDataResponse$=R.GetRepositoryCatalogDataRequest$=R.GetRegistryCatalogDataResponse$=void 0;R.UploadLayerPart$=R.UntagResource$=R.TagResource$=R.SetRepositoryPolicy$=R.PutRepositoryCatalogData$=R.PutRegistryCatalogData$=R.PutImage$=R.ListTagsForResource$=R.InitiateLayerUpload$=R.GetRepositoryPolicy$=R.GetRepositoryCatalogData$=void 0;var Bkt="AuthorizationData",Rkt="BatchCheckLayerAvailability",Nkt="BatchCheckLayerAvailabilityRequest",Tkt="BatchCheckLayerAvailabilityResponse",Pkt="BatchDeleteImage",vkt="BatchDeleteImageRequest",_kt="BatchDeleteImageResponse",Qkt="CompleteLayerUpload",Dkt="CompleteLayerUploadRequest",kkt="CompleteLayerUploadResponse",Lkt="CreateRepository",Okt="CreateRepositoryRequest",Mkt="CreateRepositoryResponse",Fkt="DescribeImages",Ukt="DescribeImagesRequest",qkt="DescribeImagesResponse",$kt="DescribeImageTags",Gkt="DescribeImageTagsRequest",Hkt="DescribeImageTagsResponse",zkt="DeleteRepository",Vkt="DeleteRepositoryPolicy",Ykt="DeleteRepositoryPolicyRequest",Wkt="DeleteRepositoryPolicyResponse",jkt="DeleteRepositoryRequest",Jkt="DeleteRepositoryResponse",Kkt="DescribeRegistriesRequest",Xkt="DescribeRegistriesResponse",Zkt="DescribeRepositoriesRequest",eLt="DescribeRepositoriesResponse",tLt="DescribeRegistries",rLt="DescribeRepositories",nLt="EmptyUploadException",sLt="GetAuthorizationToken",oLt="GetAuthorizationTokenRequest",iLt="GetAuthorizationTokenResponse",aLt="GetRegistryCatalogData",cLt="GetRegistryCatalogDataRequest",lLt="GetRegistryCatalogDataResponse",uLt="GetRepositoryCatalogDataRequest",dLt="GetRepositoryCatalogDataResponse",pLt="GetRepositoryCatalogData",mLt="GetRepositoryPolicy",fLt="GetRepositoryPolicyRequest",ALt="GetRepositoryPolicyResponse",hLt="Image",gLt="ImageAlreadyExistsException",yLt="ImageDetail",ELt="ImageDigestDoesNotMatchException",CLt="ImageDetailList",ILt="ImageFailure",xLt="ImageFailureList",wLt="ImageIdentifier",bLt="ImageIdentifierList",SLt="InvalidLayerException",BLt="InvalidLayerPartException",RLt="InitiateLayerUpload",NLt="InitiateLayerUploadRequest",TLt="InitiateLayerUploadResponse",PLt="ImageNotFoundException",vLt="InvalidParameterException",_Lt="ImageTagAlreadyExistsException",QLt="ImageTagDetail",DLt="ImageTagDetailList",kLt="InvalidTagParameterException",LLt="Key",OLt="Layer",MLt="LayerAlreadyExistsException",FLt="LimitExceededException",ULt="LayerFailure",qLt="LayerFailureList",$Lt="LayerList",GLt="LayersNotFoundException",HLt="LayerPartTooSmallException",zLt="ListTagsForResource",VLt="ListTagsForResourceRequest",YLt="ListTagsForResourceResponse",WLt="PutImage",jLt="PutImageRequest",JLt="PutImageResponse",KLt="PutRegistryCatalogData",XLt="PutRegistryCatalogDataRequest",ZLt="PutRegistryCatalogDataResponse",eOt="PutRepositoryCatalogDataRequest",tOt="PutRepositoryCatalogDataResponse",rOt="PutRepositoryCatalogData",nOt="Registry",sOt="RegistryAlias",oOt="RepositoryAlreadyExistsException",iOt="RegistryAliasList",aOt="RegistryCatalogData",cOt="RepositoryCatalogDataInput",lOt="RepositoryCatalogDataNotFoundException",uOt="RepositoryCatalogData",dOt="ReferencedImageDetail",pOt="ReferencedImagesNotFoundException",mOt="RegistryList",fOt="RepositoryList",AOt="RepositoryNotEmptyException",hOt="RegistryNotFoundException",gOt="RepositoryNotFoundException",yOt="RepositoryPolicyNotFoundException",EOt="Repository",COt="ServerException",IOt="SetRepositoryPolicy",xOt="SetRepositoryPolicyRequest",wOt="SetRepositoryPolicyResponse",bOt="Tag",SOt="TagList",BOt="TooManyTagsException",ROt="TagResource",NOt="TagResourceRequest",TOt="TagResourceResponse",POt="UnsupportedCommandException",vOt="UploadLayerPart",_Ot="UploadLayerPartRequest",QOt="UploadLayerPartResponse",DOt="UploadNotFoundException",kOt="UntagResource",LOt="UntagResourceRequest",OOt="UntagResourceResponse",MOt="Value",FOt="aliases",UOt="authorizationData",hOe="artifactMediaType",qOt="authorizationToken",gOe="aboutText",yOe="architectures",Er="client",EOe="createdAt",w0="catalogData",COe="description",IOe="displayName",$Ot="defaultRegistryAlias",lr="error",GOt="expiresAt",xOe="failures",wOe="failureCode",bOe="failureReason",SOe="force",HOt="image",zOt="imageDetails",IL="imageDigest",VOt="imageDetail",D9="imageIds",BOe="imageId",ROe="imageManifest",xL="imageManifestMediaType",NOe="imagePushedAt",TOe="imageSizeInBytes",YOt="imageTags",WOt="imageTagDetails",k9="imageTag",jOt="layers",JOt="layerAvailability",KOt="lastByteReceived",POe="layerDigests",L9="layerDigest",XOt="logoImageBlob",ZOt="layerPartBlob",eMt="layerSize",tMt="logoUrl",rMt="lastValidByteReceived",ur="message",nMt="marketplaceCertified",wL="maxResults",sMt="mediaType",oMt="name",Pp="nextToken",vOe="operatingSystems",iMt="partFirstByte",aMt="partLastByte",cMt="primaryRegistryAlias",lMt="partSize",bL="policyText",_Oe="repository",O9="resourceArn",uMt="registryArn",dMt="repositoryArn",QOe="registryCatalogData",Xt="registryId",dr="repositoryName",pMt="repositoryNames",mMt="registryUri",fMt="repositoryUri",AMt="registries",hMt="repositories",DOe="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic",gMt="server",yMt="status",M9="tags",EMt="tagKeys",Yy="uploadId",kOe="usageText",CMt="verified",F="com.amazonaws.ecrpublic",LOe=(Ct(),W(Vx)),IMt=CL(),pr=Q9(),OOe=LOe.TypeRegistry.for(DOe);R.ECRPUBLICServiceException$=[-3,DOe,"ECRPUBLICServiceException",0,[],[]];OOe.registerError(R.ECRPUBLICServiceException$,IMt.ECRPUBLICServiceException);var Zt=LOe.TypeRegistry.for(F);R.EmptyUploadException$=[-3,F,nLt,{[lr]:Er},[ur],[0]];Zt.registerError(R.EmptyUploadException$,pr.EmptyUploadException);R.ImageAlreadyExistsException$=[-3,F,gLt,{[lr]:Er},[ur],[0]];Zt.registerError(R.ImageAlreadyExistsException$,pr.ImageAlreadyExistsException);R.ImageDigestDoesNotMatchException$=[-3,F,ELt,{[lr]:Er},[ur],[0]];Zt.registerError(R.ImageDigestDoesNotMatchException$,pr.ImageDigestDoesNotMatchException);R.ImageNotFoundException$=[-3,F,PLt,{[lr]:Er},[ur],[0]];Zt.registerError(R.ImageNotFoundException$,pr.ImageNotFoundException);R.ImageTagAlreadyExistsException$=[-3,F,_Lt,{[lr]:Er},[ur],[0]];Zt.registerError(R.ImageTagAlreadyExistsException$,pr.ImageTagAlreadyExistsException);R.InvalidLayerException$=[-3,F,SLt,{[lr]:Er},[ur],[0]];Zt.registerError(R.InvalidLayerException$,pr.InvalidLayerException);R.InvalidLayerPartException$=[-3,F,BLt,{[lr]:Er},[Xt,dr,Yy,rMt,ur],[0,0,0,1,0]];Zt.registerError(R.InvalidLayerPartException$,pr.InvalidLayerPartException);R.InvalidParameterException$=[-3,F,vLt,{[lr]:Er},[ur],[0]];Zt.registerError(R.InvalidParameterException$,pr.InvalidParameterException);R.InvalidTagParameterException$=[-3,F,kLt,{[lr]:Er},[ur],[0]];Zt.registerError(R.InvalidTagParameterException$,pr.InvalidTagParameterException);R.LayerAlreadyExistsException$=[-3,F,MLt,{[lr]:Er},[ur],[0]];Zt.registerError(R.LayerAlreadyExistsException$,pr.LayerAlreadyExistsException);R.LayerPartTooSmallException$=[-3,F,HLt,{[lr]:Er},[ur],[0]];Zt.registerError(R.LayerPartTooSmallException$,pr.LayerPartTooSmallException);R.LayersNotFoundException$=[-3,F,GLt,{[lr]:Er},[ur],[0]];Zt.registerError(R.LayersNotFoundException$,pr.LayersNotFoundException);R.LimitExceededException$=[-3,F,FLt,{[lr]:Er},[ur],[0]];Zt.registerError(R.LimitExceededException$,pr.LimitExceededException);R.ReferencedImagesNotFoundException$=[-3,F,pOt,{[lr]:Er},[ur],[0]];Zt.registerError(R.ReferencedImagesNotFoundException$,pr.ReferencedImagesNotFoundException);R.RegistryNotFoundException$=[-3,F,hOt,{[lr]:Er},[ur],[0]];Zt.registerError(R.RegistryNotFoundException$,pr.RegistryNotFoundException);R.RepositoryAlreadyExistsException$=[-3,F,oOt,{[lr]:Er},[ur],[0]];Zt.registerError(R.RepositoryAlreadyExistsException$,pr.RepositoryAlreadyExistsException);R.RepositoryCatalogDataNotFoundException$=[-3,F,lOt,{[lr]:Er},[ur],[0]];Zt.registerError(R.RepositoryCatalogDataNotFoundException$,pr.RepositoryCatalogDataNotFoundException);R.RepositoryNotEmptyException$=[-3,F,AOt,{[lr]:Er},[ur],[0]];Zt.registerError(R.RepositoryNotEmptyException$,pr.RepositoryNotEmptyException);R.RepositoryNotFoundException$=[-3,F,gOt,{[lr]:Er},[ur],[0]];Zt.registerError(R.RepositoryNotFoundException$,pr.RepositoryNotFoundException);R.RepositoryPolicyNotFoundException$=[-3,F,yOt,{[lr]:Er},[ur],[0]];Zt.registerError(R.RepositoryPolicyNotFoundException$,pr.RepositoryPolicyNotFoundException);R.ServerException$=[-3,F,COt,{[lr]:gMt},[ur],[0]];Zt.registerError(R.ServerException$,pr.ServerException);R.TooManyTagsException$=[-3,F,BOt,{[lr]:Er},[ur],[0]];Zt.registerError(R.TooManyTagsException$,pr.TooManyTagsException);R.UnsupportedCommandException$=[-3,F,POt,{[lr]:Er},[ur],[0]];Zt.registerError(R.UnsupportedCommandException$,pr.UnsupportedCommandException);R.UploadNotFoundException$=[-3,F,DOt,{[lr]:Er},[ur],[0]];Zt.registerError(R.UploadNotFoundException$,pr.UploadNotFoundException);R.errorTypeRegistries=[OOe,Zt];R.AuthorizationData$=[3,F,Bkt,0,[qOt,GOt],[0,4]];R.BatchCheckLayerAvailabilityRequest$=[3,F,Nkt,0,[dr,POe,Xt],[0,64,0],2];R.BatchCheckLayerAvailabilityResponse$=[3,F,Tkt,0,[jOt,xOe],[()=>BMt,()=>SMt]];R.BatchDeleteImageRequest$=[3,F,vkt,0,[dr,D9,Xt],[0,()=>F9,0],2];R.BatchDeleteImageResponse$=[3,F,_kt,0,[D9,xOe],[()=>F9,()=>wMt]];R.CompleteLayerUploadRequest$=[3,F,Dkt,0,[dr,Yy,POe,Xt],[0,0,64,0],3];R.CompleteLayerUploadResponse$=[3,F,kkt,0,[Xt,dr,Yy,L9],[0,0,0,0]];R.CreateRepositoryRequest$=[3,F,Okt,0,[dr,w0,M9],[0,()=>R.RepositoryCatalogDataInput$,()=>U9],1];R.CreateRepositoryResponse$=[3,F,Mkt,0,[_Oe,w0],[()=>R.Repository$,()=>R.RepositoryCatalogData$]];R.DeleteRepositoryPolicyRequest$=[3,F,Ykt,0,[dr,Xt],[0,0],1];R.DeleteRepositoryPolicyResponse$=[3,F,Wkt,0,[Xt,dr,bL],[0,0,0]];R.DeleteRepositoryRequest$=[3,F,jkt,0,[dr,Xt,SOe],[0,0,2],1];R.DeleteRepositoryResponse$=[3,F,Jkt,0,[_Oe],[()=>R.Repository$]];R.DescribeImagesRequest$=[3,F,Ukt,0,[dr,Xt,D9,Pp,wL],[0,0,()=>F9,0,1],1];R.DescribeImagesResponse$=[3,F,qkt,0,[zOt,Pp],[()=>xMt,0]];R.DescribeImageTagsRequest$=[3,F,Gkt,0,[dr,Xt,Pp,wL],[0,0,0,1],1];R.DescribeImageTagsResponse$=[3,F,Hkt,0,[WOt,Pp],[()=>bMt,0]];R.DescribeRegistriesRequest$=[3,F,Kkt,0,[Pp,wL],[0,1]];R.DescribeRegistriesResponse$=[3,F,Xkt,0,[AMt,Pp],[()=>NMt,0],1];R.DescribeRepositoriesRequest$=[3,F,Zkt,0,[Xt,pMt,Pp,wL],[0,64,0,1]];R.DescribeRepositoriesResponse$=[3,F,eLt,0,[hMt,Pp],[()=>TMt,0]];R.GetAuthorizationTokenRequest$=[3,F,oLt,0,[],[]];R.GetAuthorizationTokenResponse$=[3,F,iLt,0,[UOt],[()=>R.AuthorizationData$]];R.GetRegistryCatalogDataRequest$=[3,F,cLt,0,[],[]];R.GetRegistryCatalogDataResponse$=[3,F,lLt,0,[QOe],[()=>R.RegistryCatalogData$],1];R.GetRepositoryCatalogDataRequest$=[3,F,uLt,0,[dr,Xt],[0,0],1];R.GetRepositoryCatalogDataResponse$=[3,F,dLt,0,[w0],[()=>R.RepositoryCatalogData$]];R.GetRepositoryPolicyRequest$=[3,F,fLt,0,[dr,Xt],[0,0],1];R.GetRepositoryPolicyResponse$=[3,F,ALt,0,[Xt,dr,bL],[0,0,0]];R.Image$=[3,F,hLt,0,[Xt,dr,BOe,ROe,xL],[0,0,()=>R.ImageIdentifier$,0,0]];R.ImageDetail$=[3,F,yLt,0,[Xt,dr,IL,YOt,TOe,NOe,xL,hOe],[0,0,0,64,1,4,0,0]];R.ImageFailure$=[3,F,ILt,0,[BOe,wOe,bOe],[()=>R.ImageIdentifier$,0,0]];R.ImageIdentifier$=[3,F,wLt,0,[IL,k9],[0,0]];R.ImageTagDetail$=[3,F,QLt,0,[k9,EOe,VOt],[0,4,()=>R.ReferencedImageDetail$]];R.InitiateLayerUploadRequest$=[3,F,NLt,0,[dr,Xt],[0,0],1];R.InitiateLayerUploadResponse$=[3,F,TLt,0,[Yy,lMt],[0,1]];R.Layer$=[3,F,OLt,0,[L9,JOt,eMt,sMt],[0,0,1,0]];R.LayerFailure$=[3,F,ULt,0,[L9,wOe,bOe],[0,0,0]];R.ListTagsForResourceRequest$=[3,F,VLt,0,[O9],[0],1];R.ListTagsForResourceResponse$=[3,F,YLt,0,[M9],[()=>U9]];R.PutImageRequest$=[3,F,jLt,0,[dr,ROe,Xt,xL,k9,IL],[0,0,0,0,0,0],2];R.PutImageResponse$=[3,F,JLt,0,[HOt],[()=>R.Image$]];R.PutRegistryCatalogDataRequest$=[3,F,XLt,0,[IOe],[0]];R.PutRegistryCatalogDataResponse$=[3,F,ZLt,0,[QOe],[()=>R.RegistryCatalogData$],1];R.PutRepositoryCatalogDataRequest$=[3,F,eOt,0,[dr,w0,Xt],[0,()=>R.RepositoryCatalogDataInput$,0],2];R.PutRepositoryCatalogDataResponse$=[3,F,tOt,0,[w0],[()=>R.RepositoryCatalogData$]];R.ReferencedImageDetail$=[3,F,dOt,0,[IL,TOe,NOe,xL,hOe],[0,1,4,0,0]];R.Registry$=[3,F,nOt,0,[Xt,uMt,mMt,CMt,FOt],[0,0,0,2,()=>RMt],5];R.RegistryAlias$=[3,F,sOt,0,[oMt,yMt,cMt,$Ot],[0,0,2,2],4];R.RegistryCatalogData$=[3,F,aOt,0,[IOe],[0]];R.Repository$=[3,F,EOt,0,[dMt,Xt,dr,fMt,EOe],[0,0,0,0,4]];R.RepositoryCatalogData$=[3,F,uOt,0,[COe,yOe,vOe,tMt,gOe,kOe,nMt],[0,64,64,0,0,0,2]];R.RepositoryCatalogDataInput$=[3,F,cOt,0,[COe,yOe,vOe,XOt,gOe,kOe],[0,64,64,21,0,0]];R.SetRepositoryPolicyRequest$=[3,F,xOt,0,[dr,bL,Xt,SOe],[0,0,0,2],2];R.SetRepositoryPolicyResponse$=[3,F,wOt,0,[Xt,dr,bL],[0,0,0]];R.Tag$=[3,F,bOt,0,[LLt,MOt],[0,0]];R.TagResourceRequest$=[3,F,NOt,0,[O9,M9],[0,()=>U9],2];R.TagResourceResponse$=[3,F,TOt,0,[],[]];R.UntagResourceRequest$=[3,F,LOt,0,[O9,EMt],[0,64],2];R.UntagResourceResponse$=[3,F,OOt,0,[],[]];R.UploadLayerPartRequest$=[3,F,_Ot,0,[dr,Yy,iMt,aMt,ZOt,Xt],[0,0,1,1,21,0],5];R.UploadLayerPartResponse$=[3,F,QOt,0,[Xt,dr,Yy,KOt],[0,0,0,1]];var xMt=[1,F,CLt,0,()=>R.ImageDetail$],wMt=[1,F,xLt,0,()=>R.ImageFailure$],F9=[1,F,bLt,0,()=>R.ImageIdentifier$],bMt=[1,F,DLt,0,()=>R.ImageTagDetail$],SMt=[1,F,qLt,0,()=>R.LayerFailure$],BMt=[1,F,$Lt,0,()=>R.Layer$],RMt=[1,F,iOt,0,()=>R.RegistryAlias$],NMt=[1,F,mOt,0,()=>R.Registry$],TMt=[1,F,fOt,0,()=>R.Repository$],U9=[1,F,SOt,0,()=>R.Tag$];R.BatchCheckLayerAvailability$=[9,F,Rkt,0,()=>R.BatchCheckLayerAvailabilityRequest$,()=>R.BatchCheckLayerAvailabilityResponse$];R.BatchDeleteImage$=[9,F,Pkt,0,()=>R.BatchDeleteImageRequest$,()=>R.BatchDeleteImageResponse$];R.CompleteLayerUpload$=[9,F,Qkt,0,()=>R.CompleteLayerUploadRequest$,()=>R.CompleteLayerUploadResponse$];R.CreateRepository$=[9,F,Lkt,0,()=>R.CreateRepositoryRequest$,()=>R.CreateRepositoryResponse$];R.DeleteRepository$=[9,F,zkt,0,()=>R.DeleteRepositoryRequest$,()=>R.DeleteRepositoryResponse$];R.DeleteRepositoryPolicy$=[9,F,Vkt,0,()=>R.DeleteRepositoryPolicyRequest$,()=>R.DeleteRepositoryPolicyResponse$];R.DescribeImages$=[9,F,Fkt,0,()=>R.DescribeImagesRequest$,()=>R.DescribeImagesResponse$];R.DescribeImageTags$=[9,F,$kt,0,()=>R.DescribeImageTagsRequest$,()=>R.DescribeImageTagsResponse$];R.DescribeRegistries$=[9,F,tLt,0,()=>R.DescribeRegistriesRequest$,()=>R.DescribeRegistriesResponse$];R.DescribeRepositories$=[9,F,rLt,0,()=>R.DescribeRepositoriesRequest$,()=>R.DescribeRepositoriesResponse$];R.GetAuthorizationToken$=[9,F,sLt,0,()=>R.GetAuthorizationTokenRequest$,()=>R.GetAuthorizationTokenResponse$];R.GetRegistryCatalogData$=[9,F,aLt,0,()=>R.GetRegistryCatalogDataRequest$,()=>R.GetRegistryCatalogDataResponse$];R.GetRepositoryCatalogData$=[9,F,pLt,0,()=>R.GetRepositoryCatalogDataRequest$,()=>R.GetRepositoryCatalogDataResponse$];R.GetRepositoryPolicy$=[9,F,mLt,0,()=>R.GetRepositoryPolicyRequest$,()=>R.GetRepositoryPolicyResponse$];R.InitiateLayerUpload$=[9,F,RLt,0,()=>R.InitiateLayerUploadRequest$,()=>R.InitiateLayerUploadResponse$];R.ListTagsForResource$=[9,F,zLt,0,()=>R.ListTagsForResourceRequest$,()=>R.ListTagsForResourceResponse$];R.PutImage$=[9,F,WLt,0,()=>R.PutImageRequest$,()=>R.PutImageResponse$];R.PutRegistryCatalogData$=[9,F,KLt,0,()=>R.PutRegistryCatalogDataRequest$,()=>R.PutRegistryCatalogDataResponse$];R.PutRepositoryCatalogData$=[9,F,rOt,0,()=>R.PutRepositoryCatalogDataRequest$,()=>R.PutRepositoryCatalogDataResponse$];R.SetRepositoryPolicy$=[9,F,IOt,0,()=>R.SetRepositoryPolicyRequest$,()=>R.SetRepositoryPolicyResponse$];R.TagResource$=[9,F,ROt,0,()=>R.TagResourceRequest$,()=>R.TagResourceResponse$];R.UntagResource$=[9,F,kOt,0,()=>R.UntagResourceRequest$,()=>R.UntagResourceResponse$];R.UploadLayerPart$=[9,F,vOt,0,()=>R.UploadLayerPartRequest$,()=>R.UploadLayerPartResponse$]});var MOe=b(BL=>{"use strict";Object.defineProperty(BL,"__esModule",{value:!0});BL.getRuntimeConfig=void 0;var PMt=(en(),W(up)),vMt=(kf(),W(TJ)),_Mt=(Ce(),W(qi)),QMt=(De(),W(rl)),SL=(st(),W(Zd)),DMt=s9(),kMt=fOe(),LMt=q9(),OMt=i(t=>({apiVersion:"2020-10-30",base64Decoder:t?.base64Decoder??SL.fromBase64,base64Encoder:t?.base64Encoder??SL.toBase64,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??kMt.defaultEndpointResolver,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??DMt.defaultECRPUBLICHttpAuthSchemeProvider,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new PMt.AwsSdkSigV4Signer}],logger:t?.logger??new _Mt.NoOpLogger,protocol:t?.protocol??vMt.AwsJson1_1Protocol,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",errorTypeRegistries:LMt.errorTypeRegistries,xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:t?.serviceId??"ECR PUBLIC",urlParser:t?.urlParser??QMt.parseUrl,utf8Decoder:t?.utf8Decoder??SL.fromUtf8,utf8Encoder:t?.utf8Encoder??SL.toUtf8}),"getRuntimeConfig");BL.getRuntimeConfig=OMt});var $Oe=b(RL=>{"use strict";Object.defineProperty(RL,"__esModule",{value:!0});RL.getRuntimeConfig=void 0;var MMt=(sy(),W(ny)),FMt=MMt.__importDefault(aOe()),$9=(bt(),W(ks)),UMt=(en(),W(up)),qMt=M5(),FOe=(Ce(),W(qi)),Ji=(Tt(),W(Ln)),G9=(Qs(),W(Zx)),UOe=(st(),W(Zd)),qOe=_u(),$Mt=MOe(),GMt=i(t=>{(0,FOe.emitWarningIfUnsupportedVersion)(process.version);let e=(0,Ji.resolveDefaultsModeConfig)(t),r=i(()=>e().then(FOe.loadConfigsForDefaultMode),"defaultConfigProvider"),n=(0,$Mt.getRuntimeConfig)(t);(0,$9.emitWarningIfUnsupportedVersion)(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??(0,Ji.loadConfig)(UMt.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:t?.bodyLengthChecker??UOe.calculateBodyLength,credentialDefaultProvider:t?.credentialDefaultProvider??qMt.defaultProvider,defaultUserAgentProvider:t?.defaultUserAgentProvider??(0,$9.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:FMt.default.version}),maxAttempts:t?.maxAttempts??(0,Ji.loadConfig)(G9.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,t),region:t?.region??(0,Ji.loadConfig)(Ji.NODE_REGION_CONFIG_OPTIONS,{...Ji.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:qOe.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??(0,Ji.loadConfig)({...G9.NODE_RETRY_MODE_CONFIG_OPTIONS,default:i(async()=>(await r()).retryMode||G9.DEFAULT_RETRY_MODE,"default")},t),sha256:t?.sha256??UOe.Hash.bind(null,"sha256"),streamCollector:t?.streamCollector??qOe.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??(0,Ji.loadConfig)(Ji.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:t?.useFipsEndpoint??(0,Ji.loadConfig)(Ji.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:t?.userAgentAppId??(0,Ji.loadConfig)($9.NODE_APP_ID_CONFIG_OPTIONS,s)}},"getRuntimeConfig");RL.getRuntimeConfig=GMt});var jOe=b(Je=>{"use strict";var vp=(bt(),W(ks)),rA=(Ds(),W(U8)),Dt=(Ce(),W(qi)),HMt=(Tt(),W(Ln)),mr=(wt(),W(ff)),H9=(De(),W(rl)),GOe=(Qs(),W(Zx)),zMt=(Ct(),W(Vx)),HOe=s9(),VMt=$Oe(),$t=q9(),NL=Q9(),YMt=CL(),WMt=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr-public"}),"resolveClientEndpointParameters"),Cr={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},jMt=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),JMt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),KMt=i((t,e)=>{let r=Object.assign(vp.getAwsRegionExtensionConfiguration(t),Dt.getDefaultExtensionConfiguration(t),H9.getHttpHandlerExtensionConfiguration(t),jMt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,vp.resolveAwsRegionExtensionConfiguration(r),Dt.resolveDefaultRuntimeConfig(r),H9.resolveHttpHandlerRuntimeConfig(r),JMt(r))},"resolveRuntimeExtensions"),_p=class extends Dt.Client{static{i(this,"ECRPUBLICClient")}config;constructor(...[e]){let r=VMt.getRuntimeConfig(e||{});super(r),this.initConfig=r;let n=WMt(r),s=vp.resolveUserAgentConfig(n),o=GOe.resolveRetryConfig(s),a=HMt.resolveRegionConfig(o),c=vp.resolveHostHeaderConfig(a),l=mr.resolveEndpointConfig(c),u=HOe.resolveHttpAuthSchemeConfig(l),d=KMt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(zMt.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(vp.getUserAgentPlugin(this.config)),this.middlewareStack.use(GOe.getRetryPlugin(this.config)),this.middlewareStack.use(H9.getContentLengthPlugin(this.config)),this.middlewareStack.use(vp.getHostHeaderPlugin(this.config)),this.middlewareStack.use(vp.getLoggerPlugin(this.config)),this.middlewareStack.use(vp.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(rA.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:HOe.defaultECRPUBLICHttpAuthSchemeParametersProvider,identityProviderConfigProvider:i(async p=>new rA.DefaultIdentityProviderConfig({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(rA.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},TL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","BatchCheckLayerAvailability",{}).n("ECRPUBLICClient","BatchCheckLayerAvailabilityCommand").sc($t.BatchCheckLayerAvailability$).build(){static{i(this,"BatchCheckLayerAvailabilityCommand")}},PL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","BatchDeleteImage",{}).n("ECRPUBLICClient","BatchDeleteImageCommand").sc($t.BatchDeleteImage$).build(){static{i(this,"BatchDeleteImageCommand")}},vL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","CompleteLayerUpload",{}).n("ECRPUBLICClient","CompleteLayerUploadCommand").sc($t.CompleteLayerUpload$).build(){static{i(this,"CompleteLayerUploadCommand")}},_L=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","CreateRepository",{}).n("ECRPUBLICClient","CreateRepositoryCommand").sc($t.CreateRepository$).build(){static{i(this,"CreateRepositoryCommand")}},QL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DeleteRepository",{}).n("ECRPUBLICClient","DeleteRepositoryCommand").sc($t.DeleteRepository$).build(){static{i(this,"DeleteRepositoryCommand")}},DL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DeleteRepositoryPolicy",{}).n("ECRPUBLICClient","DeleteRepositoryPolicyCommand").sc($t.DeleteRepositoryPolicy$).build(){static{i(this,"DeleteRepositoryPolicyCommand")}},b0=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DescribeImages",{}).n("ECRPUBLICClient","DescribeImagesCommand").sc($t.DescribeImages$).build(){static{i(this,"DescribeImagesCommand")}},S0=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DescribeImageTags",{}).n("ECRPUBLICClient","DescribeImageTagsCommand").sc($t.DescribeImageTags$).build(){static{i(this,"DescribeImageTagsCommand")}},B0=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DescribeRegistries",{}).n("ECRPUBLICClient","DescribeRegistriesCommand").sc($t.DescribeRegistries$).build(){static{i(this,"DescribeRegistriesCommand")}},R0=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","DescribeRepositories",{}).n("ECRPUBLICClient","DescribeRepositoriesCommand").sc($t.DescribeRepositories$).build(){static{i(this,"DescribeRepositoriesCommand")}},kL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","GetAuthorizationToken",{}).n("ECRPUBLICClient","GetAuthorizationTokenCommand").sc($t.GetAuthorizationToken$).build(){static{i(this,"GetAuthorizationTokenCommand")}},LL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","GetRegistryCatalogData",{}).n("ECRPUBLICClient","GetRegistryCatalogDataCommand").sc($t.GetRegistryCatalogData$).build(){static{i(this,"GetRegistryCatalogDataCommand")}},OL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","GetRepositoryCatalogData",{}).n("ECRPUBLICClient","GetRepositoryCatalogDataCommand").sc($t.GetRepositoryCatalogData$).build(){static{i(this,"GetRepositoryCatalogDataCommand")}},ML=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","GetRepositoryPolicy",{}).n("ECRPUBLICClient","GetRepositoryPolicyCommand").sc($t.GetRepositoryPolicy$).build(){static{i(this,"GetRepositoryPolicyCommand")}},FL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","InitiateLayerUpload",{}).n("ECRPUBLICClient","InitiateLayerUploadCommand").sc($t.InitiateLayerUpload$).build(){static{i(this,"InitiateLayerUploadCommand")}},UL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","ListTagsForResource",{}).n("ECRPUBLICClient","ListTagsForResourceCommand").sc($t.ListTagsForResource$).build(){static{i(this,"ListTagsForResourceCommand")}},qL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","PutImage",{}).n("ECRPUBLICClient","PutImageCommand").sc($t.PutImage$).build(){static{i(this,"PutImageCommand")}},$L=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","PutRegistryCatalogData",{}).n("ECRPUBLICClient","PutRegistryCatalogDataCommand").sc($t.PutRegistryCatalogData$).build(){static{i(this,"PutRegistryCatalogDataCommand")}},GL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","PutRepositoryCatalogData",{}).n("ECRPUBLICClient","PutRepositoryCatalogDataCommand").sc($t.PutRepositoryCatalogData$).build(){static{i(this,"PutRepositoryCatalogDataCommand")}},HL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","SetRepositoryPolicy",{}).n("ECRPUBLICClient","SetRepositoryPolicyCommand").sc($t.SetRepositoryPolicy$).build(){static{i(this,"SetRepositoryPolicyCommand")}},zL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","TagResource",{}).n("ECRPUBLICClient","TagResourceCommand").sc($t.TagResource$).build(){static{i(this,"TagResourceCommand")}},VL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","UntagResource",{}).n("ECRPUBLICClient","UntagResourceCommand").sc($t.UntagResource$).build(){static{i(this,"UntagResourceCommand")}},YL=class extends Dt.Command.classBuilder().ep(Cr).m(function(e,r,n,s){return[mr.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s("SpencerFrontendService","UploadLayerPart",{}).n("ECRPUBLICClient","UploadLayerPartCommand").sc($t.UploadLayerPart$).build(){static{i(this,"UploadLayerPartCommand")}},zOe=rA.createPaginator(_p,b0,"nextToken","nextToken","maxResults"),VOe=rA.createPaginator(_p,S0,"nextToken","nextToken","maxResults"),YOe=rA.createPaginator(_p,B0,"nextToken","nextToken","maxResults"),WOe=rA.createPaginator(_p,R0,"nextToken","nextToken","maxResults"),XMt={BatchCheckLayerAvailabilityCommand:TL,BatchDeleteImageCommand:PL,CompleteLayerUploadCommand:vL,CreateRepositoryCommand:_L,DeleteRepositoryCommand:QL,DeleteRepositoryPolicyCommand:DL,DescribeImagesCommand:b0,DescribeImageTagsCommand:S0,DescribeRegistriesCommand:B0,DescribeRepositoriesCommand:R0,GetAuthorizationTokenCommand:kL,GetRegistryCatalogDataCommand:LL,GetRepositoryCatalogDataCommand:OL,GetRepositoryPolicyCommand:ML,InitiateLayerUploadCommand:FL,ListTagsForResourceCommand:UL,PutImageCommand:qL,PutRegistryCatalogDataCommand:$L,PutRepositoryCatalogDataCommand:GL,SetRepositoryPolicyCommand:HL,TagResourceCommand:zL,UntagResourceCommand:VL,UploadLayerPartCommand:YL},ZMt={paginateDescribeImages:zOe,paginateDescribeImageTags:VOe,paginateDescribeRegistries:YOe,paginateDescribeRepositories:WOe},WL=class extends _p{static{i(this,"ECRPUBLIC")}};Dt.createAggregatedClient(XMt,WL,{paginators:ZMt});var eFt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},tFt={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},rFt={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"},nFt={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};Je.$Command=Dt.Command;Je.__Client=Dt.Client;Je.ECRPUBLICServiceException=YMt.ECRPUBLICServiceException;Je.BatchCheckLayerAvailabilityCommand=TL;Je.BatchDeleteImageCommand=PL;Je.CompleteLayerUploadCommand=vL;Je.CreateRepositoryCommand=_L;Je.DeleteRepositoryCommand=QL;Je.DeleteRepositoryPolicyCommand=DL;Je.DescribeImageTagsCommand=S0;Je.DescribeImagesCommand=b0;Je.DescribeRegistriesCommand=B0;Je.DescribeRepositoriesCommand=R0;Je.ECRPUBLIC=WL;Je.ECRPUBLICClient=_p;Je.GetAuthorizationTokenCommand=kL;Je.GetRegistryCatalogDataCommand=LL;Je.GetRepositoryCatalogDataCommand=OL;Je.GetRepositoryPolicyCommand=ML;Je.ImageFailureCode=rFt;Je.InitiateLayerUploadCommand=FL;Je.LayerAvailability=tFt;Je.LayerFailureCode=eFt;Je.ListTagsForResourceCommand=UL;Je.PutImageCommand=qL;Je.PutRegistryCatalogDataCommand=$L;Je.PutRepositoryCatalogDataCommand=GL;Je.RegistryAliasStatus=nFt;Je.SetRepositoryPolicyCommand=HL;Je.TagResourceCommand=zL;Je.UntagResourceCommand=VL;Je.UploadLayerPartCommand=YL;Je.paginateDescribeImageTags=VOe;Je.paginateDescribeImages=zOe;Je.paginateDescribeRegistries=YOe;Je.paginateDescribeRepositories=WOe;Object.prototype.hasOwnProperty.call($t,"__proto__")&&!Object.prototype.hasOwnProperty.call(Je,"__proto__")&&Object.defineProperty(Je,"__proto__",{enumerable:!0,value:$t.__proto__});Object.keys($t).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(Je,t)&&(Je[t]=$t[t])});Object.prototype.hasOwnProperty.call(NL,"__proto__")&&!Object.prototype.hasOwnProperty.call(Je,"__proto__")&&Object.defineProperty(Je,"__proto__",{enumerable:!0,value:NL.__proto__});Object.keys(NL).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(Je,t)&&(Je[t]=NL[t])})});var AFt={};rn(AFt,{main:()=>wMe});module.exports=W(AFt);var lK=D(require("os"),1);function Hu(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(Hu,"toCommandValue");function cO(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}i(cO,"toCommandProperties");function kp(t,e,r){let n=new lO(t,e,r);process.stdout.write(n.toString()+lK.EOL)}i(kp,"issueCommand");function uO(t,e=""){kp(t,{},e)}i(uO,"issue");var cK="::",lO=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=cK+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 s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${mFe(s)}`)}}return e+=`${cK}${pFe(this.message)}`,e}};function pFe(t){return Hu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(pFe,"escapeData");function mFe(t){return Hu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(mFe,"escapeProperty");var uK=D(require("crypto"),1),Q0=D(require("fs"),1),_0=D(require("os"),1);function dK(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Q0.existsSync(r))throw new Error(`Missing file at path: ${r}`);Q0.appendFileSync(r,`${Hu(e)}${_0.EOL}`,{encoding:"utf8"})}i(dK,"issueFileCommand");function pK(t,e){let r=`ghadelimiter_${uK.randomUUID()}`,n=Hu(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}${_0.EOL}${n}${_0.EOL}${r}`}i(pK,"prepareKeyValueMessage");var poe=D(require("os"),1);var NS=D(Jy(),1),RWe=D(nh(),1);var Ka;(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"})(Ka||(Ka={}));var Hse;(function(t){t.Accept="accept",t.ContentType="content-type"})(Hse||(Hse={}));var zse;(function(t){t.ApplicationJson="application/json"})(zse||(zse={}));var X2t=[Ka.MovedPermanently,Ka.ResourceMoved,Ka.SeeOther,Ka.TemporaryRedirect,Ka.PermanentRedirect],Z2t=[Ka.BadGateway,Ka.ServiceUnavailable,Ka.GatewayTimeout];var Wse=require("os"),KE=require("fs");var O1=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:TWe,appendFile:PWe,writeFile:vWe}=KE.promises,Yse="GITHUB_STEP_SUMMARY";var M1=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return O1(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Yse];if(!e)throw new Error(`Unable to find environment variable for $${Yse}. Check if your runtime environment supports job summaries.`);try{yield TWe(e,KE.constants.R_OK|KE.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 s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return O1(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?vWe:PWe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return O1(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}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",m=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,m)}).join("");return this.wrap("tr",o)}).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:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).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}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},cqt=new M1;var W1=D(require("os"),1);var Y1=require("string_decoder");var ZE=D(require("os"),1),V1=D(require("events"),1),aoe=D(require("child_process"),1),coe=D(require("path"),1);var roe=require("assert"),To=D(require("path"),1);var XE=D(require("fs"),1),ld=D(require("path"),1);var F1=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{chmod:U1,copyFile:Jse,lstat:TS,mkdir:Kse,open:mqt,readdir:q1,rename:_We,rm:Xse,rmdir:fqt,stat:cm,symlink:Zse,unlink:$1}=XE.promises,Xa=process.platform==="win32";function eoe(t){return F1(this,void 0,void 0,function*(){let e=yield XE.promises.readlink(t);return Xa&&!e.endsWith("\\")?`${e}\\`:e})}i(eoe,"readlink");var Aqt=XE.constants.O_RDONLY;function sh(t){return F1(this,void 0,void 0,function*(){try{yield cm(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}i(sh,"exists");function PS(t){if(t=QWe(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return Xa?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(PS,"isRooted");function G1(t,e){return F1(this,void 0,void 0,function*(){let r;try{r=yield cm(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(Xa){let s=ld.extname(t).toUpperCase();if(e.some(o=>o.toUpperCase()===s))return t}else if(jse(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield cm(t)}catch(o){o.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${o}`)}if(r&&r.isFile()){if(Xa){try{let o=ld.dirname(t),a=ld.basename(t).toUpperCase();for(let c of yield q1(o))if(a===c.toUpperCase()){t=ld.join(o,c);break}}catch(o){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${o}`)}return t}else if(jse(r))return t}}return""})}i(G1,"tryGetExecutablePath");function QWe(t){return t=t||"",Xa?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(QWe,"normalizeSeparators");function jse(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()}i(jse,"isUnixExecutable");var lm=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function noe(t,e){return lm(this,arguments,void 0,function*(r,n,s={}){let{force:o,recursive:a,copySourceDirectory:c}=kWe(s),l=(yield sh(n))?yield cm(n):null;if(l&&l.isFile()&&!o)return;let u=l&&l.isDirectory()&&c?To.join(n,To.basename(r)):n;if(!(yield sh(r)))throw new Error(`no such file or directory: ${r}`);if((yield cm(r)).isDirectory())if(a)yield soe(r,u,0,o);else throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`);else{if(To.relative(r,u)==="")throw new Error(`'${u}' and '${r}' are the same file`);yield ooe(r,u,o)}})}i(noe,"cp");function H1(t){return lm(this,void 0,void 0,function*(){if(Xa&&/[*"<>|]/.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}`)}})}i(H1,"rmRF");function um(t){return lm(this,void 0,void 0,function*(){(0,roe.ok)(t,"a path argument must be provided"),yield Kse(t,{recursive:!0})})}i(um,"mkdirP");function Hs(t,e){return lm(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield Hs(t,!1);if(!n)throw Xa?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 DWe(t);return r&&r.length>0?r[0]:""})}i(Hs,"which");function DWe(t){return lm(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(Xa&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(To.delimiter))s&&e.push(s);if(PS(t)){let s=yield G1(t,e);return s?[s]:[]}if(t.includes(To.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(To.delimiter))s&&r.push(s);let n=[];for(let s of r){let o=yield G1(To.join(s,t),e);o&&n.push(o)}return n})}i(DWe,"findInPath");function kWe(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}}i(kWe,"readCopyOptions");function soe(t,e,r,n){return lm(this,void 0,void 0,function*(){if(r>=255)return;r++,yield um(e);let s=yield q1(t);for(let o of s){let a=`${t}/${o}`,c=`${e}/${o}`;(yield TS(a)).isDirectory()?yield soe(a,c,r,n):yield ooe(a,c,n)}yield U1(e,(yield cm(t)).mode)})}i(soe,"cpDirRecursive");function ooe(t,e,r){return lm(this,void 0,void 0,function*(){if((yield TS(t)).isSymbolicLink()){try{yield TS(e),yield $1(e)}catch(s){s.code==="EPERM"&&(yield U1(e,"0666"),yield $1(e))}let n=yield eoe(t);yield Zse(n,e,Xa?"junction":null)}else(!(yield sh(e))||r)&&(yield Jse(t,e))})}i(ooe,"copyFile");var loe=require("timers");var ioe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},vS=process.platform==="win32",_S=class extends V1.EventEmitter{static{i(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(),s=this._getSpawnArgs(e),o=r?"":"[command]";if(vS)if(this._isCmdFile()){o+=n;for(let a of s)o+=` ${a}`}else if(e.windowsVerbatimArguments){o+=`"${n}"`;for(let a of s)o+=` ${a}`}else{o+=this._windowsQuoteCmdArg(n);for(let a of s)o+=` ${this._windowsQuoteCmdArg(a)}`}else{o+=n;for(let a of s)o+=` ${a}`}return o}_processLineBuffer(e,r,n){try{let s=r+e.toString(),o=s.indexOf(ZE.EOL);for(;o>-1;){let a=s.substring(0,o);n(a),s=s.substring(o+ZE.EOL.length),o=s.indexOf(ZE.EOL)}return s}catch(s){return this._debug(`error processing line. Failed with error ${s}`),""}}_getSpawnFileName(){return vS&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(vS&&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 s='"',o=!0;for(let a=e.length;a>0;a--)s+=e[a-1],o&&e[a-1]==="\\"?s+="\\":e[a-1]==='"'?(o=!0,s+='"'):o=!1;return s+='"',s.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 s=e.length;s>0;s--)r+=e[s-1],n&&e[s-1]==="\\"?r+="\\":e[s-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 ioe(this,void 0,void 0,function*(){return!PS(this.toolPath)&&(this.toolPath.includes("/")||vS&&this.toolPath.includes("\\"))&&(this.toolPath=coe.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Hs(this.toolPath,!0),new Promise((e,r)=>ioe(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)+ZE.EOL);let s=new z1(n,this.toolPath);if(s.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield sh(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let o=this._getSpawnFileName(),a=aoe.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o)),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=>{s.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=>{s.processError=u.message,s.processExited=!0,s.processClosed=!0,s.CheckComplete()}),a.on("exit",u=>{s.processExitCode=u,s.processExited=!0,this._debug(`Exit code ${u} received from tool '${this.toolPath}'`),s.CheckComplete()}),a.on("close",u=>{s.processExitCode=u,s.processExited=!0,s.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),s.CheckComplete()}),s.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 uoe(t){let e=[],r=!1,n=!1,s="";function o(a){n&&a!=='"'&&(s+="\\"),s+=a,n=!1}i(o,"append");for(let a=0;a0&&(e.push(s),s="");continue}o(c)}return s.length>0&&e.push(s.trim()),e}i(uoe,"argStringToArray");var z1=class t extends V1.EventEmitter{static{i(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,loe.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 doe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function ud(t,e,r){return doe(this,void 0,void 0,function*(){let n=uoe(t);if(n.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let s=n[0];return e=n.slice(1).concat(e||[]),new _S(s,e,r).exec()})}i(ud,"exec");function eC(t,e,r){return doe(this,void 0,void 0,function*(){var n,s;let o="",a="",c=new Y1.StringDecoder("utf8"),l=new Y1.StringDecoder("utf8"),u=(n=r?.listeners)===null||n===void 0?void 0:n.stdout,d=(s=r?.listeners)===null||s===void 0?void 0:s.stderr,p=i(E=>{a+=l.write(E),d&&d(E)},"stdErrListener"),m=i(E=>{o+=c.write(E),u&&u(E)},"stdOutListener"),f=Object.assign(Object.assign({},r?.listeners),{stdout:m,stderr:p}),g=yield ud(t,e,Object.assign(Object.assign({},r),{listeners:f}));return o+=c.end(),a+=l.end(),{exitCode:g,stdout:o,stderr:a}})}i(eC,"getExecOutput");var Iqt=W1.default.platform(),xqt=W1.default.arch();var MWe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},j1;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(j1||(j1={}));function No(t){kp("add-mask",{},t)}i(No,"setSecret");function aa(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()}i(aa,"getInput");function moe(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=aa(t,e);if(r.includes(s))return!0;if(n.includes(s))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\``)}i(moe,"getBooleanInput");function foe(t){process.exitCode=j1.Failure,ih(t)}i(foe,"setFailed");function dm(){return process.env.RUNNER_DEBUG==="1"}i(dm,"isDebug");function G(t){kp("debug",{},t)}i(G,"debug");function ih(t,e={}){kp("error",cO(e),t instanceof Error?t.toString():t)}i(ih,"error");function Dr(t,e={}){kp("warning",cO(e),t instanceof Error?t.toString():t)}i(Dr,"warning");function Ke(t){process.stdout.write(t+poe.EOL)}i(Ke,"info");function FWe(t){uO("group",t)}i(FWe,"startGroup");function UWe(){uO("endgroup")}i(UWe,"endGroup");function rC(t,e){return MWe(this,void 0,void 0,function*(){FWe(t);let r;try{r=yield e()}finally{UWe()}return r})}i(rC,"group");function pm(t,e){if(process.env.GITHUB_STATE||"")return dK("STATE",pK(t,e));kp("save-state",{name:t},Hu(e))}i(pm,"saveState");function Aoe(t){return process.env[`STATE_${t}`]||""}i(Aoe,"getState");var QT=D(require("fs"),1),J3=D(require("os"),1),K3=D(require("path"),1);var goe=D(require("os"),1);function nC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(nC,"toCommandValue");function yoe(t,e,r){let n=new J1(t,e,r);process.stdout.write(n.toString()+goe.EOL)}i(yoe,"issueCommand");var hoe="::",J1=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=hoe+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 s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${$We(s)}`)}}return e+=`${hoe}${qWe(this.message)}`,e}};function qWe(t){return nC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(qWe,"escapeData");function $We(t){return nC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i($We,"escapeProperty");var Coe=require("os"),sC=require("fs");var K1=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:GWe,appendFile:HWe,writeFile:zWe}=sC.promises,Eoe="GITHUB_STEP_SUMMARY";var X1=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return K1(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Eoe];if(!e)throw new Error(`Unable to find environment variable for $${Eoe}. Check if your runtime environment supports job summaries.`);try{yield GWe(e,sC.constants.R_OK|sC.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 s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return K1(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?zWe:HWe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return K1(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(Coe.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",m=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,m)}).join("");return this.wrap("tr",o)}).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:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).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}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},Xqt=new X1;var Z1=D(require("os"),1);var n$t=Z1.default.platform(),s$t=Z1.default.arch();var Ioe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Ioe||(Ioe={}));function fs(t){yoe("debug",{},t)}i(fs,"debug");var zs=D(require("fs"),1);var $Je=D(EU(),1);var zS=D(require("os"),1),dd=D(require("path"),1);var di=D(EU(),1);var pae=require("assert");var dae=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};var dHt=process.platform==="win32",pHt=process.platform==="darwin";function CU(t,e,r,n){return dae(this,void 0,void 0,function*(){if(r=di.clean(r)||r,n=n||zS.arch(),fs(`Caching tool ${e} ${r} ${n}`),fs(`source dir: ${t}`),!zs.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let s=yield zJe(e,r,n);for(let o of zs.readdirSync(t)){let a=dd.join(t,o);yield noe(a,s,{recursive:!0})}return VJe(e,r,n),s})}i(CU,"cacheDir");function mae(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||zS.arch(),!fae(e)){let s=HJe(t,r);e=YJe(s,e)}let n="";if(e){e=di.clean(e)||"";let s=dd.join(VS(),t,e,r);fs(`checking cache: ${s}`),zs.existsSync(s)&&zs.existsSync(`${s}.complete`)?(fs(`Found tool in cache ${t} ${e} ${r}`),n=s):fs("not found")}return n}i(mae,"find");function HJe(t,e){let r=[];e=e||zS.arch();let n=dd.join(VS(),t);if(zs.existsSync(n)){let s=zs.readdirSync(n);for(let o of s)if(fae(o)){let a=dd.join(n,o,e||"");zs.existsSync(a)&&zs.existsSync(`${a}.complete`)&&r.push(o)}}return r}i(HJe,"findAllVersions");function zJe(t,e,r){return dae(this,void 0,void 0,function*(){let n=dd.join(VS(),t,di.clean(e)||e,r||"");fs(`destination ${n}`);let s=`${n}.complete`;return yield H1(n),yield H1(s),yield um(n),n})}i(zJe,"_createToolPath");function VJe(t,e,r){let s=`${dd.join(VS(),t,di.clean(e)||e,r||"")}.complete`;zs.writeFileSync(s,""),fs("finished caching tool")}i(VJe,"_completeToolPath");function fae(t){let e=di.clean(t)||"";fs(`isExplicit: ${e}`);let r=di.valid(e)!=null;return fs(`explicit? ${r}`),r}i(fae,"isExplicitVersion");function YJe(t,e){let r="";fs(`evaluating ${t.length} versions`),t=t.sort((n,s)=>di.gt(n,s)?1:-1);for(let n=t.length-1;n>=0;n--){let s=t[n];if(di.satisfies(s,e)){r=s;break}}return r?fs(`matched: ${r}`):fs("match not found"),r}i(YJe,"evaluateVersions");function VS(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,pae.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}i(VS,"_getCacheDirectory");var VI=D(require("path"),1);var hae=D(require("os"),1);function pC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(pC,"toCommandValue");function gae(t,e,r){let n=new IU(t,e,r);process.stdout.write(n.toString()+hae.EOL)}i(gae,"issueCommand");var Aae="::",IU=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Aae+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 s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${JJe(s)}`)}}return e+=`${Aae}${jJe(this.message)}`,e}};function jJe(t){return pC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(jJe,"escapeData");function JJe(t){return pC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(JJe,"escapeProperty");var Eae=require("os"),mC=require("fs");var xU=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:KJe,appendFile:XJe,writeFile:ZJe}=mC.promises,yae="GITHUB_STEP_SUMMARY";var wU=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return xU(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[yae];if(!e)throw new Error(`Unable to find environment variable for $${yae}. Check if your runtime environment supports job summaries.`);try{yield KJe(e,mC.constants.R_OK|mC.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 s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return xU(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?ZJe:XJe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return xU(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(Eae.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",m=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,m)}).join("");return this.wrap("tr",o)}).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:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).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}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},NHt=new wU;var bU=D(require("os"),1);var QHt=bU.default.platform(),DHt=bU.default.arch();var Cae;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Cae||(Cae={}));function pi(t){gae("debug",{},t)}i(pi,"debug");var ph=D(require("fs"),1);function BU(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,pi(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,pi(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,pi(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,pi(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,pi(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}i(BU,"getOptions");var KS=D(require("path"),1);var ch=D(require("path"),1),pd=D(require("assert"),1);var md=process.platform==="win32";function zl(t){if(t=Hl(t),md&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=ch.dirname(t);return md&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Hl(e)),e}i(zl,"dirname");function YS(t,e){if((0,pd.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,pd.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),fC(e))return e;if(md){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,pd.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(ca(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,pd.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,pd.default)(fC(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||md&&t.endsWith("\\")||(t+=ch.sep),t+e}i(YS,"ensureAbsoluteRoot");function fC(t){return(0,pd.default)(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=ca(t),md?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}i(fC,"hasAbsoluteRoot");function AC(t){return(0,pd.default)(t,"isRooted parameter 'itemPath' must not be empty"),t=ca(t),md?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(AC,"hasRoot");function ca(t){return t=t||"",md?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(ca,"normalizeSeparators");function Hl(t){return t?(t=ca(t),!t.endsWith(ch.sep)||t===ch.sep||md&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}i(Hl,"safeTrimTrailingSeparator");var la;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(la||(la={}));var Iae=process.platform==="win32";function NU(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=Iae?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=Iae?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let o=!1,a=s,c=zl(a);for(;c!==a;){if(e[c]){o=!0;break}a=c,c=zl(a)}o||(r.push(n.searchPath),e[s]="included")}return r}i(NU,"getSearchPaths");function xae(t,e){let r=la.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}i(xae,"match");function wae(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}i(wae,"partialMatch");var zae=D(require("os"),1),dh=D(require("path"),1);var Ad=D(require("assert"),1),Vae=D(Hae(),1);var Am=D(require("path"),1);var uh=D(require("assert"),1);var b5e=process.platform==="win32",hm=class{static{i(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if((0,uh.default)(e,"Parameter 'itemPath' must not be empty"),e=Hl(e),!AC(e))this.segments=e.split(Am.sep);else{let r=e,n=zl(r);for(;n!==r;){let s=Am.basename(r);this.segments.unshift(s),r=n,n=zl(r)}this.segments.unshift(r)}else{(0,uh.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 hm(c).toString(),this.rootRegExp=new RegExp(t.regExpEscape(c[0]),Vl?"i":""),this.isImplicitPattern=r;let l={dot:!0,nobrace:!0,nocase:Vl,nocomment:!0,noext:!0,nonegate:!0};o=Vl?o.replace(/\\/g,"/"):o,this.minimatch=new S5e(o,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=ca(e),!e.endsWith(dh.sep)&&this.isImplicitPattern===!1&&(e=`${e}${dh.sep}`)):e=Hl(e),this.minimatch.match(e)?this.trailingSeparator?la.Directory:la.All:la.None}partialMatch(e){return e=Hl(e),zl(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Vl?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Vl?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){(0,Ad.default)(e,"pattern cannot be empty");let n=new hm(e).segments.map(s=>t.getLiteral(s));if((0,Ad.default)(n.every((s,o)=>(s!=="."||o===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),(0,Ad.default)(!AC(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=ca(e),e==="."||e.startsWith(`.${dh.sep}`))e=t.globEscape(process.cwd())+e.substr(1);else if(e==="~"||e.startsWith(`~${dh.sep}`))r=r||zae.homedir(),(0,Ad.default)(r,"Unable to determine HOME directory"),(0,Ad.default)(fC(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),e=t.globEscape(r)+e.substr(1);else if(Vl&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let s=YS("C:\\dummy-root",e.substr(0,2));e.length>2&&!s.endsWith("\\")&&(s+="\\"),e=t.globEscape(s)+e.substr(2)}else if(Vl&&(e==="\\"||e.match(/^\\[^\\]/))){let s=YS("C:\\dummy-root","\\");s.endsWith("\\")||(s+="\\"),e=t.globEscape(s)+e.substr(1)}else e=YS(t.globEscape(process.cwd()),e);return ca(e)}static getLiteral(e){let r="";for(let n=0;n=0){if(o.length>1)return"";if(o){r+=o,n=a;continue}}}}r+=s}return r}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}};var yC=class{static{i(this,"SearchState")}constructor(e,r){this.path=e,this.level=r}};var QU=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},B5e=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(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},hd=function(t){return this instanceof hd?(this.v=t,this):new hd(t)},R5e=function(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),s[Symbol.asyncIterator]=function(){return this},s;function a(f){return function(g){return Promise.resolve(g).then(f,p)}}function c(f,g){n[f]&&(s[f]=function(E){return new Promise(function(x,w){o.push([f,E,x,w])>1||l(f,E)})},g&&(s[f]=g(s[f])))}function l(f,g){try{u(n[f](g))}catch(E){m(o[0][3],E)}}function u(f){f.value instanceof hd?Promise.resolve(f.value.v).then(d,p):m(o[0][2],f)}function d(f){l("next",f)}function p(f){l("throw",f)}function m(f,g){f(g),o.shift(),o.length&&l(o[0][0],o[0][1])}},N5e=process.platform==="win32",JS=class t{static{i(this,"DefaultGlobber")}constructor(e){this.patterns=[],this.searchPaths=[],this.options=BU(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return QU(this,void 0,void 0,function*(){var e,r,n,s;let o=[];try{for(var a=!0,c=B5e(this.globGenerator()),l;l=yield c.next(),e=l.done,!e;a=!0){s=l.value,a=!1;let u=s;o.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 o})}globGenerator(){return R5e(this,arguments,i(function*(){let r=BU(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 gC(a.negate,!0,a.segments.concat("**")));let s=[];for(let a of NU(n)){pi(`Search path '${a}'`);try{yield hd(ph.promises.lstat(a))}catch(c){if(c.code==="ENOENT")continue;throw c}s.unshift(new yC(a,1))}let o=[];for(;s.length;){let a=s.pop(),c=xae(n,a.path),l=!!c||wae(n,a.path);if(!c&&!l)continue;let u=yield hd(t.stat(a,r,o));if(u&&!(r.excludeHiddenFiles&&KS.basename(a.path).match(/^\./)))if(u.isDirectory()){if(c&la.Directory&&r.matchDirectories)yield yield hd(a.path);else if(!l)continue;let d=a.level+1,p=(yield hd(ph.promises.readdir(a.path))).map(m=>new yC(KS.join(a.path,m),d));s.push(...p.reverse())}else c&la.File&&(yield yield hd(a.path))}},"globGenerator_1"))}static create(e,r){return QU(this,void 0,void 0,function*(){let n=new t(r);N5e&&(e=e.replace(/\r\n/g,` `),e=e.replace(/\r/g,` `));let s=e.split(` -`).map(o=>o.trim());for(let o of s)!o||o.startsWith("#")||n.patterns.push(new mC(o));return n.searchPaths.push(...IU(n.patterns)),n})}static stat(e,r,n){return BU(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield lh.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){di(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw o}else s=yield lh.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield lh.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===o)){di(`Symlink cycle detected for path '${e.path}' and realpath '${o}'`);return}n.push(o)}return s})}};var x5e=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function kae(t,e){return x5e(this,void 0,void 0,function*(){return yield VS.create(t,e)})}i(kae,"create");var cB=D(require("crypto"),1),mh=D(require("fs"),1),fm=D(require("path"),1),Nle=D(Ble(),1),Tle=D(require("util"),1);var CC;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(CC||(CC={}));var ys;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ys||(ys={}));var To;(function(t){t.GNU="gnu",t.BSD="bsd"})(To||(To={}));var iB=2,aB=5e3,YU=5e3,WU=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Rle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,IC="cache.tar",jU="manifest.txt",sVt=10*Math.pow(1024,3);var ph=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},TKe=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(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},PKe="1.0";function xC(){return ph(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=fm.join(n,"actions","temp")}let r=fm.join(e,cB.randomUUID());return yield am(r),r})}i(xC,"createTempDirectory");function tc(t){return mh.statSync(t).size}i(tc,"getArchiveFileSizeInBytes");function JU(t){return ph(this,void 0,void 0,function*(){var e,r,n,s,o;let a=[],c=(o=process.env.GITHUB_WORKSPACE)!==null&&o!==void 0?o:process.cwd(),l=yield kae(t.join(` -`),{implicitDescendants:!1});try{for(var u=!0,d=TKe(l.globGenerator()),p;p=yield d.next(),e=p.done,!e;u=!0){s=p.value,u=!1;let f=fm.relative(c,s).replace(new RegExp(`\\${fm.sep}`,"g"),"/");G(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(m){r={error:m}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}i(JU,"resolvePaths");function wC(t){return ph(this,void 0,void 0,function*(){return Tle.promisify(mh.unlink)(t)})}i(wC,"unlinkFile");function Ple(t){return ph(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield ud(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(s=>n+=s.toString(),"stdout"),stderr:i(s=>n+=s.toString(),"stderr")}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}i(Ple,"getVersion");function bC(){return ph(this,void 0,void 0,function*(){let t=yield Ple("zstd",["--quiet"]),e=Nle.clean(t);return G(`zstd version: ${e}`),t===""?ys.Gzip:ys.ZstdWithoutLong})}i(bC,"getCompressionMethod");function yd(t){return t===ys.Gzip?CC.Gzip:CC.Zstd}i(yd,"getCacheFileName");function vle(){return ph(this,void 0,void 0,function*(){return mh.existsSync(WU)?WU:(yield Ple("tar")).toLowerCase().includes("gnu tar")?Gs("tar"):""})}i(vle,"getGnuTarPathOnWindows");function KU(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(KU,"assertDefined");function fh(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(PKe),cB.createHash("sha256").update(n.join("|")).digest("hex")}i(fh,"getCacheVersion");function _le(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(_le,"getRuntimeToken");var BC=D(require("http"),1),e2=D(require("https"),1);function XU(t){let e=t.protocol==="https:";if(vKe(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}i(XU,"getProxyUrl");function vKe(t){if(!t.hostname)return!1;let e=t.hostname;if(_Ke(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 s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(vKe,"checkBypass");function _Ke(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(_Ke,"isLoopbackAddress");var uB=class extends URL{static{i(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=D(Yy(),1),Qle=D(eh(),1);var Dr=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Ir;(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"})(Ir||(Ir={}));var Es;(function(t){t.Accept="accept",t.ContentType="content-type"})(Es||(Es={}));var Vl;(function(t){t.ApplicationJson="application/json"})(Vl||(Vl={}));var DKe=[Ir.MovedPermanently,Ir.ResourceMoved,Ir.SeeOther,Ir.TemporaryRedirect,Ir.PermanentRedirect],kKe=[Ir.BadGateway,Ir.ServiceUnavailable,Ir.GatewayTimeout],LKe=["OPTIONS","GET","DELETE","HEAD"],OKe=10,MKe=5,rc=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},ZU=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Dr(this,void 0,void 0,function*(){return new Promise(e=>Dr(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 Dr(this,void 0,void 0,function*(){return new Promise(e=>Dr(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 Yl=class{static{i(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 Dr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Dr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Dr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Dr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Dr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Dr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Dr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return Dr(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Dr(this,arguments,void 0,function*(r,n={}){n[Es.Accept]=this._getExistingOrDefaultHeader(n,Es.Accept,Vl.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Dr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Es.Accept]=this._getExistingOrDefaultHeader(o,Es.Accept,Vl.ApplicationJson),o[Es.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Vl.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Dr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Es.Accept]=this._getExistingOrDefaultHeader(o,Es.Accept,Vl.ApplicationJson),o[Es.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Vl.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Dr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Es.Accept]=this._getExistingOrDefaultHeader(o,Es.Accept,Vl.ApplicationJson),o[Es.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Vl.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Dr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&LKe.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===Ir.Unauthorized){let p;for(let m of this.handlers)if(m.canHandleAuthentication(u)){p=m;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&DKe.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let m=new URL(p);if(o.protocol==="https:"&&o.protocol!==m.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(),m.hostname!==o.hostname)for(let f in s)f.toLowerCase()==="authorization"&&delete s[f];a=this._prepareRequest(e,m,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!kKe.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new ZU(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(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 s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?e2:BC;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},SC(this.requestOptions.headers),SC(e||{})):SC(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=SC(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=SC(this.requestOptions.headers)[Es.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[Es.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=XU(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||BC.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:";o?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=o?new e2.Agent(c):new BC.Agent(c),this._agent=r}return o&&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 s=e.protocol==="https:";return n=new Qle.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,s&&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 s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return Dr(this,void 0,void 0,function*(){e=Math.min(OKe,e);let r=MKe*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Dr(this,void 0,void 0,function*(){return new Promise((n,s)=>Dr(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===Ir.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let m=new Date(p);if(!isNaN(m.valueOf()))return m}return p}i(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(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new rc(d,o);p.result=a.result,s(p)}else n(a)}))})}},SC=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var FKe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};var Ah=class{static{i(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 FKe(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var zh=D(require("fs"),1),iAe=require("url");var nc=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};var Dle=require("node:os"),kle=D(require("node:util"),1),Lle=D(require("node:process"),1);function Ole(t,...e){Lle.default.stderr.write(`${kle.default.format(t,...e)}${Dle.EOL}`)}i(Ole,"log");var Mle=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Ule,t2=[],r2=[],dB=[];Mle&&n2(Mle);var qle=Object.assign(t=>$le(t),{enable:n2,enabled:s2,disable:UKe,log:Ole});function n2(t){Ule=t,t2=[],r2=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?r2.push(r.substring(1)):t2.push(r);for(let r of dB)r.enabled=s2(r.namespace)}i(n2,"enable");function s2(t){if(t.endsWith("*"))return!0;for(let e of r2)if(Fle(t,e))return!1;for(let e of t2)if(Fle(t,e))return!0;return!1}i(s2,"enabled");function Fle(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let m=[],f="";for(let g of e)g==="*"&&f==="*"||(f=g,m.push(g));r=m.join("")}let n=0,s=0,o=r.length,a=t.length,c=-1,l=-1;for(;n=0){if(s=c+1,n=l+1,n===a)return!1;for(;t[n]!==r[s];)if(n++,n===a)return!1;l=n,n++,s++;continue}else return!1;let u=n===t.length,d=s===r.length,p=s===r.length-1&&r[s]==="*";return u&&(d||p)}i(Fle,"namespaceMatches");function UKe(){let t=Ule||"";return n2(""),t}i(UKe,"disable");function $le(t){let e=Object.assign(r,{enabled:s2(t),destroy:qKe,log:qle.log,namespace:t,extend:$Ke});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),dB.push(e),e}i($le,"createDebugger");function qKe(){let t=dB.indexOf(this);return t>=0?(dB.splice(t,1),!0):!1}i(qKe,"destroy");function $Ke(t){let e=$le(`${this.namespace}:${t}`);return e.log=this.log,e}i($Ke,"extend");var hh=qle;var o2=["verbose","info","warning","error"],Gle={verbose:400,info:300,warning:200,error:100};function Hle(t,e){e.log=(...r)=>{t.log(...r)}}i(Hle,"patchLogMethod");function zle(t){return o2.includes(t)}i(zle,"isTypeSpecRuntimeLogLevel");function pB(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=hh(t.namespace);s.log=(...d)=>{hh.log(...d)};function o(d){if(d&&!zle(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${o2.join(",")}`);n=d;let p=[];for(let m of e)a(m)&&p.push(m.namespace);hh.enable(p.join(","))}i(o,"contextSetLogLevel"),r&&(zle(r)?o(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${o2.join(", ")}.`));function a(d){return!!(n&&Gle[d.level]<=Gle[n])}i(a,"shouldEnable");function c(d,p){let m=Object.assign(d.extend(p),{level:p});if(Hle(d,m),a(m)){let f=hh.disable();hh.enable(f+","+m.namespace)}return e.add(m),m}i(c,"createLogger");function l(){return n}i(l,"contextGetLogLevel");function u(d){let p=s.extend(d);return Hle(s,p),{error:c(p,"error"),warning:c(p,"warning"),info:c(p,"info"),verbose:c(p,"verbose")}}return i(u,"contextCreateClientLogger"),{setLogLevel:o,getLogLevel:l,createClientLogger:u,logger:s}}i(pB,"createLoggerContext");var Vle=pB({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),GKe=Vle.logger;function RC(t){return Vle.createClientLogger(t)}i(RC,"createClientLogger");function mB(t){return t.toLowerCase()}i(mB,"normalizeName");function*HKe(t){for(let e of t.values())yield[e.name,e.value]}i(HKe,"headerIterator");var i2=class{static{i(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(mB(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(mB(e))?.value}has(e){return this._headersMap.has(mB(e))}delete(e){this._headersMap.delete(mB(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]=n.value;else for(let[n,s]of this._headersMap)r[n]=s.value;return r}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return HKe(this._headersMap)}};function Po(t){return new i2(t)}i(Po,"createHttpHeaders");function Am(){return crypto.randomUUID()}i(Am,"randomUUID");var a2=class{static{i(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??Po(),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||Am(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function fB(t){return new a2(t)}i(fB,"createPipelineRequest");var Yle=new Set(["Deserialize","Serialize","Retry","Sign"]),c2=class t{static{i(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&&!Yle.has(r.phase))throw new Error(`Invalid phase name: ${r.phase}`);if(r.afterPhase&&!Yle.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((o,a)=>c=>a.sendRequest(c,o),o=>e.sendRequest(o))(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(g){return{name:g,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}i(n,"createPhase");let s=n("Serialize"),o=n("None"),a=n("Deserialize"),c=n("Retry"),l=n("Sign"),u=[s,o,a,c,l];function d(g){return g==="Retry"?c:g==="Serialize"?s:g==="Deserialize"?a:g==="Sign"?l:o}i(d,"getPhase");for(let g of this._policies){let E=g.policy,x=g.options,w=E.name;if(r.has(w))throw new Error("Duplicate policy names not allowed in pipeline");let S={policy:E,dependsOn:new Set,dependants:new Set};x.afterPhase&&(S.afterPhase=d(x.afterPhase),S.afterPhase.hasAfterPolicies=!0),r.set(w,S),d(x.phase).policies.add(S)}for(let g of this._policies){let{policy:E,options:x}=g,w=E.name,S=r.get(w);if(!S)throw new Error(`Missing node for policy ${w}`);if(x.afterPolicies)for(let P of x.afterPolicies){let Q=r.get(P);Q&&(S.dependsOn.add(Q),Q.dependants.add(S))}if(x.beforePolicies)for(let P of x.beforePolicies){let Q=r.get(P);Q&&(Q.dependsOn.add(S),S.dependants.add(Q))}}function p(g){g.hasRun=!0;for(let E of g.policies)if(!(E.afterPhase&&(!E.afterPhase.hasRun||E.afterPhase.policies.size))&&E.dependsOn.size===0){e.push(E.policy);for(let x of E.dependants)x.dependsOn.delete(E);r.delete(E.policy.name),g.policies.delete(E)}}i(p,"walkPhase");function m(){for(let g of u){if(p(g),g.policies.size>0&&g!==o){o.hasRun||p(o);return}g.hasAfterPolicies&&p(o)}}i(m,"walkPhases");let f=0;for(;r.size>0;){f++;let g=e.length;if(m(),e.length<=g&&f>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}};function AB(){return c2.create()}i(AB,"createEmptyPipeline");function gh(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(gh,"isObject");function hm(t){if(gh(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(hm,"isError");var Wle=require("node:util"),jle=Wle.inspect.custom;var l2="REDACTED",zKe=["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"],VKe=["api-version"],la=class{static{i(this,"Sanitizer")}allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:r=[]}={}){e=zKe.concat(e),r=VKe.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,s)=>{if(s instanceof Error)return{...s,name:s.name,message:s.message};if(n==="headers")return this.sanitizeHeaders(s);if(n==="url")return this.sanitizeUrl(s);if(n==="query")return this.sanitizeQuery(s);if(n==="body")return;if(n==="response")return;if(n==="operationSpec")return;if(Array.isArray(s)||gh(s)){if(r.has(s))return"[Circular]";r.add(s)}return s},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,l2);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]=l2;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]=l2;return r}};var YKe=new la,Cs=class t extends Error{static{i(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,jle,{value:i(()=>`RestError: ${this.message} - ${YKe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function hB(t){return t instanceof Cs?!0:hm(t)&&t.name==="RestError"}i(hB,"isRestError");function zs(t,e){return Buffer.from(t,e)}i(zs,"stringToUint8Array");var gB=D(require("node:http"),1),yB=D(require("node:https"),1),u2=D(require("node:zlib"),1),Kle=require("node:stream");var fi=RC("ts-http-runtime");var WKe={};function NC(t){return t&&typeof t.pipe=="function"}i(NC,"isReadableStream");function Jle(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{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)})}i(Jle,"isStreamComplete");function Xle(t){return t&&typeof t.byteLength=="number"}i(Xle,"isArrayBuffer");var EB=class extends Kle.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},d2=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new nc("The operation was aborted. Request has already been canceled.");n=i(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new la;fi.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let o=e.headers.get("Accept-Encoding"),a=o?.includes("gzip")||o?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=XKe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let g=e.onUploadProgress,E=new EB(g);E.on("error",x=>{fi.error("Error in upload progress",x)}),NC(c)?c.pipe(E):E.end(c),c=E}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=jKe(u),m={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),m;l=a?JKe(u,d):u;let f=e.onDownloadProgress;if(f){let g=new EB(f);g.on("error",E=>{fi.error("Error in download progress",E)}),l.pipe(g),l=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(m.status)?m.readableStreamBody=l:m.bodyAsText=await KKe(l),m}finally{if(e.abortSignal&&n){let u=Promise.resolve();NC(c)&&(u=Jle(c));let d=Promise.resolve();NC(l)&&(d=Jle(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{fi.warning("Error when cleaning up abortListener on httpRequest",p)})}}}makeRequest(e,r,n){let s=new URL(e.url),o=s.protocol!=="https:";if(o&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,o),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=o?gB.default.request(c,l):yB.default.request(c,l);d.once("error",p=>{u(new Cs(p.message,{code:p.code??Cs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let p=new nc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&NC(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):Xle(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(fi.error("Unrecognized body type",n),u(new Cs("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?gB.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new gB.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return yB.default.globalAgent;let s=e.tlsSettings??WKe,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(fi.info("No cached TLS Agent exist, creating a new Agent"),o=new yB.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function jKe(t){let e=Po();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}i(jKe,"getResponseHeaders");function JKe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=u2.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=u2.default.createInflate();return t.pipe(n),n}return t}i(JKe,"getDecodedResponseStream");function KKe(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new Cs(`Error reading response as text: ${s.message}`,{code:Cs.PARSE_ERROR}))})})}i(KKe,"streamToText");function XKe(t){return t?Buffer.isBuffer(t)?t.length:NC(t)?null:Xle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}i(XKe,"getBodyLength");function Zle(){return new d2}i(Zle,"createNodeHttpClient");function CB(){return Zle()}i(CB,"createDefaultHttpClient");var p2="logPolicy";function IB(t={}){let e=t.logger??fi.info,r=new la({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:p2,async sendRequest(n,s){if(!e.enabled)return s(n);e(`Request: ${r.sanitize(n)}`);let o=await s(n);return e(`Response status code: ${o.status}`),e(`Headers: ${r.sanitize(o.headers)}`),o}}}i(IB,"logPolicy");var xB="redirectPolicy",eue=["GET","HEAD"];function wB(t={}){let{maxRetries:e=20}=t;return{name:xB,async sendRequest(r,n){let s=await n(r);return tue(n,s,e)}}}i(wB,"redirectPolicy");async function tue(t,e,r,n=0){let{request:s,status:o,headers:a}=e,c=a.get("location");if(c&&(o===300||o===301&&eue.includes(s.method)||o===302&&eue.includes(s.method)||o===303&&s.method==="POST"||o===307)&&n{let o,a,c=i(()=>s(new nc(r?.abortErrorMsg?r?.abortErrorMsg:ZKe)),"rejectOnAbort"),l=i(()=>{r?.abortSignal&&a&&r.abortSignal.removeEventListener("abort",a)},"removeListeners");if(a=i(()=>(o&&clearTimeout(o),l(),c()),"onAborted"),r?.abortSignal&&r.abortSignal.aborted)return c();o=setTimeout(()=>{l(),n(e)},t),r?.abortSignal&&r.abortSignal.addEventListener("abort",a)})}i(sue,"delay");function oue(t,e){let r=t.headers.get(e);if(!r)return;let n=Number(r);if(!Number.isNaN(n))return n}i(oue,"parseHeaderValueAsNumber");var m2="Retry-After",eXe=["retry-after-ms","x-ms-retry-after-ms",m2];function iue(t){if(t&&[429,503].includes(t.status))try{for(let s of eXe){let o=oue(t,s);if(o===0||o)return o*(s===m2?1e3:1)}let e=t.headers.get(m2);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}i(iue,"getRetryAfterInMs");function aue(t){return Number.isFinite(iue(t))}i(aue,"isThrottlingRetryResponse");function f2(){return{name:"throttlingRetryStrategy",retry({response:t}){let e=iue(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}i(f2,"throttlingRetryStrategy");var tXe=1e3,rXe=1e3*64;function RB(t={}){let e=t.retryDelayInMs??tXe,r=t.maxRetryDelayInMs??rXe;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:o}){let a=sXe(o),c=a&&t.ignoreSystemErrors,l=nXe(s),u=l&&t.ignoreHttpStatusCodes;return s&&(aue(s)||!l)||u||c?{skipStrategy:!0}:o&&!a&&!l?{errorToThrow:o}:BB(n,{retryDelayInMs:e,maxRetryDelayInMs:r})}}}i(RB,"exponentialRetryStrategy");function nXe(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}i(nXe,"isExponentialRetryResponse");function sXe(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}i(sXe,"isSystemError");var oXe=RC("ts-http-runtime retryPolicy"),iXe="retryPolicy";function ym(t,e={maxRetries:3}){let r=e.logger||oXe;return{name:iXe,async sendRequest(n,s){let o,a,c=-1;e:for(;;){c+=1,o=void 0,a=void 0;try{r.info(`Retry ${c}: Attempting to send request`,n.requestId),o=await s(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;o=a.response}if(n.abortSignal?.aborted)throw r.error(`Retry ${c}: Request aborted.`),new nc;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(o)return o;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:o,responseError:a});if(d.skipStrategy){u.info(`Retry ${c}: Skipped.`);continue t}let{errorToThrow:p,retryAfterInMs:m,redirectTo:f}=d;if(p)throw u.error(`Retry ${c}: Retry strategy ${l.name} throws error:`,p),p;if(m||m===0){u.info(`Retry ${c}: Retry strategy ${l.name} retries after ${m}`),await sue(m,void 0,{abortSignal:n.abortSignal});continue e}if(f){u.info(`Retry ${c}: Retry strategy ${l.name} redirects to ${f}`),n.url=f;continue e}}if(a)throw r.info("None of the retry strategies could work with the received error. Throwing it."),a;if(o)return r.info("None of the retry strategies could work with the received response. Returning it."),o}}}}i(ym,"retryPolicy");var A2="defaultRetryPolicy";function NB(t={}){return{name:A2,sendRequest:ym([f2(),RB(t)],{maxRetries:t.maxRetries??3}).sendRequest}}i(NB,"defaultRetryPolicy");var cue=typeof window<"u"&&typeof window.document<"u",lue=typeof self=="object"&&typeof self?.importScripts=="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),uue=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",due=typeof Bun<"u"&&typeof Bun.version<"u",Em=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.node;var pue=typeof navigator<"u"&&navigator?.product==="ReactNative";var h2="formDataPolicy";function aXe(t){let e={};for(let[r,n]of t.entries())e[r]??=[],e[r].push(n);return e}i(aXe,"formDataToFormDataMap");function TB(){return{name:h2,async sendRequest(t,e){if(Em&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=aXe(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=cXe(t.formData):await lXe(t.formData,t),t.formData=void 0}return e(t)}}}i(TB,"formDataPolicy");function cXe(t){let e=new URLSearchParams;for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.append(r,s.toString());else e.append(r,n.toString());return e.toString()}i(cXe,"wwwFormUrlEncode");async function lXe(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[s,o]of Object.entries(t))for(let a of Array.isArray(o)?o:[o])if(typeof a=="string")n.push({headers:Po({"Content-Disposition":`form-data; name="${s}"`}),body:zs(a,"utf-8")});else{if(a==null||typeof a!="object")throw new Error(`Unexpected value for key ${s}: ${a}. Value should be serialized to string first.`);{let c=a.name||"blob",l=Po();l.set("Content-Disposition",`form-data; name="${s}"; filename="${c}"`),l.set("Content-Type",a.type||"application/octet-stream"),n.push({headers:l,body:a})}}e.multipartBody={parts:n}}i(lXe,"prepareFormData");var Jue=D(Oue(),1),Kue=D(Vue(),1);var g7e="HTTPS_PROXY",y7e="HTTP_PROXY",E7e="ALL_PROXY",C7e="NO_PROXY",w2="proxyPolicy",Yue=[],Xue=!1,I7e=new Map;function MB(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}i(MB,"getEnvironmentValue");function Zue(){if(!process)return;let t=MB(g7e),e=MB(E7e),r=MB(y7e);return t||e||r}i(Zue,"loadEnvironmentProxyValue");function x7e(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let o of e)o[0]==="."?(n.endsWith(o)||n.length===o.length-1&&n===o.slice(1))&&(s=!0):n===o&&(s=!0);return r?.set(n,s),s}i(x7e,"isBypassed");function w7e(){let t=MB(C7e);return Xue=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}i(w7e,"loadNoProxy");function b2(t){if(!t&&(t=Zue(),!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}}i(b2,"getDefaultProxySettings");function b7e(){let t=Zue();return t?new URL(t):void 0}i(b7e,"getDefaultProxySettingsInternal");function Wue(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}i(Wue,"getUrlFromProxySettings");function jue(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&fi.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let o=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new Kue.HttpProxyAgent(r,{headers:o})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new Jue.HttpsProxyAgent(r,{headers:o})),t.agent=e.httpsProxyAgent)}i(jue,"setProxyAgentOnRequest");function FB(t,e){Xue||Yue.push(...w7e());let r=t?Wue(t):b7e(),n={};return{name:w2,async sendRequest(s,o){return!s.proxySettings&&r&&!x7e(s.url,e?.customNoProxyList??Yue,e?.customNoProxyList?void 0:I7e)?jue(s,n,r):s.proxySettings&&jue(s,n,Wue(s.proxySettings)),o(s)}}}i(FB,"proxyPolicy");var S2="agentPolicy";function UB(t){return{name:S2,sendRequest:i(async(e,r)=>(e.agent||(e.agent=t),r(e)),"sendRequest")}}i(UB,"agentPolicy");var B2="tlsPolicy";function qB(t){return{name:B2,sendRequest:i(async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e)),"sendRequest")}}i(qB,"tlsPolicy");function $B(t){return typeof t.stream=="function"}i($B,"isBlob");var GB=require("stream");async function*ede(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}i(ede,"streamAsyncIterator");function S7e(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=ede.bind(t)),t.values||(t.values=ede.bind(t))}i(S7e,"makeAsyncIterable");function tde(t){return t instanceof ReadableStream?(S7e(t),GB.Readable.fromWeb(t)):t}i(tde,"ensureNodeStream");function B7e(t){return t instanceof Uint8Array?GB.Readable.from(Buffer.from(t)):$B(t)?tde(t.stream()):tde(t)}i(B7e,"toStream");async function rde(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(B7e);return GB.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}i(rde,"concat");function R7e(){return`----AzSDKFormBoundary${Am()}`}i(R7e,"generateBoundary");function N7e(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r -`;return e}i(N7e,"encodeHeaders");function T7e(t){return t instanceof Uint8Array?t.byteLength:$B(t)?t.size===-1?void 0:t.size:void 0}i(T7e,"getLength");function P7e(t){let e=0;for(let r of t){let n=T7e(r);if(n===void 0)return;e+=n}return e}i(P7e,"getTotalLength");async function v7e(t,e,r){let n=[zs(`--${r}`,"utf-8"),...e.flatMap(o=>[zs(`\r -`,"utf-8"),zs(N7e(o.headers),"utf-8"),zs(`\r -`,"utf-8"),o.body,zs(`\r ---${r}`,"utf-8")]),zs(`--\r +`).map(o=>o.trim());for(let o of s)!o||o.startsWith("#")||n.patterns.push(new gC(o));return n.searchPaths.push(...NU(n.patterns)),n})}static stat(e,r,n){return QU(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield ph.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){pi(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw o}else s=yield ph.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield ph.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===o)){pi(`Symlink cycle detected for path '${e.path}' and realpath '${o}'`);return}n.push(o)}return s})}};var T5e=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function Yae(t,e){return T5e(this,void 0,void 0,function*(){return yield JS.create(t,e)})}i(Yae,"create");var pB=D(require("crypto"),1),hh=D(require("fs"),1),gm=D(require("path"),1),Ule=D(Mle(),1),qle=D(require("util"),1);var bC;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(bC||(bC={}));var Es;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Es||(Es={}));var vo;(function(t){t.GNU="gnu",t.BSD="bsd"})(vo||(vo={}));var uB=2,dB=5e3,e2=5e3,t2=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Fle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,SC="cache.tar",r2="manifest.txt",dVt=10*Math.pow(1024,3);var Ah=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},LKe=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(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},OKe="1.0";function BC(){return Ah(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=gm.join(n,"actions","temp")}let r=gm.join(e,pB.randomUUID());return yield um(r),r})}i(BC,"createTempDirectory");function tc(t){return hh.statSync(t).size}i(tc,"getArchiveFileSizeInBytes");function n2(t){return Ah(this,void 0,void 0,function*(){var e,r,n,s,o;let a=[],c=(o=process.env.GITHUB_WORKSPACE)!==null&&o!==void 0?o:process.cwd(),l=yield Yae(t.join(` +`),{implicitDescendants:!1});try{for(var u=!0,d=LKe(l.globGenerator()),p;p=yield d.next(),e=p.done,!e;u=!0){s=p.value,u=!1;let f=gm.relative(c,s).replace(new RegExp(`\\${gm.sep}`,"g"),"/");G(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(m){r={error:m}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}i(n2,"resolvePaths");function RC(t){return Ah(this,void 0,void 0,function*(){return qle.promisify(hh.unlink)(t)})}i(RC,"unlinkFile");function $le(t){return Ah(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield ud(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(s=>n+=s.toString(),"stdout"),stderr:i(s=>n+=s.toString(),"stderr")}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}i($le,"getVersion");function NC(){return Ah(this,void 0,void 0,function*(){let t=yield $le("zstd",["--quiet"]),e=Ule.clean(t);return G(`zstd version: ${e}`),t===""?Es.Gzip:Es.ZstdWithoutLong})}i(NC,"getCompressionMethod");function yd(t){return t===Es.Gzip?bC.Gzip:bC.Zstd}i(yd,"getCacheFileName");function Gle(){return Ah(this,void 0,void 0,function*(){return hh.existsSync(t2)?t2:(yield $le("tar")).toLowerCase().includes("gnu tar")?Hs("tar"):""})}i(Gle,"getGnuTarPathOnWindows");function s2(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(s2,"assertDefined");function gh(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(OKe),pB.createHash("sha256").update(n.join("|")).digest("hex")}i(gh,"getCacheVersion");function Hle(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(Hle,"getRuntimeToken");var PC=D(require("http"),1),a2=D(require("https"),1);function o2(t){let e=t.protocol==="https:";if(MKe(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 fB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new fB(`http://${r}`)}else return}i(o2,"getProxyUrl");function MKe(t){if(!t.hostname)return!1;let e=t.hostname;if(FKe(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 s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(MKe,"checkBypass");function FKe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(FKe,"isLoopbackAddress");var fB=class extends URL{static{i(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=D(Jy(),1),zle=D(nh(),1);var kr=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},xr;(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"})(xr||(xr={}));var Cs;(function(t){t.Accept="accept",t.ContentType="content-type"})(Cs||(Cs={}));var Yl;(function(t){t.ApplicationJson="application/json"})(Yl||(Yl={}));var qKe=[xr.MovedPermanently,xr.ResourceMoved,xr.SeeOther,xr.TemporaryRedirect,xr.PermanentRedirect],$Ke=[xr.BadGateway,xr.ServiceUnavailable,xr.GatewayTimeout],GKe=["OPTIONS","GET","DELETE","HEAD"],HKe=10,zKe=5,rc=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},i2=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return kr(this,void 0,void 0,function*(){return new Promise(e=>kr(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 kr(this,void 0,void 0,function*(){return new Promise(e=>kr(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 Wl=class{static{i(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 kr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return kr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return kr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return kr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return kr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return kr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return kr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return kr(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return kr(this,arguments,void 0,function*(r,n={}){n[Cs.Accept]=this._getExistingOrDefaultHeader(n,Cs.Accept,Yl.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return kr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Cs.Accept]=this._getExistingOrDefaultHeader(o,Cs.Accept,Yl.ApplicationJson),o[Cs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Yl.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return kr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Cs.Accept]=this._getExistingOrDefaultHeader(o,Cs.Accept,Yl.ApplicationJson),o[Cs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Yl.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return kr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Cs.Accept]=this._getExistingOrDefaultHeader(o,Cs.Accept,Yl.ApplicationJson),o[Cs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Yl.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return kr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&GKe.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===xr.Unauthorized){let p;for(let m of this.handlers)if(m.canHandleAuthentication(u)){p=m;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&qKe.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let m=new URL(p);if(o.protocol==="https:"&&o.protocol!==m.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(),m.hostname!==o.hostname)for(let f in s)f.toLowerCase()==="authorization"&&delete s[f];a=this._prepareRequest(e,m,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!$Ke.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new i2(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(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=o2(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?a2:PC;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},TC(this.requestOptions.headers),TC(e||{})):TC(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=TC(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=TC(this.requestOptions.headers)[Cs.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[Cs.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=o2(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||PC.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:";o?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=o?new a2.Agent(c):new PC.Agent(c),this._agent=r}return o&&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 s=e.protocol==="https:";return n=new zle.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,s&&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 s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return kr(this,void 0,void 0,function*(){e=Math.min(HKe,e);let r=zKe*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return kr(this,void 0,void 0,function*(){return new Promise((n,s)=>kr(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===xr.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let m=new Date(p);if(!isNaN(m.valueOf()))return m}return p}i(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(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new rc(d,o);p.result=a.result,s(p)}else n(a)}))})}},TC=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var VKe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};var yh=class{static{i(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 VKe(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var Wh=D(require("fs"),1),yAe=require("url");var nc=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};var Vle=require("node:os"),Yle=D(require("node:util"),1),Wle=D(require("node:process"),1);function jle(t,...e){Wle.default.stderr.write(`${Yle.default.format(t,...e)}${Vle.EOL}`)}i(jle,"log");var Jle=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Xle,c2=[],l2=[],AB=[];Jle&&u2(Jle);var Zle=Object.assign(t=>eue(t),{enable:u2,enabled:d2,disable:YKe,log:jle});function u2(t){Xle=t,c2=[],l2=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?l2.push(r.substring(1)):c2.push(r);for(let r of AB)r.enabled=d2(r.namespace)}i(u2,"enable");function d2(t){if(t.endsWith("*"))return!0;for(let e of l2)if(Kle(t,e))return!1;for(let e of c2)if(Kle(t,e))return!0;return!1}i(d2,"enabled");function Kle(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let m=[],f="";for(let g of e)g==="*"&&f==="*"||(f=g,m.push(g));r=m.join("")}let n=0,s=0,o=r.length,a=t.length,c=-1,l=-1;for(;n=0){if(s=c+1,n=l+1,n===a)return!1;for(;t[n]!==r[s];)if(n++,n===a)return!1;l=n,n++,s++;continue}else return!1;let u=n===t.length,d=s===r.length,p=s===r.length-1&&r[s]==="*";return u&&(d||p)}i(Kle,"namespaceMatches");function YKe(){let t=Xle||"";return u2(""),t}i(YKe,"disable");function eue(t){let e=Object.assign(r,{enabled:d2(t),destroy:WKe,log:Zle.log,namespace:t,extend:jKe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),AB.push(e),e}i(eue,"createDebugger");function WKe(){let t=AB.indexOf(this);return t>=0?(AB.splice(t,1),!0):!1}i(WKe,"destroy");function jKe(t){let e=eue(`${this.namespace}:${t}`);return e.log=this.log,e}i(jKe,"extend");var Eh=Zle;var p2=["verbose","info","warning","error"],tue={verbose:400,info:300,warning:200,error:100};function rue(t,e){e.log=(...r)=>{t.log(...r)}}i(rue,"patchLogMethod");function nue(t){return p2.includes(t)}i(nue,"isTypeSpecRuntimeLogLevel");function hB(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=Eh(t.namespace);s.log=(...d)=>{Eh.log(...d)};function o(d){if(d&&!nue(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${p2.join(",")}`);n=d;let p=[];for(let m of e)a(m)&&p.push(m.namespace);Eh.enable(p.join(","))}i(o,"contextSetLogLevel"),r&&(nue(r)?o(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${p2.join(", ")}.`));function a(d){return!!(n&&tue[d.level]<=tue[n])}i(a,"shouldEnable");function c(d,p){let m=Object.assign(d.extend(p),{level:p});if(rue(d,m),a(m)){let f=Eh.disable();Eh.enable(f+","+m.namespace)}return e.add(m),m}i(c,"createLogger");function l(){return n}i(l,"contextGetLogLevel");function u(d){let p=s.extend(d);return rue(s,p),{error:c(p,"error"),warning:c(p,"warning"),info:c(p,"info"),verbose:c(p,"verbose")}}return i(u,"contextCreateClientLogger"),{setLogLevel:o,getLogLevel:l,createClientLogger:u,logger:s}}i(hB,"createLoggerContext");var sue=hB({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),JKe=sue.logger;function vC(t){return sue.createClientLogger(t)}i(vC,"createClientLogger");function gB(t){return t.toLowerCase()}i(gB,"normalizeName");function*KKe(t){for(let e of t.values())yield[e.name,e.value]}i(KKe,"headerIterator");var m2=class{static{i(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(gB(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(gB(e))?.value}has(e){return this._headersMap.has(gB(e))}delete(e){this._headersMap.delete(gB(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]=n.value;else for(let[n,s]of this._headersMap)r[n]=s.value;return r}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return KKe(this._headersMap)}};function _o(t){return new m2(t)}i(_o,"createHttpHeaders");function ym(){return crypto.randomUUID()}i(ym,"randomUUID");var f2=class{static{i(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??_o(),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||ym(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function yB(t){return new f2(t)}i(yB,"createPipelineRequest");var oue=new Set(["Deserialize","Serialize","Retry","Sign"]),A2=class t{static{i(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((o,a)=>c=>a.sendRequest(c,o),o=>e.sendRequest(o))(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(g){return{name:g,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}i(n,"createPhase");let s=n("Serialize"),o=n("None"),a=n("Deserialize"),c=n("Retry"),l=n("Sign"),u=[s,o,a,c,l];function d(g){return g==="Retry"?c:g==="Serialize"?s:g==="Deserialize"?a:g==="Sign"?l:o}i(d,"getPhase");for(let g of this._policies){let E=g.policy,x=g.options,w=E.name;if(r.has(w))throw new Error("Duplicate policy names not allowed in pipeline");let S={policy:E,dependsOn:new Set,dependants:new Set};x.afterPhase&&(S.afterPhase=d(x.afterPhase),S.afterPhase.hasAfterPolicies=!0),r.set(w,S),d(x.phase).policies.add(S)}for(let g of this._policies){let{policy:E,options:x}=g,w=E.name,S=r.get(w);if(!S)throw new Error(`Missing node for policy ${w}`);if(x.afterPolicies)for(let P of x.afterPolicies){let Q=r.get(P);Q&&(S.dependsOn.add(Q),Q.dependants.add(S))}if(x.beforePolicies)for(let P of x.beforePolicies){let Q=r.get(P);Q&&(Q.dependsOn.add(S),S.dependants.add(Q))}}function p(g){g.hasRun=!0;for(let E of g.policies)if(!(E.afterPhase&&(!E.afterPhase.hasRun||E.afterPhase.policies.size))&&E.dependsOn.size===0){e.push(E.policy);for(let x of E.dependants)x.dependsOn.delete(E);r.delete(E.policy.name),g.policies.delete(E)}}i(p,"walkPhase");function m(){for(let g of u){if(p(g),g.policies.size>0&&g!==o){o.hasRun||p(o);return}g.hasAfterPolicies&&p(o)}}i(m,"walkPhases");let f=0;for(;r.size>0;){f++;let g=e.length;if(m(),e.length<=g&&f>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}};function EB(){return A2.create()}i(EB,"createEmptyPipeline");function Ch(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(Ch,"isObject");function Em(t){if(Ch(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(Em,"isError");var iue=require("node:util"),aue=iue.inspect.custom;var h2="REDACTED",XKe=["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"],ZKe=["api-version"],ua=class{static{i(this,"Sanitizer")}allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:r=[]}={}){e=XKe.concat(e),r=ZKe.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,s)=>{if(s instanceof Error)return{...s,name:s.name,message:s.message};if(n==="headers")return this.sanitizeHeaders(s);if(n==="url")return this.sanitizeUrl(s);if(n==="query")return this.sanitizeQuery(s);if(n==="body")return;if(n==="response")return;if(n==="operationSpec")return;if(Array.isArray(s)||Ch(s)){if(r.has(s))return"[Circular]";r.add(s)}return s},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,h2);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]=h2;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]=h2;return r}};var eXe=new ua,Is=class t extends Error{static{i(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,aue,{value:i(()=>`RestError: ${this.message} + ${eXe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function CB(t){return t instanceof Is?!0:Em(t)&&t.name==="RestError"}i(CB,"isRestError");function Vs(t,e){return Buffer.from(t,e)}i(Vs,"stringToUint8Array");var IB=D(require("node:http"),1),xB=D(require("node:https"),1),g2=D(require("node:zlib"),1),lue=require("node:stream");var Ai=vC("ts-http-runtime");var tXe={};function _C(t){return t&&typeof t.pipe=="function"}i(_C,"isReadableStream");function cue(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{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)})}i(cue,"isStreamComplete");function uue(t){return t&&typeof t.byteLength=="number"}i(uue,"isArrayBuffer");var wB=class extends lue.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},y2=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new nc("The operation was aborted. Request has already been canceled.");n=i(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new ua;Ai.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let o=e.headers.get("Accept-Encoding"),a=o?.includes("gzip")||o?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=oXe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let g=e.onUploadProgress,E=new wB(g);E.on("error",x=>{Ai.error("Error in upload progress",x)}),_C(c)?c.pipe(E):E.end(c),c=E}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=rXe(u),m={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),m;l=a?nXe(u,d):u;let f=e.onDownloadProgress;if(f){let g=new wB(f);g.on("error",E=>{Ai.error("Error in download progress",E)}),l.pipe(g),l=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(m.status)?m.readableStreamBody=l:m.bodyAsText=await sXe(l),m}finally{if(e.abortSignal&&n){let u=Promise.resolve();_C(c)&&(u=cue(c));let d=Promise.resolve();_C(l)&&(d=cue(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{Ai.warning("Error when cleaning up abortListener on httpRequest",p)})}}}makeRequest(e,r,n){let s=new URL(e.url),o=s.protocol!=="https:";if(o&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,o),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=o?IB.default.request(c,l):xB.default.request(c,l);d.once("error",p=>{u(new Is(p.message,{code:p.code??Is.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let p=new nc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&_C(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)):(Ai.error("Unrecognized body type",n),u(new Is("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?IB.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new IB.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return xB.default.globalAgent;let s=e.tlsSettings??tXe,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(Ai.info("No cached TLS Agent exist, creating a new Agent"),o=new xB.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function rXe(t){let e=_o();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}i(rXe,"getResponseHeaders");function nXe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=g2.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=g2.default.createInflate();return t.pipe(n),n}return t}i(nXe,"getDecodedResponseStream");function sXe(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new Is(`Error reading response as text: ${s.message}`,{code:Is.PARSE_ERROR}))})})}i(sXe,"streamToText");function oXe(t){return t?Buffer.isBuffer(t)?t.length:_C(t)?null:uue(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}i(oXe,"getBodyLength");function due(){return new y2}i(due,"createNodeHttpClient");function bB(){return due()}i(bB,"createDefaultHttpClient");var E2="logPolicy";function SB(t={}){let e=t.logger??Ai.info,r=new ua({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:E2,async sendRequest(n,s){if(!e.enabled)return s(n);e(`Request: ${r.sanitize(n)}`);let o=await s(n);return e(`Response status code: ${o.status}`),e(`Headers: ${r.sanitize(o.headers)}`),o}}}i(SB,"logPolicy");var BB="redirectPolicy",pue=["GET","HEAD"];function RB(t={}){let{maxRetries:e=20}=t;return{name:BB,async sendRequest(r,n){let s=await n(r);return mue(n,s,e)}}}i(RB,"redirectPolicy");async function mue(t,e,r,n=0){let{request:s,status:o,headers:a}=e,c=a.get("location");if(c&&(o===300||o===301&&pue.includes(s.method)||o===302&&pue.includes(s.method)||o===303&&s.method==="POST"||o===307)&&n{let o,a,c=i(()=>s(new nc(r?.abortErrorMsg?r?.abortErrorMsg:iXe)),"rejectOnAbort"),l=i(()=>{r?.abortSignal&&a&&r.abortSignal.removeEventListener("abort",a)},"removeListeners");if(a=i(()=>(o&&clearTimeout(o),l(),c()),"onAborted"),r?.abortSignal&&r.abortSignal.aborted)return c();o=setTimeout(()=>{l(),n(e)},t),r?.abortSignal&&r.abortSignal.addEventListener("abort",a)})}i(hue,"delay");function gue(t,e){let r=t.headers.get(e);if(!r)return;let n=Number(r);if(!Number.isNaN(n))return n}i(gue,"parseHeaderValueAsNumber");var C2="Retry-After",aXe=["retry-after-ms","x-ms-retry-after-ms",C2];function yue(t){if(t&&[429,503].includes(t.status))try{for(let s of aXe){let o=gue(t,s);if(o===0||o)return o*(s===C2?1e3:1)}let e=t.headers.get(C2);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}i(yue,"getRetryAfterInMs");function Eue(t){return Number.isFinite(yue(t))}i(Eue,"isThrottlingRetryResponse");function I2(){return{name:"throttlingRetryStrategy",retry({response:t}){let e=yue(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}i(I2,"throttlingRetryStrategy");var cXe=1e3,lXe=1e3*64;function vB(t={}){let e=t.retryDelayInMs??cXe,r=t.maxRetryDelayInMs??lXe;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:o}){let a=dXe(o),c=a&&t.ignoreSystemErrors,l=uXe(s),u=l&&t.ignoreHttpStatusCodes;return s&&(Eue(s)||!l)||u||c?{skipStrategy:!0}:o&&!a&&!l?{errorToThrow:o}:PB(n,{retryDelayInMs:e,maxRetryDelayInMs:r})}}}i(vB,"exponentialRetryStrategy");function uXe(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}i(uXe,"isExponentialRetryResponse");function dXe(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}i(dXe,"isSystemError");var pXe=vC("ts-http-runtime retryPolicy"),mXe="retryPolicy";function Im(t,e={maxRetries:3}){let r=e.logger||pXe;return{name:mXe,async sendRequest(n,s){let o,a,c=-1;e:for(;;){c+=1,o=void 0,a=void 0;try{r.info(`Retry ${c}: Attempting to send request`,n.requestId),o=await s(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;o=a.response}if(n.abortSignal?.aborted)throw r.error(`Retry ${c}: Request aborted.`),new nc;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(o)return o;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:o,responseError:a});if(d.skipStrategy){u.info(`Retry ${c}: Skipped.`);continue t}let{errorToThrow:p,retryAfterInMs:m,redirectTo:f}=d;if(p)throw u.error(`Retry ${c}: Retry strategy ${l.name} throws error:`,p),p;if(m||m===0){u.info(`Retry ${c}: Retry strategy ${l.name} retries after ${m}`),await hue(m,void 0,{abortSignal:n.abortSignal});continue e}if(f){u.info(`Retry ${c}: Retry strategy ${l.name} redirects to ${f}`),n.url=f;continue e}}if(a)throw r.info("None of the retry strategies could work with the received error. Throwing it."),a;if(o)return r.info("None of the retry strategies could work with the received response. Returning it."),o}}}}i(Im,"retryPolicy");var x2="defaultRetryPolicy";function _B(t={}){return{name:x2,sendRequest:Im([I2(),vB(t)],{maxRetries:t.maxRetries??3}).sendRequest}}i(_B,"defaultRetryPolicy");var Cue=typeof window<"u"&&typeof window.document<"u",Iue=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",wue=typeof Bun<"u"&&typeof Bun.version<"u",xm=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.node;var bue=typeof navigator<"u"&&navigator?.product==="ReactNative";var w2="formDataPolicy";function fXe(t){let e={};for(let[r,n]of t.entries())e[r]??=[],e[r].push(n);return e}i(fXe,"formDataToFormDataMap");function QB(){return{name:w2,async sendRequest(t,e){if(xm&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=fXe(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=AXe(t.formData):await hXe(t.formData,t),t.formData=void 0}return e(t)}}}i(QB,"formDataPolicy");function AXe(t){let e=new URLSearchParams;for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.append(r,s.toString());else e.append(r,n.toString());return e.toString()}i(AXe,"wwwFormUrlEncode");async function hXe(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[s,o]of Object.entries(t))for(let a of Array.isArray(o)?o:[o])if(typeof a=="string")n.push({headers:_o({"Content-Disposition":`form-data; name="${s}"`}),body:Vs(a,"utf-8")});else{if(a==null||typeof a!="object")throw new Error(`Unexpected value for key ${s}: ${a}. Value should be serialized to string first.`);{let c=a.name||"blob",l=_o();l.set("Content-Disposition",`form-data; name="${s}"; filename="${c}"`),l.set("Content-Type",a.type||"application/octet-stream"),n.push({headers:l,body:a})}}e.multipartBody={parts:n}}i(hXe,"prepareFormData");var cde=D(jue(),1),lde=D(sde(),1);var b7e="HTTPS_PROXY",S7e="HTTP_PROXY",B7e="ALL_PROXY",R7e="NO_PROXY",P2="proxyPolicy",ode=[],ude=!1,N7e=new Map;function $B(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}i($B,"getEnvironmentValue");function dde(){if(!process)return;let t=$B(b7e),e=$B(B7e),r=$B(S7e);return t||e||r}i(dde,"loadEnvironmentProxyValue");function T7e(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let o of e)o[0]==="."?(n.endsWith(o)||n.length===o.length-1&&n===o.slice(1))&&(s=!0):n===o&&(s=!0);return r?.set(n,s),s}i(T7e,"isBypassed");function P7e(){let t=$B(R7e);return ude=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}i(P7e,"loadNoProxy");function v2(t){if(!t&&(t=dde(),!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}}i(v2,"getDefaultProxySettings");function v7e(){let t=dde();return t?new URL(t):void 0}i(v7e,"getDefaultProxySettingsInternal");function ide(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}i(ide,"getUrlFromProxySettings");function ade(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&Ai.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let o=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new lde.HttpProxyAgent(r,{headers:o})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new cde.HttpsProxyAgent(r,{headers:o})),t.agent=e.httpsProxyAgent)}i(ade,"setProxyAgentOnRequest");function GB(t,e){ude||ode.push(...P7e());let r=t?ide(t):v7e(),n={};return{name:P2,async sendRequest(s,o){return!s.proxySettings&&r&&!T7e(s.url,e?.customNoProxyList??ode,e?.customNoProxyList?void 0:N7e)?ade(s,n,r):s.proxySettings&&ade(s,n,ide(s.proxySettings)),o(s)}}}i(GB,"proxyPolicy");var _2="agentPolicy";function HB(t){return{name:_2,sendRequest:i(async(e,r)=>(e.agent||(e.agent=t),r(e)),"sendRequest")}}i(HB,"agentPolicy");var Q2="tlsPolicy";function zB(t){return{name:Q2,sendRequest:i(async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e)),"sendRequest")}}i(zB,"tlsPolicy");function VB(t){return typeof t.stream=="function"}i(VB,"isBlob");var YB=require("stream");async function*pde(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}i(pde,"streamAsyncIterator");function _7e(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=pde.bind(t)),t.values||(t.values=pde.bind(t))}i(_7e,"makeAsyncIterable");function mde(t){return t instanceof ReadableStream?(_7e(t),YB.Readable.fromWeb(t)):t}i(mde,"ensureNodeStream");function Q7e(t){return t instanceof Uint8Array?YB.Readable.from(Buffer.from(t)):VB(t)?mde(t.stream()):mde(t)}i(Q7e,"toStream");async function fde(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(Q7e);return YB.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}i(fde,"concat");function D7e(){return`----AzSDKFormBoundary${ym()}`}i(D7e,"generateBoundary");function k7e(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r +`;return e}i(k7e,"encodeHeaders");function L7e(t){return t instanceof Uint8Array?t.byteLength:VB(t)?t.size===-1?void 0:t.size:void 0}i(L7e,"getLength");function O7e(t){let e=0;for(let r of t){let n=L7e(r);if(n===void 0)return;e+=n}return e}i(O7e,"getTotalLength");async function M7e(t,e,r){let n=[Vs(`--${r}`,"utf-8"),...e.flatMap(o=>[Vs(`\r +`,"utf-8"),Vs(k7e(o.headers),"utf-8"),Vs(`\r +`,"utf-8"),o.body,Vs(`\r +--${r}`,"utf-8")]),Vs(`--\r \r -`,"utf-8")],s=P7e(n);s&&t.headers.set("Content-Length",s),t.body=await rde(n)}i(v7e,"buildRequestBody");var vC="multipartPolicy",_7e=70,Q7e=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function D7e(t){if(t.length>_7e)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Q7e.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(D7e,"assertValidBoundary");function HB(){return{name:vC,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",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,o,a]=s;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?D7e(r):r=R7e(),t.headers.set("Content-Type",`${o}; boundary=${r}`),await v7e(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(HB,"multipartPolicy");function zB(){return AB()}i(zB,"createEmptyPipeline");var nde=pB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),rjt=nde.logger;function ic(t){return nde.createClientLogger(t)}i(ic,"createClientLogger");var ac=ic("core-rest-pipeline");function T2(t={}){return IB({logger:ac.info,...t})}i(T2,"logPolicy");var P2=xB;function v2(t={}){return wB(t)}i(v2,"redirectPolicy");var VB=D(require("node:os"),1),YB=D(require("node:process"),1);function sde(){return"User-Agent"}i(sde,"getHeaderName");async function ode(t){if(YB.default&&YB.default.versions){let e=`${VB.default.type()} ${VB.default.release()}; ${VB.default.arch()}`,r=YB.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})`)}}i(ode,"setPlatformSpecificData");var WB="1.22.2";function $7e(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i($7e,"getUserAgentString");function ide(){return sde()}i(ide,"getUserAgentHeaderName");async function jB(t){let e=new Map;e.set("core-rest-pipeline",WB),await ode(e);let r=$7e(e);return t?`${t} ${r}`:r}i(jB,"getUserAgentValue");var ade=ide(),cde="userAgentPolicy";function _2(t={}){let e=jB(t.userAgentPrefix);return{name:cde,async sendRequest(r,n){return r.headers.has(ade)||r.headers.set(ade,await e),n(r)}}}i(_2,"userAgentPolicy");var Do=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function Q2(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new Do(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(Q2,"createAbortablePromise");var Y7e="The delay was aborted.";function _C(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return Q2(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??Y7e})}i(_C,"delay");function Id(t){if(hm(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}`}}i(Id,"getErrorMessage");function lde(t){return hm(t)}i(lde,"isError");function wh(){return Am()}i(wh,"randomUUID");var Rt=Em;var ude=Symbol("rawContent");function k2(t){return typeof t[ude]=="function"}i(k2,"hasRawContent");function dde(t){return k2(t)?t[ude]():t}i(dde,"getRawContent");var JB=vC;function L2(){let t=HB();return{name:JB,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)k2(n.body)&&(n.body=dde(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(L2,"multipartPolicy");var O2=bB;function M2(){return SB()}i(M2,"decompressResponsePolicy");function F2(t={}){return NB(t)}i(F2,"defaultRetryPolicy");function U2(){return TB()}i(U2,"formDataPolicy");function xd(t){return b2(t)}i(xd,"getDefaultProxySettings");function q2(t,e){return FB(t,e)}i(q2,"proxyPolicy");var pde="setClientRequestIdPolicy";function $2(t="x-ms-client-request-id"){return{name:pde,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i($2,"setClientRequestIdPolicy");function G2(t){return UB(t)}i(G2,"agentPolicy");function H2(t){return qB(t)}i(H2,"tlsPolicy");var bh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function mde(t={}){let e=new z2(t.parentContext);return t.span&&(e=e.setValue(bh.span,t.span)),t.namespace&&(e=e.setValue(bh.namespace,t.namespace)),e}i(mde,"createTracingContext");var z2=class t{static{i(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 Ade=D(fde(),1),XB=Ade.state;function W7e(){return{end:i(()=>{},"end"),isRecording:i(()=>!1,"isRecording"),recordException:i(()=>{},"recordException"),setAttribute:i(()=>{},"setAttribute"),setStatus:i(()=>{},"setStatus"),addEvent:i(()=>{},"addEvent")}}i(W7e,"createDefaultTracingSpan");function j7e(){return{createRequestHeaders:i(()=>({}),"createRequestHeaders"),parseTraceparentHeader:i(()=>{},"parseTraceparentHeader"),startSpan:i((t,e)=>({span:W7e(),tracingContext:mde({parentContext:e.tracingContext})}),"startSpan"),withContext(t,e,...r){return e(...r)}}}i(j7e,"createDefaultInstrumenter");function QC(){return XB.instrumenterImplementation||(XB.instrumenterImplementation=j7e()),XB.instrumenterImplementation}i(QC,"getInstrumenter");function DC(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(u,d,p){let m=QC().startSpan(u,{...p,packageName:r,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext}),f=m.tracingContext,g=m.span;f.getValue(bh.namespace)||(f=f.setValue(bh.namespace,e)),g.setAttribute("az.namespace",f.getValue(bh.namespace));let E=Object.assign({},d,{tracingOptions:{...d?.tracingOptions,tracingContext:f}});return{span:g,updatedOptions:E}}i(s,"startSpan");async function o(u,d,p,m){let{span:f,updatedOptions:g}=s(u,d,m);try{let E=await a(g.tracingOptions.tracingContext,()=>Promise.resolve(p(g,f)));return f.setStatus({status:"success"}),E}catch(E){throw f.setStatus({status:"error",error:E}),E}finally{f.end()}}i(o,"withSpan");function a(u,d,...p){return QC().withContext(u,d,...p)}i(a,"withContext");function c(u){return QC().parseTraceparentHeader(u)}i(c,"parseTraceparentHeader");function l(u){return QC().createRequestHeaders(u)}return i(l,"createRequestHeaders"),{startSpan:s,withSpan:o,withContext:a,parseTraceparentHeader:c,createRequestHeaders:l}}i(DC,"createTracingClient");var Wl=Cs;function xm(t){return hB(t)}i(xm,"isRestError");var hde="tracingPolicy";function V2(t={}){let e=jB(t.userAgentPrefix),r=new la({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),n=J7e();return{name:hde,async sendRequest(s,o){if(!n)return o(s);let a=await e,c={"http.url":r.sanitizeUrl(s.url),"http.method":s.method,"http.user_agent":a,requestId:s.requestId};a&&(c["http.user_agent"]=a);let{span:l,tracingContext:u}=K7e(n,s,c)??{};if(!l||!u)return o(s);try{let d=await n.withContext(u,o,s);return Z7e(l,d),d}catch(d){throw X7e(l,d),d}}}}i(V2,"tracingPolicy");function J7e(){try{return DC({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:WB})}catch(t){ac.warning(`Error when creating the TracingClient: ${Id(t)}`);return}}i(J7e,"tryCreateTracingClient");function K7e(t,e,r){try{let{span:n,updatedOptions:s}=t.startSpan(`HTTP ${e.method}`,{tracingOptions:e.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return}let o=t.createRequestHeaders(s.tracingOptions.tracingContext);for(let[a,c]of Object.entries(o))e.headers.set(a,c);return{span:n,tracingContext:s.tracingOptions.tracingContext}}catch(n){ac.warning(`Skipping creating a tracing span due to an error: ${Id(n)}`);return}}i(K7e,"tryCreateSpan");function X7e(t,e){try{t.setStatus({status:"error",error:lde(e)?e:void 0}),xm(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(r){ac.warning(`Skipping tracing span processing due to an error: ${Id(r)}`)}}i(X7e,"tryProcessError");function Z7e(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){ac.warning(`Skipping tracing span processing due to an error: ${Id(r)}`)}}i(Z7e,"tryProcessResponse");function ZB(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",s),r=!1)}i(n,"cleanup");function s(){e.abort(t.reason),n()}return i(s,"listener"),t.addEventListener("abort",s),{abortSignal:e.signal,cleanup:n}}i(ZB,"wrapAbortSignalLike");var eZe="wrapAbortSignalLikePolicy";function gde(){return{name:eZe,sendRequest:i(async(t,e)=>{if(!t.abortSignal)return e(t);let{abortSignal:r,cleanup:n}=ZB(t.abortSignal);t.abortSignal=r;try{return await e(t)}finally{n?.()}},"sendRequest")}}i(gde,"wrapAbortSignalLikePolicy");function Y2(t){let e=zB();return Rt&&(t.agent&&e.addPolicy(G2(t.agent)),t.tlsOptions&&e.addPolicy(H2(t.tlsOptions)),e.addPolicy(q2(t.proxyOptions)),e.addPolicy(M2())),e.addPolicy(gde()),e.addPolicy(U2(),{beforePolicies:[JB]}),e.addPolicy(_2(t.userAgentOptions)),e.addPolicy($2(t.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(L2(),{afterPhase:"Deserialize"}),e.addPolicy(F2(t.retryOptions),{phase:"Retry"}),e.addPolicy(V2({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),Rt&&e.addPolicy(v2(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(T2(t.loggingOptions),{afterPhase:"Sign"}),e}i(Y2,"createPipelineFromOptions");function kC(){let t=CB();return{async sendRequest(e){let{abortSignal:r,cleanup:n}=e.abortSignal?ZB(e.abortSignal):{};try{return e.abortSignal=r,await t.sendRequest(e)}finally{n?.()}}}}i(kC,"createDefaultHttpClient");function jl(t){return Po(t)}i(jl,"createHttpHeaders");function LC(t){return fB(t)}i(LC,"createPipelineRequest");var _6t=ic("core-rest-pipeline retryPolicy");var tZe={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function rZe(t,e,r){async function n(){if(Date.now()t.getToken(l,u),"tryGetAccessToken"),o.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then(p=>(r=null,n=p,s=u.tenantId,n)).catch(p=>{throw r=null,n=null,s=void 0,p})),r}return i(c,"refresh"),async(l,u)=>{let d=!!u.claims,p=s!==u.tenantId;return d&&(n=null),p||d||a.mustRefresh?c(l,u):(a.shouldRefresh&&c(l,u),n)}}i(W2,"createTokenCycler");var Ide="bearerTokenAuthenticationPolicy";async function eR(t,e){try{return[await e(t),void 0]}catch(r){if(xm(r)&&r.response)return[r.response,r];throw r}}i(eR,"trySendRequest");async function nZe(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:!0},o=await r(e,s);o&&t.request.headers.set("Authorization",`Bearer ${o.token}`)}i(nZe,"defaultAuthorizeRequest");function yde(t){return t.status===401&&t.headers.has("WWW-Authenticate")}i(yde,"isChallengeResponse");async function Ede(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}i(Ede,"authorizeRequestOnCaeChallenge");function Sh(t){let{credential:e,scopes:r,challengeCallbacks:n}=t,s=t.logger||ac,o={authorizeRequest:n?.authorizeRequest?.bind(n)??nZe,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)},a=e?W2(e):()=>Promise.resolve(null);return{name:Ide,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 o.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:c,getAccessToken:a,logger:s});let u,d,p;if([u,d]=await eR(c,l),yde(u)){let m=Cde(u.headers.get("WWW-Authenticate"));if(m){let f;try{f=atob(m)}catch{return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${m}`),u}p=await Ede({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},f),p&&([u,d]=await eR(c,l))}else if(o.authorizeRequestOnChallenge&&(p=await o.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:c,response:u,getAccessToken:a,logger:s}),p&&([u,d]=await eR(c,l)),yde(u)&&(m=Cde(u.headers.get("WWW-Authenticate")),m))){let f;try{f=atob(m)}catch{return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${m}`),u}p=await Ede({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},f),p&&([u,d]=await eR(c,l))}}if(d)throw d;return u}}}i(Sh,"bearerTokenAuthenticationPolicy");function sZe(t){let e=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,r=/(\w+)="([^"]*)"/g,n=[],s;for(;(s=e.exec(t))!==null;){let o=s[1],a=s[2],c={},l;for(;(l=r.exec(a))!==null;)c[l[1]]=l[2];n.push({scheme:o,params:c})}return n}i(sZe,"parseChallenges");function Cde(t){return t?sZe(t).find(r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims")?.params.claims:void 0}i(Cde,"getCaeChallengeClaims");function ko(t){let e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}i(ko,"isTokenCredential");var j2="DisableKeepAlivePolicy";function xde(){return{name:j2,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}i(xde,"createDisableKeepAlivePolicy");function wde(t){return t.getOrderedPolicies().some(e=>e.name===j2)}i(wde,"pipelineContainsDisableKeepAlivePolicy");function J2(t){return(t instanceof Buffer?t:Buffer.from(t.buffer)).toString("base64")}i(J2,"encodeByteArray");function K2(t){return Buffer.from(t,"base64")}i(K2,"decodeString");function iZe(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)}i(iZe,"isPrimitiveBody");var aZe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function bde(t){return aZe.test(t)}i(bde,"isDuration");var cZe=/^[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 Sde(t){return cZe.test(t)}i(Sde,"isValidUuid");function lZe(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}i(lZe,"handleNullableResponseAndWrappableBody");function X2(t,e){let r=t.parsedHeaders;if(t.request.method==="HEAD")return{...r,body:t.parsedBody};let n=e&&e.bodyMapper,s=!!n?.nullable,o=n?.type.name;if(o==="Stream")return{...r,blobBody:t.blobBody,readableStreamBody:t.readableStreamBody};let a=o==="Composite"&&n.type.modelProperties||{},c=Object.keys(a).some(l=>a[l].serializedName==="");if(o==="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 s&&!t.parsedBody&&!r&&Object.getOwnPropertyNames(a).length===0?null:l}return lZe({body:t.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:iZe(t.parsedBody,o)})}i(X2,"flattenResponse");var Z2=class{static{i(this,"SerializerImpl")}modelMappers;isXML;constructor(e={},r=!1){this.modelMappers=e,this.isXML=r}validateConstraints(e,r,n){let s=i((o,a)=>{throw new Error(`"${n}" with value "${r}" should satisfy the constraint "${o}": ${a}.`)},"failValidation");if(e.constraints&&r!==void 0&&r!==null){let{ExclusiveMaximum:o,ExclusiveMinimum:a,InclusiveMaximum:c,InclusiveMinimum:l,MaxItems:u,MaxLength:d,MinItems:p,MinLength:m,MultipleOf:f,Pattern:g,UniqueItems:E}=e.constraints;if(o!==void 0&&r>=o&&s("ExclusiveMaximum",o),a!==void 0&&r<=a&&s("ExclusiveMinimum",a),c!==void 0&&r>c&&s("InclusiveMaximum",c),l!==void 0&&ru&&s("MaxItems",u),d!==void 0&&r.length>d&&s("MaxLength",d),p!==void 0&&r.lengthS.indexOf(x)!==w)&&s("UniqueItems",E)}}serialize(e,r,n,s={xml:{}}){let o={xml:{rootName:s.xml.rootName??"",includeRoot:s.xml.includeRoot??!1,xmlCharKey:s.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=AZe(c,n,r):c.match(/^Enum$/i)!==null?a=hZe(n,e.type.allowedValues,r):c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?a=EZe(c,r,n):c.match(/^ByteArray$/i)!==null?a=gZe(n,r):c.match(/^Base64Url$/i)!==null?a=yZe(n,r):c.match(/^Sequence$/i)!==null?a=CZe(this,e,r,n,!!this.isXML,o):c.match(/^Dictionary$/i)!==null?a=IZe(this,e,r,n,!!this.isXML,o):c.match(/^Composite$/i)!==null&&(a=wZe(this,e,r,n,!!this.isXML,o)),a}deserialize(e,r,n,s={xml:{}}){let o={xml:{rootName:s.xml.rootName??"",includeRoot:s.xml.includeRoot??!1,xmlCharKey:s.xml.xmlCharKey??"_"},ignoreUnknownProperties:s.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=SZe(this,e,r,n,o);else{if(this.isXML){let l=o.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=fZe(r):c.match(/^ByteArray$/i)!==null?a=K2(r):c.match(/^Base64Url$/i)!==null?a=pZe(r):c.match(/^Sequence$/i)!==null?a=RZe(this,e,r,n,o):c.match(/^Dictionary$/i)!==null&&(a=BZe(this,e,r,n,o))}return e.isConstant&&(a=e.defaultValue),a}};function Lo(t={},e=!1){return new Z2(t,e)}i(Lo,"createSerializer");function uZe(t,e){let r=t.length;for(;r-1>=0&&t[r-1]===e;)--r;return t.substr(0,r)}i(uZe,"trimEnd");function dZe(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=J2(t);return uZe(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}i(dZe,"bufferToBase64Url");function pZe(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,"/"),K2(t)}}i(pZe,"base64UrlToByteArray");function eq(t){let e=[],r="";if(t){let n=t.split(".");for(let s of n)s.charAt(s.length-1)==="\\"?r+=s.substr(0,s.length-1)+".":(r+=s,e.push(r),r="")}return e}i(eq,"splitSerializeName");function mZe(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}i(mZe,"dateToUnixTime");function fZe(t){if(t)return new Date(t*1e3)}i(fZe,"unixTimeToDate");function AZe(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"&&Sde(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}i(AZe,"serializeBasicTypes");function hZe(t,e,r){if(!e)throw new Error(`Please provide a set of allowedValues to validate ${t} as an Enum Type.`);if(!e.some(s=>typeof s.valueOf()=="string"?s.toLowerCase()===r.toLowerCase():s===r))throw new Error(`${r} is not a valid value for ${t}. The valid values are: ${JSON.stringify(e)}.`);return r}i(hZe,"serializeEnumType");function gZe(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=J2(e)}return e}i(gZe,"serializeByteArrayType");function yZe(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=dZe(e)}return e}i(yZe,"serializeBase64UrlType");function EZe(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=mZe(e)}else if(t.match(/^TimeSpan$/i)!==null&&!bde(e))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}i(EZe,"serializeDateTypes");function CZe(t,e,r,n,s,o){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;lm!==d)&&(a[d]=t.serialize(l,r[d],n+'["'+d+'"]',o))}return a}return r}i(wZe,"serializeCompositeType");function Tde(t,e,r,n){if(!r||!t.xmlNamespace)return e;let o={[t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns"]:t.xmlNamespace};if(["Composite"].includes(t.type.name)){if(e["$"])return e;{let c={...e};return c["$"]=o,c}}let a={};return a[n.xml.xmlCharKey]=e,a["$"]=o,a}i(Tde,"getXmlObjectValue");function bZe(t,e){return["$",e.xml.xmlCharKey].includes(t)}i(bZe,"isSpecialXmlProperty");function SZe(t,e,r,n,s){let o=s.xml.xmlCharKey??"_";tR(t,e)&&(e=Pde(t,e,r,"serializedName"));let a=Nde(t,e,n),c={},l=[];for(let d of Object.keys(a)){let p=a[d],m=eq(a[d].serializedName);l.push(m[0]);let{serializedName:f,xmlName:g,xmlElementName:E}=p,x=n;f!==""&&f!==void 0&&(x=n+"."+f);let w=p.headerCollectionPrefix;if(w){let S={};for(let P of Object.keys(r))P.startsWith(w)&&(S[P.substring(w.length)]=t.deserialize(p.type.value,r[P],x,s)),l.push(P);c[d]=S}else if(t.isXML)if(p.xmlIsAttribute&&r["$"])c[d]=t.deserialize(p,r["$"][g],x,s);else if(p.xmlIsMsText)r[o]!==void 0?c[d]=r[o]:typeof r=="string"&&(c[d]=r);else{let S=E||g||f;if(p.xmlIsWrapped){let Q=r[g]?.[E]??[];c[d]=t.deserialize(p,Q,x,s),l.push(g)}else{let P=r[S];c[d]=t.deserialize(p,P,x,s),l.push(S)}}else{let S,P=r,Q=0;for(let V of m){if(!P)break;Q++,P=P[V]}P===null&&Q{for(let m in a)if(eq(a[m].serializedName)[0]===p)return!1;return!0},"isAdditionalProperty");for(let p in r)d(p)&&(c[p]=t.deserialize(u,r[p],n+'["'+p+'"]',s))}else if(r&&!s.ignoreUnknownProperties)for(let d of Object.keys(r))c[d]===void 0&&!l.includes(d)&&!bZe(d,s)&&(c[d]=r[d]);return c}i(SZe,"deserializeCompositeType");function BZe(t,e,r,n,s){let o=e.type.value;if(!o||typeof o!="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(o,r[c],n,s);return a}return r}i(BZe,"deserializeDictionaryType");function RZe(t,e,r,n,s){let o=e.type.element;if(!o||typeof o!="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]),o.type.name==="Composite"&&o.type.className&&(o=t.modelMappers[o.type.className]??o);let a=[];for(let c=0;c0)if(s.isConstant)o=s.defaultValue;else{let a=Qde(t,n);!a.propertyFound&&r&&(a=Qde(r,n));let c=!1;a.propertyFound||(c=s.required||n[0]==="options"&&n.length===2),o=c?s.defaultValue:a.propertyValue}}else{s.required&&(o={});for(let a in n){let c=s.type.modelProperties[a],l=n[a],u=bd(t,{parameterPath:l,mapper:c},r);u!==void 0&&(o||(o={}),o[a]=u)}}return o}i(bd,"getOperationArgumentValueFromParameter");function Qde(t,e){let r={propertyFound:!1},n=0;for(;n=200&&r.status<300);l.headersMapper&&(o.parsedHeaders=c.serializer.deserialize(l.headersMapper,o.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:!0}))}return o}i(DZe,"deserializeResponseBody");function kZe(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}i(kZe,"isOperationSpecEmpty");function LZe(t,e,r,n){let s=200<=t.status&&t.status<300;if(kZe(e)?s:!!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 Wl(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 p=t.parsedBody,m;if(u){let g=p;if(e.isXML&&u.type.name===cc.Sequence){g=[];let E=u.xmlElementName;typeof p=="object"&&E&&(g=p[E])}m=e.serializer.deserialize(u,g,"error.response.parsedBody",n)}let f=p.error||m||p;l.code=f.code,f.message&&(l.message=f.message),u&&(l.response.parsedBody=m)}t.headers&&d&&(l.response.parsedHeaders=e.serializer.deserialize(d,t.headers.toJSON(),"operationRes.parsedHeaders"))}catch(p){l.message=`Error "${p.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}i(LZe,"handleErrorResponse");async function OZe(t,e,r,n,s){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){let o=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(o),r;if(c.some(l=>e.indexOf(l)!==-1)){if(!s)throw new Error("Parsing XML not supported.");let l=await s(o,n.xml);return r.parsedBody=l,r}}catch(l){let u=`Error "${l}" occurred while parsing the response body - ${r.bodyAsText}.`,d=l.code||Wl.PARSE_ERROR;throw new Wl(u,{code:d,statusCode:r.status,request:r.request,response:r})}}return r}i(OZe,"parse");function Lde(t){let e=new Set;for(let r in t.responses){let n=t.responses[r];n.bodyMapper&&n.bodyMapper.type.name===cc.Stream&&e.add(Number(r))}return e}i(Lde,"getStreamingResponseStatusCodes");function lc(t){let{parameterPath:e,mapper:r}=t,n;return typeof e=="string"?n=e:Array.isArray(e)?n=e.join("."):n=r.serializedName,n}i(lc,"getPathStringFromParameter");var Ode="serializationPolicy";function nR(t={}){let e=t.stringifyXML;return{name:Ode,async sendRequest(r,n){let s=Jl(r),o=s?.operationSpec,a=s?.operationArguments;return o&&a&&(MZe(r,a,o),FZe(r,a,o,e)),n(r)}}}i(nR,"serializationPolicy");function MZe(t,e,r){if(r.headerParameters)for(let s of r.headerParameters){let o=bd(e,s);if(o!=null||s.mapper.required){o=r.serializer.serialize(s.mapper,o,lc(s));let a=s.mapper.headerCollectionPrefix;if(a)for(let c of Object.keys(o))t.headers.set(a+c,o[c]);else t.headers.set(s.mapper.serializedName||lc(s),o)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let s of Object.keys(n))t.headers.set(s,n[s])}i(MZe,"serializeHeaders");function FZe(t,e,r,n=function(){throw new Error("XML serialization unsupported!")}){let s=e.options?.serializerOptions,o={xml:{rootName:s?.xml.rootName??"",includeRoot:s?.xml.includeRoot??!1,xmlCharKey:s?.xml.xmlCharKey??"_"}},a=o.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){t.body=bd(e,r.requestBody);let c=r.requestBody.mapper,{required:l,serializedName:u,xmlName:d,xmlElementName:p,xmlNamespace:m,xmlNamespacePrefix:f,nullable:g}=c,E=c.type.name;try{if(t.body!==void 0&&t.body!==null||g&&t.body===null||l){let x=lc(r.requestBody);t.body=r.serializer.serialize(c,t.body,x,o);let w=E===cc.Stream;if(r.isXML){let S=f?`xmlns:${f}`:"xmlns",P=UZe(m,S,E,t.body,o);E===cc.Sequence?t.body=n(qZe(P,p||d||u,S,m),{rootName:d||u,xmlCharKey:a}):w||(t.body=n(P,{rootName:d||u,xmlCharKey:a}))}else{if(E===cc.String&&(r.contentType?.match("text/plain")||r.mediaType==="text"))return;w||(t.body=JSON.stringify(t.body))}}}catch(x){throw new Error(`Error "${x.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=bd(e,c);if(l!=null){let u=c.mapper.serializedName||lc(c);t.formData[u]=r.serializer.serialize(c.mapper,l,lc(c),o)}}}}i(FZe,"serializeRequestBody");function UZe(t,e,r,n,s){if(t&&!["Composite","Sequence","Dictionary"].includes(r)){let o={};return o[s.xml.xmlCharKey]=n,o["$"]={[e]:t},o}return n}i(UZe,"getXmlValueWithNamespace");function qZe(t,e,r,n){if(Array.isArray(t)||(t=[t]),!r||!n)return{[e]:t};let s={[e]:t};return s["$"]={[r]:n},s}i(qZe,"prepareXMLRootList");function OC(t={}){let e=Y2(t??{});return t.credentialOptions&&e.addPolicy(Sh({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(nR(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(rq(t.deserializationOptions),{phase:"Deserialize"}),e}i(OC,"createClientPipeline");var nq;function Mde(){return nq||(nq=kC()),nq}i(Mde,"getCachedDefaultHttpClient");var $Ze={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function Ude(t,e,r,n){let s=GZe(e,r,n),o=!1,a=Fde(t,s);if(e.path){let u=Fde(e.path,s);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),HZe(u)?(a=u,o=!0):a=zZe(a,u)}let{queryParams:c,sequenceParams:l}=VZe(e,r,n);return a=WZe(a,c,l,o),a}i(Ude,"getRequestUrl");function Fde(t,e){let r=t;for(let[n,s]of e)r=r.split(n).join(s);return r}i(Fde,"replaceAll");function GZe(t,e,r){let n=new Map;if(t.urlParameters?.length)for(let s of t.urlParameters){let o=bd(e,s,r),a=lc(s);o=t.serializer.serialize(s.mapper,o,a),s.skipEncoding||(o=encodeURIComponent(o)),n.set(`{${s.mapper.serializedName||a}}`,o)}return n}i(GZe,"calculateUrlReplacements");function HZe(t){return t.includes("://")}i(HZe,"isAbsoluteUrl");function zZe(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 s=e.indexOf("?");if(s!==-1){let o=e.substring(0,s),a=e.substring(s+1);n=n+o,a&&(r.search=r.search?`${r.search}&${a}`:a)}else n=n+e;return r.pathname=n,r.toString()}i(zZe,"appendPath");function VZe(t,e,r){let n=new Map,s=new Set;if(t.queryParameters?.length)for(let o of t.queryParameters){o.mapper.type.name==="Sequence"&&o.mapper.serializedName&&s.add(o.mapper.serializedName);let a=bd(e,o,r);if(a!=null||o.mapper.required){a=t.serializer.serialize(o.mapper,a,lc(o));let c=o.collectionFormat?$Ze[o.collectionFormat]:"";if(Array.isArray(a)&&(a=a.map(l=>l??"")),o.collectionFormat==="Multi"&&a.length===0)continue;Array.isArray(a)&&(o.collectionFormat==="SSV"||o.collectionFormat==="TSV")&&(a=a.join(c)),o.skipEncoding||(Array.isArray(a)?a=a.map(l=>encodeURIComponent(l)):a=encodeURIComponent(a)),Array.isArray(a)&&(o.collectionFormat==="CSV"||o.collectionFormat==="Pipes")&&(a=a.join(c)),n.set(o.mapper.serializedName||lc(o),a)}}return{queryParams:n,sequenceParams:s}}i(VZe,"calculateQueryParameters");function YZe(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[s,o]=n.split("=",2),a=e.get(s);a?Array.isArray(a)?a.push(o):e.set(s,[a,o]):e.set(s,o)}return e}i(YZe,"simpleParseQueryParams");function WZe(t,e,r,n=!1){if(e.size===0)return t;let s=new URL(t),o=YZe(s.search);for(let[c,l]of e){let u=o.get(c);if(Array.isArray(u))if(Array.isArray(l)){u.push(...l);let d=new Set(u);o.set(c,Array.from(d))}else u.push(l);else u?(Array.isArray(l)?l.unshift(u):r.has(c)&&o.set(c,[u,l]),n||o.set(c,l)):o.set(c,l)}let a=[];for(let[c,l]of o)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 s.search=a.length?`?${a.join("&")}`:"",s.toString()}i(WZe,"appendQueryParams");var sq=ic("core-client");var MC=class{static{i(this,"ServiceClient")}_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&sq.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||Mde(),this.pipeline=e.pipeline||jZe(e),e.additionalPolicies?.length)for(let{policy:r,position:n}of e.additionalPolicies){let s=n==="perRetry"?"Sign":void 0;this.pipeline.addPolicy(r,{afterPhase:s})}}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 s=Ude(n,r,e,this),o=LC({url:s});o.method=r.httpMethod;let a=Jl(o);a.operationSpec=r,a.operationArguments=e;let c=r.contentType||this._requestContentType;c&&r.requestBody&&o.headers.set("Content-Type",c);let l=e.options;if(l){let u=l.requestOptions;u&&(u.timeout&&(o.timeout=u.timeout),u.onUploadProgress&&(o.onUploadProgress=u.onUploadProgress),u.onDownloadProgress&&(o.onDownloadProgress=u.onDownloadProgress),u.shouldDeserialize!==void 0&&(a.shouldDeserialize=u.shouldDeserialize),u.allowInsecureConnection&&(o.allowInsecureConnection=!0)),l.abortSignal&&(o.abortSignal=l.abortSignal),l.tracingOptions&&(o.tracingOptions=l.tracingOptions)}this._allowInsecureConnection&&(o.allowInsecureConnection=!0),o.streamResponseStatusCodes===void 0&&(o.streamResponseStatusCodes=Lde(r));try{let u=await this.sendRequest(o),d=X2(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,p=X2(d,r.responses[u.statusCode]||r.responses.default);u.details=p,l?.onResponse&&l.onResponse(d,p,u)}throw u}}};function jZe(t){let e=JZe(t),r=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return OC({...t,credentialOptions:r})}i(jZe,"createDefaultPipeline");function JZe(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")}i(JZe,"getCredentialScopes");var qde={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function KZe(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)}i(KZe,"isUuid");var sR=i(async t=>{let e=ret(t.request),r=eet(t.response);if(r){let n=tet(r),s=ZZe(t,n),o=XZe(n);if(!o)return!1;let a=await t.getAccessToken(s,{...e,tenantId:o});return a?(t.request.headers.set(qde.HeaderConstants.AUTHORIZATION,`${a.tokenType??"Bearer"} ${a.token}`),!0):!1}return!1},"authorizeRequestOnTenantChallenge");function XZe(t){let n=new URL(t.authorization_uri).pathname.split("/")[1];if(n&&KZe(n))return n}i(XZe,"extractTenantId");function ZZe(t,e){if(!e.resource_id)return t.scopes;let r=new URL(e.resource_id);r.pathname=qde.DefaultScope;let n=r.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}i(ZZe,"buildScopes");function eet(t){let e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}i(eet,"getChallenge");function tet(t){return`${t.slice(7).trim()} `.split(" ").filter(s=>s).map(s=>(([o,a])=>({[o]:a}))(s.trim().split("="))).reduce((s,o)=>({...s,...o}),{})}i(tet,"parseChallenge");function ret(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}i(ret,"requestToOptions");var $de=Symbol("Original PipelineRequest"),net=Symbol.for("@azure/core-client original request");function UC(t,e={}){let n=t[$de],s=jl(t.headers.toJson({preserveCase:!0}));if(n)return n.headers=s,n;{let o=LC({url:t.url,method:t.method,headers:s,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&&(o[net]=e.originalRequest),o}}i(UC,"toPipelineRequest");function wm(t,e){let r=e?.originalRequest??t,n={url:t.url,method:t.method,headers:qC(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(s,o,a){return o===$de?t:o==="clone"?()=>wm(UC(n,{originalRequest:r}),{createProxy:!0,originalRequest:r}):Reflect.get(s,o,a)},set(s,o,a,c){return o==="keepAlive"&&(t.disableKeepAlive=!a),typeof o=="string"&&["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"].includes(o)&&(t[o]=a),Reflect.set(s,o,a,c)}}):n}i(wm,"toWebResourceLike");function qC(t){return new oq(t.toJSON({preserveCase:!0}))}i(qC,"toHttpHeadersLike");function FC(t){return t.toLowerCase()}i(FC,"getHeaderKey");var oq=class t{static{i(this,"HttpHeaders")}_headersMap;constructor(e){if(this._headersMap={},e)for(let r in e)this.set(r,e[r])}set(e,r){this._headersMap[FC(e)]={name:e,value:r.toString()}}get(e){let r=this._headersMap[FC(e)];return r?r.value:void 0}contains(e){return!!this._headersMap[FC(e)]}remove(e){let r=this.contains(e);return delete this._headersMap[FC(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(wm(e,{createProxy:!0}));return iR(r)},"sendRequest")}}i(cq,"convertHttpClient");var zde=":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",iet=zde+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",aet="["+zde+"]["+iet+"]*",cet=new RegExp("^"+aet+"$");function aR(t,e){let r=[],n=e.exec(t);for(;n;){let s=[];s.startIndex=e.lastIndex-n[0].length;let o=n.length;for(let a=0;a"u")},"isName");function Vde(t){return typeof t<"u"}i(Vde,"isExist");var GC=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],cR=["__proto__","constructor","prototype"];var uet={allowBooleanAttributes:!1,unpairedTags:[]};function lR(t,e){e=Object.assign({},uet,e);let r=[],n=!1,s=!1;t[0]==="\uFEFF"&&(t=t.substr(1));for(let o=0;o"&&t[o]!==" "&&t[o]!==" "&&t[o]!==` -`&&t[o]!=="\r";o++)l+=t[o];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),o--),!yet(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",kr("InvalidTag",p,Is(t,o))}let u=met(t,o);if(u===!1)return kr("InvalidAttr","Attributes for '"+l+"' have open quote.",Is(t,o));let d=u.value;if(o=u.index,d[d.length-1]==="/"){let p=o-d.length;d=d.substring(0,d.length-1);let m=Jde(d,e);if(m===!0)n=!0;else return kr(m.err.code,m.err.msg,Is(t,p+m.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return kr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Is(t,a));if(r.length===0)return kr("InvalidTag","Closing tag '"+l+"' has not been opened.",Is(t,a));{let p=r.pop();if(l!==p.tagName){let m=Is(t,p.tagStartPos);return kr("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",Is(t,a))}r.length==0&&(s=!0)}}else return kr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Is(t,o));else{let p=Jde(d,e);if(p!==!0)return kr(p.err.code,p.err.msg,Is(t,o-d.length+p.err.line));if(s===!0)return kr("InvalidXml","Multiple possible root nodes found.",Is(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o0)return kr("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return kr("InvalidXml","Start tag expected.",1);return!0}i(lR,"validate");function Yde(t){return t===" "||t===" "||t===` -`||t==="\r"}i(Yde,"isWhiteSpace");function Wde(t,e){let r=e;for(;e5&&n==="xml")return kr("InvalidXml","XML declaration allowed only at the start of the document.",Is(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(Wde,"readPI");function jde(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}i(jde,"readCommentAndCDATA");var det='"',pet="'";function met(t,e){let r="",n="",s=!1;for(;e"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}i(met,"readAttributeStr");var fet=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Jde(t,e){let r=aR(t,fet),n={};for(let s=0;s",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"},Xde={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"},Zde={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"},epe={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"},tpe={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"},rpe={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:"<"},npe={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"},spe={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"},ope={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"},ipe={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"},uR={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"},ape={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"},cpe={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"},Eet={...Kde,...Xde,...Zde,...epe,...tpe,...rpe,...npe,...spe,...ope,...ipe,...uR,...ape,...cpe},zC={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},uq={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 Cet=new Set("!?\\\\/[]$%{}^&*()<>|+");function lpe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Cet.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}i(lpe,"validateEntityName");function dq(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let o=s.val;typeof o=="string"&&(e[n]=o)}}return e}i(dq,"mergeEntityMaps");var bm="external",dR="base",pq="all";function Iet(t){return!t||t===bm?new Set([bm]):t===pq?new Set([pq]):t===dR?new Set([dR]):Array.isArray(t)?new Set(t):new Set([bm])}i(Iet,"parseLimitTiers");var Ws=Object.freeze({allow:0,leave:1,remove:2,throw:3}),xet=new Set([9,10,13]);function wet(t){if(!t)return{xmlVersion:1,onLevel:Ws.allow,nullLevel:Ws.remove};let e=t.xmlVersion===1.1?1.1:1,r=Ws[t.onNCR]??Ws.allow,n=Ws[t.nullNCR]??Ws.remove,s=Math.max(n,Ws.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}i(wet,"parseNCRConfig");var Rh=class{static{i(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=Iet(this._limit.applyLimitsTo??bm),this._numericAllowed=e.numericAllowed??!0,this._baseMap=dq(zC,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=wet(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))lpe(r);this._externalMap=dq(e)}addExternalEntity(e,r){lpe(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=dq(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=[],s=e.length,o=0,a=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;a=s||e.charCodeAt(p)!==59){a++;continue}let m=e.slice(a+1,p);if(m.length===0){a++;continue}let f,g;if(this._removeSet.has(m))f="",g===void 0&&(g=bm);else if(this._leaveSet.has(m)){a++;continue}else if(m.charCodeAt(0)===35){let E=this._resolveNCR(m);if(E===void 0){a++;continue}f=E,g=dR}else{let E=this._resolveName(m);f=E?.value,g=E?.tier}if(f===void 0){a++;continue}if(a>o&&n.push(e.slice(o,a)),n.push(f),o=p+1,a=o,u&&this._tierCounts(g)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let E=f.length-(m.length+2);if(E>0&&(this._expandedLength+=E,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}o=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!xet.has(e)?Ws.remove:-1}_applyNCRAction(e,r,n){switch(e){case Ws.allow:return String.fromCodePoint(n);case Ws.remove:return"";case Ws.leave:return;case Ws.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 s=this._classifyNCR(n);if(!this._numericAllowed&&sGC.includes(t)?"__"+t:t,"defaultOnDangerousProperty"),bet={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:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:i(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:i(function(t,e,r){return t},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:upe};function Bet(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(GC.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(cR.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}i(Bet,"validatePropertyName");function dpe(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"}:dpe(!0)}i(dpe,"normalizeProcessEntities");var ppe=i(function(t){let e=Object.assign({},bet,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:s}of r)n&&Bet(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=upe),e.processEntities=dpe(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 pR;typeof Symbol!="function"?pR="@@xmlMetadata":pR=Symbol("XML Node Metadata");var js=class{static{i(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][pR]={startIndex:r})}static getMetaDataSymbol(){return pR}};var mpe=":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",Ret=mpe+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040",fpe=":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}",Net=fpe+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",Ape=i((t,e,r="")=>{let n=t.replace(":",""),s=e.replace(":",""),o=`[${n}][${s}]*`;return{name:new RegExp(`^[${t}][${e}]*$`,r),ncName:new RegExp(`^${o}$`,r),qName:new RegExp(`^${o}(?::${o})?$`,r),nmToken:new RegExp(`^[${e}]+$`,r),nmTokens:new RegExp(`^[${e}]+(?:\\s+[${e}]+)*$`,r)}},"buildRegexes"),Tet=Ape(mpe,Ret),Pet=Ape(fpe,Net,"u"),vet=i((t="1.0")=>t==="1.1"?Pet:Tet,"getRegexes");var Sm=i((t,{xmlVersion:e="1.0"}={})=>vet(e).qName.test(t),"qName");var YC=class{static{i(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),s=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 o=1,a=!1,c=!1,l="";for(;r=this.options.maxEntityCount)throw new Error(`Entity count (${s+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[u]=d,s++}}else if(a&&Bm(e,"!ELEMENT",r)){r+=8;let{index:u}=this.readElementExp(e,r+1);r=u}else if(a&&Bm(e,"!ATTLIST",r))r+=8;else if(a&&Bm(e,"!NOTATION",r)){r+=9;let{index:u}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=u}else if(Bm(e,"!--",r))c=!0;else throw new Error("Invalid DOCTYPE");o++,l=""}else if(e[r]===">"){if(c?e[r-1]==="-"&&e[r-2]==="-"&&(c=!1,o--):o--,o===0)break}else e[r]==="["?a=!0:l+=e[r];if(o!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:r}}readEntityExp(e,r){r=Js(e,r);let n=r;for(;rthis.options.maxEntitySize)throw new Error(`Entity "${s}" size (${o.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return r--,[s,o,r]}readNotationExp(e,r){r=Js(e,r);let n=r;for(;r{for(;e1||o.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===`${s}${a}`?l:t;let d=o?a:r;return o?d===u||s+d===u?l:t:d===u||d===s+u?l:t}}else return t}}else return Uet(t,Number(r),e)}i(fq,"toNumber");var Oet=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function Met(t,e,r){if(!r.eNotation)return t;let n=e.match(Oet);if(n){let s=n[1]||"",o=n[3].indexOf("e")===-1?"E":"e",a=n[2],c=s?t[a.length+1]===o:t[a.length]===o;return a.length>1&&c?t:a.length===1&&(n[3].startsWith(`.${o}`)||n[3][0]===o)?Number(e):a.length>0?r.leadingZeros&&!c?(e=(n[1]||"")+n[3],Number(e)):t:Number(e)}else return t}i(Met,"resolveEnotation");function Fet(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}i(Fet,"trimZeros");function mq(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")}i(mq,"parse_int");function Uet(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}}i(Uet,"handleInfinity");function Aq(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}i(Aq,"getIgnoreAttributesFn");var Oo=class{static{i(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(s=>s.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(s=>s.attrName!==void 0),this._hasPositionSelector=this.segments.some(s=>s.position!==void 0)}_parse(e){let r=[],n=0,s="";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)}},uc=class{static{i(this,"Matcher")}constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new hq(this)}push(e,r=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let s=this.path.length;this.siblingStacks[s]||(this.siblingStacks[s]=new Map);let o=this.siblingStacks[s],a=n?`${n}:${e}`:e,c=o.get(a)||0,l=0;for(let d of o.values())l+=d;o.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 o=this.path.map(a=>a.namespace?`${a.namespace}:${a.tag}`:a.tag).join(n);return this._pathStringCache=o,o}return this.path.map(o=>r&&o.namespace?`${o.namespace}:${o.tag}`:o.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 s=e[n];if(s.type==="deep-wildcard"){if(n--,n<0)return!0;let o=e[n],a=!1;for(let c=r;c>=0;c--)if(this._matchSegment(o,this.path[c],c===this.path.length-1)){r=c-1,n--,a=!0;break}if(!a)return!1}else{if(!this._matchSegment(s,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 s=r.counter??0;if(e.position==="first"&&s!==0)return!1;if(e.position==="odd"&&s%2!==1)return!1;if(e.position==="even"&&s%2!==0)return!1;if(e.position==="nth"&&s!==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 qet(t,e){if(!t)return{};let r=e.attributesGroupName?t[e.attributesGroupName]:t;if(!r)return{};let n={};for(let s in r)if(s.startsWith(e.attributeNamePrefix)){let o=s.substring(e.attributeNamePrefix.length);n[o]=r[s]}else n[s]=r[s];return n}i(qet,"extractRawAttributes");function $et(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}}i($et,"extractNamespace");var WC=class{static{i(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Yet,this.parseTextData=Get,this.resolveNameSpace=Het,this.buildAttributesMap=Vet,this.isItStopNode=Ket,this.replaceEntitiesValue=jet,this.readStopNodeData=ett,this.saveTextToParentTag=Jet,this.addChild=Wet,this.ignoreAttributesFn=Aq(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...zC};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...uq,...uR}),this.entityDecoder=new Rh({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 uc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Nh;let s=this.options.stopNodes;if(s&&s.length>0){for(let o=0;o0)){a||(t=this.replaceEntitiesValue(t,e,r));let l=c.jPath?r.toString():r,u=c.tagValueProcessor(e,t,l,s,o);return u==null?t:typeof u!=typeof t||u!==t?u:c.trimValues||t.trim()===t?Eq(t,c.parseTagValue,c.numberParseOptions):t}}i(Get,"parseTextData");function Het(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}i(Het,"resolveNameSpace");var zet=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Vet(t,e,r,n=!1){let s=this.options;if(n===!0||s.ignoreAttributes!==!0&&typeof t=="string"){let o=aR(t,zet),a=o.length,c={},l=new Array(a),u=!1,d={};for(let f=0;f",c,"Closing Tag is not closed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=p.indexOf(":");f!==-1&&(p=p.substr(f+1))}p=gq(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: `);m&&s.unpairedTagsSet.has(m)&&(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=yq(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let m=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),o.setXmlVersion(Number(m)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let m=new js(d.tagName);m.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(m[":@"]=p),this.addChild(r,m,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=Th(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let p=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:p}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=o.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=Th(t,"]]>",c,"CDATA is not closed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let m=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,m),c=d+2}else{let d=yq(t,c,s.removeNSPrefix);if(!d){let M=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${M}"`)}let p=d.tagName,m=d.rawTagName,f=d.tagExp,g=d.attrExpPresent,E=d.closeIndex;if({tagName:p,tagExp:f}=gq(s.transformTagName,p,f,s),s.strictReservedNames&&(p===s.commentPropName||p===s.cdataPropName||p===s.textNodeName||p===s.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let x=r;x&&s.unpairedTagsSet.has(x.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let w=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(w=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),f=p):f=f.substr(0,f.length-1),g=p!==f);let S=null,P={},Q;Q=$et(m),p!==e.tagname&&this.matcher.push(p,{},Q),p!==f&&g&&(S=this.buildAttributesMap(f,this.matcher,p),S&&(P=qet(S,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let q=c;if(this.isCurrentNodeStopNode){let M="";if(w)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let pe=this.readStopNodeData(t,m,E+1);if(!pe)throw new Error(`Unexpected end of ${m}`);c=pe.i,M=pe.tagContent}let V=new js(p);S&&(V[":@"]=S),V.add(s.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,V,this.readonlyMatcher,q)}else{if(w){({tagName:p,tagExp:f}=gq(s.transformTagName,p,f,s));let M=new js(p);S&&(M[":@"]=S),this.addChild(r,M,this.readonlyMatcher,q),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let M=new js(p);S&&(M[":@"]=S),this.addChild(r,M,this.readonlyMatcher,q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let M=new js(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),S&&(M[":@"]=S),this.addChild(r,M,this.readonlyMatcher,q),r=M}n="",c=E}}}else n+=t[c];return e.child},"parseXml");function Wet(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,o=this.options.updateTag(e.tagname,s,e[":@"]);o===!1||(typeof o=="string"&&(e.tagname=o),t.addChild(e,n))}i(Wet,"addChild");function jet(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}i(jet,"replaceEntitiesValue");function Jet(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}i(Jet,"saveTextToParentTag");function Ket(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}i(Ket,"isItStopNode");function Xet(t,e,r=">"){let n=0,s=t.length,o=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&&(s--,s===0))return{tagContent:t.substring(n,r),i:c};r=c}else if(a===63)r=Th(t,"?>",r+1,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===45&&t.charCodeAt(r+3)===45)r=Th(t,"-->",r+3,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===91)r=Th(t,"]]>",r,"StopNode is not closed.")-2;else{let c=yq(t,r,!1);c&&((c&&c.tagName)===e&&c.tagExp[c.tagExp.length-1]!=="/"&&s++,r=c.closeIndex)}}}i(ett,"readStopNodeData");function Eq(t,e,r){if(e&&typeof t=="string"){let n=t.trim();return n==="true"?!0:n==="false"?!1:fq(t,r)}else return Vde(t)?t:""}i(Eq,"parseValue");function gq(t,e,r,n){if(t){let s=t(e);r===e&&(r=s),e=s}return e=hpe(e,n),{tagName:e,tagExp:r}}i(gq,"transformTagName");function hpe(t,e){if(cR.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return GC.includes(t)?e.onDangerousProperty(t):t}i(hpe,"sanitizeName");var Cq=js.getMetaDataSymbol();function ttt(t,e){if(!t||typeof t!="object")return{};if(!e)return t;let r={};for(let n in t)if(n.startsWith(e)){let s=n.substring(e.length);r[s]=t[n]}else r[n]=t[n];return r}i(ttt,"stripAttributePrefix");function Iq(t,e,r,n){return gpe(t,e,r,n)}i(Iq,"prettify");function gpe(t,e,r,n){let s,o={};for(let a=0;a0&&(o[e.textNodeName]=s):s!==void 0&&(o[e.textNodeName]=s),o}i(gpe,"compress");function rtt(t){let e=Object.keys(t);for(let r=0;r/g,"]]]]>")}i(fR,"safeCdata");function Sd(t){return String(t).replace(/"/g,""").replace(/'/g,"'")}i(Sd,"escapeAttribute");var ott=` -`;function itt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(bq(r)==="?xml"){let s=r[":@"];if(s){let o=e.attributeNamePrefix+"version";if(s[o])return s[o]}}return"1.0"}i(itt,"detectXmlVersionFromArray");function Epe(t,e,r,n,s){return!r.sanitizeName||Sm(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(Epe,"resolveTagName");function wq(t,e){let r="";e.format&&(r=ott);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=xq(l,e),l}return""}for(let l=0;l`,c=!1,n.pop();continue}else if(m===e.commentPropName){let P=u[d][0][e.textNodeName],Q=mR(P);a+=r+``,c=!0,n.pop();continue}else if(m[0]==="?"){let P=ype(u[":@"],e,g,n,o);a+=(m==="?xml"?"":r)+`<${m}${P}?>`,c=!0,n.pop();continue}let E=r;E!==""&&(E+=e.indentBy);let x=ype(u[":@"],e,g,n,o),w=r+`<${m}${x}`,S;g?S=Ipe(u[d],e):S=Cpe(u[d],e,E,n,s,o),e.unpairedTags.indexOf(m)!==-1?e.suppressUnpairedNode?a+=w+">":a+=w+"/>":(!S||S.length===0)&&e.suppressEmptyNode?a+=w+"/>":S&&S.endsWith(">")?a+=w+`>${S}${r}`:(a+=w+">",S&&r!==""&&(S.includes("/>")||S.includes("`),c=!0,n.pop()}return a}i(Cpe,"arrToStr");function att(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[o]=Sd(t[s]),n=!0}return n?r:null}i(att,"extractAttributeValues");function Ipe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n`:r+=`<${o}${a}>${c}`}}}return r}i(Ipe,"getRawContent");function ctt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Sd(s)}"`}return r}i(ctt,"attr_to_str_raw");function bq(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}i(Sq,"getIgnoreAttributesFn");var utt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(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 Ks(t){if(this.options=Object.assign({},utt,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")],s=O7e(n);s&&t.headers.set("Content-Length",s),t.body=await fde(n)}i(M7e,"buildRequestBody");var kC="multipartPolicy",F7e=70,U7e=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function q7e(t){if(t.length>F7e)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!U7e.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(q7e,"assertValidBoundary");function WB(){return{name:kC,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",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,o,a]=s;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?q7e(r):r=D7e(),t.headers.set("Content-Type",`${o}; boundary=${r}`),await M7e(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(WB,"multipartPolicy");function jB(){return EB()}i(jB,"createEmptyPipeline");var Ade=hB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ljt=Ade.logger;function ic(t){return Ade.createClientLogger(t)}i(ic,"createClientLogger");var ac=ic("core-rest-pipeline");function L2(t={}){return SB({logger:ac.info,...t})}i(L2,"logPolicy");var O2=BB;function M2(t={}){return RB(t)}i(M2,"redirectPolicy");var JB=D(require("node:os"),1),KB=D(require("node:process"),1);function hde(){return"User-Agent"}i(hde,"getHeaderName");async function gde(t){if(KB.default&&KB.default.versions){let e=`${JB.default.type()} ${JB.default.release()}; ${JB.default.arch()}`,r=KB.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})`)}}i(gde,"setPlatformSpecificData");var XB="1.22.2";function j7e(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i(j7e,"getUserAgentString");function yde(){return hde()}i(yde,"getUserAgentHeaderName");async function ZB(t){let e=new Map;e.set("core-rest-pipeline",XB),await gde(e);let r=j7e(e);return t?`${t} ${r}`:r}i(ZB,"getUserAgentValue");var Ede=yde(),Cde="userAgentPolicy";function F2(t={}){let e=ZB(t.userAgentPrefix);return{name:Cde,async sendRequest(r,n){return r.headers.has(Ede)||r.headers.set(Ede,await e),n(r)}}}i(F2,"userAgentPolicy");var Lo=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function U2(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new Lo(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(U2,"createAbortablePromise");var eZe="The delay was aborted.";function LC(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return U2(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??eZe})}i(LC,"delay");function Id(t){if(Em(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}`}}i(Id,"getErrorMessage");function Ide(t){return Em(t)}i(Ide,"isError");function Bh(){return ym()}i(Bh,"randomUUID");var Rt=xm;var xde=Symbol("rawContent");function $2(t){return typeof t[xde]=="function"}i($2,"hasRawContent");function wde(t){return $2(t)?t[xde]():t}i(wde,"getRawContent");var eR=kC;function G2(){let t=WB();return{name:eR,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)$2(n.body)&&(n.body=wde(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(G2,"multipartPolicy");var H2=NB;function z2(){return TB()}i(z2,"decompressResponsePolicy");function V2(t={}){return _B(t)}i(V2,"defaultRetryPolicy");function Y2(){return QB()}i(Y2,"formDataPolicy");function xd(t){return v2(t)}i(xd,"getDefaultProxySettings");function W2(t,e){return GB(t,e)}i(W2,"proxyPolicy");var bde="setClientRequestIdPolicy";function j2(t="x-ms-client-request-id"){return{name:bde,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(j2,"setClientRequestIdPolicy");function J2(t){return HB(t)}i(J2,"agentPolicy");function K2(t){return zB(t)}i(K2,"tlsPolicy");var Rh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Sde(t={}){let e=new X2(t.parentContext);return t.span&&(e=e.setValue(Rh.span,t.span)),t.namespace&&(e=e.setValue(Rh.namespace,t.namespace)),e}i(Sde,"createTracingContext");var X2=class t{static{i(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 Rde=D(Bde(),1),rR=Rde.state;function tZe(){return{end:i(()=>{},"end"),isRecording:i(()=>!1,"isRecording"),recordException:i(()=>{},"recordException"),setAttribute:i(()=>{},"setAttribute"),setStatus:i(()=>{},"setStatus"),addEvent:i(()=>{},"addEvent")}}i(tZe,"createDefaultTracingSpan");function rZe(){return{createRequestHeaders:i(()=>({}),"createRequestHeaders"),parseTraceparentHeader:i(()=>{},"parseTraceparentHeader"),startSpan:i((t,e)=>({span:tZe(),tracingContext:Sde({parentContext:e.tracingContext})}),"startSpan"),withContext(t,e,...r){return e(...r)}}}i(rZe,"createDefaultInstrumenter");function OC(){return rR.instrumenterImplementation||(rR.instrumenterImplementation=rZe()),rR.instrumenterImplementation}i(OC,"getInstrumenter");function MC(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(u,d,p){let m=OC().startSpan(u,{...p,packageName:r,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext}),f=m.tracingContext,g=m.span;f.getValue(Rh.namespace)||(f=f.setValue(Rh.namespace,e)),g.setAttribute("az.namespace",f.getValue(Rh.namespace));let E=Object.assign({},d,{tracingOptions:{...d?.tracingOptions,tracingContext:f}});return{span:g,updatedOptions:E}}i(s,"startSpan");async function o(u,d,p,m){let{span:f,updatedOptions:g}=s(u,d,m);try{let E=await a(g.tracingOptions.tracingContext,()=>Promise.resolve(p(g,f)));return f.setStatus({status:"success"}),E}catch(E){throw f.setStatus({status:"error",error:E}),E}finally{f.end()}}i(o,"withSpan");function a(u,d,...p){return OC().withContext(u,d,...p)}i(a,"withContext");function c(u){return OC().parseTraceparentHeader(u)}i(c,"parseTraceparentHeader");function l(u){return OC().createRequestHeaders(u)}return i(l,"createRequestHeaders"),{startSpan:s,withSpan:o,withContext:a,parseTraceparentHeader:c,createRequestHeaders:l}}i(MC,"createTracingClient");var jl=Is;function Sm(t){return CB(t)}i(Sm,"isRestError");var Nde="tracingPolicy";function Z2(t={}){let e=ZB(t.userAgentPrefix),r=new ua({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),n=nZe();return{name:Nde,async sendRequest(s,o){if(!n)return o(s);let a=await e,c={"http.url":r.sanitizeUrl(s.url),"http.method":s.method,"http.user_agent":a,requestId:s.requestId};a&&(c["http.user_agent"]=a);let{span:l,tracingContext:u}=sZe(n,s,c)??{};if(!l||!u)return o(s);try{let d=await n.withContext(u,o,s);return iZe(l,d),d}catch(d){throw oZe(l,d),d}}}}i(Z2,"tracingPolicy");function nZe(){try{return MC({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:XB})}catch(t){ac.warning(`Error when creating the TracingClient: ${Id(t)}`);return}}i(nZe,"tryCreateTracingClient");function sZe(t,e,r){try{let{span:n,updatedOptions:s}=t.startSpan(`HTTP ${e.method}`,{tracingOptions:e.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return}let o=t.createRequestHeaders(s.tracingOptions.tracingContext);for(let[a,c]of Object.entries(o))e.headers.set(a,c);return{span:n,tracingContext:s.tracingOptions.tracingContext}}catch(n){ac.warning(`Skipping creating a tracing span due to an error: ${Id(n)}`);return}}i(sZe,"tryCreateSpan");function oZe(t,e){try{t.setStatus({status:"error",error:Ide(e)?e:void 0}),Sm(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(r){ac.warning(`Skipping tracing span processing due to an error: ${Id(r)}`)}}i(oZe,"tryProcessError");function iZe(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){ac.warning(`Skipping tracing span processing due to an error: ${Id(r)}`)}}i(iZe,"tryProcessResponse");function nR(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",s),r=!1)}i(n,"cleanup");function s(){e.abort(t.reason),n()}return i(s,"listener"),t.addEventListener("abort",s),{abortSignal:e.signal,cleanup:n}}i(nR,"wrapAbortSignalLike");var aZe="wrapAbortSignalLikePolicy";function Tde(){return{name:aZe,sendRequest:i(async(t,e)=>{if(!t.abortSignal)return e(t);let{abortSignal:r,cleanup:n}=nR(t.abortSignal);t.abortSignal=r;try{return await e(t)}finally{n?.()}},"sendRequest")}}i(Tde,"wrapAbortSignalLikePolicy");function eq(t){let e=jB();return Rt&&(t.agent&&e.addPolicy(J2(t.agent)),t.tlsOptions&&e.addPolicy(K2(t.tlsOptions)),e.addPolicy(W2(t.proxyOptions)),e.addPolicy(z2())),e.addPolicy(Tde()),e.addPolicy(Y2(),{beforePolicies:[eR]}),e.addPolicy(F2(t.userAgentOptions)),e.addPolicy(j2(t.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(G2(),{afterPhase:"Deserialize"}),e.addPolicy(V2(t.retryOptions),{phase:"Retry"}),e.addPolicy(Z2({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),Rt&&e.addPolicy(M2(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(L2(t.loggingOptions),{afterPhase:"Sign"}),e}i(eq,"createPipelineFromOptions");function FC(){let t=bB();return{async sendRequest(e){let{abortSignal:r,cleanup:n}=e.abortSignal?nR(e.abortSignal):{};try{return e.abortSignal=r,await t.sendRequest(e)}finally{n?.()}}}}i(FC,"createDefaultHttpClient");function Jl(t){return _o(t)}i(Jl,"createHttpHeaders");function UC(t){return yB(t)}i(UC,"createPipelineRequest");var F6t=ic("core-rest-pipeline retryPolicy");var cZe={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function lZe(t,e,r){async function n(){if(Date.now()t.getToken(l,u),"tryGetAccessToken"),o.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then(p=>(r=null,n=p,s=u.tenantId,n)).catch(p=>{throw r=null,n=null,s=void 0,p})),r}return i(c,"refresh"),async(l,u)=>{let d=!!u.claims,p=s!==u.tenantId;return d&&(n=null),p||d||a.mustRefresh?c(l,u):(a.shouldRefresh&&c(l,u),n)}}i(tq,"createTokenCycler");var Qde="bearerTokenAuthenticationPolicy";async function sR(t,e){try{return[await e(t),void 0]}catch(r){if(Sm(r)&&r.response)return[r.response,r];throw r}}i(sR,"trySendRequest");async function uZe(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:!0},o=await r(e,s);o&&t.request.headers.set("Authorization",`Bearer ${o.token}`)}i(uZe,"defaultAuthorizeRequest");function Pde(t){return t.status===401&&t.headers.has("WWW-Authenticate")}i(Pde,"isChallengeResponse");async function vde(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}i(vde,"authorizeRequestOnCaeChallenge");function Nh(t){let{credential:e,scopes:r,challengeCallbacks:n}=t,s=t.logger||ac,o={authorizeRequest:n?.authorizeRequest?.bind(n)??uZe,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)},a=e?tq(e):()=>Promise.resolve(null);return{name:Qde,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 o.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:c,getAccessToken:a,logger:s});let u,d,p;if([u,d]=await sR(c,l),Pde(u)){let m=_de(u.headers.get("WWW-Authenticate"));if(m){let f;try{f=atob(m)}catch{return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${m}`),u}p=await vde({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},f),p&&([u,d]=await sR(c,l))}else if(o.authorizeRequestOnChallenge&&(p=await o.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:c,response:u,getAccessToken:a,logger:s}),p&&([u,d]=await sR(c,l)),Pde(u)&&(m=_de(u.headers.get("WWW-Authenticate")),m))){let f;try{f=atob(m)}catch{return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${m}`),u}p=await vde({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},f),p&&([u,d]=await sR(c,l))}}if(d)throw d;return u}}}i(Nh,"bearerTokenAuthenticationPolicy");function dZe(t){let e=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,r=/(\w+)="([^"]*)"/g,n=[],s;for(;(s=e.exec(t))!==null;){let o=s[1],a=s[2],c={},l;for(;(l=r.exec(a))!==null;)c[l[1]]=l[2];n.push({scheme:o,params:c})}return n}i(dZe,"parseChallenges");function _de(t){return t?dZe(t).find(r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims")?.params.claims:void 0}i(_de,"getCaeChallengeClaims");function Oo(t){let e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}i(Oo,"isTokenCredential");var rq="DisableKeepAlivePolicy";function Dde(){return{name:rq,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}i(Dde,"createDisableKeepAlivePolicy");function kde(t){return t.getOrderedPolicies().some(e=>e.name===rq)}i(kde,"pipelineContainsDisableKeepAlivePolicy");function nq(t){return(t instanceof Buffer?t:Buffer.from(t.buffer)).toString("base64")}i(nq,"encodeByteArray");function sq(t){return Buffer.from(t,"base64")}i(sq,"decodeString");function mZe(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)}i(mZe,"isPrimitiveBody");var fZe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Lde(t){return fZe.test(t)}i(Lde,"isDuration");var AZe=/^[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 Ode(t){return AZe.test(t)}i(Ode,"isValidUuid");function hZe(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}i(hZe,"handleNullableResponseAndWrappableBody");function oq(t,e){let r=t.parsedHeaders;if(t.request.method==="HEAD")return{...r,body:t.parsedBody};let n=e&&e.bodyMapper,s=!!n?.nullable,o=n?.type.name;if(o==="Stream")return{...r,blobBody:t.blobBody,readableStreamBody:t.readableStreamBody};let a=o==="Composite"&&n.type.modelProperties||{},c=Object.keys(a).some(l=>a[l].serializedName==="");if(o==="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 s&&!t.parsedBody&&!r&&Object.getOwnPropertyNames(a).length===0?null:l}return hZe({body:t.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:mZe(t.parsedBody,o)})}i(oq,"flattenResponse");var iq=class{static{i(this,"SerializerImpl")}modelMappers;isXML;constructor(e={},r=!1){this.modelMappers=e,this.isXML=r}validateConstraints(e,r,n){let s=i((o,a)=>{throw new Error(`"${n}" with value "${r}" should satisfy the constraint "${o}": ${a}.`)},"failValidation");if(e.constraints&&r!==void 0&&r!==null){let{ExclusiveMaximum:o,ExclusiveMinimum:a,InclusiveMaximum:c,InclusiveMinimum:l,MaxItems:u,MaxLength:d,MinItems:p,MinLength:m,MultipleOf:f,Pattern:g,UniqueItems:E}=e.constraints;if(o!==void 0&&r>=o&&s("ExclusiveMaximum",o),a!==void 0&&r<=a&&s("ExclusiveMinimum",a),c!==void 0&&r>c&&s("InclusiveMaximum",c),l!==void 0&&ru&&s("MaxItems",u),d!==void 0&&r.length>d&&s("MaxLength",d),p!==void 0&&r.lengthS.indexOf(x)!==w)&&s("UniqueItems",E)}}serialize(e,r,n,s={xml:{}}){let o={xml:{rootName:s.xml.rootName??"",includeRoot:s.xml.includeRoot??!1,xmlCharKey:s.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=xZe(c,n,r):c.match(/^Enum$/i)!==null?a=wZe(n,e.type.allowedValues,r):c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?a=BZe(c,r,n):c.match(/^ByteArray$/i)!==null?a=bZe(n,r):c.match(/^Base64Url$/i)!==null?a=SZe(n,r):c.match(/^Sequence$/i)!==null?a=RZe(this,e,r,n,!!this.isXML,o):c.match(/^Dictionary$/i)!==null?a=NZe(this,e,r,n,!!this.isXML,o):c.match(/^Composite$/i)!==null&&(a=PZe(this,e,r,n,!!this.isXML,o)),a}deserialize(e,r,n,s={xml:{}}){let o={xml:{rootName:s.xml.rootName??"",includeRoot:s.xml.includeRoot??!1,xmlCharKey:s.xml.xmlCharKey??"_"},ignoreUnknownProperties:s.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=_Ze(this,e,r,n,o);else{if(this.isXML){let l=o.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=IZe(r):c.match(/^ByteArray$/i)!==null?a=sq(r):c.match(/^Base64Url$/i)!==null?a=EZe(r):c.match(/^Sequence$/i)!==null?a=DZe(this,e,r,n,o):c.match(/^Dictionary$/i)!==null&&(a=QZe(this,e,r,n,o))}return e.isConstant&&(a=e.defaultValue),a}};function Mo(t={},e=!1){return new iq(t,e)}i(Mo,"createSerializer");function gZe(t,e){let r=t.length;for(;r-1>=0&&t[r-1]===e;)--r;return t.substr(0,r)}i(gZe,"trimEnd");function yZe(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=nq(t);return gZe(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}i(yZe,"bufferToBase64Url");function EZe(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,"/"),sq(t)}}i(EZe,"base64UrlToByteArray");function aq(t){let e=[],r="";if(t){let n=t.split(".");for(let s of n)s.charAt(s.length-1)==="\\"?r+=s.substr(0,s.length-1)+".":(r+=s,e.push(r),r="")}return e}i(aq,"splitSerializeName");function CZe(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}i(CZe,"dateToUnixTime");function IZe(t){if(t)return new Date(t*1e3)}i(IZe,"unixTimeToDate");function xZe(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"&&Ode(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}i(xZe,"serializeBasicTypes");function wZe(t,e,r){if(!e)throw new Error(`Please provide a set of allowedValues to validate ${t} as an Enum Type.`);if(!e.some(s=>typeof s.valueOf()=="string"?s.toLowerCase()===r.toLowerCase():s===r))throw new Error(`${r} is not a valid value for ${t}. The valid values are: ${JSON.stringify(e)}.`);return r}i(wZe,"serializeEnumType");function bZe(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=nq(e)}return e}i(bZe,"serializeByteArrayType");function SZe(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=yZe(e)}return e}i(SZe,"serializeBase64UrlType");function BZe(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=CZe(e)}else if(t.match(/^TimeSpan$/i)!==null&&!Lde(e))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}i(BZe,"serializeDateTypes");function RZe(t,e,r,n,s,o){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;lm!==d)&&(a[d]=t.serialize(l,r[d],n+'["'+d+'"]',o))}return a}return r}i(PZe,"serializeCompositeType");function qde(t,e,r,n){if(!r||!t.xmlNamespace)return e;let o={[t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns"]:t.xmlNamespace};if(["Composite"].includes(t.type.name)){if(e["$"])return e;{let c={...e};return c["$"]=o,c}}let a={};return a[n.xml.xmlCharKey]=e,a["$"]=o,a}i(qde,"getXmlObjectValue");function vZe(t,e){return["$",e.xml.xmlCharKey].includes(t)}i(vZe,"isSpecialXmlProperty");function _Ze(t,e,r,n,s){let o=s.xml.xmlCharKey??"_";oR(t,e)&&(e=$de(t,e,r,"serializedName"));let a=Ude(t,e,n),c={},l=[];for(let d of Object.keys(a)){let p=a[d],m=aq(a[d].serializedName);l.push(m[0]);let{serializedName:f,xmlName:g,xmlElementName:E}=p,x=n;f!==""&&f!==void 0&&(x=n+"."+f);let w=p.headerCollectionPrefix;if(w){let S={};for(let P of Object.keys(r))P.startsWith(w)&&(S[P.substring(w.length)]=t.deserialize(p.type.value,r[P],x,s)),l.push(P);c[d]=S}else if(t.isXML)if(p.xmlIsAttribute&&r["$"])c[d]=t.deserialize(p,r["$"][g],x,s);else if(p.xmlIsMsText)r[o]!==void 0?c[d]=r[o]:typeof r=="string"&&(c[d]=r);else{let S=E||g||f;if(p.xmlIsWrapped){let Q=r[g]?.[E]??[];c[d]=t.deserialize(p,Q,x,s),l.push(g)}else{let P=r[S];c[d]=t.deserialize(p,P,x,s),l.push(S)}}else{let S,P=r,Q=0;for(let V of m){if(!P)break;Q++,P=P[V]}P===null&&Q{for(let m in a)if(aq(a[m].serializedName)[0]===p)return!1;return!0},"isAdditionalProperty");for(let p in r)d(p)&&(c[p]=t.deserialize(u,r[p],n+'["'+p+'"]',s))}else if(r&&!s.ignoreUnknownProperties)for(let d of Object.keys(r))c[d]===void 0&&!l.includes(d)&&!vZe(d,s)&&(c[d]=r[d]);return c}i(_Ze,"deserializeCompositeType");function QZe(t,e,r,n,s){let o=e.type.value;if(!o||typeof o!="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(o,r[c],n,s);return a}return r}i(QZe,"deserializeDictionaryType");function DZe(t,e,r,n,s){let o=e.type.element;if(!o||typeof o!="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]),o.type.name==="Composite"&&o.type.className&&(o=t.modelMappers[o.type.className]??o);let a=[];for(let c=0;c0)if(s.isConstant)o=s.defaultValue;else{let a=zde(t,n);!a.propertyFound&&r&&(a=zde(r,n));let c=!1;a.propertyFound||(c=s.required||n[0]==="options"&&n.length===2),o=c?s.defaultValue:a.propertyValue}}else{s.required&&(o={});for(let a in n){let c=s.type.modelProperties[a],l=n[a],u=bd(t,{parameterPath:l,mapper:c},r);u!==void 0&&(o||(o={}),o[a]=u)}}return o}i(bd,"getOperationArgumentValueFromParameter");function zde(t,e){let r={propertyFound:!1},n=0;for(;n=200&&r.status<300);l.headersMapper&&(o.parsedHeaders=c.serializer.deserialize(l.headersMapper,o.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:!0}))}return o}i(qZe,"deserializeResponseBody");function $Ze(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}i($Ze,"isOperationSpecEmpty");function GZe(t,e,r,n){let s=200<=t.status&&t.status<300;if($Ze(e)?s:!!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 jl(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 p=t.parsedBody,m;if(u){let g=p;if(e.isXML&&u.type.name===cc.Sequence){g=[];let E=u.xmlElementName;typeof p=="object"&&E&&(g=p[E])}m=e.serializer.deserialize(u,g,"error.response.parsedBody",n)}let f=p.error||m||p;l.code=f.code,f.message&&(l.message=f.message),u&&(l.response.parsedBody=m)}t.headers&&d&&(l.response.parsedHeaders=e.serializer.deserialize(d,t.headers.toJSON(),"operationRes.parsedHeaders"))}catch(p){l.message=`Error "${p.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}i(GZe,"handleErrorResponse");async function HZe(t,e,r,n,s){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){let o=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(o),r;if(c.some(l=>e.indexOf(l)!==-1)){if(!s)throw new Error("Parsing XML not supported.");let l=await s(o,n.xml);return r.parsedBody=l,r}}catch(l){let u=`Error "${l}" occurred while parsing the response body - ${r.bodyAsText}.`,d=l.code||jl.PARSE_ERROR;throw new jl(u,{code:d,statusCode:r.status,request:r.request,response:r})}}return r}i(HZe,"parse");function Wde(t){let e=new Set;for(let r in t.responses){let n=t.responses[r];n.bodyMapper&&n.bodyMapper.type.name===cc.Stream&&e.add(Number(r))}return e}i(Wde,"getStreamingResponseStatusCodes");function lc(t){let{parameterPath:e,mapper:r}=t,n;return typeof e=="string"?n=e:Array.isArray(e)?n=e.join("."):n=r.serializedName,n}i(lc,"getPathStringFromParameter");var jde="serializationPolicy";function aR(t={}){let e=t.stringifyXML;return{name:jde,async sendRequest(r,n){let s=Kl(r),o=s?.operationSpec,a=s?.operationArguments;return o&&a&&(zZe(r,a,o),VZe(r,a,o,e)),n(r)}}}i(aR,"serializationPolicy");function zZe(t,e,r){if(r.headerParameters)for(let s of r.headerParameters){let o=bd(e,s);if(o!=null||s.mapper.required){o=r.serializer.serialize(s.mapper,o,lc(s));let a=s.mapper.headerCollectionPrefix;if(a)for(let c of Object.keys(o))t.headers.set(a+c,o[c]);else t.headers.set(s.mapper.serializedName||lc(s),o)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let s of Object.keys(n))t.headers.set(s,n[s])}i(zZe,"serializeHeaders");function VZe(t,e,r,n=function(){throw new Error("XML serialization unsupported!")}){let s=e.options?.serializerOptions,o={xml:{rootName:s?.xml.rootName??"",includeRoot:s?.xml.includeRoot??!1,xmlCharKey:s?.xml.xmlCharKey??"_"}},a=o.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){t.body=bd(e,r.requestBody);let c=r.requestBody.mapper,{required:l,serializedName:u,xmlName:d,xmlElementName:p,xmlNamespace:m,xmlNamespacePrefix:f,nullable:g}=c,E=c.type.name;try{if(t.body!==void 0&&t.body!==null||g&&t.body===null||l){let x=lc(r.requestBody);t.body=r.serializer.serialize(c,t.body,x,o);let w=E===cc.Stream;if(r.isXML){let S=f?`xmlns:${f}`:"xmlns",P=YZe(m,S,E,t.body,o);E===cc.Sequence?t.body=n(WZe(P,p||d||u,S,m),{rootName:d||u,xmlCharKey:a}):w||(t.body=n(P,{rootName:d||u,xmlCharKey:a}))}else{if(E===cc.String&&(r.contentType?.match("text/plain")||r.mediaType==="text"))return;w||(t.body=JSON.stringify(t.body))}}}catch(x){throw new Error(`Error "${x.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=bd(e,c);if(l!=null){let u=c.mapper.serializedName||lc(c);t.formData[u]=r.serializer.serialize(c.mapper,l,lc(c),o)}}}}i(VZe,"serializeRequestBody");function YZe(t,e,r,n,s){if(t&&!["Composite","Sequence","Dictionary"].includes(r)){let o={};return o[s.xml.xmlCharKey]=n,o["$"]={[e]:t},o}return n}i(YZe,"getXmlValueWithNamespace");function WZe(t,e,r,n){if(Array.isArray(t)||(t=[t]),!r||!n)return{[e]:t};let s={[e]:t};return s["$"]={[r]:n},s}i(WZe,"prepareXMLRootList");function qC(t={}){let e=eq(t??{});return t.credentialOptions&&e.addPolicy(Nh({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(aR(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(lq(t.deserializationOptions),{phase:"Deserialize"}),e}i(qC,"createClientPipeline");var uq;function Jde(){return uq||(uq=FC()),uq}i(Jde,"getCachedDefaultHttpClient");var jZe={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function Xde(t,e,r,n){let s=JZe(e,r,n),o=!1,a=Kde(t,s);if(e.path){let u=Kde(e.path,s);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),KZe(u)?(a=u,o=!0):a=XZe(a,u)}let{queryParams:c,sequenceParams:l}=ZZe(e,r,n);return a=tet(a,c,l,o),a}i(Xde,"getRequestUrl");function Kde(t,e){let r=t;for(let[n,s]of e)r=r.split(n).join(s);return r}i(Kde,"replaceAll");function JZe(t,e,r){let n=new Map;if(t.urlParameters?.length)for(let s of t.urlParameters){let o=bd(e,s,r),a=lc(s);o=t.serializer.serialize(s.mapper,o,a),s.skipEncoding||(o=encodeURIComponent(o)),n.set(`{${s.mapper.serializedName||a}}`,o)}return n}i(JZe,"calculateUrlReplacements");function KZe(t){return t.includes("://")}i(KZe,"isAbsoluteUrl");function XZe(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 s=e.indexOf("?");if(s!==-1){let o=e.substring(0,s),a=e.substring(s+1);n=n+o,a&&(r.search=r.search?`${r.search}&${a}`:a)}else n=n+e;return r.pathname=n,r.toString()}i(XZe,"appendPath");function ZZe(t,e,r){let n=new Map,s=new Set;if(t.queryParameters?.length)for(let o of t.queryParameters){o.mapper.type.name==="Sequence"&&o.mapper.serializedName&&s.add(o.mapper.serializedName);let a=bd(e,o,r);if(a!=null||o.mapper.required){a=t.serializer.serialize(o.mapper,a,lc(o));let c=o.collectionFormat?jZe[o.collectionFormat]:"";if(Array.isArray(a)&&(a=a.map(l=>l??"")),o.collectionFormat==="Multi"&&a.length===0)continue;Array.isArray(a)&&(o.collectionFormat==="SSV"||o.collectionFormat==="TSV")&&(a=a.join(c)),o.skipEncoding||(Array.isArray(a)?a=a.map(l=>encodeURIComponent(l)):a=encodeURIComponent(a)),Array.isArray(a)&&(o.collectionFormat==="CSV"||o.collectionFormat==="Pipes")&&(a=a.join(c)),n.set(o.mapper.serializedName||lc(o),a)}}return{queryParams:n,sequenceParams:s}}i(ZZe,"calculateQueryParameters");function eet(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[s,o]=n.split("=",2),a=e.get(s);a?Array.isArray(a)?a.push(o):e.set(s,[a,o]):e.set(s,o)}return e}i(eet,"simpleParseQueryParams");function tet(t,e,r,n=!1){if(e.size===0)return t;let s=new URL(t),o=eet(s.search);for(let[c,l]of e){let u=o.get(c);if(Array.isArray(u))if(Array.isArray(l)){u.push(...l);let d=new Set(u);o.set(c,Array.from(d))}else u.push(l);else u?(Array.isArray(l)?l.unshift(u):r.has(c)&&o.set(c,[u,l]),n||o.set(c,l)):o.set(c,l)}let a=[];for(let[c,l]of o)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 s.search=a.length?`?${a.join("&")}`:"",s.toString()}i(tet,"appendQueryParams");var dq=ic("core-client");var $C=class{static{i(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||Jde(),this.pipeline=e.pipeline||ret(e),e.additionalPolicies?.length)for(let{policy:r,position:n}of e.additionalPolicies){let s=n==="perRetry"?"Sign":void 0;this.pipeline.addPolicy(r,{afterPhase:s})}}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 s=Xde(n,r,e,this),o=UC({url:s});o.method=r.httpMethod;let a=Kl(o);a.operationSpec=r,a.operationArguments=e;let c=r.contentType||this._requestContentType;c&&r.requestBody&&o.headers.set("Content-Type",c);let l=e.options;if(l){let u=l.requestOptions;u&&(u.timeout&&(o.timeout=u.timeout),u.onUploadProgress&&(o.onUploadProgress=u.onUploadProgress),u.onDownloadProgress&&(o.onDownloadProgress=u.onDownloadProgress),u.shouldDeserialize!==void 0&&(a.shouldDeserialize=u.shouldDeserialize),u.allowInsecureConnection&&(o.allowInsecureConnection=!0)),l.abortSignal&&(o.abortSignal=l.abortSignal),l.tracingOptions&&(o.tracingOptions=l.tracingOptions)}this._allowInsecureConnection&&(o.allowInsecureConnection=!0),o.streamResponseStatusCodes===void 0&&(o.streamResponseStatusCodes=Wde(r));try{let u=await this.sendRequest(o),d=oq(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,p=oq(d,r.responses[u.statusCode]||r.responses.default);u.details=p,l?.onResponse&&l.onResponse(d,p,u)}throw u}}};function ret(t){let e=net(t),r=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return qC({...t,credentialOptions:r})}i(ret,"createDefaultPipeline");function net(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")}i(net,"getCredentialScopes");var Zde={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function set(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)}i(set,"isUuid");var cR=i(async t=>{let e=uet(t.request),r=aet(t.response);if(r){let n=cet(r),s=iet(t,n),o=oet(n);if(!o)return!1;let a=await t.getAccessToken(s,{...e,tenantId:o});return a?(t.request.headers.set(Zde.HeaderConstants.AUTHORIZATION,`${a.tokenType??"Bearer"} ${a.token}`),!0):!1}return!1},"authorizeRequestOnTenantChallenge");function oet(t){let n=new URL(t.authorization_uri).pathname.split("/")[1];if(n&&set(n))return n}i(oet,"extractTenantId");function iet(t,e){if(!e.resource_id)return t.scopes;let r=new URL(e.resource_id);r.pathname=Zde.DefaultScope;let n=r.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}i(iet,"buildScopes");function aet(t){let e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}i(aet,"getChallenge");function cet(t){return`${t.slice(7).trim()} `.split(" ").filter(s=>s).map(s=>(([o,a])=>({[o]:a}))(s.trim().split("="))).reduce((s,o)=>({...s,...o}),{})}i(cet,"parseChallenge");function uet(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}i(uet,"requestToOptions");var epe=Symbol("Original PipelineRequest"),det=Symbol.for("@azure/core-client original request");function HC(t,e={}){let n=t[epe],s=Jl(t.headers.toJson({preserveCase:!0}));if(n)return n.headers=s,n;{let o=UC({url:t.url,method:t.method,headers:s,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&&(o[det]=e.originalRequest),o}}i(HC,"toPipelineRequest");function Bm(t,e){let r=e?.originalRequest??t,n={url:t.url,method:t.method,headers:zC(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(s,o,a){return o===epe?t:o==="clone"?()=>Bm(HC(n,{originalRequest:r}),{createProxy:!0,originalRequest:r}):Reflect.get(s,o,a)},set(s,o,a,c){return o==="keepAlive"&&(t.disableKeepAlive=!a),typeof o=="string"&&["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"].includes(o)&&(t[o]=a),Reflect.set(s,o,a,c)}}):n}i(Bm,"toWebResourceLike");function zC(t){return new pq(t.toJSON({preserveCase:!0}))}i(zC,"toHttpHeadersLike");function GC(t){return t.toLowerCase()}i(GC,"getHeaderKey");var pq=class t{static{i(this,"HttpHeaders")}_headersMap;constructor(e){if(this._headersMap={},e)for(let r in e)this.set(r,e[r])}set(e,r){this._headersMap[GC(e)]={name:e,value:r.toString()}}get(e){let r=this._headersMap[GC(e)];return r?r.value:void 0}contains(e){return!!this._headersMap[GC(e)]}remove(e){let r=this.contains(e);return delete this._headersMap[GC(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(Bm(e,{createProxy:!0}));return uR(r)},"sendRequest")}}i(Aq,"convertHttpClient");var npe=":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",fet=npe+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Aet="["+npe+"]["+fet+"]*",het=new RegExp("^"+Aet+"$");function dR(t,e){let r=[],n=e.exec(t);for(;n;){let s=[];s.startIndex=e.lastIndex-n[0].length;let o=n.length;for(let a=0;a"u")},"isName");function spe(t){return typeof t<"u"}i(spe,"isExist");var YC=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],pR=["__proto__","constructor","prototype"];var get={allowBooleanAttributes:!1,unpairedTags:[]};function mR(t,e){e=Object.assign({},get,e);let r=[],n=!1,s=!1;t[0]==="\uFEFF"&&(t=t.substr(1));for(let o=0;o"&&t[o]!==" "&&t[o]!==" "&&t[o]!==` +`&&t[o]!=="\r";o++)l+=t[o];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),o--),!Bet(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",Lr("InvalidTag",p,xs(t,o))}let u=Cet(t,o);if(u===!1)return Lr("InvalidAttr","Attributes for '"+l+"' have open quote.",xs(t,o));let d=u.value;if(o=u.index,d[d.length-1]==="/"){let p=o-d.length;d=d.substring(0,d.length-1);let m=cpe(d,e);if(m===!0)n=!0;else return Lr(m.err.code,m.err.msg,xs(t,p+m.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Lr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",xs(t,a));if(r.length===0)return Lr("InvalidTag","Closing tag '"+l+"' has not been opened.",xs(t,a));{let p=r.pop();if(l!==p.tagName){let m=xs(t,p.tagStartPos);return Lr("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",xs(t,a))}r.length==0&&(s=!0)}}else return Lr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",xs(t,o));else{let p=cpe(d,e);if(p!==!0)return Lr(p.err.code,p.err.msg,xs(t,o-d.length+p.err.line));if(s===!0)return Lr("InvalidXml","Multiple possible root nodes found.",xs(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o0)return Lr("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Lr("InvalidXml","Start tag expected.",1);return!0}i(mR,"validate");function ope(t){return t===" "||t===" "||t===` +`||t==="\r"}i(ope,"isWhiteSpace");function ipe(t,e){let r=e;for(;e5&&n==="xml")return Lr("InvalidXml","XML declaration allowed only at the start of the document.",xs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(ipe,"readPI");function ape(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}i(ape,"readCommentAndCDATA");var yet='"',Eet="'";function Cet(t,e){let r="",n="",s=!1;for(;e"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}i(Cet,"readAttributeStr");var Iet=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function cpe(t,e){let r=dR(t,Iet),n={};for(let s=0;s",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"},upe={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"},dpe={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"},ppe={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"},mpe={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"},fpe={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:"<"},Ape={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"},hpe={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"},gpe={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"},ype={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"},fR={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"},Epe={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"},Cpe={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"},Ret={...lpe,...upe,...dpe,...ppe,...mpe,...fpe,...Ape,...hpe,...gpe,...ype,...fR,...Epe,...Cpe},jC={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},gq={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 Net=new Set("!?\\\\/[]$%{}^&*()<>|+");function Ipe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Net.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}i(Ipe,"validateEntityName");function yq(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let o=s.val;typeof o=="string"&&(e[n]=o)}}return e}i(yq,"mergeEntityMaps");var Rm="external",AR="base",Eq="all";function Tet(t){return!t||t===Rm?new Set([Rm]):t===Eq?new Set([Eq]):t===AR?new Set([AR]):Array.isArray(t)?new Set(t):new Set([Rm])}i(Tet,"parseLimitTiers");var js=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Pet=new Set([9,10,13]);function vet(t){if(!t)return{xmlVersion:1,onLevel:js.allow,nullLevel:js.remove};let e=t.xmlVersion===1.1?1.1:1,r=js[t.onNCR]??js.allow,n=js[t.nullNCR]??js.remove,s=Math.max(n,js.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}i(vet,"parseNCRConfig");var Ph=class{static{i(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=Tet(this._limit.applyLimitsTo??Rm),this._numericAllowed=e.numericAllowed??!0,this._baseMap=yq(jC,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=vet(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))Ipe(r);this._externalMap=yq(e)}addExternalEntity(e,r){Ipe(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=yq(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=[],s=e.length,o=0,a=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;a=s||e.charCodeAt(p)!==59){a++;continue}let m=e.slice(a+1,p);if(m.length===0){a++;continue}let f,g;if(this._removeSet.has(m))f="",g===void 0&&(g=Rm);else if(this._leaveSet.has(m)){a++;continue}else if(m.charCodeAt(0)===35){let E=this._resolveNCR(m);if(E===void 0){a++;continue}f=E,g=AR}else{let E=this._resolveName(m);f=E?.value,g=E?.tier}if(f===void 0){a++;continue}if(a>o&&n.push(e.slice(o,a)),n.push(f),o=p+1,a=o,u&&this._tierCounts(g)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let E=f.length-(m.length+2);if(E>0&&(this._expandedLength+=E,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}o=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!Pet.has(e)?js.remove:-1}_applyNCRAction(e,r,n){switch(e){case js.allow:return String.fromCodePoint(n);case js.remove:return"";case js.leave:return;case js.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 s=this._classifyNCR(n);if(!this._numericAllowed&&sYC.includes(t)?"__"+t:t,"defaultOnDangerousProperty"),_et={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:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:i(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:i(function(t,e,r){return t},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:xpe};function Qet(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(YC.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(pR.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}i(Qet,"validatePropertyName");function wpe(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"}:wpe(!0)}i(wpe,"normalizeProcessEntities");var bpe=i(function(t){let e=Object.assign({},_et,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:s}of r)n&&Qet(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=xpe),e.processEntities=wpe(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 hR;typeof Symbol!="function"?hR="@@xmlMetadata":hR=Symbol("XML Node Metadata");var Js=class{static{i(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][hR]={startIndex:r})}static getMetaDataSymbol(){return hR}};var Spe=":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",Det=Spe+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040",Bpe=":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}",ket=Bpe+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",Rpe=i((t,e,r="")=>{let n=t.replace(":",""),s=e.replace(":",""),o=`[${n}][${s}]*`;return{name:new RegExp(`^[${t}][${e}]*$`,r),ncName:new RegExp(`^${o}$`,r),qName:new RegExp(`^${o}(?::${o})?$`,r),nmToken:new RegExp(`^[${e}]+$`,r),nmTokens:new RegExp(`^[${e}]+(?:\\s+[${e}]+)*$`,r)}},"buildRegexes"),Let=Rpe(Spe,Det),Oet=Rpe(Bpe,ket,"u"),Met=i((t="1.0")=>t==="1.1"?Oet:Let,"getRegexes");var Nm=i((t,{xmlVersion:e="1.0"}={})=>Met(e).qName.test(t),"qName");var KC=class{static{i(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),s=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 o=1,a=!1,c=!1,l="";for(;r=this.options.maxEntityCount)throw new Error(`Entity count (${s+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[u]=d,s++}}else if(a&&Tm(e,"!ELEMENT",r)){r+=8;let{index:u}=this.readElementExp(e,r+1);r=u}else if(a&&Tm(e,"!ATTLIST",r))r+=8;else if(a&&Tm(e,"!NOTATION",r)){r+=9;let{index:u}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=u}else if(Tm(e,"!--",r))c=!0;else throw new Error("Invalid DOCTYPE");o++,l=""}else if(e[r]===">"){if(c?e[r-1]==="-"&&e[r-2]==="-"&&(c=!1,o--):o--,o===0)break}else e[r]==="["?a=!0:l+=e[r];if(o!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:r}}readEntityExp(e,r){r=Ks(e,r);let n=r;for(;rthis.options.maxEntitySize)throw new Error(`Entity "${s}" size (${o.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return r--,[s,o,r]}readNotationExp(e,r){r=Ks(e,r);let n=r;for(;r{for(;e1||o.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===`${s}${a}`?l:t;let d=o?a:r;return o?d===u||s+d===u?l:t:d===u||d===s+u?l:t}}else return t}}else return Yet(t,Number(r),e)}i(Iq,"toNumber");var Het=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function zet(t,e,r){if(!r.eNotation)return t;let n=e.match(Het);if(n){let s=n[1]||"",o=n[3].indexOf("e")===-1?"E":"e",a=n[2],c=s?t[a.length+1]===o:t[a.length]===o;return a.length>1&&c?t:a.length===1&&(n[3].startsWith(`.${o}`)||n[3][0]===o)?Number(e):a.length>0?r.leadingZeros&&!c?(e=(n[1]||"")+n[3],Number(e)):t:Number(e)}else return t}i(zet,"resolveEnotation");function Vet(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}i(Vet,"trimZeros");function Cq(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")}i(Cq,"parse_int");function Yet(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}}i(Yet,"handleInfinity");function xq(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}i(xq,"getIgnoreAttributesFn");var Fo=class{static{i(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(s=>s.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(s=>s.attrName!==void 0),this._hasPositionSelector=this.segments.some(s=>s.position!==void 0)}_parse(e){let r=[],n=0,s="";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)}},uc=class{static{i(this,"Matcher")}constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new wq(this)}push(e,r=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let s=this.path.length;this.siblingStacks[s]||(this.siblingStacks[s]=new Map);let o=this.siblingStacks[s],a=n?`${n}:${e}`:e,c=o.get(a)||0,l=0;for(let d of o.values())l+=d;o.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 o=this.path.map(a=>a.namespace?`${a.namespace}:${a.tag}`:a.tag).join(n);return this._pathStringCache=o,o}return this.path.map(o=>r&&o.namespace?`${o.namespace}:${o.tag}`:o.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 s=e[n];if(s.type==="deep-wildcard"){if(n--,n<0)return!0;let o=e[n],a=!1;for(let c=r;c>=0;c--)if(this._matchSegment(o,this.path[c],c===this.path.length-1)){r=c-1,n--,a=!0;break}if(!a)return!1}else{if(!this._matchSegment(s,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 s=r.counter??0;if(e.position==="first"&&s!==0)return!1;if(e.position==="odd"&&s%2!==1)return!1;if(e.position==="even"&&s%2!==0)return!1;if(e.position==="nth"&&s!==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 Wet(t,e){if(!t)return{};let r=e.attributesGroupName?t[e.attributesGroupName]:t;if(!r)return{};let n={};for(let s in r)if(s.startsWith(e.attributeNamePrefix)){let o=s.substring(e.attributeNamePrefix.length);n[o]=r[s]}else n[s]=r[s];return n}i(Wet,"extractRawAttributes");function jet(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}}i(jet,"extractNamespace");var XC=class{static{i(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=ett,this.parseTextData=Jet,this.resolveNameSpace=Ket,this.buildAttributesMap=Zet,this.isItStopNode=stt,this.replaceEntitiesValue=rtt,this.readStopNodeData=att,this.saveTextToParentTag=ntt,this.addChild=ttt,this.ignoreAttributesFn=xq(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...jC};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...gq,...fR}),this.entityDecoder=new Ph({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 uc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new vh;let s=this.options.stopNodes;if(s&&s.length>0){for(let o=0;o0)){a||(t=this.replaceEntitiesValue(t,e,r));let l=c.jPath?r.toString():r,u=c.tagValueProcessor(e,t,l,s,o);return u==null?t:typeof u!=typeof t||u!==t?u:c.trimValues||t.trim()===t?Bq(t,c.parseTagValue,c.numberParseOptions):t}}i(Jet,"parseTextData");function Ket(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}i(Ket,"resolveNameSpace");var Xet=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Zet(t,e,r,n=!1){let s=this.options;if(n===!0||s.ignoreAttributes!==!0&&typeof t=="string"){let o=dR(t,Xet),a=o.length,c={},l=new Array(a),u=!1,d={};for(let f=0;f",c,"Closing Tag is not closed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=p.indexOf(":");f!==-1&&(p=p.substr(f+1))}p=bq(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: `);m&&s.unpairedTagsSet.has(m)&&(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=Sq(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let m=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),o.setXmlVersion(Number(m)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let m=new Js(d.tagName);m.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(m[":@"]=p),this.addChild(r,m,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=_h(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let p=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:p}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=o.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=_h(t,"]]>",c,"CDATA is not closed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let m=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,m),c=d+2}else{let d=Sq(t,c,s.removeNSPrefix);if(!d){let M=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${M}"`)}let p=d.tagName,m=d.rawTagName,f=d.tagExp,g=d.attrExpPresent,E=d.closeIndex;if({tagName:p,tagExp:f}=bq(s.transformTagName,p,f,s),s.strictReservedNames&&(p===s.commentPropName||p===s.cdataPropName||p===s.textNodeName||p===s.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let x=r;x&&s.unpairedTagsSet.has(x.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let w=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(w=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),f=p):f=f.substr(0,f.length-1),g=p!==f);let S=null,P={},Q;Q=jet(m),p!==e.tagname&&this.matcher.push(p,{},Q),p!==f&&g&&(S=this.buildAttributesMap(f,this.matcher,p),S&&(P=Wet(S,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let q=c;if(this.isCurrentNodeStopNode){let M="";if(w)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let pe=this.readStopNodeData(t,m,E+1);if(!pe)throw new Error(`Unexpected end of ${m}`);c=pe.i,M=pe.tagContent}let V=new Js(p);S&&(V[":@"]=S),V.add(s.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,V,this.readonlyMatcher,q)}else{if(w){({tagName:p,tagExp:f}=bq(s.transformTagName,p,f,s));let M=new Js(p);S&&(M[":@"]=S),this.addChild(r,M,this.readonlyMatcher,q),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let M=new Js(p);S&&(M[":@"]=S),this.addChild(r,M,this.readonlyMatcher,q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let M=new Js(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),S&&(M[":@"]=S),this.addChild(r,M,this.readonlyMatcher,q),r=M}n="",c=E}}}else n+=t[c];return e.child},"parseXml");function ttt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,o=this.options.updateTag(e.tagname,s,e[":@"]);o===!1||(typeof o=="string"&&(e.tagname=o),t.addChild(e,n))}i(ttt,"addChild");function rtt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}i(rtt,"replaceEntitiesValue");function ntt(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}i(ntt,"saveTextToParentTag");function stt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}i(stt,"isItStopNode");function ott(t,e,r=">"){let n=0,s=t.length,o=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&&(s--,s===0))return{tagContent:t.substring(n,r),i:c};r=c}else if(a===63)r=_h(t,"?>",r+1,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===45&&t.charCodeAt(r+3)===45)r=_h(t,"-->",r+3,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===91)r=_h(t,"]]>",r,"StopNode is not closed.")-2;else{let c=Sq(t,r,!1);c&&((c&&c.tagName)===e&&c.tagExp[c.tagExp.length-1]!=="/"&&s++,r=c.closeIndex)}}}i(att,"readStopNodeData");function Bq(t,e,r){if(e&&typeof t=="string"){let n=t.trim();return n==="true"?!0:n==="false"?!1:Iq(t,r)}else return spe(t)?t:""}i(Bq,"parseValue");function bq(t,e,r,n){if(t){let s=t(e);r===e&&(r=s),e=s}return e=Npe(e,n),{tagName:e,tagExp:r}}i(bq,"transformTagName");function Npe(t,e){if(pR.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return YC.includes(t)?e.onDangerousProperty(t):t}i(Npe,"sanitizeName");var Rq=Js.getMetaDataSymbol();function ctt(t,e){if(!t||typeof t!="object")return{};if(!e)return t;let r={};for(let n in t)if(n.startsWith(e)){let s=n.substring(e.length);r[s]=t[n]}else r[n]=t[n];return r}i(ctt,"stripAttributePrefix");function Nq(t,e,r,n){return Tpe(t,e,r,n)}i(Nq,"prettify");function Tpe(t,e,r,n){let s,o={};for(let a=0;a0&&(o[e.textNodeName]=s):s!==void 0&&(o[e.textNodeName]=s),o}i(Tpe,"compress");function ltt(t){let e=Object.keys(t);for(let r=0;r/g,"]]]]>")}i(yR,"safeCdata");function Sd(t){return String(t).replace(/"/g,""").replace(/'/g,"'")}i(Sd,"escapeAttribute");var ptt=` +`;function mtt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(vq(r)==="?xml"){let s=r[":@"];if(s){let o=e.attributeNamePrefix+"version";if(s[o])return s[o]}}return"1.0"}i(mtt,"detectXmlVersionFromArray");function vpe(t,e,r,n,s){return!r.sanitizeName||Nm(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(vpe,"resolveTagName");function Pq(t,e){let r="";e.format&&(r=ptt);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=Tq(l,e),l}return""}for(let l=0;l`,c=!1,n.pop();continue}else if(m===e.commentPropName){let P=u[d][0][e.textNodeName],Q=gR(P);a+=r+``,c=!0,n.pop();continue}else if(m[0]==="?"){let P=Ppe(u[":@"],e,g,n,o);a+=(m==="?xml"?"":r)+`<${m}${P}?>`,c=!0,n.pop();continue}let E=r;E!==""&&(E+=e.indentBy);let x=Ppe(u[":@"],e,g,n,o),w=r+`<${m}${x}`,S;g?S=Qpe(u[d],e):S=_pe(u[d],e,E,n,s,o),e.unpairedTags.indexOf(m)!==-1?e.suppressUnpairedNode?a+=w+">":a+=w+"/>":(!S||S.length===0)&&e.suppressEmptyNode?a+=w+"/>":S&&S.endsWith(">")?a+=w+`>${S}${r}`:(a+=w+">",S&&r!==""&&(S.includes("/>")||S.includes("`),c=!0,n.pop()}return a}i(_pe,"arrToStr");function ftt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[o]=Sd(t[s]),n=!0}return n?r:null}i(ftt,"extractAttributeValues");function Qpe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n`:r+=`<${o}${a}>${c}`}}}return r}i(Qpe,"getRawContent");function Att(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Sd(s)}"`}return r}i(Att,"attr_to_str_raw");function vq(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}i(_q,"getIgnoreAttributesFn");var gtt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(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 Xs(t){if(this.options=Object.assign({},gtt,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="")}i(Ks,"Builder");function dtt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(dtt,"detectXmlVersionFromObj");function Bq(t,e,r,n,s){return!r.sanitizeName||Sm(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(Bq,"resolveTagName");Ks.prototype.build=function(t){if(this.options.preserveOrder)return wq(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new uc,r=dtt(t,this.options);return this.j2x(t,0,e,r).val}};Ks.prototype.j2x=function(t,e,r,n){let s="",o="";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:Bq(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(o+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?o+="":d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)o+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let p=this.isAttribute(l);if(p&&!this.ignoreAttributesFn(p,a)){let m=Bq(p,!0,this.options,r,n);s+=this.buildAttrPairStr(m,""+t[l],c)}else if(!p)if(l===this.options.textNodeName){let m=this.options.tagValueProcessor(l,""+t[l]);o+=this.replaceEntitiesValue(m)}else{r.push(d);let m=this.checkStopNode(r);if(r.pop(),m){let f=""+t[l];f===""?o+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:o+=this.indentate(e)+"<"+d+">"+f+""u"))if(E===null)d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof E=="object")if(this.options.oneListGroup){r.push(d);let x=this.j2x(E,e+1,r,n);r.pop(),m+=x.val,this.options.attributesGroupName&&E.hasOwnProperty(this.options.attributesGroupName)&&(f+=x.attrStr)}else m+=this.processTextOrObjNode(E,d,e,r,n);else if(this.options.oneListGroup){let x=this.options.tagValueProcessor(d,E);x=this.replaceEntitiesValue(x),m+=x}else{r.push(d);let x=this.checkStopNode(r);if(r.pop(),x){let w=""+E;w===""?m+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:m+=this.indentate(e)+"<"+d+">"+w+"${s}`;else if(typeof s=="object"&&s!==null){let o=this.buildRawContent(s),a=this.buildAttributesForStopNode(s);o===""?e+=`<${r}${a}/>`:e+=`<${r}${a}>${o}`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${s}`}else e+=`<${r}>${n}`}return e};Ks.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 s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n,o=r[n];o===!0&&this.options.suppressBooleanAttributes?e+=" "+s:e+=" "+s+'="'+o+'"'}}else for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=this.isAttribute(r);if(n){let s=t[r];s===!0&&this.options.suppressBooleanAttributes?e+=" "+n:e+=" "+n+'="'+s+'"'}}return e};Ks.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 s=""+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&o.length===0?this.indentate(n)+``+this.newLine:this.indentate(n)+"<"+e+r+o+this.tagEndChar+t+this.indentate(n)+s}};Ks.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 o=mR(t);return this.indentate(n)+``+this.newLine}else{if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(e,t);return o=this.replaceEntitiesValue(o),o===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+o+"0&&this.options.processEntities)for(let e=0;e${n.build(s)}`.replace(/\n/g,"")}i(AR,"stringifyXML");async function Nq(t,e={}){if(!t)throw new Error("Document is empty");let r=xpe.validate(t);if(r!==!0)throw r;let s=new Ph(htt(e)).parse(t);if(s["?xml"]&&delete s["?xml"],!e.includeRoot)for(let o of Object.keys(s)){let a=s[o];return typeof a=="object"?Object.assign({},a):a}return s}i(Nq,"parseXML");var hR=ic("storage-blob");var Npe=require("events");var Bpe=require("node:stream");var gR=class extends Bpe.Readable{static{i(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 s=0;for(let o of this.buffers)s+=o.byteLength;if(s=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===o?(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 Rpe=D(require("node:buffer"),1);var yR=Rpe.default.constants.MAX_LENGTH,ER=class{static{i(this,"PooledBuffer")}buffers=[];capacity;_size;get size(){return this._size}constructor(e,r,n){this.capacity=e,this._size=0;let s=Math.ceil(e/yR);for(let o=0;o0&&(e[0]=e[0].slice(a))}getReadableStream(){return new gR(this.buffers,this.size)}};var CR=class{static{i(this,"BufferScheduler")}bufferSize;maxBuffers;readable;outgoingHandler;emitter=new Npe.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,r,n,s,o,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(o<=0)throw new RangeError(`concurrency must be larger than 0, current is ${o}`);this.bufferSize=r,this.maxBuffers=n,this.readable=e,this.outgoingHandler=s,this.concurrency=o,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 ER(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 Tq;function Pq(){return Tq||(Tq=kC()),Tq}i(Pq,"getCachedDefaultHttpClient");var dc=class{static{i(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 Kl={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},$e={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 Bd(t,e,r){let n=new URL(t),s=encodeURIComponent(e),o=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!==s&&c.push(l)}return o&&c.push(`${s}=${o}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}i(Bd,"setURLParameter");function IR(t,e){let r=new URL(t);return r.hostname=e,r.toString()}i(IR,"setURLHost");function xR(t){try{return new URL(t).pathname}catch{return}}i(xR,"getURLPath");function wR(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(s=>{let o=s.indexOf("="),a=s.lastIndexOf("=");return o>0&&o===a&&a{let o,a=i(()=>{o!==void 0&&clearTimeout(o),s(r)},"abortHandler");o=setTimeout(i(()=>{e!==void 0&&e.removeEventListener("abort",a),n()},"resolveHandler"),t),e!==void 0&&e.addEventListener("abort",a)})}i(bR,"delay");var jC=class extends dc{static{i(this,"StorageBrowserPolicy")}constructor(e,r){super(e,r)}async sendRequest(e){return Rt?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=Bd(e.url,Kl.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove($e.COOKIE),e.headers.remove($e.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}};var JC=class{static{i(this,"StorageBrowserPolicyFactory")}create(e,r){return new jC(e,r)}};var Rm=class extends dc{static{i(this,"CredentialPolicy")}sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var KC=class extends Rm{static{i(this,"AnonymousCredentialPolicy")}constructor(e,r){super(e,r)}};var Nm=class{static{i(this,"Credential")}create(e,r){throw new Error("Method should be implemented in children classes.")}};var rr=class extends Nm{static{i(this,"AnonymousCredential")}create(e,r){return new KC(e,r)}};var Tpe=require("node:crypto");var gtt=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]),ytt=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]),Ett=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 SR(t,e){return Ctt(t,e)?-1:1}i(SR,"compareHeader");function Ctt(t,e){let r=[gtt,ytt,Ett],n=0,s=0,o=0;for(;no;let a=s0&&e.headers.set($e.CONTENT_LENGTH,Buffer.byteLength(e.body));let r=[e.method.toUpperCase(),this.getHeaderValueToSign(e,$e.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,$e.CONTENT_ENCODING),this.getHeaderValueToSign(e,$e.CONTENT_LENGTH),this.getHeaderValueToSign(e,$e.CONTENT_MD5),this.getHeaderValueToSign(e,$e.CONTENT_TYPE),this.getHeaderValueToSign(e,$e.DATE),this.getHeaderValueToSign(e,$e.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,$e.IF_MATCH),this.getHeaderValueToSign(e,$e.IF_NONE_MATCH),this.getHeaderValueToSign(e,$e.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,$e.RANGE)].join(` +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(Xs,"Builder");function ytt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(ytt,"detectXmlVersionFromObj");function Qq(t,e,r,n,s){return!r.sanitizeName||Nm(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(Qq,"resolveTagName");Xs.prototype.build=function(t){if(this.options.preserveOrder)return Pq(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new uc,r=ytt(t,this.options);return this.j2x(t,0,e,r).val}};Xs.prototype.j2x=function(t,e,r,n){let s="",o="";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:Qq(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(o+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?o+="":d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)o+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let p=this.isAttribute(l);if(p&&!this.ignoreAttributesFn(p,a)){let m=Qq(p,!0,this.options,r,n);s+=this.buildAttrPairStr(m,""+t[l],c)}else if(!p)if(l===this.options.textNodeName){let m=this.options.tagValueProcessor(l,""+t[l]);o+=this.replaceEntitiesValue(m)}else{r.push(d);let m=this.checkStopNode(r);if(r.pop(),m){let f=""+t[l];f===""?o+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:o+=this.indentate(e)+"<"+d+">"+f+""u"))if(E===null)d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof E=="object")if(this.options.oneListGroup){r.push(d);let x=this.j2x(E,e+1,r,n);r.pop(),m+=x.val,this.options.attributesGroupName&&E.hasOwnProperty(this.options.attributesGroupName)&&(f+=x.attrStr)}else m+=this.processTextOrObjNode(E,d,e,r,n);else if(this.options.oneListGroup){let x=this.options.tagValueProcessor(d,E);x=this.replaceEntitiesValue(x),m+=x}else{r.push(d);let x=this.checkStopNode(r);if(r.pop(),x){let w=""+E;w===""?m+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:m+=this.indentate(e)+"<"+d+">"+w+"${s}`;else if(typeof s=="object"&&s!==null){let o=this.buildRawContent(s),a=this.buildAttributesForStopNode(s);o===""?e+=`<${r}${a}/>`:e+=`<${r}${a}>${o}`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${s}`}else e+=`<${r}>${n}`}return e};Xs.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 s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n,o=r[n];o===!0&&this.options.suppressBooleanAttributes?e+=" "+s:e+=" "+s+'="'+o+'"'}}else for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=this.isAttribute(r);if(n){let s=t[r];s===!0&&this.options.suppressBooleanAttributes?e+=" "+n:e+=" "+n+'="'+s+'"'}}return e};Xs.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 s=""+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&o.length===0?this.indentate(n)+``+this.newLine:this.indentate(n)+"<"+e+r+o+this.tagEndChar+t+this.indentate(n)+s}};Xs.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 o=gR(t);return this.indentate(n)+``+this.newLine}else{if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(e,t);return o=this.replaceEntitiesValue(o),o===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+o+"0&&this.options.processEntities)for(let e=0;e${n.build(s)}`.replace(/\n/g,"")}i(ER,"stringifyXML");async function kq(t,e={}){if(!t)throw new Error("Document is empty");let r=Dpe.validate(t);if(r!==!0)throw r;let s=new Qh(wtt(e)).parse(t);if(s["?xml"]&&delete s["?xml"],!e.includeRoot)for(let o of Object.keys(s)){let a=s[o];return typeof a=="object"?Object.assign({},a):a}return s}i(kq,"parseXML");var CR=ic("storage-blob");var Upe=require("events");var Mpe=require("node:stream");var IR=class extends Mpe.Readable{static{i(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 s=0;for(let o of this.buffers)s+=o.byteLength;if(s=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===o?(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 Fpe=D(require("node:buffer"),1);var xR=Fpe.default.constants.MAX_LENGTH,wR=class{static{i(this,"PooledBuffer")}buffers=[];capacity;_size;get size(){return this._size}constructor(e,r,n){this.capacity=e,this._size=0;let s=Math.ceil(e/xR);for(let o=0;o0&&(e[0]=e[0].slice(a))}getReadableStream(){return new IR(this.buffers,this.size)}};var bR=class{static{i(this,"BufferScheduler")}bufferSize;maxBuffers;readable;outgoingHandler;emitter=new Upe.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,r,n,s,o,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(o<=0)throw new RangeError(`concurrency must be larger than 0, current is ${o}`);this.bufferSize=r,this.maxBuffers=n,this.readable=e,this.outgoingHandler=s,this.concurrency=o,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 wR(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 Lq;function Oq(){return Lq||(Lq=FC()),Lq}i(Oq,"getCachedDefaultHttpClient");var dc=class{static{i(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 Xl={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},Ge={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 Bd(t,e,r){let n=new URL(t),s=encodeURIComponent(e),o=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!==s&&c.push(l)}return o&&c.push(`${s}=${o}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}i(Bd,"setURLParameter");function SR(t,e){let r=new URL(t);return r.hostname=e,r.toString()}i(SR,"setURLHost");function BR(t){try{return new URL(t).pathname}catch{return}}i(BR,"getURLPath");function RR(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(s=>{let o=s.indexOf("="),a=s.lastIndexOf("=");return o>0&&o===a&&a{let o,a=i(()=>{o!==void 0&&clearTimeout(o),s(r)},"abortHandler");o=setTimeout(i(()=>{e!==void 0&&e.removeEventListener("abort",a),n()},"resolveHandler"),t),e!==void 0&&e.addEventListener("abort",a)})}i(NR,"delay");var ZC=class extends dc{static{i(this,"StorageBrowserPolicy")}constructor(e,r){super(e,r)}async sendRequest(e){return Rt?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=Bd(e.url,Xl.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(Ge.COOKIE),e.headers.remove(Ge.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}};var eI=class{static{i(this,"StorageBrowserPolicyFactory")}create(e,r){return new ZC(e,r)}};var Pm=class extends dc{static{i(this,"CredentialPolicy")}sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var tI=class extends Pm{static{i(this,"AnonymousCredentialPolicy")}constructor(e,r){super(e,r)}};var vm=class{static{i(this,"Credential")}create(e,r){throw new Error("Method should be implemented in children classes.")}};var nr=class extends vm{static{i(this,"AnonymousCredential")}create(e,r){return new tI(e,r)}};var qpe=require("node:crypto");var btt=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]),Stt=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]),Btt=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 TR(t,e){return Rtt(t,e)?-1:1}i(TR,"compareHeader");function Rtt(t,e){let r=[btt,Stt,Btt],n=0,s=0,o=0;for(;no;let a=s0&&e.headers.set(Ge.CONTENT_LENGTH,Buffer.byteLength(e.body));let r=[e.method.toUpperCase(),this.getHeaderValueToSign(e,Ge.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,Ge.CONTENT_ENCODING),this.getHeaderValueToSign(e,Ge.CONTENT_LENGTH),this.getHeaderValueToSign(e,Ge.CONTENT_MD5),this.getHeaderValueToSign(e,Ge.CONTENT_TYPE),this.getHeaderValueToSign(e,Ge.DATE),this.getHeaderValueToSign(e,Ge.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,Ge.IF_MATCH),this.getHeaderValueToSign(e,Ge.IF_NONE_MATCH),this.getHeaderValueToSign(e,Ge.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,Ge.RANGE)].join(` `)+` -`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set($e.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===$e.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE));r.sort((s,o)=>SR(s.name.toLowerCase(),o.name.toLowerCase())),r=r.filter((s,o,a)=>!(o>0&&s.name.toLowerCase()===a[o-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()} -`}),n}getCanonicalizedResourceString(e){let r=xR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=wR(e.url),o={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();o[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=` -${c}:${decodeURIComponent(o[c])}`}return n}};var xr=class extends Nm{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new XC(e,r,this)}computeHMACSHA256(e){return(0,Tpe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var sn=ic("storage-common");var yi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(yi||(yi={}));var Rd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:yi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Itt=new Do("The operation was aborted."),ZC=class extends dc{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Rd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Rd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Rd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Rd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Rd.maxRetryDelayInMs):Rd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Rd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Rd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),o=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;o||(s.url=IR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Bd(s.url,Kl.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(sn.info(`RetryPolicy: =====> Try=${n} ${o?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,a))return a;r=r||!o&&a.status===404}catch(c){if(sn.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(o,n,a,c))throw c}return await this.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return sn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of o)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return sn.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return sn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return sn.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get($e.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(sn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case yi.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case yi.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return sn.info(`RetryPolicy: Delay for ${s}ms`),bR(s,n,Itt)}};var eI=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new ZC(e,r,this.retryOptions)}};var xtt="storageBrowserPolicy";function Ppe(){return{name:xtt,async sendRequest(t,e){return Rt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Bd(t.url,Kl.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete($e.COOKIE),t.headers.delete($e.CONTENT_LENGTH)),e(t)}}}i(Ppe,"storageBrowserPolicy");var wtt="StorageCorrectContentLengthPolicy";function vpe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set($e.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:wtt,async sendRequest(e,r){return t(e),r(e)}}}i(vpe,"storageCorrectContentLengthPolicy");var btt="storageRetryPolicy",vh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:yi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Stt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Btt=new Do("The operation was aborted.");function _pe(t={}){let e=t.retryPolicyType??vh.retryPolicyType,r=t.maxTries??vh.maxTries,n=t.retryDelayInMs??vh.retryDelayInMs,s=t.maxRetryDelayInMs??vh.maxRetryDelayInMs,o=t.secondaryHost??vh.secondaryHost,a=t.tryTimeoutInMs??vh.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:p,error:m}){if(d>=r)return sn.info(`RetryPolicy: Attempt(s) ${d} >= maxTries ${r}, no further try.`),!1;if(m){for(let f of Stt)if(m.name.toUpperCase().includes(f)||m.message.toUpperCase().includes(f)||m.code&&m.code.toString().toUpperCase()===f)return sn.info(`RetryPolicy: Network error ${f} found, will retry.`),!0;if(m?.code==="PARSE_ERROR"&&m?.message.startsWith('Error "Error: Unclosed root tag'))return sn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(p||m){let f=p?.status??m?.statusCode??0;if(!u&&f===404)return sn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(f===503||f===500)return sn.info(`RetryPolicy: Will retry for status code ${f}.`),!0}if(p&&p?.status>=400){let f=p.headers.get($e.X_MS_CopySourceErrorCode);if(f!==void 0)switch(f){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return!1}i(c,"shouldRetry");function l(u,d){let p=0;if(u)switch(e){case yi.EXPONENTIAL:p=Math.min((Math.pow(2,d-1)-1)*n,s);break;case yi.FIXED:p=n;break}else p=Math.random()*1e3;return sn.info(`RetryPolicy: Delay for ${p}ms`),p}return i(l,"calculateDelay"),{name:btt,async sendRequest(u,d){a&&(u.url=Bd(u.url,Kl.Parameters.TIMEOUT,String(Math.floor(a/1e3))));let p=u.url,m=o?IR(u.url,o):void 0,f=!1,g=1,E=!0,x,w;for(;E;){let S=f||!m||!["GET","HEAD","OPTIONS"].includes(u.method)||g%2===1;u.url=S?p:m,x=void 0,w=void 0;try{sn.info(`RetryPolicy: =====> Try=${g} ${S?"Primary":"Secondary"}`),x=await d(u),f=f||!S&&x.status===404}catch(P){if(xm(P))sn.error(`RetryPolicy: Caught error, message: ${P.message}, code: ${P.code}`),w=P;else throw sn.error(`RetryPolicy: Caught error, message: ${Id(P)}`),P}E=c({isPrimaryRetry:S,attempt:g,response:x,error:w}),E&&await bR(l(S,g),u.abortSignal,Btt),g++}if(x)return x;throw w??new Wl("RetryPolicy failed without known error.")}}}i(_pe,"storageRetryPolicy");var Qpe=require("node:crypto");var Rtt="storageSharedKeyCredentialPolicy";function vq(t){function e(o){o.headers.set($e.X_MS_DATE,new Date().toUTCString()),o.body&&(typeof o.body=="string"||Buffer.isBuffer(o.body))&&o.body.length>0&&o.headers.set($e.CONTENT_LENGTH,Buffer.byteLength(o.body));let a=[o.method.toUpperCase(),r(o,$e.CONTENT_LANGUAGE),r(o,$e.CONTENT_ENCODING),r(o,$e.CONTENT_LENGTH),r(o,$e.CONTENT_MD5),r(o,$e.CONTENT_TYPE),r(o,$e.DATE),r(o,$e.IF_MODIFIED_SINCE),r(o,$e.IF_MATCH),r(o,$e.IF_NONE_MATCH),r(o,$e.IF_UNMODIFIED_SINCE),r(o,$e.RANGE)].join(` +`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Ge.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Ge.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Ge.PREFIX_FOR_STORAGE));r.sort((s,o)=>TR(s.name.toLowerCase(),o.name.toLowerCase())),r=r.filter((s,o,a)=>!(o>0&&s.name.toLowerCase()===a[o-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()} +`}),n}getCanonicalizedResourceString(e){let r=BR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=RR(e.url),o={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();o[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=` +${c}:${decodeURIComponent(o[c])}`}return n}};var wr=class extends vm{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new rI(e,r,this)}computeHMACSHA256(e){return(0,qpe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var on=ic("storage-common");var Ei;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ei||(Ei={}));var Rd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ei.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Ntt=new Lo("The operation was aborted."),nI=class extends dc{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Rd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Rd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Rd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Rd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Rd.maxRetryDelayInMs):Rd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Rd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Rd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),o=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;o||(s.url=SR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Bd(s.url,Xl.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(on.info(`RetryPolicy: =====> Try=${n} ${o?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,a))return a;r=r||!o&&a.status===404}catch(c){if(on.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(o,n,a,c))throw c}return await this.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return on.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of o)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return on.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return on.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return on.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Ge.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(on.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Ei.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ei.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return on.info(`RetryPolicy: Delay for ${s}ms`),NR(s,n,Ntt)}};var sI=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new nI(e,r,this.retryOptions)}};var Ttt="storageBrowserPolicy";function $pe(){return{name:Ttt,async sendRequest(t,e){return Rt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Bd(t.url,Xl.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ge.COOKIE),t.headers.delete(Ge.CONTENT_LENGTH)),e(t)}}}i($pe,"storageBrowserPolicy");var Ptt="StorageCorrectContentLengthPolicy";function Gpe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ge.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:Ptt,async sendRequest(e,r){return t(e),r(e)}}}i(Gpe,"storageCorrectContentLengthPolicy");var vtt="storageRetryPolicy",Dh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ei.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},_tt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Qtt=new Lo("The operation was aborted.");function Hpe(t={}){let e=t.retryPolicyType??Dh.retryPolicyType,r=t.maxTries??Dh.maxTries,n=t.retryDelayInMs??Dh.retryDelayInMs,s=t.maxRetryDelayInMs??Dh.maxRetryDelayInMs,o=t.secondaryHost??Dh.secondaryHost,a=t.tryTimeoutInMs??Dh.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:p,error:m}){if(d>=r)return on.info(`RetryPolicy: Attempt(s) ${d} >= maxTries ${r}, no further try.`),!1;if(m){for(let f of _tt)if(m.name.toUpperCase().includes(f)||m.message.toUpperCase().includes(f)||m.code&&m.code.toString().toUpperCase()===f)return on.info(`RetryPolicy: Network error ${f} found, will retry.`),!0;if(m?.code==="PARSE_ERROR"&&m?.message.startsWith('Error "Error: Unclosed root tag'))return on.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(p||m){let f=p?.status??m?.statusCode??0;if(!u&&f===404)return on.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(f===503||f===500)return on.info(`RetryPolicy: Will retry for status code ${f}.`),!0}if(p&&p?.status>=400){let f=p.headers.get(Ge.X_MS_CopySourceErrorCode);if(f!==void 0)switch(f){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return!1}i(c,"shouldRetry");function l(u,d){let p=0;if(u)switch(e){case Ei.EXPONENTIAL:p=Math.min((Math.pow(2,d-1)-1)*n,s);break;case Ei.FIXED:p=n;break}else p=Math.random()*1e3;return on.info(`RetryPolicy: Delay for ${p}ms`),p}return i(l,"calculateDelay"),{name:vtt,async sendRequest(u,d){a&&(u.url=Bd(u.url,Xl.Parameters.TIMEOUT,String(Math.floor(a/1e3))));let p=u.url,m=o?SR(u.url,o):void 0,f=!1,g=1,E=!0,x,w;for(;E;){let S=f||!m||!["GET","HEAD","OPTIONS"].includes(u.method)||g%2===1;u.url=S?p:m,x=void 0,w=void 0;try{on.info(`RetryPolicy: =====> Try=${g} ${S?"Primary":"Secondary"}`),x=await d(u),f=f||!S&&x.status===404}catch(P){if(Sm(P))on.error(`RetryPolicy: Caught error, message: ${P.message}, code: ${P.code}`),w=P;else throw on.error(`RetryPolicy: Caught error, message: ${Id(P)}`),P}E=c({isPrimaryRetry:S,attempt:g,response:x,error:w}),E&&await NR(l(S,g),u.abortSignal,Qtt),g++}if(x)return x;throw w??new jl("RetryPolicy failed without known error.")}}}i(Hpe,"storageRetryPolicy");var zpe=require("node:crypto");var Dtt="storageSharedKeyCredentialPolicy";function Mq(t){function e(o){o.headers.set(Ge.X_MS_DATE,new Date().toUTCString()),o.body&&(typeof o.body=="string"||Buffer.isBuffer(o.body))&&o.body.length>0&&o.headers.set(Ge.CONTENT_LENGTH,Buffer.byteLength(o.body));let a=[o.method.toUpperCase(),r(o,Ge.CONTENT_LANGUAGE),r(o,Ge.CONTENT_ENCODING),r(o,Ge.CONTENT_LENGTH),r(o,Ge.CONTENT_MD5),r(o,Ge.CONTENT_TYPE),r(o,Ge.DATE),r(o,Ge.IF_MODIFIED_SINCE),r(o,Ge.IF_MATCH),r(o,Ge.IF_NONE_MATCH),r(o,Ge.IF_UNMODIFIED_SINCE),r(o,Ge.RANGE)].join(` `)+` -`+n(o)+s(o),c=(0,Qpe.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");o.headers.set($e.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(o,a){let c=o.headers.get(a);return!c||a===$e.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(o){let a=[];for(let[l,u]of o.headers)l.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>SR(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}i(n,"getCanonicalizedHeadersString");function s(o){let a=xR(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=wR(o.url),u={};if(l){let d=[];for(let p in l)if(Object.prototype.hasOwnProperty.call(l,p)){let m=p.toLowerCase();u[m]=l[p],d.push(m)}d.sort();for(let p of d)c+=` -${p}:${decodeURIComponent(u[p])}`}return c}return i(s,"getCanonicalizedResourceString"),{name:Rtt,async sendRequest(o,a){return e(o),a(o)}}}i(vq,"storageSharedKeyCredentialPolicy");var Ntt="storageRequestFailureDetailsParserPolicy";function Dpe(){return{name:Ntt,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}}}}i(Dpe,"storageRequestFailureDetailsParserPolicy");var kpe=require("node:crypto");var BR=class{static{i(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,kpe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var RR="12.31.0",NR="2026-02-06";var TR="https://storage.azure.com/.default",Xl={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var ua="",_q="*",Ttt=1*1024*1024;var Ptt=4*Ttt;var Lpe="AES256",Ope="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Mpe=["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"],Fpe=["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"],Upe="BlobUsesCustomerSpecifiedEncryption",qpe="BlobDoesNotUseCustomerSpecifiedEncryption",$pe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Zl(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(Zl,"isPipelineLike");var tI=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Lr(t,e={}){t||(t=new rr);let r=new tI([],e);return r._credential=t,r}i(Lr,"newPipeline");function vtt(t){let e=[_tt,Gpe,Qtt,Dtt,ktt,Ltt,Mtt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Ott(s));return{wrappedPolicies:aq(r),afterRetry:n}}}}i(vtt,"processDownlevelPipeline");function Qq(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?cq(e):Pq(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let o=`azsdk-js-azure-storage-blob/${RR}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;s=OC({...r,loggingOptions:{additionalAllowedHeaderNames:Mpe,additionalAllowedQueryParameters:Fpe,logger:hR.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:AR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Nq,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:O2}),s.addPolicy(vpe()),s.addPolicy(_pe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Dpe()),s.addPolicy(Ppe());let c=vtt(t);c&&s.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=Dq(t);ko(l)?s.addPolicy(Sh({credential:l,scopes:r.audience??TR,challengeCallbacks:{authorizeRequestOnChallenge:sR}}),{phase:"Sign"}):l instanceof xr&&s.addPolicy(vq({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),t._corePipeline=s}return{...r,allowInsecureConnection:!0,httpClient:n,pipeline:s}}i(Qq,"getCoreClientOptions");function Dq(t){if(t._credential)return t._credential;let e=new rr;for(let r of t.factories)if(ko(r.credential))e=r.credential;else if(Gpe(r))return r;return e}i(Dq,"getCredentialFromPipeline");function Gpe(t){return t instanceof xr?!0:t.constructor.name==="StorageSharedKeyCredential"}i(Gpe,"isStorageSharedKeyCredential");function _tt(t){return t instanceof rr?!0:t.constructor.name==="AnonymousCredential"}i(_tt,"isAnonymousCredential");function Qtt(t){return ko(t.credential)}i(Qtt,"isCoreHttpBearerTokenFactory");function Dtt(t){return t instanceof JC?!0:t.constructor.name==="StorageBrowserPolicyFactory"}i(Dtt,"isStorageBrowserPolicyFactory");function ktt(t){return t instanceof eI?!0:t.constructor.name==="StorageRetryPolicyFactory"}i(ktt,"isStorageRetryPolicyFactory");function Ltt(t){return t.constructor.name==="TelemetryPolicyFactory"}i(Ltt,"isStorageTelemetryPolicyFactory");function Ott(t){return t.constructor.name==="InjectorPolicyFactory"}i(Ott,"isInjectorPolicyFactory");function Mtt(t){let e=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"],r={sendRequest:i(async a=>({request:a,headers:a.headers.clone(),status:500}),"sendRequest")},n={log(a,c){},shouldLog(a){return!1}},o=t.create(r,n).constructor.name;return e.some(a=>o.startsWith(a))}i(Mtt,"isCoreHttpPolicyFactory");var Hpe;(function(t){t.AES256="AES256"})(Hpe||(Hpe={}));var zpe;(function(t){t.Backup="backup"})(zpe||(zpe={}));var Vpe;(function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"})(Vpe||(Vpe={}));var Ype;(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"})(Ype||(Ype={}));var Mo={};en(Mo,{AccessPolicy:()=>Jtt,AppendBlobAppendBlockExceptionHeaders:()=>eH,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>rH,AppendBlobAppendBlockFromUrlHeaders:()=>tH,AppendBlobAppendBlockHeaders:()=>ZG,AppendBlobCreateExceptionHeaders:()=>XG,AppendBlobCreateHeaders:()=>KG,AppendBlobSealExceptionHeaders:()=>sH,AppendBlobSealHeaders:()=>nH,ArrowConfiguration:()=>urt,ArrowField:()=>drt,BlobAbortCopyFromURLExceptionHeaders:()=>bG,BlobAbortCopyFromURLHeaders:()=>wG,BlobAcquireLeaseExceptionHeaders:()=>cG,BlobAcquireLeaseHeaders:()=>aG,BlobBreakLeaseExceptionHeaders:()=>hG,BlobBreakLeaseHeaders:()=>AG,BlobChangeLeaseExceptionHeaders:()=>fG,BlobChangeLeaseHeaders:()=>mG,BlobCopyFromURLExceptionHeaders:()=>xG,BlobCopyFromURLHeaders:()=>IG,BlobCreateSnapshotExceptionHeaders:()=>yG,BlobCreateSnapshotHeaders:()=>gG,BlobDeleteExceptionHeaders:()=>V$,BlobDeleteHeaders:()=>z$,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>rG,BlobDeleteImmutabilityPolicyHeaders:()=>tG,BlobDownloadExceptionHeaders:()=>$$,BlobDownloadHeaders:()=>vR,BlobFlatListSegment:()=>Ktt,BlobGetAccountInfoExceptionHeaders:()=>RG,BlobGetAccountInfoHeaders:()=>BG,BlobGetPropertiesExceptionHeaders:()=>H$,BlobGetPropertiesHeaders:()=>G$,BlobGetTagsExceptionHeaders:()=>PG,BlobGetTagsHeaders:()=>TG,BlobHierarchyListSegment:()=>trt,BlobItemInternal:()=>Xtt,BlobName:()=>Ztt,BlobPrefix:()=>rrt,BlobPropertiesInternal:()=>ert,BlobQueryExceptionHeaders:()=>NG,BlobQueryHeaders:()=>QR,BlobReleaseLeaseExceptionHeaders:()=>uG,BlobReleaseLeaseHeaders:()=>lG,BlobRenewLeaseExceptionHeaders:()=>pG,BlobRenewLeaseHeaders:()=>dG,BlobServiceProperties:()=>rI,BlobServiceStatistics:()=>kq,BlobSetExpiryExceptionHeaders:()=>J$,BlobSetExpiryHeaders:()=>j$,BlobSetHttpHeadersExceptionHeaders:()=>X$,BlobSetHttpHeadersHeaders:()=>K$,BlobSetImmutabilityPolicyExceptionHeaders:()=>eG,BlobSetImmutabilityPolicyHeaders:()=>Z$,BlobSetLegalHoldExceptionHeaders:()=>sG,BlobSetLegalHoldHeaders:()=>nG,BlobSetMetadataExceptionHeaders:()=>iG,BlobSetMetadataHeaders:()=>oG,BlobSetTagsExceptionHeaders:()=>_G,BlobSetTagsHeaders:()=>vG,BlobSetTierExceptionHeaders:()=>SG,BlobSetTierHeaders:()=>_R,BlobStartCopyFromURLExceptionHeaders:()=>CG,BlobStartCopyFromURLHeaders:()=>EG,BlobTag:()=>Wtt,BlobTags:()=>sI,BlobUndeleteExceptionHeaders:()=>W$,BlobUndeleteHeaders:()=>Y$,Block:()=>nrt,BlockBlobCommitBlockListExceptionHeaders:()=>fH,BlockBlobCommitBlockListHeaders:()=>mH,BlockBlobGetBlockListExceptionHeaders:()=>hH,BlockBlobGetBlockListHeaders:()=>AH,BlockBlobPutBlobFromUrlExceptionHeaders:()=>cH,BlockBlobPutBlobFromUrlHeaders:()=>aH,BlockBlobStageBlockExceptionHeaders:()=>uH,BlockBlobStageBlockFromURLExceptionHeaders:()=>pH,BlockBlobStageBlockFromURLHeaders:()=>dH,BlockBlobStageBlockHeaders:()=>lH,BlockBlobUploadExceptionHeaders:()=>iH,BlockBlobUploadHeaders:()=>oH,BlockList:()=>$q,BlockLookupList:()=>qq,ClearRange:()=>ort,ContainerAcquireLeaseExceptionHeaders:()=>R$,ContainerAcquireLeaseHeaders:()=>B$,ContainerBreakLeaseExceptionHeaders:()=>Q$,ContainerBreakLeaseHeaders:()=>_$,ContainerChangeLeaseExceptionHeaders:()=>k$,ContainerChangeLeaseHeaders:()=>D$,ContainerCreateExceptionHeaders:()=>a$,ContainerCreateHeaders:()=>i$,ContainerDeleteExceptionHeaders:()=>d$,ContainerDeleteHeaders:()=>u$,ContainerFilterBlobsExceptionHeaders:()=>S$,ContainerFilterBlobsHeaders:()=>b$,ContainerGetAccessPolicyExceptionHeaders:()=>A$,ContainerGetAccessPolicyHeaders:()=>f$,ContainerGetAccountInfoExceptionHeaders:()=>q$,ContainerGetAccountInfoHeaders:()=>U$,ContainerGetPropertiesExceptionHeaders:()=>l$,ContainerGetPropertiesHeaders:()=>c$,ContainerItem:()=>ztt,ContainerListBlobFlatSegmentExceptionHeaders:()=>O$,ContainerListBlobFlatSegmentHeaders:()=>L$,ContainerListBlobHierarchySegmentExceptionHeaders:()=>F$,ContainerListBlobHierarchySegmentHeaders:()=>M$,ContainerProperties:()=>Vtt,ContainerReleaseLeaseExceptionHeaders:()=>T$,ContainerReleaseLeaseHeaders:()=>N$,ContainerRenameExceptionHeaders:()=>I$,ContainerRenameHeaders:()=>C$,ContainerRenewLeaseExceptionHeaders:()=>v$,ContainerRenewLeaseHeaders:()=>P$,ContainerRestoreExceptionHeaders:()=>E$,ContainerRestoreHeaders:()=>y$,ContainerSetAccessPolicyExceptionHeaders:()=>g$,ContainerSetAccessPolicyHeaders:()=>h$,ContainerSetMetadataExceptionHeaders:()=>m$,ContainerSetMetadataHeaders:()=>p$,ContainerSubmitBatchExceptionHeaders:()=>w$,ContainerSubmitBatchHeaders:()=>x$,CorsRule:()=>$tt,DelimitedTextConfiguration:()=>crt,FilterBlobItem:()=>Ytt,FilterBlobSegment:()=>nI,GeoReplication:()=>Htt,JsonTextConfiguration:()=>lrt,KeyInfo:()=>Oq,ListBlobsFlatSegmentResponse:()=>Fq,ListBlobsHierarchySegmentResponse:()=>Uq,ListContainersSegmentResponse:()=>Lq,Logging:()=>Ftt,Metrics:()=>qtt,PageBlobClearPagesExceptionHeaders:()=>MG,PageBlobClearPagesHeaders:()=>OG,PageBlobCopyIncrementalExceptionHeaders:()=>JG,PageBlobCopyIncrementalHeaders:()=>jG,PageBlobCreateExceptionHeaders:()=>DG,PageBlobCreateHeaders:()=>QG,PageBlobGetPageRangesDiffExceptionHeaders:()=>HG,PageBlobGetPageRangesDiffHeaders:()=>GG,PageBlobGetPageRangesExceptionHeaders:()=>$G,PageBlobGetPageRangesHeaders:()=>qG,PageBlobResizeExceptionHeaders:()=>VG,PageBlobResizeHeaders:()=>zG,PageBlobUpdateSequenceNumberExceptionHeaders:()=>WG,PageBlobUpdateSequenceNumberHeaders:()=>YG,PageBlobUploadPagesExceptionHeaders:()=>LG,PageBlobUploadPagesFromURLExceptionHeaders:()=>UG,PageBlobUploadPagesFromURLHeaders:()=>FG,PageBlobUploadPagesHeaders:()=>kG,PageList:()=>PR,PageRange:()=>srt,QueryFormat:()=>art,QueryRequest:()=>Gq,QuerySerialization:()=>irt,RetentionPolicy:()=>Utt,ServiceFilterBlobsExceptionHeaders:()=>o$,ServiceFilterBlobsHeaders:()=>s$,ServiceGetAccountInfoExceptionHeaders:()=>t$,ServiceGetAccountInfoHeaders:()=>e$,ServiceGetPropertiesExceptionHeaders:()=>Yq,ServiceGetPropertiesHeaders:()=>Vq,ServiceGetStatisticsExceptionHeaders:()=>jq,ServiceGetStatisticsHeaders:()=>Wq,ServiceGetUserDelegationKeyExceptionHeaders:()=>Zq,ServiceGetUserDelegationKeyHeaders:()=>Xq,ServiceListContainersSegmentExceptionHeaders:()=>Kq,ServiceListContainersSegmentHeaders:()=>Jq,ServiceSetPropertiesExceptionHeaders:()=>zq,ServiceSetPropertiesHeaders:()=>Hq,ServiceSubmitBatchExceptionHeaders:()=>n$,ServiceSubmitBatchHeaders:()=>r$,SignedIdentifier:()=>jtt,StaticWebsite:()=>Gtt,StorageError:()=>K,UserDelegationKey:()=>Mq});var rI={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"}}}}},Ftt={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"}}}}},Utt={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"}}}}},qtt={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"}}}}},$tt={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"}}}}},Gtt={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"}}}}},K={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"}}}}},kq={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},Htt={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"}}}}},Lq={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"}}}}},ztt={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"}}}}}}},Vtt={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"}}}}},Oq={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"}}}}},Mq={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"}}}}},nI={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"}}}}},Ytt={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"}}}}},sI={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"}}}}}}},Wtt={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"}}}}},jtt={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"}}}}},Jtt={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"}}}}},Fq={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"}}}}},Ktt={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"}}}}}}},Xtt={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"}}}}},Ztt={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"}}}}},ert={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"}}}}},Uq={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"}}}}},trt={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"}}}}}}},rrt={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},qq={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"}}}}}}},$q={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"}}}}}}},nrt={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"}}}}},srt={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"}}}}},ort={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"}}}}},Gq={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"}}}}},irt={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},art={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"}}}}}}},crt={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"}}}}},lrt={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},urt={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"}}}}}}},drt={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"}}}}},Hq={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"}}}}},zq={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Vq={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"}}}}},Yq={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Wq={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"}}}}},jq={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Jq={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"}}}}},Kq={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Xq={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"}}}}},Zq={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e$={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"}}}}},t$={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},r$={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"}}}}},n$={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},s$={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"}}}}},o$={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},i$={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"}}}}},a$={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},c$={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"}}}}},l$={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},u$={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"}}}}},d$={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},p$={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"}}}}},m$={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},f$={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"}}}}},A$={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},h$={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"}}}}},g$={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},y$={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"}}}}},E$={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},C$={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"}}}}},I$={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},x$={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"}}}}},w$={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},b$={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"}}}}},S$={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},B$={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"}}}}},R$={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},N$={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"}}}}},T$={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},P$={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"}}}}},v$={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_$={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"}}}}},Q$={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},D$={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"}}}}},k$={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},L$={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"}}}}},O$={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},M$={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"}}}}},F$={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},U$={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"}}}}},q$={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vR={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"}}}}},$$={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},G$={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"}}}}},H$={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},z$={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"}}}}},V$={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Y$={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"}}}}},W$={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},j$={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"}}}}},J$={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},K$={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"}}}}},X$={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Z$={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"]}}}}},eG={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tG={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"}}}}},rG={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},nG={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"}}}}},sG={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oG={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"}}}}},iG={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},aG={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"}}}}},cG={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"}}}}},uG={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dG={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"}}}}},pG={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},mG={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"}}}}},fG={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AG={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"}}}}},hG={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gG={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"}}}}},yG={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EG={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"}}}}},CG={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"}}}}},IG={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"}}}}},xG={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"}}}}},wG={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"}}}}},bG={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_R={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"}}}}},SG={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BG={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"}}}}},RG={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QR={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"}}}}},NG={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TG={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"}}}}},PG={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vG={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"}}}}},_G={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QG={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"}}}}},DG={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kG={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"}}}}},LG={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},OG={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"}}}}},MG={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},FG={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"}}}}},UG={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"}}}}},qG={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"}}}}},$G={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GG={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"}}}}},HG={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zG={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"}}}}},VG={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},YG={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"}}}}},WG={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jG={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"}}}}},JG={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KG={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"}}}}},XG={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ZG={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"}}}}},eH={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tH={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"}}}}},rH={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"}}}}},nH={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"}}}}},sH={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oH={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"}}}}},iH={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},aH={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"}}}}},cH={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"}}}}},uH={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dH={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"}}}}},pH={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"}}}}},mH={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"}}}}},fH={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AH={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"}}}}},hH={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var pc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},Wpe={parameterPath:"blobServiceProperties",mapper:rI},Ei={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},Z={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},oI={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Ci={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ee={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},te={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},re={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"}}},jpe={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},iI={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},aI={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},mc={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},fc={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},Jpe={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},Kpe={parameterPath:"keyInfo",mapper:Oq},Xpe={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},_h={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},DR={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},kR={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},gn={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},LR={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},OR={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},MR={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},yn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Yn={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},gH={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},Zpe={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},eme={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},it={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},et={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},tt={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},FR={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},yH={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},tme={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},UR={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},rme={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},nme={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},sme={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ome={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},ime={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},Ii={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},qR={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},$R={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},GR={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},HR={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Nd={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},zR={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},VR={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},YR={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},WR={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},jR={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},EH={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"},CH={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},ame={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},xs={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},Ac={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},Tm={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},cme={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},lme={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},wr={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},br={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},Sr={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},gt={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},yt={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},pt={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},ume={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},dme={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},pme={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},mme={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},fme={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},hc={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},gc={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},yc={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},Ec={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},Cc={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},Ic={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},IH={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},da={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},pa={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},Ame={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},hme={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},jr={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},gme={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},eu={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"]}}},xH={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},xc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},wc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},bc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},Sc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},JR={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},Pm={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},ma={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},yme={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},Bc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},Eme={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},tu={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},ru={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},KR={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},nu={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},Cme={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ime={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},xme={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},wme={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},bme={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"]}}},Sme={parameterPath:["options","queryRequest"],mapper:Gq},Bme={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},wH={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},bH={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},SH={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},BH={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},RH={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},Rme={parameterPath:["options","tags"],mapper:sI},xi={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},Rc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},Nme={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},NH={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},TH={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},vm={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},_m={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},Qm={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},XR={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},PH={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},ZR={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},eN={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},tN={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},Tme={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},Qh={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},Pme={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},Dh={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},vme={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},vH={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},_me={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},Qme={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},Dme={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},kme={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Lme={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},_H={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},QH={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},rN={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},nN={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},Ome={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},DH={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},Mme={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},kH={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},LH={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},Fme={parameterPath:"blocks",mapper:qq},OH={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ume={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var sN=class{static{i(this,"ServiceImpl")}client;constructor(e){this.client=e}setProperties(e,r){return this.client.sendOperationRequest({blobServiceProperties:e,options:r},prt)}getProperties(e){return this.client.sendOperationRequest({options:e},mrt)}getStatistics(e){return this.client.sendOperationRequest({options:e},frt)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},Art)}getUserDelegationKey(e,r){return this.client.sendOperationRequest({keyInfo:e,options:r},hrt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},grt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},yrt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},Ert)}},Td=Lo(Mo,!0),prt={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:Hq},default:{bodyMapper:K,headersMapper:zq}},requestBody:Wpe,queryParameters:[oI,Ci,ee],urlParameters:[Z],headerParameters:[pc,Ei,te,re],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Td},mrt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:rI,headersMapper:Vq},default:{bodyMapper:K,headersMapper:Yq}},queryParameters:[oI,Ci,ee],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Td},frt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:kq,headersMapper:Wq},default:{bodyMapper:K,headersMapper:jq}},queryParameters:[oI,ee,jpe],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Td},Art={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Lq,headersMapper:Jq},default:{bodyMapper:K,headersMapper:Kq}},queryParameters:[ee,iI,aI,mc,fc,Jpe],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Td},hrt={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:Mq,headersMapper:Xq},default:{bodyMapper:K,headersMapper:Zq}},requestBody:Kpe,queryParameters:[oI,ee,Xpe],urlParameters:[Z],headerParameters:[pc,Ei,te,re],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Td},grt={path:"/",httpMethod:"GET",responses:{200:{headersMapper:e$},default:{bodyMapper:K,headersMapper:t$}},queryParameters:[Ci,ee,_h],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Td},yrt={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:r$},default:{bodyMapper:K,headersMapper:n$}},requestBody:DR,queryParameters:[ee,kR],urlParameters:[Z],headerParameters:[Ei,te,re,gn,LR],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Td},Ert={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:nI,headersMapper:s$},default:{bodyMapper:K,headersMapper:o$}},queryParameters:[ee,mc,fc,OR,MR],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Td};var oN=class{static{i(this,"ContainerImpl")}client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},Crt)}getProperties(e){return this.client.sendOperationRequest({options:e},Irt)}delete(e){return this.client.sendOperationRequest({options:e},xrt)}setMetadata(e){return this.client.sendOperationRequest({options:e},wrt)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},brt)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},Srt)}restore(e){return this.client.sendOperationRequest({options:e},Brt)}rename(e,r){return this.client.sendOperationRequest({sourceContainerName:e,options:r},Rrt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},Nrt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},Trt)}acquireLease(e){return this.client.sendOperationRequest({options:e},Prt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},vrt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},_rt)}breakLease(e){return this.client.sendOperationRequest({options:e},Qrt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},Drt)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},krt)}listBlobHierarchySegment(e,r){return this.client.sendOperationRequest({delimiter:e,options:r},Lrt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Ort)}},En=Lo(Mo,!0),Crt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:i$},default:{bodyMapper:K,headersMapper:a$}},queryParameters:[ee,yn],urlParameters:[Z],headerParameters:[te,re,me,Yn,gH,Zpe,eme],isXML:!0,serializer:En},Irt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:c$},default:{bodyMapper:K,headersMapper:l$}},queryParameters:[ee,yn],urlParameters:[Z],headerParameters:[te,re,me,it],isXML:!0,serializer:En},xrt={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:u$},default:{bodyMapper:K,headersMapper:d$}},queryParameters:[ee,yn],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt],isXML:!0,serializer:En},wrt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:p$},default:{bodyMapper:K,headersMapper:m$}},queryParameters:[ee,yn,FR],urlParameters:[Z],headerParameters:[te,re,me,Yn,it,et],isXML:!0,serializer:En},brt={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:f$},default:{bodyMapper:K,headersMapper:A$}},queryParameters:[ee,yn,yH],urlParameters:[Z],headerParameters:[te,re,me,it],isXML:!0,serializer:En},Srt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:h$},default:{bodyMapper:K,headersMapper:g$}},requestBody:tme,queryParameters:[ee,yn,yH],urlParameters:[Z],headerParameters:[pc,Ei,te,re,gH,it,et,tt],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:En},Brt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:y$},default:{bodyMapper:K,headersMapper:E$}},queryParameters:[ee,yn,UR],urlParameters:[Z],headerParameters:[te,re,me,rme,nme],isXML:!0,serializer:En},Rrt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:C$},default:{bodyMapper:K,headersMapper:I$}},queryParameters:[ee,yn,sme],urlParameters:[Z],headerParameters:[te,re,me,ome,ime],isXML:!0,serializer:En},Nrt={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:x$},default:{bodyMapper:K,headersMapper:w$}},requestBody:DR,queryParameters:[ee,kR,yn],urlParameters:[Z],headerParameters:[Ei,te,re,gn,LR],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:En},Trt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:nI,headersMapper:b$},default:{bodyMapper:K,headersMapper:S$}},queryParameters:[ee,mc,fc,OR,MR,yn],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:En},Prt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:B$},default:{bodyMapper:K,headersMapper:R$}},queryParameters:[ee,yn,Ii],urlParameters:[Z],headerParameters:[te,re,me,et,tt,qR,$R,GR],isXML:!0,serializer:En},vrt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:N$},default:{bodyMapper:K,headersMapper:T$}},queryParameters:[ee,yn,Ii],urlParameters:[Z],headerParameters:[te,re,me,et,tt,HR,Nd],isXML:!0,serializer:En},_rt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:P$},default:{bodyMapper:K,headersMapper:v$}},queryParameters:[ee,yn,Ii],urlParameters:[Z],headerParameters:[te,re,me,et,tt,Nd,zR],isXML:!0,serializer:En},Qrt={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:_$},default:{bodyMapper:K,headersMapper:Q$}},queryParameters:[ee,yn,Ii],urlParameters:[Z],headerParameters:[te,re,me,et,tt,VR,YR],isXML:!0,serializer:En},Drt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:D$},default:{bodyMapper:K,headersMapper:k$}},queryParameters:[ee,yn,Ii],urlParameters:[Z],headerParameters:[te,re,me,et,tt,Nd,WR,jR],isXML:!0,serializer:En},krt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Fq,headersMapper:L$},default:{bodyMapper:K,headersMapper:O$}},queryParameters:[ee,iI,aI,mc,fc,yn,EH,CH],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:En},Lrt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Uq,headersMapper:M$},default:{bodyMapper:K,headersMapper:F$}},queryParameters:[ee,iI,aI,mc,fc,yn,EH,CH,ame],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:En},Ort={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:U$},default:{bodyMapper:K,headersMapper:q$}},queryParameters:[Ci,ee,_h],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:En};var iN=class{static{i(this,"BlobImpl")}client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},Mrt)}getProperties(e){return this.client.sendOperationRequest({options:e},Frt)}delete(e){return this.client.sendOperationRequest({options:e},Urt)}undelete(e){return this.client.sendOperationRequest({options:e},qrt)}setExpiry(e,r){return this.client.sendOperationRequest({expiryOptions:e,options:r},$rt)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},Grt)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Hrt)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},zrt)}setLegalHold(e,r){return this.client.sendOperationRequest({legalHold:e,options:r},Vrt)}setMetadata(e){return this.client.sendOperationRequest({options:e},Yrt)}acquireLease(e){return this.client.sendOperationRequest({options:e},Wrt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},jrt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},Jrt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},Krt)}breakLease(e){return this.client.sendOperationRequest({options:e},Xrt)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Zrt)}startCopyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},ent)}copyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},tnt)}abortCopyFromURL(e,r){return this.client.sendOperationRequest({copyId:e,options:r},rnt)}setTier(e,r){return this.client.sendOperationRequest({tier:e,options:r},nnt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},snt)}query(e){return this.client.sendOperationRequest({options:e},ont)}getTags(e){return this.client.sendOperationRequest({options:e},int)}setTags(e){return this.client.sendOperationRequest({options:e},ant)}},nr=Lo(Mo,!0),Mrt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:vR},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:vR},default:{bodyMapper:K,headersMapper:$$}},queryParameters:[ee,xs,Ac],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,Tm,cme,lme,wr,br,Sr,gt,yt,pt],isXML:!0,serializer:nr},Frt={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:G$},default:{bodyMapper:K,headersMapper:H$}},queryParameters:[ee,xs,Ac],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,wr,br,Sr,gt,yt,pt],isXML:!0,serializer:nr},Urt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:z$},default:{bodyMapper:K,headersMapper:V$}},queryParameters:[ee,xs,Ac,dme],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,gt,yt,pt,ume],isXML:!0,serializer:nr},qrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Y$},default:{bodyMapper:K,headersMapper:W$}},queryParameters:[ee,UR],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:nr},$rt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:j$},default:{bodyMapper:K,headersMapper:J$}},queryParameters:[ee,pme],urlParameters:[Z],headerParameters:[te,re,me,mme,fme],isXML:!0,serializer:nr},Grt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:K$},default:{bodyMapper:K,headersMapper:X$}},queryParameters:[Ci,ee],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic],isXML:!0,serializer:nr},Hrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Z$},default:{bodyMapper:K,headersMapper:eG}},queryParameters:[ee,xs,Ac,IH],urlParameters:[Z],headerParameters:[te,re,me,tt,da,pa],isXML:!0,serializer:nr},zrt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:tG},default:{bodyMapper:K,headersMapper:rG}},queryParameters:[ee,xs,Ac,IH],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:nr},Vrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:nG},default:{bodyMapper:K,headersMapper:sG}},queryParameters:[ee,xs,Ac,Ame],urlParameters:[Z],headerParameters:[te,re,me,hme],isXML:!0,serializer:nr},Yrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:oG},default:{bodyMapper:K,headersMapper:iG}},queryParameters:[ee,FR],urlParameters:[Z],headerParameters:[te,re,me,Yn,it,et,tt,wr,br,Sr,gt,yt,pt,jr],isXML:!0,serializer:nr},Wrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:aG},default:{bodyMapper:K,headersMapper:cG}},queryParameters:[ee,Ii],urlParameters:[Z],headerParameters:[te,re,me,et,tt,qR,$R,GR,gt,yt,pt],isXML:!0,serializer:nr},jrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:lG},default:{bodyMapper:K,headersMapper:uG}},queryParameters:[ee,Ii],urlParameters:[Z],headerParameters:[te,re,me,et,tt,HR,Nd,gt,yt,pt],isXML:!0,serializer:nr},Jrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:dG},default:{bodyMapper:K,headersMapper:pG}},queryParameters:[ee,Ii],urlParameters:[Z],headerParameters:[te,re,me,et,tt,Nd,zR,gt,yt,pt],isXML:!0,serializer:nr},Krt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:mG},default:{bodyMapper:K,headersMapper:fG}},queryParameters:[ee,Ii],urlParameters:[Z],headerParameters:[te,re,me,et,tt,Nd,WR,jR,gt,yt,pt],isXML:!0,serializer:nr},Xrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:AG},default:{bodyMapper:K,headersMapper:hG}},queryParameters:[ee,Ii],urlParameters:[Z],headerParameters:[te,re,me,et,tt,VR,YR,gt,yt,pt],isXML:!0,serializer:nr},Zrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:gG},default:{bodyMapper:K,headersMapper:yG}},queryParameters:[ee,gme],urlParameters:[Z],headerParameters:[te,re,me,Yn,it,et,tt,wr,br,Sr,gt,yt,pt,jr],isXML:!0,serializer:nr},ent={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:EG},default:{bodyMapper:K,headersMapper:CG}},queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,me,Yn,it,et,tt,gt,yt,pt,da,pa,eu,xH,xc,wc,bc,Sc,JR,Pm,ma,yme,Bc],isXML:!0,serializer:nr},tnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:IG},default:{bodyMapper:K,headersMapper:xG}},queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,me,Yn,it,et,tt,gt,yt,pt,da,pa,jr,eu,xc,wc,bc,Sc,Pm,ma,Bc,Eme,tu,ru,KR,nu],isXML:!0,serializer:nr},rnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:wG},default:{bodyMapper:K,headersMapper:bG}},queryParameters:[ee,Cme,xme],urlParameters:[Z],headerParameters:[te,re,me,it,Ime],isXML:!0,serializer:nr},nnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_R},202:{headersMapper:_R},default:{bodyMapper:K,headersMapper:SG}},queryParameters:[ee,xs,Ac,wme],urlParameters:[Z],headerParameters:[te,re,me,it,pt,xH,bme],isXML:!0,serializer:nr},snt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:BG},default:{bodyMapper:K,headersMapper:RG}},queryParameters:[Ci,ee,_h],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:nr},ont={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:QR},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:QR},default:{bodyMapper:K,headersMapper:NG}},requestBody:Sme,queryParameters:[ee,xs,Bme],urlParameters:[Z],headerParameters:[pc,Ei,te,re,it,et,tt,wr,br,Sr,gt,yt,pt],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:nr},int={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:sI,headersMapper:TG},default:{bodyMapper:K,headersMapper:PG}},queryParameters:[ee,xs,Ac,wH],urlParameters:[Z],headerParameters:[te,re,me,it,pt,bH,SH,BH,RH],isXML:!0,serializer:nr},ant={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:vG},default:{bodyMapper:K,headersMapper:_G}},requestBody:Rme,queryParameters:[ee,Ac,wH],urlParameters:[Z],headerParameters:[pc,Ei,te,re,it,pt,bH,SH,BH,RH,xi,Rc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:nr};var aN=class{static{i(this,"PageBlobImpl")}client;constructor(e){this.client=e}create(e,r,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:r,options:n},cnt)}uploadPages(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},lnt)}clearPages(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},unt)}uploadPagesFromURL(e,r,n,s,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:r,contentLength:n,range:s,options:o},dnt)}getPageRanges(e){return this.client.sendOperationRequest({options:e},pnt)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},mnt)}resize(e,r){return this.client.sendOperationRequest({blobContentLength:e,options:r},fnt)}updateSequenceNumber(e,r){return this.client.sendOperationRequest({sequenceNumberAction:e,options:r},Ant)}copyIncremental(e,r){return this.client.sendOperationRequest({copySource:e,options:r},hnt)}},su=Lo(Mo,!0),cnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:QG},default:{bodyMapper:K,headersMapper:DG}},queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,me,gn,Yn,it,et,tt,wr,br,Sr,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic,da,pa,jr,eu,ma,Bc,Nme,NH,TH],isXML:!0,serializer:su},lnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:kG},default:{bodyMapper:K,headersMapper:LG}},requestBody:_m,queryParameters:[ee,XR],urlParameters:[Z],headerParameters:[te,re,gn,it,et,tt,Tm,wr,br,Sr,gt,yt,pt,jr,xi,Rc,vm,Qm,PH,ZR,eN,tN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:su},unt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:OG},default:{bodyMapper:K,headersMapper:MG}},queryParameters:[ee,XR],urlParameters:[Z],headerParameters:[te,re,me,gn,it,et,tt,Tm,wr,br,Sr,gt,yt,pt,jr,ZR,eN,tN,Tme],isXML:!0,serializer:su},dnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:FG},default:{bodyMapper:K,headersMapper:UG}},queryParameters:[ee,XR],urlParameters:[Z],headerParameters:[te,re,me,gn,it,et,tt,wr,br,Sr,gt,yt,pt,jr,xc,wc,bc,Sc,tu,ru,nu,PH,ZR,eN,tN,Qh,Pme,Dh,vme],isXML:!0,serializer:su},pnt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:PR,headersMapper:qG},default:{bodyMapper:K,headersMapper:$G}},queryParameters:[ee,mc,fc,xs,vH],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,Tm,gt,yt,pt],isXML:!0,serializer:su},mnt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:PR,headersMapper:GG},default:{bodyMapper:K,headersMapper:HG}},queryParameters:[ee,mc,fc,xs,vH,_me],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,Tm,gt,yt,pt,Qme],isXML:!0,serializer:su},fnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:zG},default:{bodyMapper:K,headersMapper:VG}},queryParameters:[Ci,ee],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,wr,br,Sr,gt,yt,pt,jr,NH],isXML:!0,serializer:su},Ant={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:YG},default:{bodyMapper:K,headersMapper:WG}},queryParameters:[Ci,ee],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,gt,yt,pt,TH,Dme],isXML:!0,serializer:su},hnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:jG},default:{bodyMapper:K,headersMapper:JG}},queryParameters:[ee,kme],urlParameters:[Z],headerParameters:[te,re,me,et,tt,gt,yt,pt,Pm],isXML:!0,serializer:su};var cN=class{static{i(this,"AppendBlobImpl")}client;constructor(e){this.client=e}create(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},gnt)}appendBlock(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},ynt)}appendBlockFromUrl(e,r,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:r,options:n},Ent)}seal(e){return this.client.sendOperationRequest({options:e},Cnt)}},lN=Lo(Mo,!0),gnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:KG},default:{bodyMapper:K,headersMapper:XG}},queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,me,gn,Yn,it,et,tt,wr,br,Sr,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic,da,pa,jr,ma,Bc,Lme],isXML:!0,serializer:lN},ynt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ZG},default:{bodyMapper:K,headersMapper:eH}},requestBody:_m,queryParameters:[ee,_H],urlParameters:[Z],headerParameters:[te,re,gn,it,et,tt,wr,br,Sr,gt,yt,pt,jr,xi,Rc,vm,Qm,QH,rN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:lN},Ent={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:tH},default:{bodyMapper:K,headersMapper:rH}},queryParameters:[ee,_H],urlParameters:[Z],headerParameters:[te,re,me,gn,it,et,tt,wr,br,Sr,gt,yt,pt,jr,xc,wc,bc,Sc,tu,ru,nu,xi,Qh,Dh,QH,rN,nN],isXML:!0,serializer:lN},Cnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:nH},default:{bodyMapper:K,headersMapper:sH}},queryParameters:[ee,Ome],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,gt,yt,rN],isXML:!0,serializer:lN};var uN=class{static{i(this,"BlockBlobImpl")}client;constructor(e){this.client=e}upload(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},Int)}putBlobFromUrl(e,r,n){return this.client.sendOperationRequest({contentLength:e,copySource:r,options:n},xnt)}stageBlock(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,body:n,options:s},wnt)}stageBlockFromURL(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,sourceUrl:n,options:s},bnt)}commitBlockList(e,r){return this.client.sendOperationRequest({blocks:e,options:r},Snt)}getBlockList(e,r){return this.client.sendOperationRequest({listType:e,options:r},Bnt)}},Lh=Lo(Mo,!0),Int={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:oH},default:{bodyMapper:K,headersMapper:iH}},requestBody:_m,queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,gn,Yn,it,et,tt,wr,br,Sr,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic,da,pa,jr,eu,ma,Bc,xi,Rc,vm,Qm,DH],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Lh},xnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:aH},default:{bodyMapper:K,headersMapper:cH}},queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,me,gn,Yn,it,et,tt,wr,br,Sr,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic,jr,eu,xc,wc,bc,Sc,JR,Pm,ma,tu,ru,KR,nu,xi,DH,Mme],isXML:!0,serializer:Lh},wnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:lH},default:{bodyMapper:K,headersMapper:uH}},requestBody:_m,queryParameters:[ee,kH,LH],urlParameters:[Z],headerParameters:[te,re,gn,it,wr,br,Sr,jr,xi,Rc,vm,Qm],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Lh},bnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:dH},default:{bodyMapper:K,headersMapper:pH}},queryParameters:[ee,kH,LH],urlParameters:[Z],headerParameters:[te,re,me,gn,it,wr,br,Sr,jr,xc,wc,bc,Sc,tu,ru,nu,Qh,Dh,nN],isXML:!0,serializer:Lh},Snt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:mH},default:{bodyMapper:K,headersMapper:fH}},requestBody:Fme,queryParameters:[ee,OH],urlParameters:[Z],headerParameters:[pc,Ei,te,re,Yn,it,et,tt,wr,br,Sr,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic,da,pa,jr,eu,ma,Bc,xi,Rc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Lh},Bnt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:$q,headersMapper:AH},default:{bodyMapper:K,headersMapper:hH}},queryParameters:[ee,xs,OH,Ume],urlParameters:[Z],headerParameters:[te,re,me,it,pt],isXML:!0,serializer:Lh};var cI=class extends $C{static{i(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"},s="azsdk-js-azure-storage-blob/12.30.0",o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`,a={...n,...r,userAgentOptions:{userAgentPrefix:o},endpoint:r.endpoint??r.baseUri??"{url}"};super(a),this.url=e,this.version=r.version||"2026-02-06",this.service=new sN(this),this.container=new oN(this),this.blob=new iN(this),this.pageBlob=new aN(this),this.appendBlob=new cN(this),this.blockBlob=new uN(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var lI=class extends cI{static{i(this,"StorageContextClient")}async sendOperationRequest(e,r){let n={...r};return(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}")&&(n.path=""),super.sendOperationRequest(e,n)}};function $me(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=Nnt(r),e.pathname=r,e.toString()}i($me,"escapeURLPath");function Rnt(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}i(Rnt,"getProxyUriFromDevConnString");function Dm(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}i(Dm,"getValueInConnString");function km(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=Rnt(t),t=Ope);let r=Dm(t,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let n="",s="",o=Buffer.from("accountKey","base64"),a="";if(s=Dm(t,"AccountName"),o=Buffer.from(Dm(t,"AccountKey"),"base64"),!r){n=Dm(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=Dm(t,"EndpointSuffix"),!a)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${n}://${s}.blob.${a}`}if(s){if(o.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:s,accountKey:o,proxyUri:e}}else{let n=Dm(t,"SharedAccessSignature"),s=Dm(t,"AccountName");if(s||(s=qH(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:s,accountSas:n}}}i(km,"extractConnectionStringParts");function Nnt(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}i(Nnt,"escape");function on(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()}i(on,"appendToURLPath");function Oh(t,e,r){let n=new URL(t),s=encodeURIComponent(e),o=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!==s&&c.push(l)}return o&&c.push(`${s}=${o}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}i(Oh,"setURLParameter");function MH(t,e){return new URL(t).searchParams.get(e)??void 0}i(MH,"getURLParameter");function Gme(t){try{let e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}i(Gme,"getURLScheme");function uI(t,e){let r=new URL(t),n=r.search;return n?n+="&"+e:n=e,r.search=n,r.toString()}i(uI,"appendToURLQuery");function Nt(t,e=!0){let r=t.toISOString();return e?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}i(Nt,"truncatedISO8061Date");function Tnt(t){return Rt?Buffer.from(t).toString("base64"):btoa(t)}i(Tnt,"base64encode");function FH(t,e){t.length>42&&(t=t.slice(0,42));let o=t+Pnt(e.toString(),48-t.length,"0");return Tnt(o)}i(FH,"generateBlockID");function Pnt(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))}i(Pnt,"padStart");function UH(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}i(UH,"iEqual");function qH(t){let e=new URL(t),r;try{return e.hostname.split(".")[1]==="blob"?r=e.hostname.split(".")[0]:dN(e)?r=e.pathname.split("/")[1]:r="",r}catch{throw new Error("Unable to extract accountName with provided information.")}}i(qH,"getAccountNameFromUrl");function dN(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&&$pe.includes(t.port)}i(dN,"isIpEndpointStyle");function Pd(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("&")}i(Pd,"toBlobTagsString");function Hme(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}i(Hme,"toBlobTags");function pN(t){if(t===void 0)return;let e={};for(let r of t.blobTagSet)e[r.key]=r.value;return e}i(pN,"toTags");function $H(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.")}}i($H,"toQuerySerialization");function mN(t){if(!t||"policy-id"in t)return;let e=[];for(let r in t){let n=r.split("_"),s="or-";n[0].startsWith(s)&&(n[0]=n[0].substring(s.length));let o={ruleId:n[1],replicationStatus:t[r]},a=e.findIndex(c=>c.policyId===n[0]);a>-1?e[a].rules.push(o):e.push({policyId:n[0],rules:[o]})}return e}i(mN,"parseObjectReplicationRecord");function Mh(t){return t?t.scheme+" "+t.value:void 0}i(Mh,"httpAuthorizationToString");function*GH(t){let e=[],r=[];t.pageRange&&(e=t.pageRange),t.clearRange&&(r=t.clearRange);let n=0,s=0;for(;n0&&n.length>0&&e.push(`${r}=${n}`))}};function dI(t,e,r){return pI(t,e,r).sasQueryParameters}i(dI,"generateBlobSASQueryParameters");function pI(t,e,r){let n=t.version?t.version:NR,s=e instanceof xr?e:void 0,o;if(s===void 0&&r!==void 0&&(o=new BR(r,e)),s===void 0&&o===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return s!==void 0?Qnt(t,s):n>="2025-07-05"?Ont(t,o):Lnt(t,o);if(n>="2018-11-09")return s!==void 0?_nt(t,s):n>="2020-02-10"?knt(t,o):Dnt(t,o);if(n>="2015-04-05"){if(s!==void 0)return vnt(t,s);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'.")}i(pI,"generateBlobSASQueryParametersInternal");function vnt(t,e){if(t=Om(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=Nc.parse(t.permissions.toString()).toString():n=Tc.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Lm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?fa(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(` -`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Aa(t.version,o,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:s}}i(vnt,"generateBlobSASQueryParameters20150405");function _nt(t,e){if(t=Om(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Lm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?fa(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(o);return{sasQueryParameters:new Aa(t.version,a,s,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:o}}i(_nt,"generateBlobSASQueryParameters20181109");function Qnt(t,e){if(t=Om(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Lm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?fa(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(o);return{sasQueryParameters:new Aa(t.version,a,s,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:o}}i(Qnt,"generateBlobSASQueryParameters20201206");function Dnt(t,e){if(t=Om(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Lm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?fa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` -`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Aa(t.version,a,s,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:o}}i(Dnt,"generateBlobSASQueryParametersUDK20181109");function knt(t,e){if(t=Om(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Lm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?fa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` -`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Aa(t.version,a,s,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:o}}i(knt,"generateBlobSASQueryParametersUDK20200210");function Lnt(t,e){if(t=Om(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Lm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?fa(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(o);return{sasQueryParameters:new Aa(t.version,a,s,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:o}}i(Lnt,"generateBlobSASQueryParametersUDK20201206");function Ont(t,e){if(t=Om(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Lm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?fa(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(o);return{sasQueryParameters:new Aa(t.version,a,s,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:o}}i(Ont,"generateBlobSASQueryParametersUDK20250705");function Lm(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Lm,"getCanonicalName");function Om(t){let e=t.version?t.version:NR;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}i(Om,"SASSignatureValuesSanityCheckAndAutofill");var mI=class{static{i(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=wh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ua||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 he.withSpan("BlobLeaseClient-acquireLease",r,async n=>Te(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!==ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ua||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 he.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Te(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ua||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 he.withSpan("BlobLeaseClient-releaseLease",e,async r=>Te(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!==ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ua||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 he.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!==ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ua||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 he.withSpan("BlobLeaseClient-breakLease",r,async n=>{let s={abortSignal:r.abortSignal,breakPeriod:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions};return Te(await this._containerOrBlobOperation.breakLease(s))})}};var Vme=require("node:stream");var fN=class extends Vme.Readable{static{i(this,"RetriableReadableStream")}start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,r,n,s,o={}){super({highWaterMark:o.highWaterMark}),this.getter=r,this.source=e,this.start=n,this.offset=n,this.end=n+s-1,this.maxRetryRequests=o.maxRetryRequests&&o.maxRetryRequests>=0?o.maxRetryRequests:0,this.onProgress=o.onProgress,this.options=o,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=i(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=i(()=>{let e=new Do("The operation was aborted.");this.destroy(e)},"sourceAbortedHandler");sourceErrorOrEndHandler=i(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 AN=class{static{i(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 Rt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r,n,s,o={}){this.originalResponse=e,this.blobDownloadStream=new fN(this.originalResponse.readableStreamBody,r,n,s,o)}};var Xme=require("node:stream");var HH=new Uint8Array([79,98,106,1]),Yme="avro.codec",Wme="avro.schema";var mr=class t{static{i(this,"AvroParser")}static async readFixedBytes(e,r,n={}){let s=await e.read(r,{abortSignal:n.abortSignal});if(s.length!==r)throw new Error("Hit stream end.");return s}static async readByte(e,r={}){return(await t.readFixedBytes(e,1,r))[0]}static async readZigZagLong(e,r={}){let n=0,s=0,o,a,c;do o=await t.readByte(e,r),a=o&128,n|=(o&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 s=await t.readString(e,n),o=await r(e,n);return{key:s,value:o}}static async readMap(e,r,n={}){let s=i((c,l={})=>t.readMapPair(c,r,l),"readPairMethod"),o=await t.readArray(e,s,n),a={};for(let c of o)a[c.key]=c.value;return a}static async readArray(e,r,n={}){let s=[];for(let o=await t.readLong(e,n);o!==0;o=await t.readLong(e,n))for(o<0&&(await t.readLong(e,n),o=-o);o--;){let a=await r(e,n);s.push(a)}return s}},Mm;(function(t){t.RECORD="record",t.ENUM="enum",t.ARRAY="array",t.MAP="map",t.UNION="union",t.FIXED="fixed"})(Mm||(Mm={}));var Cn;(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"})(Cn||(Cn={}));var ou=class t{static{i(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 Cn.NULL:case Cn.BOOLEAN:case Cn.INT:case Cn.LONG:case Cn.FLOAT:case Cn.DOUBLE:case Cn.BYTES:case Cn.STRING:return new zH(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new YH(e.map(t.fromSchema))}static fromObjectSchema(e){let r=e.type;try{return t.fromStringSchema(r)}catch{}switch(r){case Mm.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 s of e.fields)n[s.name]=t.fromSchema(s.type);return new jH(n,e.name);case Mm.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 VH(e.symbols);case Mm.MAP:if(!e.values)throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new WH(t.fromSchema(e.values));case Mm.ARRAY:case Mm.FIXED:default:throw new Error(`Unexpected Avro type ${r} in ${e}`)}}},zH=class extends ou{static{i(this,"AvroPrimitiveType")}_primitive;constructor(e){super(),this._primitive=e}read(e,r={}){switch(this._primitive){case Cn.NULL:return mr.readNull();case Cn.BOOLEAN:return mr.readBoolean(e,r);case Cn.INT:return mr.readInt(e,r);case Cn.LONG:return mr.readLong(e,r);case Cn.FLOAT:return mr.readFloat(e,r);case Cn.DOUBLE:return mr.readDouble(e,r);case Cn.BYTES:return mr.readBytes(e,r);case Cn.STRING:return mr.readString(e,r);default:throw new Error("Unknown Avro Primitive")}}},VH=class extends ou{static{i(this,"AvroEnumType")}_symbols;constructor(e){super(),this._symbols=e}async read(e,r={}){let n=await mr.readInt(e,r);return this._symbols[n]}},YH=class extends ou{static{i(this,"AvroUnionType")}_types;constructor(e){super(),this._types=e}async read(e,r={}){let n=await mr.readInt(e,r);return this._types[n].read(e,r)}},WH=class extends ou{static{i(this,"AvroMapType")}_itemType;constructor(e){super(),this._itemType=e}read(e,r={}){let n=i((s,o)=>this._itemType.read(s,o),"readItemMethod");return mr.readMap(e,n,r)}},jH=class extends ou{static{i(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 s in this._fields)Object.prototype.hasOwnProperty.call(this._fields,s)&&(n[s]=await this._fields[s].read(e,r));return n}};function JH(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 o=0;o0}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 mr.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!JH(this._syncMarker,n))throw new Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=await mr.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await mr.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield r}}};var AI=class{static{i(this,"AvroReadable")}};var Kme=require("buffer");var Jme=new Do("Reading from the avro stream was aborted."),hI=class extends AI{static{i(this,"AvroReadableFromStream")}_position;_readable;toUint8Array(e){return typeof e=="string"?Kme.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 Jme;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((s,o)=>{let a=i(()=>{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=i(()=>{let d=this._readable.read(e);d&&(this._position+=d.length,a(),s(this.toUint8Array(d)))},"readableCallback"),l=i(()=>{a(),o()},"rejectCallback"),u=i(()=>{a(),o(Jme)},"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 hN=class extends Xme.Readable{static{i(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 fI(new hI(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 s=r.data;if(!(s instanceof Uint8Array))throw Error("Invalid data in avro result record.");this.push(Buffer.from(s))||(this.avroPaused=!0)}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{let s=r.bytesScanned;if(typeof s!="number")throw Error("Invalid bytesScanned in avro progress record.");this.onProgress&&this.onProgress({loadedBytes:s})}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){let s=r.totalBytes;if(typeof s!="number")throw Error("Invalid totalBytes in avro end record.");this.onProgress({loadedBytes:s})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){let s=r.fatal;if(typeof s!="boolean")throw Error("Invalid fatal in avro error record.");let o=r.name;if(typeof o!="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:o,isFatal:s,description:a})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}};var gN=class{static{i(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 Rt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r={}){this.originalResponse=e,this.blobDownloadStream=new hN(this.originalResponse.readableStreamBody,r)}};var KH;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(KH||(KH={}));var XH;(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"})(XH||(XH={}));function vd(t){if(t!==void 0)return t}i(vd,"toAccessTier");function an(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=Lpe)}i(an,"ensureCpkIfSpecified");var ZH;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(ZH||(ZH={}));function yN(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}}}}i(yN,"rangeResponseFromModel");var Ofe=D(Lfe(),1);var NN=class extends Ofe.Poller{static{i(this,"BlobBeginCopyFromUrlPoller")}intervalInMs;constructor(e){let{blobClient:r,copySource:n,intervalInMs:s=15e3,onProgress:o,resumeFrom:a,startCopyFromURLOptions:c}=e,l;a&&(l=JSON.parse(a).state);let u=CI({...l,blobClient:r,copySource:n,startCopyFromURLOptions:c});super(u),typeof o=="function"&&this.onProgress(o),this.intervalInMs=s}delay(){return _C(this.intervalInMs)}},Ist=i(async function(e={}){let r=this.state,{copyId:n}=r;return r.isCompleted?CI(r):n?(await r.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),r.isCancelled=!0,CI(r)):(r.isCancelled=!0,CI(r))},"cancel"),xst=i(async function(e={}){let r=this.state,{blobClient:n,copySource:s,startCopyFromURLOptions:o}=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(s,o);r.copyId=a.copyId,a.copyStatus==="success"&&(r.result=a,r.isCompleted=!0)}return CI(r)},"update"),wst=i(function(){return JSON.stringify({state:this.state},(e,r)=>{if(e!=="blobClient")return r})},"toString");function CI(t){return{state:{...t},cancel:Ist,toString:wst,update:xst}}i(CI,"makeBlobBeginCopyFromURLPollOperation");function Xs(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}-`}i(Xs,"rangeToString");var Mfe=require("events");var II;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})(II||(II={}));var xI=class{static{i(this,"Batch")}concurrency;actives=0;completed=0;offset=0;operations=[];state=II.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new Mfe.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=II.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(o>=a){clearTimeout(u),c();return}let d=t.read();if(!d)return;typeof d=="string"&&(d=Buffer.from(d,s));let p=o+d.length>a?a-o:d.length;e.fill(d.slice(0,p),r+o,r+o+p),o+=p}),t.on("end",()=>{clearTimeout(u),o{clearTimeout(u),l(d)})})}i(Ufe,"streamToBuffer");async function qfe(t,e){return new Promise((r,n)=>{let s=TN.default.createWriteStream(e);t.on("error",o=>{n(o)}),s.on("error",o=>{n(o)}),s.on("close",r),t.pipe(s)})}i(qfe,"readStreamToLocalFile");var $fe=Ffe.default.promisify(TN.default.stat),Gfe=TN.default.createReadStream;var iu=class t extends Fh{static{i(this,"BlobClient")}blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,r,n,s){s=s||{};let o,a;if(Zl(r))a=e,o=r;else if(Rt&&r instanceof xr||r instanceof rr||ko(r))a=e,s=n,o=Lr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Lr(new rr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=km(e);if(u.kind==="AccountConnString")if(Rt){let d=new xr(u.accountName,u.accountKey);a=on(on(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=xd(u.proxyUri)),o=Lr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=on(on(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Lr(new rr,s);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,o),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=MH(this.url,Xl.Parameters.SNAPSHOT),this._versionId=MH(this.url,Xl.Parameters.VERSIONID)}withSnapshot(e){return new t(Oh(this.url,Xl.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new t(Oh(this.url,Xl.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new vN(this.url,this.pipeline)}getBlockBlobClient(){return new $h(this.url,this.pipeline)}getPageBlobClient(){return new _N(this.url,this.pipeline)}async download(e=0,r,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},an(n.customerProvidedKey,this.isHttps),he.withSpan("BlobClient-download",n,async s=>{let o=Te(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:Rt?void 0:n.onProgress},range:e===0&&!r?void 0:Xs({offset:e,count:r}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:s.tracingOptions})),a={...o,_response:o._response,objectReplicationDestinationPolicyId:o.objectReplicationPolicyId,objectReplicationSourceProperties:mN(o.objectReplicationRules)};if(!Rt)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),o.contentLength===void 0)throw new RangeError("File download response doesn't contain valid content length header");if(!o.etag)throw new RangeError("File download response doesn't contain valid etag header");return new AN(a,async c=>{let l={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||o.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Xs({count:e+o.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,o.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return he.withSpan("BlobClient-exists",e,async r=>{try{return an(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===Upe||n.details.errorCode===qpe))return!0;throw n}})}async getProperties(e={}){return e.conditions=e.conditions||{},an(e.customerProvidedKey,this.isHttps),he.withSpan("BlobClient-getProperties",e,async r=>{let n=Te(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:mN(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},he.withSpan("BlobClient-delete",e,async r=>Te(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 he.withSpan("BlobClient-deleteIfExists",e,async r=>{try{let n=Te(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 he.withSpan("BlobClient-undelete",e,async r=>Te(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setHTTPHeaders(e,r={}){return r.conditions=r.conditions||{},an(r.customerProvidedKey,this.isHttps),he.withSpan("BlobClient-setHTTPHeaders",r,async n=>Te(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||{},an(r.customerProvidedKey,this.isHttps),he.withSpan("BlobClient-setMetadata",r,async n=>Te(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 he.withSpan("BlobClient-setTags",r,async n=>Te(await this.blobContext.setTags({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},blobModifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions,tags:Hme(e)})))}async getTags(e={}){return he.withSpan("BlobClient-getTags",e,async r=>{let n=Te(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:pN({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new mI(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},an(e.customerProvidedKey,this.isHttps),he.withSpan("BlobClient-createSnapshot",e,async r=>Te(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:i((...o)=>this.abortCopyFromURL(...o),"abortCopyFromURL"),getProperties:i((...o)=>this.getProperties(...o),"getProperties"),startCopyFromURL:i((...o)=>this.startCopyFromURL(...o),"startCopyFromURL")},s=new NN({blobClient:n,copySource:e,intervalInMs:r.intervalInMs,onProgress:r.onProgress,resumeFrom:r.resumeFrom,startCopyFromURLOptions:r});return await s.poll(),s}async abortCopyFromURL(e,r={}){return he.withSpan("BlobClient-abortCopyFromURL",r,async n=>Te(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||{},he.withSpan("BlobClient-syncCopyFromURL",r,async n=>Te(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:Mh(r.sourceAuthorization),tier:vd(r.tier),blobTagsString:Pd(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 he.withSpan("BlobClient-setAccessTier",r,async n=>Te(await this.blobContext.setTier(vd(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,s={}){let o,a=0,c=0,l=s;e instanceof Buffer?(o=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={}),he.withSpan("BlobClient-downloadToBuffer",l,async d=>{if(!c){let f=await this.getProperties({...l,tracingOptions:d.tracingOptions});if(c=f.contentLength-a,c<0)throw new RangeError(`offset ${a} shouldn't be larger than blob size ${f.contentLength}`)}if(!o)try{o=Buffer.alloc(c)}catch(f){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". ${f.message}`)}if(o.length{let g=a+c;f+u{let a=await this.download(r,n,{...s,tracingOptions:o.tracingOptions});return a.readableStreamBody&&await qfe(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 s=n.pathname.match("/([^/]*)(/(.*))?");e=s[1],r=s[3]}else if(dN(n)){let s=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=s[2],r=s[4]}else{let s=n.pathname.match("/([^/]*)(/(.*))?");e=s[1],r=s[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 he.withSpan("BlobClient-startCopyFromURL",r,async n=>(r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},Te(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:vd(r.tier),blobTagsString:Pd(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=dI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();r(uI(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 pI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,r){return new Promise(n=>{let s=dI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).toString();n(uI(this.url,s))})}generateUserDelegationSasStringToSign(e,r){return pI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return he.withSpan("BlobClient-deleteImmutabilityPolicy",e,async r=>Te(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions})))}async setImmutabilityPolicy(e,r={}){return he.withSpan("BlobClient-setImmutabilityPolicy",r,async n=>Te(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:n.tracingOptions})))}async setLegalHold(e,r={}){return he.withSpan("BlobClient-setLegalHold",r,async n=>Te(await this.blobContext.setLegalHold(e,{tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return he.withSpan("BlobClient-getAccountInfo",e,async r=>Te(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}},vN=class t extends iu{static{i(this,"AppendBlobClient")}appendBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Zl(r))a=e,o=r;else if(Rt&&r instanceof xr||r instanceof rr||ko(r))a=e,s=n,o=Lr(r,s);else if(!r&&typeof r!="string")a=e,o=Lr(new rr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=km(e);if(u.kind==="AccountConnString")if(Rt){let d=new xr(u.accountName,u.accountKey);a=on(on(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=xd(u.proxyUri)),o=Lr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=on(on(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Lr(new rr,s);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,o),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new t(Oh(this.url,Xl.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},an(e.customerProvidedKey,this.isHttps),he.withSpan("AppendBlobClient-create",e,async r=>Te(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:Pd(e.tags),tracingOptions:r.tracingOptions})))}async createIfNotExists(e={}){let r={ifNoneMatch:_q};return he.withSpan("AppendBlobClient-createIfNotExists",e,async n=>{try{let s=Te(await this.create({...n,conditions:r}));return{succeeded:!0,...s,_response:s._response}}catch(s){if(s.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...s.response?.parsedHeaders,_response:s.response};throw s}})}async seal(e={}){return e.conditions=e.conditions||{},he.withSpan("AppendBlobClient-seal",e,async r=>Te(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||{},an(n.customerProvidedKey,this.isHttps),he.withSpan("AppendBlobClient-appendBlock",n,async s=>Te(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:s.tracingOptions})))}async appendBlockFromURL(e,r,n,s={}){return s.conditions=s.conditions||{},s.sourceConditions=s.sourceConditions||{},an(s.customerProvidedKey,this.isHttps),he.withSpan("AppendBlobClient-appendBlockFromURL",s,async o=>Te(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:s.abortSignal,sourceRange:Xs({offset:r,count:n}),sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,appendPositionAccessConditions: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},copySourceAuthorization:Mh(s.sourceAuthorization),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:o.tracingOptions})))}},$h=class t extends iu{static{i(this,"BlockBlobClient")}_blobContext;blockBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Zl(r))a=e,o=r;else if(Rt&&r instanceof xr||r instanceof rr||ko(r))a=e,s=n,o=Lr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Lr(new rr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=km(e);if(u.kind==="AccountConnString")if(Rt){let d=new xr(u.accountName,u.accountKey);a=on(on(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=xd(u.proxyUri)),o=Lr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=on(on(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Lr(new rr,s);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,o),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new t(Oh(this.url,Xl.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,r={}){if(an(r.customerProvidedKey,this.isHttps),!Rt)throw new Error("This operation currently is only supported in Node.js.");return he.withSpan("BlockBlobClient-query",r,async n=>{let s=Te(await this._blobContext.query({abortSignal:r.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:$H(r.inputTextConfiguration),outputSerialization:$H(r.outputTextConfiguration)},leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return new gN(s,{abortSignal:r.abortSignal,onProgress:r.onProgress,onError:r.onError})})}async upload(e,r,n={}){return n.conditions=n.conditions||{},an(n.customerProvidedKey,this.isHttps),he.withSpan("BlockBlobClient-upload",n,async s=>Te(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:vd(n.tier),blobTagsString:Pd(n.tags),tracingOptions:s.tracingOptions})))}async syncUploadFromURL(e,r={}){return r.conditions=r.conditions||{},an(r.customerProvidedKey,this.isHttps),he.withSpan("BlockBlobClient-syncUploadFromURL",r,async n=>Te(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:Mh(r.sourceAuthorization),tier:vd(r.tier),blobTagsString:Pd(r.tags),copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,r,n,s={}){return an(s.customerProvidedKey,this.isHttps),he.withSpan("BlockBlobClient-stageBlock",s,async o=>Te(await this.blockBlobContext.stageBlock(e,n,r,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,requestOptions:{onUploadProgress:s.onProgress},transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions})))}async stageBlockFromURL(e,r,n=0,s,o={}){return an(o.customerProvidedKey,this.isHttps),he.withSpan("BlockBlobClient-stageBlockFromURL",o,async a=>Te(await this.blockBlobContext.stageBlockFromURL(e,0,r,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:n===0&&!s?void 0:Xs({offset:n,count:s}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:Mh(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,r={}){return r.conditions=r.conditions||{},an(r.customerProvidedKey,this.isHttps),he.withSpan("BlockBlobClient-commitBlockList",r,async n=>Te(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:vd(r.tier),blobTagsString:Pd(r.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,r={}){return he.withSpan("BlockBlobClient-getBlockList",r,async n=>{let s=Te(await this.blockBlobContext.getBlockList(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return s.committedBlocks||(s.committedBlocks=[]),s.uncommittedBlocks||(s.uncommittedBlocks=[]),s})}async uploadData(e,r={}){return he.withSpan("BlockBlobClient-uploadData",r,async n=>{if(Rt){let s;return e instanceof Buffer?s=e:e instanceof ArrayBuffer?s=Buffer.from(e):(e=e,s=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.byteLength,n)}else{let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,n)}})}async uploadBrowserData(e,r={}){return he.withSpan("BlockBlobClient-uploadBrowserData",r,async n=>{let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,n)})}async uploadSeekableInternal(e,r,n={}){let s=n.blockSize??0;if(s<0||s>4194304e3)throw new RangeError(`blockSize option must be >= 0 and <= ${4194304e3}`);let o=n.maxSingleShotSize??268435456;if(o<0||o>268435456)throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${268435456}`);if(s===0){if(r>4194304e3*5e4)throw new RangeError(`${r} is too larger to upload to a block blob.`);r>o&&(s=Math.ceil(r/5e4),s<4194304&&(s=4194304))}return n.blobHTTPHeaders||(n.blobHTTPHeaders={}),n.conditions||(n.conditions={}),he.withSpan("BlockBlobClient-uploadSeekableInternal",n,async a=>{if(r<=o)return Te(await this.upload(e(0,r),r,a));let c=Math.floor((r-1)/s)+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=wh(),d=0,p=new xI(n.concurrency);for(let m=0;m{let f=FH(u,m),g=s*m,x=(m===c-1?r:g+s)-g;l.push(f),await this.stageBlock(f,e(g,x),x,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),d+=x,n.onProgress&&n.onProgress({loadedBytes:d})});return await p.do(),this.commitBlockList(l,a)})}async uploadFile(e,r={}){return he.withSpan("BlockBlobClient-uploadFile",r,async n=>{let s=(await $fe(e)).size;return this.uploadSeekableInternal((o,a)=>()=>Gfe(e,{autoClose:!0,end:a?o+a-1:1/0,start:o}),s,{...r,tracingOptions:n.tracingOptions})})}async uploadStream(e,r=8388608,n=5,s={}){return s.blobHTTPHeaders||(s.blobHTTPHeaders={}),s.conditions||(s.conditions={}),he.withSpan("BlockBlobClient-uploadStream",s,async o=>{let a=0,c=wh(),l=0,u=[];return await new CR(e,r,n,async(p,m)=>{let f=FH(c,a);u.push(f),a++,await this.stageBlock(f,p,m,{customerProvidedKey:s.customerProvidedKey,conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions}),l+=m,s.onProgress&&s.onProgress({loadedBytes:l})},Math.ceil(n/4*3)).do(),Te(await this.commitBlockList(u,{...s,tracingOptions:o.tracingOptions}))})}},_N=class t extends iu{static{i(this,"PageBlobClient")}pageBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Zl(r))a=e,o=r;else if(Rt&&r instanceof xr||r instanceof rr||ko(r))a=e,s=n,o=Lr(r,s);else if(!r&&typeof r!="string")a=e,o=Lr(new rr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=km(e);if(u.kind==="AccountConnString")if(Rt){let d=new xr(u.accountName,u.accountKey);a=on(on(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=xd(u.proxyUri)),o=Lr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=on(on(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Lr(new rr,s);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,o),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new t(Oh(this.url,Xl.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,r={}){return r.conditions=r.conditions||{},an(r.customerProvidedKey,this.isHttps),he.withSpan("PageBlobClient-create",r,async n=>Te(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:vd(r.tier),blobTagsString:Pd(r.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,r={}){return he.withSpan("PageBlobClient-createIfNotExists",r,async n=>{try{let s={ifNoneMatch:_q},o=Te(await this.create(e,{...r,conditions:s,tracingOptions:n.tracingOptions}));return{succeeded:!0,...o,_response:o._response}}catch(s){if(s.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...s.response?.parsedHeaders,_response:s.response};throw s}})}async uploadPages(e,r,n,s={}){return s.conditions=s.conditions||{},an(s.customerProvidedKey,this.isHttps),he.withSpan("PageBlobClient-uploadPages",s,async o=>Te(await this.pageBlobContext.uploadPages(n,e,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onUploadProgress:s.onProgress},range:Xs({offset:r,count:n}),sequenceNumberAccessConditions:s.conditions,transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions})))}async uploadPagesFromURL(e,r,n,s,o={}){return o.conditions=o.conditions||{},o.sourceConditions=o.sourceConditions||{},an(o.customerProvidedKey,this.isHttps),he.withSpan("PageBlobClient-uploadPagesFromURL",o,async a=>Te(await this.pageBlobContext.uploadPagesFromURL(e,Xs({offset:r,count:s}),0,Xs({offset:n,count:s}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:Mh(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,r,n={}){return n.conditions=n.conditions||{},he.withSpan("PageBlobClient-clearPages",n,async s=>Te(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Xs({offset:e,count:r}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions})))}async getPageRanges(e=0,r,n={}){return n.conditions=n.conditions||{},he.withSpan("PageBlobClient-getPageRanges",n,async s=>{let o=Te(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Xs({offset:e,count:r}),tracingOptions:s.tracingOptions}));return yN(o)})}async listPageRangesSegment(e=0,r,n,s={}){return he.withSpan("PageBlobClient-getPageRangesSegment",s,async o=>Te(await this.pageBlobContext.getPageRanges({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},range:Xs({offset:e,count:r}),marker:n,maxPageSize:s.maxPageSize,tracingOptions:o.tracingOptions})))}async*listPageRangeItemSegments(e=0,r,n,s={}){let o;if(n||n===void 0)do o=await this.listPageRangesSegment(e,r,n,s),n=o.continuationToken,yield await o;while(n)}async*listPageRangeItems(e=0,r,n={}){let s;for await(let o of this.listPageRangeItemSegments(e,r,s,n))yield*GH(o)}listPageRanges(e=0,r,n={}){n.conditions=n.conditions||{};let s=this.listPageRangeItems(e,r,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:i((o={})=>this.listPageRangeItemSegments(e,r,o.continuationToken,{maxPageSize:o.maxPageSize,...n}),"byPage")}}async getPageRangesDiff(e,r,n,s={}){return s.conditions=s.conditions||{},he.withSpan("PageBlobClient-getPageRangesDiff",s,async o=>{let a=Te(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevsnapshot:n,range:Xs({offset:e,count:r}),tracingOptions:o.tracingOptions}));return yN(a)})}async listPageRangesDiffSegment(e,r,n,s,o={}){return he.withSpan("PageBlobClient-getPageRangesDiffSegment",o,async a=>Te(await this.pageBlobContext.getPageRangesDiff({abortSignal:o?.abortSignal,leaseAccessConditions:o?.conditions,modifiedAccessConditions:{...o?.conditions,ifTags:o?.conditions?.tagConditions},prevsnapshot:n,range:Xs({offset:e,count:r}),marker:s,maxPageSize:o?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,r,n,s,o){let a;if(s||s===void 0)do a=await this.listPageRangesDiffSegment(e,r,n,s,o),s=a.continuationToken,yield await a;while(s)}async*listPageRangeDiffItems(e,r,n,s){let o;for await(let a of this.listPageRangeDiffItemSegments(e,r,n,o,s))yield*GH(a)}listPageRangesDiff(e,r,n,s={}){s.conditions=s.conditions||{};let o=this.listPageRangeDiffItems(e,r,n,{...s});return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:i((a={})=>this.listPageRangeDiffItemSegments(e,r,n,a.continuationToken,{maxPageSize:a.maxPageSize,...s}),"byPage")}}async getPageRangesDiffForManagedDisks(e,r,n,s={}){return s.conditions=s.conditions||{},he.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",s,async o=>{let a=Te(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevSnapshotUrl:n,range:Xs({offset:e,count:r}),tracingOptions:o.tracingOptions}));return yN(a)})}async resize(e,r={}){return r.conditions=r.conditions||{},he.withSpan("PageBlobClient-resize",r,async n=>Te(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||{},he.withSpan("PageBlobClient-updateSequenceNumber",n,async s=>Te(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:r,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions})))}async startCopyIncremental(e,r={}){return he.withSpan("PageBlobClient-startCopyIncremental",r,async n=>Te(await this.pageBlobContext.copyIncremental(e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}};var Hfe;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(Hfe||(Hfe={}));var zfe;(function(t){t.AES256="AES256"})(zfe||(zfe={}));var QN=class extends Error{static{i(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}};var Gh=class extends Error{static{i(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"}};Gh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var qm=class extends Error{static{i(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"}};qm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var wI=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Dst=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Cz=class{static{i(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,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Ke(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{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 Vfe(t,e,r){return Dst(this,void 0,void 0,function*(){var n;let s=new iu(t),o=s.getBlockBlobClient(),a=new Cz((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(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield o.uploadFile(e,c);if(l._response.status>=400)throw new QN(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Qr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(Vfe,"uploadCacheArchiveSDK");var Wfe=D(require("buffer"),1),Pc=D(require("fs"),1),jfe=D(require("stream"),1),Jfe=D(require("util"),1);var DN=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function kN(t){return t?t>=200&&t<300:!1}i(kN,"isSuccessStatusCode");function kst(t){return t?t>=500:!0}i(kst,"isServerErrorStatusCode");function Lst(t){return t?[Ir.BadGateway,Ir.ServiceUnavailable,Ir.GatewayTimeout].includes(t):!1}i(Lst,"isRetryableStatusCode");function Ost(t){return DN(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(Ost,"sleep");function Yfe(t,e,r){return DN(this,arguments,void 0,function*(n,s,o,a=iB,c=aB,l=void 0){let u="",d=1;for(;d<=a;){let p,m,f=!1;try{p=yield s()}catch(g){l&&(p=l(g)),f=!0,u=g.message}if(p&&(m=o(p),!kst(m)))return p;if(m&&(f=Lst(m),u=`Cache service responded with ${m}`),G(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){G(`${n} - Error is not retryable`);break}yield Ost(c),d++}throw Error(`${n} failed: ${u}`)})}i(Yfe,"retry");function bI(t,e){return DN(this,arguments,void 0,function*(r,n,s=iB,o=aB){return yield Yfe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof rc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(bI,"retryTypedResponse");function Hh(t,e){return DN(this,arguments,void 0,function*(r,n,s=iB,o=aB){return yield Yfe(r,n,a=>a.message.statusCode,s,o)})}i(Hh,"retryHttpClientResponse");var wi=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function Mst(t,e){return wi(this,void 0,void 0,function*(){yield Jfe.promisify(jfe.pipeline)(t.message,e)})}i(Mst,"pipeResponseToStream");var LN=class{static{i(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,G(`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,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Ke(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{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 ON(t,e){return wi(this,void 0,void 0,function*(){let r=Pc.createWriteStream(e),n=new Yl("actions/cache"),s=yield Hh("downloadCache",()=>wi(this,void 0,void 0,function*(){return n.get(t)}));s.message.socket.setTimeout(YU,()=>{s.message.destroy(),G(`Aborting download, socket timed out after ${YU} ms`)}),yield Mst(s,r);let o=s.message.headers["content-length"];if(o){let a=parseInt(o),c=tc(e);if(c!==a)throw new Error(`Incomplete download. Expected file size: ${a}, actual file size: ${c}`)}else G("Unable to validate download, no Content-Length header")})}i(ON,"downloadCacheHttpClient");function Kfe(t,e,r){return wi(this,void 0,void 0,function*(){var n;let s=yield Pc.promises.open(e,"w"),o=new Yl("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let c=(yield Hh("downloadCacheMetadata",()=>wi(this,void 0,void 0,function*(){return yield o.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 S=0;Swi(this,void 0,void 0,function*(){return yield Fst(o,t,S,P)}),"promiseGetter")})}u.reverse();let p=0,m=0,f=new LN(l);f.startDisplayTimer();let g=f.onProgress(),E=[],x,w=i(()=>wi(this,void 0,void 0,function*(){let S=yield Promise.race(Object.values(E));yield s.write(S.buffer,0,S.count,S.offset),p--,delete E[S.offset],m+=S.count,g({loadedBytes:m})}),"waitAndWrite");for(;x=u.pop();)E[x.offset]=x.promiseGetter(),p++,p>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)&&(yield w());for(;p>0;)yield w()}finally{o.dispose(),yield s.close()}})}i(Kfe,"downloadCacheHttpClientConcurrent");function Fst(t,e,r,n){return wi(this,void 0,void 0,function*(){let o=0;for(;;)try{let c=yield Zfe(3e4,Ust(t,e,r,n));if(typeof c=="string")throw new Error("downloadSegmentRetry failed due to timeout");return c}catch(a){if(o>=5)throw a;o++}})}i(Fst,"downloadSegmentRetry");function Ust(t,e,r,n){return wi(this,void 0,void 0,function*(){let s=yield Hh("downloadCachePart",()=>wi(this,void 0,void 0,function*(){return yield t.get(e,{Range:`bytes=${r}-${r+n-1}`})}));if(!s.readBodyBuffer)throw new Error("Expected HttpClientResponse to implement readBodyBuffer");return{offset:r,count:n,buffer:yield s.readBodyBuffer()}})}i(Ust,"downloadSegment");function Xfe(t,e,r){return wi(this,void 0,void 0,function*(){var n;let s=new $h(t,void 0,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}}),a=(n=(yield s.getProperties()).contentLength)!==null&&n!==void 0?n:-1;if(a<0)G("Unable to determine content length, downloading file with http-client..."),yield ON(t,e);else{let c=Math.min(134217728,Wfe.constants.MAX_LENGTH),l=new LN(a),u=Pc.openSync(e,"w");try{l.startDisplayTimer();let d=new AbortController,p=d.signal;for(;!l.isDone();){let m=l.segmentOffset+l.segmentSize,f=Math.min(c,a-m);l.nextSegment(f);let g=yield Zfe(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(m,f,{abortSignal:p,concurrency:r.downloadConcurrency,onProgress:l.onProgress()}));if(g==="timeout")throw d.abort(),new Error("Aborting cache download as the download time exceeded the timeout.");Buffer.isBuffer(g)&&Pc.writeFileSync(u,g)}}finally{l.stopDisplayTimer(),Pc.closeSync(u)}}})}i(Xfe,"downloadCacheStorageSDK");var Zfe=i((t,e)=>wi(void 0,void 0,void 0,function*(){let r,n=new Promise(s=>{r=setTimeout(()=>s("timeout"),t)});return Promise.race([e,n]).then(s=>(clearTimeout(r),s))}),"promiseWithTimeout");function Iz(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),G(`Use Azure SDK: ${e.useAzureSdk}`),G(`Upload concurrency: ${e.uploadConcurrency}`),G(`Upload chunk size: ${e.uploadChunkSize}`),e}i(Iz,"getUploadOptions");function eAe(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),G(`Use Azure SDK: ${e.useAzureSdk}`),G(`Download concurrency: ${e.downloadConcurrency}`),G(`Request timeout (ms): ${e.timeoutInMs}`),G(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),G(`Segment download timeout (ms): ${e.segmentTimeoutInMs}`),G(`Lookup only: ${e.lookupOnly}`),e}i(eAe,"getDownloadOptions");function xz(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!n&&!s}i(xz,"isGhes");function SI(){return xz()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}i(SI,"getCacheServiceVersion");function MN(){let t=SI();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}`)}}i(MN,"getCacheServiceURL");var sAe=D(nAe(),1);function FN(){return`@actions/cache-${sAe.version}`}i(FN,"getUserAgentString");var Zs=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function BI(t){let e=MN();if(!e)throw new Error("Cache Service Url not found, unable to restore cache.");let r=`${e}_apis/artifactcache/${t}`;return G(`Resource Url: ${r}`),r}i(BI,"getCacheApiUrl");function Gst(t,e){return`${t};api-version=${e}`}i(Gst,"createAcceptHeader");function Hst(){return{headers:{Accept:Gst("application/json","6.0-preview.1")}}}i(Hst,"getRequestOptions");function wz(){let t=process.env.ACTIONS_RUNTIME_TOKEN||"",e=new Ah(t);return new Yl(FN(),[e],Hst())}i(wz,"createHttpClient");function aAe(t,e,r){return Zs(this,void 0,void 0,function*(){let n=wz(),s=fh(e,r?.compressionMethod,r?.enableCrossOsArchive),o=`cache?keys=${encodeURIComponent(t.join(","))}&version=${s}`,a=yield bI("getCacheEntry",()=>Zs(this,void 0,void 0,function*(){return n.getJson(BI(o))}));if(a.statusCode===204)return cm()&&(yield zst(t[0],n,s)),null;if(!kN(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode}`);let c=a.result,l=c?.archiveLocation;if(!l)throw new Error("Cache not found.");return Bo(l),G("Cache Result:"),G(JSON.stringify(c)),c})}i(aAe,"getCacheEntry");function zst(t,e,r){return Zs(this,void 0,void 0,function*(){let n=`caches?key=${encodeURIComponent(t)}`,s=yield bI("listCache",()=>Zs(this,void 0,void 0,function*(){return e.getJson(BI(n))}));if(s.statusCode===200){let o=s.result,a=o?.totalCount;if(a&&a>0){G(`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 o?.artifactCaches||[])G(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(zst,"printCachesListForDiagnostics");function bz(t,e,r){return Zs(this,void 0,void 0,function*(){let n=new iAe.URL(t),s=eAe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Xfe(t,e,s):s.concurrentBlobDownloads?yield Kfe(t,e,s):yield ON(t,e):yield ON(t,e)})}i(bz,"downloadCache");function cAe(t,e,r){return Zs(this,void 0,void 0,function*(){let n=wz(),s=fh(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield bI("reserveCache",()=>Zs(this,void 0,void 0,function*(){return n.postJson(BI("caches"),o)}))})}i(cAe,"reserveCache");function oAe(t,e){return`bytes ${t}-${e}/*`}i(oAe,"getContentRange");function Vst(t,e,r,n,s){return Zs(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${oAe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":oAe(n,s)},a=yield Hh(`uploadChunk (start: ${n}, end: ${s})`,()=>Zs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!kN(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(Vst,"uploadChunk");function Yst(t,e,r,n){return Zs(this,void 0,void 0,function*(){let s=tc(r),o=BI(`caches/${e.toString()}`),a=zh.openSync(r,"r"),c=Iz(n),l=KU("uploadConcurrency",c.uploadConcurrency),u=KU("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];G("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Zs(this,void 0,void 0,function*(){for(;pzh.createReadStream(r,{fd:a,start:f,end:g,autoClose:!1}).on("error",E=>{throw new Error(`Cache upload failed because file read failed with ${E.message}`)}),f,g)}})))}finally{zh.closeSync(a)}})}i(Yst,"uploadFile");function Wst(t,e,r){return Zs(this,void 0,void 0,function*(){let n={size:r};return yield bI("commitCache",()=>Zs(this,void 0,void 0,function*(){return t.postJson(BI(`caches/${e.toString()}`),n)}))})}i(Wst,"commitCache");function Sz(t,e,r,n){return Zs(this,void 0,void 0,function*(){if(Iz(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Vfe(r,e,n)}else{let o=wz();G("Upload cache"),yield Yst(o,t,e,n),G("Commiting cache");let a=tc(e);Ke(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield Wst(o,t,a);if(!kN(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);Ke("Cache saved successfully")}})}i(Sz,"saveCache");var rhe=D(jAe(),1),Fr=D(Mr(),1),Uo=D(Mr(),1),Vm=D(Mr(),1),Ym=D(Mr(),1),Wm=D(Mr(),1);var E3=D(Mr(),1),C3=D(Mr(),1),ZAe=D(Mr(),1),ehe=D(Mr(),1),the=D(Mr(),1);var h3=D(Mr(),1),g3=D(Mr(),1),JAe=D(Mr(),1),KAe=D(Mr(),1),XAe=D(Mr(),1);var y3=class extends XAe.MessageType{static{i(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,KAe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,JAe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posbT,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,ehe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ZAe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??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,Ym.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Vm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??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,Ym.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Vm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??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,Ym.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Vm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posT3.fromJson(s,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let r=P3.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",r).then(s=>v3.fromJson(s,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let r=_3.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",r).then(s=>Q3.fromJson(s,{ignoreUnknownFields:!0}))}};function nhe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Bo(r),Bo(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}i(nhe,"maskSigUrl");function she(t){if(typeof t!="object"||t===null){G("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&nhe(t.signed_upload_url),"signed_download_url"in t&&typeof t.signed_download_url=="string"&&nhe(t.signed_download_url)}i(she,"maskSecretUrls");var BT=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},D3=class{static{i(this,"CacheServiceClient")}constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let o=_le();this.baseUrl=MN(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Yl(e,[new Ah(o)])}request(e,r,n,s){return BT(this,void 0,void 0,function*(){let o=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;G(`[Request] ${r} ${o}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>BT(this,void 0,void 0,function*(){return this.httpClient.post(o,JSON.stringify(s),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return BT(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r0&&Qr(`You've hit a rate limit, your rate limit will reset in ${p} seconds`)}throw new wI(`Rate limited: ${n}`)}}catch(c){if(c instanceof SyntaxError&&G(`Raw Body: ${s}`),c instanceof qm||c instanceof wI)throw c;if(Gh.isNetworkErrorCode(c?.code))throw new Gh(c?.code);o=!0,n=c.message}if(!o)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);Ke(`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?[Ir.BadGateway,Ir.GatewayTimeout,Ir.InternalServerError,Ir.ServiceUnavailable].includes(e):!1}sleep(e){return BT(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 k3(t){let e=new D3(FN(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new ST(e)}i(k3,"internalCacheTwirpClient");var RT=require("fs"),qo=D(require("path"),1);var cu=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},kd=process.platform==="win32";function sat(){return cu(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield vle(),e=Rle;if(t)return{path:t,type:To.GNU};if((0,RT.existsSync)(e))return{path:e,type:To.BSD};break}case"darwin":{let t=yield Gs("gtar",!1);return t?{path:t,type:To.GNU}:{path:yield Gs("tar",!0),type:To.BSD}}default:break}return{path:yield Gs("tar",!0),type:To.GNU}})}i(sat,"getTarPath");function oat(t,e,r){return cu(this,arguments,void 0,function*(n,s,o,a=""){let c=[`"${n.path}"`],l=yd(s),u="cache.tar",d=ohe(),p=n.type===To.BSD&&s!==ys.Gzip&&kd;switch(o){case"create":c.push("--posix","-cf",p?u:l.replace(new RegExp(`\\${qo.sep}`,"g"),"/"),"--exclude",p?u:l.replace(new RegExp(`\\${qo.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${qo.sep}`,"g"),"/"),"--files-from",jU);break;case"extract":c.push("-xf",p?u:a.replace(new RegExp(`\\${qo.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${qo.sep}`,"g"),"/"));break;case"list":c.push("-tf",p?u:a.replace(new RegExp(`\\${qo.sep}`,"g"),"/"),"-P");break}if(n.type===To.GNU)switch(process.platform){case"win32":c.push("--force-local");break;case"darwin":c.push("--delay-directory-restore");break}return c})}i(oat,"getTarArgs");function L3(t,e){return cu(this,arguments,void 0,function*(r,n,s=""){let o,a=yield sat(),c=yield oat(a,r,n,s),l=n!=="create"?yield iat(a,r,s):yield aat(a,r),u=a.type===To.BSD&&r!==ys.Gzip&&kd;return u&&n!=="create"?o=[[...l].join(" "),[...c].join(" ")]:o=[[...c].join(" "),[...l].join(" ")],u?o:[o.join(" ")]})}i(L3,"getCommands");function ohe(){var t;return(t=process.env.GITHUB_WORKSPACE)!==null&&t!==void 0?t:process.cwd()}i(ohe,"getWorkingDirectory");function iat(t,e,r){return cu(this,void 0,void 0,function*(){let n=t.type===To.BSD&&e!==ys.Gzip&&kd;switch(e){case ys.Zstd:return n?["zstd -d --long=30 --force -o",IC,r.replace(new RegExp(`\\${qo.sep}`,"g"),"/")]:["--use-compress-program",kd?'"zstd -d --long=30"':"unzstd --long=30"];case ys.ZstdWithoutLong:return n?["zstd -d --force -o",IC,r.replace(new RegExp(`\\${qo.sep}`,"g"),"/")]:["--use-compress-program",kd?'"zstd -d"':"unzstd"];default:return["-z"]}})}i(iat,"getDecompressionProgram");function aat(t,e){return cu(this,void 0,void 0,function*(){let r=yd(e),n=t.type===To.BSD&&e!==ys.Gzip&&kd;switch(e){case ys.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${qo.sep}`,"g"),"/"),IC]:["--use-compress-program",kd?'"zstd -T0 --long=30"':"zstdmt --long=30"];case ys.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${qo.sep}`,"g"),"/"),IC]:["--use-compress-program",kd?'"zstd -T0"':"zstdmt"];default:return["-z"]}})}i(aat,"getCompressionProgram");function O3(t,e){return cu(this,void 0,void 0,function*(){for(let r of t)try{yield ud(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}`)}})}i(O3,"execCommands");function qI(t,e){return cu(this,void 0,void 0,function*(){let r=yield L3(e,"list",t);yield O3(r)})}i(qI,"listTar");function M3(t,e){return cu(this,void 0,void 0,function*(){let r=ohe();yield am(r);let n=yield L3(e,"extract",t);yield O3(n)})}i(M3,"extractTar");function F3(t,e,r){return cu(this,void 0,void 0,function*(){(0,RT.writeFileSync)(qo.join(t,jU),e.join(` -`));let n=yield L3(r,"create");yield O3(n,t)})}i(F3,"createTar");var cg=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},ya=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},ag=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},NT=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function ihe(t){if(!t||t.length===0)throw new ya("Path Validation Error: At least one directory or file path is required")}i(ihe,"checkPaths");function U3(t){if(t.length>512)throw new ya(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ya(`Key Validation Error: ${t} cannot contain commas.`)}i(U3,"checkKey");function q3(){return SI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(q3,"isFeatureAvailable");function ahe(t,e,r,n){return cg(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=SI();return G(`Cache service version: ${u}`),ihe(s),u==="v2"?yield lat(s,o,a,c,l):yield cat(s,o,a,c,l)})}i(ahe,"restoreCache");function cat(t,e,r,n){return cg(this,arguments,void 0,function*(s,o,a,c,l=!1){a=a||[];let u=[o,...a];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new ya("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of u)U3(m);let d=yield bC(),p="";try{let m=yield aAe(u,s,{compressionMethod:d,enableCrossOsArchive:l});if(!m?.archiveLocation)return;if(c?.lookupOnly)return Ke("Lookup only - skipping download"),m.cacheKey;p=$I.join(yield xC(),yd(d)),G(`Archive Path: ${p}`),yield bz(m.archiveLocation,p,c),cm()&&(yield qI(p,d));let f=tc(p);return Ke(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield M3(p,d),Ke("Cache restored successfully"),m.cacheKey}catch(m){let f=m;if(f.name===ya.name)throw m;f instanceof rc&&typeof f.statusCode=="number"&&f.statusCode>=500?nh(`Failed to restore: ${m.message}`):Qr(`Failed to restore: ${m.message}`)}finally{try{yield wC(p)}catch(m){G(`Failed to delete archive: ${m}`)}}})}i(cat,"restoreCacheV1");function lat(t,e,r,n){return cg(this,arguments,void 0,function*(s,o,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[o,...a];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new ya("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of u)U3(p);let d="";try{let p=k3(),m=yield bC(),f={key:o,restoreKeys:a,version:fh(s,m,l)},g=yield p.GetCacheEntryDownloadURL(f);if(!g.ok){G(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?Ke(`Cache hit for restore-key: ${g.matchedKey}`):Ke(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return Ke("Lookup only - skipping download"),g.matchedKey;d=$I.join(yield xC(),yd(m)),G(`Archive path: ${d}`),G(`Starting download of archive to: ${d}`),yield bz(g.signedDownloadUrl,d,c);let x=tc(d);return Ke(`Cache Size: ~${Math.round(x/(1024*1024))} MB (${x} B)`),cm()&&(yield qI(d,m)),yield M3(d,m),Ke("Cache restored successfully"),g.matchedKey}catch(p){let m=p;if(m.name===ya.name)throw p;m instanceof rc&&typeof m.statusCode=="number"&&m.statusCode>=500?nh(`Failed to restore: ${p.message}`):Qr(`Failed to restore: ${p.message}`)}finally{try{d&&(yield wC(d))}catch(p){G(`Failed to delete archive: ${p}`)}}})}i(lat,"restoreCacheV2");function $3(t,e,r){return cg(this,arguments,void 0,function*(n,s,o,a=!1){let c=SI();return G(`Cache service version: ${c}`),ihe(n),U3(s),c==="v2"?yield dat(n,s,o,a):yield uat(n,s,o,a)})}i($3,"saveCache");function uat(t,e,r){return cg(this,arguments,void 0,function*(n,s,o,a=!1){var c,l,u,d,p;let m=yield bC(),f=-1,g=yield JU(n);if(G("Cache Paths:"),G(`${JSON.stringify(g)}`),g.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 xC(),x=$I.join(E,yd(m));G(`Archive Path: ${x}`);try{yield F3(E,g,m),cm()&&(yield qI(x,m));let w=10*1024*1024*1024,S=tc(x);if(G(`File Size: ${S}`),S>w&&!xz())throw new Error(`Cache size of ~${Math.round(S/(1024*1024))} MB (${S} B) is over the 10GB limit, not saving cache.`);G("Reserving Cache");let P=yield cAe(s,n,{compressionMethod:m,enableCrossOsArchive:a,cacheSize:S});if(!((c=P?.result)===null||c===void 0)&&c.cacheId)f=(l=P?.result)===null||l===void 0?void 0:l.cacheId;else throw P?.statusCode===400?new Error((d=(u=P?.error)===null||u===void 0?void 0:u.message)!==null&&d!==void 0?d:`Cache size of ~${Math.round(S/(1024*1024))} MB (${S} B) is over the data cap limit, not saving cache.`):new ag(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(p=P?.error)===null||p===void 0?void 0:p.message}`);G(`Saving Cache (ID: ${f})`),yield Sz(f,x,"",o)}catch(w){let S=w;if(S.name===ya.name)throw w;S.name===ag.name?Ke(`Failed to save: ${S.message}`):S instanceof rc&&typeof S.statusCode=="number"&&S.statusCode>=500?nh(`Failed to save: ${S.message}`):Qr(`Failed to save: ${S.message}`)}finally{try{yield wC(x)}catch(w){G(`Failed to delete archive: ${w}`)}}return f})}i(uat,"saveCacheV1");function dat(t,e,r){return cg(this,arguments,void 0,function*(n,s,o,a=!1){o=Object.assign(Object.assign({},o),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let c=yield bC(),l=k3(),u=-1,d=yield JU(n);if(G("Cache Paths:"),G(`${JSON.stringify(d)}`),d.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 p=yield xC(),m=$I.join(p,yd(c));G(`Archive Path: ${m}`);try{yield F3(p,d,c),cm()&&(yield qI(m,c));let f=tc(m);G(`File Size: ${f}`),o.archiveSizeBytes=f,G("Reserving Cache");let g=fh(n,c,a),E={key:s,version:g},x;try{let P=yield l.CreateCacheEntry(E);if(!P.ok)throw P.message&&Qr(`Cache reservation failed: ${P.message}`),new Error(P.message||"Response was not ok");x=P.signedUploadUrl}catch(P){throw G(`Failed to reserve cache: ${P}`),new ag(`Unable to reserve cache with key ${s}, another job may be creating this cache.`)}G(`Attempting to upload cache located at: ${m}`),yield Sz(u,m,x,o);let w={key:s,version:g,sizeBytes:`${f}`},S=yield l.FinalizeCacheEntryUpload(w);if(G(`FinalizeCacheEntryUploadResponse: ${S.ok}`),!S.ok)throw S.message?new NT(S.message):new Error(`Unable to finalize cache with key ${s}, another job may be finalizing this cache.`);u=parseInt(S.entryId)}catch(f){let g=f;if(g.name===ya.name)throw f;g.name===ag.name?Ke(`Failed to save: ${g.message}`):g.name===NT.name?Qr(g.message):g instanceof rc&&typeof g.statusCode=="number"&&g.statusCode>=500?nh(`Failed to save: ${g.message}`):Qr(`Failed to save: ${g.message}`)}finally{try{yield wC(m)}catch(f){G(`Failed to delete archive: ${f}`)}}return u})}i(dat,"saveCacheV2");var che=D(require("util"),1);var lg=class t{static{i(this,"Cache")}opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e,this.ghaCacheKey=che.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform()),this.ghaNoCache=this.opts.ghaNoCache,this.cacheDir=H3.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform()),this.cachePath=H3.default.join(this.cacheDir,this.opts.cacheFile),TT.default.existsSync(this.cacheDir)||TT.default.mkdirSync(this.cacheDir,{recursive:!0})}async save(e,r){G(`Cache.save ${e}`);let n=this.copyToCache(e),s=await mU(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform());if(G(`Cache.save cached to hosted tool cache ${s}`),!this.ghaNoCache&&q3())if(r)try{G(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`),await $3([this.cacheDir],this.ghaCacheKey)}catch(o){Qr(`Failed to save cache: ${o}`)}else G(`Cache.save sending ${this.ghaCacheKey} to post state`),lm(t.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}));return n}async find(){try{let e=tae(this.opts.htcName,this.opts.htcVersion,this.platform());if(e)return Ke(`Restored from hosted tool cache ${e}`),this.copyToCache(`${e}/${this.opts.cacheFile}`);if(!this.ghaNoCache&&q3()){if(G("GitHub Actions cache feature available"),await ahe([this.cacheDir],this.ghaCacheKey))return Ke(`Restored ${this.ghaCacheKey} from GitHub Actions cache`),e=await mU(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform()),Ke(`Cached to hosted tool cache ${e}`),this.copyToCache(`${e}/${this.opts.cacheFile}`)}else this.ghaNoCache?Ke("GitHub Actions cache disabled"):Ke("GitHub Actions cache feature not available")}catch(e){Qr(`Failed to restore cache: ${e}`)}return""}static async post(){let e=noe(t.POST_CACHE_KEY);if(!e)return Ke("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{Ke(`Caching ${r.key} to GitHub Actions cache`),await $3([r.dir],r.key)}catch(n){Qr(`Failed to save cache: ${n}`)}return r}copyToCache(e){return Ke(`Copying ${e} to ${this.cachePath}`),TT.default.copyFileSync(e,this.cachePath),this.cachePath}platform(){let e=process.config.variables.arm_version;return`${G3.default.platform()}-${G3.default.arch()}${e?"v"+e:""}`}};var lhe=!!process.env.STATE_isPost;lhe||lm("isPost","true");async function uhe(t,e){if(lhe)e&&await e(),await XE("Post cache",async()=>{await lg.post()});else try{await t()}catch(r){roe(r.message)}}i(uhe,"run");var J4=D(require("path"),1);function Bhe(t){return typeof t>"u"||t===null}i(Bhe,"isNothing");function fat(t){return typeof t=="object"&&t!==null}i(fat,"isObject");function Aat(t){return Array.isArray(t)?t:Bhe(t)?[]:[t]}i(Aat,"toArray");function hat(t,e){var r,n,s,o;if(e)for(o=Object.keys(e),r=0,n=o.length;rTR(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}i(n,"getCanonicalizedHeadersString");function s(o){let a=BR(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=RR(o.url),u={};if(l){let d=[];for(let p in l)if(Object.prototype.hasOwnProperty.call(l,p)){let m=p.toLowerCase();u[m]=l[p],d.push(m)}d.sort();for(let p of d)c+=` +${p}:${decodeURIComponent(u[p])}`}return c}return i(s,"getCanonicalizedResourceString"),{name:Dtt,async sendRequest(o,a){return e(o),a(o)}}}i(Mq,"storageSharedKeyCredentialPolicy");var ktt="storageRequestFailureDetailsParserPolicy";function Vpe(){return{name:ktt,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}}}}i(Vpe,"storageRequestFailureDetailsParserPolicy");var Ype=require("node:crypto");var PR=class{static{i(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,Ype.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var vR="12.31.0",_R="2026-02-06";var QR="https://storage.azure.com/.default",Zl={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var da="",Fq="*",Ltt=1*1024*1024;var Ott=4*Ltt;var Wpe="AES256",jpe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Jpe=["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"],Kpe=["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"],Xpe="BlobUsesCustomerSpecifiedEncryption",Zpe="BlobDoesNotUseCustomerSpecifiedEncryption",eme=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function eu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(eu,"isPipelineLike");var oI=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Or(t,e={}){t||(t=new nr);let r=new oI([],e);return r._credential=t,r}i(Or,"newPipeline");function Mtt(t){let e=[Ftt,tme,Utt,qtt,$tt,Gtt,ztt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Htt(s));return{wrappedPolicies:fq(r),afterRetry:n}}}}i(Mtt,"processDownlevelPipeline");function Uq(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?Aq(e):Oq(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let o=`azsdk-js-azure-storage-blob/${vR}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;s=qC({...r,loggingOptions:{additionalAllowedHeaderNames:Jpe,additionalAllowedQueryParameters:Kpe,logger:CR.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:ER,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:kq,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:H2}),s.addPolicy(Gpe()),s.addPolicy(Hpe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Vpe()),s.addPolicy($pe());let c=Mtt(t);c&&s.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=qq(t);Oo(l)?s.addPolicy(Nh({credential:l,scopes:r.audience??QR,challengeCallbacks:{authorizeRequestOnChallenge:cR}}),{phase:"Sign"}):l instanceof wr&&s.addPolicy(Mq({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),t._corePipeline=s}return{...r,allowInsecureConnection:!0,httpClient:n,pipeline:s}}i(Uq,"getCoreClientOptions");function qq(t){if(t._credential)return t._credential;let e=new nr;for(let r of t.factories)if(Oo(r.credential))e=r.credential;else if(tme(r))return r;return e}i(qq,"getCredentialFromPipeline");function tme(t){return t instanceof wr?!0:t.constructor.name==="StorageSharedKeyCredential"}i(tme,"isStorageSharedKeyCredential");function Ftt(t){return t instanceof nr?!0:t.constructor.name==="AnonymousCredential"}i(Ftt,"isAnonymousCredential");function Utt(t){return Oo(t.credential)}i(Utt,"isCoreHttpBearerTokenFactory");function qtt(t){return t instanceof eI?!0:t.constructor.name==="StorageBrowserPolicyFactory"}i(qtt,"isStorageBrowserPolicyFactory");function $tt(t){return t instanceof sI?!0:t.constructor.name==="StorageRetryPolicyFactory"}i($tt,"isStorageRetryPolicyFactory");function Gtt(t){return t.constructor.name==="TelemetryPolicyFactory"}i(Gtt,"isStorageTelemetryPolicyFactory");function Htt(t){return t.constructor.name==="InjectorPolicyFactory"}i(Htt,"isInjectorPolicyFactory");function ztt(t){let e=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"],r={sendRequest:i(async a=>({request:a,headers:a.headers.clone(),status:500}),"sendRequest")},n={log(a,c){},shouldLog(a){return!1}},o=t.create(r,n).constructor.name;return e.some(a=>o.startsWith(a))}i(ztt,"isCoreHttpPolicyFactory");var rme;(function(t){t.AES256="AES256"})(rme||(rme={}));var nme;(function(t){t.Backup="backup"})(nme||(nme={}));var sme;(function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"})(sme||(sme={}));var ome;(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"})(ome||(ome={}));var Uo={};rn(Uo,{AccessPolicy:()=>nrt,AppendBlobAppendBlockExceptionHeaders:()=>aH,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>lH,AppendBlobAppendBlockFromUrlHeaders:()=>cH,AppendBlobAppendBlockHeaders:()=>iH,AppendBlobCreateExceptionHeaders:()=>oH,AppendBlobCreateHeaders:()=>sH,AppendBlobSealExceptionHeaders:()=>dH,AppendBlobSealHeaders:()=>uH,ArrowConfiguration:()=>grt,ArrowField:()=>yrt,BlobAbortCopyFromURLExceptionHeaders:()=>vG,BlobAbortCopyFromURLHeaders:()=>PG,BlobAcquireLeaseExceptionHeaders:()=>AG,BlobAcquireLeaseHeaders:()=>fG,BlobBreakLeaseExceptionHeaders:()=>wG,BlobBreakLeaseHeaders:()=>xG,BlobChangeLeaseExceptionHeaders:()=>IG,BlobChangeLeaseHeaders:()=>CG,BlobCopyFromURLExceptionHeaders:()=>TG,BlobCopyFromURLHeaders:()=>NG,BlobCreateSnapshotExceptionHeaders:()=>SG,BlobCreateSnapshotHeaders:()=>bG,BlobDeleteExceptionHeaders:()=>Z$,BlobDeleteHeaders:()=>X$,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>lG,BlobDeleteImmutabilityPolicyHeaders:()=>cG,BlobDownloadExceptionHeaders:()=>j$,BlobDownloadHeaders:()=>kR,BlobFlatListSegment:()=>srt,BlobGetAccountInfoExceptionHeaders:()=>DG,BlobGetAccountInfoHeaders:()=>QG,BlobGetPropertiesExceptionHeaders:()=>K$,BlobGetPropertiesHeaders:()=>J$,BlobGetTagsExceptionHeaders:()=>OG,BlobGetTagsHeaders:()=>LG,BlobHierarchyListSegment:()=>crt,BlobItemInternal:()=>ort,BlobName:()=>irt,BlobPrefix:()=>lrt,BlobPropertiesInternal:()=>art,BlobQueryExceptionHeaders:()=>kG,BlobQueryHeaders:()=>OR,BlobReleaseLeaseExceptionHeaders:()=>gG,BlobReleaseLeaseHeaders:()=>hG,BlobRenewLeaseExceptionHeaders:()=>EG,BlobRenewLeaseHeaders:()=>yG,BlobServiceProperties:()=>iI,BlobServiceStatistics:()=>$q,BlobSetExpiryExceptionHeaders:()=>nG,BlobSetExpiryHeaders:()=>rG,BlobSetHttpHeadersExceptionHeaders:()=>oG,BlobSetHttpHeadersHeaders:()=>sG,BlobSetImmutabilityPolicyExceptionHeaders:()=>aG,BlobSetImmutabilityPolicyHeaders:()=>iG,BlobSetLegalHoldExceptionHeaders:()=>dG,BlobSetLegalHoldHeaders:()=>uG,BlobSetMetadataExceptionHeaders:()=>mG,BlobSetMetadataHeaders:()=>pG,BlobSetTagsExceptionHeaders:()=>FG,BlobSetTagsHeaders:()=>MG,BlobSetTierExceptionHeaders:()=>_G,BlobSetTierHeaders:()=>LR,BlobStartCopyFromURLExceptionHeaders:()=>RG,BlobStartCopyFromURLHeaders:()=>BG,BlobTag:()=>trt,BlobTags:()=>cI,BlobUndeleteExceptionHeaders:()=>tG,BlobUndeleteHeaders:()=>eG,Block:()=>urt,BlockBlobCommitBlockListExceptionHeaders:()=>IH,BlockBlobCommitBlockListHeaders:()=>CH,BlockBlobGetBlockListExceptionHeaders:()=>wH,BlockBlobGetBlockListHeaders:()=>xH,BlockBlobPutBlobFromUrlExceptionHeaders:()=>AH,BlockBlobPutBlobFromUrlHeaders:()=>fH,BlockBlobStageBlockExceptionHeaders:()=>gH,BlockBlobStageBlockFromURLExceptionHeaders:()=>EH,BlockBlobStageBlockFromURLHeaders:()=>yH,BlockBlobStageBlockHeaders:()=>hH,BlockBlobUploadExceptionHeaders:()=>mH,BlockBlobUploadHeaders:()=>pH,BlockList:()=>jq,BlockLookupList:()=>Wq,ClearRange:()=>prt,ContainerAcquireLeaseExceptionHeaders:()=>D$,ContainerAcquireLeaseHeaders:()=>Q$,ContainerBreakLeaseExceptionHeaders:()=>U$,ContainerBreakLeaseHeaders:()=>F$,ContainerChangeLeaseExceptionHeaders:()=>$$,ContainerChangeLeaseHeaders:()=>q$,ContainerCreateExceptionHeaders:()=>f$,ContainerCreateHeaders:()=>m$,ContainerDeleteExceptionHeaders:()=>y$,ContainerDeleteHeaders:()=>g$,ContainerFilterBlobsExceptionHeaders:()=>_$,ContainerFilterBlobsHeaders:()=>v$,ContainerGetAccessPolicyExceptionHeaders:()=>x$,ContainerGetAccessPolicyHeaders:()=>I$,ContainerGetAccountInfoExceptionHeaders:()=>W$,ContainerGetAccountInfoHeaders:()=>Y$,ContainerGetPropertiesExceptionHeaders:()=>h$,ContainerGetPropertiesHeaders:()=>A$,ContainerItem:()=>Xtt,ContainerListBlobFlatSegmentExceptionHeaders:()=>H$,ContainerListBlobFlatSegmentHeaders:()=>G$,ContainerListBlobHierarchySegmentExceptionHeaders:()=>V$,ContainerListBlobHierarchySegmentHeaders:()=>z$,ContainerProperties:()=>Ztt,ContainerReleaseLeaseExceptionHeaders:()=>L$,ContainerReleaseLeaseHeaders:()=>k$,ContainerRenameExceptionHeaders:()=>N$,ContainerRenameHeaders:()=>R$,ContainerRenewLeaseExceptionHeaders:()=>M$,ContainerRenewLeaseHeaders:()=>O$,ContainerRestoreExceptionHeaders:()=>B$,ContainerRestoreHeaders:()=>S$,ContainerSetAccessPolicyExceptionHeaders:()=>b$,ContainerSetAccessPolicyHeaders:()=>w$,ContainerSetMetadataExceptionHeaders:()=>C$,ContainerSetMetadataHeaders:()=>E$,ContainerSubmitBatchExceptionHeaders:()=>P$,ContainerSubmitBatchHeaders:()=>T$,CorsRule:()=>jtt,DelimitedTextConfiguration:()=>Art,FilterBlobItem:()=>ert,FilterBlobSegment:()=>aI,GeoReplication:()=>Ktt,JsonTextConfiguration:()=>hrt,KeyInfo:()=>Hq,ListBlobsFlatSegmentResponse:()=>Vq,ListBlobsHierarchySegmentResponse:()=>Yq,ListContainersSegmentResponse:()=>Gq,Logging:()=>Vtt,Metrics:()=>Wtt,PageBlobClearPagesExceptionHeaders:()=>zG,PageBlobClearPagesHeaders:()=>HG,PageBlobCopyIncrementalExceptionHeaders:()=>nH,PageBlobCopyIncrementalHeaders:()=>rH,PageBlobCreateExceptionHeaders:()=>qG,PageBlobCreateHeaders:()=>UG,PageBlobGetPageRangesDiffExceptionHeaders:()=>KG,PageBlobGetPageRangesDiffHeaders:()=>JG,PageBlobGetPageRangesExceptionHeaders:()=>jG,PageBlobGetPageRangesHeaders:()=>WG,PageBlobResizeExceptionHeaders:()=>ZG,PageBlobResizeHeaders:()=>XG,PageBlobUpdateSequenceNumberExceptionHeaders:()=>tH,PageBlobUpdateSequenceNumberHeaders:()=>eH,PageBlobUploadPagesExceptionHeaders:()=>GG,PageBlobUploadPagesFromURLExceptionHeaders:()=>YG,PageBlobUploadPagesFromURLHeaders:()=>VG,PageBlobUploadPagesHeaders:()=>$G,PageList:()=>DR,PageRange:()=>drt,QueryFormat:()=>frt,QueryRequest:()=>Jq,QuerySerialization:()=>mrt,RetentionPolicy:()=>Ytt,ServiceFilterBlobsExceptionHeaders:()=>p$,ServiceFilterBlobsHeaders:()=>d$,ServiceGetAccountInfoExceptionHeaders:()=>c$,ServiceGetAccountInfoHeaders:()=>a$,ServiceGetPropertiesExceptionHeaders:()=>e$,ServiceGetPropertiesHeaders:()=>Zq,ServiceGetStatisticsExceptionHeaders:()=>r$,ServiceGetStatisticsHeaders:()=>t$,ServiceGetUserDelegationKeyExceptionHeaders:()=>i$,ServiceGetUserDelegationKeyHeaders:()=>o$,ServiceListContainersSegmentExceptionHeaders:()=>s$,ServiceListContainersSegmentHeaders:()=>n$,ServiceSetPropertiesExceptionHeaders:()=>Xq,ServiceSetPropertiesHeaders:()=>Kq,ServiceSubmitBatchExceptionHeaders:()=>u$,ServiceSubmitBatchHeaders:()=>l$,SignedIdentifier:()=>rrt,StaticWebsite:()=>Jtt,StorageError:()=>K,UserDelegationKey:()=>zq});var iI={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"}}}}},Vtt={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"}}}}},Ytt={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"}}}}},Wtt={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"}}}}},jtt={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"}}}}},Jtt={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"}}}}},K={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"}}}}},$q={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},Ktt={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"}}}}},Gq={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"}}}}},Xtt={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"}}}}}}},Ztt={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"}}}}},Hq={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"}}}}},zq={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"}}}}},aI={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"}}}}},ert={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"}}}}},cI={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"}}}}}}},trt={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"}}}}},rrt={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"}}}}},nrt={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"}}}}},Vq={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"}}}}},srt={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"}}}}}}},ort={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"}}}}},irt={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"}}}}},art={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"}}}}},Yq={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"}}}}},crt={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"}}}}}}},lrt={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},Wq={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"}}}}}}},jq={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"}}}}}}},urt={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"}}}}},DR={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"}}}}},drt={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"}}}}},prt={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"}}}}},Jq={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"}}}}},mrt={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},frt={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"}}}}}}},Art={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"}}}}},hrt={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},grt={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"}}}}}}},yrt={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"}}}}},Kq={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"}}}}},Xq={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Zq={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"}}}}},e$={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},t$={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"}}}}},r$={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},n$={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"}}}}},s$={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},o$={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"}}}}},i$={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},a$={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"}}}}},c$={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},l$={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"}}}}},u$={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},d$={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"}}}}},p$={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},m$={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"}}}}},f$={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},A$={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"}}}}},h$={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},g$={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"}}}}},y$={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},E$={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"}}}}},C$={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},I$={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"}}}}},x$={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},w$={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"}}}}},b$={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},S$={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"}}}}},B$={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},R$={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"}}}}},N$={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},T$={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"}}}}},P$={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},v$={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"}}}}},_$={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Q$={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"}}}}},D$={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},k$={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"}}}}},L$={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},O$={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"}}}}},M$={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},F$={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"}}}}},U$={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},q$={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"}}}}},$$={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},G$={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"}}}}},H$={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},z$={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"}}}}},V$={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Y$={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"}}}}},W$={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kR={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"}}}}},j$={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},J$={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"}}}}},K$={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},X$={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"}}}}},Z$={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eG={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"}}}}},tG={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rG={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"}}}}},nG={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sG={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"}}}}},oG={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iG={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"]}}}}},aG={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cG={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"}}}}},lG={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uG={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"}}}}},pG={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"}}}}},mG={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fG={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"}}}}},AG={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hG={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"}}}}},gG={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yG={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"}}}}},EG={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CG={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"}}}}},IG={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xG={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"}}}}},wG={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bG={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"}}}}},SG={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BG={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"}}}}},RG={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"}}}}},NG={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"}}}}},TG={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"}}}}},PG={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"}}}}},vG={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LR={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"}}}}},_G={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QG={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"}}}}},DG={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},OR={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"}}}}},kG={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LG={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"}}}}},OG={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MG={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"}}}}},FG={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},UG={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"}}}}},qG={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$G={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"}}}}},GG={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HG={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"}}}}},zG={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VG={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"}}}}},YG={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"}}}}},WG={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"}}}}},jG={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JG={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"}}}}},KG={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},XG={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"}}}}},ZG={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eH={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"}}}}},tH={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rH={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"}}}}},nH={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sH={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"}}}}},oH={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iH={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"}}}}},aH={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cH={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"}}}}},lH={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"}}}}},uH={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"}}}}},pH={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"}}}}},mH={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fH={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"}}}}},AH={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"}}}}},hH={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"}}}}},gH={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yH={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"}}}}},EH={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"}}}}},CH={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"}}}}},IH={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xH={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"}}}}},wH={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var pc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},ime={parameterPath:"blobServiceProperties",mapper:iI},Ci={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},Z={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},lI={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Ii={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ee={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},te={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},re={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"}}},ame={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},uI={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},dI={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},mc={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},fc={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},cme={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},lme={parameterPath:"keyInfo",mapper:Hq},ume={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},kh={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},MR={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},FR={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},yn={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},UR={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},qR={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},$R={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},En={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Yn={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},bH={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},dme={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},pme={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},it={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},et={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},tt={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},GR={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},SH={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},mme={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},HR={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},fme={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},Ame={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},hme={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},gme={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},yme={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},xi={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},zR={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},VR={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},YR={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},WR={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Nd={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},jR={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},JR={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},KR={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},XR={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},ZR={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},BH={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"},RH={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},Eme={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},ws={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},Ac={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},_m={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},Cme={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},Ime={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},br={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},Sr={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},Br={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},gt={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},yt={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},pt={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},xme={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},wme={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},bme={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Sme={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},Bme={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},hc={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},gc={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},yc={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},Ec={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},Cc={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},Ic={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},NH={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},pa={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},ma={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},Rme={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Nme={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},Kr={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},Tme={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},tu={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"]}}},TH={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},xc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},wc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},bc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},Sc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},eN={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},Qm={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},fa={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},Pme={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},Bc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},vme={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},ru={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},nu={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},tN={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},su={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},_me={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Qme={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},Dme={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},kme={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Lme={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"]}}},Ome={parameterPath:["options","queryRequest"],mapper:Jq},Mme={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},PH={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},vH={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},_H={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},QH={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},DH={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},Fme={parameterPath:["options","tags"],mapper:cI},wi={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},Rc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},Ume={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},kH={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},LH={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},Dm={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},km={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},Lm={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},rN={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},OH={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},nN={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},sN={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},oN={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},qme={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},Lh={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},$me={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},Oh={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},Gme={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},MH={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Hme={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},zme={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},Vme={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},Yme={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Wme={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},FH={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},UH={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},iN={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},aN={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},jme={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},qH={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},Jme={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},$H={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},GH={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},Kme={parameterPath:"blocks",mapper:Wq},HH={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Xme={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var cN=class{static{i(this,"ServiceImpl")}client;constructor(e){this.client=e}setProperties(e,r){return this.client.sendOperationRequest({blobServiceProperties:e,options:r},Ert)}getProperties(e){return this.client.sendOperationRequest({options:e},Crt)}getStatistics(e){return this.client.sendOperationRequest({options:e},Irt)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},xrt)}getUserDelegationKey(e,r){return this.client.sendOperationRequest({keyInfo:e,options:r},wrt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},brt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},Srt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},Brt)}},Td=Mo(Uo,!0),Ert={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:Kq},default:{bodyMapper:K,headersMapper:Xq}},requestBody:ime,queryParameters:[lI,Ii,ee],urlParameters:[Z],headerParameters:[pc,Ci,te,re],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Td},Crt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:iI,headersMapper:Zq},default:{bodyMapper:K,headersMapper:e$}},queryParameters:[lI,Ii,ee],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Td},Irt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:$q,headersMapper:t$},default:{bodyMapper:K,headersMapper:r$}},queryParameters:[lI,ee,ame],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Td},xrt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Gq,headersMapper:n$},default:{bodyMapper:K,headersMapper:s$}},queryParameters:[ee,uI,dI,mc,fc,cme],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Td},wrt={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:zq,headersMapper:o$},default:{bodyMapper:K,headersMapper:i$}},requestBody:lme,queryParameters:[lI,ee,ume],urlParameters:[Z],headerParameters:[pc,Ci,te,re],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Td},brt={path:"/",httpMethod:"GET",responses:{200:{headersMapper:a$},default:{bodyMapper:K,headersMapper:c$}},queryParameters:[Ii,ee,kh],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Td},Srt={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:l$},default:{bodyMapper:K,headersMapper:u$}},requestBody:MR,queryParameters:[ee,FR],urlParameters:[Z],headerParameters:[Ci,te,re,yn,UR],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Td},Brt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:aI,headersMapper:d$},default:{bodyMapper:K,headersMapper:p$}},queryParameters:[ee,mc,fc,qR,$R],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Td};var lN=class{static{i(this,"ContainerImpl")}client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},Rrt)}getProperties(e){return this.client.sendOperationRequest({options:e},Nrt)}delete(e){return this.client.sendOperationRequest({options:e},Trt)}setMetadata(e){return this.client.sendOperationRequest({options:e},Prt)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},vrt)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},_rt)}restore(e){return this.client.sendOperationRequest({options:e},Qrt)}rename(e,r){return this.client.sendOperationRequest({sourceContainerName:e,options:r},Drt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},krt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},Lrt)}acquireLease(e){return this.client.sendOperationRequest({options:e},Ort)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},Mrt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},Frt)}breakLease(e){return this.client.sendOperationRequest({options:e},Urt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},qrt)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},$rt)}listBlobHierarchySegment(e,r){return this.client.sendOperationRequest({delimiter:e,options:r},Grt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Hrt)}},Cn=Mo(Uo,!0),Rrt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:m$},default:{bodyMapper:K,headersMapper:f$}},queryParameters:[ee,En],urlParameters:[Z],headerParameters:[te,re,me,Yn,bH,dme,pme],isXML:!0,serializer:Cn},Nrt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:A$},default:{bodyMapper:K,headersMapper:h$}},queryParameters:[ee,En],urlParameters:[Z],headerParameters:[te,re,me,it],isXML:!0,serializer:Cn},Trt={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:g$},default:{bodyMapper:K,headersMapper:y$}},queryParameters:[ee,En],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt],isXML:!0,serializer:Cn},Prt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:E$},default:{bodyMapper:K,headersMapper:C$}},queryParameters:[ee,En,GR],urlParameters:[Z],headerParameters:[te,re,me,Yn,it,et],isXML:!0,serializer:Cn},vrt={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:I$},default:{bodyMapper:K,headersMapper:x$}},queryParameters:[ee,En,SH],urlParameters:[Z],headerParameters:[te,re,me,it],isXML:!0,serializer:Cn},_rt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:w$},default:{bodyMapper:K,headersMapper:b$}},requestBody:mme,queryParameters:[ee,En,SH],urlParameters:[Z],headerParameters:[pc,Ci,te,re,bH,it,et,tt],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Cn},Qrt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:S$},default:{bodyMapper:K,headersMapper:B$}},queryParameters:[ee,En,HR],urlParameters:[Z],headerParameters:[te,re,me,fme,Ame],isXML:!0,serializer:Cn},Drt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:R$},default:{bodyMapper:K,headersMapper:N$}},queryParameters:[ee,En,hme],urlParameters:[Z],headerParameters:[te,re,me,gme,yme],isXML:!0,serializer:Cn},krt={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:T$},default:{bodyMapper:K,headersMapper:P$}},requestBody:MR,queryParameters:[ee,FR,En],urlParameters:[Z],headerParameters:[Ci,te,re,yn,UR],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Cn},Lrt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:aI,headersMapper:v$},default:{bodyMapper:K,headersMapper:_$}},queryParameters:[ee,mc,fc,qR,$R,En],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Cn},Ort={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Q$},default:{bodyMapper:K,headersMapper:D$}},queryParameters:[ee,En,xi],urlParameters:[Z],headerParameters:[te,re,me,et,tt,zR,VR,YR],isXML:!0,serializer:Cn},Mrt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:k$},default:{bodyMapper:K,headersMapper:L$}},queryParameters:[ee,En,xi],urlParameters:[Z],headerParameters:[te,re,me,et,tt,WR,Nd],isXML:!0,serializer:Cn},Frt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:O$},default:{bodyMapper:K,headersMapper:M$}},queryParameters:[ee,En,xi],urlParameters:[Z],headerParameters:[te,re,me,et,tt,Nd,jR],isXML:!0,serializer:Cn},Urt={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:F$},default:{bodyMapper:K,headersMapper:U$}},queryParameters:[ee,En,xi],urlParameters:[Z],headerParameters:[te,re,me,et,tt,JR,KR],isXML:!0,serializer:Cn},qrt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:q$},default:{bodyMapper:K,headersMapper:$$}},queryParameters:[ee,En,xi],urlParameters:[Z],headerParameters:[te,re,me,et,tt,Nd,XR,ZR],isXML:!0,serializer:Cn},$rt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Vq,headersMapper:G$},default:{bodyMapper:K,headersMapper:H$}},queryParameters:[ee,uI,dI,mc,fc,En,BH,RH],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Cn},Grt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Yq,headersMapper:z$},default:{bodyMapper:K,headersMapper:V$}},queryParameters:[ee,uI,dI,mc,fc,En,BH,RH,Eme],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Cn},Hrt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Y$},default:{bodyMapper:K,headersMapper:W$}},queryParameters:[Ii,ee,kh],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:Cn};var uN=class{static{i(this,"BlobImpl")}client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},zrt)}getProperties(e){return this.client.sendOperationRequest({options:e},Vrt)}delete(e){return this.client.sendOperationRequest({options:e},Yrt)}undelete(e){return this.client.sendOperationRequest({options:e},Wrt)}setExpiry(e,r){return this.client.sendOperationRequest({expiryOptions:e,options:r},jrt)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},Jrt)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Krt)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Xrt)}setLegalHold(e,r){return this.client.sendOperationRequest({legalHold:e,options:r},Zrt)}setMetadata(e){return this.client.sendOperationRequest({options:e},ent)}acquireLease(e){return this.client.sendOperationRequest({options:e},tnt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},rnt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},nnt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},snt)}breakLease(e){return this.client.sendOperationRequest({options:e},ont)}createSnapshot(e){return this.client.sendOperationRequest({options:e},int)}startCopyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},ant)}copyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},cnt)}abortCopyFromURL(e,r){return this.client.sendOperationRequest({copyId:e,options:r},lnt)}setTier(e,r){return this.client.sendOperationRequest({tier:e,options:r},unt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},dnt)}query(e){return this.client.sendOperationRequest({options:e},pnt)}getTags(e){return this.client.sendOperationRequest({options:e},mnt)}setTags(e){return this.client.sendOperationRequest({options:e},fnt)}},sr=Mo(Uo,!0),zrt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:kR},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:kR},default:{bodyMapper:K,headersMapper:j$}},queryParameters:[ee,ws,Ac],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,_m,Cme,Ime,br,Sr,Br,gt,yt,pt],isXML:!0,serializer:sr},Vrt={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:J$},default:{bodyMapper:K,headersMapper:K$}},queryParameters:[ee,ws,Ac],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,br,Sr,Br,gt,yt,pt],isXML:!0,serializer:sr},Yrt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:X$},default:{bodyMapper:K,headersMapper:Z$}},queryParameters:[ee,ws,Ac,wme],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,gt,yt,pt,xme],isXML:!0,serializer:sr},Wrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:eG},default:{bodyMapper:K,headersMapper:tG}},queryParameters:[ee,HR],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:sr},jrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:rG},default:{bodyMapper:K,headersMapper:nG}},queryParameters:[ee,bme],urlParameters:[Z],headerParameters:[te,re,me,Sme,Bme],isXML:!0,serializer:sr},Jrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:sG},default:{bodyMapper:K,headersMapper:oG}},queryParameters:[Ii,ee],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic],isXML:!0,serializer:sr},Krt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:iG},default:{bodyMapper:K,headersMapper:aG}},queryParameters:[ee,ws,Ac,NH],urlParameters:[Z],headerParameters:[te,re,me,tt,pa,ma],isXML:!0,serializer:sr},Xrt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:cG},default:{bodyMapper:K,headersMapper:lG}},queryParameters:[ee,ws,Ac,NH],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:sr},Zrt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:uG},default:{bodyMapper:K,headersMapper:dG}},queryParameters:[ee,ws,Ac,Rme],urlParameters:[Z],headerParameters:[te,re,me,Nme],isXML:!0,serializer:sr},ent={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:pG},default:{bodyMapper:K,headersMapper:mG}},queryParameters:[ee,GR],urlParameters:[Z],headerParameters:[te,re,me,Yn,it,et,tt,br,Sr,Br,gt,yt,pt,Kr],isXML:!0,serializer:sr},tnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:fG},default:{bodyMapper:K,headersMapper:AG}},queryParameters:[ee,xi],urlParameters:[Z],headerParameters:[te,re,me,et,tt,zR,VR,YR,gt,yt,pt],isXML:!0,serializer:sr},rnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:hG},default:{bodyMapper:K,headersMapper:gG}},queryParameters:[ee,xi],urlParameters:[Z],headerParameters:[te,re,me,et,tt,WR,Nd,gt,yt,pt],isXML:!0,serializer:sr},nnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:yG},default:{bodyMapper:K,headersMapper:EG}},queryParameters:[ee,xi],urlParameters:[Z],headerParameters:[te,re,me,et,tt,Nd,jR,gt,yt,pt],isXML:!0,serializer:sr},snt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:CG},default:{bodyMapper:K,headersMapper:IG}},queryParameters:[ee,xi],urlParameters:[Z],headerParameters:[te,re,me,et,tt,Nd,XR,ZR,gt,yt,pt],isXML:!0,serializer:sr},ont={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:xG},default:{bodyMapper:K,headersMapper:wG}},queryParameters:[ee,xi],urlParameters:[Z],headerParameters:[te,re,me,et,tt,JR,KR,gt,yt,pt],isXML:!0,serializer:sr},int={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:bG},default:{bodyMapper:K,headersMapper:SG}},queryParameters:[ee,Tme],urlParameters:[Z],headerParameters:[te,re,me,Yn,it,et,tt,br,Sr,Br,gt,yt,pt,Kr],isXML:!0,serializer:sr},ant={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:BG},default:{bodyMapper:K,headersMapper:RG}},queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,me,Yn,it,et,tt,gt,yt,pt,pa,ma,tu,TH,xc,wc,bc,Sc,eN,Qm,fa,Pme,Bc],isXML:!0,serializer:sr},cnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:NG},default:{bodyMapper:K,headersMapper:TG}},queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,me,Yn,it,et,tt,gt,yt,pt,pa,ma,Kr,tu,xc,wc,bc,Sc,Qm,fa,Bc,vme,ru,nu,tN,su],isXML:!0,serializer:sr},lnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:PG},default:{bodyMapper:K,headersMapper:vG}},queryParameters:[ee,_me,Dme],urlParameters:[Z],headerParameters:[te,re,me,it,Qme],isXML:!0,serializer:sr},unt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:LR},202:{headersMapper:LR},default:{bodyMapper:K,headersMapper:_G}},queryParameters:[ee,ws,Ac,kme],urlParameters:[Z],headerParameters:[te,re,me,it,pt,TH,Lme],isXML:!0,serializer:sr},dnt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:QG},default:{bodyMapper:K,headersMapper:DG}},queryParameters:[Ii,ee,kh],urlParameters:[Z],headerParameters:[te,re,me],isXML:!0,serializer:sr},pnt={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:OR},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:OR},default:{bodyMapper:K,headersMapper:kG}},requestBody:Ome,queryParameters:[ee,ws,Mme],urlParameters:[Z],headerParameters:[pc,Ci,te,re,it,et,tt,br,Sr,Br,gt,yt,pt],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:sr},mnt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:cI,headersMapper:LG},default:{bodyMapper:K,headersMapper:OG}},queryParameters:[ee,ws,Ac,PH],urlParameters:[Z],headerParameters:[te,re,me,it,pt,vH,_H,QH,DH],isXML:!0,serializer:sr},fnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:MG},default:{bodyMapper:K,headersMapper:FG}},requestBody:Fme,queryParameters:[ee,Ac,PH],urlParameters:[Z],headerParameters:[pc,Ci,te,re,it,pt,vH,_H,QH,DH,wi,Rc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:sr};var dN=class{static{i(this,"PageBlobImpl")}client;constructor(e){this.client=e}create(e,r,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:r,options:n},Ant)}uploadPages(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},hnt)}clearPages(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},gnt)}uploadPagesFromURL(e,r,n,s,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:r,contentLength:n,range:s,options:o},ynt)}getPageRanges(e){return this.client.sendOperationRequest({options:e},Ent)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},Cnt)}resize(e,r){return this.client.sendOperationRequest({blobContentLength:e,options:r},Int)}updateSequenceNumber(e,r){return this.client.sendOperationRequest({sequenceNumberAction:e,options:r},xnt)}copyIncremental(e,r){return this.client.sendOperationRequest({copySource:e,options:r},wnt)}},ou=Mo(Uo,!0),Ant={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:UG},default:{bodyMapper:K,headersMapper:qG}},queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,me,yn,Yn,it,et,tt,br,Sr,Br,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic,pa,ma,Kr,tu,fa,Bc,Ume,kH,LH],isXML:!0,serializer:ou},hnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:$G},default:{bodyMapper:K,headersMapper:GG}},requestBody:km,queryParameters:[ee,rN],urlParameters:[Z],headerParameters:[te,re,yn,it,et,tt,_m,br,Sr,Br,gt,yt,pt,Kr,wi,Rc,Dm,Lm,OH,nN,sN,oN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:ou},gnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:HG},default:{bodyMapper:K,headersMapper:zG}},queryParameters:[ee,rN],urlParameters:[Z],headerParameters:[te,re,me,yn,it,et,tt,_m,br,Sr,Br,gt,yt,pt,Kr,nN,sN,oN,qme],isXML:!0,serializer:ou},ynt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:VG},default:{bodyMapper:K,headersMapper:YG}},queryParameters:[ee,rN],urlParameters:[Z],headerParameters:[te,re,me,yn,it,et,tt,br,Sr,Br,gt,yt,pt,Kr,xc,wc,bc,Sc,ru,nu,su,OH,nN,sN,oN,Lh,$me,Oh,Gme],isXML:!0,serializer:ou},Ent={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:DR,headersMapper:WG},default:{bodyMapper:K,headersMapper:jG}},queryParameters:[ee,mc,fc,ws,MH],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,_m,gt,yt,pt],isXML:!0,serializer:ou},Cnt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:DR,headersMapper:JG},default:{bodyMapper:K,headersMapper:KG}},queryParameters:[ee,mc,fc,ws,MH,Hme],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,_m,gt,yt,pt,zme],isXML:!0,serializer:ou},Int={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:XG},default:{bodyMapper:K,headersMapper:ZG}},queryParameters:[Ii,ee],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,br,Sr,Br,gt,yt,pt,Kr,kH],isXML:!0,serializer:ou},xnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:eH},default:{bodyMapper:K,headersMapper:tH}},queryParameters:[Ii,ee],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,gt,yt,pt,LH,Vme],isXML:!0,serializer:ou},wnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:rH},default:{bodyMapper:K,headersMapper:nH}},queryParameters:[ee,Yme],urlParameters:[Z],headerParameters:[te,re,me,et,tt,gt,yt,pt,Qm],isXML:!0,serializer:ou};var pN=class{static{i(this,"AppendBlobImpl")}client;constructor(e){this.client=e}create(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},bnt)}appendBlock(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},Snt)}appendBlockFromUrl(e,r,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:r,options:n},Bnt)}seal(e){return this.client.sendOperationRequest({options:e},Rnt)}},mN=Mo(Uo,!0),bnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:sH},default:{bodyMapper:K,headersMapper:oH}},queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,me,yn,Yn,it,et,tt,br,Sr,Br,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic,pa,ma,Kr,fa,Bc,Wme],isXML:!0,serializer:mN},Snt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:iH},default:{bodyMapper:K,headersMapper:aH}},requestBody:km,queryParameters:[ee,FH],urlParameters:[Z],headerParameters:[te,re,yn,it,et,tt,br,Sr,Br,gt,yt,pt,Kr,wi,Rc,Dm,Lm,UH,iN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:mN},Bnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:cH},default:{bodyMapper:K,headersMapper:lH}},queryParameters:[ee,FH],urlParameters:[Z],headerParameters:[te,re,me,yn,it,et,tt,br,Sr,Br,gt,yt,pt,Kr,xc,wc,bc,Sc,ru,nu,su,wi,Lh,Oh,UH,iN,aN],isXML:!0,serializer:mN},Rnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:uH},default:{bodyMapper:K,headersMapper:dH}},queryParameters:[ee,jme],urlParameters:[Z],headerParameters:[te,re,me,it,et,tt,gt,yt,iN],isXML:!0,serializer:mN};var fN=class{static{i(this,"BlockBlobImpl")}client;constructor(e){this.client=e}upload(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},Nnt)}putBlobFromUrl(e,r,n){return this.client.sendOperationRequest({contentLength:e,copySource:r,options:n},Tnt)}stageBlock(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,body:n,options:s},Pnt)}stageBlockFromURL(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,sourceUrl:n,options:s},vnt)}commitBlockList(e,r){return this.client.sendOperationRequest({blocks:e,options:r},_nt)}getBlockList(e,r){return this.client.sendOperationRequest({listType:e,options:r},Qnt)}},Fh=Mo(Uo,!0),Nnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pH},default:{bodyMapper:K,headersMapper:mH}},requestBody:km,queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,yn,Yn,it,et,tt,br,Sr,Br,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic,pa,ma,Kr,tu,fa,Bc,wi,Rc,Dm,Lm,qH],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Fh},Tnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:fH},default:{bodyMapper:K,headersMapper:AH}},queryParameters:[ee],urlParameters:[Z],headerParameters:[te,re,me,yn,Yn,it,et,tt,br,Sr,Br,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic,Kr,tu,xc,wc,bc,Sc,eN,Qm,fa,ru,nu,tN,su,wi,qH,Jme],isXML:!0,serializer:Fh},Pnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:hH},default:{bodyMapper:K,headersMapper:gH}},requestBody:km,queryParameters:[ee,$H,GH],urlParameters:[Z],headerParameters:[te,re,yn,it,br,Sr,Br,Kr,wi,Rc,Dm,Lm],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Fh},vnt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:yH},default:{bodyMapper:K,headersMapper:EH}},queryParameters:[ee,$H,GH],urlParameters:[Z],headerParameters:[te,re,me,yn,it,br,Sr,Br,Kr,xc,wc,bc,Sc,ru,nu,su,Lh,Oh,aN],isXML:!0,serializer:Fh},_nt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:CH},default:{bodyMapper:K,headersMapper:IH}},requestBody:Kme,queryParameters:[ee,HH],urlParameters:[Z],headerParameters:[pc,Ci,te,re,Yn,it,et,tt,br,Sr,Br,gt,yt,pt,hc,gc,yc,Ec,Cc,Ic,pa,ma,Kr,tu,fa,Bc,wi,Rc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Fh},Qnt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:jq,headersMapper:xH},default:{bodyMapper:K,headersMapper:wH}},queryParameters:[ee,ws,HH,Xme],urlParameters:[Z],headerParameters:[te,re,me,it,pt],isXML:!0,serializer:Fh};var pI=class extends VC{static{i(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"},s="azsdk-js-azure-storage-blob/12.30.0",o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`,a={...n,...r,userAgentOptions:{userAgentPrefix:o},endpoint:r.endpoint??r.baseUri??"{url}"};super(a),this.url=e,this.version=r.version||"2026-02-06",this.service=new cN(this),this.container=new lN(this),this.blob=new uN(this),this.pageBlob=new dN(this),this.appendBlob=new pN(this),this.blockBlob=new fN(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var mI=class extends pI{static{i(this,"StorageContextClient")}async sendOperationRequest(e,r){let n={...r};return(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}")&&(n.path=""),super.sendOperationRequest(e,n)}};function efe(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=knt(r),e.pathname=r,e.toString()}i(efe,"escapeURLPath");function Dnt(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}i(Dnt,"getProxyUriFromDevConnString");function Om(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}i(Om,"getValueInConnString");function Mm(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=Dnt(t),t=jpe);let r=Om(t,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let n="",s="",o=Buffer.from("accountKey","base64"),a="";if(s=Om(t,"AccountName"),o=Buffer.from(Om(t,"AccountKey"),"base64"),!r){n=Om(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=Om(t,"EndpointSuffix"),!a)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${n}://${s}.blob.${a}`}if(s){if(o.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:s,accountKey:o,proxyUri:e}}else{let n=Om(t,"SharedAccessSignature"),s=Om(t,"AccountName");if(s||(s=WH(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:s,accountSas:n}}}i(Mm,"extractConnectionStringParts");function knt(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}i(knt,"escape");function an(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()}i(an,"appendToURLPath");function Uh(t,e,r){let n=new URL(t),s=encodeURIComponent(e),o=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!==s&&c.push(l)}return o&&c.push(`${s}=${o}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}i(Uh,"setURLParameter");function zH(t,e){return new URL(t).searchParams.get(e)??void 0}i(zH,"getURLParameter");function tfe(t){try{let e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}i(tfe,"getURLScheme");function fI(t,e){let r=new URL(t),n=r.search;return n?n+="&"+e:n=e,r.search=n,r.toString()}i(fI,"appendToURLQuery");function Nt(t,e=!0){let r=t.toISOString();return e?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}i(Nt,"truncatedISO8061Date");function Lnt(t){return Rt?Buffer.from(t).toString("base64"):btoa(t)}i(Lnt,"base64encode");function VH(t,e){t.length>42&&(t=t.slice(0,42));let o=t+Ont(e.toString(),48-t.length,"0");return Lnt(o)}i(VH,"generateBlockID");function Ont(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))}i(Ont,"padStart");function YH(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}i(YH,"iEqual");function WH(t){let e=new URL(t),r;try{return e.hostname.split(".")[1]==="blob"?r=e.hostname.split(".")[0]:AN(e)?r=e.pathname.split("/")[1]:r="",r}catch{throw new Error("Unable to extract accountName with provided information.")}}i(WH,"getAccountNameFromUrl");function AN(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&&eme.includes(t.port)}i(AN,"isIpEndpointStyle");function Pd(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("&")}i(Pd,"toBlobTagsString");function rfe(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}i(rfe,"toBlobTags");function hN(t){if(t===void 0)return;let e={};for(let r of t.blobTagSet)e[r.key]=r.value;return e}i(hN,"toTags");function jH(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.")}}i(jH,"toQuerySerialization");function gN(t){if(!t||"policy-id"in t)return;let e=[];for(let r in t){let n=r.split("_"),s="or-";n[0].startsWith(s)&&(n[0]=n[0].substring(s.length));let o={ruleId:n[1],replicationStatus:t[r]},a=e.findIndex(c=>c.policyId===n[0]);a>-1?e[a].rules.push(o):e.push({policyId:n[0],rules:[o]})}return e}i(gN,"parseObjectReplicationRecord");function qh(t){return t?t.scheme+" "+t.value:void 0}i(qh,"httpAuthorizationToString");function*JH(t){let e=[],r=[];t.pageRange&&(e=t.pageRange),t.clearRange&&(r=t.clearRange);let n=0,s=0;for(;n0&&n.length>0&&e.push(`${r}=${n}`))}};function AI(t,e,r){return hI(t,e,r).sasQueryParameters}i(AI,"generateBlobSASQueryParameters");function hI(t,e,r){let n=t.version?t.version:_R,s=e instanceof wr?e:void 0,o;if(s===void 0&&r!==void 0&&(o=new PR(r,e)),s===void 0&&o===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return s!==void 0?Unt(t,s):n>="2025-07-05"?Hnt(t,o):Gnt(t,o);if(n>="2018-11-09")return s!==void 0?Fnt(t,s):n>="2020-02-10"?$nt(t,o):qnt(t,o);if(n>="2015-04-05"){if(s!==void 0)return Mnt(t,s);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'.")}i(hI,"generateBlobSASQueryParametersInternal");function Mnt(t,e){if(t=Um(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=Nc.parse(t.permissions.toString()).toString():n=Tc.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Aa(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(` +`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new ha(t.version,o,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:s}}i(Mnt,"generateBlobSASQueryParameters20150405");function Fnt(t,e){if(t=Um(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Aa(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(o);return{sasQueryParameters:new ha(t.version,a,s,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:o}}i(Fnt,"generateBlobSASQueryParameters20181109");function Unt(t,e){if(t=Um(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Aa(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(o);return{sasQueryParameters:new ha(t.version,a,s,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:o}}i(Unt,"generateBlobSASQueryParameters20201206");function qnt(t,e){if(t=Um(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Aa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` +`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new ha(t.version,a,s,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:o}}i(qnt,"generateBlobSASQueryParametersUDK20181109");function $nt(t,e){if(t=Um(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Aa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` +`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new ha(t.version,a,s,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:o}}i($nt,"generateBlobSASQueryParametersUDK20200210");function Gnt(t,e){if(t=Um(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Aa(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(o);return{sasQueryParameters:new ha(t.version,a,s,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:o}}i(Gnt,"generateBlobSASQueryParametersUDK20201206");function Hnt(t,e){if(t=Um(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 s;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Aa(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(o);return{sasQueryParameters:new ha(t.version,a,s,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:o}}i(Hnt,"generateBlobSASQueryParametersUDK20250705");function Fm(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Fm,"getCanonicalName");function Um(t){let e=t.version?t.version:_R;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}i(Um,"SASSignatureValuesSanityCheckAndAutofill");var gI=class{static{i(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=Bh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||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 he.withSpan("BlobLeaseClient-acquireLease",r,async n=>Te(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!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||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 he.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Te(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==da||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 he.withSpan("BlobLeaseClient-releaseLease",e,async r=>Te(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!==da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==da||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 he.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!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||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 he.withSpan("BlobLeaseClient-breakLease",r,async n=>{let s={abortSignal:r.abortSignal,breakPeriod:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions};return Te(await this._containerOrBlobOperation.breakLease(s))})}};var sfe=require("node:stream");var yN=class extends sfe.Readable{static{i(this,"RetriableReadableStream")}start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,r,n,s,o={}){super({highWaterMark:o.highWaterMark}),this.getter=r,this.source=e,this.start=n,this.offset=n,this.end=n+s-1,this.maxRetryRequests=o.maxRetryRequests&&o.maxRetryRequests>=0?o.maxRetryRequests:0,this.onProgress=o.onProgress,this.options=o,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=i(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=i(()=>{let e=new Lo("The operation was aborted.");this.destroy(e)},"sourceAbortedHandler");sourceErrorOrEndHandler=i(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 EN=class{static{i(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 Rt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r,n,s,o={}){this.originalResponse=e,this.blobDownloadStream=new yN(this.originalResponse.readableStreamBody,r,n,s,o)}};var ufe=require("node:stream");var KH=new Uint8Array([79,98,106,1]),ofe="avro.codec",ife="avro.schema";var fr=class t{static{i(this,"AvroParser")}static async readFixedBytes(e,r,n={}){let s=await e.read(r,{abortSignal:n.abortSignal});if(s.length!==r)throw new Error("Hit stream end.");return s}static async readByte(e,r={}){return(await t.readFixedBytes(e,1,r))[0]}static async readZigZagLong(e,r={}){let n=0,s=0,o,a,c;do o=await t.readByte(e,r),a=o&128,n|=(o&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 s=await t.readString(e,n),o=await r(e,n);return{key:s,value:o}}static async readMap(e,r,n={}){let s=i((c,l={})=>t.readMapPair(c,r,l),"readPairMethod"),o=await t.readArray(e,s,n),a={};for(let c of o)a[c.key]=c.value;return a}static async readArray(e,r,n={}){let s=[];for(let o=await t.readLong(e,n);o!==0;o=await t.readLong(e,n))for(o<0&&(await t.readLong(e,n),o=-o);o--;){let a=await r(e,n);s.push(a)}return s}},qm;(function(t){t.RECORD="record",t.ENUM="enum",t.ARRAY="array",t.MAP="map",t.UNION="union",t.FIXED="fixed"})(qm||(qm={}));var In;(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"})(In||(In={}));var iu=class t{static{i(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 In.NULL:case In.BOOLEAN:case In.INT:case In.LONG:case In.FLOAT:case In.DOUBLE:case In.BYTES:case In.STRING:return new XH(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new ez(e.map(t.fromSchema))}static fromObjectSchema(e){let r=e.type;try{return t.fromStringSchema(r)}catch{}switch(r){case qm.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 s of e.fields)n[s.name]=t.fromSchema(s.type);return new rz(n,e.name);case qm.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 ZH(e.symbols);case qm.MAP:if(!e.values)throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new tz(t.fromSchema(e.values));case qm.ARRAY:case qm.FIXED:default:throw new Error(`Unexpected Avro type ${r} in ${e}`)}}},XH=class extends iu{static{i(this,"AvroPrimitiveType")}_primitive;constructor(e){super(),this._primitive=e}read(e,r={}){switch(this._primitive){case In.NULL:return fr.readNull();case In.BOOLEAN:return fr.readBoolean(e,r);case In.INT:return fr.readInt(e,r);case In.LONG:return fr.readLong(e,r);case In.FLOAT:return fr.readFloat(e,r);case In.DOUBLE:return fr.readDouble(e,r);case In.BYTES:return fr.readBytes(e,r);case In.STRING:return fr.readString(e,r);default:throw new Error("Unknown Avro Primitive")}}},ZH=class extends iu{static{i(this,"AvroEnumType")}_symbols;constructor(e){super(),this._symbols=e}async read(e,r={}){let n=await fr.readInt(e,r);return this._symbols[n]}},ez=class extends iu{static{i(this,"AvroUnionType")}_types;constructor(e){super(),this._types=e}async read(e,r={}){let n=await fr.readInt(e,r);return this._types[n].read(e,r)}},tz=class extends iu{static{i(this,"AvroMapType")}_itemType;constructor(e){super(),this._itemType=e}read(e,r={}){let n=i((s,o)=>this._itemType.read(s,o),"readItemMethod");return fr.readMap(e,n,r)}},rz=class extends iu{static{i(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 s in this._fields)Object.prototype.hasOwnProperty.call(this._fields,s)&&(n[s]=await this._fields[s].read(e,r));return n}};function nz(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 o=0;o0}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 fr.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!nz(this._syncMarker,n))throw new Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=await fr.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await fr.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield r}}};var EI=class{static{i(this,"AvroReadable")}};var lfe=require("buffer");var cfe=new Lo("Reading from the avro stream was aborted."),CI=class extends EI{static{i(this,"AvroReadableFromStream")}_position;_readable;toUint8Array(e){return typeof e=="string"?lfe.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 cfe;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((s,o)=>{let a=i(()=>{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=i(()=>{let d=this._readable.read(e);d&&(this._position+=d.length,a(),s(this.toUint8Array(d)))},"readableCallback"),l=i(()=>{a(),o()},"rejectCallback"),u=i(()=>{a(),o(cfe)},"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 CN=class extends ufe.Readable{static{i(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 yI(new CI(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 s=r.data;if(!(s instanceof Uint8Array))throw Error("Invalid data in avro result record.");this.push(Buffer.from(s))||(this.avroPaused=!0)}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{let s=r.bytesScanned;if(typeof s!="number")throw Error("Invalid bytesScanned in avro progress record.");this.onProgress&&this.onProgress({loadedBytes:s})}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){let s=r.totalBytes;if(typeof s!="number")throw Error("Invalid totalBytes in avro end record.");this.onProgress({loadedBytes:s})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){let s=r.fatal;if(typeof s!="boolean")throw Error("Invalid fatal in avro error record.");let o=r.name;if(typeof o!="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:o,isFatal:s,description:a})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}};var IN=class{static{i(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 Rt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r={}){this.originalResponse=e,this.blobDownloadStream=new CN(this.originalResponse.readableStreamBody,r)}};var sz;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(sz||(sz={}));var oz;(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"})(oz||(oz={}));function vd(t){if(t!==void 0)return t}i(vd,"toAccessTier");function cn(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=Wpe)}i(cn,"ensureCpkIfSpecified");var iz;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(iz||(iz={}));function xN(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}}}}i(xN,"rangeResponseFromModel");var jfe=D(Wfe(),1);var _N=class extends jfe.Poller{static{i(this,"BlobBeginCopyFromUrlPoller")}intervalInMs;constructor(e){let{blobClient:r,copySource:n,intervalInMs:s=15e3,onProgress:o,resumeFrom:a,startCopyFromURLOptions:c}=e,l;a&&(l=JSON.parse(a).state);let u=bI({...l,blobClient:r,copySource:n,startCopyFromURLOptions:c});super(u),typeof o=="function"&&this.onProgress(o),this.intervalInMs=s}delay(){return LC(this.intervalInMs)}},Nst=i(async function(e={}){let r=this.state,{copyId:n}=r;return r.isCompleted?bI(r):n?(await r.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),r.isCancelled=!0,bI(r)):(r.isCancelled=!0,bI(r))},"cancel"),Tst=i(async function(e={}){let r=this.state,{blobClient:n,copySource:s,startCopyFromURLOptions:o}=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(s,o);r.copyId=a.copyId,a.copyStatus==="success"&&(r.result=a,r.isCompleted=!0)}return bI(r)},"update"),Pst=i(function(){return JSON.stringify({state:this.state},(e,r)=>{if(e!=="blobClient")return r})},"toString");function bI(t){return{state:{...t},cancel:Nst,toString:Pst,update:Tst}}i(bI,"makeBlobBeginCopyFromURLPollOperation");function Zs(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}-`}i(Zs,"rangeToString");var Jfe=require("events");var SI;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})(SI||(SI={}));var BI=class{static{i(this,"Batch")}concurrency;actives=0;completed=0;offset=0;operations=[];state=SI.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new Jfe.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=SI.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(o>=a){clearTimeout(u),c();return}let d=t.read();if(!d)return;typeof d=="string"&&(d=Buffer.from(d,s));let p=o+d.length>a?a-o:d.length;e.fill(d.slice(0,p),r+o,r+o+p),o+=p}),t.on("end",()=>{clearTimeout(u),o{clearTimeout(u),l(d)})})}i(Xfe,"streamToBuffer");async function Zfe(t,e){return new Promise((r,n)=>{let s=QN.default.createWriteStream(e);t.on("error",o=>{n(o)}),s.on("error",o=>{n(o)}),s.on("close",r),t.pipe(s)})}i(Zfe,"readStreamToLocalFile");var eAe=Kfe.default.promisify(QN.default.stat),tAe=QN.default.createReadStream;var au=class t extends $h{static{i(this,"BlobClient")}blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,r,n,s){s=s||{};let o,a;if(eu(r))a=e,o=r;else if(Rt&&r instanceof wr||r instanceof nr||Oo(r))a=e,s=n,o=Or(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Or(new nr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Mm(e);if(u.kind==="AccountConnString")if(Rt){let d=new wr(u.accountName,u.accountKey);a=an(an(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=xd(u.proxyUri)),o=Or(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=an(an(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Or(new nr,s);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,o),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=zH(this.url,Zl.Parameters.SNAPSHOT),this._versionId=zH(this.url,Zl.Parameters.VERSIONID)}withSnapshot(e){return new t(Uh(this.url,Zl.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new t(Uh(this.url,Zl.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new kN(this.url,this.pipeline)}getBlockBlobClient(){return new zh(this.url,this.pipeline)}getPageBlobClient(){return new LN(this.url,this.pipeline)}async download(e=0,r,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},cn(n.customerProvidedKey,this.isHttps),he.withSpan("BlobClient-download",n,async s=>{let o=Te(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:Rt?void 0:n.onProgress},range:e===0&&!r?void 0:Zs({offset:e,count:r}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:s.tracingOptions})),a={...o,_response:o._response,objectReplicationDestinationPolicyId:o.objectReplicationPolicyId,objectReplicationSourceProperties:gN(o.objectReplicationRules)};if(!Rt)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),o.contentLength===void 0)throw new RangeError("File download response doesn't contain valid content length header");if(!o.etag)throw new RangeError("File download response doesn't contain valid etag header");return new EN(a,async c=>{let l={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||o.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Zs({count:e+o.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,o.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return he.withSpan("BlobClient-exists",e,async r=>{try{return cn(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===Xpe||n.details.errorCode===Zpe))return!0;throw n}})}async getProperties(e={}){return e.conditions=e.conditions||{},cn(e.customerProvidedKey,this.isHttps),he.withSpan("BlobClient-getProperties",e,async r=>{let n=Te(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:gN(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},he.withSpan("BlobClient-delete",e,async r=>Te(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 he.withSpan("BlobClient-deleteIfExists",e,async r=>{try{let n=Te(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 he.withSpan("BlobClient-undelete",e,async r=>Te(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setHTTPHeaders(e,r={}){return r.conditions=r.conditions||{},cn(r.customerProvidedKey,this.isHttps),he.withSpan("BlobClient-setHTTPHeaders",r,async n=>Te(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||{},cn(r.customerProvidedKey,this.isHttps),he.withSpan("BlobClient-setMetadata",r,async n=>Te(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 he.withSpan("BlobClient-setTags",r,async n=>Te(await this.blobContext.setTags({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},blobModifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions,tags:rfe(e)})))}async getTags(e={}){return he.withSpan("BlobClient-getTags",e,async r=>{let n=Te(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:hN({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new gI(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},cn(e.customerProvidedKey,this.isHttps),he.withSpan("BlobClient-createSnapshot",e,async r=>Te(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:i((...o)=>this.abortCopyFromURL(...o),"abortCopyFromURL"),getProperties:i((...o)=>this.getProperties(...o),"getProperties"),startCopyFromURL:i((...o)=>this.startCopyFromURL(...o),"startCopyFromURL")},s=new _N({blobClient:n,copySource:e,intervalInMs:r.intervalInMs,onProgress:r.onProgress,resumeFrom:r.resumeFrom,startCopyFromURLOptions:r});return await s.poll(),s}async abortCopyFromURL(e,r={}){return he.withSpan("BlobClient-abortCopyFromURL",r,async n=>Te(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||{},he.withSpan("BlobClient-syncCopyFromURL",r,async n=>Te(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:qh(r.sourceAuthorization),tier:vd(r.tier),blobTagsString:Pd(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 he.withSpan("BlobClient-setAccessTier",r,async n=>Te(await this.blobContext.setTier(vd(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,s={}){let o,a=0,c=0,l=s;e instanceof Buffer?(o=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={}),he.withSpan("BlobClient-downloadToBuffer",l,async d=>{if(!c){let f=await this.getProperties({...l,tracingOptions:d.tracingOptions});if(c=f.contentLength-a,c<0)throw new RangeError(`offset ${a} shouldn't be larger than blob size ${f.contentLength}`)}if(!o)try{o=Buffer.alloc(c)}catch(f){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". ${f.message}`)}if(o.length{let g=a+c;f+u{let a=await this.download(r,n,{...s,tracingOptions:o.tracingOptions});return a.readableStreamBody&&await Zfe(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 s=n.pathname.match("/([^/]*)(/(.*))?");e=s[1],r=s[3]}else if(AN(n)){let s=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=s[2],r=s[4]}else{let s=n.pathname.match("/([^/]*)(/(.*))?");e=s[1],r=s[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 he.withSpan("BlobClient-startCopyFromURL",r,async n=>(r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},Te(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:vd(r.tier),blobTagsString:Pd(r.tags),sealBlob:r.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(r=>{if(!(this.credential instanceof wr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let n=AI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();r(fI(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof wr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return hI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,r){return new Promise(n=>{let s=AI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).toString();n(fI(this.url,s))})}generateUserDelegationSasStringToSign(e,r){return hI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return he.withSpan("BlobClient-deleteImmutabilityPolicy",e,async r=>Te(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions})))}async setImmutabilityPolicy(e,r={}){return he.withSpan("BlobClient-setImmutabilityPolicy",r,async n=>Te(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:n.tracingOptions})))}async setLegalHold(e,r={}){return he.withSpan("BlobClient-setLegalHold",r,async n=>Te(await this.blobContext.setLegalHold(e,{tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return he.withSpan("BlobClient-getAccountInfo",e,async r=>Te(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}},kN=class t extends au{static{i(this,"AppendBlobClient")}appendBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},eu(r))a=e,o=r;else if(Rt&&r instanceof wr||r instanceof nr||Oo(r))a=e,s=n,o=Or(r,s);else if(!r&&typeof r!="string")a=e,o=Or(new nr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Mm(e);if(u.kind==="AccountConnString")if(Rt){let d=new wr(u.accountName,u.accountKey);a=an(an(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=xd(u.proxyUri)),o=Or(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=an(an(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Or(new nr,s);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,o),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new t(Uh(this.url,Zl.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},cn(e.customerProvidedKey,this.isHttps),he.withSpan("AppendBlobClient-create",e,async r=>Te(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:Pd(e.tags),tracingOptions:r.tracingOptions})))}async createIfNotExists(e={}){let r={ifNoneMatch:Fq};return he.withSpan("AppendBlobClient-createIfNotExists",e,async n=>{try{let s=Te(await this.create({...n,conditions:r}));return{succeeded:!0,...s,_response:s._response}}catch(s){if(s.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...s.response?.parsedHeaders,_response:s.response};throw s}})}async seal(e={}){return e.conditions=e.conditions||{},he.withSpan("AppendBlobClient-seal",e,async r=>Te(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||{},cn(n.customerProvidedKey,this.isHttps),he.withSpan("AppendBlobClient-appendBlock",n,async s=>Te(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:s.tracingOptions})))}async appendBlockFromURL(e,r,n,s={}){return s.conditions=s.conditions||{},s.sourceConditions=s.sourceConditions||{},cn(s.customerProvidedKey,this.isHttps),he.withSpan("AppendBlobClient-appendBlockFromURL",s,async o=>Te(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:s.abortSignal,sourceRange:Zs({offset:r,count:n}),sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,appendPositionAccessConditions: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},copySourceAuthorization:qh(s.sourceAuthorization),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:o.tracingOptions})))}},zh=class t extends au{static{i(this,"BlockBlobClient")}_blobContext;blockBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},eu(r))a=e,o=r;else if(Rt&&r instanceof wr||r instanceof nr||Oo(r))a=e,s=n,o=Or(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Or(new nr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Mm(e);if(u.kind==="AccountConnString")if(Rt){let d=new wr(u.accountName,u.accountKey);a=an(an(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=xd(u.proxyUri)),o=Or(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=an(an(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Or(new nr,s);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,o),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new t(Uh(this.url,Zl.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,r={}){if(cn(r.customerProvidedKey,this.isHttps),!Rt)throw new Error("This operation currently is only supported in Node.js.");return he.withSpan("BlockBlobClient-query",r,async n=>{let s=Te(await this._blobContext.query({abortSignal:r.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:jH(r.inputTextConfiguration),outputSerialization:jH(r.outputTextConfiguration)},leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return new IN(s,{abortSignal:r.abortSignal,onProgress:r.onProgress,onError:r.onError})})}async upload(e,r,n={}){return n.conditions=n.conditions||{},cn(n.customerProvidedKey,this.isHttps),he.withSpan("BlockBlobClient-upload",n,async s=>Te(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:vd(n.tier),blobTagsString:Pd(n.tags),tracingOptions:s.tracingOptions})))}async syncUploadFromURL(e,r={}){return r.conditions=r.conditions||{},cn(r.customerProvidedKey,this.isHttps),he.withSpan("BlockBlobClient-syncUploadFromURL",r,async n=>Te(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:qh(r.sourceAuthorization),tier:vd(r.tier),blobTagsString:Pd(r.tags),copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,r,n,s={}){return cn(s.customerProvidedKey,this.isHttps),he.withSpan("BlockBlobClient-stageBlock",s,async o=>Te(await this.blockBlobContext.stageBlock(e,n,r,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,requestOptions:{onUploadProgress:s.onProgress},transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions})))}async stageBlockFromURL(e,r,n=0,s,o={}){return cn(o.customerProvidedKey,this.isHttps),he.withSpan("BlockBlobClient-stageBlockFromURL",o,async a=>Te(await this.blockBlobContext.stageBlockFromURL(e,0,r,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:n===0&&!s?void 0:Zs({offset:n,count:s}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:qh(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,r={}){return r.conditions=r.conditions||{},cn(r.customerProvidedKey,this.isHttps),he.withSpan("BlockBlobClient-commitBlockList",r,async n=>Te(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:vd(r.tier),blobTagsString:Pd(r.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,r={}){return he.withSpan("BlockBlobClient-getBlockList",r,async n=>{let s=Te(await this.blockBlobContext.getBlockList(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return s.committedBlocks||(s.committedBlocks=[]),s.uncommittedBlocks||(s.uncommittedBlocks=[]),s})}async uploadData(e,r={}){return he.withSpan("BlockBlobClient-uploadData",r,async n=>{if(Rt){let s;return e instanceof Buffer?s=e:e instanceof ArrayBuffer?s=Buffer.from(e):(e=e,s=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.byteLength,n)}else{let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,n)}})}async uploadBrowserData(e,r={}){return he.withSpan("BlockBlobClient-uploadBrowserData",r,async n=>{let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,n)})}async uploadSeekableInternal(e,r,n={}){let s=n.blockSize??0;if(s<0||s>4194304e3)throw new RangeError(`blockSize option must be >= 0 and <= ${4194304e3}`);let o=n.maxSingleShotSize??268435456;if(o<0||o>268435456)throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${268435456}`);if(s===0){if(r>4194304e3*5e4)throw new RangeError(`${r} is too larger to upload to a block blob.`);r>o&&(s=Math.ceil(r/5e4),s<4194304&&(s=4194304))}return n.blobHTTPHeaders||(n.blobHTTPHeaders={}),n.conditions||(n.conditions={}),he.withSpan("BlockBlobClient-uploadSeekableInternal",n,async a=>{if(r<=o)return Te(await this.upload(e(0,r),r,a));let c=Math.floor((r-1)/s)+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=Bh(),d=0,p=new BI(n.concurrency);for(let m=0;m{let f=VH(u,m),g=s*m,x=(m===c-1?r:g+s)-g;l.push(f),await this.stageBlock(f,e(g,x),x,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),d+=x,n.onProgress&&n.onProgress({loadedBytes:d})});return await p.do(),this.commitBlockList(l,a)})}async uploadFile(e,r={}){return he.withSpan("BlockBlobClient-uploadFile",r,async n=>{let s=(await eAe(e)).size;return this.uploadSeekableInternal((o,a)=>()=>tAe(e,{autoClose:!0,end:a?o+a-1:1/0,start:o}),s,{...r,tracingOptions:n.tracingOptions})})}async uploadStream(e,r=8388608,n=5,s={}){return s.blobHTTPHeaders||(s.blobHTTPHeaders={}),s.conditions||(s.conditions={}),he.withSpan("BlockBlobClient-uploadStream",s,async o=>{let a=0,c=Bh(),l=0,u=[];return await new bR(e,r,n,async(p,m)=>{let f=VH(c,a);u.push(f),a++,await this.stageBlock(f,p,m,{customerProvidedKey:s.customerProvidedKey,conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions}),l+=m,s.onProgress&&s.onProgress({loadedBytes:l})},Math.ceil(n/4*3)).do(),Te(await this.commitBlockList(u,{...s,tracingOptions:o.tracingOptions}))})}},LN=class t extends au{static{i(this,"PageBlobClient")}pageBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},eu(r))a=e,o=r;else if(Rt&&r instanceof wr||r instanceof nr||Oo(r))a=e,s=n,o=Or(r,s);else if(!r&&typeof r!="string")a=e,o=Or(new nr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Mm(e);if(u.kind==="AccountConnString")if(Rt){let d=new wr(u.accountName,u.accountKey);a=an(an(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=xd(u.proxyUri)),o=Or(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=an(an(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Or(new nr,s);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,o),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new t(Uh(this.url,Zl.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,r={}){return r.conditions=r.conditions||{},cn(r.customerProvidedKey,this.isHttps),he.withSpan("PageBlobClient-create",r,async n=>Te(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:vd(r.tier),blobTagsString:Pd(r.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,r={}){return he.withSpan("PageBlobClient-createIfNotExists",r,async n=>{try{let s={ifNoneMatch:Fq},o=Te(await this.create(e,{...r,conditions:s,tracingOptions:n.tracingOptions}));return{succeeded:!0,...o,_response:o._response}}catch(s){if(s.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...s.response?.parsedHeaders,_response:s.response};throw s}})}async uploadPages(e,r,n,s={}){return s.conditions=s.conditions||{},cn(s.customerProvidedKey,this.isHttps),he.withSpan("PageBlobClient-uploadPages",s,async o=>Te(await this.pageBlobContext.uploadPages(n,e,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onUploadProgress:s.onProgress},range:Zs({offset:r,count:n}),sequenceNumberAccessConditions:s.conditions,transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions})))}async uploadPagesFromURL(e,r,n,s,o={}){return o.conditions=o.conditions||{},o.sourceConditions=o.sourceConditions||{},cn(o.customerProvidedKey,this.isHttps),he.withSpan("PageBlobClient-uploadPagesFromURL",o,async a=>Te(await this.pageBlobContext.uploadPagesFromURL(e,Zs({offset:r,count:s}),0,Zs({offset:n,count:s}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:qh(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,r,n={}){return n.conditions=n.conditions||{},he.withSpan("PageBlobClient-clearPages",n,async s=>Te(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Zs({offset:e,count:r}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions})))}async getPageRanges(e=0,r,n={}){return n.conditions=n.conditions||{},he.withSpan("PageBlobClient-getPageRanges",n,async s=>{let o=Te(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Zs({offset:e,count:r}),tracingOptions:s.tracingOptions}));return xN(o)})}async listPageRangesSegment(e=0,r,n,s={}){return he.withSpan("PageBlobClient-getPageRangesSegment",s,async o=>Te(await this.pageBlobContext.getPageRanges({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},range:Zs({offset:e,count:r}),marker:n,maxPageSize:s.maxPageSize,tracingOptions:o.tracingOptions})))}async*listPageRangeItemSegments(e=0,r,n,s={}){let o;if(n||n===void 0)do o=await this.listPageRangesSegment(e,r,n,s),n=o.continuationToken,yield await o;while(n)}async*listPageRangeItems(e=0,r,n={}){let s;for await(let o of this.listPageRangeItemSegments(e,r,s,n))yield*JH(o)}listPageRanges(e=0,r,n={}){n.conditions=n.conditions||{};let s=this.listPageRangeItems(e,r,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:i((o={})=>this.listPageRangeItemSegments(e,r,o.continuationToken,{maxPageSize:o.maxPageSize,...n}),"byPage")}}async getPageRangesDiff(e,r,n,s={}){return s.conditions=s.conditions||{},he.withSpan("PageBlobClient-getPageRangesDiff",s,async o=>{let a=Te(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevsnapshot:n,range:Zs({offset:e,count:r}),tracingOptions:o.tracingOptions}));return xN(a)})}async listPageRangesDiffSegment(e,r,n,s,o={}){return he.withSpan("PageBlobClient-getPageRangesDiffSegment",o,async a=>Te(await this.pageBlobContext.getPageRangesDiff({abortSignal:o?.abortSignal,leaseAccessConditions:o?.conditions,modifiedAccessConditions:{...o?.conditions,ifTags:o?.conditions?.tagConditions},prevsnapshot:n,range:Zs({offset:e,count:r}),marker:s,maxPageSize:o?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,r,n,s,o){let a;if(s||s===void 0)do a=await this.listPageRangesDiffSegment(e,r,n,s,o),s=a.continuationToken,yield await a;while(s)}async*listPageRangeDiffItems(e,r,n,s){let o;for await(let a of this.listPageRangeDiffItemSegments(e,r,n,o,s))yield*JH(a)}listPageRangesDiff(e,r,n,s={}){s.conditions=s.conditions||{};let o=this.listPageRangeDiffItems(e,r,n,{...s});return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:i((a={})=>this.listPageRangeDiffItemSegments(e,r,n,a.continuationToken,{maxPageSize:a.maxPageSize,...s}),"byPage")}}async getPageRangesDiffForManagedDisks(e,r,n,s={}){return s.conditions=s.conditions||{},he.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",s,async o=>{let a=Te(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevSnapshotUrl:n,range:Zs({offset:e,count:r}),tracingOptions:o.tracingOptions}));return xN(a)})}async resize(e,r={}){return r.conditions=r.conditions||{},he.withSpan("PageBlobClient-resize",r,async n=>Te(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||{},he.withSpan("PageBlobClient-updateSequenceNumber",n,async s=>Te(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:r,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions})))}async startCopyIncremental(e,r={}){return he.withSpan("PageBlobClient-startCopyIncremental",r,async n=>Te(await this.pageBlobContext.copyIncremental(e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}};var rAe;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(rAe||(rAe={}));var nAe;(function(t){t.AES256="AES256"})(nAe||(nAe={}));var ON=class extends Error{static{i(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}};var Vh=class extends Error{static{i(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"}};Vh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Hm=class extends Error{static{i(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"}};Hm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var RI=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var qst=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Rz=class{static{i(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,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Ke(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{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 sAe(t,e,r){return qst(this,void 0,void 0,function*(){var n;let s=new au(t),o=s.getBlockBlobClient(),a=new Rz((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(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield o.uploadFile(e,c);if(l._response.status>=400)throw new ON(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Dr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(sAe,"uploadCacheArchiveSDK");var iAe=D(require("buffer"),1),Pc=D(require("fs"),1),aAe=D(require("stream"),1),cAe=D(require("util"),1);var MN=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function FN(t){return t?t>=200&&t<300:!1}i(FN,"isSuccessStatusCode");function $st(t){return t?t>=500:!0}i($st,"isServerErrorStatusCode");function Gst(t){return t?[xr.BadGateway,xr.ServiceUnavailable,xr.GatewayTimeout].includes(t):!1}i(Gst,"isRetryableStatusCode");function Hst(t){return MN(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(Hst,"sleep");function oAe(t,e,r){return MN(this,arguments,void 0,function*(n,s,o,a=uB,c=dB,l=void 0){let u="",d=1;for(;d<=a;){let p,m,f=!1;try{p=yield s()}catch(g){l&&(p=l(g)),f=!0,u=g.message}if(p&&(m=o(p),!$st(m)))return p;if(m&&(f=Gst(m),u=`Cache service responded with ${m}`),G(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){G(`${n} - Error is not retryable`);break}yield Hst(c),d++}throw Error(`${n} failed: ${u}`)})}i(oAe,"retry");function NI(t,e){return MN(this,arguments,void 0,function*(r,n,s=uB,o=dB){return yield oAe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof rc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(NI,"retryTypedResponse");function Yh(t,e){return MN(this,arguments,void 0,function*(r,n,s=uB,o=dB){return yield oAe(r,n,a=>a.message.statusCode,s,o)})}i(Yh,"retryHttpClientResponse");var bi=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function zst(t,e){return bi(this,void 0,void 0,function*(){yield cAe.promisify(aAe.pipeline)(t.message,e)})}i(zst,"pipeResponseToStream");var UN=class{static{i(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,G(`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,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Ke(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{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 qN(t,e){return bi(this,void 0,void 0,function*(){let r=Pc.createWriteStream(e),n=new Wl("actions/cache"),s=yield Yh("downloadCache",()=>bi(this,void 0,void 0,function*(){return n.get(t)}));s.message.socket.setTimeout(e2,()=>{s.message.destroy(),G(`Aborting download, socket timed out after ${e2} ms`)}),yield zst(s,r);let o=s.message.headers["content-length"];if(o){let a=parseInt(o),c=tc(e);if(c!==a)throw new Error(`Incomplete download. Expected file size: ${a}, actual file size: ${c}`)}else G("Unable to validate download, no Content-Length header")})}i(qN,"downloadCacheHttpClient");function lAe(t,e,r){return bi(this,void 0,void 0,function*(){var n;let s=yield Pc.promises.open(e,"w"),o=new Wl("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let c=(yield Yh("downloadCacheMetadata",()=>bi(this,void 0,void 0,function*(){return yield o.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 S=0;Sbi(this,void 0,void 0,function*(){return yield Vst(o,t,S,P)}),"promiseGetter")})}u.reverse();let p=0,m=0,f=new UN(l);f.startDisplayTimer();let g=f.onProgress(),E=[],x,w=i(()=>bi(this,void 0,void 0,function*(){let S=yield Promise.race(Object.values(E));yield s.write(S.buffer,0,S.count,S.offset),p--,delete E[S.offset],m+=S.count,g({loadedBytes:m})}),"waitAndWrite");for(;x=u.pop();)E[x.offset]=x.promiseGetter(),p++,p>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)&&(yield w());for(;p>0;)yield w()}finally{o.dispose(),yield s.close()}})}i(lAe,"downloadCacheHttpClientConcurrent");function Vst(t,e,r,n){return bi(this,void 0,void 0,function*(){let o=0;for(;;)try{let c=yield dAe(3e4,Yst(t,e,r,n));if(typeof c=="string")throw new Error("downloadSegmentRetry failed due to timeout");return c}catch(a){if(o>=5)throw a;o++}})}i(Vst,"downloadSegmentRetry");function Yst(t,e,r,n){return bi(this,void 0,void 0,function*(){let s=yield Yh("downloadCachePart",()=>bi(this,void 0,void 0,function*(){return yield t.get(e,{Range:`bytes=${r}-${r+n-1}`})}));if(!s.readBodyBuffer)throw new Error("Expected HttpClientResponse to implement readBodyBuffer");return{offset:r,count:n,buffer:yield s.readBodyBuffer()}})}i(Yst,"downloadSegment");function uAe(t,e,r){return bi(this,void 0,void 0,function*(){var n;let s=new zh(t,void 0,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}}),a=(n=(yield s.getProperties()).contentLength)!==null&&n!==void 0?n:-1;if(a<0)G("Unable to determine content length, downloading file with http-client..."),yield qN(t,e);else{let c=Math.min(134217728,iAe.constants.MAX_LENGTH),l=new UN(a),u=Pc.openSync(e,"w");try{l.startDisplayTimer();let d=new AbortController,p=d.signal;for(;!l.isDone();){let m=l.segmentOffset+l.segmentSize,f=Math.min(c,a-m);l.nextSegment(f);let g=yield dAe(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(m,f,{abortSignal:p,concurrency:r.downloadConcurrency,onProgress:l.onProgress()}));if(g==="timeout")throw d.abort(),new Error("Aborting cache download as the download time exceeded the timeout.");Buffer.isBuffer(g)&&Pc.writeFileSync(u,g)}}finally{l.stopDisplayTimer(),Pc.closeSync(u)}}})}i(uAe,"downloadCacheStorageSDK");var dAe=i((t,e)=>bi(void 0,void 0,void 0,function*(){let r,n=new Promise(s=>{r=setTimeout(()=>s("timeout"),t)});return Promise.race([e,n]).then(s=>(clearTimeout(r),s))}),"promiseWithTimeout");function Nz(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),G(`Use Azure SDK: ${e.useAzureSdk}`),G(`Upload concurrency: ${e.uploadConcurrency}`),G(`Upload chunk size: ${e.uploadChunkSize}`),e}i(Nz,"getUploadOptions");function pAe(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),G(`Use Azure SDK: ${e.useAzureSdk}`),G(`Download concurrency: ${e.downloadConcurrency}`),G(`Request timeout (ms): ${e.timeoutInMs}`),G(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),G(`Segment download timeout (ms): ${e.segmentTimeoutInMs}`),G(`Lookup only: ${e.lookupOnly}`),e}i(pAe,"getDownloadOptions");function Tz(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!n&&!s}i(Tz,"isGhes");function TI(){return Tz()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}i(TI,"getCacheServiceVersion");function $N(){let t=TI();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}`)}}i($N,"getCacheServiceURL");var hAe=D(AAe(),1);function GN(){return`@actions/cache-${hAe.version}`}i(GN,"getUserAgentString");var eo=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function PI(t){let e=$N();if(!e)throw new Error("Cache Service Url not found, unable to restore cache.");let r=`${e}_apis/artifactcache/${t}`;return G(`Resource Url: ${r}`),r}i(PI,"getCacheApiUrl");function Jst(t,e){return`${t};api-version=${e}`}i(Jst,"createAcceptHeader");function Kst(){return{headers:{Accept:Jst("application/json","6.0-preview.1")}}}i(Kst,"getRequestOptions");function Pz(){let t=process.env.ACTIONS_RUNTIME_TOKEN||"",e=new yh(t);return new Wl(GN(),[e],Kst())}i(Pz,"createHttpClient");function EAe(t,e,r){return eo(this,void 0,void 0,function*(){let n=Pz(),s=gh(e,r?.compressionMethod,r?.enableCrossOsArchive),o=`cache?keys=${encodeURIComponent(t.join(","))}&version=${s}`,a=yield NI("getCacheEntry",()=>eo(this,void 0,void 0,function*(){return n.getJson(PI(o))}));if(a.statusCode===204)return dm()&&(yield Xst(t[0],n,s)),null;if(!FN(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode}`);let c=a.result,l=c?.archiveLocation;if(!l)throw new Error("Cache not found.");return No(l),G("Cache Result:"),G(JSON.stringify(c)),c})}i(EAe,"getCacheEntry");function Xst(t,e,r){return eo(this,void 0,void 0,function*(){let n=`caches?key=${encodeURIComponent(t)}`,s=yield NI("listCache",()=>eo(this,void 0,void 0,function*(){return e.getJson(PI(n))}));if(s.statusCode===200){let o=s.result,a=o?.totalCount;if(a&&a>0){G(`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 o?.artifactCaches||[])G(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(Xst,"printCachesListForDiagnostics");function vz(t,e,r){return eo(this,void 0,void 0,function*(){let n=new yAe.URL(t),s=pAe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield uAe(t,e,s):s.concurrentBlobDownloads?yield lAe(t,e,s):yield qN(t,e):yield qN(t,e)})}i(vz,"downloadCache");function CAe(t,e,r){return eo(this,void 0,void 0,function*(){let n=Pz(),s=gh(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield NI("reserveCache",()=>eo(this,void 0,void 0,function*(){return n.postJson(PI("caches"),o)}))})}i(CAe,"reserveCache");function gAe(t,e){return`bytes ${t}-${e}/*`}i(gAe,"getContentRange");function Zst(t,e,r,n,s){return eo(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${gAe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":gAe(n,s)},a=yield Yh(`uploadChunk (start: ${n}, end: ${s})`,()=>eo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!FN(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(Zst,"uploadChunk");function eot(t,e,r,n){return eo(this,void 0,void 0,function*(){let s=tc(r),o=PI(`caches/${e.toString()}`),a=Wh.openSync(r,"r"),c=Nz(n),l=s2("uploadConcurrency",c.uploadConcurrency),u=s2("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];G("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>eo(this,void 0,void 0,function*(){for(;pWh.createReadStream(r,{fd:a,start:f,end:g,autoClose:!1}).on("error",E=>{throw new Error(`Cache upload failed because file read failed with ${E.message}`)}),f,g)}})))}finally{Wh.closeSync(a)}})}i(eot,"uploadFile");function tot(t,e,r){return eo(this,void 0,void 0,function*(){let n={size:r};return yield NI("commitCache",()=>eo(this,void 0,void 0,function*(){return t.postJson(PI(`caches/${e.toString()}`),n)}))})}i(tot,"commitCache");function _z(t,e,r,n){return eo(this,void 0,void 0,function*(){if(Nz(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield sAe(r,e,n)}else{let o=Pz();G("Upload cache"),yield eot(o,t,e,n),G("Commiting cache");let a=tc(e);Ke(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield tot(o,t,a);if(!FN(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);Ke("Cache saved successfully")}})}i(_z,"saveCache");var fhe=D(ahe(),1),Ur=D(Fr(),1),$o=D(Fr(),1),jm=D(Fr(),1),Jm=D(Fr(),1),Km=D(Fr(),1);var B3=D(Fr(),1),R3=D(Fr(),1),dhe=D(Fr(),1),phe=D(Fr(),1),mhe=D(Fr(),1);var w3=D(Fr(),1),b3=D(Fr(),1),che=D(Fr(),1),lhe=D(Fr(),1),uhe=D(Fr(),1);var S3=class extends uhe.MessageType{static{i(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,lhe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,che.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posNT,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,phe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,dhe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??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,Jm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,jm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??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,Jm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,jm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??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,Jm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,jm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posL3.fromJson(s,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let r=O3.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",r).then(s=>M3.fromJson(s,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let r=F3.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",r).then(s=>U3.fromJson(s,{ignoreUnknownFields:!0}))}};function Ahe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(No(r),No(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}i(Ahe,"maskSigUrl");function hhe(t){if(typeof t!="object"||t===null){G("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&Ahe(t.signed_upload_url),"signed_download_url"in t&&typeof t.signed_download_url=="string"&&Ahe(t.signed_download_url)}i(hhe,"maskSecretUrls");var PT=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},q3=class{static{i(this,"CacheServiceClient")}constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let o=Hle();this.baseUrl=$N(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Wl(e,[new yh(o)])}request(e,r,n,s){return PT(this,void 0,void 0,function*(){let o=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;G(`[Request] ${r} ${o}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>PT(this,void 0,void 0,function*(){return this.httpClient.post(o,JSON.stringify(s),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return PT(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r0&&Dr(`You've hit a rate limit, your rate limit will reset in ${p} seconds`)}throw new RI(`Rate limited: ${n}`)}}catch(c){if(c instanceof SyntaxError&&G(`Raw Body: ${s}`),c instanceof Hm||c instanceof RI)throw c;if(Vh.isNetworkErrorCode(c?.code))throw new Vh(c?.code);o=!0,n=c.message}if(!o)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);Ke(`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?[xr.BadGateway,xr.GatewayTimeout,xr.InternalServerError,xr.ServiceUnavailable].includes(e):!1}sleep(e){return PT(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 $3(t){let e=new q3(GN(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new TT(e)}i($3,"internalCacheTwirpClient");var vT=require("fs"),Go=D(require("path"),1);var lu=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},kd=process.platform==="win32";function dat(){return lu(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield Gle(),e=Fle;if(t)return{path:t,type:vo.GNU};if((0,vT.existsSync)(e))return{path:e,type:vo.BSD};break}case"darwin":{let t=yield Hs("gtar",!1);return t?{path:t,type:vo.GNU}:{path:yield Hs("tar",!0),type:vo.BSD}}default:break}return{path:yield Hs("tar",!0),type:vo.GNU}})}i(dat,"getTarPath");function pat(t,e,r){return lu(this,arguments,void 0,function*(n,s,o,a=""){let c=[`"${n.path}"`],l=yd(s),u="cache.tar",d=ghe(),p=n.type===vo.BSD&&s!==Es.Gzip&&kd;switch(o){case"create":c.push("--posix","-cf",p?u:l.replace(new RegExp(`\\${Go.sep}`,"g"),"/"),"--exclude",p?u:l.replace(new RegExp(`\\${Go.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${Go.sep}`,"g"),"/"),"--files-from",r2);break;case"extract":c.push("-xf",p?u:a.replace(new RegExp(`\\${Go.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${Go.sep}`,"g"),"/"));break;case"list":c.push("-tf",p?u:a.replace(new RegExp(`\\${Go.sep}`,"g"),"/"),"-P");break}if(n.type===vo.GNU)switch(process.platform){case"win32":c.push("--force-local");break;case"darwin":c.push("--delay-directory-restore");break}return c})}i(pat,"getTarArgs");function G3(t,e){return lu(this,arguments,void 0,function*(r,n,s=""){let o,a=yield dat(),c=yield pat(a,r,n,s),l=n!=="create"?yield mat(a,r,s):yield fat(a,r),u=a.type===vo.BSD&&r!==Es.Gzip&&kd;return u&&n!=="create"?o=[[...l].join(" "),[...c].join(" ")]:o=[[...c].join(" "),[...l].join(" ")],u?o:[o.join(" ")]})}i(G3,"getCommands");function ghe(){var t;return(t=process.env.GITHUB_WORKSPACE)!==null&&t!==void 0?t:process.cwd()}i(ghe,"getWorkingDirectory");function mat(t,e,r){return lu(this,void 0,void 0,function*(){let n=t.type===vo.BSD&&e!==Es.Gzip&&kd;switch(e){case Es.Zstd:return n?["zstd -d --long=30 --force -o",SC,r.replace(new RegExp(`\\${Go.sep}`,"g"),"/")]:["--use-compress-program",kd?'"zstd -d --long=30"':"unzstd --long=30"];case Es.ZstdWithoutLong:return n?["zstd -d --force -o",SC,r.replace(new RegExp(`\\${Go.sep}`,"g"),"/")]:["--use-compress-program",kd?'"zstd -d"':"unzstd"];default:return["-z"]}})}i(mat,"getDecompressionProgram");function fat(t,e){return lu(this,void 0,void 0,function*(){let r=yd(e),n=t.type===vo.BSD&&e!==Es.Gzip&&kd;switch(e){case Es.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${Go.sep}`,"g"),"/"),SC]:["--use-compress-program",kd?'"zstd -T0 --long=30"':"zstdmt --long=30"];case Es.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${Go.sep}`,"g"),"/"),SC]:["--use-compress-program",kd?'"zstd -T0"':"zstdmt"];default:return["-z"]}})}i(fat,"getCompressionProgram");function H3(t,e){return lu(this,void 0,void 0,function*(){for(let r of t)try{yield ud(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}`)}})}i(H3,"execCommands");function zI(t,e){return lu(this,void 0,void 0,function*(){let r=yield G3(e,"list",t);yield H3(r)})}i(zI,"listTar");function z3(t,e){return lu(this,void 0,void 0,function*(){let r=ghe();yield um(r);let n=yield G3(e,"extract",t);yield H3(n)})}i(z3,"extractTar");function V3(t,e,r){return lu(this,void 0,void 0,function*(){(0,vT.writeFileSync)(Go.join(t,r2),e.join(` +`));let n=yield G3(r,"create");yield H3(n,t)})}i(V3,"createTar");var dg=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Ea=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},ug=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},_T=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function yhe(t){if(!t||t.length===0)throw new Ea("Path Validation Error: At least one directory or file path is required")}i(yhe,"checkPaths");function Y3(t){if(t.length>512)throw new Ea(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ea(`Key Validation Error: ${t} cannot contain commas.`)}i(Y3,"checkKey");function W3(){return TI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(W3,"isFeatureAvailable");function Ehe(t,e,r,n){return dg(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=TI();return G(`Cache service version: ${u}`),yhe(s),u==="v2"?yield hat(s,o,a,c,l):yield Aat(s,o,a,c,l)})}i(Ehe,"restoreCache");function Aat(t,e,r,n){return dg(this,arguments,void 0,function*(s,o,a,c,l=!1){a=a||[];let u=[o,...a];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Ea("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of u)Y3(m);let d=yield NC(),p="";try{let m=yield EAe(u,s,{compressionMethod:d,enableCrossOsArchive:l});if(!m?.archiveLocation)return;if(c?.lookupOnly)return Ke("Lookup only - skipping download"),m.cacheKey;p=VI.join(yield BC(),yd(d)),G(`Archive Path: ${p}`),yield vz(m.archiveLocation,p,c),dm()&&(yield zI(p,d));let f=tc(p);return Ke(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield z3(p,d),Ke("Cache restored successfully"),m.cacheKey}catch(m){let f=m;if(f.name===Ea.name)throw m;f instanceof rc&&typeof f.statusCode=="number"&&f.statusCode>=500?ih(`Failed to restore: ${m.message}`):Dr(`Failed to restore: ${m.message}`)}finally{try{yield RC(p)}catch(m){G(`Failed to delete archive: ${m}`)}}})}i(Aat,"restoreCacheV1");function hat(t,e,r,n){return dg(this,arguments,void 0,function*(s,o,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[o,...a];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Ea("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of u)Y3(p);let d="";try{let p=$3(),m=yield NC(),f={key:o,restoreKeys:a,version:gh(s,m,l)},g=yield p.GetCacheEntryDownloadURL(f);if(!g.ok){G(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?Ke(`Cache hit for restore-key: ${g.matchedKey}`):Ke(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return Ke("Lookup only - skipping download"),g.matchedKey;d=VI.join(yield BC(),yd(m)),G(`Archive path: ${d}`),G(`Starting download of archive to: ${d}`),yield vz(g.signedDownloadUrl,d,c);let x=tc(d);return Ke(`Cache Size: ~${Math.round(x/(1024*1024))} MB (${x} B)`),dm()&&(yield zI(d,m)),yield z3(d,m),Ke("Cache restored successfully"),g.matchedKey}catch(p){let m=p;if(m.name===Ea.name)throw p;m instanceof rc&&typeof m.statusCode=="number"&&m.statusCode>=500?ih(`Failed to restore: ${p.message}`):Dr(`Failed to restore: ${p.message}`)}finally{try{d&&(yield RC(d))}catch(p){G(`Failed to delete archive: ${p}`)}}})}i(hat,"restoreCacheV2");function j3(t,e,r){return dg(this,arguments,void 0,function*(n,s,o,a=!1){let c=TI();return G(`Cache service version: ${c}`),yhe(n),Y3(s),c==="v2"?yield yat(n,s,o,a):yield gat(n,s,o,a)})}i(j3,"saveCache");function gat(t,e,r){return dg(this,arguments,void 0,function*(n,s,o,a=!1){var c,l,u,d,p;let m=yield NC(),f=-1,g=yield n2(n);if(G("Cache Paths:"),G(`${JSON.stringify(g)}`),g.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 BC(),x=VI.join(E,yd(m));G(`Archive Path: ${x}`);try{yield V3(E,g,m),dm()&&(yield zI(x,m));let w=10*1024*1024*1024,S=tc(x);if(G(`File Size: ${S}`),S>w&&!Tz())throw new Error(`Cache size of ~${Math.round(S/(1024*1024))} MB (${S} B) is over the 10GB limit, not saving cache.`);G("Reserving Cache");let P=yield CAe(s,n,{compressionMethod:m,enableCrossOsArchive:a,cacheSize:S});if(!((c=P?.result)===null||c===void 0)&&c.cacheId)f=(l=P?.result)===null||l===void 0?void 0:l.cacheId;else throw P?.statusCode===400?new Error((d=(u=P?.error)===null||u===void 0?void 0:u.message)!==null&&d!==void 0?d:`Cache size of ~${Math.round(S/(1024*1024))} MB (${S} B) is over the data cap limit, not saving cache.`):new ug(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(p=P?.error)===null||p===void 0?void 0:p.message}`);G(`Saving Cache (ID: ${f})`),yield _z(f,x,"",o)}catch(w){let S=w;if(S.name===Ea.name)throw w;S.name===ug.name?Ke(`Failed to save: ${S.message}`):S instanceof rc&&typeof S.statusCode=="number"&&S.statusCode>=500?ih(`Failed to save: ${S.message}`):Dr(`Failed to save: ${S.message}`)}finally{try{yield RC(x)}catch(w){G(`Failed to delete archive: ${w}`)}}return f})}i(gat,"saveCacheV1");function yat(t,e,r){return dg(this,arguments,void 0,function*(n,s,o,a=!1){o=Object.assign(Object.assign({},o),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let c=yield NC(),l=$3(),u=-1,d=yield n2(n);if(G("Cache Paths:"),G(`${JSON.stringify(d)}`),d.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 p=yield BC(),m=VI.join(p,yd(c));G(`Archive Path: ${m}`);try{yield V3(p,d,c),dm()&&(yield zI(m,c));let f=tc(m);G(`File Size: ${f}`),o.archiveSizeBytes=f,G("Reserving Cache");let g=gh(n,c,a),E={key:s,version:g},x;try{let P=yield l.CreateCacheEntry(E);if(!P.ok)throw P.message&&Dr(`Cache reservation failed: ${P.message}`),new Error(P.message||"Response was not ok");x=P.signedUploadUrl}catch(P){throw G(`Failed to reserve cache: ${P}`),new ug(`Unable to reserve cache with key ${s}, another job may be creating this cache.`)}G(`Attempting to upload cache located at: ${m}`),yield _z(u,m,x,o);let w={key:s,version:g,sizeBytes:`${f}`},S=yield l.FinalizeCacheEntryUpload(w);if(G(`FinalizeCacheEntryUploadResponse: ${S.ok}`),!S.ok)throw S.message?new _T(S.message):new Error(`Unable to finalize cache with key ${s}, another job may be finalizing this cache.`);u=parseInt(S.entryId)}catch(f){let g=f;if(g.name===Ea.name)throw f;g.name===ug.name?Ke(`Failed to save: ${g.message}`):g.name===_T.name?Dr(g.message):g instanceof rc&&typeof g.statusCode=="number"&&g.statusCode>=500?ih(`Failed to save: ${g.message}`):Dr(`Failed to save: ${g.message}`)}finally{try{yield RC(m)}catch(f){G(`Failed to delete archive: ${f}`)}}return u})}i(yat,"saveCacheV2");var Che=D(require("util"),1);var pg=class t{static{i(this,"Cache")}opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e,this.ghaCacheKey=Che.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform()),this.ghaNoCache=this.opts.ghaNoCache,this.cacheDir=K3.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform()),this.cachePath=K3.default.join(this.cacheDir,this.opts.cacheFile),QT.default.existsSync(this.cacheDir)||QT.default.mkdirSync(this.cacheDir,{recursive:!0})}async save(e,r){G(`Cache.save ${e}`);let n=this.copyToCache(e),s=await CU(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform());if(G(`Cache.save cached to hosted tool cache ${s}`),!this.ghaNoCache&&W3())if(r)try{G(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`),await j3([this.cacheDir],this.ghaCacheKey)}catch(o){Dr(`Failed to save cache: ${o}`)}else G(`Cache.save sending ${this.ghaCacheKey} to post state`),pm(t.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}));return n}async find(){try{let e=mae(this.opts.htcName,this.opts.htcVersion,this.platform());if(e)return Ke(`Restored from hosted tool cache ${e}`),this.copyToCache(`${e}/${this.opts.cacheFile}`);if(!this.ghaNoCache&&W3()){if(G("GitHub Actions cache feature available"),await Ehe([this.cacheDir],this.ghaCacheKey))return Ke(`Restored ${this.ghaCacheKey} from GitHub Actions cache`),e=await CU(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform()),Ke(`Cached to hosted tool cache ${e}`),this.copyToCache(`${e}/${this.opts.cacheFile}`)}else this.ghaNoCache?Ke("GitHub Actions cache disabled"):Ke("GitHub Actions cache feature not available")}catch(e){Dr(`Failed to restore cache: ${e}`)}return""}static async post(){let e=Aoe(t.POST_CACHE_KEY);if(!e)return Ke("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{Ke(`Caching ${r.key} to GitHub Actions cache`),await j3([r.dir],r.key)}catch(n){Dr(`Failed to save cache: ${n}`)}return r}copyToCache(e){return Ke(`Copying ${e} to ${this.cachePath}`),QT.default.copyFileSync(e,this.cachePath),this.cachePath}platform(){let e=process.config.variables.arm_version;return`${J3.default.platform()}-${J3.default.arch()}${e?"v"+e:""}`}};var Ihe=!!process.env.STATE_isPost;Ihe||pm("isPost","true");async function xhe(t,e){if(Ihe)e&&await e(),await rC("Post cache",async()=>{await pg.post()});else try{await t()}catch(r){foe(r.message)}}i(xhe,"run");var nY=D(require("path"),1);function Mhe(t){return typeof t>"u"||t===null}i(Mhe,"isNothing");function Iat(t){return typeof t=="object"&&t!==null}i(Iat,"isObject");function xat(t){return Array.isArray(t)?t:Mhe(t)?[]:[t]}i(xat,"toArray");function wat(t,e){var r,n,s,o;if(e)for(o=Object.keys(e),r=0,n=o.length;rc&&(o=" ... ",e=n-c+o.length),r-n>c&&(a=" ...",r=n+c-a.length),{str:o+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:n-e+o.length}}i(z3,"getLine");function V3(t,e){return un.repeat(" ",e-t.length)+t}i(V3,"padStart");function Sat(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],s=[],o,a=-1;o=r.exec(t.buffer);)s.push(o.index),n.push(o.index+o[0].length),t.position<=o.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var c="",l,u,d=Math.min(t.line+e.linesAfter,s.length).toString().length,p=e.maxLength-(e.indent+d+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)u=z3(t.buffer,n[a-l],s[a-l],t.position-(n[a]-n[a-l]),p),c=un.repeat(" ",e.indent)+V3((t.line-l+1).toString(),d)+" | "+u.str+` -`+c;for(u=z3(t.buffer,n[a],s[a],t.position,p),c+=un.repeat(" ",e.indent)+V3((t.line+1).toString(),d)+" | "+u.str+` -`,c+=un.repeat("-",e.indent+d+3+u.pos)+`^ -`,l=1;l<=e.linesAfter&&!(a+l>=s.length);l++)u=z3(t.buffer,n[a+l],s[a+l],t.position-(n[a]-n[a+l]),p),c+=un.repeat(" ",e.indent)+V3((t.line+l+1).toString(),d)+" | "+u.str+` -`;return c.replace(/\n$/,"")}i(Sat,"makeSnippet");var Bat=Sat,Rat=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Nat=["scalar","sequence","mapping"];function Tat(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}i(Tat,"compileStyleAliases");function Pat(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Rat.indexOf(r)===-1)throw new ro('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Tat(e.styleAliases||null),Nat.indexOf(this.kind)===-1)throw new ro('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}i(Pat,"Type$1");var Wn=Pat;function dhe(t,e){var r=[];return t[e].forEach(function(n){var s=r.length;r.forEach(function(o,a){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(s=a)}),r[s]=n}),r}i(dhe,"compileList");function vat(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(s){s.multi?(t.multi[s.kind].push(s),t.multi.fallback.push(s)):t[s.kind][s.tag]=t.fallback[s.tag]=s}for(i(n,"collectType"),e=0,r=arguments.length;e=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:i(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:i(function(t){return t.toString(10)},"decimal"),hexadecimal:i(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Xat=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Zat(t){return!(t===null||!Xat.test(t)||t[t.length-1]==="_")}i(Zat,"resolveYamlFloat");function ect(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}i(ect,"constructYamlFloat");var tct=/^[-+]?[0-9]+e/;function rct(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(un.isNegativeZero(t))return"-0.0";return r=t.toString(10),tct.test(r)?r.replace("e",".e"):r}i(rct,"representYamlFloat");function nct(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||un.isNegativeZero(t))}i(nct,"isFloat");var sct=new Wn("tag:yaml.org,2002:float",{kind:"scalar",resolve:Zat,construct:ect,predicate:nct,represent:rct,defaultStyle:"lowercase"}),oct=Lat.extend({implicit:[Uat,Hat,Kat,sct]}),ict=oct,Nhe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),The=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 act(t){return t===null?!1:Nhe.exec(t)!==null||The.exec(t)!==null}i(act,"resolveYamlTimestamp");function cct(t){var e,r,n,s,o,a,c,l=0,u=null,d,p,m;if(e=Nhe.exec(t),e===null&&(e=The.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,s=+e[3],!e[4])return new Date(Date.UTC(r,n,s));if(o=+e[4],a=+e[5],c=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(d=+e[10],p=+(e[11]||0),u=(d*60+p)*6e4,e[9]==="-"&&(u=-u)),m=new Date(Date.UTC(r,n,s,o,a,c,l)),u&&m.setTime(m.getTime()-u),m}i(cct,"constructYamlTimestamp");function lct(t){return t.toISOString()}i(lct,"representYamlTimestamp");var uct=new Wn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:act,construct:cct,instanceOf:Date,represent:lct});function dct(t){return t==="<<"||t===null}i(dct,"resolveYamlMerge");var pct=new Wn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:dct}),Z3=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function mct(t){if(t===null)return!1;var e,r,n=0,s=t.length,o=Z3;for(r=0;r64)){if(e<0)return!1;n+=6}return n%8===0}i(mct,"resolveYamlBinary");function fct(t){var e,r,n=t.replace(/[\r\n=]/g,""),s=n.length,o=Z3,a=0,c=[];for(e=0;e>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|o.indexOf(n.charAt(e));return r=s%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),new Uint8Array(c)}i(fct,"constructYamlBinary");function Act(t){var e="",r=0,n,s,o=t.length,a=Z3;for(n=0;n>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[n];return s=o%3,s===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):s===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):s===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}i(Act,"representYamlBinary");function hct(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}i(hct,"isBinary");var gct=new Wn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:mct,construct:fct,predicate:hct,represent:Act}),yct=Object.prototype.hasOwnProperty,Ect=Object.prototype.toString;function Cct(t){if(t===null)return!0;var e=[],r,n,s,o,a,c=t;for(r=0,n=c.length;r>10)+55296,(t-65536&1023)+56320)}i(Mct,"charFromCodepoint");function khe(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}i(khe,"setProperty");var Lhe=new Array(256),Ohe=new Array(256);for(jm=0;jm<256;jm++)Lhe[jm]=fhe(jm)?1:0,Ohe[jm]=fhe(jm);var jm;function Fct(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Phe,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}i(Fct,"State$1");function Mhe(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Bat(r),new ro(e,r)}i(Mhe,"generateError");function Se(t,e){throw Mhe(t,e)}i(Se,"throwError");function _T(t,e){t.onWarning&&t.onWarning.call(null,Mhe(t,e))}i(_T,"throwWarning");var Ahe={YAML:i(function(e,r,n){var s,o,a;e.version!==null&&Se(e,"duplication of %YAML directive"),n.length!==1&&Se(e,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),s===null&&Se(e,"ill-formed argument of the YAML directive"),o=parseInt(s[1],10),a=parseInt(s[2],10),o!==1&&Se(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&_T(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(e,r,n){var s,o;n.length!==2&&Se(e,"TAG directive accepts exactly two arguments"),s=n[0],o=n[1],Qhe.test(s)||Se(e,"ill-formed tag handle (first argument) of the TAG directive"),Od.call(e.tagMap,s)&&Se(e,'there is a previously declared suffix for "'+s+'" tag handle'),Dhe.test(o)||Se(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Se(e,"tag prefix is malformed: "+o)}e.tagMap[s]=o},"handleTagDirective")};function Ld(t,e,r,n){var s,o,a,c;if(e1&&(t.result+=un.repeat(` -`,e-1))}i(tV,"writeFoldedLines");function Uct(t,e,r){var n,s,o,a,c,l,u,d,p=t.kind,m=t.result,f;if(f=t.input.charCodeAt(t.position),no(f)||dg(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(s=t.input.charCodeAt(t.position+1),no(s)||r&&dg(s)))return!1;for(t.kind="scalar",t.result="",o=a=t.position,c=!1;f!==0;){if(f===58){if(s=t.input.charCodeAt(t.position+1),no(s)||r&&dg(s))break}else if(f===35){if(n=t.input.charCodeAt(t.position-1),no(n))break}else{if(t.position===t.lineStart&&kT(t)||r&&dg(f))break;if(Lc(f))if(l=t.line,u=t.lineStart,d=t.lineIndent,Jr(t,!1,-1),t.lineIndent>=e){c=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=u,t.lineIndent=d;break}}c&&(Ld(t,o,a,!1),tV(t,t.line-l),o=a=t.position,c=!1),Jm(f)||(a=t.position+1),f=t.input.charCodeAt(++t.position)}return Ld(t,o,a,!1),t.result?!0:(t.kind=p,t.result=m,!1)}i(Uct,"readPlainScalar");function qct(t,e){var r,n,s;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=s=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Ld(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,s=t.position;else return!0;else Lc(r)?(Ld(t,n,s,!0),tV(t,Jr(t,!1,e)),n=s=t.position):t.position===t.lineStart&&kT(t)?Se(t,"unexpected end of the document within a single quoted scalar"):(t.position++,s=t.position);Se(t,"unexpected end of the stream within a single quoted scalar")}i(qct,"readSingleQuotedScalar");function $ct(t,e){var r,n,s,o,a,c;if(c=t.input.charCodeAt(t.position),c!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(c=t.input.charCodeAt(t.position))!==0;){if(c===34)return Ld(t,r,t.position,!0),t.position++,!0;if(c===92){if(Ld(t,r,t.position,!0),c=t.input.charCodeAt(++t.position),Lc(c))Jr(t,!1,e);else if(c<256&&Lhe[c])t.result+=Ohe[c],t.position++;else if((a=Lct(c))>0){for(s=a,o=0;s>0;s--)c=t.input.charCodeAt(++t.position),(a=kct(c))>=0?o=(o<<4)+a:Se(t,"expected hexadecimal character");t.result+=Mct(o),t.position++}else Se(t,"unknown escape sequence");r=n=t.position}else Lc(c)?(Ld(t,r,n,!0),tV(t,Jr(t,!1,e)),r=n=t.position):t.position===t.lineStart&&kT(t)?Se(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Se(t,"unexpected end of the stream within a double quoted scalar")}i($ct,"readDoubleQuotedScalar");function Gct(t,e){var r=!0,n,s,o,a=t.tag,c,l=t.anchor,u,d,p,m,f,g=Object.create(null),E,x,w,S;if(S=t.input.charCodeAt(t.position),S===91)d=93,f=!1,c=[];else if(S===123)d=125,f=!0,c={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),S=t.input.charCodeAt(++t.position);S!==0;){if(Jr(t,!0,e),S=t.input.charCodeAt(t.position),S===d)return t.position++,t.tag=a,t.anchor=l,t.kind=f?"mapping":"sequence",t.result=c,!0;r?S===44&&Se(t,"expected the node content, but found ','"):Se(t,"missed comma between flow collection entries"),x=E=w=null,p=m=!1,S===63&&(u=t.input.charCodeAt(t.position+1),no(u)&&(p=m=!0,t.position++,Jr(t,!0,e))),n=t.line,s=t.lineStart,o=t.position,mg(t,e,PT,!1,!0),x=t.tag,E=t.result,Jr(t,!0,e),S=t.input.charCodeAt(t.position),(m||t.line===n)&&S===58&&(p=!0,S=t.input.charCodeAt(++t.position),Jr(t,!0,e),mg(t,e,PT,!1,!0),w=t.result),f?pg(t,c,g,x,E,w,n,s,o):p?c.push(pg(t,null,g,x,E,w,n,s,o)):c.push(E),Jr(t,!0,e),S=t.input.charCodeAt(t.position),S===44?(r=!0,S=t.input.charCodeAt(++t.position)):r=!1}Se(t,"unexpected end of the stream within a flow collection")}i(Gct,"readFlowCollection");function Hct(t,e){var r,n,s=Y3,o=!1,a=!1,c=e,l=0,u=!1,d,p;if(p=t.input.charCodeAt(t.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(t.kind="scalar",t.result="";p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)Y3===s?s=p===43?phe:vct:Se(t,"repeat of a chomping mode identifier");else if((d=Oct(p))>=0)d===0?Se(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Se(t,"repeat of an indentation width identifier"):(c=e+d-1,a=!0);else break;if(Jm(p)){do p=t.input.charCodeAt(++t.position);while(Jm(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!Lc(p)&&p!==0)}for(;p!==0;){for(eV(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!a||t.lineIndentc&&(c=t.lineIndent),Lc(p)){l++;continue}if(t.lineIndente)&&l!==0)Se(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(x&&(a=t.line,c=t.lineStart,l=t.position),mg(t,e,vT,!0,s)&&(x?g=t.result:E=t.result),x||(pg(t,p,m,f,g,E,a,c,l),f=g=E=null),Jr(t,!0,-1),S=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&S!==0)Se(t,"bad indentation of a mapping entry");else if(t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),p=0,m=t.implicitTypes.length;p"),t.result!==null&&g.kind!==t.kind&&Se(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Se(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||d}i(mg,"composeNode");function jct(t){var e=t.position,r,n,s,o=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(a=t.input.charCodeAt(t.position))!==0&&(Jr(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(o=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!no(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),s=[],n.length<1&&Se(t,"directive name must not be less than one character in length");a!==0;){for(;Jm(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!Lc(a));break}if(Lc(a))break;for(r=t.position;a!==0&&!no(a);)a=t.input.charCodeAt(++t.position);s.push(t.input.slice(r,t.position))}a!==0&&eV(t),Od.call(Ahe,n)?Ahe[n](t,n,s):_T(t,'unknown document directive "'+n+'"')}if(Jr(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Jr(t,!0,-1)):o&&Se(t,"directives end mark is expected"),mg(t,t.lineIndent-1,vT,!1,!0),Jr(t,!0,-1),t.checkLineBreaks&&Qct.test(t.input.slice(e,t.position))&&_T(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&kT(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Jr(t,!0,-1));return}if(t.position"u"&&(r=e,e=null);var n=Fhe(t,r);if(typeof e!="function")return n;for(var s=0,o=n.length;sc&&(o=" ... ",e=n-c+o.length),r-n>c&&(a=" ...",r=n+c-a.length),{str:o+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:n-e+o.length}}i(X3,"getLine");function Z3(t,e){return dn.repeat(" ",e-t.length)+t}i(Z3,"padStart");function _at(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],s=[],o,a=-1;o=r.exec(t.buffer);)s.push(o.index),n.push(o.index+o[0].length),t.position<=o.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var c="",l,u,d=Math.min(t.line+e.linesAfter,s.length).toString().length,p=e.maxLength-(e.indent+d+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)u=X3(t.buffer,n[a-l],s[a-l],t.position-(n[a]-n[a-l]),p),c=dn.repeat(" ",e.indent)+Z3((t.line-l+1).toString(),d)+" | "+u.str+` +`+c;for(u=X3(t.buffer,n[a],s[a],t.position,p),c+=dn.repeat(" ",e.indent)+Z3((t.line+1).toString(),d)+" | "+u.str+` +`,c+=dn.repeat("-",e.indent+d+3+u.pos)+`^ +`,l=1;l<=e.linesAfter&&!(a+l>=s.length);l++)u=X3(t.buffer,n[a+l],s[a+l],t.position-(n[a]-n[a+l]),p),c+=dn.repeat(" ",e.indent)+Z3((t.line+l+1).toString(),d)+" | "+u.str+` +`;return c.replace(/\n$/,"")}i(_at,"makeSnippet");var Qat=_at,Dat=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],kat=["scalar","sequence","mapping"];function Lat(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}i(Lat,"compileStyleAliases");function Oat(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Dat.indexOf(r)===-1)throw new no('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Lat(e.styleAliases||null),kat.indexOf(this.kind)===-1)throw new no('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}i(Oat,"Type$1");var Wn=Oat;function whe(t,e){var r=[];return t[e].forEach(function(n){var s=r.length;r.forEach(function(o,a){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(s=a)}),r[s]=n}),r}i(whe,"compileList");function Mat(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(s){s.multi?(t.multi[s.kind].push(s),t.multi.fallback.push(s)):t[s.kind][s.tag]=t.fallback[s.tag]=s}for(i(n,"collectType"),e=0,r=arguments.length;e=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:i(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:i(function(t){return t.toString(10)},"decimal"),hexadecimal:i(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),oct=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ict(t){return!(t===null||!oct.test(t)||t[t.length-1]==="_")}i(ict,"resolveYamlFloat");function act(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}i(act,"constructYamlFloat");var cct=/^[-+]?[0-9]+e/;function lct(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(dn.isNegativeZero(t))return"-0.0";return r=t.toString(10),cct.test(r)?r.replace("e",".e"):r}i(lct,"representYamlFloat");function uct(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||dn.isNegativeZero(t))}i(uct,"isFloat");var dct=new Wn("tag:yaml.org,2002:float",{kind:"scalar",resolve:ict,construct:act,predicate:uct,represent:lct,defaultStyle:"lowercase"}),pct=Gat.extend({implicit:[Yat,Kat,sct,dct]}),mct=pct,Uhe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),qhe=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 fct(t){return t===null?!1:Uhe.exec(t)!==null||qhe.exec(t)!==null}i(fct,"resolveYamlTimestamp");function Act(t){var e,r,n,s,o,a,c,l=0,u=null,d,p,m;if(e=Uhe.exec(t),e===null&&(e=qhe.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,s=+e[3],!e[4])return new Date(Date.UTC(r,n,s));if(o=+e[4],a=+e[5],c=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(d=+e[10],p=+(e[11]||0),u=(d*60+p)*6e4,e[9]==="-"&&(u=-u)),m=new Date(Date.UTC(r,n,s,o,a,c,l)),u&&m.setTime(m.getTime()-u),m}i(Act,"constructYamlTimestamp");function hct(t){return t.toISOString()}i(hct,"representYamlTimestamp");var gct=new Wn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:fct,construct:Act,instanceOf:Date,represent:hct});function yct(t){return t==="<<"||t===null}i(yct,"resolveYamlMerge");var Ect=new Wn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:yct}),iV=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function Cct(t){if(t===null)return!1;var e,r,n=0,s=t.length,o=iV;for(r=0;r64)){if(e<0)return!1;n+=6}return n%8===0}i(Cct,"resolveYamlBinary");function Ict(t){var e,r,n=t.replace(/[\r\n=]/g,""),s=n.length,o=iV,a=0,c=[];for(e=0;e>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|o.indexOf(n.charAt(e));return r=s%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),new Uint8Array(c)}i(Ict,"constructYamlBinary");function xct(t){var e="",r=0,n,s,o=t.length,a=iV;for(n=0;n>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[n];return s=o%3,s===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):s===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):s===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}i(xct,"representYamlBinary");function wct(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}i(wct,"isBinary");var bct=new Wn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Cct,construct:Ict,predicate:wct,represent:xct}),Sct=Object.prototype.hasOwnProperty,Bct=Object.prototype.toString;function Rct(t){if(t===null)return!0;var e=[],r,n,s,o,a,c=t;for(r=0,n=c.length;r>10)+55296,(t-65536&1023)+56320)}i(zct,"charFromCodepoint");function Yhe(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}i(Yhe,"setProperty");var Whe=new Array(256),jhe=new Array(256);for(Xm=0;Xm<256;Xm++)Whe[Xm]=Bhe(Xm)?1:0,jhe[Xm]=Bhe(Xm);var Xm;function Vct(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||$he,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}i(Vct,"State$1");function Jhe(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Qat(r),new no(e,r)}i(Jhe,"generateError");function Se(t,e){throw Jhe(t,e)}i(Se,"throwError");function LT(t,e){t.onWarning&&t.onWarning.call(null,Jhe(t,e))}i(LT,"throwWarning");var Rhe={YAML:i(function(e,r,n){var s,o,a;e.version!==null&&Se(e,"duplication of %YAML directive"),n.length!==1&&Se(e,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),s===null&&Se(e,"ill-formed argument of the YAML directive"),o=parseInt(s[1],10),a=parseInt(s[2],10),o!==1&&Se(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&<(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(e,r,n){var s,o;n.length!==2&&Se(e,"TAG directive accepts exactly two arguments"),s=n[0],o=n[1],zhe.test(s)||Se(e,"ill-formed tag handle (first argument) of the TAG directive"),Od.call(e.tagMap,s)&&Se(e,'there is a previously declared suffix for "'+s+'" tag handle'),Vhe.test(o)||Se(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Se(e,"tag prefix is malformed: "+o)}e.tagMap[s]=o},"handleTagDirective")};function Ld(t,e,r,n){var s,o,a,c;if(e1&&(t.result+=dn.repeat(` +`,e-1))}i(cV,"writeFoldedLines");function Yct(t,e,r){var n,s,o,a,c,l,u,d,p=t.kind,m=t.result,f;if(f=t.input.charCodeAt(t.position),so(f)||fg(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(s=t.input.charCodeAt(t.position+1),so(s)||r&&fg(s)))return!1;for(t.kind="scalar",t.result="",o=a=t.position,c=!1;f!==0;){if(f===58){if(s=t.input.charCodeAt(t.position+1),so(s)||r&&fg(s))break}else if(f===35){if(n=t.input.charCodeAt(t.position-1),so(n))break}else{if(t.position===t.lineStart&&FT(t)||r&&fg(f))break;if(Lc(f))if(l=t.line,u=t.lineStart,d=t.lineIndent,Xr(t,!1,-1),t.lineIndent>=e){c=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=u,t.lineIndent=d;break}}c&&(Ld(t,o,a,!1),cV(t,t.line-l),o=a=t.position,c=!1),Zm(f)||(a=t.position+1),f=t.input.charCodeAt(++t.position)}return Ld(t,o,a,!1),t.result?!0:(t.kind=p,t.result=m,!1)}i(Yct,"readPlainScalar");function Wct(t,e){var r,n,s;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=s=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Ld(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,s=t.position;else return!0;else Lc(r)?(Ld(t,n,s,!0),cV(t,Xr(t,!1,e)),n=s=t.position):t.position===t.lineStart&&FT(t)?Se(t,"unexpected end of the document within a single quoted scalar"):(t.position++,s=t.position);Se(t,"unexpected end of the stream within a single quoted scalar")}i(Wct,"readSingleQuotedScalar");function jct(t,e){var r,n,s,o,a,c;if(c=t.input.charCodeAt(t.position),c!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(c=t.input.charCodeAt(t.position))!==0;){if(c===34)return Ld(t,r,t.position,!0),t.position++,!0;if(c===92){if(Ld(t,r,t.position,!0),c=t.input.charCodeAt(++t.position),Lc(c))Xr(t,!1,e);else if(c<256&&Whe[c])t.result+=jhe[c],t.position++;else if((a=Gct(c))>0){for(s=a,o=0;s>0;s--)c=t.input.charCodeAt(++t.position),(a=$ct(c))>=0?o=(o<<4)+a:Se(t,"expected hexadecimal character");t.result+=zct(o),t.position++}else Se(t,"unknown escape sequence");r=n=t.position}else Lc(c)?(Ld(t,r,n,!0),cV(t,Xr(t,!1,e)),r=n=t.position):t.position===t.lineStart&&FT(t)?Se(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Se(t,"unexpected end of the stream within a double quoted scalar")}i(jct,"readDoubleQuotedScalar");function Jct(t,e){var r=!0,n,s,o,a=t.tag,c,l=t.anchor,u,d,p,m,f,g=Object.create(null),E,x,w,S;if(S=t.input.charCodeAt(t.position),S===91)d=93,f=!1,c=[];else if(S===123)d=125,f=!0,c={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),S=t.input.charCodeAt(++t.position);S!==0;){if(Xr(t,!0,e),S=t.input.charCodeAt(t.position),S===d)return t.position++,t.tag=a,t.anchor=l,t.kind=f?"mapping":"sequence",t.result=c,!0;r?S===44&&Se(t,"expected the node content, but found ','"):Se(t,"missed comma between flow collection entries"),x=E=w=null,p=m=!1,S===63&&(u=t.input.charCodeAt(t.position+1),so(u)&&(p=m=!0,t.position++,Xr(t,!0,e))),n=t.line,s=t.lineStart,o=t.position,hg(t,e,DT,!1,!0),x=t.tag,E=t.result,Xr(t,!0,e),S=t.input.charCodeAt(t.position),(m||t.line===n)&&S===58&&(p=!0,S=t.input.charCodeAt(++t.position),Xr(t,!0,e),hg(t,e,DT,!1,!0),w=t.result),f?Ag(t,c,g,x,E,w,n,s,o):p?c.push(Ag(t,null,g,x,E,w,n,s,o)):c.push(E),Xr(t,!0,e),S=t.input.charCodeAt(t.position),S===44?(r=!0,S=t.input.charCodeAt(++t.position)):r=!1}Se(t,"unexpected end of the stream within a flow collection")}i(Jct,"readFlowCollection");function Kct(t,e){var r,n,s=eV,o=!1,a=!1,c=e,l=0,u=!1,d,p;if(p=t.input.charCodeAt(t.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(t.kind="scalar",t.result="";p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)eV===s?s=p===43?bhe:Mct:Se(t,"repeat of a chomping mode identifier");else if((d=Hct(p))>=0)d===0?Se(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Se(t,"repeat of an indentation width identifier"):(c=e+d-1,a=!0);else break;if(Zm(p)){do p=t.input.charCodeAt(++t.position);while(Zm(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!Lc(p)&&p!==0)}for(;p!==0;){for(aV(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!a||t.lineIndentc&&(c=t.lineIndent),Lc(p)){l++;continue}if(t.lineIndente)&&l!==0)Se(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(x&&(a=t.line,c=t.lineStart,l=t.position),hg(t,e,kT,!0,s)&&(x?g=t.result:E=t.result),x||(Ag(t,p,m,f,g,E,a,c,l),f=g=E=null),Xr(t,!0,-1),S=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&S!==0)Se(t,"bad indentation of a mapping entry");else if(t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),p=0,m=t.implicitTypes.length;p"),t.result!==null&&g.kind!==t.kind&&Se(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Se(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||d}i(hg,"composeNode");function rlt(t){var e=t.position,r,n,s,o=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(a=t.input.charCodeAt(t.position))!==0&&(Xr(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(o=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!so(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),s=[],n.length<1&&Se(t,"directive name must not be less than one character in length");a!==0;){for(;Zm(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!Lc(a));break}if(Lc(a))break;for(r=t.position;a!==0&&!so(a);)a=t.input.charCodeAt(++t.position);s.push(t.input.slice(r,t.position))}a!==0&&aV(t),Od.call(Rhe,n)?Rhe[n](t,n,s):LT(t,'unknown document directive "'+n+'"')}if(Xr(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Xr(t,!0,-1)):o&&Se(t,"directives end mark is expected"),hg(t,t.lineIndent-1,kT,!1,!0),Xr(t,!0,-1),t.checkLineBreaks&&Uct.test(t.input.slice(e,t.position))&<(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&FT(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Xr(t,!0,-1));return}if(t.position"u"&&(r=e,e=null);var n=Khe(t,r);if(typeof e!="function")return n;for(var s=0,o=n.length;s=55296&&r<=56319&&e+1=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}i(GI,"codePointAt");function Whe(t){var e=/^\n* /;return e.test(t)}i(Whe,"needIndentIndicator");var jhe=1,K3=2,Jhe=3,Khe=4,ug=5;function Slt(t,e,r,n,s,o,a,c){var l,u=0,d=null,p=!1,m=!1,f=n!==-1,g=-1,E=wlt(GI(t,0))&&blt(GI(t,t.length-1));if(e||a)for(l=0;l=65536?l+=2:l++){if(u=GI(t,l),!YI(u))return ug;E=E&&Che(u,d,c),d=u}else{for(l=0;l=65536?l+=2:l++){if(u=GI(t,l),u===zI)p=!0,f&&(m=m||l-g-1>n&&t[g+1]!==" ",g=l);else if(!YI(u))return ug;E=E&&Che(u,d,c),d=u}m=m||f&&l-g-1>n&&t[g+1]!==" "}return!p&&!m?E&&!a&&!s(t)?jhe:o===VI?ug:K3:r>9&&Whe(t)?ug:a?o===VI?ug:K3:m?Khe:Jhe}i(Slt,"chooseScalarStyle");function Blt(t,e,r,n,s){t.dump=(function(){if(e.length===0)return t.quotingType===VI?'""':"''";if(!t.noCompatMode&&(hlt.indexOf(e)!==-1||glt.test(e)))return t.quotingType===VI?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,r),a=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),c=n||t.flowLevel>-1&&r>=t.flowLevel;function l(u){return xlt(t,u)}switch(i(l,"testAmbiguity"),Slt(e,c,t.indent,a,l,t.quotingType,t.forceQuotes&&!n,s)){case jhe:return e;case K3:return"'"+e.replace(/'/g,"''")+"'";case Jhe:return"|"+Ihe(e,t.indent)+xhe(yhe(e,o));case Khe:return">"+Ihe(e,t.indent)+xhe(yhe(Rlt(e,a),o));case ug:return'"'+Nlt(e)+'"';default:throw new ro("impossible error: invalid scalar style")}})()}i(Blt,"writeScalar");function Ihe(t,e){var r=Whe(t)?String(e):"",n=t[t.length-1]===` +`&&(o+=r),o+=a;return o}i(Phe,"indentString");function nV(t,e){return` +`+dn.repeat(" ",t.indent*e)}i(nV,"generateNextLine");function Tlt(t,e){var r,n,s;for(r=0,n=t.implicitTypes.length;r=55296&&r<=56319&&e+1=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}i(YI,"codePointAt");function ige(t){var e=/^\n* /;return e.test(t)}i(ige,"needIndentIndicator");var age=1,sV=2,cge=3,lge=4,mg=5;function _lt(t,e,r,n,s,o,a,c){var l,u=0,d=null,p=!1,m=!1,f=n!==-1,g=-1,E=Plt(YI(t,0))&&vlt(YI(t,t.length-1));if(e||a)for(l=0;l=65536?l+=2:l++){if(u=YI(t,l),!KI(u))return mg;E=E&&_he(u,d,c),d=u}else{for(l=0;l=65536?l+=2:l++){if(u=YI(t,l),u===jI)p=!0,f&&(m=m||l-g-1>n&&t[g+1]!==" ",g=l);else if(!KI(u))return mg;E=E&&_he(u,d,c),d=u}m=m||f&&l-g-1>n&&t[g+1]!==" "}return!p&&!m?E&&!a&&!s(t)?age:o===JI?mg:sV:r>9&&ige(t)?mg:a?o===JI?mg:sV:m?lge:cge}i(_lt,"chooseScalarStyle");function Qlt(t,e,r,n,s){t.dump=(function(){if(e.length===0)return t.quotingType===JI?'""':"''";if(!t.noCompatMode&&(wlt.indexOf(e)!==-1||blt.test(e)))return t.quotingType===JI?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,r),a=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),c=n||t.flowLevel>-1&&r>=t.flowLevel;function l(u){return Tlt(t,u)}switch(i(l,"testAmbiguity"),_lt(e,c,t.indent,a,l,t.quotingType,t.forceQuotes&&!n,s)){case age:return e;case sV:return"'"+e.replace(/'/g,"''")+"'";case cge:return"|"+Qhe(e,t.indent)+Dhe(Phe(e,o));case lge:return">"+Qhe(e,t.indent)+Dhe(Phe(Dlt(e,a),o));case mg:return'"'+klt(e)+'"';default:throw new no("impossible error: invalid scalar style")}})()}i(Qlt,"writeScalar");function Qhe(t,e){var r=ige(t)?String(e):"",n=t[t.length-1]===` `,s=n&&(t[t.length-2]===` `||t===` `),o=s?"+":n?"":"-";return r+o+` -`}i(Ihe,"blockHeader");function xhe(t){return t[t.length-1]===` -`?t.slice(0,-1):t}i(xhe,"dropEndingNewline");function Rlt(t,e){for(var r=/(\n+)([^\n]*)/g,n=(function(){var u=t.indexOf(` -`);return u=u!==-1?u:t.length,r.lastIndex=u,whe(t.slice(0,u),e)})(),s=t[0]===` +`}i(Qhe,"blockHeader");function Dhe(t){return t[t.length-1]===` +`?t.slice(0,-1):t}i(Dhe,"dropEndingNewline");function Dlt(t,e){for(var r=/(\n+)([^\n]*)/g,n=(function(){var u=t.indexOf(` +`);return u=u!==-1?u:t.length,r.lastIndex=u,khe(t.slice(0,u),e)})(),s=t[0]===` `||t[0]===" ",o,a;a=r.exec(t);){var c=a[1],l=a[2];o=l[0]===" ",n+=c+(!s&&!o&&l!==""?` -`:"")+whe(l,e),s=o}return n}i(Rlt,"foldString");function whe(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,s=0,o,a=0,c=0,l="";n=r.exec(t);)c=n.index,c-s>e&&(o=a>s?a:c,l+=` +`:"")+khe(l,e),s=o}return n}i(Dlt,"foldString");function khe(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,s=0,o,a=0,c=0,l="";n=r.exec(t);)c=n.index,c-s>e&&(o=a>s?a:c,l+=` `+t.slice(s,o),s=o+1),a=c;return l+=` `,t.length-s>e&&a>s?l+=t.slice(s,a)+` -`+t.slice(a+1):l+=t.slice(s),l.slice(1)}i(whe,"foldLine");function Nlt(t){for(var e="",r=0,n,s=0;s=65536?s+=2:s++)r=GI(t,s),n=jn[r],!n&&YI(r)?(e+=t[s],r>=65536&&(e+=t[s+1])):e+=n||Elt(r);return e}i(Nlt,"escapeString");function Tlt(t,e,r){var n="",s=t.tag,o,a,c;for(o=0,a=r.length;o"u"&&lu(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=s,t.dump="["+n+"]"}i(Tlt,"writeFlowSequence");function bhe(t,e,r,n){var s="",o=t.tag,a,c,l;for(a=0,c=r.length;a"u"&&lu(t,e+1,null,!0,!0,!1,!0))&&((!n||s!=="")&&(s+=J3(t,e)),t.dump&&zI===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=o,t.dump=s||"[]"}i(bhe,"writeBlockSequence");function Plt(t,e,r){var n="",s=t.tag,o=Object.keys(r),a,c,l,u,d;for(a=0,c=o.length;a1024&&(d+="? "),d+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),lu(t,e,u,!1,!1)&&(d+=t.dump,n+=d));t.tag=s,t.dump="{"+n+"}"}i(Plt,"writeFlowMapping");function vlt(t,e,r,n){var s="",o=t.tag,a=Object.keys(r),c,l,u,d,p,m;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new ro("sortKeys must be a boolean or a function");for(c=0,l=a.length;c1024,p&&(t.dump&&zI===t.dump.charCodeAt(0)?m+="?":m+="? "),m+=t.dump,p&&(m+=J3(t,e)),lu(t,e+1,d,!0,p)&&(t.dump&&zI===t.dump.charCodeAt(0)?m+=":":m+=": ",m+=t.dump,s+=m));t.tag=o,t.dump=s||"{}"}i(vlt,"writeBlockMapping");function She(t,e,r){var n,s,o,a,c,l;for(s=r?t.explicitTypes:t.implicitTypes,o=0,a=s.length;o tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}i(She,"detectType");function lu(t,e,r,n,s,o,a){t.tag=null,t.dump=r,She(t,r,!1)||She(t,r,!0);var c=qhe.call(t.dump),l=n,u;n&&(n=t.flowLevel<0||t.flowLevel>e);var d=c==="[object Object]"||c==="[object Array]",p,m;if(d&&(p=t.duplicates.indexOf(r),m=p!==-1),(t.tag!==null&&t.tag!=="?"||m||t.indent!==2&&e>0)&&(s=!1),m&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(d&&m&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),c==="[object Object]")n&&Object.keys(t.dump).length!==0?(vlt(t,e,t.dump,s),m&&(t.dump="&ref_"+p+t.dump)):(Plt(t,e,t.dump),m&&(t.dump="&ref_"+p+" "+t.dump));else if(c==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!a&&e>0?bhe(t,e-1,t.dump,s):bhe(t,e,t.dump,s),m&&(t.dump="&ref_"+p+t.dump)):(Tlt(t,e,t.dump),m&&(t.dump="&ref_"+p+" "+t.dump));else if(c==="[object String]")t.tag!=="?"&&Blt(t,t.dump,e,o,l);else{if(c==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new ro("unacceptable kind of an object to dump "+c)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}i(lu,"writeNode");function _lt(t,e){var r=[],n=[],s,o;for(X3(t,r,n),s=0,o=n.length;s0){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 s=r.remote.split("/");return r.shortName=s[s.length-1].replace(".git",""),r}};var B4=D(require("fs"),1),lIe=D(require("os"),1),fx=D(require("path"),1);var TV=D(require("fs"),1),cEe=D(require("os"),1),lEe=D(require("path"),1),uEe=D(aEe(),1);var KT=class t{static{i(this,"Context")}static _tmpDir=TV.default.mkdtempSync(lEe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||cEe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return TV.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return uEe.tmpNameSync(e)}};var du=class{static{i(this,"Exec")}static async exec(e,r,n){return G(`Exec.exec: ${e} ${r?.join(" ")}`),ud(e,r,n)}static async getExecOutput(e,r,n){return G(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),JE(e,r,n)}};var S4=D(require("crypto"),1),aIe=D(require("fs"),1),mx=D(require("path"),1),cIe=D(eIe(),1);var Et=class t extends Error{static{i(this,"CsvError")}constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let o of s)for(let a in o){let c=o[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var tIe=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var kP=i(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.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},w4=x4;var ZAt=12,eht=13,tht=10,rht=32,nht=9,rIe=i(function(t){return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!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.map(e=>e.length),t.quote!==null?t.quote.length:0),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(e=>e.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:[Buffer.from(Buffer.from([eht],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([tht],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([ZAt],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([rht],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([nht],"utf8").toString(),t.encoding)]}},"init_state");var nIe=i(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var b4=i(function(t){let e={};for(let n in t)e[nIe(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 Et("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 Et("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 Et("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 s=Date.parse(n);return isNaN(s)?n:new Date(s)};else if(typeof e.cast_date!="function")throw new Et("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=kP(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new Et("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 Et("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 Et("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 Et("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 Et("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(e.comment_no_infix)}`],e);let r=JSON.stringify(e.delimiter);if(Array.isArray(e.delimiter)||(e.delimiter=[e.delimiter]),e.delimiter.length===0)throw new Et("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],e);if(e.delimiter=e.delimiter.map(function(n){if(n==null||n===!1)return Buffer.from(",",e.encoding);if(typeof n=="string"&&(n=Buffer.from(n,e.encoding)),!Buffer.isBuffer(n)||n.length===0)throw new Et("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 Et("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 Et("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 Et("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 Et("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 Et("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,s){if(typeof n!="string"&&!Buffer.isBuffer(n))throw new Et("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${s},`,`got ${JSON.stringify(n)}`],e);if(n.length===0)throw new Et("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${s},`,`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 sIe=i(function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},"isRecordEmpty"),sht=13,oht=10,Ng={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},oIe=i(function(t={}){let e={bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},r=b4(t);return{info:e,original_options:t,options:r,state:rIe(r),__needMoreData:i(function(n,s,o){if(o)return!1;let{encoding:a,escape:c,quote:l}=this.options,{quoting:u,needMoreDataSize:d,recordDelimiterMaxLength:p}=this.state,m=s-n-1,f=Math.max(d,p===0?Buffer.from(`\r -`,a).length:p,u?(c===null?0:c.length)+l.length:0,u?l.length+p:0);return mS){this.state.stop=!0,a();return}this.state.quoting===!1&&M.length===0&&this.__autoDiscoverRecordDelimiter(se,H)&&(M=this.options.record_delimiter);let oe=se[H];if(f===!0&&ke.append(oe),(oe===sht||oe===oht)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(Q!==null&&this.state.quoting===!0&&this.__isEscape(se,H,oe)&&H+Q.lengthNg[Zo].equals(this.state.field.toString())?Zo:!1).filter(Boolean)[0],cs=this.__error(new Et("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(_t.column)} at line ${_t.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,as?`(${as} bom)`:void 0],this.options,_t,{field:this.state.field}));if(cs!==void 0)return cs}}else{this.state.quoting=!0,H+=q.length-1;continue}if(this.state.quoting===!1){let _t=this.__isRecordDelimiter(oe,se,H);if(_t!==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)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),H+=_t-1;continue}if(x===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,H+=_t-1;continue}this.info.bytes=this.state.bufBytesStart+H;let Zo=this.__onField();if(Zo!==void 0)return Zo;this.info.bytes=this.state.bufBytesStart+H+_t;let Nl=this.__onRecord(o);if(Nl!==void 0)return Nl;if(w!==-1&&this.info.records>=w){this.state.stop=!0,a();return}}this.state.commenting=!1,H+=_t-1;continue}if(this.state.commenting)continue;if(P!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(P,se,H,oe)!==0){this.state.commenting=!0;continue}let as=this.__isDelimiter(se,H,oe);if(as!==0){this.info.bytes=this.state.bufBytesStart+H;let cs=this.__onField();if(cs!==void 0)return cs;H+=as-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new Et("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let It=p===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(se,H),at=E===!1||this.state.wasQuoting===!1;if(It===!0&&at===!0)this.state.field.append(oe);else{if(E===!0&&!this.__isCharTrimable(se,H))return this.__error(new Et("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()));It===!1&&(H+=this.__isCharTrimable(se,H)-1);continue}}if(s===!0)if(this.state.quoting===!0){let oe=this.__error(new Et("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(oe!==void 0)return oe}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+H;let oe=this.__onField();if(oe!==void 0)return oe;let It=this.__onRecord(o);if(It!==void 0)return It}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=H,this.state.previousBuf=se.slice(H);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},"parse"),__onRecord:i(function(n){let{columns:s,group_columns_by_name:o,encoding:a,info:c,from:l,relax_column_count:u,relax_column_count_less:d,relax_column_count_more:p,raw:m,skip_records_with_empty_values:f}=this.options,{enabled:g,record:E}=this.state;if(g===!1)return this.__resetRecord();let x=E.length;if(s===!0){if(f===!0&&sIe(E)){this.__resetRecord();return}return this.__firstLineToColumns(E)}if(s===!1&&this.info.records===0&&(this.state.expectedRecordLength=x),x!==this.state.expectedRecordLength){let w=s===!1?new Et("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${x} on line ${this.info.lines}`],this.options,this.__infoField(),{record:E}):new Et("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${s.length},`,`got ${x} on line ${this.info.lines}`],this.options,this.__infoField(),{record:E});if(u===!0||d===!0&&xthis.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=w;else{let S=this.__error(w);if(S)return S}}if(f===!0&&sIe(E)){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:w}=this.options;if(s!==!1){let S={};for(let P=0,Q=E.length;P{let{timchars:l}=this.state;e:for(let u=0;u=0},"__isFloat"),__compareBytes:i(function(n,s,o,a){if(n[0]!==a)return 0;let c=n.length;for(let l=1;l=65536?s+=2:s++)r=YI(t,s),n=jn[r],!n&&KI(r)?(e+=t[s],r>=65536&&(e+=t[s+1])):e+=n||Blt(r);return e}i(klt,"escapeString");function Llt(t,e,r){var n="",s=t.tag,o,a,c;for(o=0,a=r.length;o"u"&&uu(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=s,t.dump="["+n+"]"}i(Llt,"writeFlowSequence");function Lhe(t,e,r,n){var s="",o=t.tag,a,c,l;for(a=0,c=r.length;a"u"&&uu(t,e+1,null,!0,!0,!1,!0))&&((!n||s!=="")&&(s+=nV(t,e)),t.dump&&jI===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=o,t.dump=s||"[]"}i(Lhe,"writeBlockSequence");function Olt(t,e,r){var n="",s=t.tag,o=Object.keys(r),a,c,l,u,d;for(a=0,c=o.length;a1024&&(d+="? "),d+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),uu(t,e,u,!1,!1)&&(d+=t.dump,n+=d));t.tag=s,t.dump="{"+n+"}"}i(Olt,"writeFlowMapping");function Mlt(t,e,r,n){var s="",o=t.tag,a=Object.keys(r),c,l,u,d,p,m;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new no("sortKeys must be a boolean or a function");for(c=0,l=a.length;c1024,p&&(t.dump&&jI===t.dump.charCodeAt(0)?m+="?":m+="? "),m+=t.dump,p&&(m+=nV(t,e)),uu(t,e+1,d,!0,p)&&(t.dump&&jI===t.dump.charCodeAt(0)?m+=":":m+=": ",m+=t.dump,s+=m));t.tag=o,t.dump=s||"{}"}i(Mlt,"writeBlockMapping");function Ohe(t,e,r){var n,s,o,a,c,l;for(s=r?t.explicitTypes:t.implicitTypes,o=0,a=s.length;o tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}i(Ohe,"detectType");function uu(t,e,r,n,s,o,a){t.tag=null,t.dump=r,Ohe(t,r,!1)||Ohe(t,r,!0);var c=Zhe.call(t.dump),l=n,u;n&&(n=t.flowLevel<0||t.flowLevel>e);var d=c==="[object Object]"||c==="[object Array]",p,m;if(d&&(p=t.duplicates.indexOf(r),m=p!==-1),(t.tag!==null&&t.tag!=="?"||m||t.indent!==2&&e>0)&&(s=!1),m&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(d&&m&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),c==="[object Object]")n&&Object.keys(t.dump).length!==0?(Mlt(t,e,t.dump,s),m&&(t.dump="&ref_"+p+t.dump)):(Olt(t,e,t.dump),m&&(t.dump="&ref_"+p+" "+t.dump));else if(c==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!a&&e>0?Lhe(t,e-1,t.dump,s):Lhe(t,e,t.dump,s),m&&(t.dump="&ref_"+p+t.dump)):(Llt(t,e,t.dump),m&&(t.dump="&ref_"+p+" "+t.dump));else if(c==="[object String]")t.tag!=="?"&&Qlt(t,t.dump,e,o,l);else{if(c==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new no("unacceptable kind of an object to dump "+c)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}i(uu,"writeNode");function Flt(t,e){var r=[],n=[],s,o;for(oV(t,r,n),s=0,o=n.length;s0){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 s=r.remote.split("/");return r.shortName=s[s.length-1].replace(".git",""),r}};var Q4=D(require("fs"),1),IIe=D(require("os"),1),yx=D(require("path"),1);var LV=D(require("fs"),1),CEe=D(require("os"),1),IEe=D(require("path"),1),xEe=D(EEe(),1);var tP=class t{static{i(this,"Context")}static _tmpDir=LV.default.mkdtempSync(IEe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||CEe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return LV.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return xEe.tmpNameSync(e)}};var pu=class{static{i(this,"Exec")}static async exec(e,r,n){return G(`Exec.exec: ${e} ${r?.join(" ")}`),ud(e,r,n)}static async getExecOutput(e,r,n){return G(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),eC(e,r,n)}};var _4=D(require("crypto"),1),EIe=D(require("fs"),1),gx=D(require("path"),1),CIe=D(pIe(),1);var Et=class t extends Error{static{i(this,"CsvError")}constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let o of s)for(let a in o){let c=o[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var mIe=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var FP=i(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.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},P4=T4;var iht=12,aht=13,cht=10,lht=32,uht=9,fIe=i(function(t){return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!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 P4(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter.map(e=>e.length),t.quote!==null?t.quote.length:0),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new P4(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?0:Math.max(...t.record_delimiter.map(e=>e.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:[Buffer.from(Buffer.from([aht],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([cht],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([iht],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([lht],"utf8").toString(),t.encoding),Buffer.from(Buffer.from([uht],"utf8").toString(),t.encoding)]}},"init_state");var AIe=i(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var v4=i(function(t){let e={};for(let n in t)e[AIe(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 Et("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 Et("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 Et("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 s=Date.parse(n);return isNaN(s)?n:new Date(s)};else if(typeof e.cast_date!="function")throw new Et("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=FP(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new Et("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 Et("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 Et("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 Et("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 Et("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(e.comment_no_infix)}`],e);let r=JSON.stringify(e.delimiter);if(Array.isArray(e.delimiter)||(e.delimiter=[e.delimiter]),e.delimiter.length===0)throw new Et("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],e);if(e.delimiter=e.delimiter.map(function(n){if(n==null||n===!1)return Buffer.from(",",e.encoding);if(typeof n=="string"&&(n=Buffer.from(n,e.encoding)),!Buffer.isBuffer(n)||n.length===0)throw new Et("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 Et("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 Et("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 Et("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 Et("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 Et("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,s){if(typeof n!="string"&&!Buffer.isBuffer(n))throw new Et("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${s},`,`got ${JSON.stringify(n)}`],e);if(n.length===0)throw new Et("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${s},`,`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 hIe=i(function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},"isRecordEmpty"),dht=13,pht=10,vg={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},gIe=i(function(t={}){let e={bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},r=v4(t);return{info:e,original_options:t,options:r,state:fIe(r),__needMoreData:i(function(n,s,o){if(o)return!1;let{encoding:a,escape:c,quote:l}=this.options,{quoting:u,needMoreDataSize:d,recordDelimiterMaxLength:p}=this.state,m=s-n-1,f=Math.max(d,p===0?Buffer.from(`\r +`,a).length:p,u?(c===null?0:c.length)+l.length:0,u?l.length+p:0);return mS){this.state.stop=!0,a();return}this.state.quoting===!1&&M.length===0&&this.__autoDiscoverRecordDelimiter(oe,H)&&(M=this.options.record_delimiter);let ne=oe[H];if(f===!0&&Le.append(ne),(ne===dht||ne===pht)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(Q!==null&&this.state.quoting===!0&&this.__isEscape(oe,H,ne)&&H+Q.lengthvg[ti].equals(this.state.field.toString())?ti:!1).filter(Boolean)[0],cs=this.__error(new Et("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(_t.column)} at line ${_t.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,as?`(${as} bom)`:void 0],this.options,_t,{field:this.state.field}));if(cs!==void 0)return cs}}else{this.state.quoting=!0,H+=q.length-1;continue}if(this.state.quoting===!1){let _t=this.__isRecordDelimiter(ne,oe,H);if(_t!==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)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),H+=_t-1;continue}if(x===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,H+=_t-1;continue}this.info.bytes=this.state.bufBytesStart+H;let ti=this.__onField();if(ti!==void 0)return ti;this.info.bytes=this.state.bufBytesStart+H+_t;let Nl=this.__onRecord(o);if(Nl!==void 0)return Nl;if(w!==-1&&this.info.records>=w){this.state.stop=!0,a();return}}this.state.commenting=!1,H+=_t-1;continue}if(this.state.commenting)continue;if(P!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(P,oe,H,ne)!==0){this.state.commenting=!0;continue}let as=this.__isDelimiter(oe,H,ne);if(as!==0){this.info.bytes=this.state.bufBytesStart+H;let cs=this.__onField();if(cs!==void 0)return cs;H+=as-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new Et("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let It=p===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(oe,H),at=E===!1||this.state.wasQuoting===!1;if(It===!0&&at===!0)this.state.field.append(ne);else{if(E===!0&&!this.__isCharTrimable(oe,H))return this.__error(new Et("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()));It===!1&&(H+=this.__isCharTrimable(oe,H)-1);continue}}if(s===!0)if(this.state.quoting===!0){let ne=this.__error(new Et("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(ne!==void 0)return ne}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+H;let ne=this.__onField();if(ne!==void 0)return ne;let It=this.__onRecord(o);if(It!==void 0)return It}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=H,this.state.previousBuf=oe.slice(H);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},"parse"),__onRecord:i(function(n){let{columns:s,group_columns_by_name:o,encoding:a,info:c,from:l,relax_column_count:u,relax_column_count_less:d,relax_column_count_more:p,raw:m,skip_records_with_empty_values:f}=this.options,{enabled:g,record:E}=this.state;if(g===!1)return this.__resetRecord();let x=E.length;if(s===!0){if(f===!0&&hIe(E)){this.__resetRecord();return}return this.__firstLineToColumns(E)}if(s===!1&&this.info.records===0&&(this.state.expectedRecordLength=x),x!==this.state.expectedRecordLength){let w=s===!1?new Et("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${x} on line ${this.info.lines}`],this.options,this.__infoField(),{record:E}):new Et("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${s.length},`,`got ${x} on line ${this.info.lines}`],this.options,this.__infoField(),{record:E});if(u===!0||d===!0&&xthis.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=w;else{let S=this.__error(w);if(S)return S}}if(f===!0&&hIe(E)){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:w}=this.options;if(s!==!1){let S={};for(let P=0,Q=E.length;P{let{timchars:l}=this.state;e:for(let u=0;u=0},"__isFloat"),__compareBytes:i(function(n,s,o,a){if(n[0]!==a)return 0;let c=n.length;for(let l=1;lthis.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var iIe=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],n=oIe(e),s=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),o=i(()=>{},"close"),a=n.parse(t,!0,s,o);if(a!==void 0)throw a;return r},"parse");var qd=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(ia(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=iIe(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let o of s)o.length==1?r?.ignoreComma?n.push(o[0]):n.push(...o[0].split(",")):r?.ignoreComma?n.push(o.join(",")):n.push(...o);return n.filter(o=>o).map(o=>r?.trimWhitespace===!1?o:o.trim())}static getInputNumber(e){let r=ia(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;nsetTimeout(r,e*1e3))}static hash(e){return S4.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"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return S4.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return cIe.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=mx.default.resolve(e);return mx.default.resolve(r).startsWith(n.endsWith(mx.default.sep)?n:`${n}${mx.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),o=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(o||a.length===0)&&a.push(`${o}s`),a.join("")}};var $d=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||fx.default.join(lIe.default.homedir(),".docker")}static configFile(){let e=fx.default.join(t.configDir,"config.json");if(B4.default.existsSync(e))return JSON.parse(B4.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Gs("docker",!0).then(e=>(G(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(G(`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 du.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return du.getExecOutput("docker",e,t.execOptions(r))}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("@"),s=e.lastIndexOf(":");if(n>=0)r=n;else if(s>=0)r=s;else return{repository:e,tag:"latest"};let o=e.slice(r+1);return o.indexOf("/")===-1?{repository:e.slice(0,r),tag:o}:{repository:e,tag:"latest"}}static async pull(e,r){let n=t.parseRepoTag(e),s=n.repository.replace(/[^a-zA-Z0-9.]+/g,"--"),o=n.tag.replace(/[^a-zA-Z0-9.]+/g,"--"),a=new lg({htcName:s,htcVersion:o,baseCacheDir:fx.default.join(t.configDir,".cache","images",s),cacheFile:"image.tar"}),c;r&&(c=await a.find(),c&&(Ke(`Image found from cache in ${c}`),await t.getExecOutput(["load","-i",c],{ignoreReturnCode:!0}).then(u=>{u.stderr.length>0&&u.exitCode!=0&&Qr(`Failed to load image from cache: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`)})));let l=!0;if(await t.getExecOutput(["pull",e],{ignoreReturnCode:!0}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0){l=!1;let d=u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error";if(c)Qr(`Failed to pull image, using one from cache: ${d}`);else throw new Error(d)}}),r&&l){let u=fx.default.join(KT.tmpDir(),`${qd.hash(e)}.tar`);await t.getExecOutput(["save","-o",u,e],{ignoreReturnCode:!0}).then(async d=>{if(d.stderr.length>0&&d.exitCode!=0)Qr(`Failed to save image: ${d.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);else{let p=await a.save(u);Ke(`Image cached to ${p}`)}})}}};var LP=require("fs"),uIe=require("os");var Tg=class{static{i(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,LP.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,LP.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${uIe.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 P4=D(AIe(),1),hIe=D(eh(),1);var yht=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function gIe(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}`}i(gIe,"getAuthString");function yIe(t){return new P4.HttpClient().getAgent(t)}i(yIe,"getProxyAgent");function Eht(t){return new P4.HttpClient().getAgentDispatcher(t)}i(Eht,"getProxyAgentDispatcher");function EIe(t){let e=Eht(t);return i((n,s)=>yht(this,void 0,void 0,function*(){return(0,hIe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}i(EIe,"getProxyFetch");function CIe(){return process.env.GITHUB_API_URL||"https://api.github.com"}i(CIe,"getApiBaseUrl");function v4(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}i(v4,"getUserAgentWithOrchestrationId");function Gd(){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})`:""}i(Gd,"getUserAgent");function GP(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((s,o)=>GP.bind(null,t,o,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,o)=>o.hook.bind(null,s,n),r)():r(n))}i(GP,"register");function IIe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=i((o,a)=>Promise.resolve().then(s.bind(null,a)).then(o.bind(null,a)),"hook")),e==="after"&&(n=i((o,a)=>{let c;return Promise.resolve().then(o.bind(null,a)).then(l=>(c=l,s(c,a))).then(()=>c)},"hook")),e==="error"&&(n=i((o,a)=>Promise.resolve().then(o.bind(null,a)).catch(c=>s(c,a)),"hook")),t.registry[r].push({hook:n,orig:s})}i(IIe,"addHook");function xIe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}i(xIe,"removeHook");var wIe=Function.bind,bIe=wIe.bind(wIe);function SIe(t,e,r){let n=bIe(xIe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let o=r?[e,s,r]:[e,s];t[s]=t.api[s]=bIe(IIe,null).apply(null,o)})}i(SIe,"bindApi");function Iht(){let t=Symbol("Singular"),e={registry:{}},r=GP.bind(null,e,t);return SIe(r,e,t),r}i(Iht,"Singular");function xht(){let t={registry:{}},e=GP.bind(null,t);return SIe(e,t),e}i(xht,"Collection");var BIe={Singular:Iht,Collection:xht};var wht="0.0.0-development",bht=`octokit-endpoint.js/${wht} ${Gd()}`,Sht={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":bht},mediaType:{format:""}};function Bht(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}i(Bht,"lowercaseKeys");function Rht(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)}i(Rht,"isPlainObject");function TIe(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{Rht(e[n])?n in t?r[n]=TIe(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}i(TIe,"mergeDeep");function RIe(t){for(let e in t)t[e]===void 0&&delete t[e];return t}i(RIe,"removeUndefinedProperties");function Q4(t,e,r){if(typeof e=="string"){let[s,o]=e.split(" ");r=Object.assign(o?{method:s,url:o}:{url:s},r)}else r=Object.assign({},e);r.headers=Bht(r.headers),RIe(r),RIe(r.headers);let n=TIe(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(n.mediaType.previews=t.mediaType.previews.filter(s=>!n.mediaType.previews.includes(s)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(s=>s.replace(/-preview/,""))),n}i(Q4,"merge");function Nht(t,e){let r=/\?/.test(t)?"&":"?",n=Object.keys(e);return n.length===0?t:t+r+n.map(s=>s==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${s}=${encodeURIComponent(e[s])}`).join("&")}i(Nht,"addQueryParameters");var Tht=/\{[^{}}]+\}/g;function Pht(t){return t.replace(/(?:^\W+)|(?:(?r.concat(n),[]):[]}i(vht,"extractUrlVariableNames");function NIe(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}i(NIe,"omit");function PIe(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("")}i(PIe,"encodeReserved");function vg(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}i(vg,"encodeUnreserved");function hx(t,e,r){return e=t==="+"||t==="#"?PIe(e):vg(e),r?vg(r)+"="+e:e}i(hx,"encodeValue");function Pg(t){return t!=null}i(Pg,"isDefined");function _4(t){return t===";"||t==="&"||t==="?"}i(_4,"isKeyOperator");function _ht(t,e,r,n){var s=t[r],o=[];if(Pg(s)&&s!=="")if(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||typeof s=="boolean")s=s.toString(),n&&n!=="*"&&(s=s.substring(0,parseInt(n,10))),o.push(hx(e,s,_4(e)?r:""));else if(n==="*")Array.isArray(s)?s.filter(Pg).forEach(function(a){o.push(hx(e,a,_4(e)?r:""))}):Object.keys(s).forEach(function(a){Pg(s[a])&&o.push(hx(e,s[a],a))});else{let a=[];Array.isArray(s)?s.filter(Pg).forEach(function(c){a.push(hx(e,c))}):Object.keys(s).forEach(function(c){Pg(s[c])&&(a.push(vg(c)),a.push(hx(e,s[c].toString())))}),_4(e)?o.push(vg(r)+"="+a.join(",")):a.length!==0&&o.push(a.join(","))}else e===";"?Pg(s)&&o.push(vg(r)):s===""&&(e==="&"||e==="?")?o.push(vg(r)+"="):s===""&&o.push("");return o}i(_ht,"getValues");function Qht(t){return{expand:Dht.bind(null,t)}}i(Qht,"parseUrl");function Dht(t,e){var r=["+","#",".","/",";","?","&"];return t=t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(n,s,o){if(s){let c="",l=[];if(r.indexOf(s.charAt(0))!==-1&&(c=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(u){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(u);l.push(_ht(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 PIe(o)}),t==="/"?t:t.replace(/\/$/,"")}i(Dht,"expand");function vIe(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),s,o=NIe(t,["method","baseUrl","url","headers","request","mediaType"]),a=vht(r);r=Qht(r).expand(o),/^http/.test(r)||(r=t.baseUrl+r);let c=Object.keys(t).filter(d=>a.includes(d)).concat("baseUrl"),l=NIe(o,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 m=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${p}-preview${m}`}).join(",")}return["GET","HEAD"].includes(e)?r=Nht(r,l):"data"in l?s=l.data:Object.keys(l).length&&(s=l),!n["content-type"]&&typeof s<"u"&&(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof s>"u"&&(s=""),Object.assign({method:e,url:r,headers:n},typeof s<"u"?{body:s}:null,t.request?{request:t.request}:null)}i(vIe,"parse");function kht(t,e,r){return vIe(Q4(t,e,r))}i(kht,"endpointWithDefaults");function _Ie(t,e){let r=Q4(t,e),n=kht.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:_Ie.bind(null,r),merge:Q4.bind(null,r),parse:vIe})}i(_Ie,"withDefaults");var QIe=_Ie(null,Sht);var VIe=D(OIe(),1);var Lht=/^-?\d+$/,UIe=/^-?\d+n+$/,D4=JSON.stringify,MIe=JSON.parse,Oht=/^-?\d+n$/,Mht=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,Fht=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,qIe=i((t,e,r)=>"rawJSON"in JSON?D4(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?D4(t,(a,c)=>typeof c=="string"&&!!c.match(UIe)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(Mht,"$1$2$3").replace(Fht,"$1$2$3"):D4(t,e,r),"JSONStringify"),Uht=i(()=>JSON.parse("1",(t,e,r)=>!!r&&r.source==="1"),"isContextSourceSupported"),qht=i((t,e,r,n)=>typeof e=="string"&&e.match(Oht)?BigInt(e.slice(0,-1)):typeof e=="string"&&e.match(UIe)?e.slice(0,-1):typeof n!="function"?e:n(t,e,r),"convertMarkedBigIntsReviver"),$ht=i((t,e)=>JSON.parse(t,(r,n,s)=>{let o=typeof n=="number"&&(n>Number.MAX_SAFE_INTEGER||n{if(!t)return MIe(t,e);if(Uht())return $ht(t,e);let r=t.replace(Ght,(n,s,o,a)=>{let c=n[0]==='"';if(c&&!!n.match(Hht))return n.substring(0,n.length-1)+'n"';let u=o||a,d=s&&(s.lengthqht(n,s,o,e))},"JSONParse");var sf=class extends Error{static{i(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 s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?"","noop");async function zIe(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,s=Yht(t.body)||Array.isArray(t.body)?qIe(t.body):t.body,o=Object.fromEntries(Object.entries(t.headers).map(([p,m])=>[p,String(m)])),a;try{a=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:o,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(p){let m="Unknown Error";if(p instanceof Error){if(p.name==="AbortError")throw p.status=500,p;m=p.message,p.name==="TypeError"&&"cause"in p&&(p.cause instanceof Error?m=p.cause.message:typeof p.cause=="string"&&(m=p.cause))}let f=new sf(m,500,{request:t});throw f.cause=p,f}let c=a.status,l=a.url,u={};for(let[p,m]of a.headers)u[p]=m;let d={url:l,status:c,headers:u,data:""};if("deprecation"in u){let p=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),m=p&&p.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${m?`. See ${m}`:""}`)}if(c===204||c===205)return d;if(t.method==="HEAD"){if(c<400)return d;throw new sf(a.statusText,c,{response:d,request:t})}if(c===304)throw d.data=await k4(a),new sf("Not modified",c,{response:d,request:t});if(c>=400)throw d.data=await k4(a),new sf(jht(d.data),c,{response:d,request:t});return d.data=n?await k4(a):a.body,d}i(zIe,"fetchWrapper");async function k4(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(HIe);let r=(0,VIe.safeParse)(e);if(Wht(r)){let n="";try{return n=await t.text(),GIe(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"?t.text().catch(HIe):t.arrayBuffer().catch(()=>new ArrayBuffer(0))}i(k4,"getResponseData");function Wht(t){return t.type==="application/json"||t.type==="application/scim+json"}i(Wht,"isJSONResponse");function jht(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)}`}i(jht,"toErrorMessage");function L4(t,e){let r=t.defaults(e);return Object.assign(i(function(s,o){let a=r.merge(s,o);if(!a.request||!a.request.hook)return zIe(r.parse(a));let c=i((l,u)=>zIe(r.parse(r.merge(l,u))),"request2");return Object.assign(c,{endpoint:r,defaults:L4.bind(null,r)}),a.request.hook(c,a)},"newApi"),{endpoint:r,defaults:L4.bind(null,r)})}i(L4,"withDefaults");var yx=L4(QIe,Vht);var Jht="0.0.0-development";function Kht(t){return`Request failed due to following response errors: +`,o),Buffer.from("\r",o)];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 yIe=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],n=gIe(e),s=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),o=i(()=>{},"close"),a=n.parse(t,!0,s,o);if(a!==void 0)throw a;return r},"parse");var qd=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(aa(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=yIe(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let o of s)o.length==1?r?.ignoreComma?n.push(o[0]):n.push(...o[0].split(",")):r?.ignoreComma?n.push(o.join(",")):n.push(...o);return n.filter(o=>o).map(o=>r?.trimWhitespace===!1?o:o.trim())}static getInputNumber(e){let r=aa(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;nsetTimeout(r,e*1e3))}static hash(e){return _4.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"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return _4.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return CIe.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=gx.default.resolve(e);return gx.default.resolve(r).startsWith(n.endsWith(gx.default.sep)?n:`${n}${gx.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),o=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(o||a.length===0)&&a.push(`${o}s`),a.join("")}};var $d=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||yx.default.join(IIe.default.homedir(),".docker")}static configFile(){let e=yx.default.join(t.configDir,"config.json");if(Q4.default.existsSync(e))return JSON.parse(Q4.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Hs("docker",!0).then(e=>(G(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(G(`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 pu.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return pu.getExecOutput("docker",e,t.execOptions(r))}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("@"),s=e.lastIndexOf(":");if(n>=0)r=n;else if(s>=0)r=s;else return{repository:e,tag:"latest"};let o=e.slice(r+1);return o.indexOf("/")===-1?{repository:e.slice(0,r),tag:o}:{repository:e,tag:"latest"}}static async pull(e,r){let n=t.parseRepoTag(e),s=n.repository.replace(/[^a-zA-Z0-9.]+/g,"--"),o=n.tag.replace(/[^a-zA-Z0-9.]+/g,"--"),a=new pg({htcName:s,htcVersion:o,baseCacheDir:yx.default.join(t.configDir,".cache","images",s),cacheFile:"image.tar"}),c;r&&(c=await a.find(),c&&(Ke(`Image found from cache in ${c}`),await t.getExecOutput(["load","-i",c],{ignoreReturnCode:!0}).then(u=>{u.stderr.length>0&&u.exitCode!=0&&Dr(`Failed to load image from cache: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`)})));let l=!0;if(await t.getExecOutput(["pull",e],{ignoreReturnCode:!0}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0){l=!1;let d=u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error";if(c)Dr(`Failed to pull image, using one from cache: ${d}`);else throw new Error(d)}}),r&&l){let u=yx.default.join(tP.tmpDir(),`${qd.hash(e)}.tar`);await t.getExecOutput(["save","-o",u,e],{ignoreReturnCode:!0}).then(async d=>{if(d.stderr.length>0&&d.exitCode!=0)Dr(`Failed to save image: ${d.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);else{let p=await a.save(u);Ke(`Image cached to ${p}`)}})}}};var UP=require("fs"),xIe=require("os");var _g=class{static{i(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,UP.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,UP.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${xIe.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 O4=D(RIe(),1),NIe=D(nh(),1);var Sht=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function TIe(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}`}i(TIe,"getAuthString");function PIe(t){return new O4.HttpClient().getAgent(t)}i(PIe,"getProxyAgent");function Bht(t){return new O4.HttpClient().getAgentDispatcher(t)}i(Bht,"getProxyAgentDispatcher");function vIe(t){let e=Bht(t);return i((n,s)=>Sht(this,void 0,void 0,function*(){return(0,NIe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}i(vIe,"getProxyFetch");function _Ie(){return process.env.GITHUB_API_URL||"https://api.github.com"}i(_Ie,"getApiBaseUrl");function M4(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}i(M4,"getUserAgentWithOrchestrationId");function Gd(){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})`:""}i(Gd,"getUserAgent");function YP(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((s,o)=>YP.bind(null,t,o,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,o)=>o.hook.bind(null,s,n),r)():r(n))}i(YP,"register");function QIe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=i((o,a)=>Promise.resolve().then(s.bind(null,a)).then(o.bind(null,a)),"hook")),e==="after"&&(n=i((o,a)=>{let c;return Promise.resolve().then(o.bind(null,a)).then(l=>(c=l,s(c,a))).then(()=>c)},"hook")),e==="error"&&(n=i((o,a)=>Promise.resolve().then(o.bind(null,a)).catch(c=>s(c,a)),"hook")),t.registry[r].push({hook:n,orig:s})}i(QIe,"addHook");function DIe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}i(DIe,"removeHook");var kIe=Function.bind,LIe=kIe.bind(kIe);function OIe(t,e,r){let n=LIe(DIe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let o=r?[e,s,r]:[e,s];t[s]=t.api[s]=LIe(QIe,null).apply(null,o)})}i(OIe,"bindApi");function Nht(){let t=Symbol("Singular"),e={registry:{}},r=YP.bind(null,e,t);return OIe(r,e,t),r}i(Nht,"Singular");function Tht(){let t={registry:{}},e=YP.bind(null,t);return OIe(e,t),e}i(Tht,"Collection");var MIe={Singular:Nht,Collection:Tht};var Pht="0.0.0-development",vht=`octokit-endpoint.js/${Pht} ${Gd()}`,_ht={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":vht},mediaType:{format:""}};function Qht(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}i(Qht,"lowercaseKeys");function Dht(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)}i(Dht,"isPlainObject");function qIe(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{Dht(e[n])?n in t?r[n]=qIe(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}i(qIe,"mergeDeep");function FIe(t){for(let e in t)t[e]===void 0&&delete t[e];return t}i(FIe,"removeUndefinedProperties");function U4(t,e,r){if(typeof e=="string"){let[s,o]=e.split(" ");r=Object.assign(o?{method:s,url:o}:{url:s},r)}else r=Object.assign({},e);r.headers=Qht(r.headers),FIe(r),FIe(r.headers);let n=qIe(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(n.mediaType.previews=t.mediaType.previews.filter(s=>!n.mediaType.previews.includes(s)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(s=>s.replace(/-preview/,""))),n}i(U4,"merge");function kht(t,e){let r=/\?/.test(t)?"&":"?",n=Object.keys(e);return n.length===0?t:t+r+n.map(s=>s==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${s}=${encodeURIComponent(e[s])}`).join("&")}i(kht,"addQueryParameters");var Lht=/\{[^{}}]+\}/g;function Oht(t){return t.replace(/(?:^\W+)|(?:(?r.concat(n),[]):[]}i(Mht,"extractUrlVariableNames");function UIe(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}i(UIe,"omit");function $Ie(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("")}i($Ie,"encodeReserved");function Dg(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}i(Dg,"encodeUnreserved");function Cx(t,e,r){return e=t==="+"||t==="#"?$Ie(e):Dg(e),r?Dg(r)+"="+e:e}i(Cx,"encodeValue");function Qg(t){return t!=null}i(Qg,"isDefined");function F4(t){return t===";"||t==="&"||t==="?"}i(F4,"isKeyOperator");function Fht(t,e,r,n){var s=t[r],o=[];if(Qg(s)&&s!=="")if(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||typeof s=="boolean")s=s.toString(),n&&n!=="*"&&(s=s.substring(0,parseInt(n,10))),o.push(Cx(e,s,F4(e)?r:""));else if(n==="*")Array.isArray(s)?s.filter(Qg).forEach(function(a){o.push(Cx(e,a,F4(e)?r:""))}):Object.keys(s).forEach(function(a){Qg(s[a])&&o.push(Cx(e,s[a],a))});else{let a=[];Array.isArray(s)?s.filter(Qg).forEach(function(c){a.push(Cx(e,c))}):Object.keys(s).forEach(function(c){Qg(s[c])&&(a.push(Dg(c)),a.push(Cx(e,s[c].toString())))}),F4(e)?o.push(Dg(r)+"="+a.join(",")):a.length!==0&&o.push(a.join(","))}else e===";"?Qg(s)&&o.push(Dg(r)):s===""&&(e==="&"||e==="?")?o.push(Dg(r)+"="):s===""&&o.push("");return o}i(Fht,"getValues");function Uht(t){return{expand:qht.bind(null,t)}}i(Uht,"parseUrl");function qht(t,e){var r=["+","#",".","/",";","?","&"];return t=t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(n,s,o){if(s){let c="",l=[];if(r.indexOf(s.charAt(0))!==-1&&(c=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(u){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(u);l.push(Fht(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 $Ie(o)}),t==="/"?t:t.replace(/\/$/,"")}i(qht,"expand");function GIe(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),s,o=UIe(t,["method","baseUrl","url","headers","request","mediaType"]),a=Mht(r);r=Uht(r).expand(o),/^http/.test(r)||(r=t.baseUrl+r);let c=Object.keys(t).filter(d=>a.includes(d)).concat("baseUrl"),l=UIe(o,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 m=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${p}-preview${m}`}).join(",")}return["GET","HEAD"].includes(e)?r=kht(r,l):"data"in l?s=l.data:Object.keys(l).length&&(s=l),!n["content-type"]&&typeof s<"u"&&(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof s>"u"&&(s=""),Object.assign({method:e,url:r,headers:n},typeof s<"u"?{body:s}:null,t.request?{request:t.request}:null)}i(GIe,"parse");function $ht(t,e,r){return GIe(U4(t,e,r))}i($ht,"endpointWithDefaults");function HIe(t,e){let r=U4(t,e),n=$ht.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:HIe.bind(null,r),merge:U4.bind(null,r),parse:GIe})}i(HIe,"withDefaults");var zIe=HIe(null,_ht);var sxe=D(jIe(),1);var Ght=/^-?\d+$/,XIe=/^-?\d+n+$/,q4=JSON.stringify,JIe=JSON.parse,Hht=/^-?\d+n$/,zht=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,Vht=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,ZIe=i((t,e,r)=>"rawJSON"in JSON?q4(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?q4(t,(a,c)=>typeof c=="string"&&!!c.match(XIe)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(zht,"$1$2$3").replace(Vht,"$1$2$3"):q4(t,e,r),"JSONStringify"),Yht=i(()=>JSON.parse("1",(t,e,r)=>!!r&&r.source==="1"),"isContextSourceSupported"),Wht=i((t,e,r,n)=>typeof e=="string"&&e.match(Hht)?BigInt(e.slice(0,-1)):typeof e=="string"&&e.match(XIe)?e.slice(0,-1):typeof n!="function"?e:n(t,e,r),"convertMarkedBigIntsReviver"),jht=i((t,e)=>JSON.parse(t,(r,n,s)=>{let o=typeof n=="number"&&(n>Number.MAX_SAFE_INTEGER||n{if(!t)return JIe(t,e);if(Yht())return jht(t,e);let r=t.replace(Jht,(n,s,o,a)=>{let c=n[0]==='"';if(c&&!!n.match(Kht))return n.substring(0,n.length-1)+'n"';let u=o||a,d=s&&(s.lengthWht(n,s,o,e))},"JSONParse");var cf=class extends Error{static{i(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 s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?"","noop");async function nxe(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,s=egt(t.body)||Array.isArray(t.body)?ZIe(t.body):t.body,o=Object.fromEntries(Object.entries(t.headers).map(([p,m])=>[p,String(m)])),a;try{a=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:o,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(p){let m="Unknown Error";if(p instanceof Error){if(p.name==="AbortError")throw p.status=500,p;m=p.message,p.name==="TypeError"&&"cause"in p&&(p.cause instanceof Error?m=p.cause.message:typeof p.cause=="string"&&(m=p.cause))}let f=new cf(m,500,{request:t});throw f.cause=p,f}let c=a.status,l=a.url,u={};for(let[p,m]of a.headers)u[p]=m;let d={url:l,status:c,headers:u,data:""};if("deprecation"in u){let p=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),m=p&&p.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${m?`. See ${m}`:""}`)}if(c===204||c===205)return d;if(t.method==="HEAD"){if(c<400)return d;throw new cf(a.statusText,c,{response:d,request:t})}if(c===304)throw d.data=await $4(a),new cf("Not modified",c,{response:d,request:t});if(c>=400)throw d.data=await $4(a),new cf(rgt(d.data),c,{response:d,request:t});return d.data=n?await $4(a):a.body,d}i(nxe,"fetchWrapper");async function $4(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(rxe);let r=(0,sxe.safeParse)(e);if(tgt(r)){let n="";try{return n=await t.text(),txe(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"?t.text().catch(rxe):t.arrayBuffer().catch(()=>new ArrayBuffer(0))}i($4,"getResponseData");function tgt(t){return t.type==="application/json"||t.type==="application/scim+json"}i(tgt,"isJSONResponse");function rgt(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)}`}i(rgt,"toErrorMessage");function G4(t,e){let r=t.defaults(e);return Object.assign(i(function(s,o){let a=r.merge(s,o);if(!a.request||!a.request.hook)return nxe(r.parse(a));let c=i((l,u)=>nxe(r.parse(r.merge(l,u))),"request2");return Object.assign(c,{endpoint:r,defaults:G4.bind(null,r)}),a.request.hook(c,a)},"newApi"),{endpoint:r,defaults:G4.bind(null,r)})}i(G4,"withDefaults");var xx=G4(zIe,Zht);var ngt="0.0.0-development";function sgt(t){return`Request failed due to following response errors: `+t.errors.map(e=>` - ${e.message}`).join(` -`)}i(Kht,"_buildMessageForResponseErrors");var Xht=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(Kht(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},Zht=["method","baseUrl","url","headers","request","query","mediaType","operationName"],egt=["query","method","url"],YIe=/\/api\/v3\/?$/;function tgt(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(egt.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,s=Object.keys(n).reduce((a,c)=>Zht.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return YIe.test(o)&&(s.url=o.replace(YIe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new Xht(s,c,a.data)}return a.data.data})}i(tgt,"graphql");function O4(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>tgt(r,s,o),"newApi"),{defaults:O4.bind(null,r),endpoint:r.endpoint})}i(O4,"withDefaults");var Efr=O4(yx,{headers:{"user-agent":`octokit-graphql.js/${Jht} ${Gd()}`},method:"POST",url:"/graphql"});function WIe(t){return O4(t,{method:"POST",url:"/graphql"})}i(WIe,"withCustomRequest");var M4="(?:[a-zA-Z0-9_-]+)",jIe="\\.",JIe=new RegExp(`^${M4}${jIe}${M4}${jIe}${M4}$`),rgt=JIe.test.bind(JIe);async function ngt(t){let e=rgt(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"}}i(ngt,"auth");function sgt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(sgt,"withAuthorizationPrefix");async function ogt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=sgt(t),e(s)}i(ogt,"hook");var KIe=i(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(ngt.bind(null,e),{hook:ogt.bind(null,e)})},"createTokenAuth2");var F4="7.0.6";var XIe=i(()=>{},"noop"),igt=console.warn.bind(console),agt=console.error.bind(console);function cgt(t={}){return typeof t.debug!="function"&&(t.debug=XIe),typeof t.info!="function"&&(t.info=XIe),typeof t.warn!="function"&&(t.warn=igt),typeof t.error!="function"&&(t.error=agt),t}i(cgt,"createLogger");var ZIe=`octokit-core.js/${F4} ${Gd()}`,YP=class{static{i(this,"Octokit")}static VERSION=F4;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new BIe.Collection,n={baseUrl:yx.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} ${ZIe}`:ZIe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=yx.defaults(n),this.graphql=WIe(this.request).defaults(n),this.log=cgt(e.log),this.hook=r,e.authStrategy){let{authStrategy:o,...a}=e,c=o(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 o=KIe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o({async next(){if(!c)return{done:!0};try{let l=await s({method:o,url:c,headers:a}),u=fgt(l);if(c=((u.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!c&&"total_commits"in u.data){let d=new URL(u.url),p=d.searchParams,m=parseInt(p.get("page")||"1",10),f=parseInt(p.get("per_page")||"250",10);m*f{if(s.done)return e;let o=!1;function a(){o=!0}return i(a,"done"),e=e.concat(n?n(s.value,a):s.value.data),o?e:rxe(t,e,r,n)})}i(rxe,"gather");var zfr=Object.assign(txe,{iterator:G4});function H4(t){return{paginate:Object.assign(txe.bind(null,t),{iterator:G4.bind(null,t)})}}i(H4,"paginateRest");H4.VERSION=mgt;var Kfr=new Tg,z4=CIe(),Agt={baseUrl:z4,request:{agent:yIe(z4),fetch:EIe(z4)}},nxe=YP.plugin($4,H4).defaults(Agt);function sxe(t,e){let r=Object.assign({},e||{}),n=gIe(t,r);n&&(r.auth=n);let s=v4(r.userAgent);return s&&(r.userAgent=s),r}i(sxe,"getOctokitOptions");var _g=new Tg;function oxe(t,e,...r){let n=nxe.plugin(...r);return new n(sxe(t,e))}i(oxe,"getOctokit");var Cx=D(require("http"),1),j4=D(require("https"),1);function V4(t){let e=t.protocol==="https:";if(ggt(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 WP(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new WP(`http://${r}`)}else return}i(V4,"getProxyUrl");function ggt(t){if(!t.hostname)return!1;let e=t.hostname;if(ygt(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 s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(ggt,"checkBypass");function ygt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(ygt,"isLoopbackAddress");var WP=class extends URL{static{i(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 Hd=D(Yy(),1),ixe=D(eh(),1);var qr=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},_i;(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"})(_i||(_i={}));var Ts;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ts||(Ts={}));var hu;(function(t){t.ApplicationJson="application/json"})(hu||(hu={}));var Cgt=[_i.MovedPermanently,_i.ResourceMoved,_i.SeeOther,_i.TemporaryRedirect,_i.PermanentRedirect],Igt=[_i.BadGateway,_i.ServiceUnavailable,_i.GatewayTimeout],xgt=["OPTIONS","GET","DELETE","HEAD"],wgt=10,bgt=5,Y4=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},W4=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return qr(this,void 0,void 0,function*(){return new Promise(e=>qr(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 qr(this,void 0,void 0,function*(){return new Promise(e=>qr(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 jP=class{static{i(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 qr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return qr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return qr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return qr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return qr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return qr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return qr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return qr(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return qr(this,arguments,void 0,function*(r,n={}){n[Ts.Accept]=this._getExistingOrDefaultHeader(n,Ts.Accept,hu.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ts.Accept]=this._getExistingOrDefaultHeader(o,Ts.Accept,hu.ApplicationJson),o[Ts.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,hu.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ts.Accept]=this._getExistingOrDefaultHeader(o,Ts.Accept,hu.ApplicationJson),o[Ts.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,hu.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ts.Accept]=this._getExistingOrDefaultHeader(o,Ts.Accept,hu.ApplicationJson),o[Ts.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,hu.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return qr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&xgt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===_i.Unauthorized){let p;for(let m of this.handlers)if(m.canHandleAuthentication(u)){p=m;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&Cgt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let m=new URL(p);if(o.protocol==="https:"&&o.protocol!==m.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(),m.hostname!==o.hostname)for(let f in s)f.toLowerCase()==="authorization"&&delete s[f];a=this._prepareRequest(e,m,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!Igt.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new W4(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(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=V4(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?j4:Cx;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Ex(this.requestOptions.headers),Ex(e||{})):Ex(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=Ex(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=Ex(this.requestOptions.headers)[Ts.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[Ts.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=V4(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Cx.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:";o?l=u?Hd.httpsOverHttps:Hd.httpsOverHttp:l=u?Hd.httpOverHttps:Hd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new j4.Agent(c):new Cx.Agent(c),this._agent=r}return o&&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 s=e.protocol==="https:";return n=new ixe.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,s&&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 s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return qr(this,void 0,void 0,function*(){e=Math.min(wgt,e);let r=bgt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return qr(this,void 0,void 0,function*(){return new Promise((n,s)=>qr(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===_i.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let m=new Date(p);if(!isNaN(m.valueOf()))return m}return p}i(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(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new Y4(d,o);p.result=a.result,s(p)}else n(a)}))})}},Ex=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var af=class extends Error{static{i(this,"InvalidTokenError")}};af.prototype.name="InvalidTokenError";function Bgt(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}))}i(Bgt,"b64DecodeUnicode");function Rgt(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 Bgt(e)}catch{return atob(e)}}i(Rgt,"base64UrlDecode");function axe(t,e){if(typeof t!="string")throw new af("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 af(`Invalid token specified: missing part #${r+1}`);let s;try{s=Rgt(n)}catch(o){throw new af(`Invalid token specified: invalid base64 for part #${r+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new af(`Invalid token specified: invalid json for part #${r+1} (${o.message})`)}}i(axe,"jwtDecode");var Qg=class t{static{i(this,"GitHub")}githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN,this.octokit=oxe(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({..._g.repo}).then(e=>e.data)}async releases(e,r){let n;try{n=await this.releasesRaw(e,r)}catch(s){if(!this.githubToken)throw s;n=await this.releasesRaw(e,r,this.githubToken)}return n}async releasesRaw(e,r,n){let s=`https://raw.githubusercontent.com/${r.owner}/${r.repo}/${r.ref}/${r.path}`,a=await new jP("docker-actions-toolkit").get(s,n?{Authorization:`token ${n}`}:void 0),c=await a.readBody(),l=a.message.statusCode||500;if(l>=400)throw new Error(`Failed to get ${e} releases from ${s} with status code ${l}: ${c}`);return JSON.parse(c)}static get context(){return _g}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",s=r.endsWith(".GHE.COM"),o=r.endsWith(".LOCALHOST");return!n&&!s&&!o}static get repository(){return`${_g.repo.owner}/${_g.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:_g.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?axe(e):void 0}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})`}Ke(`${r.Scope}: ${n}`)})}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token ACs: ${r.message}`)}}};var JP=class t{static{i(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||oo.default.join($d.configDir,"buildx")}static get refsDir(){return oo.default.join(t.configDir,"refs")}static get refsGroupDir(){return oo.default.join(t.refsDir,"__group__")}static get certsDir(){return oo.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await $d.isAvailable();return G(`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 du.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(G(`Buildx.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(G(`Buildx.isAvailable error: ${n}`),!1));return G(`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 du.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 du.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]}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return G("Buildx.versionSatisfies false: undefined version"),!1;let s=cxe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return G(`Buildx.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static resolveCertsDriverOpts(e,r,n){let s;try{s=new URL(r)}catch{return[]}if(s.protocol!="tcp:")return[];let o=[];if(Object.keys(n).length==0)return o;let a=s.hostname;if(s.port.length>0&&(a+=`-${s.port}`),n.cacert!==void 0){let c=oo.default.join(t.certsDir,`cacert_${a}.pem`);Qi.default.writeFileSync(c,n.cacert),o.push(`cacert=${c}`)}if(n.cert!==void 0){let c=oo.default.join(t.certsDir,`cert_${a}.pem`);Qi.default.writeFileSync(c,n.cert),o.push(`cert=${c}`)}if(n.key!==void 0){let c=oo.default.join(t.certsDir,`key_${a}.pem`);Qi.default.writeFileSync(c,n.key),o.push(`key=${c}`)}return e!="remote"?[]:o}static localState(e,r){let[n,s,o]=e.split("/");if(!n||!s||!o)throw new Error(`Invalid build reference: ${e}`);let a=oo.default.join(r||t.refsDir,n,s,o);if(!Qi.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Qi.default.readFileSync(a,"utf8")))}static fixLocalState(e){let r=i(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,s,o]=r(e.LocalPath);return o&&(e.LocalPath=n,e.DockerfilePath.indexOf(s)===0&&(e.DockerfilePath=e.DockerfilePath.substring(s.length))),e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath,e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath,e}static refs(e,r={}){let{dir:n,builderName:s,nodeName:o,since:a}=e,c=oo.default.resolve(n);if(e.builderName&&(c=oo.default.join(c,e.builderName)),e.nodeName&&(c=oo.default.join(c,e.nodeName)),!Qi.default.existsSync(c))return r;let l=Qi.default.readdirSync(c);for(let u of l){let d=oo.default.join(c,u),p=Qi.default.statSync(d);if(p.isDirectory()){let m={...e};if(s)o||(m.nodeName=u);else{if(u==="__group__")continue;m.builderName=u}t.refs(m,r)}else{if(a&&p.mtimeatob(E)).join(" "),m=atob(l.short).replace(/\s\(line \d+\)$/,"");l.url&&(m+=` -More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,g=!1;for(let E of a)if(E.remote||E.path.endsWith(u)&&E.content===d){c.push({title:p,message:m,file:E.path,startLine:f}),g=!0;break}g||G(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function lxe(){return{registry:ia("registry"),username:ia("username"),password:ia("password"),scope:ia("scope"),ecr:ia("ecr"),logout:toe("logout"),registryAuth:ia("registry-auth")}}i(lxe,"getInputs");function uxe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=Xhe(t.registryAuth).map(r=>{Bo(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:r.ecr||"auto",configDir:KP(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:KP(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(uxe,"getAuthList");function KP(t,e){if(Ngt()||!e||e==="")return"";let r=J4.default.join(JP.configDir,"config",t==="docker.io"?"registry-1.docker.io":t);return e.startsWith("@")?r+=e:r=J4.default.join(r,e),r}i(KP,"scopeToConfigDir");function Ngt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?qd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(Ngt,"scopeDisabled");var tMe=D(WLe(),1),rMe=D(OOe(),1),U9=D(vu(),1);var qOe=D(require("net"),1),$Oe=D(require("tls"),1),GOe=D(Im(),1),HOe=require("events");var MOe=D(require("net"),1),FOe=D(require("http"),1),UOe=require("https");var Bl=Symbol("AgentBaseInternalState"),zL=class extends FOe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Bl]={}}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 MOe.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],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?UOe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[Bl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Bl].currentSocket;if(this[Bl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Bl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Bl]&&(this[Bl].defaultPort=e)}get protocol(){return this[Bl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Bl]&&(this[Bl].protocol=e)}};var M9=require("url");var zy=(0,GOe.default)("http-proxy-agent"),b0=class extends zL{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new M9.URL(e):e,this.proxyHeaders=r?.headers??{},zy("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?KMt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new M9.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,s;zy("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(zy("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r +`)}i(sgt,"_buildMessageForResponseErrors");var ogt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(sgt(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},igt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],agt=["query","method","url"],oxe=/\/api\/v3\/?$/;function cgt(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(agt.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,s=Object.keys(n).reduce((a,c)=>igt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return oxe.test(o)&&(s.url=o.replace(oxe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new ogt(s,c,a.data)}return a.data.data})}i(cgt,"graphql");function H4(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>cgt(r,s,o),"newApi"),{defaults:H4.bind(null,r),endpoint:r.endpoint})}i(H4,"withDefaults");var Bfr=H4(xx,{headers:{"user-agent":`octokit-graphql.js/${ngt} ${Gd()}`},method:"POST",url:"/graphql"});function ixe(t){return H4(t,{method:"POST",url:"/graphql"})}i(ixe,"withCustomRequest");var z4="(?:[a-zA-Z0-9_-]+)",axe="\\.",cxe=new RegExp(`^${z4}${axe}${z4}${axe}${z4}$`),lgt=cxe.test.bind(cxe);async function ugt(t){let e=lgt(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"}}i(ugt,"auth");function dgt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(dgt,"withAuthorizationPrefix");async function pgt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=dgt(t),e(s)}i(pgt,"hook");var lxe=i(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(ugt.bind(null,e),{hook:pgt.bind(null,e)})},"createTokenAuth2");var V4="7.0.6";var uxe=i(()=>{},"noop"),mgt=console.warn.bind(console),fgt=console.error.bind(console);function Agt(t={}){return typeof t.debug!="function"&&(t.debug=uxe),typeof t.info!="function"&&(t.info=uxe),typeof t.warn!="function"&&(t.warn=mgt),typeof t.error!="function"&&(t.error=fgt),t}i(Agt,"createLogger");var dxe=`octokit-core.js/${V4} ${Gd()}`,KP=class{static{i(this,"Octokit")}static VERSION=V4;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new MIe.Collection,n={baseUrl:xx.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} ${dxe}`:dxe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=xx.defaults(n),this.graphql=ixe(this.request).defaults(n),this.log=Agt(e.log),this.hook=r,e.authStrategy){let{authStrategy:o,...a}=e,c=o(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 o=lxe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o({async next(){if(!c)return{done:!0};try{let l=await s({method:o,url:c,headers:a}),u=Igt(l);if(c=((u.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!c&&"total_commits"in u.data){let d=new URL(u.url),p=d.searchParams,m=parseInt(p.get("page")||"1",10),f=parseInt(p.get("per_page")||"250",10);m*f{if(s.done)return e;let o=!1;function a(){o=!0}return i(a,"done"),e=e.concat(n?n(s.value,a):s.value.data),o?e:fxe(t,e,r,n)})}i(fxe,"gather");var Xfr=Object.assign(mxe,{iterator:J4});function K4(t){return{paginate:Object.assign(mxe.bind(null,t),{iterator:J4.bind(null,t)})}}i(K4,"paginateRest");K4.VERSION=Cgt;var sAr=new _g,X4=_Ie(),xgt={baseUrl:X4,request:{agent:PIe(X4),fetch:vIe(X4)}},Axe=KP.plugin(j4,K4).defaults(xgt);function hxe(t,e){let r=Object.assign({},e||{}),n=TIe(t,r);n&&(r.auth=n);let s=M4(r.userAgent);return s&&(r.userAgent=s),r}i(hxe,"getOctokitOptions");var kg=new _g;function gxe(t,e,...r){let n=Axe.plugin(...r);return new n(hxe(t,e))}i(gxe,"getOctokit");var bx=D(require("http"),1),rY=D(require("https"),1);function Z4(t){let e=t.protocol==="https:";if(bgt(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 XP(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new XP(`http://${r}`)}else return}i(Z4,"getProxyUrl");function bgt(t){if(!t.hostname)return!1;let e=t.hostname;if(Sgt(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 s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(bgt,"checkBypass");function Sgt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(Sgt,"isLoopbackAddress");var XP=class extends URL{static{i(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 Hd=D(Jy(),1),yxe=D(nh(),1);var $r=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Qi;(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"})(Qi||(Qi={}));var Ps;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ps||(Ps={}));var gu;(function(t){t.ApplicationJson="application/json"})(gu||(gu={}));var Rgt=[Qi.MovedPermanently,Qi.ResourceMoved,Qi.SeeOther,Qi.TemporaryRedirect,Qi.PermanentRedirect],Ngt=[Qi.BadGateway,Qi.ServiceUnavailable,Qi.GatewayTimeout],Tgt=["OPTIONS","GET","DELETE","HEAD"],Pgt=10,vgt=5,eY=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},tY=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return $r(this,void 0,void 0,function*(){return new Promise(e=>$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))})}))})}};var ZP=class{static{i(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,s){return $r(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return $r(this,arguments,void 0,function*(r,n={}){n[Ps.Accept]=this._getExistingOrDefaultHeader(n,Ps.Accept,gu.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return $r(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ps.Accept]=this._getExistingOrDefaultHeader(o,Ps.Accept,gu.ApplicationJson),o[Ps.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,gu.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return $r(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ps.Accept]=this._getExistingOrDefaultHeader(o,Ps.Accept,gu.ApplicationJson),o[Ps.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,gu.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return $r(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ps.Accept]=this._getExistingOrDefaultHeader(o,Ps.Accept,gu.ApplicationJson),o[Ps.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,gu.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return $r(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),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===Qi.Unauthorized){let p;for(let m of this.handlers)if(m.canHandleAuthentication(u)){p=m;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&Rgt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let m=new URL(p);if(o.protocol==="https:"&&o.protocol!==m.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(),m.hostname!==o.hostname)for(let f in s)f.toLowerCase()==="authorization"&&delete s[f];a=this._prepareRequest(e,m,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!Ngt.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new tY(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(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=Z4(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?rY:bx;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},wx(this.requestOptions.headers),wx(e||{})):wx(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=wx(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=wx(this.requestOptions.headers)[Ps.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[Ps.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=Z4(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||bx.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:";o?l=u?Hd.httpsOverHttps:Hd.httpsOverHttp:l=u?Hd.httpOverHttps:Hd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new rY.Agent(c):new bx.Agent(c),this._agent=r}return o&&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 s=e.protocol==="https:";return n=new yxe.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,s&&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 s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return $r(this,void 0,void 0,function*(){e=Math.min(Pgt,e);let r=vgt*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,s)=>$r(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===Qi.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let m=new Date(p);if(!isNaN(m.valueOf()))return m}return p}i(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(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new eY(d,o);p.result=a.result,s(p)}else n(a)}))})}},wx=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var uf=class extends Error{static{i(this,"InvalidTokenError")}};uf.prototype.name="InvalidTokenError";function Qgt(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}))}i(Qgt,"b64DecodeUnicode");function Dgt(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 Qgt(e)}catch{return atob(e)}}i(Dgt,"base64UrlDecode");function Exe(t,e){if(typeof t!="string")throw new uf("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 uf(`Invalid token specified: missing part #${r+1}`);let s;try{s=Dgt(n)}catch(o){throw new uf(`Invalid token specified: invalid base64 for part #${r+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new uf(`Invalid token specified: invalid json for part #${r+1} (${o.message})`)}}i(Exe,"jwtDecode");var Lg=class t{static{i(this,"GitHub")}githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN,this.octokit=gxe(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({...kg.repo}).then(e=>e.data)}async releases(e,r){let n;try{n=await this.releasesRaw(e,r)}catch(s){if(!this.githubToken)throw s;n=await this.releasesRaw(e,r,this.githubToken)}return n}async releasesRaw(e,r,n){let s=`https://raw.githubusercontent.com/${r.owner}/${r.repo}/${r.ref}/${r.path}`,a=await new ZP("docker-actions-toolkit").get(s,n?{Authorization:`token ${n}`}:void 0),c=await a.readBody(),l=a.message.statusCode||500;if(l>=400)throw new Error(`Failed to get ${e} releases from ${s} with status code ${l}: ${c}`);return JSON.parse(c)}static get context(){return kg}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",s=r.endsWith(".GHE.COM"),o=r.endsWith(".LOCALHOST");return!n&&!s&&!o}static get repository(){return`${kg.repo.owner}/${kg.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:kg.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?Exe(e):void 0}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})`}Ke(`${r.Scope}: ${n}`)})}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token ACs: ${r.message}`)}}};var ev=class t{static{i(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||io.default.join($d.configDir,"buildx")}static get refsDir(){return io.default.join(t.configDir,"refs")}static get refsGroupDir(){return io.default.join(t.refsDir,"__group__")}static get certsDir(){return io.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await $d.isAvailable();return G(`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 pu.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(G(`Buildx.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(G(`Buildx.isAvailable error: ${n}`),!1));return G(`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 pu.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 pu.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]}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return G("Buildx.versionSatisfies false: undefined version"),!1;let s=Cxe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return G(`Buildx.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static resolveCertsDriverOpts(e,r,n){let s;try{s=new URL(r)}catch{return[]}if(s.protocol!="tcp:")return[];let o=[];if(Object.keys(n).length==0)return o;let a=s.hostname;if(s.port.length>0&&(a+=`-${s.port}`),n.cacert!==void 0){let c=io.default.join(t.certsDir,`cacert_${a}.pem`);Di.default.writeFileSync(c,n.cacert),o.push(`cacert=${c}`)}if(n.cert!==void 0){let c=io.default.join(t.certsDir,`cert_${a}.pem`);Di.default.writeFileSync(c,n.cert),o.push(`cert=${c}`)}if(n.key!==void 0){let c=io.default.join(t.certsDir,`key_${a}.pem`);Di.default.writeFileSync(c,n.key),o.push(`key=${c}`)}return e!="remote"?[]:o}static localState(e,r){let[n,s,o]=e.split("/");if(!n||!s||!o)throw new Error(`Invalid build reference: ${e}`);let a=io.default.join(r||t.refsDir,n,s,o);if(!Di.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Di.default.readFileSync(a,"utf8")))}static fixLocalState(e){let r=i(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,s,o]=r(e.LocalPath);return o&&(e.LocalPath=n,e.DockerfilePath.indexOf(s)===0&&(e.DockerfilePath=e.DockerfilePath.substring(s.length))),e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath,e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath,e}static refs(e,r={}){let{dir:n,builderName:s,nodeName:o,since:a}=e,c=io.default.resolve(n);if(e.builderName&&(c=io.default.join(c,e.builderName)),e.nodeName&&(c=io.default.join(c,e.nodeName)),!Di.default.existsSync(c))return r;let l=Di.default.readdirSync(c);for(let u of l){let d=io.default.join(c,u),p=Di.default.statSync(d);if(p.isDirectory()){let m={...e};if(s)o||(m.nodeName=u);else{if(u==="__group__")continue;m.builderName=u}t.refs(m,r)}else{if(a&&p.mtimeatob(E)).join(" "),m=atob(l.short).replace(/\s\(line \d+\)$/,"");l.url&&(m+=` +More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,g=!1;for(let E of a)if(E.remote||E.path.endsWith(u)&&E.content===d){c.push({title:p,message:m,file:E.path,startLine:f}),g=!0;break}g||G(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function Ixe(){return{registry:aa("registry"),username:aa("username"),password:aa("password"),scope:aa("scope"),ecr:aa("ecr"),logout:moe("logout"),registryAuth:aa("registry-auth")}}i(Ixe,"getInputs");function xxe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=uge(t.registryAuth).map(r=>{No(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:r.ecr||"auto",configDir:tv(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:tv(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(xxe,"getAuthList");function tv(t,e){if(kgt()||!e||e==="")return"";let r=nY.default.join(ev.configDir,"config",t==="docker.io"?"registry-1.docker.io":t);return e.startsWith("@")?r+=e:r=nY.default.join(r,e),r}i(tv,"scopeToConfigDir");function kgt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?qd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(kgt,"scopeDisabled");var mMe=D(iOe(),1),fMe=D(jOe(),1),Y9=D(_u(),1);var ZOe=D(require("net"),1),eMe=D(require("tls"),1),tMe=D(bm(),1),rMe=require("events");var JOe=D(require("net"),1),KOe=D(require("http"),1),XOe=require("https");var Bl=Symbol("AgentBaseInternalState"),jL=class extends KOe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Bl]={}}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 JOe.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],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?XOe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[Bl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Bl].currentSocket;if(this[Bl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Bl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Bl]&&(this[Bl].defaultPort=e)}get protocol(){return this[Bl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Bl]&&(this[Bl].protocol=e)}};var z9=require("url");var Wy=(0,tMe.default)("http-proxy-agent"),N0=class extends jL{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new z9.URL(e):e,this.proxyHeaders=r?.headers??{},Wy("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?sFt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new z9.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,s;Wy("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Wy("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r \r -`)+4,e.outputData[0].data=e._header+n.substring(s),zy("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(zy("Creating `tls.Socket`: %o",this.connectOpts),o=$Oe.connect(this.connectOpts)):(zy("Creating `net.Socket`: %o",this.connectOpts),o=qOe.connect(this.connectOpts)),await(0,HOe.once)(o,"connect"),o}};b0.protocols=["http","https"];function KMt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(KMt,"omit");var Qp=D(require("net"),1),F9=D(require("tls"),1),XOe=D(require("assert"),1),ZOe=D(Im(),1);var zOe=D(require("net"),1),VOe=D(require("http"),1),YOe=require("https");var Rl=Symbol("AgentBaseInternalState"),VL=class extends VOe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Rl]={}}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 zOe.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],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?YOe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[Rl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Rl].currentSocket;if(this[Rl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Rl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Rl]&&(this[Rl].defaultPort=e)}get protocol(){return this[Rl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Rl]&&(this[Rl].protocol=e)}};var eMe=require("url");var WOe=D(Im(),1);var YL=(0,WOe.default)("https-proxy-agent:parse-proxy-response");function jOe(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),YL("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),YL("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),m=p.indexOf(`\r +`)+4,e.outputData[0].data=e._header+n.substring(s),Wy("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(Wy("Creating `tls.Socket`: %o",this.connectOpts),o=eMe.connect(this.connectOpts)):(Wy("Creating `net.Socket`: %o",this.connectOpts),o=ZOe.connect(this.connectOpts)),await(0,rMe.once)(o,"connect"),o}};N0.protocols=["http","https"];function sFt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(sFt,"omit");var Qp=D(require("net"),1),V9=D(require("tls"),1),uMe=D(require("assert"),1),dMe=D(bm(),1);var nMe=D(require("net"),1),sMe=D(require("http"),1),oMe=require("https");var Rl=Symbol("AgentBaseInternalState"),JL=class extends sMe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Rl]={}}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 nMe.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],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?oMe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[Rl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Rl].currentSocket;if(this[Rl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Rl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Rl]&&(this[Rl].defaultPort=e)}get protocol(){return this[Rl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Rl]&&(this[Rl].protocol=e)}};var pMe=require("url");var iMe=D(bm(),1);var KL=(0,iMe.default)("https-proxy-agent:parse-proxy-response");function aMe(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),KL("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),KL("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),m=p.indexOf(`\r \r -`);if(m===-1){YL("have not received end of HTTP headers yet..."),o();return}let f=p.slice(0,m).toString("ascii").split(`\r -`),g=f.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=g.split(" "),x=+E[1],w=E.slice(2).join(" "),S={};for(let P of f){if(!P)continue;let Q=P.indexOf(":");if(Q===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${P}"`));let q=P.slice(0,Q).toLowerCase(),M=P.slice(Q+1).trimStart(),V=S[q];typeof V=="string"?S[q]=[V,M]:Array.isArray(V)?V.push(M):S[q]=M}YL("got proxy server response: %o %o",g,S),a(),e({connect:{statusCode:x,statusText:w,headers:S},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(jOe,"parseProxyResponse");var S0=(0,ZOe.default)("https-proxy-agent"),JOe=i(t=>t.servername===void 0&&t.host&&!Qp.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),B0=class extends VL{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new eMe.URL(e):e,this.proxyHeaders=r?.headers??{},S0("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?KOe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(S0("Creating `tls.Socket`: %o",this.connectOpts),s=F9.connect(JOe(this.connectOpts))):(S0("Creating `net.Socket`: %o",this.connectOpts),s=Qp.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Qp.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r +`);if(m===-1){KL("have not received end of HTTP headers yet..."),o();return}let f=p.slice(0,m).toString("ascii").split(`\r +`),g=f.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=g.split(" "),x=+E[1],w=E.slice(2).join(" "),S={};for(let P of f){if(!P)continue;let Q=P.indexOf(":");if(Q===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${P}"`));let q=P.slice(0,Q).toLowerCase(),M=P.slice(Q+1).trimStart(),V=S[q];typeof V=="string"?S[q]=[V,M]:Array.isArray(V)?V.push(M):S[q]=M}KL("got proxy server response: %o %o",g,S),a(),e({connect:{statusCode:x,statusText:w,headers:S},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(aMe,"parseProxyResponse");var T0=(0,dMe.default)("https-proxy-agent"),cMe=i(t=>t.servername===void 0&&t.host&&!Qp.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),P0=class extends JL{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new pMe.URL(e):e,this.proxyHeaders=r?.headers??{},T0("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?lMe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(T0("Creating `tls.Socket`: %o",this.connectOpts),s=V9.connect(cMe(this.connectOpts))):(T0("Creating `net.Socket`: %o",this.connectOpts),s=Qp.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Qp.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r `;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(o))c+=`${m}: ${o[m]}\r -`;let l=jOe(s);s.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",XMt),r.secureEndpoint?(S0("Upgrading socket connection to TLS"),F9.connect({...KOe(JOe(r),"host","path","port"),socket:s})):s;s.destroy();let p=new Qp.Socket({writable:!1});return p.readable=!0,e.once("socket",m=>{S0("Replaying proxy buffer for failed request"),(0,XOe.default)(m.listenerCount("data")>0),m.push(d),m.push(null)}),p}};B0.protocols=["http","https"];function XMt(t){t.resume()}i(XMt,"resume");function KOe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(KOe,"omit");var q9=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,ZMt=/public\.ecr\.aws|ecr-public\.aws\.com/,nMe=i(t=>q9.test(t)||WL(t),"isECR"),WL=i(t=>ZMt.test(t),"isPubECR"),eFt=i(t=>{if(WL(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(q9);return e?e[4]:""},"getRegion"),tFt=i(t=>{if(WL(t))return[];let e=t.match(q9);if(!e)return[];let r=[e[2]];return process.env.AWS_ACCOUNT_IDS&&r.push(...process.env.AWS_ACCOUNT_IDS.split(",")),r.filter((n,s)=>r.indexOf(n)===s)},"getAccountIDs"),sMe=i(async(t,e,r)=>{let n=eFt(t),s=tFt(t),o={};s.length>0&&(G(`Requesting AWS ECR auth token for ${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(G(`Using http proxy ${c}`),a=new b0(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(G(`Using https proxy ${u}`),l=new B0(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(WL(t)){Ke(`AWS Public ECR detected with ${n} region`);let m=await new rMe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new U9.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!m.authorizationData||!m.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let g=Buffer.from(m.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return Bo(g[0]),Bo(g[1]),[{registry:"public.ecr.aws",username:g[0],password:g[1]}]}else{Ke(`AWS ECR detected with ${n} region`);let m=await new tMe.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new U9.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!Array.isArray(m.authorizationData)||!m.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let f=[];for(let g of m.authorizationData){let x=Buffer.from(g.authorizationToken||"","base64").toString("utf-8").split(":",2);Bo(x[0]),Bo(x[1]),f.push({registry:g.proxyEndpoint||"",username:x[0],password:x[1]})}return f}},"getRegistriesData");async function $9(t){/true/i.test(t.ecr)||t.ecr=="auto"&&nMe(t.registry)?await sFt(t.registry,t.username,t.password,t.scope):await nFt(t.registry,t.username,t.password,t.scope)}i($9,"login");async function oMe(t,e){let r;e!==""&&(r=Object.assign({},process.env,{DOCKER_CONFIG:e}),Ke(`Alternative config dir: ${e}`)),await $d.getExecOutput(["logout",t],{ignoreReturnCode:!0,env:r}).then(n=>{n.stderr.length>0&&n.exitCode!=0&&Qr(n.stderr.trim())})}i(oMe,"logout");async function nFt(t,e,r,n){if(!e&&!r)throw new Error("Username and password required");if(!e)throw new Error("Username required");if(!r)throw new Error("Password required");await iMe(t,e,r,n)}i(nFt,"loginStandard");async function sFt(t,e,r,n){Ke("Retrieving registries data through AWS SDK...");let s=await sMe(t,e,r);for(let o of s)await iMe(o.registry,o.username,o.password,n)}i(sFt,"loginECR");async function iMe(t,e,r,n){let s,o=KP(t,n);o!==""?(s=Object.assign({},process.env,{DOCKER_CONFIG:o}),Ke(`Logging into ${t} (scope ${n})...`)):Ke(`Logging into ${t}...`),await $d.getExecOutput(["login","--password-stdin","--username",e,t],{ignoreReturnCode:!0,silent:!0,input:Buffer.from(r),env:s}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());Ke("Login Succeeded!")})}i(iMe,"loginExec");var aMe=process.env.STATE_registries?JSON.parse(process.env.STATE_registries):[],cMe=/true/i.test(process.env.STATE_logout||"");function lMe(t){lm("registries",JSON.stringify(t))}i(lMe,"setRegistries");function uMe(t){lm("logout",t)}i(uMe,"setLogout");async function dMe(){let t=lxe();uMe(t.logout);let e=uxe(t);if(lMe(Array.from(new Map(e.map(r=>[`${r.registry}|${r.configDir}`,{registry:r.registry,configDir:r.configDir}])).values())),e.length===1){await $9(e[0]);return}for(let r of e)await XE(`Login to ${r.registry}`,async()=>{await $9(r)})}i(dMe,"main");async function aFt(){if(cMe)for(let t of aMe)await XE(`Logout from ${t.registry}`,async()=>{await oMe(t.registry,t.configDir)})}i(aFt,"post");uhe(dMe,aFt);0&&(module.exports={main}); +`;let l=aMe(s);s.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",oFt),r.secureEndpoint?(T0("Upgrading socket connection to TLS"),V9.connect({...lMe(cMe(r),"host","path","port"),socket:s})):s;s.destroy();let p=new Qp.Socket({writable:!1});return p.readable=!0,e.once("socket",m=>{T0("Replaying proxy buffer for failed request"),(0,uMe.default)(m.listenerCount("data")>0),m.push(d),m.push(null)}),p}};P0.protocols=["http","https"];function oFt(t){t.resume()}i(oFt,"resume");function lMe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(lMe,"omit");var W9=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,iFt=/public\.ecr\.aws|ecr-public\.aws\.com/,AMe=i(t=>W9.test(t)||XL(t),"isECR"),XL=i(t=>iFt.test(t),"isPubECR"),aFt=i(t=>{if(XL(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(W9);return e?e[4]:""},"getRegion"),cFt=i(t=>{if(XL(t))return[];let e=t.match(W9);if(!e)return[];let r=[e[2]];return process.env.AWS_ACCOUNT_IDS&&r.push(...process.env.AWS_ACCOUNT_IDS.split(",")),r.filter((n,s)=>r.indexOf(n)===s)},"getAccountIDs"),hMe=i(async(t,e,r)=>{let n=aFt(t),s=cFt(t),o={};s.length>0&&(G(`Requesting AWS ECR auth token for ${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(G(`Using http proxy ${c}`),a=new N0(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(G(`Using https proxy ${u}`),l=new P0(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(XL(t)){Ke(`AWS Public ECR detected with ${n} region`);let m=await new fMe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new Y9.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!m.authorizationData||!m.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let g=Buffer.from(m.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return No(g[0]),No(g[1]),[{registry:"public.ecr.aws",username:g[0],password:g[1]}]}else{Ke(`AWS ECR detected with ${n} region`);let m=await new mMe.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new Y9.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!Array.isArray(m.authorizationData)||!m.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let f=[];for(let g of m.authorizationData){let x=Buffer.from(g.authorizationToken||"","base64").toString("utf-8").split(":",2);No(x[0]),No(x[1]),f.push({registry:g.proxyEndpoint||"",username:x[0],password:x[1]})}return f}},"getRegistriesData");async function j9(t){/true/i.test(t.ecr)||t.ecr=="auto"&&AMe(t.registry)?await dFt(t.registry,t.username,t.password,t.scope):await uFt(t.registry,t.username,t.password,t.scope)}i(j9,"login");async function gMe(t,e){let r;e!==""&&(r=Object.assign({},process.env,{DOCKER_CONFIG:e}),Ke(`Alternative config dir: ${e}`)),await $d.getExecOutput(["logout",t],{ignoreReturnCode:!0,env:r}).then(n=>{n.stderr.length>0&&n.exitCode!=0&&Dr(n.stderr.trim())})}i(gMe,"logout");async function uFt(t,e,r,n){if(!e&&!r)throw new Error("Username and password required");if(!e)throw new Error("Username required");if(!r)throw new Error("Password required");await yMe(t,e,r,n)}i(uFt,"loginStandard");async function dFt(t,e,r,n){Ke("Retrieving registries data through AWS SDK...");let s=await hMe(t,e,r);for(let o of s)await yMe(o.registry,o.username,o.password,n)}i(dFt,"loginECR");async function yMe(t,e,r,n){let s,o=tv(t,n);o!==""?(s=Object.assign({},process.env,{DOCKER_CONFIG:o}),Ke(`Logging into ${t} (scope ${n})...`)):Ke(`Logging into ${t}...`),await $d.getExecOutput(["login","--password-stdin","--username",e,t],{ignoreReturnCode:!0,silent:!0,input:Buffer.from(r),env:s}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());Ke("Login Succeeded!")})}i(yMe,"loginExec");var EMe=process.env.STATE_registries?JSON.parse(process.env.STATE_registries):[],CMe=/true/i.test(process.env.STATE_logout||"");function IMe(t){pm("registries",JSON.stringify(t))}i(IMe,"setRegistries");function xMe(t){pm("logout",t)}i(xMe,"setLogout");async function wMe(){let t=Ixe();xMe(t.logout);let e=xxe(t);if(IMe(Array.from(new Map(e.map(r=>[`${r.registry}|${r.configDir}`,{registry:r.registry,configDir:r.configDir}])).values())),e.length===1){await j9(e[0]);return}for(let r of e)await rC(`Login to ${r.registry}`,async()=>{await j9(r)})}i(wMe,"main");async function fFt(){if(CMe)for(let t of EMe)await rC(`Logout from ${t.registry}`,async()=>{await gMe(t.registry,t.configDir)})}i(fFt,"post");xhe(wMe,fFt);0&&(module.exports={main}); /*! Bundled license information: undici/lib/web/fetch/body.js: diff --git a/dist/index.cjs.map b/dist/index.cjs.map index 73d6521..a20b2de 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/concat-map/index.js", "../node_modules/balanced-match/index.js", "../node_modules/minimatch/node_modules/brace-expansion/index.js", "../node_modules/minimatch/minimatch.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/@typespec/ts-http-runtime/node_modules/https-proxy-agent/node_modules/agent-base/src/helpers.ts", "../node_modules/@typespec/ts-http-runtime/node_modules/https-proxy-agent/node_modules/agent-base/src/index.ts", "../node_modules/@typespec/ts-http-runtime/node_modules/https-proxy-agent/src/parse-proxy-response.ts", "../node_modules/@typespec/ts-http-runtime/node_modules/https-proxy-agent/src/index.ts", "../node_modules/agent-base/src/helpers.ts", "../node_modules/agent-base/src/index.ts", "../node_modules/@typespec/ts-http-runtime/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/isNode.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/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/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/json-typings.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/base64.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/protobufjs-utf8.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/binary-format-contract.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/goog-varint.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/pb-long.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/binary-reader.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/assert.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/binary-writer.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/json-format-contract.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/message-type-contract.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/lower-camel-case.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-info.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/oneof.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-type-check.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-long-convert.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-reader.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-writer.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-scalar-default.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-reader.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-writer.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-create.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-merge-partial.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-equals.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/message-type.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-contains-message-type.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/enum-object.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/index.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/reflection-info.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/service-type.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-error.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-options.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/deferred.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-output-stream.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/unary-call.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-streaming-call.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/client-streaming-call.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/duplex-streaming-call.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/test-transport.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-interceptor.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-call-context.js", "../node_modules/@actions/cache/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/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/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/@docker/actions-toolkit/node_modules/@actions/github/node_modules/@actions/http-client/src/proxy.ts", "../node_modules/@docker/actions-toolkit/node_modules/@actions/github/node_modules/@actions/http-client/src/index.ts", "../node_modules/fast-content-type-parse/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/longPollMiddleware.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/isStreamingPayload/isStreamingPayload.js", "../node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js", "../node_modules/@smithy/types/dist-cjs/index.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-middleware/getSmithyContext.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-middleware/normalizeProvider.js", "../node_modules/@smithy/core/dist-es/submodules/client/invalid-dependency/invalidFunction.js", "../node_modules/@smithy/core/dist-es/submodules/client/invalid-dependency/invalidProvider.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/circularReplacer.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/sleep.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/waiter.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/poller.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/validate.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/createWaiter.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/client.js", "../node_modules/@smithy/core/dist-es/submodules/schema/deref.js", "../node_modules/@smithy/core/dist-es/submodules/serde/is-array-buffer/is-array-buffer.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-buffer-from/buffer-from.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-base64/fromBase64.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/fromUtf8.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-base64/toBase64.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/blob/Uint8ArrayBlobAdapter.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUtf8.js", "../node_modules/@smithy/core/dist-es/submodules/serde/uuid/v4.js", "../node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js", "../node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js", "../node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js", "../node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js", "../node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js", "../node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js", "../node_modules/@smithy/core/dist-es/submodules/serde/split-every.js", "../node_modules/@smithy/core/dist-es/submodules/serde/split-header.js", "../node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-hex-encoding/hex-encoding.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.js", "../node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/ProviderError.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/CredentialsProviderError.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/TokenProviderError.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js", "../node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js", "../node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js", "../node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getProfileName.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/constants.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/externalDataInterceptor.js", "../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js", "../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js", "../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js", "../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js", "../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/resolveCustomEndpointsConfig.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/utils/getEndpointFromRegion.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/resolveEndpointsConfig.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getHostnameFromVariants.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getResolvedHostname.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getResolvedPartition.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getResolvedSigningRegion.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getRegionInfo.js", "../node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js", "../node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/defaultsModeConfig.js", "../node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js", "../node_modules/@smithy/core/dist-es/submodules/config/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromConfig.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/s3.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/createConfigValueProvider.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/getEndpointPlugin.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/bdd/BinaryDecisionDiagram.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/EndpointError.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/EndpointFunctions.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/EndpointRuleObject.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/ErrorRuleObject.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/RuleSetObject.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/TreeRuleObject.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/shared.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/debugId.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/toDebugString.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/customEndpointFunctions.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/booleanEquals.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/coalesce.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttrPathList.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttr.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/isSet.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/isValidHostLabel.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/ite.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/not.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/isIpAddress.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/split.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/stringEquals.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/substring.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/uriEncode.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/endpointFunctions.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateTemplate.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getReferenceValue.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateExpression.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/callFunction.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateCondition.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getEndpointHeaders.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getEndpointProperties.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getEndpointUrl.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/decideEndpoint.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateConditions.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateEndpointRule.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateErrorRule.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateRules.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointRequiredConfig.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/index.js", "../node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/serializerMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/serdePlugin.js", "../node_modules/@smithy/core/dist-es/submodules/serde/hash-node/hash-node.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-type-check.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/fromUtf8.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-base64/constants-for-browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-base64/toBase64.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/createChecksumStream.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/createChecksumStream.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/ByteArrayCollector.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/createBufferedReadable.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/createBufferedReadable.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/headStream.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/headStream.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUtf8.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-base64/fromBase64.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/splitStream.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/splitStream.js", "../node_modules/@smithy/core/dist-es/submodules/serde/index.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/httpRequest.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/httpResponse.js", "../node_modules/tslib/tslib.es6.mjs", "../node_modules/@smithy/is-array-buffer/dist-cjs/index.js", "../node_modules/@smithy/util-buffer-from/dist-cjs/index.js", "../node_modules/@smithy/util-utf8/dist-cjs/index.js", "../node_modules/@aws-crypto/util/src/convertToBuffer.ts", "../node_modules/@aws-crypto/util/src/isEmptyData.ts", "../node_modules/@aws-crypto/util/src/numToUint8.ts", "../node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts", "../node_modules/@aws-crypto/util/src/index.ts", "../node_modules/@aws-crypto/crc32/src/aws_crc32.ts", "../node_modules/@aws-crypto/crc32/src/index.ts", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/splitMessage.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/EventStreamCodec.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/MessageDecoderStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/MessageEncoderStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageEncoderStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getChunkedStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/EventStreamMarshaller.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/EventStreamMarshaller.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-config-resolver/EventStreamSerdeConfig.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/index.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Field.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Fields.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/isValidHostname.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri-path.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/querystring-parser/parseQueryString.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/url-parser/parseUrl.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/index.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js", "../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js", "../node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js", "../node_modules/@smithy/core/dist-es/submodules/schema/index.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/constants.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/default-error-handler.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/defaults-mode.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/emitWarningIfUnsupportedVersion.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/retry.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-array-if-single-item.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/is-serializable-header-value.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/NoOpLogger.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/ser-utils.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js", "../node_modules/@smithy/core/dist-es/submodules/client/index.js", "../node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js", "../node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/constants.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/retries-2026-config.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryBackoffStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryToken.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/config.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/AdaptiveRetryStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/ConfiguredRetryStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/defaultRetryQuota.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/delayDecider.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/retryDecider.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/AdaptiveRetryStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/omitRetryHeadersMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/retry/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/setTokenFeature.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-logger/loggerMiddleware.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/configuration.js", "../node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.js", "../node_modules/@smithy/core/dist-es/getSmithyContext.js", "../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js", "../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js", "../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js", "../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js", "../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/index.js", "../node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js", "../node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js", "../node_modules/@smithy/core/dist-es/middleware-http-signing/index.js", "../node_modules/@smithy/core/dist-es/normalizeProvider.js", "../node_modules/@smithy/core/dist-es/pagination/createPaginator.js", "../node_modules/@smithy/core/dist-es/request-builder/requestBuilder.js", "../node_modules/@smithy/core/dist-es/setFeature.js", "../node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js", "../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js", "../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js", "../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js", "../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/index.js", "../node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js", "../node_modules/@smithy/core/dist-es/util-identity-and-auth/index.js", "../node_modules/@smithy/core/dist-es/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/configurations.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partition.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/check-features.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/constants.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/encode-features.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/user-agent-middleware.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getNodeModulesParentDirs.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getSanitizedTypeScriptVersion.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getSanitizedDevTypeScriptVersion.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getTypeScriptUserAgentPair.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/crt-availability.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/is-crt-available.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/defaultUserAgent.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.js", "../node_modules/bowser/es5.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/isIpAddress.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/aws.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveEndpoint.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/types/EndpointError.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/awsRegionConfig.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/stsRegionDefaultResolver.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/extensions.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js", "../node_modules/@smithy/signature-v4/dist-cjs/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js", "../node_modules/@aws-sdk/client-ecr/dist-cjs/auth/httpAuthSchemeProvider.js", "../node_modules/@aws-sdk/client-ecr/package.json", "../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js", "../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js", "../node_modules/@smithy/node-http-handler/dist-cjs/index.js", "../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js", "../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js", "../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js", "../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js", "../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js", "../node_modules/@aws-sdk/nested-clients/package.json", "../node_modules/@smithy/core/dist-es/submodules/cbor/cbor-types.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/coercing-serializers.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/awsExpectUnion.js", "../node_modules/fast-xml-parser/lib/fxp.cjs", "../node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js", "../node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js", "../node_modules/@aws-sdk/xml-builder/dist-cjs/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QuerySerializerSettings.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js", "../node_modules/@aws-sdk/token-providers/dist-cjs/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/models_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/index.js", "../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js", "../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/EndpointParameters.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/models_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js", "../node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js", "../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js", "../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js", "../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js", "../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js", "../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js", "../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js", "../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js", "../node_modules/@aws-sdk/client-ecr/dist-cjs/endpoint/bdd.js", "../node_modules/@aws-sdk/client-ecr/dist-cjs/endpoint/endpointResolver.js", "../node_modules/@aws-sdk/client-ecr/dist-cjs/models/ECRServiceException.js", "../node_modules/@aws-sdk/client-ecr/dist-cjs/models/errors.js", "../node_modules/@aws-sdk/client-ecr/dist-cjs/schemas/schemas_0.js", "../node_modules/@aws-sdk/client-ecr/dist-cjs/runtimeConfig.shared.js", "../node_modules/@aws-sdk/client-ecr/dist-cjs/runtimeConfig.js", "../node_modules/@aws-sdk/client-ecr/dist-cjs/index.js", "../node_modules/@aws-sdk/client-ecr-public/dist-cjs/auth/httpAuthSchemeProvider.js", "../node_modules/@aws-sdk/client-ecr-public/package.json", "../node_modules/@aws-sdk/client-ecr-public/dist-cjs/endpoint/bdd.js", "../node_modules/@aws-sdk/client-ecr-public/dist-cjs/endpoint/endpointResolver.js", "../node_modules/@aws-sdk/client-ecr-public/dist-cjs/models/ECRPUBLICServiceException.js", "../node_modules/@aws-sdk/client-ecr-public/dist-cjs/models/errors.js", "../node_modules/@aws-sdk/client-ecr-public/dist-cjs/schemas/schemas_0.js", "../node_modules/@aws-sdk/client-ecr-public/dist-cjs/runtimeConfig.shared.js", "../node_modules/@aws-sdk/client-ecr-public/dist-cjs/runtimeConfig.js", "../node_modules/@aws-sdk/client-ecr-public/dist-cjs/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/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/summary.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/platform.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/core.ts", "../node_modules/@actions/tool-cache/src/tool-cache.ts", "../node_modules/@actions/tool-cache/src/manifest.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/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/@azure/core-xml/node_modules/fast-xml-parser/src/util.js", "../node_modules/@azure/core-xml/node_modules/fast-xml-parser/src/validator.js", "../node_modules/@nodable/entities/src/entities.js", "../node_modules/@nodable/entities/src/EntityDecoder.js", "../node_modules/@azure/core-xml/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js", "../node_modules/@azure/core-xml/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js", "../node_modules/xml-naming/src/index.js", "../node_modules/@azure/core-xml/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js", "../node_modules/strnum/strnum.js", "../node_modules/@azure/core-xml/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/@azure/core-xml/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js", "../node_modules/@azure/core-xml/node_modules/fast-xml-parser/src/xmlparser/node2json.js", "../node_modules/@azure/core-xml/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/@azure/core-xml/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js", "../node_modules/@azure/core-xml/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", "../src/context.ts", "../node_modules/js-yaml/dist/js-yaml.mjs", "../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/api/index.js", "../node_modules/csv-parse/lib/sync.js", "../node_modules/@docker/actions-toolkit/node_modules/@actions/github/src/context.ts", "../node_modules/@docker/actions-toolkit/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/@docker/actions-toolkit/node_modules/@actions/github/src/utils.ts", "../node_modules/@docker/actions-toolkit/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/github/github.ts", "../src/aws.ts", "../node_modules/http-proxy-agent/src/index.ts", "../node_modules/http-proxy-agent/node_modules/agent-base/src/index.ts", "../node_modules/https-proxy-agent/src/index.ts", "../node_modules/https-proxy-agent/node_modules/agent-base/src/index.ts", "../node_modules/https-proxy-agent/src/parse-proxy-response.ts", "../src/docker.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 arr.push(`${val[i]}`)\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 val = `${val}`\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')\n\nclass DispatcherBase extends Dispatcher {\n constructor () {\n super()\n\n this[kDestroyed] = false\n this[kOnDestroyed] = null\n this[kClosed] = false\n this[kOnClosed] = []\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/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZX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AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1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PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgA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IUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXN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hxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5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JAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIB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ABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfA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A2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAw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A2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBEC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*/ (['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 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\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.PAUSED_UPGRADE) {\n this.onUpgrade(data.slice(offset))\n } else if (ret === constants.ERROR.PAUSED) {\n this.paused = true\n socket.unshift(data.slice(offset))\n } else if (ret !== constants.ERROR.OK) {\n const ptr = llhttp.llhttp_get_error_reason(this.ptr)\n let message = ''\n /* istanbul ignore else: difficult to make a test case for */\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 throw new HTTPParserError(message, constants.ERROR[ret], data.slice(offset))\n }\n } catch (err) {\n util.destroy(socket, err)\n }\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 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 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\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[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 // We treat all incoming data so for as a valid response.\n parser.onMessageComplete()\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 // We treat all incoming data so far as a valid response.\n parser.onMessageComplete()\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 if (parser) {\n if (!this[kError] && parser.statusCode && !parser.shouldKeepAlive) {\n // We treat all incoming data so far as a valid response.\n parser.onMessageComplete()\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]) {\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 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[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 && body.type) {\n headers.push('content-type', body.type)\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\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 } = {}) {\n super()\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 () {\n super()\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 super()\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 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 super()\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 (!Number.isInteger(maxRedirections) || maxRedirections < 0) {\n throw new InvalidArgumentError('maxRedirections must be a positive number')\n }\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\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\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 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 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 { start, size, end = size - 1 } = contentRange\n\n assert(this.start === start, 'content-range mismatch')\n assert(this.end == null || this.end === end, 'content-range mismatch')\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 return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\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.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)) {\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 === 0x7F || // DEL\n code === 0x3B // ;\n ) {\n throw new Error('Invalid cookie path')\n }\n }\n}\n\n/**\n * I have no idea why these values aren't allowed to be honest,\n * but Deno tests these. - Khafra\n * @param {string} domain\n */\nfunction validateCookieDomain (domain) {\n if (\n domain.startsWith('-') ||\n domain.endsWith('.') ||\n domain.endsWith('-')\n ) {\n throw new Error('Invalid cookie domain')\n }\n}\n\nconst IMFDays = [\n 'Sun', 'Mon', 'Tue', 'Wed',\n 'Thu', 'Fri', 'Sat'\n]\n\nconst IMFMonths = [\n 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',\n 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'\n]\n\nconst IMFPaddedNumbers = Array(61).fill(0).map((_, i) => i.toString().padStart(2, '0'))\n\n/**\n * @see https://www.rfc-editor.org/rfc/rfc7231#section-7.1.1.1\n * @param {number|Date} date\n IMF-fixdate = day-name \",\" SP date1 SP time-of-day SP GMT\n ; fixed length/zone/capitalization subset of the format\n ; see Section 3.3 of [RFC5322]\n\n day-name = %x4D.6F.6E ; \"Mon\", case-sensitive\n / %x54.75.65 ; \"Tue\", case-sensitive\n / %x57.65.64 ; \"Wed\", case-sensitive\n / %x54.68.75 ; \"Thu\", case-sensitive\n / %x46.72.69 ; \"Fri\", case-sensitive\n / %x53.61.74 ; \"Sat\", case-sensitive\n / %x53.75.6E ; \"Sun\", case-sensitive\n date1 = day SP month SP year\n ; e.g., 02 Jun 1982\n\n day = 2DIGIT\n month = %x4A.61.6E ; \"Jan\", case-sensitive\n / %x46.65.62 ; \"Feb\", case-sensitive\n / %x4D.61.72 ; \"Mar\", case-sensitive\n / %x41.70.72 ; \"Apr\", case-sensitive\n / %x4D.61.79 ; \"May\", case-sensitive\n / %x4A.75.6E ; \"Jun\", case-sensitive\n / %x4A.75.6C ; \"Jul\", case-sensitive\n / %x41.75.67 ; \"Aug\", case-sensitive\n / %x53.65.70 ; \"Sep\", case-sensitive\n / %x4F.63.74 ; \"Oct\", case-sensitive\n / %x4E.6F.76 ; \"Nov\", case-sensitive\n / %x44.65.63 ; \"Dec\", case-sensitive\n year = 4DIGIT\n\n GMT = %x47.4D.54 ; \"GMT\", case-sensitive\n\n time-of-day = hour \":\" minute \":\" second\n ; 00:00:00 - 23:59:60 (leap second)\n\n hour = 2DIGIT\n minute = 2DIGIT\n second = 2DIGIT\n */\nfunction toIMFDate (date) {\n if (typeof date === 'number') {\n date = new Date(date)\n }\n\n return `${IMFDays[date.getUTCDay()]}, ${IMFPaddedNumbers[date.getUTCDate()]} ${IMFMonths[date.getUTCMonth()]} ${date.getUTCFullYear()} ${IMFPaddedNumbers[date.getUTCHours()]}:${IMFPaddedNumbers[date.getUTCMinutes()]}:${IMFPaddedNumbers[date.getUTCSeconds()]} GMT`\n}\n\n/**\n max-age-av = \"Max-Age=\" non-zero-digit *DIGIT\n ; In practice, both expires-av and max-age-av\n ; are limited to dates representable by the\n ; user agent.\n * @param {number} maxAge\n */\nfunction validateCookieMaxAge (maxAge) {\n if (maxAge < 0) {\n throw new Error('Invalid cookie max-age')\n }\n}\n\n/**\n * @see https://www.rfc-editor.org/rfc/rfc6265#section-4.1.1\n * @param {import('./index').Cookie} cookie\n */\nfunction stringify (cookie) {\n if (cookie.name.length === 0) {\n return null\n }\n\n validateCookieName(cookie.name)\n validateCookieValue(cookie.value)\n\n const out = [`${cookie.name}=${cookie.value}`]\n\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-prefixes-00#section-3.1\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-prefixes-00#section-3.2\n if (cookie.name.startsWith('__Secure-')) {\n cookie.secure = true\n }\n\n if (cookie.name.startsWith('__Host-')) {\n cookie.secure = true\n cookie.domain = null\n cookie.path = '/'\n }\n\n if (cookie.secure) {\n out.push('Secure')\n }\n\n if (cookie.httpOnly) {\n out.push('HttpOnly')\n }\n\n if (typeof cookie.maxAge === 'number') {\n validateCookieMaxAge(cookie.maxAge)\n out.push(`Max-Age=${cookie.maxAge}`)\n }\n\n if (cookie.domain) {\n validateCookieDomain(cookie.domain)\n out.push(`Domain=${cookie.domain}`)\n }\n\n if (cookie.path) {\n validateCookiePath(cookie.path)\n out.push(`Path=${cookie.path}`)\n }\n\n if (cookie.expires && cookie.expires.toString() !== 'Invalid Date') {\n out.push(`Expires=${toIMFDate(cookie.expires)}`)\n }\n\n if (cookie.sameSite) {\n out.push(`SameSite=${cookie.sameSite}`)\n }\n\n for (const part of cookie.unparsed) {\n if (!part.includes('=')) {\n throw new Error('Invalid unparsed')\n }\n\n const [key, ...value] = part.split('=')\n\n out.push(`${key.trim()}=${value.join('=')}`)\n }\n\n return out.join('; ')\n}\n\nmodule.exports = {\n isCTLExcludingHtab,\n validateCookieName,\n validateCookiePath,\n validateCookieValue,\n toIMFDate,\n stringify\n}\n", "'use strict'\n\nconst { maxNameValuePairSize, maxAttributeValueSize } = require('./constants')\nconst { isCTLExcludingHtab } = require('./util')\nconst { collectASequenceOfCodePointsFast } = require('../fetch/data-url')\nconst assert = require('node:assert')\n\n/**\n * @description Parses the field-value attributes of a set-cookie header string.\n * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4\n * @param {string} header\n * @returns if the header is invalid, null will be returned\n */\nfunction parseSetCookie (header) {\n // 1. If the set-cookie-string contains a %x00-08 / %x0A-1F / %x7F\n // character (CTL characters excluding HTAB): Abort these steps and\n // ignore the set-cookie-string entirely.\n if (isCTLExcludingHtab(header)) {\n return null\n }\n\n let nameValuePair = ''\n let unparsedAttributes = ''\n let name = ''\n let value = ''\n\n // 2. If the set-cookie-string contains a %x3B (\";\") character:\n if (header.includes(';')) {\n // 1. The name-value-pair string consists of the characters up to,\n // but not including, the first %x3B (\";\"), and the unparsed-\n // attributes consist of the remainder of the set-cookie-string\n // (including the %x3B (\";\") in question).\n const position = { position: 0 }\n\n nameValuePair = collectASequenceOfCodePointsFast(';', header, position)\n unparsedAttributes = header.slice(position.position)\n } else {\n // Otherwise:\n\n // 1. The name-value-pair string consists of all the characters\n // contained in the set-cookie-string, and the unparsed-\n // attributes is the empty string.\n nameValuePair = header\n }\n\n // 3. If the name-value-pair string lacks a %x3D (\"=\") character, then\n // the name string is empty, and the value string is the value of\n // name-value-pair.\n if (!nameValuePair.includes('=')) {\n value = nameValuePair\n } else {\n // Otherwise, the name string consists of the characters up to, but\n // not including, the first %x3D (\"=\") character, and the (possibly\n // empty) value string consists of the characters after the first\n // %x3D (\"=\") character.\n const position = { position: 0 }\n name = collectASequenceOfCodePointsFast(\n '=',\n nameValuePair,\n position\n )\n value = nameValuePair.slice(position.position + 1)\n }\n\n // 4. Remove any leading or trailing WSP characters from the name\n // string and the value string.\n name = name.trim()\n value = value.trim()\n\n // 5. If the sum of the lengths of the name string and the value string\n // is more than 4096 octets, abort these steps and ignore the set-\n // cookie-string entirely.\n if (name.length + value.length > maxNameValuePairSize) {\n return null\n }\n\n // 6. The cookie-name is the name string, and the cookie-value is the\n // value string.\n return {\n name, value, ...parseUnparsedAttributes(unparsedAttributes)\n }\n}\n\n/**\n * Parses the remaining attributes of a set-cookie header\n * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4\n * @param {string} unparsedAttributes\n * @param {[Object.]={}} cookieAttributeList\n */\nfunction parseUnparsedAttributes (unparsedAttributes, cookieAttributeList = {}) {\n // 1. If the unparsed-attributes string is empty, skip the rest of\n // these steps.\n if (unparsedAttributes.length === 0) {\n return cookieAttributeList\n }\n\n // 2. Discard the first character of the unparsed-attributes (which\n // will be a %x3B (\";\") character).\n assert(unparsedAttributes[0] === ';')\n unparsedAttributes = unparsedAttributes.slice(1)\n\n let cookieAv = ''\n\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n if (unparsedAttributes.includes(';')) {\n // 1. Consume the characters of the unparsed-attributes up to, but\n // not including, the first %x3B (\";\") character.\n cookieAv = collectASequenceOfCodePointsFast(\n ';',\n unparsedAttributes,\n { position: 0 }\n )\n unparsedAttributes = unparsedAttributes.slice(cookieAv.length)\n } else {\n // Otherwise:\n\n // 1. Consume the remainder of the unparsed-attributes.\n cookieAv = unparsedAttributes\n unparsedAttributes = ''\n }\n\n // Let the cookie-av string be the characters consumed in this step.\n\n let attributeName = ''\n let attributeValue = ''\n\n // 4. If the cookie-av string contains a %x3D (\"=\") character:\n if (cookieAv.includes('=')) {\n // 1. The (possibly empty) attribute-name string consists of the\n // characters up to, but not including, the first %x3D (\"=\")\n // character, and the (possibly empty) attribute-value string\n // consists of the characters after the first %x3D (\"=\")\n // character.\n const position = { position: 0 }\n\n attributeName = collectASequenceOfCodePointsFast(\n '=',\n cookieAv,\n position\n )\n attributeValue = cookieAv.slice(position.position + 1)\n } else {\n // Otherwise:\n\n // 1. The attribute-name string consists of the entire cookie-av\n // string, and the attribute-value string is empty.\n attributeName = cookieAv\n }\n\n // 5. Remove any leading or trailing WSP characters from the attribute-\n // name string and the attribute-value string.\n attributeName = attributeName.trim()\n attributeValue = attributeValue.trim()\n\n // 6. If the attribute-value is longer than 1024 octets, ignore the\n // cookie-av string and return to Step 1 of this algorithm.\n if (attributeValue.length > maxAttributeValueSize) {\n return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)\n }\n\n // 7. Process the attribute-name and attribute-value according to the\n // requirements in the following subsections. (Notice that\n // attributes with unrecognized attribute-names are ignored.)\n const attributeNameLowercase = attributeName.toLowerCase()\n\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.1\n // If the attribute-name case-insensitively matches the string\n // \"Expires\", the user agent MUST process the cookie-av as follows.\n if (attributeNameLowercase === 'expires') {\n // 1. Let the expiry-time be the result of parsing the attribute-value\n // as cookie-date (see Section 5.1.1).\n const expiryTime = new Date(attributeValue)\n\n // 2. If the attribute-value failed to parse as a cookie date, ignore\n // the cookie-av.\n\n cookieAttributeList.expires = expiryTime\n } else if (attributeNameLowercase === 'max-age') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.2\n // If the attribute-name case-insensitively matches the string \"Max-\n // Age\", the user agent MUST process the cookie-av as follows.\n\n // 1. If the first character of the attribute-value is not a DIGIT or a\n // \"-\" character, ignore the cookie-av.\n const charCode = attributeValue.charCodeAt(0)\n\n if ((charCode < 48 || charCode > 57) && attributeValue[0] !== '-') {\n return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)\n }\n\n // 2. If the remainder of attribute-value contains a non-DIGIT\n // character, ignore the cookie-av.\n if (!/^\\d+$/.test(attributeValue)) {\n return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)\n }\n\n // 3. Let delta-seconds be the attribute-value converted to an integer.\n const deltaSeconds = Number(attributeValue)\n\n // 4. Let cookie-age-limit be the maximum age of the cookie (which\n // SHOULD be 400 days or less, see Section 4.1.2.2).\n\n // 5. Set delta-seconds to the smaller of its present value and cookie-\n // age-limit.\n // deltaSeconds = Math.min(deltaSeconds * 1000, maxExpiresMs)\n\n // 6. If delta-seconds is less than or equal to zero (0), let expiry-\n // time be the earliest representable date and time. Otherwise, let\n // the expiry-time be the current date and time plus delta-seconds\n // seconds.\n // const expiryTime = deltaSeconds <= 0 ? Date.now() : Date.now() + deltaSeconds\n\n // 7. Append an attribute to the cookie-attribute-list with an\n // attribute-name of Max-Age and an attribute-value of expiry-time.\n cookieAttributeList.maxAge = deltaSeconds\n } else if (attributeNameLowercase === 'domain') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.3\n // If the attribute-name case-insensitively matches the string \"Domain\",\n // the user agent MUST process the cookie-av as follows.\n\n // 1. Let cookie-domain be the attribute-value.\n let cookieDomain = attributeValue\n\n // 2. If cookie-domain starts with %x2E (\".\"), let cookie-domain be\n // cookie-domain without its leading %x2E (\".\").\n if (cookieDomain[0] === '.') {\n cookieDomain = cookieDomain.slice(1)\n }\n\n // 3. Convert the cookie-domain to lower case.\n cookieDomain = cookieDomain.toLowerCase()\n\n // 4. Append an attribute to the cookie-attribute-list with an\n // attribute-name of Domain and an attribute-value of cookie-domain.\n cookieAttributeList.domain = cookieDomain\n } else if (attributeNameLowercase === 'path') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.4\n // If the attribute-name case-insensitively matches the string \"Path\",\n // the user agent MUST process the cookie-av as follows.\n\n // 1. If the attribute-value is empty or if the first character of the\n // attribute-value is not %x2F (\"/\"):\n let cookiePath = ''\n if (attributeValue.length === 0 || attributeValue[0] !== '/') {\n // 1. Let cookie-path be the default-path.\n cookiePath = '/'\n } else {\n // Otherwise:\n\n // 1. Let cookie-path be the attribute-value.\n cookiePath = attributeValue\n }\n\n // 2. Append an attribute to the cookie-attribute-list with an\n // attribute-name of Path and an attribute-value of cookie-path.\n cookieAttributeList.path = cookiePath\n } else if (attributeNameLowercase === 'secure') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.5\n // If the attribute-name case-insensitively matches the string \"Secure\",\n // the user agent MUST append an attribute to the cookie-attribute-list\n // with an attribute-name of Secure and an empty attribute-value.\n\n cookieAttributeList.secure = true\n } else if (attributeNameLowercase === 'httponly') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.6\n // If the attribute-name case-insensitively matches the string\n // \"HttpOnly\", the user agent MUST append an attribute to the cookie-\n // attribute-list with an attribute-name of HttpOnly and an empty\n // attribute-value.\n\n cookieAttributeList.httpOnly = true\n } else if (attributeNameLowercase === 'samesite') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.7\n // If the attribute-name case-insensitively matches the string\n // \"SameSite\", the user agent MUST process the cookie-av as follows:\n\n // 1. Let enforcement be \"Default\".\n let enforcement = 'Default'\n\n const attributeValueLowercase = attributeValue.toLowerCase()\n // 2. If cookie-av's attribute-value is a case-insensitive match for\n // \"None\", set enforcement to \"None\".\n if (attributeValueLowercase.includes('none')) {\n enforcement = 'None'\n }\n\n // 3. If cookie-av's attribute-value is a case-insensitive match for\n // \"Strict\", set enforcement to \"Strict\".\n if (attributeValueLowercase.includes('strict')) {\n enforcement = 'Strict'\n }\n\n // 4. If cookie-av's attribute-value is a case-insensitive match for\n // \"Lax\", set enforcement to \"Lax\".\n if (attributeValueLowercase.includes('lax')) {\n enforcement = 'Lax'\n }\n\n // 5. Append an attribute to the cookie-attribute-list with an\n // attribute-name of \"SameSite\" and an attribute-value of\n // enforcement.\n cookieAttributeList.sameSite = enforcement\n } else {\n cookieAttributeList.unparsed ??= []\n\n cookieAttributeList.unparsed.push(`${attributeName}=${attributeValue}`)\n }\n\n // 8. Return to Step 1 of this algorithm.\n return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)\n}\n\nmodule.exports = {\n parseSetCookie,\n parseUnparsedAttributes\n}\n", "'use strict'\n\nconst { parseSetCookie } = require('./parse')\nconst { stringify } = require('./util')\nconst { webidl } = require('../fetch/webidl')\nconst { Headers } = require('../fetch/headers')\n\n/**\n * @typedef {Object} Cookie\n * @property {string} name\n * @property {string} value\n * @property {Date|number|undefined} expires\n * @property {number|undefined} maxAge\n * @property {string|undefined} domain\n * @property {string|undefined} path\n * @property {boolean|undefined} secure\n * @property {boolean|undefined} httpOnly\n * @property {'Strict'|'Lax'|'None'} sameSite\n * @property {string[]} unparsed\n */\n\n/**\n * @param {Headers} headers\n * @returns {Record}\n */\nfunction getCookies (headers) {\n webidl.argumentLengthCheck(arguments, 1, 'getCookies')\n\n webidl.brandCheck(headers, Headers, { strict: false })\n\n const cookie = headers.get('cookie')\n const out = {}\n\n if (!cookie) {\n return out\n }\n\n for (const piece of cookie.split(';')) {\n const [name, ...value] = piece.split('=')\n\n out[name.trim()] = value.join('=')\n }\n\n return out\n}\n\n/**\n * @param {Headers} headers\n * @param {string} name\n * @param {{ path?: string, domain?: string }|undefined} attributes\n * @returns {void}\n */\nfunction deleteCookie (headers, name, attributes) {\n webidl.brandCheck(headers, Headers, { strict: false })\n\n const prefix = 'deleteCookie'\n webidl.argumentLengthCheck(arguments, 2, prefix)\n\n name = webidl.converters.DOMString(name, prefix, 'name')\n attributes = webidl.converters.DeleteCookieAttributes(attributes)\n\n // Matches behavior of\n // https://github.com/denoland/deno_std/blob/63827b16330b82489a04614027c33b7904e08be5/http/cookie.ts#L278\n setCookie(headers, {\n name,\n value: '',\n expires: new Date(0),\n ...attributes\n })\n}\n\n/**\n * @param {Headers} headers\n * @returns {Cookie[]}\n */\nfunction getSetCookies (headers) {\n webidl.argumentLengthCheck(arguments, 1, 'getSetCookies')\n\n webidl.brandCheck(headers, Headers, { strict: false })\n\n const cookies = headers.getSetCookie()\n\n if (!cookies) {\n return []\n }\n\n return cookies.map((pair) => parseSetCookie(pair))\n}\n\n/**\n * @param {Headers} headers\n * @param {Cookie} cookie\n * @returns {void}\n */\nfunction setCookie (headers, cookie) {\n webidl.argumentLengthCheck(arguments, 2, 'setCookie')\n\n webidl.brandCheck(headers, Headers, { strict: false })\n\n cookie = webidl.converters.Cookie(cookie)\n\n const str = stringify(cookie)\n\n if (str) {\n headers.append('Set-Cookie', str)\n }\n}\n\nwebidl.converters.DeleteCookieAttributes = webidl.dictionaryConverter([\n {\n converter: webidl.nullableConverter(webidl.converters.DOMString),\n key: 'path',\n defaultValue: () => null\n },\n {\n converter: webidl.nullableConverter(webidl.converters.DOMString),\n key: 'domain',\n defaultValue: () => null\n }\n])\n\nwebidl.converters.Cookie = webidl.dictionaryConverter([\n {\n converter: webidl.converters.DOMString,\n key: 'name'\n },\n {\n converter: webidl.converters.DOMString,\n key: 'value'\n },\n {\n converter: webidl.nullableConverter((value) => {\n if (typeof value === 'number') {\n return webidl.converters['unsigned long long'](value)\n }\n\n return new Date(value)\n }),\n key: 'expires',\n defaultValue: () => null\n },\n {\n converter: webidl.nullableConverter(webidl.converters['long long']),\n key: 'maxAge',\n defaultValue: () => null\n },\n {\n converter: webidl.nullableConverter(webidl.converters.DOMString),\n key: 'domain',\n defaultValue: () => null\n },\n {\n converter: webidl.nullableConverter(webidl.converters.DOMString),\n key: 'path',\n defaultValue: () => null\n },\n {\n converter: webidl.nullableConverter(webidl.converters.boolean),\n key: 'secure',\n defaultValue: () => null\n },\n {\n converter: webidl.nullableConverter(webidl.converters.boolean),\n key: 'httpOnly',\n defaultValue: () => null\n },\n {\n converter: webidl.converters.USVString,\n key: 'sameSite',\n allowedValues: ['Strict', 'Lax', 'None']\n },\n {\n converter: webidl.sequenceConverter(webidl.converters.DOMString),\n key: 'unparsed',\n defaultValue: () => new Array(0)\n }\n])\n\nmodule.exports = {\n getCookies,\n deleteCookie,\n getSetCookies,\n setCookie\n}\n", "'use strict'\n\nconst { webidl } = require('../fetch/webidl')\nconst { kEnumerableProperty } = require('../../core/util')\nconst { kConstruct } = require('../../core/symbols')\nconst { MessagePort } = require('node:worker_threads')\n\n/**\n * @see https://html.spec.whatwg.org/multipage/comms.html#messageevent\n */\nclass MessageEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict = {}) {\n if (type === kConstruct) {\n super(arguments[1], arguments[2])\n webidl.util.markAsUncloneable(this)\n return\n }\n\n const prefix = 'MessageEvent constructor'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n type = webidl.converters.DOMString(type, prefix, 'type')\n eventInitDict = webidl.converters.MessageEventInit(eventInitDict, prefix, 'eventInitDict')\n\n super(type, eventInitDict)\n\n this.#eventInit = eventInitDict\n webidl.util.markAsUncloneable(this)\n }\n\n get data () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.data\n }\n\n get origin () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.origin\n }\n\n get lastEventId () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.lastEventId\n }\n\n get source () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.source\n }\n\n get ports () {\n webidl.brandCheck(this, MessageEvent)\n\n if (!Object.isFrozen(this.#eventInit.ports)) {\n Object.freeze(this.#eventInit.ports)\n }\n\n return this.#eventInit.ports\n }\n\n initMessageEvent (\n type,\n bubbles = false,\n cancelable = false,\n data = null,\n origin = '',\n lastEventId = '',\n source = null,\n ports = []\n ) {\n webidl.brandCheck(this, MessageEvent)\n\n webidl.argumentLengthCheck(arguments, 1, 'MessageEvent.initMessageEvent')\n\n return new MessageEvent(type, {\n bubbles, cancelable, data, origin, lastEventId, source, ports\n })\n }\n\n static createFastMessageEvent (type, init) {\n const messageEvent = new MessageEvent(kConstruct, type, init)\n messageEvent.#eventInit = init\n messageEvent.#eventInit.data ??= null\n messageEvent.#eventInit.origin ??= ''\n messageEvent.#eventInit.lastEventId ??= ''\n messageEvent.#eventInit.source ??= null\n messageEvent.#eventInit.ports ??= []\n return messageEvent\n }\n}\n\nconst { createFastMessageEvent } = MessageEvent\ndelete MessageEvent.createFastMessageEvent\n\n/**\n * @see https://websockets.spec.whatwg.org/#the-closeevent-interface\n */\nclass CloseEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict = {}) {\n const prefix = 'CloseEvent constructor'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n type = webidl.converters.DOMString(type, prefix, 'type')\n eventInitDict = webidl.converters.CloseEventInit(eventInitDict)\n\n super(type, eventInitDict)\n\n this.#eventInit = eventInitDict\n webidl.util.markAsUncloneable(this)\n }\n\n get wasClean () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.wasClean\n }\n\n get code () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.code\n }\n\n get reason () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.reason\n }\n}\n\n// https://html.spec.whatwg.org/multipage/webappapis.html#the-errorevent-interface\nclass ErrorEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict) {\n const prefix = 'ErrorEvent constructor'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n super(type, eventInitDict)\n webidl.util.markAsUncloneable(this)\n\n type = webidl.converters.DOMString(type, prefix, 'type')\n eventInitDict = webidl.converters.ErrorEventInit(eventInitDict ?? {})\n\n this.#eventInit = eventInitDict\n }\n\n get message () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.message\n }\n\n get filename () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.filename\n }\n\n get lineno () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.lineno\n }\n\n get colno () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.colno\n }\n\n get error () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.error\n }\n}\n\nObject.defineProperties(MessageEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'MessageEvent',\n configurable: true\n },\n data: kEnumerableProperty,\n origin: kEnumerableProperty,\n lastEventId: kEnumerableProperty,\n source: kEnumerableProperty,\n ports: kEnumerableProperty,\n initMessageEvent: kEnumerableProperty\n})\n\nObject.defineProperties(CloseEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'CloseEvent',\n configurable: true\n },\n reason: kEnumerableProperty,\n code: kEnumerableProperty,\n wasClean: kEnumerableProperty\n})\n\nObject.defineProperties(ErrorEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'ErrorEvent',\n configurable: true\n },\n message: kEnumerableProperty,\n filename: kEnumerableProperty,\n lineno: kEnumerableProperty,\n colno: kEnumerableProperty,\n error: kEnumerableProperty\n})\n\nwebidl.converters.MessagePort = webidl.interfaceConverter(MessagePort)\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.MessagePort\n)\n\nconst eventInit = [\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\nwebidl.converters.MessageEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'data',\n converter: webidl.converters.any,\n defaultValue: () => null\n },\n {\n key: 'origin',\n converter: webidl.converters.USVString,\n defaultValue: () => ''\n },\n {\n key: 'lastEventId',\n converter: webidl.converters.DOMString,\n defaultValue: () => ''\n },\n {\n key: 'source',\n // Node doesn't implement WindowProxy or ServiceWorker, so the only\n // valid value for source is a MessagePort.\n converter: webidl.nullableConverter(webidl.converters.MessagePort),\n defaultValue: () => null\n },\n {\n key: 'ports',\n converter: webidl.converters['sequence'],\n defaultValue: () => new Array(0)\n }\n])\n\nwebidl.converters.CloseEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'wasClean',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'code',\n converter: webidl.converters['unsigned short'],\n defaultValue: () => 0\n },\n {\n key: 'reason',\n converter: webidl.converters.USVString,\n defaultValue: () => ''\n }\n])\n\nwebidl.converters.ErrorEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'message',\n converter: webidl.converters.DOMString,\n defaultValue: () => ''\n },\n {\n key: 'filename',\n converter: webidl.converters.USVString,\n defaultValue: () => ''\n },\n {\n key: 'lineno',\n converter: webidl.converters['unsigned long'],\n defaultValue: () => 0\n },\n {\n key: 'colno',\n converter: webidl.converters['unsigned long'],\n defaultValue: () => 0\n },\n {\n key: 'error',\n converter: webidl.converters.any\n }\n])\n\nmodule.exports = {\n MessageEvent,\n CloseEvent,\n ErrorEvent,\n createFastMessageEvent\n}\n", "'use strict'\n\n// This is a Globally Unique Identifier unique used\n//