mirror of
https://github.com/docker/build-push-action.git
synced 2026-10-01 15:58:00 +00:00
392 lines
2.4 MiB
Plaintext
Generated
392 lines
2.4 MiB
Plaintext
Generated
var uqe=Object.create;var Ix=Object.defineProperty;var dqe=Object.getOwnPropertyDescriptor;var fqe=Object.getOwnPropertyNames;var hqe=Object.getPrototypeOf,pqe=Object.prototype.hasOwnProperty;var o=(t,e)=>Ix(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Aqe=(t,e)=>{for(var r in e)Ix(t,r,{get:e[r],enumerable:!0})},mqe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of fqe(e))!pqe.call(t,i)&&i!==r&&Ix(t,i,{get:()=>e[i],enumerable:!(n=dqe(e,i))||n.enumerable});return t};var N=(t,e,r)=>(r=t!=null?uqe(hqe(t)):{},mqe(e||!t||!t.__esModule?Ix(r,"default",{value:t,enumerable:!0}):r,t));var GZ=m(hm=>{"use strict";var szt=require("net"),wqe=require("tls"),IL=require("http"),MZ=require("https"),Iqe=require("events"),ozt=require("assert"),Sqe=require("util");hm.httpOverHttp=Bqe;hm.httpsOverHttp=xqe;hm.httpOverHttps=vqe;hm.httpsOverHttps=Nqe;function Bqe(t){var e=new yu(t);return e.request=IL.request,e}o(Bqe,"httpOverHttp");function xqe(t){var e=new yu(t);return e.request=IL.request,e.createSocket=UZ,e.defaultPort=443,e}o(xqe,"httpsOverHttp");function vqe(t){var e=new yu(t);return e.request=MZ.request,e}o(vqe,"httpOverHttps");function Nqe(t){var e=new yu(t);return e.request=MZ.request,e.createSocket=UZ,e.defaultPort=443,e}o(Nqe,"httpsOverHttps");function yu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||IL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,i,s,a){for(var c=qZ(i,s,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(yu,"TunnelingAgent");Sqe.inherits(yu,Iqe.EventEmitter);yu.prototype.addRequest=o(function(e,r,n,i){var s=this,a=SL({request:e},s.options,qZ(r,n,i));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){s.emit("free",c,a)}o(l,"onFree");function u(d){s.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");yu.prototype.createSocket=o(function(e,r){var n=this,i={};n.sockets.push(i);var s=SL({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Od("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(f){f.upgrade=!0}o(c,"onResponse");function l(f,h,p){process.nextTick(function(){u(f,h,p)})}o(l,"onUpgrade");function u(f,h,p){if(a.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){Od("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var g=new Error("tunneling socket could not be established, statusCode="+f.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(i);return}if(p.length>0){Od("got illegal response body from proxy"),h.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(i);return}return Od("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=h,r(h)}o(u,"onConnect");function d(f){a.removeAllListeners(),Od(`tunneling socket could not be established, cause=%s
|
|
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(i)}o(d,"onError")},"createSocket");yu.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(i){n.request.onSocket(i)})}},"removeSocket");function UZ(t,e){var r=this;yu.prototype.createSocket.call(r,t,function(n){var i=t.request.getHeader("host"),s=SL({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):t.host}),a=wqe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(UZ,"createSecureSocket");function qZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(qZ,"toOptions");function SL(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var i=Object.keys(n),s=0,a=i.length;s<a;++s){var c=i[s];n[c]!==void 0&&(t[c]=n[c])}}return t}o(SL,"mergeOptions");var Od;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Od=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Od=o(function(){},"debug");hm.debug=Od});var pm=m((lzt,HZ)=>{HZ.exports=GZ()});var Ar=m((uzt,VZ)=>{VZ.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 Tt=m((dzt,Aee)=>{"use strict";var zZ=Symbol.for("undici.error.UND_ERR"),mr=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[zZ]===!0}[zZ]=!0},$Z=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),BL=class extends mr{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[$Z]===!0}[$Z]=!0},jZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),xL=class extends mr{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[jZ]===!0}[jZ]=!0},WZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),vL=class extends mr{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[WZ]===!0}[WZ]=!0},JZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),NL=class extends mr{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[JZ]===!0}[JZ]=!0},YZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),_L=class extends mr{static{o(this,"ResponseStatusCodeError")}constructor(e,r,n,i){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=i,this.status=r,this.statusCode=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[YZ]===!0}[YZ]=!0},KZ=Symbol.for("undici.error.UND_ERR_INVALID_ARG"),TL=class extends mr{static{o(this,"InvalidArgumentError")}constructor(e){super(e),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](e){return e&&e[KZ]===!0}[KZ]=!0},XZ=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE"),RL=class extends mr{static{o(this,"InvalidReturnValueError")}constructor(e){super(e),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](e){return e&&e[XZ]===!0}[XZ]=!0},ZZ=Symbol.for("undici.error.UND_ERR_ABORT"),Nx=class extends mr{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError",this.message=e||"The operation was aborted",this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](e){return e&&e[ZZ]===!0}[ZZ]=!0},eee=Symbol.for("undici.error.UND_ERR_ABORTED"),DL=class extends Nx{static{o(this,"RequestAbortedError")}constructor(e){super(e),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](e){return e&&e[eee]===!0}[eee]=!0},tee=Symbol.for("undici.error.UND_ERR_INFO"),QL=class extends mr{static{o(this,"InformationalError")}constructor(e){super(e),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO"}static[Symbol.hasInstance](e){return e&&e[tee]===!0}[tee]=!0},ree=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"),PL=class extends mr{static{o(this,"RequestContentLengthMismatchError")}constructor(e){super(e),this.name="RequestContentLengthMismatchError",this.message=e||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[ree]===!0}[ree]=!0},nee=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH"),kL=class extends mr{static{o(this,"ResponseContentLengthMismatchError")}constructor(e){super(e),this.name="ResponseContentLengthMismatchError",this.message=e||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[nee]===!0}[nee]=!0},iee=Symbol.for("undici.error.UND_ERR_DESTROYED"),OL=class extends mr{static{o(this,"ClientDestroyedError")}constructor(e){super(e),this.name="ClientDestroyedError",this.message=e||"The client is destroyed",this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](e){return e&&e[iee]===!0}[iee]=!0},see=Symbol.for("undici.error.UND_ERR_CLOSED"),LL=class extends mr{static{o(this,"ClientClosedError")}constructor(e){super(e),this.name="ClientClosedError",this.message=e||"The client is closed",this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](e){return e&&e[see]===!0}[see]=!0},oee=Symbol.for("undici.error.UND_ERR_SOCKET"),FL=class extends mr{static{o(this,"SocketError")}constructor(e,r){super(e),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=r}static[Symbol.hasInstance](e){return e&&e[oee]===!0}[oee]=!0},aee=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED"),ML=class extends mr{static{o(this,"NotSupportedError")}constructor(e){super(e),this.name="NotSupportedError",this.message=e||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](e){return e&&e[aee]===!0}[aee]=!0},cee=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM"),UL=class extends mr{static{o(this,"BalancedPoolMissingUpstreamError")}constructor(e){super(e),this.name="MissingUpstreamError",this.message=e||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](e){return e&&e[cee]===!0}[cee]=!0},lee=Symbol.for("undici.error.UND_ERR_HTTP_PARSER"),qL=class extends Error{static{o(this,"HTTPParserError")}constructor(e,r,n){super(e),this.name="HTTPParserError",this.code=r?`HPE_${r}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[lee]===!0}[lee]=!0},uee=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE"),GL=class extends mr{static{o(this,"ResponseExceededMaxSizeError")}constructor(e){super(e),this.name="ResponseExceededMaxSizeError",this.message=e||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](e){return e&&e[uee]===!0}[uee]=!0},dee=Symbol.for("undici.error.UND_ERR_REQ_RETRY"),HL=class extends mr{static{o(this,"RequestRetryError")}constructor(e,r,{headers:n,data:i}){super(e),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=r,this.data=i,this.headers=n}static[Symbol.hasInstance](e){return e&&e[dee]===!0}[dee]=!0},fee=Symbol.for("undici.error.UND_ERR_RESPONSE"),VL=class extends mr{static{o(this,"ResponseError")}constructor(e,r,{headers:n,data:i}){super(e),this.name="ResponseError",this.message=e||"Response error",this.code="UND_ERR_RESPONSE",this.statusCode=r,this.data=i,this.headers=n}static[Symbol.hasInstance](e){return e&&e[fee]===!0}[fee]=!0},hee=Symbol.for("undici.error.UND_ERR_PRX_TLS"),zL=class extends mr{static{o(this,"SecureProxyConnectionError")}constructor(e,r,n){super(r,{cause:e,...n??{}}),this.name="SecureProxyConnectionError",this.message=r||"Secure Proxy Connection failed",this.code="UND_ERR_PRX_TLS",this.cause=e}static[Symbol.hasInstance](e){return e&&e[hee]===!0}[hee]=!0},pee=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"),$L=class extends mr{static{o(this,"MessageSizeExceededError")}constructor(e){super(e),this.name="MessageSizeExceededError",this.message=e||"Max decompressed message size exceeded",this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](e){return e&&e[pee]===!0}get[pee](){return!0}};Aee.exports={AbortError:Nx,HTTPParserError:qL,UndiciError:mr,HeadersTimeoutError:xL,HeadersOverflowError:vL,BodyTimeoutError:NL,RequestContentLengthMismatchError:PL,ConnectTimeoutError:BL,ResponseStatusCodeError:_L,InvalidArgumentError:TL,InvalidReturnValueError:RL,RequestAbortedError:DL,ClientDestroyedError:OL,ClientClosedError:LL,InformationalError:QL,SocketError:FL,NotSupportedError:ML,ResponseContentLengthMismatchError:kL,BalancedPoolMissingUpstreamError:UL,ResponseExceededMaxSizeError:GL,RequestRetryError:HL,ResponseError:VL,SecureProxyConnectionError:zL,MessageSizeExceededError:$L}});var Tx=m((hzt,mee)=>{"use strict";var _x={},jL=["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<jL.length;++t){let e=jL[t],r=e.toLowerCase();_x[e]=_x[r]=r}Object.setPrototypeOf(_x,null);mee.exports={wellknownHeaderNames:jL,headerNameLowerCasedRecord:_x}});var Cee=m((pzt,Eee)=>{"use strict";var{wellknownHeaderNames:gee,headerNameLowerCasedRecord:_qe}=Tx(),WL=class t{static{o(this,"TstNode")}value=null;left=null;middle=null;right=null;code;constructor(e,r,n){if(n===void 0||n>=e.length)throw new TypeError("Unreachable");if((this.code=e.charCodeAt(n))>127)throw new TypeError("key must be ascii string");e.length!==++n?this.middle=new t(e,r,n):this.value=r}add(e,r){let n=e.length;if(n===0)throw new TypeError("Unreachable");let i=0,s=this;for(;;){let a=e.charCodeAt(i);if(a>127)throw new TypeError("key must be ascii string");if(s.code===a)if(n===++i){s.value=r;break}else if(s.middle!==null)s=s.middle;else{s.middle=new t(e,r,i);break}else if(s.code<a)if(s.left!==null)s=s.left;else{s.left=new t(e,r,i);break}else if(s.right!==null)s=s.right;else{s.right=new t(e,r,i);break}}}search(e){let r=e.length,n=0,i=this;for(;i!==null&&n<r;){let s=e[n];for(s<=90&&s>=65&&(s|=32);i!==null;){if(s===i.code){if(r===++n)return i;i=i.middle;break}i=i.code<s?i.left:i.right}}return null}},Rx=class{static{o(this,"TernarySearchTree")}node=null;insert(e,r){this.node===null?this.node=new WL(e,r,0):this.node.add(e,r)}lookup(e){return this.node?.search(e)?.value??null}},yee=new Rx;for(let t=0;t<gee.length;++t){let e=_qe[gee[t]];yee.insert(e,e)}Eee.exports={TernarySearchTree:Rx,tree:yee}});var ot=m((mzt,Oee)=>{"use strict";var nb=require("node:assert"),{kDestroyed:wee,kBodyUsed:Am,kListeners:JL,kBody:bee}=Ar(),{IncomingMessage:Tqe}=require("node:http"),Px=require("node:stream"),Rqe=require("node:net"),{Blob:Dqe}=require("node:buffer"),Qqe=require("node:util"),{stringify:Pqe}=require("node:querystring"),{EventEmitter:kqe}=require("node:events"),{InvalidArgumentError:qn}=Tt(),{headerNameLowerCasedRecord:Oqe}=Tx(),{tree:Iee}=Cee(),[Lqe,Fqe]=process.versions.node.split(".").map(t=>Number(t)),Qx=class{static{o(this,"BodyAsyncIterable")}constructor(e){this[bee]=e,this[Am]=!1}async*[Symbol.asyncIterator](){nb(!this[Am],"disturbed"),this[Am]=!0,yield*this[bee]}};function Mqe(t){return kx(t)?(Nee(t)===0&&t.on("data",function(){nb(!1)}),typeof t.readableDidRead!="boolean"&&(t[Am]=!1,kqe.prototype.on.call(t,"data",function(){this[Am]=!0})),t):t&&typeof t.pipeTo=="function"?new Qx(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&vee(t)?new Qx(t):t}o(Mqe,"wrapRequestBody");function Uqe(){}o(Uqe,"nop");function kx(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}o(kx,"isStream");function See(t){if(t===null)return!1;if(t instanceof Dqe)return!0;if(typeof t!="object")return!1;{let e=t[Symbol.toStringTag];return(e==="Blob"||e==="File")&&("stream"in t&&typeof t.stream=="function"||"arrayBuffer"in t&&typeof t.arrayBuffer=="function")}}o(See,"isBlobLike");function qqe(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=Pqe(e);return r&&(t+="?"+r),t}o(qqe,"buildURL");function Bee(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}o(Bee,"isValidPort");function Dx(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}o(Dx,"isHttpOrHttpsPrefixed");function xee(t){if(typeof t=="string"){if(t=new URL(t),!Dx(t.origin||t.protocol))throw new qn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new qn("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&Bee(t.port)===!1)throw new qn("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 qn("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new qn("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new qn("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new qn("Invalid URL origin: the origin must be a string or null/undefined.");if(!Dx(t.origin||t.protocol))throw new qn("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(!Dx(t.origin||t.protocol))throw new qn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}o(xee,"parseURL");function Gqe(t){if(t=xee(t),t.pathname!=="/"||t.search||t.hash)throw new qn("invalid url");return t}o(Gqe,"parseOrigin");function Hqe(t){if(t[0]==="["){let r=t.indexOf("]");return nb(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}o(Hqe,"getHostname");function Vqe(t){if(!t)return null;nb(typeof t=="string");let e=Hqe(t);return Rqe.isIP(e)?"":e}o(Vqe,"getServerName");function zqe(t){return JSON.parse(JSON.stringify(t))}o(zqe,"deepClone");function $qe(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}o($qe,"isAsyncIterable");function vee(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}o(vee,"isIterable");function Nee(t){if(t==null)return 0;if(kx(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(See(t))return t.size!=null?t.size:null;if(Ree(t))return t.byteLength}return null}o(Nee,"bodyLength");function _ee(t){return t&&!!(t.destroyed||t[wee]||Px.isDestroyed?.(t))}o(_ee,"isDestroyed");function jqe(t,e){t==null||!kx(t)||_ee(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===Tqe&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[wee]=!0))}o(jqe,"destroy");var Wqe=/timeout=(\d+)/;function Jqe(t){let e=t.toString().match(Wqe);return e?parseInt(e[1],10)*1e3:null}o(Jqe,"parseKeepAliveTimeout");function Tee(t){return typeof t=="string"?Oqe[t]??t.toLowerCase():Iee.lookup(t)??t.toString("latin1").toLowerCase()}o(Tee,"headerNameToString");function Yqe(t){return Iee.lookup(t)??t.toString("latin1").toLowerCase()}o(Yqe,"bufferToLowerCasedHeaderName");function Kqe(t,e){e===void 0&&(e={});for(let r=0;r<t.length;r+=2){let n=Tee(t[r]),i=e[n];if(i)typeof i=="string"&&(i=[i],e[n]=i),i.push(t[r+1].toString("utf8"));else{let s=t[r+1];typeof s=="string"?e[n]=s:e[n]=Array.isArray(s)?s.map(a=>a.toString("utf8")):s.toString("utf8")}}return"content-length"in e&&"content-disposition"in e&&(e["content-disposition"]=Buffer.from(e["content-disposition"]).toString("latin1")),e}o(Kqe,"parseHeaders");function Xqe(t){let e=t.length,r=new Array(e),n=!1,i=-1,s,a,c=0;for(let l=0;l<t.length;l+=2)s=t[l],a=t[l+1],typeof s!="string"&&(s=s.toString()),typeof a!="string"&&(a=a.toString("utf8")),c=s.length,c===14&&s[7]==="-"&&(s==="content-length"||s.toLowerCase()==="content-length")?n=!0:c===19&&s[7]==="-"&&(s==="content-disposition"||s.toLowerCase()==="content-disposition")&&(i=l+1),r[l]=s,r[l+1]=a;return n&&i!==-1&&(r[i]=Buffer.from(r[i]).toString("latin1")),r}o(Xqe,"parseRawHeaders");function Ree(t){return t instanceof Uint8Array||Buffer.isBuffer(t)}o(Ree,"isBuffer");function Zqe(t,e,r){if(!t||typeof t!="object")throw new qn("handler must be an object");if(typeof t.onConnect!="function")throw new qn("invalid onConnect method");if(typeof t.onError!="function")throw new qn("invalid onError method");if(typeof t.onBodySent!="function"&&t.onBodySent!==void 0)throw new qn("invalid onBodySent method");if(r||e==="CONNECT"){if(typeof t.onUpgrade!="function")throw new qn("invalid onUpgrade method")}else{if(typeof t.onHeaders!="function")throw new qn("invalid onHeaders method");if(typeof t.onData!="function")throw new qn("invalid onData method");if(typeof t.onComplete!="function")throw new qn("invalid onComplete method")}}o(Zqe,"validateHandler");function e3e(t){return!!(t&&(Px.isDisturbed(t)||t[Am]))}o(e3e,"isDisturbed");function t3e(t){return!!(t&&Px.isErrored(t))}o(t3e,"isErrored");function r3e(t){return!!(t&&Px.isReadable(t))}o(r3e,"isReadable");function n3e(t){return{localAddress:t.localAddress,localPort:t.localPort,remoteAddress:t.remoteAddress,remotePort:t.remotePort,remoteFamily:t.remoteFamily,timeout:t.timeout,bytesWritten:t.bytesWritten,bytesRead:t.bytesRead}}o(n3e,"getSocketInfo");function i3e(t){let e;return new ReadableStream({async start(){e=t[Symbol.asyncIterator]()},async pull(r){let{done:n,value:i}=await e.next();if(n)queueMicrotask(()=>{r.close(),r.byobRequest?.respond(0)});else{let s=Buffer.isBuffer(i)?i:Buffer.from(i);s.byteLength&&r.enqueue(new Uint8Array(s))}return r.desiredSize>0},async cancel(r){await e.return()},type:"bytes"})}o(i3e,"ReadableStreamFrom");function s3e(t){return t&&typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&t[Symbol.toStringTag]==="FormData"}o(s3e,"isFormDataLike");function o3e(t,e){return"addEventListener"in t?(t.addEventListener("abort",e,{once:!0}),()=>t.removeEventListener("abort",e)):(t.addListener("abort",e),()=>t.removeListener("abort",e))}o(o3e,"addAbortListener");var a3e=typeof String.prototype.toWellFormed=="function",c3e=typeof String.prototype.isWellFormed=="function";function Dee(t){return a3e?`${t}`.toWellFormed():Qqe.toUSVString(t)}o(Dee,"toUSVString");function l3e(t){return c3e?`${t}`.isWellFormed():Dee(t)===`${t}`}o(l3e,"isUSVString");function Qee(t){switch(t){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return!1;default:return t>=33&&t<=126}}o(Qee,"isTokenCharCode");function u3e(t){if(t.length===0)return!1;for(let e=0;e<t.length;++e)if(!Qee(t.charCodeAt(e)))return!1;return!0}o(u3e,"isValidHTTPToken");var d3e=/[^\t\x20-\x7e\x80-\xff]/;function f3e(t){return!d3e.test(t)}o(f3e,"isValidHeaderValue");function h3e(t){if(t==null||t==="")return{start:0,end:null,size:null};let e=t?t.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return e?{start:parseInt(e[1]),end:e[2]?parseInt(e[2]):null,size:e[3]?parseInt(e[3]):null}:null}o(h3e,"parseRangeHeader");function p3e(t,e,r){return(t[JL]??=[]).push([e,r]),t.on(e,r),t}o(p3e,"addListener");function A3e(t){for(let[e,r]of t[JL]??[])t.removeListener(e,r);t[JL]=null}o(A3e,"removeAllListeners");function m3e(t,e,r){try{e.onError(r),nb(e.aborted)}catch(n){t.emit("error",n)}}o(m3e,"errorRequest");var Pee=Object.create(null);Pee.enumerable=!0;var YL={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"},kee={...YL,patch:"patch",PATCH:"PATCH"};Object.setPrototypeOf(YL,null);Object.setPrototypeOf(kee,null);Oee.exports={kEnumerableProperty:Pee,nop:Uqe,isDisturbed:e3e,isErrored:t3e,isReadable:r3e,toUSVString:Dee,isUSVString:l3e,isBlobLike:See,parseOrigin:Gqe,parseURL:xee,getServerName:Vqe,isStream:kx,isIterable:vee,isAsyncIterable:$qe,isDestroyed:_ee,headerNameToString:Tee,bufferToLowerCasedHeaderName:Yqe,addListener:p3e,removeAllListeners:A3e,errorRequest:m3e,parseRawHeaders:Xqe,parseHeaders:Kqe,parseKeepAliveTimeout:Jqe,destroy:jqe,bodyLength:Nee,deepClone:zqe,ReadableStreamFrom:i3e,isBuffer:Ree,validateHandler:Zqe,getSocketInfo:n3e,isFormDataLike:s3e,buildURL:qqe,addAbortListener:o3e,isValidHTTPToken:u3e,isValidHeaderValue:f3e,isTokenCharCode:Qee,parseRangeHeader:h3e,normalizedMethodRecordsBase:YL,normalizedMethodRecords:kee,isValidPort:Bee,isHttpOrHttpsPrefixed:Dx,nodeMajor:Lqe,nodeMinor:Fqe,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"],wrapRequestBody:Mqe}});var mm=m((yzt,Fee)=>{"use strict";var Ut=require("node:diagnostics_channel"),XL=require("node:util"),Ox=XL.debuglog("undici"),KL=XL.debuglog("fetch"),Rh=XL.debuglog("websocket"),Lee=!1,g3e={beforeConnect:Ut.channel("undici:client:beforeConnect"),connected:Ut.channel("undici:client:connected"),connectError:Ut.channel("undici:client:connectError"),sendHeaders:Ut.channel("undici:client:sendHeaders"),create:Ut.channel("undici:request:create"),bodySent:Ut.channel("undici:request:bodySent"),headers:Ut.channel("undici:request:headers"),trailers:Ut.channel("undici:request:trailers"),error:Ut.channel("undici:request:error"),open:Ut.channel("undici:websocket:open"),close:Ut.channel("undici:websocket:close"),socketError:Ut.channel("undici:websocket:socket_error"),ping:Ut.channel("undici:websocket:ping"),pong:Ut.channel("undici:websocket:pong")};if(Ox.enabled||KL.enabled){let t=KL.enabled?KL:Ox;Ut.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connecting to %s using %s%s",`${s}${i?`:${i}`:""}`,n,r)}),Ut.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connected to %s using %s%s",`${s}${i?`:${i}`:""}`,n,r)}),Ut.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s},error:a}=e;t("connection to %s using %s%s errored - %s",`${s}${i?`:${i}`:""}`,n,r,a.message)}),Ut.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:i}}=e;t("sending request to %s %s/%s",r,i,n)}),Ut.channel("undici:request:headers").subscribe(e=>{let{request:{method:r,path:n,origin:i},response:{statusCode:s}}=e;t("received response to %s %s/%s - HTTP %d",r,i,n,s)}),Ut.channel("undici:request:trailers").subscribe(e=>{let{request:{method:r,path:n,origin:i}}=e;t("trailers received from %s %s/%s",r,i,n)}),Ut.channel("undici:request:error").subscribe(e=>{let{request:{method:r,path:n,origin:i},error:s}=e;t("request to %s %s/%s errored - %s",r,i,n,s.message)}),Lee=!0}if(Rh.enabled){if(!Lee){let t=Ox.enabled?Ox:Rh;Ut.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connecting to %s%s using %s%s",s,i?`:${i}`:"",n,r)}),Ut.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connected to %s%s using %s%s",s,i?`:${i}`:"",n,r)}),Ut.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s},error:a}=e;t("connection to %s%s using %s%s errored - %s",s,i?`:${i}`:"",n,r,a.message)}),Ut.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:i}}=e;t("sending request to %s %s/%s",r,i,n)})}Ut.channel("undici:websocket:open").subscribe(t=>{let{address:{address:e,port:r}}=t;Rh("connection opened %s%s",e,r?`:${r}`:"")}),Ut.channel("undici:websocket:close").subscribe(t=>{let{websocket:e,code:r,reason:n}=t;Rh("closed connection to %s - %s %s",e.url,r,n)}),Ut.channel("undici:websocket:socket_error").subscribe(t=>{Rh("connection errored - %s",t.message)}),Ut.channel("undici:websocket:ping").subscribe(t=>{Rh("ping received")}),Ut.channel("undici:websocket:pong").subscribe(t=>{Rh("pong received")})}Fee.exports={channels:g3e}});var Gee=m((Ezt,qee)=>{"use strict";var{InvalidArgumentError:Vt,NotSupportedError:y3e}=Tt(),Eu=require("node:assert"),{isValidHTTPToken:Uee,isValidHeaderValue:ib,isStream:E3e,destroy:C3e,isBuffer:b3e,isFormDataLike:w3e,isIterable:I3e,isBlobLike:S3e,buildURL:B3e,validateHandler:x3e,getServerName:v3e,normalizedMethodRecords:N3e}=ot(),{channels:Nc}=mm(),{headerNameLowerCasedRecord:Mee}=Tx(),_3e=/[^\u0021-\u00ff]/,ko=Symbol("handler"),ZL=class{static{o(this,"Request")}constructor(e,{path:r,method:n,body:i,headers:s,query:a,idempotent:c,blocking:l,upgrade:u,headersTimeout:d,bodyTimeout:f,reset:h,throwOnError:p,expectContinue:g,servername:A},E){if(typeof r!="string")throw new Vt("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("https://"))&&n!=="CONNECT")throw new Vt("path must be an absolute URL or start with a slash");if(_3e.test(r))throw new Vt("invalid request path");if(typeof n!="string")throw new Vt("method must be a string");if(N3e[n]===void 0&&!Uee(n))throw new Vt("invalid request method");if(u&&typeof u!="string")throw new Vt("upgrade must be a string");if(u&&!ib(u))throw new Vt("invalid upgrade header");if(d!=null&&(!Number.isFinite(d)||d<0))throw new Vt("invalid headersTimeout");if(f!=null&&(!Number.isFinite(f)||f<0))throw new Vt("invalid bodyTimeout");if(h!=null&&typeof h!="boolean")throw new Vt("invalid reset");if(g!=null&&typeof g!="boolean")throw new Vt("invalid expectContinue");if(this.headersTimeout=d,this.bodyTimeout=f,this.throwOnError=p===!0,this.method=n,this.abort=null,i==null)this.body=null;else if(E3e(i)){this.body=i;let y=this.body._readableState;(!y||!y.autoDestroy)&&(this.endHandler=o(function(){C3e(this)},"autoDestroy"),this.body.on("end",this.endHandler)),this.errorHandler=C=>{this.abort?this.abort(C):this.error=C},this.body.on("error",this.errorHandler)}else if(b3e(i))this.body=i.byteLength?i:null;else if(ArrayBuffer.isView(i))this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null;else if(i instanceof ArrayBuffer)this.body=i.byteLength?Buffer.from(i):null;else if(typeof i=="string")this.body=i.length?Buffer.from(i):null;else if(w3e(i)||I3e(i)||S3e(i))this.body=i;else throw new Vt("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?B3e(r,a):r,this.origin=e,this.idempotent=c??(n==="HEAD"||n==="GET"),this.blocking=l??!1,this.reset=h??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=g??!1,Array.isArray(s)){if(s.length%2!==0)throw new Vt("headers array must be even");for(let y=0;y<s.length;y+=2)Lx(this,s[y],s[y+1])}else if(s&&typeof s=="object")if(s[Symbol.iterator])for(let y of s){if(!Array.isArray(y)||y.length!==2)throw new Vt("headers must be in key-value pair format");Lx(this,y[0],y[1])}else{let y=Object.keys(s);for(let C=0;C<y.length;++C)Lx(this,y[C],s[y[C]])}else if(s!=null)throw new Vt("headers must be an object or an array");x3e(E,n,u),this.servername=A||v3e(this.host),this[ko]=E,Nc.create.hasSubscribers&&Nc.create.publish({request:this})}onBodySent(e){if(this[ko].onBodySent)try{return this[ko].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(Nc.bodySent.hasSubscribers&&Nc.bodySent.publish({request:this}),this[ko].onRequestSent)try{return this[ko].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(Eu(!this.aborted),Eu(!this.completed),this.error)e(this.error);else return this.abort=e,this[ko].onConnect(e)}onResponseStarted(){return this[ko].onResponseStarted?.()}onHeaders(e,r,n,i){Eu(!this.aborted),Eu(!this.completed),Nc.headers.hasSubscribers&&Nc.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:i}});try{return this[ko].onHeaders(e,r,n,i)}catch(s){this.abort(s)}}onData(e){Eu(!this.aborted),Eu(!this.completed);try{return this[ko].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n){return Eu(!this.aborted),Eu(!this.completed),this[ko].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),Eu(!this.aborted),this.completed=!0,Nc.trailers.hasSubscribers&&Nc.trailers.publish({request:this,trailers:e});try{return this[ko].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),Nc.error.hasSubscribers&&Nc.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[ko].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return Lx(this,e,r),this}};function Lx(t,e,r){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Vt(`invalid ${e} header`);if(r===void 0)return;let n=Mee[e];if(n===void 0&&(n=e.toLowerCase(),Mee[n]===void 0&&!Uee(n)))throw new Vt("invalid header key");if(Array.isArray(r)){let i=[];for(let s=0;s<r.length;s++)if(typeof r[s]=="string"){if(!ib(r[s]))throw new Vt(`invalid ${e} header`);i.push(r[s])}else if(r[s]===null)i.push("");else{if(typeof r[s]=="object")throw new Vt(`invalid ${e} header`);{let a=`${r[s]}`;if(!ib(a))throw new Vt(`invalid ${e} header`);i.push(a)}}r=i}else if(typeof r=="string"){if(!ib(r))throw new Vt(`invalid ${e} header`)}else if(r===null)r="";else if(r=`${r}`,!ib(r))throw new Vt(`invalid ${e} header`);if(n==="host"){if(t.host!==null)throw new Vt("duplicate host header");if(typeof r!="string")throw new Vt("invalid host header");t.host=r}else if(n==="content-length"){if(t.contentLength!==null)throw new Vt("duplicate content-length header");if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Vt("invalid content-length header")}else if(t.contentType===null&&n==="content-type")t.contentType=r,t.headers.push(e,r);else{if(n==="transfer-encoding"||n==="keep-alive"||n==="upgrade")throw new Vt(`invalid ${n} header`);if(n==="connection"){let i=typeof r=="string"?r.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new Vt("invalid connection header");i==="close"&&(t.reset=!0)}else{if(n==="expect")throw new y3e("expect header not supported");t.headers.push(e,r)}}}o(Lx,"processHeader");qee.exports=ZL});var sb=m((bzt,Hee)=>{"use strict";var T3e=require("node:events"),Fx=class extends T3e{static{o(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){let r=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let i of r)if(i!=null){if(typeof i!="function")throw new TypeError(`invalid interceptor, expected function received ${typeof i}`);if(n=i(n),n==null||typeof n!="function"||n.length!==2)throw new TypeError("invalid interceptor")}return new eF(this,n)}},eF=class extends Fx{static{o(this,"ComposedDispatcher")}#e=null;#r=null;constructor(e,r){super(),this.#e=e,this.#r=r}dispatch(...e){this.#r(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};Hee.exports=Fx});var Cm=m((Izt,Vee)=>{"use strict";var R3e=sb(),{ClientDestroyedError:tF,ClientClosedError:D3e,InvalidArgumentError:gm}=Tt(),{kDestroy:Q3e,kClose:P3e,kClosed:ob,kDestroyed:ym,kDispatch:rF,kInterceptors:Dh}=Ar(),Cu=Symbol("onDestroyed"),Em=Symbol("onClosed"),Mx=Symbol("Intercepted Dispatch"),nF=Symbol("webSocketOptions"),iF=class extends R3e{static{o(this,"DispatcherBase")}constructor(e){super(),this[ym]=!1,this[Cu]=null,this[ob]=!1,this[Em]=[],this[nF]=e?.webSocket??{}}get webSocketOptions(){return{maxFragments:this[nF].maxFragments??131072,maxPayloadSize:this[nF].maxPayloadSize??128*1024*1024}}get destroyed(){return this[ym]}get closed(){return this[ob]}get interceptors(){return this[Dh]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[Dh][r]!="function")throw new gm("interceptor must be an function")}this[Dh]=e}close(e){if(e===void 0)return new Promise((n,i)=>{this.close((s,a)=>s?i(s):n(a))});if(typeof e!="function")throw new gm("invalid callback");if(this[ym]){queueMicrotask(()=>e(new tF,null));return}if(this[ob]){this[Em]?this[Em].push(e):queueMicrotask(()=>e(null,null));return}this[ob]=!0,this[Em].push(e);let r=o(()=>{let n=this[Em];this[Em]=null;for(let i=0;i<n.length;i++)n[i](null,null)},"onClosed");this[P3e]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((i,s)=>{this.destroy(e,(a,c)=>a?s(a):i(c))});if(typeof r!="function")throw new gm("invalid callback");if(this[ym]){this[Cu]?this[Cu].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new tF),this[ym]=!0,this[Cu]=this[Cu]||[],this[Cu].push(r);let n=o(()=>{let i=this[Cu];this[Cu]=null;for(let s=0;s<i.length;s++)i[s](null,null)},"onDestroyed");this[Q3e](e).then(()=>{queueMicrotask(n)})}[Mx](e,r){if(!this[Dh]||this[Dh].length===0)return this[Mx]=this[rF],this[rF](e,r);let n=this[rF].bind(this);for(let i=this[Dh].length-1;i>=0;i--)n=this[Dh][i](n);return this[Mx]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new gm("handler must be an object");try{if(!e||typeof e!="object")throw new gm("opts must be an object.");if(this[ym]||this[Cu])throw new tF;if(this[ob])throw new D3e;return this[Mx](e,r)}catch(n){if(typeof r.onError!="function")throw new gm("invalid onError method");return r.onError(n),!1}}};Vee.exports=iF});var dF=m((Bzt,Wee)=>{"use strict";var bm=0,sF=1e3,oF=(sF>>1)-1,bu,aF=Symbol("kFastTimer"),wu=[],cF=-2,lF=-1,$ee=0,zee=1;function uF(){bm+=oF;let t=0,e=wu.length;for(;t<e;){let r=wu[t];r._state===$ee?(r._idleStart=bm-oF,r._state=zee):r._state===zee&&bm>=r._idleStart+r._idleTimeout&&(r._state=lF,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===lF?(r._state=cF,--e!==0&&(wu[t]=wu[e])):++t}wu.length=e,wu.length!==0&&jee()}o(uF,"onTick");function jee(){bu?bu.refresh():(clearTimeout(bu),bu=setTimeout(uF,oF),bu.unref&&bu.unref())}o(jee,"refreshTimeout");var Ux=class{static{o(this,"FastTimer")}[aF]=!0;_state=cF;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,r,n){this._onTimeout=e,this._idleTimeout=r,this._timerArg=n,this.refresh()}refresh(){this._state===cF&&wu.push(this),(!bu||wu.length===1)&&jee(),this._state=$ee}clear(){this._state=lF,this._idleStart=-1}};Wee.exports={setTimeout(t,e,r){return e<=sF?setTimeout(t,e,r):new Ux(t,e,r)},clearTimeout(t){t[aF]?t.clear():clearTimeout(t)},setFastTimeout(t,e,r){return new Ux(t,e,r)},clearFastTimeout(t){t.clear()},now(){return bm},tick(t=0){bm+=t-sF+1,uF(),uF()},reset(){bm=0,wu.length=0,clearTimeout(bu),bu=null},kFastTimer:aF}});var ab=m((_zt,Zee)=>{"use strict";var k3e=require("node:net"),Jee=require("node:assert"),Xee=ot(),{InvalidArgumentError:O3e,ConnectTimeoutError:L3e}=Tt(),qx=dF();function Yee(){}o(Yee,"noop");var fF,hF;global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?hF=class{static{o(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:hF=class{static{o(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function F3e({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,session:i,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new O3e("maxCachedSessions must be a positive integer or zero");let a={path:r,...s},c=new hF(e??100);return n=n??1e4,t=t??!1,o(function({hostname:u,host:d,protocol:f,port:h,servername:p,localAddress:g,httpSocket:A},E){let y;if(f==="https:"){fF||(fF=require("node:tls")),p=p||a.servername||Xee.getServerName(d)||null;let w=p||u;Jee(w);let B=i||c.get(w)||null;h=h||443,y=fF.connect({highWaterMark:16384,...a,servername:p,session:B,localAddress:g,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:A,port:h,host:u}),y.on("session",function(Q){c.set(w,Q)})}else Jee(!A,"httpSocket can only be sent on TLS update"),h=h||80,y=k3e.connect({highWaterMark:64*1024,...a,localAddress:g,port:h,host:u});if(a.keepAlive==null||a.keepAlive){let w=a.keepAliveInitialDelay===void 0?6e4:a.keepAliveInitialDelay;y.setKeepAlive(!0,w)}let C=M3e(new WeakRef(y),{timeout:n,hostname:u,port:h});return y.setNoDelay(!0).once(f==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(C),E){let w=E;E=null,w(null,this)}}).on("error",function(w){if(queueMicrotask(C),E){let B=E;E=null,B(w)}}),y},"connect")}o(F3e,"buildConnector");var M3e=process.platform==="win32"?(t,e)=>{if(!e.timeout)return Yee;let r=null,n=null,i=qx.setFastTimeout(()=>{r=setImmediate(()=>{n=setImmediate(()=>Kee(t.deref(),e))})},e.timeout);return()=>{qx.clearFastTimeout(i),clearImmediate(r),clearImmediate(n)}}:(t,e)=>{if(!e.timeout)return Yee;let r=null,n=qx.setFastTimeout(()=>{r=setImmediate(()=>{Kee(t.deref(),e)})},e.timeout);return()=>{qx.clearFastTimeout(n),clearImmediate(r)}};function Kee(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)`,Xee.destroy(t,new L3e(r))}o(Kee,"onConnectTimeout");Zee.exports=F3e});var ete=m(Gx=>{"use strict";Object.defineProperty(Gx,"__esModule",{value:!0});Gx.enumToMap=void 0;function U3e(t){let e={};return Object.keys(t).forEach(r=>{let n=t[r];typeof n=="number"&&(e[r]=n)}),e}o(U3e,"enumToMap");Gx.enumToMap=U3e});var tte=m(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.SPECIAL_HEADERS=Z.HEADER_STATE=Z.MINOR=Z.MAJOR=Z.CONNECTION_TOKEN_CHARS=Z.HEADER_CHARS=Z.TOKEN=Z.STRICT_TOKEN=Z.HEX=Z.URL_CHAR=Z.STRICT_URL_CHAR=Z.USERINFO_CHARS=Z.MARK=Z.ALPHANUM=Z.NUM=Z.HEX_MAP=Z.NUM_MAP=Z.ALPHA=Z.FINISH=Z.H_METHOD_MAP=Z.METHOD_MAP=Z.METHODS_RTSP=Z.METHODS_ICE=Z.METHODS_HTTP=Z.METHODS=Z.LENIENT_FLAGS=Z.FLAGS=Z.TYPE=Z.ERROR=void 0;var q3e=ete(),G3e;(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"})(G3e=Z.ERROR||(Z.ERROR={}));var H3e;(function(t){t[t.BOTH=0]="BOTH",t[t.REQUEST=1]="REQUEST",t[t.RESPONSE=2]="RESPONSE"})(H3e=Z.TYPE||(Z.TYPE={}));var V3e;(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"})(V3e=Z.FLAGS||(Z.FLAGS={}));var z3e;(function(t){t[t.HEADERS=1]="HEADERS",t[t.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",t[t.KEEP_ALIVE=4]="KEEP_ALIVE"})(z3e=Z.LENIENT_FLAGS||(Z.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=Z.METHODS||(Z.METHODS={}));Z.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];Z.METHODS_ICE=[Qe.SOURCE];Z.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];Z.METHOD_MAP=q3e.enumToMap(Qe);Z.H_METHOD_MAP={};Object.keys(Z.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(Z.H_METHOD_MAP[t]=Z.METHOD_MAP[t])});var $3e;(function(t){t[t.SAFE=0]="SAFE",t[t.SAFE_WITH_CB=1]="SAFE_WITH_CB",t[t.UNSAFE=2]="UNSAFE"})($3e=Z.FINISH||(Z.FINISH={}));Z.ALPHA=[];for(let t=65;t<=90;t++)Z.ALPHA.push(String.fromCharCode(t)),Z.ALPHA.push(String.fromCharCode(t+32));Z.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};Z.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};Z.NUM=["0","1","2","3","4","5","6","7","8","9"];Z.ALPHANUM=Z.ALPHA.concat(Z.NUM);Z.MARK=["-","_",".","!","~","*","'","(",")"];Z.USERINFO_CHARS=Z.ALPHANUM.concat(Z.MARK).concat(["%",";",":","&","=","+","$",","]);Z.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(Z.ALPHANUM);Z.URL_CHAR=Z.STRICT_URL_CHAR.concat([" ","\f"]);for(let t=128;t<=255;t++)Z.URL_CHAR.push(t);Z.HEX=Z.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);Z.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(Z.ALPHANUM);Z.TOKEN=Z.STRICT_TOKEN.concat([" "]);Z.HEADER_CHARS=[" "];for(let t=32;t<=255;t++)t!==127&&Z.HEADER_CHARS.push(t);Z.CONNECTION_TOKEN_CHARS=Z.HEADER_CHARS.filter(t=>t!==44);Z.MAJOR=Z.NUM_MAP;Z.MINOR=Z.MAJOR;var wm;(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"})(wm=Z.HEADER_STATE||(Z.HEADER_STATE={}));Z.SPECIAL_HEADERS={connection:wm.CONNECTION,"content-length":wm.CONTENT_LENGTH,"proxy-connection":wm.CONNECTION,"transfer-encoding":wm.TRANSFER_ENCODING,upgrade:wm.UPGRADE}});var pF=m((Pzt,rte)=>{"use strict";var{Buffer:j3e}=require("node:buffer");rte.exports=j3e.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK07MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtXACAAQRhqQgA3AwAgAEIANwMAIABBOGpCADcDACAAQTBqQgA3AwAgAEEoakIANwMAIABBIGpCADcDACAAQRBqQgA3AwAgAEEIakIANwMAIABB3QE2AhwLBgAgABAyC5otAQt/IwBBEGsiCiQAQaTQACgCACIJRQRAQeTTACgCACIFRQRAQfDTAEJ/NwIAQejTAEKAgISAgIDAADcCAEHk0wAgCkEIakFwcUHYqtWqBXMiBTYCAEH40wBBADYCAEHI0wBBADYCAAtBzNMAQYDUBDYCAEGc0ABBgNQENgIAQbDQACAFNgIAQazQAEF/NgIAQdDTAEGArAM2AgADQCABQcjQAGogAUG80ABqIgI2AgAgAiABQbTQAGoiAzYCACABQcDQAGogAzYCACABQdDQAGogAUHE0ABqIgM2AgAgAyACNgIAIAFB2NAAaiABQczQAGoiAjYCACACIAM2AgAgAUHU0ABqIAI2AgAgAUEgaiIBQYACRw0AC0GM1ARBwasDNgIAQajQAEH00wAoAgA2AgBBmNAAQcCrAzYCAEGk0ABBiNQENgIAQcz/B0E4NgIAQYjUBCEJCwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB7AFNBEBBjNAAKAIAIgZBECAAQRNqQXBxIABBC0kbIgRBA3YiAHYiAUEDcQRAAkAgAUEBcSAAckEBcyICQQN0IgBBtNAAaiIBIABBvNAAaigCACIAKAIIIgNGBEBBjNAAIAZBfiACd3E2AgAMAQsgASADNgIIIAMgATYCDAsgAEEIaiEBIAAgAkEDdCICQQNyNgIEIAAgAmoiACAAKAIEQQFyNgIEDBELQZTQACgCACIIIARPDQEgAQRAAkBBAiAAdCICQQAgAmtyIAEgAHRxaCIAQQN0IgJBtNAAaiIBIAJBvNAAaigCACICKAIIIgNGBEBBjNAAIAZBfiAAd3EiBjYCAAwBCyABIAM2AgggAyABNgIMCyACIARBA3I2AgQgAEEDdCIAIARrIQUgACACaiAFNgIAIAIgBGoiBCAFQQFyNgIEIAgEQCAIQXhxQbTQAGohAEGg0AAoAgAhAwJ/QQEgCEEDdnQiASAGcUUEQEGM0AAgASAGcjYCACAADAELIAAoAggLIgEgAzYCDCAAIAM2AgggAyAANgIMIAMgATYCCAsgAkEIaiEBQaDQACAENgIAQZTQACAFNgIADBELQZDQACgCACILRQ0BIAtoQQJ0QbzSAGooAgAiACgCBEF4cSAEayEFIAAhAgNAAkAgAigCECIBRQRAIAJBFGooAgAiAUUNAQsgASgCBEF4cSAEayIDIAVJIQIgAyAFIAIbIQUgASAAIAIbIQAgASECDAELCyAAKAIYIQkgACgCDCIDIABHBEBBnNAAKAIAGiADIAAoAggiATYCCCABIAM2AgwMEAsgAEEUaiICKAIAIgFFBEAgACgCECIBRQ0DIABBEGohAgsDQCACIQcgASIDQRRqIgIoAgAiAQ0AIANBEGohAiADKAIQIgENAAsgB0EANgIADA8LQX8hBCAAQb9/Sw0AIABBE2oiAUFwcSEEQZDQACgCACIIRQ0AQQAgBGshBQJAAkACQAJ/QQAgBEGAAkkNABpBHyAEQf///wdLDQAaIARBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmoLIgZBAnRBvNIAaigCACICRQRAQQAhAUEAIQMMAQtBACEBIARBGSAGQQF2a0EAIAZBH0cbdCEAQQAhAwNAAkAgAigCBEF4cSAEayIHIAVPDQAgAiEDIAciBQ0AQQAhBSACIQEMAwsgASACQRRqKAIAIgcgByACIABBHXZBBHFqQRBqKAIAIgJGGyABIAcbIQEgAEEBdCEAIAINAAsLIAEgA3JFBEBBACEDQQIgBnQiAEEAIABrciAIcSIARQ0DIABoQQJ0QbzSAGooAgAhAQsgAUUNAQsDQCABKAIEQXhxIARrIgIgBUkhACACIAUgABshBSABIAMgABshAyABKAIQIgAEfyAABSABQRRqKAIACyIBDQALCyADRQ0AIAVBlNAAKAIAIARrTw0AIAMoAhghByADIAMoAgwiAEcEQEGc0AAoAgAaIAAgAygCCCIBNgIIIAEgADYCDAwOCyADQRRqIgIoAgAiAUUEQCADKAIQIgFFDQMgA0EQaiECCwNAIAIhBiABIgBBFGoiAigCACIBDQAgAEEQaiECIAAoAhAiAQ0ACyAGQQA2AgAMDQtBlNAAKAIAIgMgBE8EQEGg0AAoAgAhAQJAIAMgBGsiAkEQTwRAIAEgBGoiACACQQFyNgIEIAEgA2ogAjYCACABIARBA3I2AgQMAQsgASADQQNyNgIEIAEgA2oiACAAKAIEQQFyNgIEQQAhAEEAIQILQZTQACACNgIAQaDQACAANgIAIAFBCGohAQwPC0GY0AAoAgAiAyAESwRAIAQgCWoiACADIARrIgFBAXI2AgRBpNAAIAA2AgBBmNAAIAE2AgAgCSAEQQNyNgIEIAlBCGohAQwPC0EAIQEgBAJ/QeTTACgCAARAQezTACgCAAwBC0Hw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBDGpBcHFB2KrVqgVzNgIAQfjTAEEANgIAQcjTAEEANgIAQYCABAsiACAEQccAaiIFaiIGQQAgAGsiB3EiAk8EQEH80wBBMDYCAAwPCwJAQcTTACgCACIBRQ0AQbzTACgCACIIIAJqIQAgACABTSAAIAhLcQ0AQQAhAUH80wBBMDYCAAwPC0HI0wAtAABBBHENBAJAAkAgCQRAQczTACEBA0AgASgCACIAIAlNBEAgACABKAIEaiAJSw0DCyABKAIIIgENAAsLQQAQMyIAQX9GDQUgAiEGQejTACgCACIBQQFrIgMgAHEEQCACIABrIAAgA2pBACABa3FqIQYLIAQgBk8NBSAGQf7///8HSw0FQcTTACgCACIDBEBBvNMAKAIAIgcgBmohASABIAdNDQYgASADSw0GCyAGEDMiASAARw0BDAcLIAYgA2sgB3EiBkH+////B0sNBCAGEDMhACAAIAEoAgAgASgCBGpGDQMgACEBCwJAIAYgBEHIAGpPDQAgAUF/Rg0AQezTACgCACIAIAUgBmtqQQAgAGtxIgBB/v///wdLBEAgASEADAcLIAAQM0F/RwRAIAAgBmohBiABIQAMBwtBACAGaxAzGgwECyABIgBBf0cNBQwDC0EAIQMMDAtBACEADAoLIABBf0cNAgtByNMAQcjTACgCAEEEcjYCAAsgAkH+////B0sNASACEDMhAEEAEDMhASAAQX9GDQEgAUF/Rg0BIAAgAU8NASABIABrIgYgBEE4ak0NAQtBvNMAQbzTACgCACAGaiIBNgIAQcDTACgCACABSQRAQcDTACABNgIACwJAAkACQEGk0AAoAgAiAgRAQczTACEBA0AgACABKAIAIgMgASgCBCIFakYNAiABKAIIIgENAAsMAgtBnNAAKAIAIgFBAEcgACABT3FFBEBBnNAAIAA2AgALQQAhAUHQ0wAgBjYCAEHM0wAgADYCAEGs0ABBfzYCAEGw0ABB5NMAKAIANgIAQdjTAEEANgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBeCAAa0EPcSIBIABqIgIgBkE4ayIDIAFrIgFBAXI2AgRBqNAAQfTTACgCADYCAEGY0AAgATYCAEGk0AAgAjYCACAAIANqQTg2AgQMAgsgACACTQ0AIAIgA0kNACABKAIMQQhxDQBBeCACa0EPcSIAIAJqIgNBmNAAKAIAIAZqIgcgAGsiAEEBcjYCBCABIAUgBmo2AgRBqNAAQfTTACgCADYCAEGY0AAgADYCAEGk0AAgAzYCACACIAdqQTg2AgQMAQsgAEGc0AAoAgBJBEBBnNAAIAA2AgALIAAgBmohA0HM0wAhAQJAAkACQANAIAMgASgCAEcEQCABKAIIIgENAQwCCwsgAS0ADEEIcUUNAQtBzNMAIQEDQCABKAIAIgMgAk0EQCADIAEoAgRqIgUgAksNAwsgASgCCCEBDAALAAsgASAANgIAIAEgASgCBCAGajYCBCAAQXggAGtBD3FqIgkgBEEDcjYCBCADQXggA2tBD3FqIgYgBCAJaiIEayEBIAIgBkYEQEGk0AAgBDYCAEGY0ABBmNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEDAgLQaDQACgCACAGRgRAQaDQACAENgIAQZTQAEGU0AAoAgAgAWoiADYCACAEIABBAXI2AgQgACAEaiAANgIADAgLIAYoAgQiBUEDcUEBRw0GIAVBeHEhCCAFQf8BTQRAIAVBA3YhAyAGKAIIIgAgBigCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBwsgAiAANgIIIAAgAjYCDAwGCyAGKAIYIQcgBiAGKAIMIgBHBEAgACAGKAIIIgI2AgggAiAANgIMDAULIAZBFGoiAigCACIFRQRAIAYoAhAiBUUNBCAGQRBqIQILA0AgAiEDIAUiAEEUaiICKAIAIgUNACAAQRBqIQIgACgCECIFDQALIANBADYCAAwEC0F4IABrQQ9xIgEgAGoiByAGQThrIgMgAWsiAUEBcjYCBCAAIANqQTg2AgQgAiAFQTcgBWtBD3FqQT9rIgMgAyACQRBqSRsiA0EjNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAc2AgAgA0EQakHU0wApAgA3AgAgA0HM0wApAgA3AghB1NMAIANBCGo2AgBB0NMAIAY2AgBBzNMAIAA2AgBB2NMAQQA2AgAgA0EkaiEBA0AgAUEHNgIAIAUgAUEEaiIBSw0ACyACIANGDQAgAyADKAIEQX5xNgIEIAMgAyACayIFNgIAIAIgBUEBcjYCBCAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIDcUUEQEGM0AAgASADcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEGQ0AAoAgAiA0EBIAF0IgZxRQRAIAAgAjYCAEGQ0AAgAyAGcjYCACACIAA2AhggAiACNgIIIAIgAjYCDAwBCyAFQRkgAUEBdmtBACABQR9HG3QhASAAKAIAIQMCQANAIAMiACgCBEF4cSAFRg0BIAFBHXYhAyABQQF0IQEgACADQQRxakEQaiIGKAIAIgMNAAsgBiACNgIAIAIgADYCGCACIAI2AgwgAiACNgIIDAELIAAoAggiASACNgIMIAAgAjYCCCACQQA2AhggAiAANgIMIAIgATYCCAtBmNAAKAIAIgEgBE0NAEGk0AAoAgAiACAEaiICIAEgBGsiAUEBcjYCBEGY0AAgATYCAEGk0AAgAjYCACAAIARBA3I2AgQgAEEIaiEBDAgLQQAhAUH80wBBMDYCAAwHC0EAIQALIAdFDQACQCAGKAIcIgJBAnRBvNIAaiIDKAIAIAZGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAdBEEEUIAcoAhAgBkYbaiAANgIAIABFDQELIAAgBzYCGCAGKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAGQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAIaiEBIAYgCGoiBigCBCEFCyAGIAVBfnE2AgQgASAEaiABNgIAIAQgAUEBcjYCBCABQf8BTQRAIAFBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASABQQN2dCIBcUUEQEGM0AAgASACcjYCACAADAELIAAoAggLIgEgBDYCDCAAIAQ2AgggBCAANgIMIAQgATYCCAwBC0EfIQUgAUH///8HTQRAIAFBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmohBQsgBCAFNgIcIARCADcCECAFQQJ0QbzSAGohAEGQ0AAoAgAiAkEBIAV0IgNxRQRAIAAgBDYCAEGQ0AAgAiADcjYCACAEIAA2AhggBCAENgIIIAQgBDYCDAwBCyABQRkgBUEBdmtBACAFQR9HG3QhBSAAKAIAIQACQANAIAAiAigCBEF4cSABRg0BIAVBHXYhACAFQQF0IQUgAiAAQQRxakEQaiIDKAIAIgANAAsgAyAENgIAIAQgAjYCGCAEIAQ2AgwgBCAENgIIDAELIAIoAggiACAENgIMIAIgBDYCCCAEQQA2AhggBCACNgIMIAQgADYCCAsgCUEIaiEBDAILAkAgB0UNAAJAIAMoAhwiAUECdEG80gBqIgIoAgAgA0YEQCACIAA2AgAgAA0BQZDQACAIQX4gAXdxIgg2AgAMAgsgB0EQQRQgBygCECADRhtqIAA2AgAgAEUNAQsgACAHNgIYIAMoAhAiAQRAIAAgATYCECABIAA2AhgLIANBFGooAgAiAUUNACAAQRRqIAE2AgAgASAANgIYCwJAIAVBD00EQCADIAQgBWoiAEEDcjYCBCAAIANqIgAgACgCBEEBcjYCBAwBCyADIARqIgIgBUEBcjYCBCADIARBA3I2AgQgAiAFaiAFNgIAIAVB/wFNBEAgBUF4cUG00ABqIQACf0GM0AAoAgAiAUEBIAVBA3Z0IgVxRQRAQYzQACABIAVyNgIAIAAMAQsgACgCCAsiASACNgIMIAAgAjYCCCACIAA2AgwgAiABNgIIDAELQR8hASAFQf///wdNBEAgBUEmIAVBCHZnIgBrdkEBcSAAQQF0a0E+aiEBCyACIAE2AhwgAkIANwIQIAFBAnRBvNIAaiEAQQEgAXQiBCAIcUUEQCAAIAI2AgBBkNAAIAQgCHI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEEAkADQCAEIgAoAgRBeHEgBUYNASABQR12IQQgAUEBdCEBIAAgBEEEcWpBEGoiBigCACIEDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLIANBCGohAQwBCwJAIAlFDQACQCAAKAIcIgFBAnRBvNIAaiICKAIAIABGBEAgAiADNgIAIAMNAUGQ0AAgC0F+IAF3cTYCAAwCCyAJQRBBFCAJKAIQIABGG2ogAzYCACADRQ0BCyADIAk2AhggACgCECIBBEAgAyABNgIQIAEgAzYCGAsgAEEUaigCACIBRQ0AIANBFGogATYCACABIAM2AhgLAkAgBUEPTQRAIAAgBCAFaiIBQQNyNgIEIAAgAWoiASABKAIEQQFyNgIEDAELIAAgBGoiByAFQQFyNgIEIAAgBEEDcjYCBCAFIAdqIAU2AgAgCARAIAhBeHFBtNAAaiEBQaDQACgCACEDAn9BASAIQQN2dCICIAZxRQRAQYzQACACIAZyNgIAIAEMAQsgASgCCAsiAiADNgIMIAEgAzYCCCADIAE2AgwgAyACNgIIC0Gg0AAgBzYCAEGU0AAgBTYCAAsgAEEIaiEBCyAKQRBqJAAgAQtDACAARQRAPwBBEHQPCwJAIABB//8DcQ0AIABBAEgNACAAQRB2QAAiAEF/RgRAQfzTAEEwNgIAQX8PCyAAQRB0DwsACwvcPyIAQYAICwkBAAAAAgAAAAMAQZQICwUEAAAABQBBpAgLCQYAAAAHAAAACABB3AgLii1JbnZhbGlkIGNoYXIgaW4gdXJsIHF1ZXJ5AFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fYm9keQBDb250ZW50LUxlbmd0aCBvdmVyZmxvdwBDaHVuayBzaXplIG92ZXJmbG93AFJlc3BvbnNlIG92ZXJmbG93AEludmFsaWQgbWV0aG9kIGZvciBIVFRQL3gueCByZXF1ZXN0AEludmFsaWQgbWV0aG9kIGZvciBSVFNQL3gueCByZXF1ZXN0AEV4cGVjdGVkIFNPVVJDRSBtZXRob2QgZm9yIElDRS94LnggcmVxdWVzdABJbnZhbGlkIGNoYXIgaW4gdXJsIGZyYWdtZW50IHN0YXJ0AEV4cGVjdGVkIGRvdABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3N0YXR1cwBJbnZhbGlkIHJlc3BvbnNlIHN0YXR1cwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zAFVzZXIgY2FsbGJhY2sgZXJyb3IAYG9uX3Jlc2V0YCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfaGVhZGVyYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9iZWdpbmAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3N0YXR1c19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3ZlcnNpb25fY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl91cmxfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXRob2RfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfZmllbGRfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fbmFtZWAgY2FsbGJhY2sgZXJyb3IAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzZXJ2ZXIASW52YWxpZCBoZWFkZXIgdmFsdWUgY2hhcgBJbnZhbGlkIGhlYWRlciBmaWVsZCBjaGFyAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdmVyc2lvbgBJbnZhbGlkIG1pbm9yIHZlcnNpb24ASW52YWxpZCBtYWpvciB2ZXJzaW9uAEV4cGVjdGVkIHNwYWNlIGFmdGVyIHZlcnNpb24ARXhwZWN0ZWQgQ1JMRiBhZnRlciB2ZXJzaW9uAEludmFsaWQgSFRUUCB2ZXJzaW9uAEludmFsaWQgaGVhZGVyIHRva2VuAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdXJsAEludmFsaWQgY2hhcmFjdGVycyBpbiB1cmwAVW5leHBlY3RlZCBzdGFydCBjaGFyIGluIHVybABEb3VibGUgQCBpbiB1cmwARW1wdHkgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyYWN0ZXIgaW4gQ29udGVudC1MZW5ndGgARHVwbGljYXRlIENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhciBpbiB1cmwgcGF0aABDb250ZW50LUxlbmd0aCBjYW4ndCBiZSBwcmVzZW50IHdpdGggVHJhbnNmZXItRW5jb2RpbmcASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgc2l6ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl92YWx1ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHZhbHVlAE1pc3NpbmcgZXhwZWN0ZWQgTEYgYWZ0ZXIgaGVhZGVyIHZhbHVlAEludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYCBoZWFkZXIgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZSB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlZCB2YWx1ZQBQYXVzZWQgYnkgb25faGVhZGVyc19jb21wbGV0ZQBJbnZhbGlkIEVPRiBzdGF0ZQBvbl9yZXNldCBwYXVzZQBvbl9jaHVua19oZWFkZXIgcGF1c2UAb25fbWVzc2FnZV9iZWdpbiBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fdmFsdWUgcGF1c2UAb25fc3RhdHVzX2NvbXBsZXRlIHBhdXNlAG9uX3ZlcnNpb25fY29tcGxldGUgcGF1c2UAb25fdXJsX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXNzYWdlX2NvbXBsZXRlIHBhdXNlAG9uX21ldGhvZF9jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfZmllbGRfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUgcGF1c2UAVW5leHBlY3RlZCBzcGFjZSBhZnRlciBzdGFydCBsaW5lAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBuYW1lAFBhdXNlIG9uIENPTk5FQ1QvVXBncmFkZQBQYXVzZSBvbiBQUkkvVXBncmFkZQBFeHBlY3RlZCBIVFRQLzIgQ29ubmVjdGlvbiBQcmVmYWNlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fbWV0aG9kAEV4cGVjdGVkIHNwYWNlIGFmdGVyIG1ldGhvZABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl9maWVsZABQYXVzZWQASW52YWxpZCB3b3JkIGVuY291bnRlcmVkAEludmFsaWQgbWV0aG9kIGVuY291bnRlcmVkAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2NoZW1hAFJlcXVlc3QgaGFzIGludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYABTV0lUQ0hfUFJPWFkAVVNFX1BST1hZAE1LQUNUSVZJVFkAVU5QUk9DRVNTQUJMRV9FTlRJVFkAQ09QWQBNT1ZFRF9QRVJNQU5FTlRMWQBUT09fRUFSTFkATk9USUZZAEZBSUxFRF9ERVBFTkRFTkNZAEJBRF9HQVRFV0FZAFBMQVkAUFVUAENIRUNLT1VUAEdBVEVXQVlfVElNRU9VVABSRVFVRVNUX1RJTUVPVVQATkVUV09SS19DT05ORUNUX1RJTUVPVVQAQ09OTkVDVElPTl9USU1FT1VUAExPR0lOX1RJTUVPVVQATkVUV09SS19SRUFEX1RJTUVPVVQAUE9TVABNSVNESVJFQ1RFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX0xPQURfQkFMQU5DRURfUkVRVUVTVABCQURfUkVRVUVTVABIVFRQX1JFUVVFU1RfU0VOVF9UT19IVFRQU19QT1JUAFJFUE9SVABJTV9BX1RFQVBPVABSRVNFVF9DT05URU5UAE5PX0NPTlRFTlQAUEFSVElBTF9DT05URU5UAEhQRV9JTlZBTElEX0NPTlNUQU5UAEhQRV9DQl9SRVNFVABHRVQASFBFX1NUUklDVABDT05GTElDVABURU1QT1JBUllfUkVESVJFQ1QAUEVSTUFORU5UX1JFRElSRUNUAENPTk5FQ1QATVVMVElfU1RBVFVTAEhQRV9JTlZBTElEX1NUQVRVUwBUT09fTUFOWV9SRVFVRVNUUwBFQVJMWV9ISU5UUwBVTkFWQUlMQUJMRV9GT1JfTEVHQUxfUkVBU09OUwBPUFRJT05TAFNXSVRDSElOR19QUk9UT0NPTFMAVkFSSUFOVF9BTFNPX05FR09USUFURVMATVVMVElQTEVfQ0hPSUNFUwBJTlRFUk5BTF9TRVJWRVJfRVJST1IAV0VCX1NFUlZFUl9VTktOT1dOX0VSUk9SAFJBSUxHVU5fRVJST1IASURFTlRJVFlfUFJPVklERVJfQVVUSEVOVElDQVRJT05fRVJST1IAU1NMX0NFUlRJRklDQVRFX0VSUk9SAElOVkFMSURfWF9GT1JXQVJERURfRk9SAFNFVF9QQVJBTUVURVIAR0VUX1BBUkFNRVRFUgBIUEVfVVNFUgBTRUVfT1RIRVIASFBFX0NCX0NIVU5LX0hFQURFUgBNS0NBTEVOREFSAFNFVFVQAFdFQl9TRVJWRVJfSVNfRE9XTgBURUFSRE9XTgBIUEVfQ0xPU0VEX0NPTk5FQ1RJT04ASEVVUklTVElDX0VYUElSQVRJT04ARElTQ09OTkVDVEVEX09QRVJBVElPTgBOT05fQVVUSE9SSVRBVElWRV9JTkZPUk1BVElPTgBIUEVfSU5WQUxJRF9WRVJTSU9OAEhQRV9DQl9NRVNTQUdFX0JFR0lOAFNJVEVfSVNfRlJPWkVOAEhQRV9JTlZBTElEX0hFQURFUl9UT0tFTgBJTlZBTElEX1RPS0VOAEZPUkJJRERFTgBFTkhBTkNFX1lPVVJfQ0FMTQBIUEVfSU5WQUxJRF9VUkwAQkxPQ0tFRF9CWV9QQVJFTlRBTF9DT05UUk9MAE1LQ09MAEFDTABIUEVfSU5URVJOQUwAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRV9VTk9GRklDSUFMAEhQRV9PSwBVTkxJTksAVU5MT0NLAFBSSQBSRVRSWV9XSVRIAEhQRV9JTlZBTElEX0NPTlRFTlRfTEVOR1RIAEhQRV9VTkVYUEVDVEVEX0NPTlRFTlRfTEVOR1RIAEZMVVNIAFBST1BQQVRDSABNLVNFQVJDSABVUklfVE9PX0xPTkcAUFJPQ0VTU0lORwBNSVNDRUxMQU5FT1VTX1BFUlNJU1RFTlRfV0FSTklORwBNSVNDRUxMQU5FT1VTX1dBUk5JTkcASFBFX0lOVkFMSURfVFJBTlNGRVJfRU5DT0RJTkcARXhwZWN0ZWQgQ1JMRgBIUEVfSU5WQUxJRF9DSFVOS19TSVpFAE1PVkUAQ09OVElOVUUASFBFX0NCX1NUQVRVU19DT01QTEVURQBIUEVfQ0JfSEVBREVSU19DT01QTEVURQBIUEVfQ0JfVkVSU0lPTl9DT01QTEVURQBIUEVfQ0JfVVJMX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19DT01QTEVURQBIUEVfQ0JfSEVBREVSX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9OQU1FX0NPTVBMRVRFAEhQRV9DQl9NRVNTQUdFX0NPTVBMRVRFAEhQRV9DQl9NRVRIT0RfQ09NUExFVEUASFBFX0NCX0hFQURFUl9GSUVMRF9DT01QTEVURQBERUxFVEUASFBFX0lOVkFMSURfRU9GX1NUQVRFAElOVkFMSURfU1NMX0NFUlRJRklDQVRFAFBBVVNFAE5PX1JFU1BPTlNFAFVOU1VQUE9SVEVEX01FRElBX1RZUEUAR09ORQBOT1RfQUNDRVBUQUJMRQBTRVJWSUNFX1VOQVZBSUxBQkxFAFJBTkdFX05PVF9TQVRJU0ZJQUJMRQBPUklHSU5fSVNfVU5SRUFDSEFCTEUAUkVTUE9OU0VfSVNfU1RBTEUAUFVSR0UATUVSR0UAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRQBSRVFVRVNUX0hFQURFUl9UT09fTEFSR0UAUEFZTE9BRF9UT09fTEFSR0UASU5TVUZGSUNJRU5UX1NUT1JBR0UASFBFX1BBVVNFRF9VUEdSQURFAEhQRV9QQVVTRURfSDJfVVBHUkFERQBTT1VSQ0UAQU5OT1VOQ0UAVFJBQ0UASFBFX1VORVhQRUNURURfU1BBQ0UAREVTQ1JJQkUAVU5TVUJTQ1JJQkUAUkVDT1JEAEhQRV9JTlZBTElEX01FVEhPRABOT1RfRk9VTkQAUFJPUEZJTkQAVU5CSU5EAFJFQklORABVTkFVVEhPUklaRUQATUVUSE9EX05PVF9BTExPV0VEAEhUVFBfVkVSU0lPTl9OT1RfU1VQUE9SVEVEAEFMUkVBRFlfUkVQT1JURUQAQUNDRVBURUQATk9UX0lNUExFTUVOVEVEAExPT1BfREVURUNURUQASFBFX0NSX0VYUEVDVEVEAEhQRV9MRl9FWFBFQ1RFRABDUkVBVEVEAElNX1VTRUQASFBFX1BBVVNFRABUSU1FT1VUX09DQ1VSRUQAUEFZTUVOVF9SRVFVSVJFRABQUkVDT05ESVRJT05fUkVRVUlSRUQAUFJPWFlfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATkVUV09SS19BVVRIRU5USUNBVElPTl9SRVFVSVJFRABMRU5HVEhfUkVRVUlSRUQAU1NMX0NFUlRJRklDQVRFX1JFUVVJUkVEAFVQR1JBREVfUkVRVUlSRUQAUEFHRV9FWFBJUkVEAFBSRUNPTkRJVElPTl9GQUlMRUQARVhQRUNUQVRJT05fRkFJTEVEAFJFVkFMSURBVElPTl9GQUlMRUQAU1NMX0hBTkRTSEFLRV9GQUlMRUQATE9DS0VEAFRSQU5TRk9STUFUSU9OX0FQUExJRUQATk9UX01PRElGSUVEAE5PVF9FWFRFTkRFRABCQU5EV0lEVEhfTElNSVRfRVhDRUVERUQAU0lURV9JU19PVkVSTE9BREVEAEhFQUQARXhwZWN0ZWQgSFRUUC8AAF4TAAAmEwAAMBAAAPAXAACdEwAAFRIAADkXAADwEgAAChAAAHUSAACtEgAAghMAAE8UAAB/EAAAoBUAACMUAACJEgAAixQAAE0VAADUEQAAzxQAABAYAADJFgAA3BYAAMERAADgFwAAuxQAAHQUAAB8FQAA5RQAAAgXAAAfEAAAZRUAAKMUAAAoFQAAAhUAAJkVAAAsEAAAixkAAE8PAADUDgAAahAAAM4QAAACFwAAiQ4AAG4TAAAcEwAAZhQAAFYXAADBEwAAzRMAAGwTAABoFwAAZhcAAF8XAAAiEwAAzg8AAGkOAADYDgAAYxYAAMsTAACqDgAAKBcAACYXAADFEwAAXRYAAOgRAABnEwAAZRMAAPIWAABzEwAAHRcAAPkWAADzEQAAzw4AAM4VAAAMEgAAsxEAAKURAABhEAAAMhcAALsTAEH5NQsBAQBBkDYL4AEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB/TcLAQEAQZE4C14CAwICAgICAAACAgACAgACAgICAgICAgICAAQAAAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEH9OQsBAQBBkToLXgIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAQfA7Cw1sb3NlZWVwLWFsaXZlAEGJPAsBAQBBoDwL4AEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBBiT4LAQEAQaA+C+cBAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAEGwwAALXwEBAAEBAQEBAAABAQABAQABAQEBAQEBAQEBAAAAAAAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAEGQwgALIWVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgBBwMIACy1yYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AQfnCAAsFAQIAAQMAQZDDAAvgAQQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH5xAALBQECAAEDAEGQxQAL4AEEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cYACwQBAAABAEGRxwAL3wEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH6yAALBAEAAAIAQZDJAAtfAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAQfrKAAsEAQAAAQBBkMsACwEBAEGqywALQQIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAEH6zAALBAEAAAEAQZDNAAsBAQBBms0ACwYCAAAAAAIAQbHNAAs6AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB8M4AC5YBTk9VTkNFRUNLT1VUTkVDVEVURUNSSUJFTFVTSEVURUFEU0VBUkNIUkdFQ1RJVklUWUxFTkRBUlZFT1RJRllQVElPTlNDSFNFQVlTVEFUQ0hHRU9SRElSRUNUT1JUUkNIUEFSQU1FVEVSVVJDRUJTQ1JJQkVBUkRPV05BQ0VJTkROS0NLVUJTQ1JJQkVIVFRQL0FEVFAv","base64")});var ite=m((kzt,nte)=>{"use strict";var{Buffer:W3e}=require("node:buffer");nte.exports=W3e.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK77MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtzACAAQRBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAA/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQTBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQSBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQd0BNgIcCwYAIAAQMguaLQELfyMAQRBrIgokAEGk0AAoAgAiCUUEQEHk0wAoAgAiBUUEQEHw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBCGpBcHFB2KrVqgVzIgU2AgBB+NMAQQA2AgBByNMAQQA2AgALQczTAEGA1AQ2AgBBnNAAQYDUBDYCAEGw0AAgBTYCAEGs0ABBfzYCAEHQ0wBBgKwDNgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBjNQEQcGrAzYCAEGo0ABB9NMAKAIANgIAQZjQAEHAqwM2AgBBpNAAQYjUBDYCAEHM/wdBODYCAEGI1AQhCQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAQewBTQRAQYzQACgCACIGQRAgAEETakFwcSAAQQtJGyIEQQN2IgB2IgFBA3EEQAJAIAFBAXEgAHJBAXMiAkEDdCIAQbTQAGoiASAAQbzQAGooAgAiACgCCCIDRgRAQYzQACAGQX4gAndxNgIADAELIAEgAzYCCCADIAE2AgwLIABBCGohASAAIAJBA3QiAkEDcjYCBCAAIAJqIgAgACgCBEEBcjYCBAwRC0GU0AAoAgAiCCAETw0BIAEEQAJAQQIgAHQiAkEAIAJrciABIAB0cWgiAEEDdCICQbTQAGoiASACQbzQAGooAgAiAigCCCIDRgRAQYzQACAGQX4gAHdxIgY2AgAMAQsgASADNgIIIAMgATYCDAsgAiAEQQNyNgIEIABBA3QiACAEayEFIAAgAmogBTYCACACIARqIgQgBUEBcjYCBCAIBEAgCEF4cUG00ABqIQBBoNAAKAIAIQMCf0EBIAhBA3Z0IgEgBnFFBEBBjNAAIAEgBnI2AgAgAAwBCyAAKAIICyIBIAM2AgwgACADNgIIIAMgADYCDCADIAE2AggLIAJBCGohAUGg0AAgBDYCAEGU0AAgBTYCAAwRC0GQ0AAoAgAiC0UNASALaEECdEG80gBqKAIAIgAoAgRBeHEgBGshBSAAIQIDQAJAIAIoAhAiAUUEQCACQRRqKAIAIgFFDQELIAEoAgRBeHEgBGsiAyAFSSECIAMgBSACGyEFIAEgACACGyEAIAEhAgwBCwsgACgCGCEJIAAoAgwiAyAARwRAQZzQACgCABogAyAAKAIIIgE2AgggASADNgIMDBALIABBFGoiAigCACIBRQRAIAAoAhAiAUUNAyAAQRBqIQILA0AgAiEHIAEiA0EUaiICKAIAIgENACADQRBqIQIgAygCECIBDQALIAdBADYCAAwPC0F/IQQgAEG/f0sNACAAQRNqIgFBcHEhBEGQ0AAoAgAiCEUNAEEAIARrIQUCQAJAAkACf0EAIARBgAJJDQAaQR8gBEH///8HSw0AGiAEQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qCyIGQQJ0QbzSAGooAgAiAkUEQEEAIQFBACEDDAELQQAhASAEQRkgBkEBdmtBACAGQR9HG3QhAEEAIQMDQAJAIAIoAgRBeHEgBGsiByAFTw0AIAIhAyAHIgUNAEEAIQUgAiEBDAMLIAEgAkEUaigCACIHIAcgAiAAQR12QQRxakEQaigCACICRhsgASAHGyEBIABBAXQhACACDQALCyABIANyRQRAQQAhA0ECIAZ0IgBBACAAa3IgCHEiAEUNAyAAaEECdEG80gBqKAIAIQELIAFFDQELA0AgASgCBEF4cSAEayICIAVJIQAgAiAFIAAbIQUgASADIAAbIQMgASgCECIABH8gAAUgAUEUaigCAAsiAQ0ACwsgA0UNACAFQZTQACgCACAEa08NACADKAIYIQcgAyADKAIMIgBHBEBBnNAAKAIAGiAAIAMoAggiATYCCCABIAA2AgwMDgsgA0EUaiICKAIAIgFFBEAgAygCECIBRQ0DIANBEGohAgsDQCACIQYgASIAQRRqIgIoAgAiAQ0AIABBEGohAiAAKAIQIgENAAsgBkEANgIADA0LQZTQACgCACIDIARPBEBBoNAAKAIAIQECQCADIARrIgJBEE8EQCABIARqIgAgAkEBcjYCBCABIANqIAI2AgAgASAEQQNyNgIEDAELIAEgA0EDcjYCBCABIANqIgAgACgCBEEBcjYCBEEAIQBBACECC0GU0AAgAjYCAEGg0AAgADYCACABQQhqIQEMDwtBmNAAKAIAIgMgBEsEQCAEIAlqIgAgAyAEayIBQQFyNgIEQaTQACAANgIAQZjQACABNgIAIAkgBEEDcjYCBCAJQQhqIQEMDwtBACEBIAQCf0Hk0wAoAgAEQEHs0wAoAgAMAQtB8NMAQn83AgBB6NMAQoCAhICAgMAANwIAQeTTACAKQQxqQXBxQdiq1aoFczYCAEH40wBBADYCAEHI0wBBADYCAEGAgAQLIgAgBEHHAGoiBWoiBkEAIABrIgdxIgJPBEBB/NMAQTA2AgAMDwsCQEHE0wAoAgAiAUUNAEG80wAoAgAiCCACaiEAIAAgAU0gACAIS3ENAEEAIQFB/NMAQTA2AgAMDwtByNMALQAAQQRxDQQCQAJAIAkEQEHM0wAhAQNAIAEoAgAiACAJTQRAIAAgASgCBGogCUsNAwsgASgCCCIBDQALC0EAEDMiAEF/Rg0FIAIhBkHo0wAoAgAiAUEBayIDIABxBEAgAiAAayAAIANqQQAgAWtxaiEGCyAEIAZPDQUgBkH+////B0sNBUHE0wAoAgAiAwRAQbzTACgCACIHIAZqIQEgASAHTQ0GIAEgA0sNBgsgBhAzIgEgAEcNAQwHCyAGIANrIAdxIgZB/v///wdLDQQgBhAzIQAgACABKAIAIAEoAgRqRg0DIAAhAQsCQCAGIARByABqTw0AIAFBf0YNAEHs0wAoAgAiACAFIAZrakEAIABrcSIAQf7///8HSwRAIAEhAAwHCyAAEDNBf0cEQCAAIAZqIQYgASEADAcLQQAgBmsQMxoMBAsgASIAQX9HDQUMAwtBACEDDAwLQQAhAAwKCyAAQX9HDQILQcjTAEHI0wAoAgBBBHI2AgALIAJB/v///wdLDQEgAhAzIQBBABAzIQEgAEF/Rg0BIAFBf0YNASAAIAFPDQEgASAAayIGIARBOGpNDQELQbzTAEG80wAoAgAgBmoiATYCAEHA0wAoAgAgAUkEQEHA0wAgATYCAAsCQAJAAkBBpNAAKAIAIgIEQEHM0wAhAQNAIAAgASgCACIDIAEoAgQiBWpGDQIgASgCCCIBDQALDAILQZzQACgCACIBQQBHIAAgAU9xRQRAQZzQACAANgIAC0EAIQFB0NMAIAY2AgBBzNMAIAA2AgBBrNAAQX82AgBBsNAAQeTTACgCADYCAEHY0wBBADYCAANAIAFByNAAaiABQbzQAGoiAjYCACACIAFBtNAAaiIDNgIAIAFBwNAAaiADNgIAIAFB0NAAaiABQcTQAGoiAzYCACADIAI2AgAgAUHY0ABqIAFBzNAAaiICNgIAIAIgAzYCACABQdTQAGogAjYCACABQSBqIgFBgAJHDQALQXggAGtBD3EiASAAaiICIAZBOGsiAyABayIBQQFyNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAI2AgAgACADakE4NgIEDAILIAAgAk0NACACIANJDQAgASgCDEEIcQ0AQXggAmtBD3EiACACaiIDQZjQACgCACAGaiIHIABrIgBBAXI2AgQgASAFIAZqNgIEQajQAEH00wAoAgA2AgBBmNAAIAA2AgBBpNAAIAM2AgAgAiAHakE4NgIEDAELIABBnNAAKAIASQRAQZzQACAANgIACyAAIAZqIQNBzNMAIQECQAJAAkADQCADIAEoAgBHBEAgASgCCCIBDQEMAgsLIAEtAAxBCHFFDQELQczTACEBA0AgASgCACIDIAJNBEAgAyABKAIEaiIFIAJLDQMLIAEoAgghAQwACwALIAEgADYCACABIAEoAgQgBmo2AgQgAEF4IABrQQ9xaiIJIARBA3I2AgQgA0F4IANrQQ9xaiIGIAQgCWoiBGshASACIAZGBEBBpNAAIAQ2AgBBmNAAQZjQACgCACABaiIANgIAIAQgAEEBcjYCBAwIC0Gg0AAoAgAgBkYEQEGg0AAgBDYCAEGU0ABBlNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEIAAgBGogADYCAAwICyAGKAIEIgVBA3FBAUcNBiAFQXhxIQggBUH/AU0EQCAFQQN2IQMgBigCCCIAIAYoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAcLIAIgADYCCCAAIAI2AgwMBgsgBigCGCEHIAYgBigCDCIARwRAIAAgBigCCCICNgIIIAIgADYCDAwFCyAGQRRqIgIoAgAiBUUEQCAGKAIQIgVFDQQgBkEQaiECCwNAIAIhAyAFIgBBFGoiAigCACIFDQAgAEEQaiECIAAoAhAiBQ0ACyADQQA2AgAMBAtBeCAAa0EPcSIBIABqIgcgBkE4ayIDIAFrIgFBAXI2AgQgACADakE4NgIEIAIgBUE3IAVrQQ9xakE/ayIDIAMgAkEQakkbIgNBIzYCBEGo0ABB9NMAKAIANgIAQZjQACABNgIAQaTQACAHNgIAIANBEGpB1NMAKQIANwIAIANBzNMAKQIANwIIQdTTACADQQhqNgIAQdDTACAGNgIAQczTACAANgIAQdjTAEEANgIAIANBJGohAQNAIAFBBzYCACAFIAFBBGoiAUsNAAsgAiADRg0AIAMgAygCBEF+cTYCBCADIAMgAmsiBTYCACACIAVBAXI2AgQgBUH/AU0EQCAFQXhxQbTQAGohAAJ/QYzQACgCACIBQQEgBUEDdnQiA3FFBEBBjNAAIAEgA3I2AgAgAAwBCyAAKAIICyIBIAI2AgwgACACNgIIIAIgADYCDCACIAE2AggMAQtBHyEBIAVB////B00EQCAFQSYgBUEIdmciAGt2QQFxIABBAXRrQT5qIQELIAIgATYCHCACQgA3AhAgAUECdEG80gBqIQBBkNAAKAIAIgNBASABdCIGcUUEQCAAIAI2AgBBkNAAIAMgBnI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEDAkADQCADIgAoAgRBeHEgBUYNASABQR12IQMgAUEBdCEBIAAgA0EEcWpBEGoiBigCACIDDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLQZjQACgCACIBIARNDQBBpNAAKAIAIgAgBGoiAiABIARrIgFBAXI2AgRBmNAAIAE2AgBBpNAAIAI2AgAgACAEQQNyNgIEIABBCGohAQwIC0EAIQFB/NMAQTA2AgAMBwtBACEACyAHRQ0AAkAgBigCHCICQQJ0QbzSAGoiAygCACAGRgRAIAMgADYCACAADQFBkNAAQZDQACgCAEF+IAJ3cTYCAAwCCyAHQRBBFCAHKAIQIAZGG2ogADYCACAARQ0BCyAAIAc2AhggBigCECICBEAgACACNgIQIAIgADYCGAsgBkEUaigCACICRQ0AIABBFGogAjYCACACIAA2AhgLIAEgCGohASAGIAhqIgYoAgQhBQsgBiAFQX5xNgIEIAEgBGogATYCACAEIAFBAXI2AgQgAUH/AU0EQCABQXhxQbTQAGohAAJ/QYzQACgCACICQQEgAUEDdnQiAXFFBEBBjNAAIAEgAnI2AgAgAAwBCyAAKAIICyIBIAQ2AgwgACAENgIIIAQgADYCDCAEIAE2AggMAQtBHyEFIAFB////B00EQCABQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qIQULIAQgBTYCHCAEQgA3AhAgBUECdEG80gBqIQBBkNAAKAIAIgJBASAFdCIDcUUEQCAAIAQ2AgBBkNAAIAIgA3I2AgAgBCAANgIYIAQgBDYCCCAEIAQ2AgwMAQsgAUEZIAVBAXZrQQAgBUEfRxt0IQUgACgCACEAAkADQCAAIgIoAgRBeHEgAUYNASAFQR12IQAgBUEBdCEFIAIgAEEEcWpBEGoiAygCACIADQALIAMgBDYCACAEIAI2AhggBCAENgIMIAQgBDYCCAwBCyACKAIIIgAgBDYCDCACIAQ2AgggBEEANgIYIAQgAjYCDCAEIAA2AggLIAlBCGohAQwCCwJAIAdFDQACQCADKAIcIgFBAnRBvNIAaiICKAIAIANGBEAgAiAANgIAIAANAUGQ0AAgCEF+IAF3cSIINgIADAILIAdBEEEUIAcoAhAgA0YbaiAANgIAIABFDQELIAAgBzYCGCADKAIQIgEEQCAAIAE2AhAgASAANgIYCyADQRRqKAIAIgFFDQAgAEEUaiABNgIAIAEgADYCGAsCQCAFQQ9NBEAgAyAEIAVqIgBBA3I2AgQgACADaiIAIAAoAgRBAXI2AgQMAQsgAyAEaiICIAVBAXI2AgQgAyAEQQNyNgIEIAIgBWogBTYCACAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIFcUUEQEGM0AAgASAFcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEEBIAF0IgQgCHFFBEAgACACNgIAQZDQACAEIAhyNgIAIAIgADYCGCACIAI2AgggAiACNgIMDAELIAVBGSABQQF2a0EAIAFBH0cbdCEBIAAoAgAhBAJAA0AgBCIAKAIEQXhxIAVGDQEgAUEddiEEIAFBAXQhASAAIARBBHFqQRBqIgYoAgAiBA0ACyAGIAI2AgAgAiAANgIYIAIgAjYCDCACIAI2AggMAQsgACgCCCIBIAI2AgwgACACNgIIIAJBADYCGCACIAA2AgwgAiABNgIICyADQQhqIQEMAQsCQCAJRQ0AAkAgACgCHCIBQQJ0QbzSAGoiAigCACAARgRAIAIgAzYCACADDQFBkNAAIAtBfiABd3E2AgAMAgsgCUEQQRQgCSgCECAARhtqIAM2AgAgA0UNAQsgAyAJNgIYIAAoAhAiAQRAIAMgATYCECABIAM2AhgLIABBFGooAgAiAUUNACADQRRqIAE2AgAgASADNgIYCwJAIAVBD00EQCAAIAQgBWoiAUEDcjYCBCAAIAFqIgEgASgCBEEBcjYCBAwBCyAAIARqIgcgBUEBcjYCBCAAIARBA3I2AgQgBSAHaiAFNgIAIAgEQCAIQXhxQbTQAGohAUGg0AAoAgAhAwJ/QQEgCEEDdnQiAiAGcUUEQEGM0AAgAiAGcjYCACABDAELIAEoAggLIgIgAzYCDCABIAM2AgggAyABNgIMIAMgAjYCCAtBoNAAIAc2AgBBlNAAIAU2AgALIABBCGohAQsgCkEQaiQAIAELQwAgAEUEQD8AQRB0DwsCQCAAQf//A3ENACAAQQBIDQAgAEEQdkAAIgBBf0YEQEH80wBBMDYCAEF/DwsgAEEQdA8LAAsL3D8iAEGACAsJAQAAAAIAAAADAEGUCAsFBAAAAAUAQaQICwkGAAAABwAAAAgAQdwIC4otSW52YWxpZCBjaGFyIGluIHVybCBxdWVyeQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2JvZHkAQ29udGVudC1MZW5ndGggb3ZlcmZsb3cAQ2h1bmsgc2l6ZSBvdmVyZmxvdwBSZXNwb25zZSBvdmVyZmxvdwBJbnZhbGlkIG1ldGhvZCBmb3IgSFRUUC94LnggcmVxdWVzdABJbnZhbGlkIG1ldGhvZCBmb3IgUlRTUC94LnggcmVxdWVzdABFeHBlY3RlZCBTT1VSQ0UgbWV0aG9kIGZvciBJQ0UveC54IHJlcXVlc3QASW52YWxpZCBjaGFyIGluIHVybCBmcmFnbWVudCBzdGFydABFeHBlY3RlZCBkb3QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9zdGF0dXMASW52YWxpZCByZXNwb25zZSBzdGF0dXMASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucwBVc2VyIGNhbGxiYWNrIGVycm9yAGBvbl9yZXNldGAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2hlYWRlcmAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfYmVnaW5gIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwBB+TULAQEAQZA2C+ABAQECAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQf03CwEBAEGROAteAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgBB/TkLAQEAQZE6C14CAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEHwOwsNbG9zZWVlcC1hbGl2ZQBBiTwLAQEAQaA8C+ABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQYk+CwEBAEGgPgvnAQEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZABBsMAAC18BAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQBBkMIACyFlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AQcDCAAstcmFuc2Zlci1lbmNvZGluZ3BncmFkZQ0KDQoNClNNDQoNClRUUC9DRS9UU1AvAEH5wgALBQECAAEDAEGQwwAL4AEEAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cQACwUBAgABAwBBkMUAC+ABBAEBBQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQfnGAAsEAQAAAQBBkccAC98BAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")});var cb=m((Ozt,fte)=>{"use strict";var ste=["GET","HEAD","POST"],J3e=new Set(ste),Y3e=[101,204,205,304],ote=[301,302,303,307,308],K3e=new Set(ote),ate=["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"],X3e=new Set(ate),cte=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],Z3e=new Set(cte),eGe=["follow","manual","error"],lte=["GET","HEAD","OPTIONS","TRACE"],tGe=new Set(lte),rGe=["navigate","same-origin","no-cors","cors"],nGe=["omit","same-origin","include"],iGe=["default","no-store","reload","no-cache","force-cache","only-if-cached"],sGe=["content-encoding","content-language","content-location","content-type","content-length"],oGe=["half"],ute=["CONNECT","TRACE","TRACK"],aGe=new Set(ute),dte=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],cGe=new Set(dte);fte.exports={subresource:dte,forbiddenMethods:ute,requestBodyHeader:sGe,referrerPolicy:cte,requestRedirect:eGe,requestMode:rGe,requestCredentials:nGe,requestCache:iGe,redirectStatus:ote,corsSafeListedMethods:ste,nullBodyStatus:Y3e,safeMethods:lte,badPorts:ate,requestDuplex:oGe,subresourceSet:cGe,badPortsSet:X3e,redirectStatusSet:K3e,corsSafeListedMethodsSet:J3e,safeMethodsSet:tGe,forbiddenMethodsSet:aGe,referrerPolicySet:Z3e}});var mF=m((Lzt,hte)=>{"use strict";var AF=Symbol.for("undici.globalOrigin.1");function lGe(){return globalThis[AF]}o(lGe,"getGlobalOrigin");function uGe(t){if(t===void 0){Object.defineProperty(globalThis,AF,{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,AF,{value:e,writable:!0,enumerable:!1,configurable:!1})}o(uGe,"setGlobalOrigin");hte.exports={getGlobalOrigin:lGe,setGlobalOrigin:uGe}});var gs=m((Mzt,Cte)=>{"use strict";var Vx=require("node:assert"),dGe=new TextEncoder,lb=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,fGe=/[\u000A\u000D\u0009\u0020]/,hGe=/[\u0009\u000A\u000C\u000D\u0020]/g,pGe=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function AGe(t){Vx(t.protocol==="data:");let e=mte(t,!0);e=e.slice(5);let r={position:0},n=Im(",",e,r),i=n.length;if(n=bGe(n,!0,!0),r.position>=e.length)return"failure";r.position++;let s=e.slice(i+1),a=gte(s);if(/;(\u0020){0,}base64$/i.test(n)){let l=Ete(a);if(a=gGe(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=gF(n);return c==="failure"&&(c=gF("text/plain;charset=US-ASCII")),{mimeType:c,body:a}}o(AGe,"dataURLProcessor");function mte(t,e=!1){if(!e)return t.href;let r=t.href,n=t.hash.length,i=n===0?r:r.substring(0,r.length-n);return!n&&r.endsWith("#")?i.slice(0,-1):i}o(mte,"URLSerializer");function zx(t,e,r){let n="";for(;r.position<e.length&&t(e[r.position]);)n+=e[r.position],r.position++;return n}o(zx,"collectASequenceOfCodePoints");function Im(t,e,r){let n=e.indexOf(t,r.position),i=r.position;return n===-1?(r.position=e.length,e.slice(i)):(r.position=n,e.slice(i,r.position))}o(Im,"collectASequenceOfCodePointsFast");function gte(t){let e=dGe.encode(t);return mGe(e)}o(gte,"stringPercentDecode");function pte(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}o(pte,"isHexCharByte");function Ate(t){return t>=48&&t<=57?t-48:(t&223)-55}o(Ate,"hexByteToNumber");function mGe(t){let e=t.length,r=new Uint8Array(e),n=0;for(let i=0;i<e;++i){let s=t[i];s!==37?r[n++]=s:s===37&&!(pte(t[i+1])&&pte(t[i+2]))?r[n++]=37:(r[n++]=Ate(t[i+1])<<4|Ate(t[i+2]),i+=2)}return e===n?r:r.subarray(0,n)}o(mGe,"percentDecode");function gF(t){t=Hx(t,!0,!0);let e={position:0},r=Im("/",t,e);if(r.length===0||!lb.test(r)||e.position>t.length)return"failure";e.position++;let n=Im(";",t,e);if(n=Hx(n,!1,!0),n.length===0||!lb.test(n))return"failure";let i=r.toLowerCase(),s=n.toLowerCase(),a={type:i,subtype:s,parameters:new Map,essence:`${i}/${s}`};for(;e.position<t.length;){e.position++,zx(u=>fGe.test(u),t,e);let c=zx(u=>u!==";"&&u!=="=",t,e);if(c=c.toLowerCase(),e.position<t.length){if(t[e.position]===";")continue;e.position++}if(e.position>t.length)break;let l=null;if(t[e.position]==='"')l=yte(t,e,!0),Im(";",t,e);else if(l=Im(";",t,e),l=Hx(l,!1,!0),l.length===0)continue;c.length!==0&&lb.test(c)&&(l.length===0||pGe.test(l))&&!a.parameters.has(c)&&a.parameters.set(c,l)}return a}o(gF,"parseMIMEType");function gGe(t){t=t.replace(hGe,"");let e=t.length;if(e%4===0&&t.charCodeAt(e-1)===61&&(--e,t.charCodeAt(e-1)===61&&--e),e%4===1||/[^+/0-9A-Za-z]/.test(t.length===e?t:t.substring(0,e)))return"failure";let r=Buffer.from(t,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}o(gGe,"forgivingBase64");function yte(t,e,r){let n=e.position,i="";for(Vx(t[e.position]==='"'),e.position++;i+=zx(a=>a!=='"'&&a!=="\\",t,e),!(e.position>=t.length);){let s=t[e.position];if(e.position++,s==="\\"){if(e.position>=t.length){i+="\\";break}i+=t[e.position],e.position++}else{Vx(s==='"');break}}return r?i:t.slice(n,e.position)}o(yte,"collectAnHTTPQuotedString");function yGe(t){Vx(t!=="failure");let{parameters:e,essence:r}=t,n=r;for(let[i,s]of e.entries())n+=";",n+=i,n+="=",lb.test(s)||(s=s.replace(/(\\|")/g,"\\$1"),s='"'+s,s+='"'),n+=s;return n}o(yGe,"serializeAMimeType");function EGe(t){return t===13||t===10||t===9||t===32}o(EGe,"isHTTPWhiteSpace");function Hx(t,e=!0,r=!0){return yF(t,e,r,EGe)}o(Hx,"removeHTTPWhitespace");function CGe(t){return t===13||t===10||t===9||t===12||t===32}o(CGe,"isASCIIWhitespace");function bGe(t,e=!0,r=!0){return yF(t,e,r,CGe)}o(bGe,"removeASCIIWhitespace");function yF(t,e,r,n){let i=0,s=t.length-1;if(e)for(;i<t.length&&n(t.charCodeAt(i));)i++;if(r)for(;s>0&&n(t.charCodeAt(s));)s--;return i===0&&s===t.length-1?t:t.slice(i,s+1)}o(yF,"removeChars");function Ete(t){let e=t.length;if(65535>e)return String.fromCharCode.apply(null,t);let r="",n=0,i=65535;for(;n<e;)n+i>e&&(i=e-n),r+=String.fromCharCode.apply(null,t.subarray(n,n+=i));return r}o(Ete,"isomorphicDecode");function wGe(t){switch(t.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}return t.subtype.endsWith("+json")?"application/json":t.subtype.endsWith("+xml")?"application/xml":""}o(wGe,"minimizeSupportedMimeType");Cte.exports={dataURLProcessor:AGe,URLSerializer:mte,collectASequenceOfCodePoints:zx,collectASequenceOfCodePointsFast:Im,stringPercentDecode:gte,parseMIMEType:gF,collectAnHTTPQuotedString:yte,serializeAMimeType:yGe,removeChars:yF,removeHTTPWhitespace:Hx,minimizeSupportedMimeType:wGe,HTTP_TOKEN_CODEPOINTS:lb,isomorphicDecode:Ete}});var ai=m((qzt,bte)=>{"use strict";var{types:_c,inspect:IGe}=require("node:util"),{markAsUncloneable:SGe}=require("node:worker_threads"),{toUSVString:BGe}=ot(),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<e)throw Y.errors.exception({message:`${e} argument${e!==1?"s":""} required, but${t?" only":""} ${t} found.`,header:r})};Y.illegalConstructor=function(){throw Y.errors.exception({header:"TypeError",message:"Illegal constructor"})};Y.util.Type=function(t){switch(typeof t){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":return t===null?"Null":"Object"}};Y.util.markAsUncloneable=SGe||(()=>{});Y.util.ConvertToInt=function(t,e,r,n){let i,s;e===64?(i=Math.pow(2,53)-1,r==="unsigned"?s=0:s=Math.pow(-2,53)+1):r==="unsigned"?(s=0,i=Math.pow(2,e)-1):(s=Math.pow(-2,e)-1,i=Math.pow(2,e-1)-1);let a=Number(t);if(a===0&&(a=0),n?.enforceRange===!0){if(Number.isNaN(a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY)throw Y.errors.exception({header:"Integer conversion",message:`Could not convert ${Y.util.Stringify(t)} to an integer.`});if(a=Y.util.IntegerPart(a),a<s||a>i)throw Y.errors.exception({header:"Integer conversion",message:`Value must be between ${s}-${i}, got ${a}.`});return a}return!Number.isNaN(a)&&n?.clamp===!0?(a=Math.min(Math.max(a,s),i),Math.floor(a)%2===0?a=Math.floor(a):a=Math.ceil(a),a):Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY?0:(a=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 IGe(t);case"String":return`"${t}"`;default:return`${t}`}};Y.sequenceConverter=function(t){return(e,r,n,i)=>{if(Y.util.Type(e)!=="Object")throw Y.errors.exception({header:r,message:`${n} (${Y.util.Stringify(e)}) is not iterable.`});let s=typeof i=="function"?i():e?.[Symbol.iterator]?.(),a=[],c=0;if(s===void 0||typeof s.next!="function")throw Y.errors.exception({header:r,message:`${n} is not iterable.`});for(;;){let{done:l,value:u}=s.next();if(l)break;a.push(t(u,r,`${n}[${c++}]`))}return a}};Y.recordConverter=function(t,e){return(r,n,i)=>{if(Y.util.Type(r)!=="Object")throw Y.errors.exception({header:n,message:`${i} ("${Y.util.Type(r)}") is not an Object.`});let s={};if(!_c.isProxy(r)){let c=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let l of c){let u=t(l,n,i),d=e(r[l],n,i);s[u]=d}return s}let a=Reflect.ownKeys(r);for(let c of a)if(Reflect.getOwnPropertyDescriptor(r,c)?.enumerable){let u=t(c,n,i),d=e(r[c],n,i);s[u]=d}return s}};Y.interfaceConverter=function(t){return(e,r,n,i)=>{if(i?.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 i=Y.util.Type(e),s={};if(i==="Null"||i==="Undefined")return s;if(i!=="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 f=e[c],h=Object.hasOwn(a,"defaultValue");if(h&&f!==null&&(f??=l()),u||h||f!==void 0){if(f=d(f,r,`${n}.${c}`),a.allowedValues&&!a.allowedValues.includes(f))throw Y.errors.exception({header:r,message:`${f} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});s[c]=f}}return s}};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 i=0;i<n.length;i++)if(n.charCodeAt(i)>255)throw new TypeError(`Cannot convert argument to a ByteString because the character at index ${i} has a value of ${n.charCodeAt(i)} which is greater than 255.`);return n};Y.converters.USVString=BGe;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"||!_c.isAnyArrayBuffer(t))throw Y.errors.conversionFailed({prefix:e,argument:`${r} ("${Y.util.Stringify(t)}")`,types:["ArrayBuffer"]});if(n?.allowShared===!1&&_c.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,i){if(Y.util.Type(t)!=="Object"||!_c.isTypedArray(t)||t.constructor.name!==e.name)throw Y.errors.conversionFailed({prefix:r,argument:`${n} ("${Y.util.Stringify(t)}")`,types:[e.name]});if(i?.allowShared===!1&&_c.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"||!_c.isDataView(t))throw Y.errors.exception({header:e,message:`${r} is not a DataView.`});if(n?.allowShared===!1&&_c.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(_c.isAnyArrayBuffer(t))return Y.converters.ArrayBuffer(t,e,r,{...n,allowShared:!1});if(_c.isTypedArray(t))return Y.converters.TypedArray(t,t.constructor,e,r,{...n,allowShared:!1});if(_c.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<ByteString>"]=Y.sequenceConverter(Y.converters.ByteString);Y.converters["sequence<sequence<ByteString>>"]=Y.sequenceConverter(Y.converters["sequence<ByteString>"]);Y.converters["record<ByteString, ByteString>"]=Y.recordConverter(Y.converters.ByteString,Y.converters.ByteString);bte.exports={webidl:Y}});var Js=m((Gzt,kte)=>{"use strict";var{Transform:xGe}=require("node:stream"),wte=require("node:zlib"),{redirectStatusSet:vGe,referrerPolicySet:NGe,badPortsSet:_Ge}=cb(),{getGlobalOrigin:Ite}=mF(),{collectASequenceOfCodePoints:Qh,collectAnHTTPQuotedString:TGe,removeChars:RGe,parseMIMEType:DGe}=gs(),{performance:QGe}=require("node:perf_hooks"),{isBlobLike:PGe,ReadableStreamFrom:kGe,isValidHTTPToken:Ste,normalizedMethodRecordsBase:OGe}=ot(),Ph=require("node:assert"),{isUint8Array:LGe}=require("node:util/types"),{webidl:ub}=ai(),Bte=[],jx;try{jx=require("node:crypto");let t=["sha256","sha384","sha512"];Bte=jx.getHashes().filter(e=>t.includes(e))}catch{}function xte(t){let e=t.urlList,r=e.length;return r===0?null:e[r-1].toString()}o(xte,"responseURL");function FGe(t,e){if(!vGe.has(t.status))return null;let r=t.headersList.get("location",!0);return r!==null&&Nte(r)&&(vte(r)||(r=MGe(r)),r=new URL(r,xte(t))),r&&!r.hash&&(r.hash=e),r}o(FGe,"responseLocationURL");function vte(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r>126||r<32)return!1}return!0}o(vte,"isValidEncodedURL");function MGe(t){return Buffer.from(t,"binary").toString("utf8")}o(MGe,"normalizeBinaryStringToUtf8");function fb(t){return t.urlList[t.urlList.length-1]}o(fb,"requestCurrentURL");function UGe(t){let e=fb(t);return Qte(e)&&_Ge.has(e.port)?"blocked":"allowed"}o(UGe,"requestBadPort");function qGe(t){return t instanceof Error||t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException"}o(qGe,"isErrorLike");function GGe(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(!(r===9||r>=32&&r<=126||r>=128&&r<=255))return!1}return!0}o(GGe,"isValidReasonPhrase");var HGe=Ste;function Nte(t){return(t[0]===" "||t[0]===" "||t[t.length-1]===" "||t[t.length-1]===" "||t.includes(`
|
|
`)||t.includes("\r")||t.includes("\0"))===!1}o(Nte,"isValidHeaderValue");function VGe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),i="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(NGe.has(a)){i=a;break}}i!==""&&(t.referrerPolicy=i)}o(VGe,"setRequestReferrerPolicyOnRedirect");function zGe(){return"allowed"}o(zGe,"crossOriginResourcePolicyCheck");function $Ge(){return"success"}o($Ge,"corsCheck");function jGe(){return"success"}o(jGe,"TAOCheck");function WGe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(WGe,"appendFetchMetadata");function JGe(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&&CF(t.origin)&&!CF(fb(t))&&(e=null);break;case"same-origin":Wx(t,fb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(JGe,"appendRequestOriginHeader");function Sm(t,e){return t}o(Sm,"coarsenTime");function YGe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Sm(t.domainLookupStartTime,r),domainLookupEndTime:Sm(t.domainLookupEndTime,r),connectionStartTime:Sm(t.connectionStartTime,r),connectionEndTime:Sm(t.connectionEndTime,r),secureConnectionStartTime:Sm(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(YGe,"clampAndCoarsenConnectionTimingInfo");function KGe(t){return Sm(QGe.now(),t)}o(KGe,"coarsenedSharedCurrentTime");function XGe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(XGe,"createOpaqueTimingInfo");function _te(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(_te,"makePolicyContainer");function ZGe(t){return{referrerPolicy:t.referrerPolicy}}o(ZGe,"clonePolicyContainer");function eHe(t){let e=t.referrerPolicy;Ph(e);let r=null;if(t.referrer==="client"){let c=Ite();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=EF(r),i=EF(r,!0);n.toString().length>4096&&(n=i);let s=Wx(t,n),a=db(n)&&!db(t.url);switch(e){case"origin":return i??EF(r,!0);case"unsafe-url":return n;case"same-origin":return s?i:"no-referrer";case"origin-when-cross-origin":return s?n:i;case"strict-origin-when-cross-origin":{let c=fb(t);return Wx(n,c)?n:db(n)&&!db(c)?"no-referrer":i}default:return a?"no-referrer":i}}o(eHe,"determineRequestsReferrer");function EF(t,e){return Ph(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(EF,"stripURLForReferrer");function db(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(db,"isURLPotentiallyTrustworthy");function tHe(t,e){if(jx===void 0)return!0;let r=Tte(e);if(r==="no metadata"||r.length===0)return!0;let n=nHe(r),i=iHe(r,n);for(let s of i){let a=s.algo,c=s.hash,l=jx.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)),sHe(l,c))return!0}return!1}o(tHe,"bytesMatch");var rHe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Tte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let i=rHe.exec(n);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let s=i.groups.algo.toLowerCase();Bte.includes(s)&&e.push(i.groups)}return r===!0?"no metadata":e}o(Tte,"parseMetadata");function nHe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(nHe,"getStrongestMetadata");function iHe(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(iHe,"filterMetadataListByAlgorithm");function sHe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(sHe,"compareBase64Mixed");function oHe(t){}o(oHe,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function Wx(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}o(Wx,"sameOrigin");function aHe(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}}o(aHe,"createDeferredPromise");function cHe(t){return t.controller.state==="aborted"}o(cHe,"isAborted");function lHe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}o(lHe,"isCancelled");function uHe(t){return OGe[t.toLowerCase()]??t}o(uHe,"normalizeMethod");function dHe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Ph(typeof e=="string"),e}o(dHe,"serializeJavascriptValueToJSONString");var fHe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Rte(t,e,r=0,n=1){class i{static{o(this,"FastIterableIterator")}#e;#r;#n;constructor(a,c){this.#e=a,this.#r=c,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let a=this.#n,c=this.#e[e],l=c.length;if(a>=l)return{value:void 0,done:!0};let{[r]:u,[n]:d}=c[a];this.#n=a+1;let f;switch(this.#r){case"key":f=u;break;case"value":f=d;break;case"key+value":f=[u,d];break}return{value:f,done:!1}}}return delete i.prototype.constructor,Object.setPrototypeOf(i.prototype,fHe),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(s,a){return new i(s,a)}}o(Rte,"createIterator");function hHe(t,e,r,n=0,i=1){let s=Rte(t,r,n,i),a={keys:{writable:!0,enumerable:!0,configurable:!0,value:o(function(){return ub.brandCheck(this,e),s(this,"key")},"keys")},values:{writable:!0,enumerable:!0,configurable:!0,value:o(function(){return ub.brandCheck(this,e),s(this,"value")},"values")},entries:{writable:!0,enumerable:!0,configurable:!0,value:o(function(){return ub.brandCheck(this,e),s(this,"key+value")},"entries")},forEach:{writable:!0,enumerable:!0,configurable:!0,value:o(function(l,u=globalThis){if(ub.brandCheck(this,e),ub.argumentLengthCheck(arguments,1,`${t}.forEach`),typeof l!="function")throw new TypeError(`Failed to execute 'forEach' on '${t}': parameter 1 is not of type 'Function'.`);for(let{0:d,1:f}of s(this,"key+value"))l.call(u,f,d,this)},"forEach")}};return Object.defineProperties(e.prototype,{...a,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:a.entries.value}})}o(hHe,"iteratorMixin");async function pHe(t,e,r){let n=e,i=r,s;try{s=t.stream.getReader()}catch(a){i(a);return}try{n(await Dte(s))}catch(a){i(a)}}o(pHe,"fullyReadBody");function AHe(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee=="function"}o(AHe,"isReadableStreamLike");function mHe(t){try{t.close(),t.byobRequest?.respond(0)}catch(e){if(!e.message.includes("Controller is already closed")&&!e.message.includes("ReadableStream is already closed"))throw e}}o(mHe,"readableStreamClose");var gHe=/[^\x00-\xFF]/;function $x(t){return Ph(!gHe.test(t)),t}o($x,"isomorphicEncode");async function Dte(t){let e=[],r=0;for(;;){let{done:n,value:i}=await t.read();if(n)return Buffer.concat(e,r);if(!LGe(i))throw new TypeError("Received non-Uint8Array chunk");e.push(i),r+=i.length}}o(Dte,"readAllBytes");function yHe(t){Ph("protocol"in t);let e=t.protocol;return e==="about:"||e==="blob:"||e==="data:"}o(yHe,"urlIsLocal");function CF(t){return typeof t=="string"&&t[5]===":"&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&t[4]==="s"||t.protocol==="https:"}o(CF,"urlHasHttpsScheme");function Qte(t){Ph("protocol"in t);let e=t.protocol;return e==="http:"||e==="https:"}o(Qte,"urlIsHttpHttpsScheme");function EHe(t,e){let r=t;if(!r.startsWith("bytes"))return"failure";let n={position:5};if(e&&Qh(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==61)return"failure";n.position++,e&&Qh(l=>l===" "||l===" ",r,n);let i=Qh(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),s=i.length?Number(i):null;if(e&&Qh(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==45)return"failure";n.position++,e&&Qh(l=>l===" "||l===" ",r,n);let a=Qh(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),c=a.length?Number(a):null;return n.position<r.length||c===null&&s===null||s>c?"failure":{rangeStartValue:s,rangeEndValue:c}}o(EHe,"simpleRangeHeaderValue");function CHe(t,e,r){let n="bytes ";return n+=$x(`${t}`),n+="-",n+=$x(`${e}`),n+="/",n+=$x(`${r}`),n}o(CHe,"buildContentRange");var bF=class extends xGe{static{o(this,"InflateStream")}#e;constructor(e){super(),this.#e=e}_transform(e,r,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)===8?wte.createInflate(this.#e):wte.createInflateRaw(this.#e),this._inflateStream.on("data",this.push.bind(this)),this._inflateStream.on("end",()=>this.push(null)),this._inflateStream.on("error",i=>this.destroy(i))}this._inflateStream.write(e,r,n)}_final(e){this._inflateStream&&(this._inflateStream.end(),this._inflateStream=null),e()}};function bHe(t){return new bF(t)}o(bHe,"createInflate");function wHe(t){let e=null,r=null,n=null,i=Pte("content-type",t);if(i===null)return"failure";for(let s of i){let a=DGe(s);a==="failure"||a.essence==="*/*"||(n=a,n.essence!==r?(e=null,n.parameters.has("charset")&&(e=n.parameters.get("charset")),r=n.essence):!n.parameters.has("charset")&&e!==null&&n.parameters.set("charset",e))}return n??"failure"}o(wHe,"extractMimeType");function IHe(t){let e=t,r={position:0},n=[],i="";for(;r.position<e.length;){if(i+=Qh(s=>s!=='"'&&s!==",",e,r),r.position<e.length)if(e.charCodeAt(r.position)===34){if(i+=TGe(e,r),r.position<e.length)continue}else Ph(e.charCodeAt(r.position)===44),r.position++;i=RGe(i,!0,!0,s=>s===9||s===32),n.push(i),i=""}return n}o(IHe,"gettingDecodingSplitting");function Pte(t,e){let r=e.get(t,!0);return r===null?null:IHe(r)}o(Pte,"getDecodeSplit");var SHe=new TextDecoder;function BHe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),SHe.decode(t))}o(BHe,"utf8DecodeBytes");var wF=class{static{o(this,"EnvironmentSettingsObjectBase")}get baseUrl(){return Ite()}get origin(){return this.baseUrl?.origin}policyContainer=_te()},IF=class{static{o(this,"EnvironmentSettingsObject")}settingsObject=new wF},xHe=new IF;kte.exports={isAborted:cHe,isCancelled:lHe,isValidEncodedURL:vte,createDeferredPromise:aHe,ReadableStreamFrom:kGe,tryUpgradeRequestToAPotentiallyTrustworthyURL:oHe,clampAndCoarsenConnectionTimingInfo:YGe,coarsenedSharedCurrentTime:KGe,determineRequestsReferrer:eHe,makePolicyContainer:_te,clonePolicyContainer:ZGe,appendFetchMetadata:WGe,appendRequestOriginHeader:JGe,TAOCheck:jGe,corsCheck:$Ge,crossOriginResourcePolicyCheck:zGe,createOpaqueTimingInfo:XGe,setRequestReferrerPolicyOnRedirect:VGe,isValidHTTPToken:Ste,requestBadPort:UGe,requestCurrentURL:fb,responseURL:xte,responseLocationURL:FGe,isBlobLike:PGe,isURLPotentiallyTrustworthy:db,isValidReasonPhrase:GGe,sameOrigin:Wx,normalizeMethod:uHe,serializeJavascriptValueToJSONString:dHe,iteratorMixin:hHe,createIterator:Rte,isValidHeaderName:HGe,isValidHeaderValue:Nte,isErrorLike:qGe,fullyReadBody:pHe,bytesMatch:tHe,isReadableStreamLike:AHe,readableStreamClose:mHe,isomorphicEncode:$x,urlIsLocal:yHe,urlHasHttpsScheme:CF,urlIsHttpHttpsScheme:Qte,readAllBytes:Dte,simpleRangeHeaderValue:EHe,buildContentRange:CHe,parseMetadata:Tte,createInflate:bHe,extractMimeType:wHe,getDecodeSplit:Pte,utf8DecodeBytes:BHe,environmentSettingsObject:xHe}});var Ld=m((Vzt,Ote)=>{"use strict";Ote.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var BF=m((zzt,Lte)=>{"use strict";var{Blob:vHe,File:NHe}=require("node:buffer"),{kState:Iu}=Ld(),{webidl:Tc}=ai(),SF=class t{static{o(this,"FileLike")}constructor(e,r,n={}){let i=r,s=n.type,a=n.lastModified??Date.now();this[Iu]={blobLike:e,name:i,type:s,lastModified:a}}stream(...e){return Tc.brandCheck(this,t),this[Iu].blobLike.stream(...e)}arrayBuffer(...e){return Tc.brandCheck(this,t),this[Iu].blobLike.arrayBuffer(...e)}slice(...e){return Tc.brandCheck(this,t),this[Iu].blobLike.slice(...e)}text(...e){return Tc.brandCheck(this,t),this[Iu].blobLike.text(...e)}get size(){return Tc.brandCheck(this,t),this[Iu].blobLike.size}get type(){return Tc.brandCheck(this,t),this[Iu].blobLike.type}get name(){return Tc.brandCheck(this,t),this[Iu].name}get lastModified(){return Tc.brandCheck(this,t),this[Iu].lastModified}get[Symbol.toStringTag](){return"File"}};Tc.converters.Blob=Tc.interfaceConverter(vHe);function _He(t){return t instanceof NHe||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}o(_He,"isFileLike");Lte.exports={FileLike:SF,isFileLike:_He}});var pb=m((jzt,Gte)=>{"use strict";var{isBlobLike:Jx,iteratorMixin:THe}=Js(),{kState:qi}=Ld(),{kEnumerableProperty:Bm}=ot(),{FileLike:Fte,isFileLike:RHe}=BF(),{webidl:Xt}=ai(),{File:qte}=require("node:buffer"),Mte=require("node:util"),Ute=globalThis.File??qte,hb=class t{static{o(this,"FormData")}constructor(e){if(Xt.util.markAsUncloneable(this),e!==void 0)throw Xt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[qi]=[]}append(e,r,n=void 0){Xt.brandCheck(this,t);let i="FormData.append";if(Xt.argumentLengthCheck(arguments,2,i),arguments.length===3&&!Jx(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Xt.converters.USVString(e,i,"name"),r=Jx(r)?Xt.converters.Blob(r,i,"value",{strict:!1}):Xt.converters.USVString(r,i,"value"),n=arguments.length===3?Xt.converters.USVString(n,i,"filename"):void 0;let s=xF(e,r,n);this[qi].push(s)}delete(e){Xt.brandCheck(this,t);let r="FormData.delete";Xt.argumentLengthCheck(arguments,1,r),e=Xt.converters.USVString(e,r,"name"),this[qi]=this[qi].filter(n=>n.name!==e)}get(e){Xt.brandCheck(this,t);let r="FormData.get";Xt.argumentLengthCheck(arguments,1,r),e=Xt.converters.USVString(e,r,"name");let n=this[qi].findIndex(i=>i.name===e);return n===-1?null:this[qi][n].value}getAll(e){Xt.brandCheck(this,t);let r="FormData.getAll";return Xt.argumentLengthCheck(arguments,1,r),e=Xt.converters.USVString(e,r,"name"),this[qi].filter(n=>n.name===e).map(n=>n.value)}has(e){Xt.brandCheck(this,t);let r="FormData.has";return Xt.argumentLengthCheck(arguments,1,r),e=Xt.converters.USVString(e,r,"name"),this[qi].findIndex(n=>n.name===e)!==-1}set(e,r,n=void 0){Xt.brandCheck(this,t);let i="FormData.set";if(Xt.argumentLengthCheck(arguments,2,i),arguments.length===3&&!Jx(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Xt.converters.USVString(e,i,"name"),r=Jx(r)?Xt.converters.Blob(r,i,"name",{strict:!1}):Xt.converters.USVString(r,i,"name"),n=arguments.length===3?Xt.converters.USVString(n,i,"name"):void 0;let s=xF(e,r,n),a=this[qi].findIndex(c=>c.name===e);a!==-1?this[qi]=[...this[qi].slice(0,a),s,...this[qi].slice(a+1).filter(c=>c.name!==e)]:this[qi].push(s)}[Mte.inspect.custom](e,r){let n=this[qi].reduce((s,a)=>(s[a.name]?Array.isArray(s[a.name])?s[a.name].push(a.value):s[a.name]=[s[a.name],a.value]:s[a.name]=a.value,s),{__proto__:null});r.depth??=e,r.colors??=!0;let i=Mte.formatWithOptions(r,n);return`FormData ${i.slice(i.indexOf("]")+2)}`}};THe("FormData",hb,qi,"name","value");Object.defineProperties(hb.prototype,{append:Bm,delete:Bm,get:Bm,getAll:Bm,has:Bm,set:Bm,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function xF(t,e,r){if(typeof e!="string"){if(RHe(e)||(e=e instanceof Blob?new Ute([e],"blob",{type:e.type}):new Fte(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=e instanceof qte?new Ute([e],r,n):new Fte(e,r,n)}}return{name:t,value:e}}o(xF,"makeEntry");Gte.exports={FormData:hb,makeEntry:xF}});var Wte=m((Jzt,jte)=>{"use strict";var{isUSVString:Hte,bufferToLowerCasedHeaderName:DHe}=ot(),{utf8DecodeBytes:QHe}=Js(),{HTTP_TOKEN_CODEPOINTS:PHe,isomorphicDecode:Vte}=gs(),{isFileLike:kHe}=BF(),{makeEntry:OHe}=pb(),Yx=require("node:assert"),{File:LHe}=require("node:buffer"),FHe=globalThis.File??LHe,MHe=Buffer.from('form-data; name="'),zte=Buffer.from("; filename"),UHe=Buffer.from("--"),qHe=Buffer.from(`--\r
|
|
`);function GHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(GHe,"isAsciiString");function HHe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(HHe,"validateBoundary");function VHe(t,e){Yx(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),i=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&Kx(t,UHe,s)||s.position===t.length-4&&Kx(t,qHe,s))return i;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=zHe(t,s);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:f}=c;s.position+=2;let h;{let g=t.indexOf(n.subarray(2),s.position);if(g===-1)return"failure";h=t.subarray(s.position,g-4),s.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let p;u!==null?(d??="text/plain",GHe(d)||(d=""),p=new FHe([h],u,{type:d})):p=QHe(Buffer.from(h)),Yx(Hte(l)),Yx(typeof p=="string"&&Hte(p)||kHe(p)),i.push(OHe(l,p,u))}}o(VHe,"multipartFormDataParser");function zHe(t,e){let r=null,n=null,i=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:i,encoding:s};let a=xm(c=>c!==10&&c!==13&&c!==58,t,e);if(a=vF(a,!0,!0,c=>c===9||c===32),!PHe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,xm(c=>c===32||c===9,t,e),DHe(a)){case"content-disposition":{if(r=n=null,!Kx(t,MHe,e)||(e.position+=17,r=$te(t,e),r===null))return"failure";if(Kx(t,zte,e)){let c=e.position+zte.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=$te(t,e),n===null))return"failure"}break}case"content-type":{let c=xm(l=>l!==10&&l!==13,t,e);c=vF(c,!1,!0,l=>l===9||l===32),i=Vte(c);break}case"content-transfer-encoding":{let c=xm(l=>l!==10&&l!==13,t,e);c=vF(c,!1,!0,l=>l===9||l===32),s=Vte(c);break}default:xm(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(zHe,"parseMultipartFormDataHeaders");function $te(t,e){Yx(t[e.position-1]===34);let r=xm(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
|
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o($te,"parseMultipartFormDataName");function xm(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(xm,"collectASequenceOfBytes");function vF(t,e,r,n){let i=0,s=t.length-1;if(e)for(;i<t.length&&n(t[i]);)i++;if(r)for(;s>0&&n(t[s]);)s--;return i===0&&s===t.length-1?t:t.subarray(i,s+1)}o(vF,"removeChars");function Kx(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(Kx,"bufferStartsWith");jte.exports={multipartFormDataParser:VHe,validateBoundary:HHe}});var _m=m((Kzt,ire)=>{"use strict";var Ab=ot(),{ReadableStreamFrom:$He,isBlobLike:Jte,isReadableStreamLike:jHe,readableStreamClose:WHe,createDeferredPromise:JHe,fullyReadBody:YHe,extractMimeType:KHe,utf8DecodeBytes:Xte}=Js(),{FormData:Yte}=pb(),{kState:Nm}=Ld(),{webidl:XHe}=ai(),{Blob:ZHe}=require("node:buffer"),NF=require("node:assert"),{isErrored:Zte,isDisturbed:eVe}=require("node:stream"),{isArrayBuffer:tVe}=require("node:util/types"),{serializeAMimeType:rVe}=gs(),{multipartFormDataParser:nVe}=Wte(),_F;try{let t=require("node:crypto");_F=o(e=>t.randomInt(0,e),"random")}catch{_F=o(t=>Math.floor(Math.random(t)),"random")}var Xx=new TextEncoder;function iVe(){}o(iVe,"noop");var ere=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,tre;ere&&(tre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!eVe(e)&&!Zte(e)&&e.cancel("Response object has been garbage collected").catch(iVe)}));function rre(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Jte(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof i=="string"?Xx.encode(i):i;u.byteLength&&l.enqueue(u),queueMicrotask(()=>WHe(l))},start(){},type:"bytes"}),NF(jHe(r));let n=null,i=null,s=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(tVe(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Ab.isFormDataLike(t)){let l=`----formdata-undici-0${`${_F(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
|
|
Content-Disposition: form-data`;let d=o(E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),f=o(E=>E.replace(/\r?\n|\r/g,`\r
|
|
`),"normalizeLinefeeds"),h=[],p=new Uint8Array([13,10]);s=0;let g=!1;for(let[E,y]of t)if(typeof y=="string"){let C=Xx.encode(u+`; name="${d(f(E))}"\r
|
|
\r
|
|
${f(y)}\r
|
|
`);h.push(C),s+=C.byteLength}else{let C=Xx.encode(`${u}; name="${d(f(E))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
|
|
Content-Type: ${y.type||"application/octet-stream"}\r
|
|
\r
|
|
`);h.push(C,y,p),typeof y.size=="number"?s+=C.byteLength+y.size+p.byteLength:g=!0}let A=Xx.encode(`--${l}--\r
|
|
`);h.push(A),s+=A.byteLength,g&&(s=null),i=t,n=o(async function*(){for(let E of h)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(Jte(t))i=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Ab.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:$He(t)}if((typeof i=="string"||Ab.isBuffer(i))&&(s=Buffer.byteLength(i)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:f}=await l.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Zte(r)){let h=new Uint8Array(d);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:s},a]}o(rre,"extractBody");function sVe(t,e=!1){return t instanceof ReadableStream&&(NF(!Ab.isDisturbed(t),"The body has already been consumed."),NF(!t.locked,"The stream is locked.")),rre(t,e)}o(sVe,"safelyExtractBody");function oVe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(oVe,"cloneBody");function aVe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(aVe,"throwIfAborted");function cVe(t){return{blob(){return vm(this,r=>{let n=Kte(this);return n===null?n="":n&&(n=rVe(n)),new ZHe([r],{type:n})},t)},arrayBuffer(){return vm(this,r=>new Uint8Array(r).buffer,t)},text(){return vm(this,Xte,t)},json(){return vm(this,uVe,t)},formData(){return vm(this,r=>{let n=Kte(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let i=nVe(r,n);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new Yte;return s[Nm]=i,s}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),s=new Yte;for(let[a,c]of i)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return vm(this,r=>new Uint8Array(r),t)}}}o(cVe,"bodyMixinMethods");function lVe(t){Object.assign(t.prototype,cVe(t))}o(lVe,"mixinBody");async function vm(t,e,r){if(XHe.brandCheck(t,r),nre(t))throw new TypeError("Body is unusable: Body has already been read");aVe(t[Nm]);let n=JHe(),i=o(a=>n.reject(a),"errorSteps"),s=o(a=>{try{n.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[Nm].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await YHe(t[Nm].body,s,i),n.promise)}o(vm,"consumeBody");function nre(t){let e=t[Nm].body;return e!=null&&(e.stream.locked||Ab.isDisturbed(e.stream))}o(nre,"bodyUnusable");function uVe(t){return JSON.parse(Xte(t))}o(uVe,"parseJSONFromBytes");function Kte(t){let e=t[Nm].headersList,r=KHe(e);return r==="failure"?null:r}o(Kte,"bodyMimeType");ire.exports={extractBody:rre,safelyExtractBody:sVe,cloneBody:oVe,mixinBody:lVe,streamRegistry:tre,hasFinalizationRegistry:ere,bodyUnusable:nre}});var Cre=m((Zzt,Ere)=>{"use strict";var Te=require("node:assert"),Pe=ot(),{channels:sre}=mm(),TF=dF(),{RequestContentLengthMismatchError:kh,ResponseContentLengthMismatchError:ore,RequestAbortedError:pre,InvalidArgumentError:dVe,HeadersTimeoutError:fVe,HeadersOverflowError:hVe,SocketError:Tm,InformationalError:Rm,BodyTimeoutError:pVe,HTTPParserError:AVe,ResponseExceededMaxSizeError:mVe}=Tt(),{kUrl:Are,kReset:ys,kClient:rv,kParser:rr,kBlocking:yb,kRunning:An,kPending:mre,kSize:are,kWriting:Fd,kQueue:Ma,kNoRef:mb,kKeepAliveDefaultTimeout:gVe,kHostHeader:yVe,kPendingIdx:EVe,kRunningIdx:Oo,kError:Gi,kPipelining:nv,kSocket:Lh,kKeepAliveTimeoutValue:sv,kMaxHeadersSize:RF,kKeepAliveMaxTimeout:CVe,kKeepAliveTimeoutThreshold:bVe,kHeadersTimeout:wVe,kBodyTimeout:IVe,kStrictContentLength:PF,kMaxRequests:cre,kCounter:SVe,kMaxResponseSize:BVe,kOnError:lre,kResume:Su,kHTTPContext:gre}=Ar(),Ys=tte(),ure=Buffer.alloc(0),Zx=Buffer[Symbol.species],ev=Pe.addListener,xVe=Pe.removeAllListeners,Fh=Symbol("kIdleSocketValidation"),Oh=Symbol("kIdleSocketValidationTimeout"),FF=Symbol("kSocketUsed"),DF;async function vVe(){let t=process.env.JEST_WORKER_ID?pF():void 0,e;try{e=await WebAssembly.compile(ite())}catch{e=await WebAssembly.compile(t||pF())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,i)=>0,"wasm_on_url"),wasm_on_status:o((r,n,i)=>{Te(Dr.ptr===r);let s=n-Dc+Rc.byteOffset;return Dr.onStatus(new Zx(Rc.buffer,s,i))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(Te(Dr.ptr===r),Dr.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,i)=>{Te(Dr.ptr===r);let s=n-Dc+Rc.byteOffset;return Dr.onHeaderField(new Zx(Rc.buffer,s,i))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,i)=>{Te(Dr.ptr===r);let s=n-Dc+Rc.byteOffset;return Dr.onHeaderValue(new Zx(Rc.buffer,s,i))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,i,s)=>(Te(Dr.ptr===r),Dr.onHeadersComplete(n,!!i,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,i)=>{Te(Dr.ptr===r);let s=n-Dc+Rc.byteOffset;return Dr.onBody(new Zx(Rc.buffer,s,i))||0},"wasm_on_body"),wasm_on_message_complete:o(r=>(Te(Dr.ptr===r),Dr.onMessageComplete()||0),"wasm_on_message_complete")}})}o(vVe,"lazyllhttp");var QF=null,kF=vVe();kF.catch();var Dr=null,Rc=null,tv=0,Dc=null,NVe=0,gb=1,Dm=2|gb,iv=4|gb,OF=8|NVe,LF=class{static{o(this,"Parser")}constructor(e,r,{exports:n}){Te(Number.isFinite(e[RF])&&e[RF]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Ys.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[RF],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[BVe]}setTimeout(e,r){e!==this.timeoutValue||r&gb^this.timeoutType&gb?(this.timeout&&(TF.clearTimeout(this.timeout),this.timeout=null),e&&(r&gb?this.timeout=TF.setFastTimeout(dre,e,new WeakRef(this)):(this.timeout=setTimeout(dre,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||(Te(this.ptr!=null),Te(Dr==null),this.llhttp.llhttp_resume(this.ptr),Te(this.timeoutType===iv),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||ure),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Te(this.ptr!=null),Te(Dr==null),Te(!this.paused);let{socket:r,llhttp:n}=this;e.length>tv&&(Dc&&n.free(Dc),tv=Math.ceil(e.length/4096)*4096,Dc=n.malloc(tv)),new Uint8Array(n.memory.buffer,Dc,tv).set(e);try{let i;try{Rc=e,Dr=this,i=n.llhttp_execute(this.ptr,Dc,e.length)}catch(a){throw a}finally{Dr=null,Rc=null}let s=n.llhttp_get_error_pos(this.ptr)-Dc;if(i!==Ys.ERROR.OK){let a=e.subarray(s);if(i===Ys.ERROR.PAUSED_UPGRADE)this.onUpgrade(a);else if(i===Ys.ERROR.PAUSED)this.paused=!0,r.unshift(a);else throw this.createError(i,a)}}catch(i){Pe.destroy(r,i)}}finish(){Te(Dr===null),Te(this.ptr!=null),Te(!this.paused);let{llhttp:e}=this,r;try{Dr=this,r=e.llhttp_finish(this.ptr)}finally{Dr=null}return r===Ys.ERROR.OK?null:r===Ys.ERROR.PAUSED||r===Ys.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(r,ure)}createError(e,r){let{llhttp:n,contentLength:i,bytesRead:s}=this;if(i&&s!==parseInt(i,10))return new ore;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 AVe(c,Ys.ERROR[e],r)}destroy(){Te(this.ptr!=null),Te(Dr==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&TF.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[An]===0)return Pe.destroy(e,new Tm("bad response",Pe.getSocketInfo(e))),-1;let n=r[Ma][r[Oo]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let r=this.headers.length;(r&1)===0?this.headers.push(e):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]),this.trackHeader(e.length)}onHeaderValue(e){let r=this.headers.length;(r&1)===1?(this.headers.push(e),r+=1):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]);let n=this.headers[r-2];if(n.length===10){let i=Pe.bufferToLowerCasedHeaderName(n);i==="keep-alive"?this.keepAlive+=e.toString():i==="connection"&&(this.connection+=e.toString())}else n.length===14&&Pe.bufferToLowerCasedHeaderName(n)==="content-length"&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&Pe.destroy(this.socket,new hVe)}onUpgrade(e){let{upgrade:r,client:n,socket:i,headers:s,statusCode:a}=this;Te(r),Te(n[Lh]===i),Te(!i.destroyed),Te(!this.paused),Te((s.length&1)===0);let c=n[Ma][n[Oo]];Te(c),Te(c.upgrade||c.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,i.unshift(e),i[rr].destroy(),i[rr]=null,i[rv]=null,i[Gi]=null,xVe(i),n[Lh]=null,n[gre]=null,n[Ma][n[Oo]++]=null,n.emit("disconnect",n[Are],[n],new Rm("upgrade"));try{c.onUpgrade(a,s,i)}catch(l){Pe.destroy(i,l)}n[Su]()}onHeadersComplete(e,r,n){let{client:i,socket:s,headers:a,statusText:c}=this;if(s.destroyed)return-1;if(i[An]===0)return Pe.destroy(s,new Tm("bad response",Pe.getSocketInfo(s))),-1;let l=i[Ma][i[Oo]];if(!l)return-1;if(Te(!this.upgrade),Te(this.statusCode<200),e===100)return Pe.destroy(s,new Tm("bad response",Pe.getSocketInfo(s))),-1;if(r&&!l.upgrade)return Pe.destroy(s,new Tm("bad upgrade",Pe.getSocketInfo(s))),-1;if(Te(this.timeoutType===Dm),this.statusCode=e,this.shouldKeepAlive=n||l.method==="HEAD"&&!s[ys]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let d=l.bodyTimeout!=null?l.bodyTimeout:i[IVe];this.setTimeout(d,iv)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method==="CONNECT")return Te(i[An]===1),this.upgrade=!0,2;if(r)return Te(i[An]===1),this.upgrade=!0,2;if(Te((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&i[nv]){let d=this.keepAlive?Pe.parseKeepAliveTimeout(this.keepAlive):null;if(d!=null){let f=Math.min(d-i[bVe],i[CVe]);f<=0?s[ys]=!0:i[sv]=f}else i[sv]=i[gVe]}else s[ys]=!0;let u=l.onHeaders(e,a,this.resume,c)===!1;return l.aborted?-1:l.method==="HEAD"||e<200?1:(s[yb]&&(s[yb]=!1,i[Su]()),u?Ys.ERROR.PAUSED:0)}onBody(e){let{client:r,socket:n,statusCode:i,maxResponseSize:s}=this;if(n.destroyed)return-1;let a=r[Ma][r[Oo]];if(Te(a),Te(this.timeoutType===iv),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),Te(i>=200),s>-1&&this.bytesRead+e.length>s)return Pe.destroy(n,new mVe),-1;if(this.bytesRead+=e.length,a.onData(e)===!1)return Ys.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:r,statusCode:n,upgrade:i,headers:s,contentLength:a,bytesRead:c,shouldKeepAlive:l}=this;if(r.destroyed&&(!n||l))return-1;if(i)return;Te(n>=100),Te((this.headers.length&1)===0);let u=e[Ma][e[Oo]];if(Te(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 Pe.destroy(r,new ore),-1;if(u.onComplete(s),e[Ma][e[Oo]++]=null,r[FF]=!0,r[Fd])return Te(e[An]===0),Pe.destroy(r,new Rm("reset")),Ys.ERROR.PAUSED;if(l){if(r[ys]&&e[An]===0)return Pe.destroy(r,new Rm("reset")),Ys.ERROR.PAUSED;e[nv]==null||e[nv]===1?setImmediate(()=>e[Su]()):e[Su]()}else return Pe.destroy(r,new Rm("reset")),Ys.ERROR.PAUSED}}};function dre(t){let{socket:e,timeoutType:r,client:n,paused:i}=t.deref();r===Dm?(!e[Fd]||e.writableNeedDrain||n[An]>1)&&(Te(!i,"cannot be paused while waiting for headers"),Pe.destroy(e,new fVe)):r===iv?i||Pe.destroy(e,new pVe):r===OF&&(Te(n[An]===0&&n[sv]),Pe.destroy(e,new Rm("socket idle timeout")))}o(dre,"onParserTimeout");async function _Ve(t,e){t[Lh]=e,QF||(QF=await kF,kF=null),e[mb]=!1,e[Fd]=!1,e[ys]=!1,e[yb]=!1,e[Fh]=0,e[Oh]=null,e[FF]=!1,e[rr]=new LF(t,e,QF),ev(e,"error",function(n){Te(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID");let i=this[rr];if(n.code==="ECONNRESET"&&i.statusCode&&!i.shouldKeepAlive){let s=i.finish();s&&(this[Gi]=s,this[rv][lre](s));return}this[Gi]=n,this[rv][lre](n)}),ev(e,"readable",function(){let n=this[rr];n&&n.readMore()}),ev(e,"end",function(){let n=this[rr];if(n.statusCode&&!n.shouldKeepAlive){let i=n.finish();i&&Pe.destroy(this,i);return}Pe.destroy(this,new Tm("other side closed",Pe.getSocketInfo(this)))}),ev(e,"close",function(){let n=this[rv],i=this[rr];yre(this),i&&(!this[Gi]&&i.statusCode&&!i.shouldKeepAlive&&(this[Gi]=i.finish()||this[Gi]),this[rr].destroy(),this[rr]=null);let s=this[Gi]||new Tm("closed",Pe.getSocketInfo(this));if(n[Lh]=null,n[gre]=null,n.destroyed){Te(n[mre]===0);let a=n[Ma].splice(n[Oo]);for(let c=0;c<a.length;c++){let l=a[c];Pe.errorRequest(n,l,s)}}else if(n[An]>0&&s.code!=="UND_ERR_INFO"){let a=n[Ma][n[Oo]];n[Ma][n[Oo]++]=null,Pe.errorRequest(n,a,s)}n[EVe]=n[Oo],Te(n[An]===0),n.emit("disconnect",n[Are],[n],s),n[Su]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h1",defaultPipelining:1,write(...n){return QVe(t,...n)},resume(){RVe(t)},destroy(n,i){r?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(n){return!!(e[Fd]||e[ys]||e[yb]||e[Fh]===1||n&&(t[An]>0&&!n.idempotent||t[An]>0&&(n.upgrade||n.method==="CONNECT")||t[An]>0&&Pe.bodyLength(n.body)!==0&&(Pe.isStream(n.body)||Pe.isAsyncIterable(n.body)||Pe.isFormDataLike(n.body))))}}}o(_Ve,"connectH1");function yre(t){t[Oh]&&(clearTimeout(t[Oh]),t[Oh]=null),t[Fh]=0}o(yre,"clearIdleSocketValidation");function TVe(t,e){e[Fh]=1,e[Oh]=setTimeout(()=>{e[Oh]=null,e[Fh]=2,t[Lh]===e&&!e.destroyed&&t[Su]()},0),e[Oh].unref?.()}o(TVe,"scheduleIdleSocketValidation");function RVe(t){let e=t[Lh];if(e&&!e.destroyed){if(t[are]===0?!e[mb]&&e.unref&&(e.unref(),e[mb]=!0):e[mb]&&e.ref&&(e.ref(),e[mb]=!1),t[An]===0&&t[mre]>0&&e[FF]){if(e[Fh]===0)return TVe(t,e),e[rr].readMore(),e.destroyed,void 0;if(e[Fh]===1)return e[rr].readMore(),e.destroyed,void 0}if(t[An]===0&&(e[rr].readMore(),e.destroyed))return;if(t[are]===0)e[rr].timeoutType!==OF&&e[rr].setTimeout(t[sv],OF);else if(t[An]>0&&e[rr].statusCode<200&&e[rr].timeoutType!==Dm){let r=t[Ma][t[Oo]],n=r.headersTimeout!=null?r.headersTimeout:t[wVe];e[rr].setTimeout(n,Dm)}}}o(RVe,"resumeH1");function DVe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(DVe,"shouldSendContentLength");function QVe(t,e){let{method:r,path:n,host:i,upgrade:s,blocking:a,reset:c}=e,{body:l,headers:u,contentLength:d}=e,f=r==="PUT"||r==="POST"||r==="PATCH"||r==="QUERY"||r==="PROPFIND"||r==="PROPPATCH";if(Pe.isFormDataLike(l)){DF||(DF=_m().extractBody);let[E,y]=DF(l);e.contentType==null&&u.push("content-type",y),l=E.stream,d=E.length}else if(Pe.isBlobLike(l)&&e.contentType==null){let E=l.type;if(E){let y=`${E}`;if(!Pe.isValidHeaderValue(y))return Pe.errorRequest(t,e,new dVe("invalid content-type header")),!1;u.push("content-type",y)}}l&&typeof l.read=="function"&&l.read(0);let h=Pe.bodyLength(l);if(d=h??d,d===null&&(d=e.contentLength),d===0&&!f&&(d=null),DVe(r)&&d>0&&e.contentLength!==null&&e.contentLength!==d){if(t[PF])return Pe.errorRequest(t,e,new kh),!1;process.emitWarning(new kh)}let p=t[Lh];yre(p);let g=o(E=>{e.aborted||e.completed||(Pe.errorRequest(t,e,E||new pre),Pe.destroy(l),Pe.destroy(p,new Rm("aborted")))},"abort");try{e.onConnect(g)}catch(E){Pe.errorRequest(t,e,E)}if(e.aborted)return!1;r==="HEAD"&&(p[ys]=!0),(s||r==="CONNECT")&&(p[ys]=!0),c!=null&&(p[ys]=c),t[cre]&&p[SVe]++>=t[cre]&&(p[ys]=!0),a&&(p[yb]=!0);let A=`${r} ${n} HTTP/1.1\r
|
|
`;if(typeof i=="string"?A+=`host: ${i}\r
|
|
`:A+=t[yVe],s?A+=`connection: upgrade\r
|
|
upgrade: ${s}\r
|
|
`:t[nv]&&!p[ys]?A+=`connection: keep-alive\r
|
|
`:A+=`connection: close\r
|
|
`,Array.isArray(u))for(let E=0;E<u.length;E+=2){let y=u[E+0],C=u[E+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)A+=`${y}: ${C[w]}\r
|
|
`;else A+=`${y}: ${C}\r
|
|
`}return sre.sendHeaders.hasSubscribers&&sre.sendHeaders.publish({request:e,headers:A,socket:p}),!l||h===0?fre(g,null,t,e,p,d,A,f):Pe.isBuffer(l)?fre(g,l,t,e,p,d,A,f):Pe.isBlobLike(l)?typeof l.stream=="function"?hre(g,l.stream(),t,e,p,d,A,f):kVe(g,l,t,e,p,d,A,f):Pe.isStream(l)?PVe(g,l,t,e,p,d,A,f):Pe.isIterable(l)?hre(g,l,t,e,p,d,A,f):Te(!1),!0}o(QVe,"writeH1");function PVe(t,e,r,n,i,s,a,c){Te(s!==0||r[An]===0,"stream body cannot be pipelined");let l=!1,u=new ov({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),d=o(function(g){if(!l)try{!u.write(g)&&this.pause&&this.pause()}catch(A){Pe.destroy(this,A)}},"onData"),f=o(function(){l||e.resume&&e.resume()},"onDrain"),h=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let g=new pre;queueMicrotask(()=>p(g))}},"onClose"),p=o(function(g){if(!l){if(l=!0,Te(i.destroyed||i[Fd]&&r[An]<=1),i.off("drain",f).off("error",p),e.removeListener("data",d).removeListener("end",p).removeListener("close",h),!g)try{u.end()}catch(A){g=A}u.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Pe.destroy(e,g):Pe.destroy(e)}},"onFinished");e.on("data",d).on("end",p).on("error",p).on("close",h),e.resume&&e.resume(),i.on("drain",f).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}o(PVe,"writeStream");function fre(t,e,r,n,i,s,a,c){try{e?Pe.isBuffer(e)&&(Te(s===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length: ${s}\r
|
|
\r
|
|
`,"latin1"),i.write(e),i.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(i[ys]=!0)):s===0?i.write(`${a}content-length: 0\r
|
|
\r
|
|
`,"latin1"):(Te(s===null,"no body must not have content length"),i.write(`${a}\r
|
|
`,"latin1")),n.onRequestSent(),r[Su]()}catch(l){t(l)}}o(fre,"writeBuffer");async function kVe(t,e,r,n,i,s,a,c){Te(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new kh;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length: ${s}\r
|
|
\r
|
|
`,"latin1"),i.write(l),i.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(i[ys]=!0),r[Su]()}catch(l){t(l)}}o(kVe,"writeBlob");async function hre(t,e,r,n,i,s,a,c){Te(s!==0||r[An]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let h=l;l=null,h()}}o(u,"onDrain");let d=o(()=>new Promise((h,p)=>{Te(l===null),i[Gi]?p(i[Gi]):l=h}),"waitForDrain");i.on("close",u).on("drain",u);let f=new ov({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let h of e){if(i[Gi])throw i[Gi];f.write(h)||await d()}f.end()}catch(h){f.destroy(h)}finally{i.off("close",u).off("drain",u)}}o(hre,"writeIterable");var ov=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:i,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=i,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Fd]=!0}write(e){let{socket:r,request:n,contentLength:i,client:s,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Gi])throw r[Gi];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(s[PF])throw new kh;process.emitWarning(new kh)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[ys]=!0),i===null?r.write(`${l}transfer-encoding: chunked\r
|
|
`,"latin1"):r.write(`${l}content-length: ${i}\r
|
|
\r
|
|
`,"latin1")),i===null&&r.write(`\r
|
|
${u.toString(16)}\r
|
|
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[rr].timeout&&r[rr].timeoutType===Dm&&r[rr].timeout.refresh&&r[rr].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:i,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[Fd]=!1,e[Gi])throw e[Gi];if(!e.destroyed){if(i===0?s?e.write(`${a}content-length: 0\r
|
|
\r
|
|
`,"latin1"):e.write(`${a}\r
|
|
`,"latin1"):r===null&&e.write(`\r
|
|
0\r
|
|
\r
|
|
`,"latin1"),r!==null&&i!==r){if(n[PF])throw new kh;process.emitWarning(new kh)}e[rr].timeout&&e[rr].timeoutType===Dm&&e[rr].timeout.refresh&&e[rr].timeout.refresh(),n[Su]()}}destroy(e){let{socket:r,client:n,abort:i}=this;r[Fd]=!1,e&&(Te(n[An]<=1,"pipeline should only contain this request"),i(e))}};Ere.exports=_Ve});var Nre=m((t$t,vre)=>{"use strict";var Lo=require("node:assert"),{pipeline:OVe}=require("node:stream"),At=ot(),{RequestContentLengthMismatchError:MF,RequestAbortedError:bre,SocketError:Eb,InformationalError:UF}=Tt(),{kUrl:av,kReset:lv,kClient:Qm,kRunning:uv,kPending:LVe,kQueue:Md,kPendingIdx:qF,kRunningIdx:Ua,kError:Ga,kSocket:Gn,kStrictContentLength:FVe,kOnError:GF,kMaxConcurrentStreams:xre,kHTTP2Session:qa,kResume:Ud,kSize:MVe,kHTTPContext:UVe}=Ar(),Bu=Symbol("open streams"),wre,Ire=!1,cv;try{cv=require("node:http2")}catch{cv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:qVe,HTTP2_HEADER_METHOD:GVe,HTTP2_HEADER_PATH:HVe,HTTP2_HEADER_SCHEME:VVe,HTTP2_HEADER_CONTENT_LENGTH:zVe,HTTP2_HEADER_EXPECT:$Ve,HTTP2_HEADER_STATUS:jVe}}=cv;function WVe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let i of n)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(n));return e}o(WVe,"parseH2Headers");async function JVe(t,e){t[Gn]=e,Ire||(Ire=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=cv.connect(t[av],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[xre]});r[Bu]=0,r[Qm]=t,r[Gn]=e,At.addListener(r,"error",KVe),At.addListener(r,"frameError",XVe),At.addListener(r,"end",ZVe),At.addListener(r,"goaway",e4e),At.addListener(r,"close",function(){let{[Qm]:i}=this,{[Gn]:s}=i,a=this[Gn][Ga]||this[Ga]||new Eb("closed",At.getSocketInfo(s));if(i[qa]=null,i.destroyed){Lo(i[LVe]===0);let c=i[Md].splice(i[Ua]);for(let l=0;l<c.length;l++){let u=c[l];At.errorRequest(i,u,a)}}}),r.unref(),t[qa]=r,e[qa]=r,At.addListener(e,"error",function(i){Lo(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ga]=i,this[Qm][GF](i)}),At.addListener(e,"end",function(){At.destroy(this,new Eb("other side closed",At.getSocketInfo(this)))}),At.addListener(e,"close",function(){let i=this[Ga]||new Eb("closed",At.getSocketInfo(this));t[Gn]=null,this[qa]!=null&&this[qa].destroy(i),t[qF]=t[Ua],Lo(t[uv]===0),t.emit("disconnect",t[av],[t],i),t[Ud]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return r4e(t,...i)},resume(){YVe(t)},destroy(i,s){n?queueMicrotask(s):e.destroy(i).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(JVe,"connectH2");function YVe(t){let e=t[Gn];e?.destroyed===!1&&(t[MVe]===0&&t[xre]===0?(e.unref(),t[qa].unref()):(e.ref(),t[qa].ref()))}o(YVe,"resumeH2");function KVe(t){Lo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Gn][Ga]=t,this[Qm][GF](t)}o(KVe,"onHttp2SessionError");function XVe(t,e,r){if(r===0){let n=new UF(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Gn][Ga]=n,this[Qm][GF](n)}}o(XVe,"onHttp2FrameError");function ZVe(){let t=new Eb("other side closed",At.getSocketInfo(this[Gn]));this.destroy(t),At.destroy(this[Gn],t)}o(ZVe,"onHttp2SessionEnd");function e4e(t){let e=this[Ga]||new Eb(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this)),r=this[Qm];if(r[Gn]=null,r[UVe]=null,this[qa]!=null&&(this[qa].destroy(e),this[qa]=null),At.destroy(this[Gn],e),r[Ua]<r[Md].length){let n=r[Md][r[Ua]];r[Md][r[Ua]++]=null,At.errorRequest(r,n,e),r[qF]=r[Ua]}Lo(r[uv]===0),r.emit("disconnect",r[av],[r],e),r[Ud]()}o(e4e,"onHTTP2GoAway");function t4e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(t4e,"shouldSendContentLength");function r4e(t,e){let r=t[qa],{method:n,path:i,host:s,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return At.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let B=0;B<u.length;B+=2){let Q=u[B+0],U=u[B+1];if(Array.isArray(U))for(let v=0;v<U.length;v++)f[Q]?f[Q]+=`,${U[v]}`:f[Q]=U[v];else f[Q]=U}let h,{hostname:p,port:g}=t[av];f[qVe]=s||`${p}${g?`:${g}`:""}`,f[GVe]=n;let A=o(B=>{e.aborted||e.completed||(B=B||new bre,At.errorRequest(t,e,B),h!=null&&At.destroy(h,B),At.destroy(d,B),t[Md][t[Ua]++]=null,t[Ud]())},"abort");try{e.onConnect(A)}catch(B){At.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:l}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[Bu],t[Md][t[Ua]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[Bu],t[Md][t[Ua]++]=null}),h.once("close",()=>{r[Bu]-=1,r[Bu]===0&&r.unref()}),!0;f[HVe]=i,f[VVe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let y=At.bodyLength(d);if(At.isFormDataLike(d)){wre??=_m().extractBody;let[B,Q]=wre(d);f["content-type"]=Q,d=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),t4e(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[FVe])return At.errorRequest(t,e,new MF),!1;process.emitWarning(new MF)}y!=null&&(Lo(d,"no body must not have content length"),f[zVe]=`${y}`),r.ref();let C=n==="GET"||n==="HEAD"||d===null;return c?(f[$Ve]="100-continue",h=r.request(f,{endStream:C,signal:l}),h.once("continue",w)):(h=r.request(f,{endStream:C,signal:l}),w()),++r[Bu],h.once("response",B=>{let{[jVe]:Q,...U}=B;if(e.onResponseStarted(),e.aborted){let v=new bre;At.errorRequest(t,e,v),At.destroy(h,v);return}e.onHeaders(Number(Q),WVe(U),h.resume.bind(h),"")===!1&&h.pause(),h.on("data",v=>{e.onData(v)===!1&&h.pause()})}),h.once("end",()=>{(h.state?.state==null||h.state.state<6)&&e.onComplete([]),r[Bu]===0&&r.unref(),A(new UF("HTTP/2: stream half-closed (remote)")),t[Md][t[Ua]++]=null,t[qF]=t[Ua],t[Ud]()}),h.once("close",()=>{r[Bu]-=1,r[Bu]===0&&r.unref()}),h.once("error",function(B){A(B)}),h.once("frameError",(B,Q)=>{A(new UF(`HTTP/2: "frameError" received - type ${B}, code ${Q}`))}),!0;function w(){!d||y===0?Sre(A,h,null,t,e,t[Gn],y,E):At.isBuffer(d)?Sre(A,h,d,t,e,t[Gn],y,E):At.isBlobLike(d)?typeof d.stream=="function"?Bre(A,h,d.stream(),t,e,t[Gn],y,E):i4e(A,h,d,t,e,t[Gn],y,E):At.isStream(d)?n4e(A,t[Gn],E,h,d,t,e,y):At.isIterable(d)?Bre(A,h,d,t,e,t[Gn],y,E):Lo(!1)}o(w,"writeBodyH2")}o(r4e,"writeH2");function Sre(t,e,r,n,i,s,a,c){try{r!=null&&At.isBuffer(r)&&(Lo(a===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),i.onBodySent(r)),c||(s[lv]=!0),i.onRequestSent(),n[Ud]()}catch(l){t(l)}}o(Sre,"writeBuffer");function n4e(t,e,r,n,i,s,a,c){Lo(c!==0||s[uv]===0,"stream body cannot be pipelined");let l=OVe(i,n,d=>{d?(At.destroy(l,d),t(d)):(At.removeAllListeners(l),a.onRequestSent(),r||(e[lv]=!0),s[Ud]())});At.addListener(l,"data",u);function u(d){a.onBodySent(d)}o(u,"onPipeData")}o(n4e,"writeStream");async function i4e(t,e,r,n,i,s,a,c){Lo(a===r.size,"blob body must have content length");try{if(a!=null&&a!==r.size)throw new MF;let l=Buffer.from(await r.arrayBuffer());e.cork(),e.write(l),e.uncork(),e.end(),i.onBodySent(l),i.onRequestSent(),c||(s[lv]=!0),n[Ud]()}catch(l){t(l)}}o(i4e,"writeBlob");async function Bre(t,e,r,n,i,s,a,c){Lo(a!==0||n[uv]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}o(u,"onDrain");let d=o(()=>new Promise((f,h)=>{Lo(l===null),s[Ga]?h(s[Ga]):l=f}),"waitForDrain");e.on("close",u).on("drain",u);try{for await(let f of r){if(s[Ga])throw s[Ga];let h=e.write(f);i.onBodySent(f),h||await d()}e.end(),i.onRequestSent(),c||(s[lv]=!0),n[Ud]()}catch(f){t(f)}finally{e.off("close",u).off("drain",u)}}o(Bre,"writeIterable");vre.exports=JVe});var fv=m((n$t,Rre)=>{"use strict";var Qc=ot(),{kBodyUsed:Cb}=Ar(),VF=require("node:assert"),{InvalidArgumentError:s4e}=Tt(),o4e=require("node:events"),a4e=[300,301,302,303,307,308],_re=Symbol("body"),dv=class{static{o(this,"BodyAsyncIterable")}constructor(e){this[_re]=e,this[Cb]=!1}async*[Symbol.asyncIterator](){VF(!this[Cb],"disturbed"),this[Cb]=!0,yield*this[_re]}},HF=class{static{o(this,"RedirectHandler")}constructor(e,r,n,i){if(r!=null&&(!Number.isInteger(r)||r<0))throw new s4e("maxRedirections must be a positive number");Qc.validateHandler(i,n.method,n.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...n,maxRedirections:0},this.maxRedirections=r,this.handler=i,this.history=[],this.redirectionLimitReached=!1,Qc.isStream(this.opts.body)?(Qc.bodyLength(this.opts.body)===0&&this.opts.body.on("data",function(){VF(!1)}),typeof this.opts.body.readableDidRead!="boolean"&&(this.opts.body[Cb]=!1,o4e.prototype.on.call(this.opts.body,"data",function(){this[Cb]=!0}))):this.opts.body&&typeof this.opts.body.pipeTo=="function"?this.opts.body=new dv(this.opts.body):this.opts.body&&typeof this.opts.body!="string"&&!ArrayBuffer.isView(this.opts.body)&&Qc.isIterable(this.opts.body)&&(this.opts.body=new dv(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,r,n){this.handler.onUpgrade(e,r,n)}onError(e){this.handler.onError(e)}onHeaders(e,r,n,i){if(this.location=this.history.length>=this.maxRedirections||Qc.isDisturbed(this.opts.body)?null:c4e(e,r),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(new Error("max redirects")),this.redirectionLimitReached=!0,this.abort(new Error("max redirects"));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,r,n,i);let{origin:s,pathname:a,search:c}=Qc.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),l=c?`${a}${c}`:a;this.opts.headers=l4e(this.opts.headers,e===303,this.opts.origin!==s),this.opts.path=l,this.opts.origin=s,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!=="HEAD"&&(this.opts.method="GET",this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function c4e(t,e){if(a4e.indexOf(t)===-1)return null;for(let r=0;r<e.length;r+=2)if(e[r].length===8&&Qc.headerNameToString(e[r])==="location")return e[r+1]}o(c4e,"parseLocation");function Tre(t,e,r){if(t.length===4)return Qc.headerNameToString(t)==="host";if(e&&Qc.headerNameToString(t).startsWith("content-"))return!0;if(r&&(t.length===13||t.length===6||t.length===19)){let n=Qc.headerNameToString(t);return n==="authorization"||n==="cookie"||n==="proxy-authorization"}return!1}o(Tre,"shouldRemoveHeader");function l4e(t,e,r){let n=[];if(Array.isArray(t))for(let i=0;i<t.length;i+=2)Tre(t[i],e,r)||n.push(t[i],t[i+1]);else if(t&&typeof t=="object")for(let i of Object.keys(t))Tre(i,e,r)||n.push(i,t[i]);else VF(t==null,"headers must be an object or an array");return n}o(l4e,"cleanRequestHeaders");Rre.exports=HF});var hv=m((s$t,Dre)=>{"use strict";var u4e=fv();function d4e({maxRedirections:t}){return e=>o(function(n,i){let{maxRedirections:s=t}=n;if(!s)return e(n,i);let a=new u4e(e,s,n,i);return n={...n,maxRedirections:0},e(n,a)},"Intercept")}o(d4e,"createRedirectInterceptor");Dre.exports=d4e});var Om=m((a$t,Gre)=>{"use strict";var xu=require("node:assert"),Fre=require("node:net"),f4e=require("node:http"),Mh=ot(),{channels:Pm}=mm(),h4e=Gee(),p4e=Cm(),{InvalidArgumentError:Jr,InformationalError:A4e,ClientDestroyedError:m4e}=Tt(),g4e=ab(),{kUrl:Pc,kServerName:qd,kClient:y4e,kBusy:zF,kConnect:E4e,kResuming:Uh,kRunning:Bb,kPending:xb,kSize:Sb,kQueue:Ha,kConnected:C4e,kConnecting:km,kNeedDrain:Hd,kKeepAliveDefaultTimeout:Qre,kHostHeader:b4e,kPendingIdx:Va,kRunningIdx:vu,kError:w4e,kPipelining:pv,kKeepAliveTimeoutValue:I4e,kMaxHeadersSize:S4e,kKeepAliveMaxTimeout:B4e,kKeepAliveTimeoutThreshold:x4e,kHeadersTimeout:v4e,kBodyTimeout:N4e,kStrictContentLength:_4e,kConnector:bb,kMaxRedirections:T4e,kMaxRequests:$F,kCounter:R4e,kClose:D4e,kDestroy:Q4e,kDispatch:P4e,kInterceptors:Pre,kLocalAddress:wb,kMaxResponseSize:k4e,kOnError:O4e,kHTTPContext:Yr,kMaxConcurrentStreams:L4e,kResume:Ib}=Ar(),F4e=Cre(),M4e=Nre(),kre=!1,Gd=Symbol("kClosedResolve"),Ore=o(()=>{},"noop");function Mre(t){return t[pv]??t[Yr]?.defaultPipelining??1}o(Mre,"getPipelining");var jF=class extends p4e{static{o(this,"Client")}constructor(e,{interceptors:r,maxHeaderSize:n,headersTimeout:i,socketTimeout:s,requestTimeout:a,connectTimeout:c,bodyTimeout:l,idleTimeout:u,keepAlive:d,keepAliveTimeout:f,maxKeepAliveTimeout:h,keepAliveMaxTimeout:p,keepAliveTimeoutThreshold:g,socketPath:A,pipelining:E,tls:y,strictContentLength:C,maxCachedSessions:w,maxRedirections:B,connect:Q,maxRequestsPerClient:U,localAddress:v,maxResponseSize:j,autoSelectFamily:D,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:V,allowH2:J,webSocket:oe}={}){if(super({webSocket:oe}),d!==void 0)throw new Jr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Jr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new Jr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(u!==void 0)throw new Jr("unsupported idleTimeout, use keepAliveTimeout instead");if(h!==void 0)throw new Jr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(n!=null&&!Number.isFinite(n))throw new Jr("invalid maxHeaderSize");if(A!=null&&typeof A!="string")throw new Jr("invalid socketPath");if(c!=null&&(!Number.isFinite(c)||c<0))throw new Jr("invalid connectTimeout");if(f!=null&&(!Number.isFinite(f)||f<=0))throw new Jr("invalid keepAliveTimeout");if(p!=null&&(!Number.isFinite(p)||p<=0))throw new Jr("invalid keepAliveMaxTimeout");if(g!=null&&!Number.isFinite(g))throw new Jr("invalid keepAliveTimeoutThreshold");if(i!=null&&(!Number.isInteger(i)||i<0))throw new Jr("headersTimeout must be a positive integer or zero");if(l!=null&&(!Number.isInteger(l)||l<0))throw new Jr("bodyTimeout must be a positive integer or zero");if(Q!=null&&typeof Q!="function"&&typeof Q!="object")throw new Jr("connect must be a function or an object");if(B!=null&&(!Number.isInteger(B)||B<0))throw new Jr("maxRedirections must be a positive number");if(U!=null&&(!Number.isInteger(U)||U<0))throw new Jr("maxRequestsPerClient must be a positive number");if(v!=null&&(typeof v!="string"||Fre.isIP(v)===0))throw new Jr("localAddress must be valid string IP address");if(j!=null&&(!Number.isInteger(j)||j<-1))throw new Jr("maxResponseSize must be a positive number");if(H!=null&&(!Number.isInteger(H)||H<-1))throw new Jr("autoSelectFamilyAttemptTimeout must be a positive number");if(J!=null&&typeof J!="boolean")throw new Jr("allowH2 must be a valid boolean value");if(V!=null&&(typeof V!="number"||V<1))throw new Jr("maxConcurrentStreams must be a positive integer, greater than 0");typeof Q!="function"&&(Q=g4e({...y,maxCachedSessions:w,allowH2:J,socketPath:A,timeout:c,...D?{autoSelectFamily:D,autoSelectFamilyAttemptTimeout:H}:void 0,...Q})),r?.Client&&Array.isArray(r.Client)?(this[Pre]=r.Client,kre||(kre=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"}))):this[Pre]=[U4e({maxRedirections:B})],this[Pc]=Mh.parseOrigin(e),this[bb]=Q,this[pv]=E??1,this[S4e]=n||f4e.maxHeaderSize,this[Qre]=f??4e3,this[B4e]=p??6e5,this[x4e]=g??2e3,this[I4e]=this[Qre],this[qd]=null,this[wb]=v??null,this[Uh]=0,this[Hd]=0,this[b4e]=`host: ${this[Pc].hostname}${this[Pc].port?`:${this[Pc].port}`:""}\r
|
|
`,this[N4e]=l??3e5,this[v4e]=i??3e5,this[_4e]=C??!0,this[T4e]=B,this[$F]=U,this[Gd]=null,this[k4e]=j>-1?j:-1,this[L4e]=V??100,this[Yr]=null,this[Ha]=[],this[vu]=0,this[Va]=0,this[Ib]=ae=>WF(this,ae),this[O4e]=ae=>Ure(this,ae)}get pipelining(){return this[pv]}set pipelining(e){this[pv]=e,this[Ib](!0)}get[xb](){return this[Ha].length-this[Va]}get[Bb](){return this[Va]-this[vu]}get[Sb](){return this[Ha].length-this[vu]}get[C4e](){return!!this[Yr]&&!this[km]&&!this[Yr].destroyed}get[zF](){return!!(this[Yr]?.busy(null)||this[Sb]>=(Mre(this)||1)||this[xb]>0)}[E4e](e){qre(this),this.once("connect",e)}[P4e](e,r){let n=e.origin||this[Pc].origin,i=new h4e(n,e,r);return this[Ha].push(i),this[Uh]||(Mh.bodyLength(i.body)==null&&Mh.isIterable(i.body)?(this[Uh]=1,queueMicrotask(()=>WF(this))):this[Ib](!0)),this[Uh]&&this[Hd]!==2&&this[zF]&&(this[Hd]=2),this[Hd]<2}async[D4e](){return new Promise(e=>{this[Sb]?this[Gd]=e:e(null)})}async[Q4e](e){return new Promise(r=>{let n=this[Ha].splice(this[Va]);for(let s=0;s<n.length;s++){let a=n[s];Mh.errorRequest(this,a,e)}let i=o(()=>{this[Gd]&&(this[Gd](),this[Gd]=null),r(null)},"callback");this[Yr]?(this[Yr].destroy(e,i),this[Yr]=null):queueMicrotask(i),this[Ib]()})}},U4e=hv();function Ure(t,e){if(t[Bb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){xu(t[Va]===t[vu]);let r=t[Ha].splice(t[vu]);for(let n=0;n<r.length;n++){let i=r[n];Mh.errorRequest(t,i,e)}xu(t[Sb]===0)}}o(Ure,"onError");async function qre(t){xu(!t[km]),xu(!t[Yr]);let{host:e,hostname:r,protocol:n,port:i}=t[Pc];if(r[0]==="["){let s=r.indexOf("]");xu(s!==-1);let a=r.substring(1,s);xu(Fre.isIP(a)),r=a}t[km]=!0,Pm.beforeConnect.hasSubscribers&&Pm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Yr]?.version,servername:t[qd],localAddress:t[wb]},connector:t[bb]});try{let s=await new Promise((a,c)=>{t[bb]({host:e,hostname:r,protocol:n,port:i,servername:t[qd],localAddress:t[wb]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Mh.destroy(s.on("error",Ore),new m4e);return}xu(s);try{t[Yr]=s.alpnProtocol==="h2"?await M4e(t,s):await F4e(t,s)}catch(a){throw s.destroy().on("error",Ore),a}t[km]=!1,s[R4e]=0,s[$F]=t[$F],s[y4e]=t,s[w4e]=null,Pm.connected.hasSubscribers&&Pm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Yr]?.version,servername:t[qd],localAddress:t[wb]},connector:t[bb],socket:s}),t.emit("connect",t[Pc],[t])}catch(s){if(t.destroyed)return;if(t[km]=!1,Pm.connectError.hasSubscribers&&Pm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Yr]?.version,servername:t[qd],localAddress:t[wb]},connector:t[bb],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(xu(t[Bb]===0);t[xb]>0&&t[Ha][t[Va]].servername===t[qd];){let a=t[Ha][t[Va]++];Mh.errorRequest(t,a,s)}else Ure(t,s);t.emit("connectionError",t[Pc],[t],s)}t[Ib]()}o(qre,"connect");function Lre(t){t[Hd]=0,t.emit("drain",t[Pc],[t])}o(Lre,"emitDrain");function WF(t,e){t[Uh]!==2&&(t[Uh]=2,q4e(t,e),t[Uh]=0,t[vu]>256&&(t[Ha].splice(0,t[vu]),t[Va]-=t[vu],t[vu]=0))}o(WF,"resume");function q4e(t,e){for(;;){if(t.destroyed){xu(t[xb]===0);return}if(t[Gd]&&!t[Sb]){t[Gd](),t[Gd]=null;return}if(t[Yr]&&t[Yr].resume(),t[zF])t[Hd]=2;else if(t[Hd]===2){e?(t[Hd]=1,queueMicrotask(()=>Lre(t))):Lre(t);continue}if(t[xb]===0||t[Bb]>=(Mre(t)||1))return;let r=t[Ha][t[Va]];if(t[Pc].protocol==="https:"&&t[qd]!==r.servername){if(t[Bb]>0)return;t[qd]=r.servername,t[Yr]?.destroy(new A4e("servername changed"),()=>{t[Yr]=null,WF(t)})}if(t[km])return;if(!t[Yr]){qre(t);return}if(t[Yr].destroyed||t[Yr].busy(r))return;!r.aborted&&t[Yr].write(r)?t[Va]++:t[Ha].splice(t[Va],1)}}o(q4e,"_resume");Gre.exports=jF});var JF=m((u$t,Hre)=>{"use strict";var Av=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Hre.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Av}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Av),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var zre=m((f$t,Vre)=>{var{kFree:G4e,kConnected:H4e,kPending:V4e,kQueued:z4e,kRunning:$4e,kSize:j4e}=Ar(),qh=Symbol("pool"),YF=class{static{o(this,"PoolStats")}constructor(e){this[qh]=e}get connected(){return this[qh][H4e]}get free(){return this[qh][G4e]}get pending(){return this[qh][V4e]}get queued(){return this[qh][z4e]}get running(){return this[qh][$4e]}get size(){return this[qh][j4e]}};Vre.exports=YF});var rM=m((p$t,tne)=>{"use strict";var W4e=Cm(),J4e=JF(),{kConnected:KF,kSize:$re,kRunning:jre,kPending:Wre,kQueued:vb,kBusy:Y4e,kFree:K4e,kUrl:X4e,kClose:Z4e,kDestroy:e5e,kDispatch:t5e}=Ar(),r5e=zre(),Es=Symbol("clients"),Hi=Symbol("needDrain"),Nb=Symbol("queue"),XF=Symbol("closed resolve"),ZF=Symbol("onDrain"),Jre=Symbol("onConnect"),Yre=Symbol("onDisconnect"),Kre=Symbol("onConnectionError"),eM=Symbol("get dispatcher"),Zre=Symbol("add client"),ene=Symbol("remove client"),Xre=Symbol("stats"),tM=class extends W4e{static{o(this,"PoolBase")}constructor(e){super(e),this[Nb]=new J4e,this[Es]=[],this[vb]=0;let r=this;this[ZF]=o(function(i,s){let a=r[Nb],c=!1;for(;!c;){let l=a.shift();if(!l)break;r[vb]--,c=!this.dispatch(l.opts,l.handler)}this[Hi]=c,!this[Hi]&&r[Hi]&&(r[Hi]=!1,r.emit("drain",i,[r,...s])),r[XF]&&a.isEmpty()&&Promise.all(r[Es].map(l=>l.close())).then(r[XF])},"onDrain"),this[Jre]=(n,i)=>{r.emit("connect",n,[r,...i])},this[Yre]=(n,i,s)=>{r.emit("disconnect",n,[r,...i],s)},this[Kre]=(n,i,s)=>{r.emit("connectionError",n,[r,...i],s)},this[Xre]=new r5e(this)}get[Y4e](){return this[Hi]}get[KF](){return this[Es].filter(e=>e[KF]).length}get[K4e](){return this[Es].filter(e=>e[KF]&&!e[Hi]).length}get[Wre](){let e=this[vb];for(let{[Wre]:r}of this[Es])e+=r;return e}get[jre](){let e=0;for(let{[jre]:r}of this[Es])e+=r;return e}get[$re](){let e=this[vb];for(let{[$re]:r}of this[Es])e+=r;return e}get stats(){return this[Xre]}async[Z4e](){this[Nb].isEmpty()?await Promise.all(this[Es].map(e=>e.close())):await new Promise(e=>{this[XF]=e})}async[e5e](e){for(;;){let r=this[Nb].shift();if(!r)break;r.handler.onError(e)}await Promise.all(this[Es].map(r=>r.destroy(e)))}[t5e](e,r){let n=this[eM]();return n?n.dispatch(e,r)||(n[Hi]=!0,this[Hi]=!this[eM]()):(this[Hi]=!0,this[Nb].push({opts:e,handler:r}),this[vb]++),!this[Hi]}[Zre](e){return e.on("drain",this[ZF]).on("connect",this[Jre]).on("disconnect",this[Yre]).on("connectionError",this[Kre]),this[Es].push(e),this[Hi]&&queueMicrotask(()=>{this[Hi]&&this[ZF](e[X4e],[this,e])}),this}[ene](e){e.close(()=>{let r=this[Es].indexOf(e);r!==-1&&this[Es].splice(r,1)}),this[Hi]=this[Es].some(r=>!r[Hi]&&r.closed!==!0&&r.destroyed!==!0)}};tne.exports={PoolBase:tM,kClients:Es,kNeedDrain:Hi,kAddClient:Zre,kRemoveClient:ene,kGetDispatcher:eM}});var Lm=m((m$t,sne)=>{"use strict";var{PoolBase:n5e,kClients:mv,kNeedDrain:i5e,kAddClient:s5e,kGetDispatcher:o5e}=rM(),a5e=Om(),{InvalidArgumentError:nM}=Tt(),rne=ot(),{kUrl:nne,kInterceptors:c5e}=Ar(),l5e=ab(),iM=Symbol("options"),sM=Symbol("connections"),ine=Symbol("factory");function u5e(t,e){return new a5e(t,e)}o(u5e,"defaultFactory");var oM=class extends n5e{static{o(this,"Pool")}constructor(e,{connections:r,factory:n=u5e,connect:i,connectTimeout:s,tls:a,maxCachedSessions:c,socketPath:l,autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d,allowH2:f,...h}={}){if(r!=null&&(!Number.isFinite(r)||r<0))throw new nM("invalid connections");if(typeof n!="function")throw new nM("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new nM("connect must be a function or an object");typeof i!="function"&&(i=l5e({...a,maxCachedSessions:c,allowH2:f,socketPath:l,timeout:s,...u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),super(h),this[c5e]=h.interceptors?.Pool&&Array.isArray(h.interceptors.Pool)?h.interceptors.Pool:[],this[sM]=r||null,this[nne]=rne.parseOrigin(e),this[iM]={...rne.deepClone(h),connect:i,allowH2:f},this[iM].interceptors=h.interceptors?{...h.interceptors}:void 0,this[ine]=n,this.on("connectionError",(p,g,A)=>{for(let E of g){let y=this[mv].indexOf(E);y!==-1&&this[mv].splice(y,1)}})}[o5e](){for(let e of this[mv])if(!e[i5e])return e;if(!this[sM]||this[mv].length<this[sM]){let e=this[ine](this[nne],this[iM]);return this[s5e](e),e}}};sne.exports=oM});var une=m((y$t,lne)=>{"use strict";var{BalancedPoolMissingUpstreamError:d5e,InvalidArgumentError:f5e}=Tt(),{PoolBase:h5e,kClients:Ii,kNeedDrain:_b,kAddClient:p5e,kRemoveClient:A5e,kGetDispatcher:m5e}=rM(),g5e=Lm(),{kUrl:aM,kInterceptors:y5e}=Ar(),{parseOrigin:one}=ot(),ane=Symbol("factory"),gv=Symbol("options"),cne=Symbol("kGreatestCommonDivisor"),Gh=Symbol("kCurrentWeight"),Hh=Symbol("kIndex"),Fo=Symbol("kWeight"),yv=Symbol("kMaxWeightPerServer"),Ev=Symbol("kErrorPenalty");function E5e(t,e){if(t===0)return e;for(;e!==0;){let r=e;e=t%e,t=r}return t}o(E5e,"getGreatestCommonDivisor");function C5e(t,e){return new g5e(t,e)}o(C5e,"defaultFactory");var cM=class extends h5e{static{o(this,"BalancedPool")}constructor(e=[],{factory:r=C5e,...n}={}){if(super(),this[gv]=n,this[Hh]=-1,this[Gh]=0,this[yv]=this[gv].maxWeightPerServer||100,this[Ev]=this[gv].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof r!="function")throw new f5e("factory must be a function.");this[y5e]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[ane]=r;for(let i of e)this.addUpstream(i);this._updateBalancedPoolStats()}addUpstream(e){let r=one(e).origin;if(this[Ii].find(i=>i[aM].origin===r&&i.closed!==!0&&i.destroyed!==!0))return this;let n=this[ane](r,Object.assign({},this[gv]));this[p5e](n),n.on("connect",()=>{n[Fo]=Math.min(this[yv],n[Fo]+this[Ev])}),n.on("connectionError",()=>{n[Fo]=Math.max(1,n[Fo]-this[Ev]),this._updateBalancedPoolStats()}),n.on("disconnect",(...i)=>{let s=i[2];s&&s.code==="UND_ERR_SOCKET"&&(n[Fo]=Math.max(1,n[Fo]-this[Ev]),this._updateBalancedPoolStats())});for(let i of this[Ii])i[Fo]=this[yv];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let r=0;r<this[Ii].length;r++)e=E5e(this[Ii][r][Fo],e);this[cne]=e}removeUpstream(e){let r=one(e).origin,n=this[Ii].find(i=>i[aM].origin===r&&i.closed!==!0&&i.destroyed!==!0);return n&&this[A5e](n),this}get upstreams(){return this[Ii].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[aM].origin)}[m5e](){if(this[Ii].length===0)throw new d5e;if(!this[Ii].find(s=>!s[_b]&&s.closed!==!0&&s.destroyed!==!0)||this[Ii].map(s=>s[_b]).reduce((s,a)=>s&&a,!0))return;let n=0,i=this[Ii].findIndex(s=>!s[_b]);for(;n++<this[Ii].length;){this[Hh]=(this[Hh]+1)%this[Ii].length;let s=this[Ii][this[Hh]];if(s[Fo]>this[Ii][i][Fo]&&!s[_b]&&(i=this[Hh]),this[Hh]===0&&(this[Gh]=this[Gh]-this[cne],this[Gh]<=0&&(this[Gh]=this[yv])),s[Fo]>=this[Gh]&&!s[_b])return s}return this[Gh]=this[Ii][i][Fo],this[Hh]=i,this[Ii][i]}};lne.exports=cM});var Fm=m((C$t,gne)=>{"use strict";var{InvalidArgumentError:Cv}=Tt(),{kClients:Vd,kRunning:dne,kClose:b5e,kDestroy:w5e,kDispatch:I5e,kInterceptors:S5e}=Ar(),B5e=Cm(),x5e=Lm(),v5e=Om(),N5e=ot(),_5e=hv(),fne=Symbol("onConnect"),hne=Symbol("onDisconnect"),pne=Symbol("onConnectionError"),T5e=Symbol("maxRedirections"),Ane=Symbol("onDrain"),mne=Symbol("factory"),lM=Symbol("options");function R5e(t,e){return e&&e.connections===1?new v5e(t,e):new x5e(t,e)}o(R5e,"defaultFactory");var uM=class extends B5e{static{o(this,"Agent")}constructor({factory:e=R5e,maxRedirections:r=0,connect:n,...i}={}){if(typeof e!="function")throw new Cv("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new Cv("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new Cv("maxRedirections must be a positive number");super(i),n&&typeof n!="function"&&(n={...n}),this[S5e]=i.interceptors?.Agent&&Array.isArray(i.interceptors.Agent)?i.interceptors.Agent:[_5e({maxRedirections:r})],this[lM]={...N5e.deepClone(i),connect:n},this[lM].interceptors=i.interceptors?{...i.interceptors}:void 0,this[T5e]=r,this[mne]=e,this[Vd]=new Map,this[Ane]=(s,a)=>{this.emit("drain",s,[this,...a])},this[fne]=(s,a)=>{this.emit("connect",s,[this,...a])},this[hne]=(s,a,c)=>{this.emit("disconnect",s,[this,...a],c)},this[pne]=(s,a,c)=>{this.emit("connectionError",s,[this,...a],c)}}get[dne](){let e=0;for(let r of this[Vd].values())e+=r[dne];return e}[I5e](e,r){let n;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))n=String(e.origin);else throw new Cv("opts.origin must be a non-empty string or URL.");let i=this[Vd].get(n);return i||(i=this[mne](e.origin,this[lM]).on("drain",this[Ane]).on("connect",this[fne]).on("disconnect",this[hne]).on("connectionError",this[pne]),this[Vd].set(n,i)),i.dispatch(e,r)}async[b5e](){let e=[];for(let r of this[Vd].values())e.push(r.close());this[Vd].clear(),await Promise.all(e)}async[w5e](e){let r=[];for(let n of this[Vd].values())r.push(n.destroy(e));this[Vd].clear(),await Promise.all(r)}};gne.exports=uM});var AM=m((w$t,Nne)=>{"use strict";var{kProxy:dM,kClose:Ine,kDestroy:Sne,kDispatch:yne,kInterceptors:D5e}=Ar(),{URL:Vh}=require("node:url"),Q5e=Fm(),Bne=Lm(),xne=Cm(),{InvalidArgumentError:Mm,RequestAbortedError:P5e,SecureProxyConnectionError:k5e}=Tt(),Ene=ab(),vne=Om(),bv=Symbol("proxy agent"),wv=Symbol("proxy client"),zd=Symbol("proxy headers"),fM=Symbol("request tls settings"),Cne=Symbol("proxy tls settings"),bne=Symbol("connect endpoint function"),wne=Symbol("tunnel proxy");function O5e(t){return t==="https:"?443:80}o(O5e,"defaultProtocolPort");function L5e(t,e){return new Bne(t,e)}o(L5e,"defaultFactory");var F5e=o(()=>{},"noop");function M5e(t,e){return e.connections===1?new vne(t,e):new Bne(t,e)}o(M5e,"defaultAgentFactory");var hM=class extends xne{static{o(this,"Http1ProxyWrapper")}#e;constructor(e,{headers:r={},connect:n,factory:i}){if(super(),!e)throw new Mm("Proxy URL is mandatory");this[zd]=r,i?this.#e=i(e,{connect:n}):this.#e=new vne(e,{connect:n})}[yne](e,r){let n=r.onHeaders;r.onHeaders=function(c,l,u){if(c===407){typeof r.onError=="function"&&r.onError(new Mm("Proxy Authentication Required (407)"));return}n&&n.call(this,c,l,u)};let{origin:i,path:s="/",headers:a={}}=e;if(e.path=i+s,!("host"in a)&&!("Host"in a)){let{host:c}=new Vh(i);a.host=c}return e.headers={...this[zd],...a},this.#e[yne](e,r)}async[Ine](){return this.#e.close()}async[Sne](e){return this.#e.destroy(e)}},pM=class extends xne{static{o(this,"ProxyAgent")}constructor(e){if(super(),!e||typeof e=="object"&&!(e instanceof Vh)&&!e.uri)throw new Mm("Proxy uri is mandatory");let{clientFactory:r=L5e}=e;if(typeof r!="function")throw new Mm("Proxy opts.clientFactory must be a function.");let{proxyTunnel:n=!0}=e,i=this.#e(e),{href:s,origin:a,port:c,protocol:l,username:u,password:d,hostname:f}=i;if(this[dM]={uri:s,protocol:l},this[D5e]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[fM]=e.requestTls,this[Cne]=e.proxyTls,this[zd]=e.headers||{},this[wne]=n,e.auth&&e.token)throw new Mm("opts.auth cannot be used in combination with opts.token");e.auth?this[zd]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[zd]["proxy-authorization"]=e.token:u&&d&&(this[zd]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(d)}`).toString("base64")}`);let h=Ene({...e.proxyTls});this[bne]=Ene({...e.requestTls});let p=e.factory||M5e,g=o((A,E)=>{let{protocol:y}=new Vh(A);return!this[wne]&&y==="http:"&&this[dM].protocol==="http:"?new hM(this[dM].uri,{headers:this[zd],connect:h,factory:p}):p(A,E)},"factory");this[wv]=r(i,{connect:h}),this[bv]=new Q5e({...e,factory:g,connect:o(async(A,E)=>{let y=A.host;A.port||(y+=`:${O5e(A.protocol)}`);try{let{socket:C,statusCode:w}=await this[wv].connect({origin:a,port:c,path:y,signal:A.signal,headers:{...this[zd],host:A.host},servername:this[Cne]?.servername||f});if(w!==200&&(C.on("error",F5e).destroy(),E(new P5e(`Proxy response (${w}) !== 200 when HTTP Tunneling`))),A.protocol!=="https:"){E(null,C);return}let B;this[fM]?B=this[fM].servername:B=A.servername,this[bne]({...A,servername:B,httpSocket:C},E)}catch(C){C.code==="ERR_TLS_CERT_ALTNAME_INVALID"?E(new k5e(C)):E(C)}},"connect")})}dispatch(e,r){let n=U5e(e.headers);if(q5e(n),n&&!("host"in n)&&!("Host"in n)){let{host:i}=new Vh(e.origin);n.host=i}return this[bv].dispatch({...e,headers:n},r)}#e(e){return typeof e=="string"?new Vh(e):e instanceof Vh?e:new Vh(e.uri)}async[Ine](){await this[bv].close(),await this[wv].close()}async[Sne](){await this[bv].destroy(),await this[wv].destroy()}};function U5e(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}o(U5e,"buildHeaders");function q5e(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new Mm("Proxy-Authorization should be sent in ProxyAgent constructor")}o(q5e,"throwIfProxyAuthIsSent");Nne.exports=pM});var Pne=m((S$t,Qne)=>{"use strict";var G5e=Cm(),{kClose:H5e,kDestroy:V5e,kClosed:_ne,kDestroyed:Tne,kDispatch:z5e,kNoProxyAgent:Tb,kHttpProxyAgent:$d,kHttpsProxyAgent:zh}=Ar(),Rne=AM(),$5e=Fm(),j5e={"http:":80,"https:":443},Dne=!1,mM=class extends G5e{static{o(this,"EnvHttpProxyAgent")}#e=null;#r=null;#n=null;constructor(e={}){super(),this.#n=e,Dne||(Dne=!0,process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"}));let{httpProxy:r,httpsProxy:n,noProxy:i,...s}=e;this[Tb]=new $5e(s);let a=r??process.env.http_proxy??process.env.HTTP_PROXY;a?this[$d]=new Rne({...s,uri:a}):this[$d]=this[Tb];let c=n??process.env.https_proxy??process.env.HTTPS_PROXY;c?this[zh]=new Rne({...s,uri:c}):this[zh]=this[$d],this.#s()}[z5e](e,r){let n=new URL(e.origin);return this.#t(n).dispatch(e,r)}async[H5e](){await this[Tb].close(),this[$d][_ne]||await this[$d].close(),this[zh][_ne]||await this[zh].close()}async[V5e](e){await this[Tb].destroy(e),this[$d][Tne]||await this[$d].destroy(e),this[zh][Tne]||await this[zh].destroy(e)}#t(e){let{protocol:r,host:n,port:i}=e;return n=n.replace(/:\d*$/,"").toLowerCase(),i=Number.parseInt(i,10)||j5e[r]||0,this.#i(n,i)?r==="https:"?this[zh]:this[$d]:this[Tb]}#i(e,r){if(this.#l&&this.#s(),this.#r.length===0)return!0;if(this.#e==="*")return!1;for(let n=0;n<this.#r.length;n++){let i=this.#r[n];if(!(i.port&&i.port!==r)){if(/^[.*]/.test(i.hostname)){if(e.endsWith(i.hostname.replace(/^\*/,"")))return!1}else if(e===i.hostname)return!1}}return!0}#s(){let e=this.#n.noProxy??this.#a,r=e.split(/[,\s]/),n=[];for(let i=0;i<r.length;i++){let s=r[i];if(!s)continue;let a=s.match(/^(.+):(\d+)$/);n.push({hostname:(a?a[1]:s).toLowerCase(),port:a?Number.parseInt(a[2],10):0})}this.#e=e,this.#r=n}get#l(){return this.#n.noProxy!==void 0?!1:this.#e!==this.#a}get#a(){return process.env.no_proxy??process.env.NO_PROXY??""}};Qne.exports=mM});var Iv=m((x$t,Mne)=>{"use strict";var Um=require("node:assert"),{kRetryHandlerDefaultRetry:kne}=Ar(),{RequestRetryError:qm}=Tt(),{isDisturbed:One,parseHeaders:W5e,parseRangeHeader:Lne,wrapRequestBody:J5e}=ot();function Y5e(t){let e=Date.now();return new Date(t).getTime()-e}o(Y5e,"calculateRetryAfterHeader");function Fne(t,e,r,n){let i=t["content-length"];if(i==null||!Number.isFinite(e.start)||!Number.isFinite(e.end))return null;let s=Number(i),a=e.end-e.start+1;return!Number.isFinite(s)||s!==a?new qm("Content-Length mismatch",r,{headers:t,data:{count:n}}):null}o(Fne,"validatePartialResponseContentLength");var gM=class t{static{o(this,"RetryHandler")}constructor(e,r){let{retryOptions:n,...i}=e,{retry:s,maxRetries:a,maxTimeout:c,minTimeout:l,timeoutFactor:u,methods:d,errorCodes:f,retryAfter:h,statusCodes:p}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts={...i,body:J5e(e.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:s??t[kne],retryAfter:h??!0,maxTimeout:c??30*1e3,minTimeout:l??500,timeoutFactor:u??2,maxRetries:a??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:f??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]},this.retryCount=0,this.retryCountCheckpoint=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.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[kne](e,{state:r,opts:n},i){let{statusCode:s,code:a,headers:c}=e,{method:l,retryOptions:u}=n,{maxRetries:d,minTimeout:f,maxTimeout:h,timeoutFactor:p,statusCodes:g,errorCodes:A,methods:E}=u,{counter:y}=r;if(a&&a!=="UND_ERR_REQ_RETRY"&&!A.includes(a)){i(e);return}if(Array.isArray(E)&&!E.includes(l)){i(e);return}if(s!=null&&Array.isArray(g)&&!g.includes(s)){i(e);return}if(y>d){i(e);return}let C=c?.["retry-after"];C&&(C=Number(C),C=Number.isNaN(C)?Y5e(C):C*1e3);let w=C>0?Math.min(C,h):Math.min(f*p**(y-1),h);setTimeout(()=>i(null),w)}onHeaders(e,r,n,i){let s=W5e(r);if(this.retryCount+=1,e>=300)return this.retryOpts.statusCodes.includes(e)===!1?this.handler.onHeaders(e,r,n,i):(this.abort(new qm("Request failed",e,{headers:s,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new qm("server does not support the range header and the payload was partially consumed",e,{headers:s,data:{count:this.retryCount}})),!1;let c=Lne(s["content-range"]);if(!c)return this.abort(new qm("Content-Range mismatch",e,{headers:s,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==s.etag)return this.abort(new qm("ETag mismatch",e,{headers:s,data:{count:this.retryCount}})),!1;let l=Fne(s,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:f=d-1}=c;return Um(this.start===u,"content-range mismatch"),Um(this.end==null||this.end===f,"content-range mismatch"),this.resume=n,!0}if(this.end==null){if(e===206){let c=Lne(s["content-range"]);if(c==null)return this.handler.onHeaders(e,r,n,i);let l=Fne(s,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:f=d-1}=c;Um(u!=null&&Number.isFinite(u),"content-range mismatch"),Um(f!=null&&Number.isFinite(f),"invalid content-length"),this.start=u,this.end=f}if(this.end==null){let c=s["content-length"];this.end=c!=null?Number(c)-1:null}return Um(Number.isFinite(this.start)),Um(this.end==null||Number.isFinite(this.end),"invalid content-length"),this.resume=n,this.etag=s.etag!=null?s.etag:null,this.etag!=null&&this.etag.startsWith("W/")&&(this.etag=null),this.handler.onHeaders(e,r,n,i)}let a=new qm("Request failed",e,{headers:s,data:{count:this.retryCount}});return this.abort(a),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||One(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||One(this.opts.body))return this.handler.onError(n);if(this.start!==0){let i={range:`bytes=${this.start}-${this.end??""}`};this.etag!=null&&(i["if-match"]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...i}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(i){this.handler.onError(i)}}o(r,"onRetry")}};Mne.exports=gM});var qne=m((N$t,Une)=>{"use strict";var K5e=sb(),X5e=Iv(),yM=class extends K5e{static{o(this,"RetryAgent")}#e=null;#r=null;constructor(e,r={}){super(r),this.#e=e,this.#r=r}dispatch(e,r){let n=new X5e({...e,retryOptions:this.#r},{dispatch:this.#e.dispatch.bind(this.#e),handler:r});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}};Une.exports=yM});var SM=m((T$t,Yne)=>{"use strict";var $ne=require("node:assert"),{Readable:Z5e}=require("node:stream"),{RequestAbortedError:jne,NotSupportedError:eze,InvalidArgumentError:tze,AbortError:EM}=Tt(),Wne=ot(),{ReadableStreamFrom:rze}=ot(),Ks=Symbol("kConsume"),Rb=Symbol("kReading"),jd=Symbol("kBody"),Gne=Symbol("kAbort"),Jne=Symbol("kContentType"),Hne=Symbol("kContentLength"),nze=o(()=>{},"noop"),CM=class extends Z5e{static{o(this,"BodyReadable")}constructor({resume:e,abort:r,contentType:n="",contentLength:i,highWaterMark:s=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:s}),this._readableState.dataEmitted=!1,this[Gne]=r,this[Ks]=null,this[jd]=null,this[Jne]=n,this[Hne]=i,this[Rb]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new jne),e&&this[Gne](),super.destroy(e)}_destroy(e,r){this[Rb]?r(e):setImmediate(()=>{r(e)})}on(e,...r){return(e==="data"||e==="readable")&&(this[Rb]=!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[Rb]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...r){return this.off(e,...r)}push(e){return this[Ks]&&e!==null?(wM(this[Ks],e),this[Rb]?super.push(e):!0):super.push(e)}async text(){return Db(this,"text")}async json(){return Db(this,"json")}async blob(){return Db(this,"blob")}async bytes(){return Db(this,"bytes")}async arrayBuffer(){return Db(this,"arrayBuffer")}async formData(){throw new eze}get bodyUsed(){return Wne.isDisturbed(this)}get body(){return this[jd]||(this[jd]=rze(this),this[Ks]&&(this[jd].getReader(),$ne(this[jd].locked))),this[jd]}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 tze("signal must be an AbortSignal");return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((i,s)=>{this[Hne]>r&&this.destroy(new EM);let a=o(()=>{this.destroy(n.reason??new EM)},"onAbort");n?.addEventListener("abort",a),this.on("close",function(){n?.removeEventListener("abort",a),n?.aborted?s(n.reason??new EM):i(null)}).on("error",nze).on("data",function(c){r-=c.length,r<=0&&this.destroy()}).resume()})}};function ize(t){return t[jd]&&t[jd].locked===!0||t[Ks]}o(ize,"isLocked");function sze(t){return Wne.isDisturbed(t)||ize(t)}o(sze,"isUnusable");async function Db(t,e){return $ne(!t[Ks]),new Promise((r,n)=>{if(sze(t)){let i=t._readableState;i.destroyed&&i.closeEmitted===!1?t.on("error",s=>{n(s)}).on("close",()=>{n(new TypeError("unusable"))}):n(i.errored??new TypeError("unusable"))}else queueMicrotask(()=>{t[Ks]={type:e,stream:t,resolve:r,reject:n,length:0,body:[]},t.on("error",function(i){IM(this[Ks],i)}).on("close",function(){this[Ks].body!==null&&IM(this[Ks],new jne)}),oze(t[Ks])})})}o(Db,"consume");function oze(t){if(t.body===null)return;let{_readableState:e}=t.stream;if(e.bufferIndex){let r=e.bufferIndex,n=e.buffer.length;for(let i=r;i<n;i++)wM(t,e.buffer[i])}else for(let r of e.buffer)wM(t,r);for(e.endEmitted?zne(this[Ks]):t.stream.on("end",function(){zne(this[Ks])}),t.stream.resume();t.stream.read()!=null;);}o(oze,"consumeStart");function bM(t,e){if(t.length===0||e===0)return"";let r=t.length===1?t[0]:Buffer.concat(t,e),n=r.length,i=n>2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(i,n)}o(bM,"chunksDecode");function Vne(t,e){if(t.length===0||e===0)return new Uint8Array(0);if(t.length===1)return new Uint8Array(t[0]);let r=new Uint8Array(Buffer.allocUnsafeSlow(e).buffer),n=0;for(let i=0;i<t.length;++i){let s=t[i];r.set(s,n),n+=s.length}return r}o(Vne,"chunksConcat");function zne(t){let{type:e,body:r,resolve:n,stream:i,length:s}=t;try{e==="text"?n(bM(r,s)):e==="json"?n(JSON.parse(bM(r,s))):e==="arrayBuffer"?n(Vne(r,s).buffer):e==="blob"?n(new Blob(r,{type:i[Jne]})):e==="bytes"&&n(Vne(r,s)),IM(t)}catch(a){i.destroy(a)}}o(zne,"consumeEnd");function wM(t,e){t.length+=e.length,t.body.push(e)}o(wM,"consumePush");function IM(t,e){t.body!==null&&(e?t.reject(e):t.resolve(),t.type=null,t.stream=null,t.resolve=null,t.reject=null,t.length=0,t.body=null)}o(IM,"consumeFinish");Yne.exports={Readable:CM,chunksDecode:bM}});var BM=m((D$t,tie)=>{var aze=require("node:assert"),{ResponseStatusCodeError:Kne}=Tt(),{chunksDecode:Xne}=SM(),cze=128*1024;async function lze({callback:t,body:e,contentType:r,statusCode:n,statusMessage:i,headers:s}){aze(e);let a=[],c=0;try{for await(let f of e)if(a.push(f),c+=f.length,c>cze){a=[],c=0;break}}catch{a=[],c=0}let l=`Response status code ${n}${i?`: ${i}`:""}`;if(n===204||!r||!c){queueMicrotask(()=>t(new Kne(l,n,s)));return}let u=Error.stackTraceLimit;Error.stackTraceLimit=0;let d;try{Zne(r)?d=JSON.parse(Xne(a,c)):eie(r)&&(d=Xne(a,c))}catch{}finally{Error.stackTraceLimit=u}queueMicrotask(()=>t(new Kne(l,n,s,d)))}o(lze,"getResolveErrorBodyCallback");var Zne=o(t=>t.length>15&&t[11]==="/"&&t[0]==="a"&&t[1]==="p"&&t[2]==="p"&&t[3]==="l"&&t[4]==="i"&&t[5]==="c"&&t[6]==="a"&&t[7]==="t"&&t[8]==="i"&&t[9]==="o"&&t[10]==="n"&&t[12]==="j"&&t[13]==="s"&&t[14]==="o"&&t[15]==="n","isContentTypeApplicationJson"),eie=o(t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t","isContentTypeText");tie.exports={getResolveErrorBodyCallback:lze,isContentTypeApplicationJson:Zne,isContentTypeText:eie}});var iie=m((P$t,xM)=>{"use strict";var uze=require("node:assert"),{Readable:dze}=SM(),{InvalidArgumentError:Gm,RequestAbortedError:rie}=Tt(),Xs=ot(),{getResolveErrorBodyCallback:fze}=BM(),{AsyncResource:hze}=require("node:async_hooks"),Sv=class extends hze{static{o(this,"RequestHandler")}constructor(e,r){if(!e||typeof e!="object")throw new Gm("invalid opts");let{signal:n,method:i,opaque:s,body:a,onInfo:c,responseHeaders:l,throwOnError:u,highWaterMark:d}=e;try{if(typeof r!="function")throw new Gm("invalid callback");if(d&&(typeof d!="number"||d<0))throw new Gm("invalid highWaterMark");if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new Gm("signal must be an EventEmitter or EventTarget");if(i==="CONNECT")throw new Gm("invalid method");if(c&&typeof c!="function")throw new Gm("invalid onInfo callback");super("UNDICI_REQUEST")}catch(f){throw Xs.isStream(a)&&Xs.destroy(a.on("error",Xs.nop),f),f}this.method=i,this.responseHeaders=l||null,this.opaque=s||null,this.callback=r,this.res=null,this.abort=null,this.body=a,this.trailers={},this.context=null,this.onInfo=c||null,this.throwOnError=u,this.highWaterMark=d,this.signal=n,this.reason=null,this.removeAbortListener=null,Xs.isStream(a)&&a.on("error",f=>{this.onError(f)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new rie:this.removeAbortListener=Xs.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new rie,this.res?Xs.destroy(this.res.on("error",Xs.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}uze(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,i){let{callback:s,opaque:a,abort:c,context:l,responseHeaders:u,highWaterMark:d}=this,f=u==="raw"?Xs.parseRawHeaders(r):Xs.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:f});return}let h=u==="raw"?Xs.parseHeaders(r):f,p=h["content-type"],g=h["content-length"],A=new dze({resume:n,abort:c,contentType:p,contentLength:this.method!=="HEAD"&&g?Number(g):null,highWaterMark:d});this.removeAbortListener&&A.on("close",this.removeAbortListener),this.callback=null,this.res=A,s!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(fze,null,{callback:s,body:A,contentType:p,statusCode:e,statusMessage:i,headers:f}):this.runInAsyncScope(s,null,null,{statusCode:e,headers:f,trailers:this.trailers,opaque:a,body:A,context:l}))}onData(e){return this.res.push(e)}onComplete(e){Xs.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:r,callback:n,body:i,opaque:s}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:s})})),r&&(this.res=null,queueMicrotask(()=>{Xs.destroy(r,e)})),i&&(this.body=null,Xs.destroy(i,e)),this.removeAbortListener&&(r?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}};function nie(t,e){if(e===void 0)return new Promise((r,n)=>{nie.call(this,t,(i,s)=>i?n(i):r(s))});try{this.dispatch(t,new Sv(t,e))}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}o(nie,"request");xM.exports=nie;xM.exports.RequestHandler=Sv});var Qb=m((O$t,aie)=>{var{addAbortListener:pze}=ot(),{RequestAbortedError:Aze}=Tt(),Hm=Symbol("kListener"),kc=Symbol("kSignal");function sie(t){t.abort?t.abort(t[kc]?.reason):t.reason=t[kc]?.reason??new Aze,oie(t)}o(sie,"abort");function mze(t,e){if(t.reason=null,t[kc]=null,t[Hm]=null,!!e){if(e.aborted){sie(t);return}t[kc]=e,t[Hm]=()=>{sie(t)},pze(t[kc],t[Hm])}}o(mze,"addSignal");function oie(t){t[kc]&&("removeEventListener"in t[kc]?t[kc].removeEventListener("abort",t[Hm]):t[kc].removeListener("abort",t[Hm]),t[kc]=null,t[Hm]=null)}o(oie,"removeSignal");aie.exports={addSignal:mze,removeSignal:oie}});var die=m((F$t,uie)=>{"use strict";var gze=require("node:assert"),{finished:yze,PassThrough:Eze}=require("node:stream"),{InvalidArgumentError:Vm,InvalidReturnValueError:Cze}=Tt(),za=ot(),{getResolveErrorBodyCallback:bze}=BM(),{AsyncResource:wze}=require("node:async_hooks"),{addSignal:Ize,removeSignal:cie}=Qb(),vM=class extends wze{static{o(this,"StreamHandler")}constructor(e,r,n){if(!e||typeof e!="object")throw new Vm("invalid opts");let{signal:i,method:s,opaque:a,body:c,onInfo:l,responseHeaders:u,throwOnError:d}=e;try{if(typeof n!="function")throw new Vm("invalid callback");if(typeof r!="function")throw new Vm("invalid factory");if(i&&typeof i.on!="function"&&typeof i.addEventListener!="function")throw new Vm("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new Vm("invalid method");if(l&&typeof l!="function")throw new Vm("invalid onInfo callback");super("UNDICI_STREAM")}catch(f){throw za.isStream(c)&&za.destroy(c.on("error",za.nop),f),f}this.responseHeaders=u||null,this.opaque=a||null,this.factory=r,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=c,this.onInfo=l||null,this.throwOnError=d||!1,za.isStream(c)&&c.on("error",f=>{this.onError(f)}),Ize(this,i)}onConnect(e,r){if(this.reason){e(this.reason);return}gze(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,i){let{factory:s,opaque:a,context:c,callback:l,responseHeaders:u}=this,d=u==="raw"?za.parseRawHeaders(r):za.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:d});return}this.factory=null;let f;if(this.throwOnError&&e>=400){let g=(u==="raw"?za.parseHeaders(r):d)["content-type"];f=new Eze,this.callback=null,this.runInAsyncScope(bze,null,{callback:l,body:f,contentType:g,statusCode:e,statusMessage:i,headers:d})}else{if(s===null)return;if(f=this.runInAsyncScope(s,null,{statusCode:e,headers:d,opaque:a,context:c}),!f||typeof f.write!="function"||typeof f.end!="function"||typeof f.on!="function")throw new Cze("expected Writable");yze(f,{readable:!1},p=>{let{callback:g,res:A,opaque:E,trailers:y,abort:C}=this;this.res=null,(p||!A.readable)&&za.destroy(A,p),this.callback=null,this.runInAsyncScope(g,null,p||null,{opaque:E,trailers:y}),p&&C()})}return f.on("drain",n),this.res=f,(f.writableNeedDrain!==void 0?f.writableNeedDrain:f._writableState?.needDrain)!==!0}onData(e){let{res:r}=this;return r?r.write(e):!0}onComplete(e){let{res:r}=this;cie(this),r&&(this.trailers=za.parseHeaders(e),r.end())}onError(e){let{res:r,callback:n,opaque:i,body:s}=this;cie(this),this.factory=null,r?(this.res=null,za.destroy(r,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:i})})),s&&(this.body=null,za.destroy(s,e))}};function lie(t,e,r){if(r===void 0)return new Promise((n,i)=>{lie.call(this,t,e,(s,a)=>s?i(s):n(a))});try{this.dispatch(t,new vM(t,e,r))}catch(n){if(typeof r!="function")throw n;let i=t?.opaque;queueMicrotask(()=>r(n,{opaque:i}))}}o(lie,"stream");uie.exports=lie});var Aie=m((U$t,pie)=>{"use strict";var{Readable:hie,Duplex:Sze,PassThrough:Bze}=require("node:stream"),{InvalidArgumentError:Pb,InvalidReturnValueError:xze,RequestAbortedError:NM}=Tt(),Mo=ot(),{AsyncResource:vze}=require("node:async_hooks"),{addSignal:Nze,removeSignal:_ze}=Qb(),fie=require("node:assert"),zm=Symbol("resume"),_M=class extends hie{static{o(this,"PipelineRequest")}constructor(){super({autoDestroy:!0}),this[zm]=null}_read(){let{[zm]:e}=this;e&&(this[zm]=null,e())}_destroy(e,r){this._read(),r(e)}},TM=class extends hie{static{o(this,"PipelineResponse")}constructor(e){super({autoDestroy:!0}),this[zm]=e}_read(){this[zm]()}_destroy(e,r){!e&&!this._readableState.endEmitted&&(e=new NM),r(e)}},RM=class extends vze{static{o(this,"PipelineHandler")}constructor(e,r){if(!e||typeof e!="object")throw new Pb("invalid opts");if(typeof r!="function")throw new Pb("invalid handler");let{signal:n,method:i,opaque:s,onInfo:a,responseHeaders:c}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new Pb("signal must be an EventEmitter or EventTarget");if(i==="CONNECT")throw new Pb("invalid method");if(a&&typeof a!="function")throw new Pb("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=s||null,this.responseHeaders=c||null,this.handler=r,this.abort=null,this.context=null,this.onInfo=a||null,this.req=new _M().on("error",Mo.nop),this.ret=new Sze({readableObjectMode:e.objectMode,autoDestroy:!0,read:o(()=>{let{body:l}=this;l?.resume&&l.resume()},"read"),write:o((l,u,d)=>{let{req:f}=this;f.push(l,u)||f._readableState.destroyed?d():f[zm]=d},"write"),destroy:o((l,u)=>{let{body:d,req:f,res:h,ret:p,abort:g}=this;!l&&!p._readableState.endEmitted&&(l=new NM),g&&l&&g(),Mo.destroy(d,l),Mo.destroy(f,l),Mo.destroy(h,l),_ze(this),u(l)},"destroy")}).on("prefinish",()=>{let{req:l}=this;l.push(null)}),this.res=null,Nze(this,n)}onConnect(e,r){let{ret:n,res:i}=this;if(this.reason){e(this.reason);return}fie(!i,"pipeline cannot be retried"),fie(!n.destroyed),this.abort=e,this.context=r}onHeaders(e,r,n){let{opaque:i,handler:s,context:a}=this;if(e<200){if(this.onInfo){let l=this.responseHeaders==="raw"?Mo.parseRawHeaders(r):Mo.parseHeaders(r);this.onInfo({statusCode:e,headers:l})}return}this.res=new TM(n);let c;try{this.handler=null;let l=this.responseHeaders==="raw"?Mo.parseRawHeaders(r):Mo.parseHeaders(r);c=this.runInAsyncScope(s,null,{statusCode:e,headers:l,opaque:i,body:this.res,context:a})}catch(l){throw this.res.on("error",Mo.nop),l}if(!c||typeof c.on!="function")throw new xze("expected Readable");c.on("data",l=>{let{ret:u,body:d}=this;!u.push(l)&&d.pause&&d.pause()}).on("error",l=>{let{ret:u}=this;Mo.destroy(u,l)}).on("end",()=>{let{ret:l}=this;l.push(null)}).on("close",()=>{let{ret:l}=this;l._readableState.ended||Mo.destroy(l,new NM)}),this.body=c}onData(e){let{res:r}=this;return r.push(e)}onComplete(e){let{res:r}=this;r.push(null)}onError(e){let{ret:r}=this;this.handler=null,Mo.destroy(r,e)}};function Tze(t,e){try{let r=new RM(t,e);return this.dispatch({...t,body:r.req},r),r.ret}catch(r){return new Bze().destroy(r)}}o(Tze,"pipeline");pie.exports=Tze});var bie=m((G$t,Cie)=>{"use strict";var{InvalidArgumentError:DM,SocketError:Rze}=Tt(),{AsyncResource:Dze}=require("node:async_hooks"),mie=ot(),{addSignal:Qze,removeSignal:gie}=Qb(),yie=require("node:assert"),QM=class extends Dze{static{o(this,"UpgradeHandler")}constructor(e,r){if(!e||typeof e!="object")throw new DM("invalid opts");if(typeof r!="function")throw new DM("invalid callback");let{signal:n,opaque:i,responseHeaders:s}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new DM("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=s||null,this.opaque=i||null,this.callback=r,this.abort=null,this.context=null,Qze(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}yie(this.callback),this.abort=e,this.context=null}onHeaders(){throw new Rze("bad upgrade",null)}onUpgrade(e,r,n){yie(e===101);let{callback:i,opaque:s,context:a}=this;gie(this),this.callback=null;let c=this.responseHeaders==="raw"?mie.parseRawHeaders(r):mie.parseHeaders(r);this.runInAsyncScope(i,null,null,{headers:c,socket:n,opaque:s,context:a})}onError(e){let{callback:r,opaque:n}=this;gie(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Eie(t,e){if(e===void 0)return new Promise((r,n)=>{Eie.call(this,t,(i,s)=>i?n(i):r(s))});try{let r=new QM(t,e);this.dispatch({...t,method:t.method||"GET",upgrade:t.protocol||"Websocket"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}o(Eie,"upgrade");Cie.exports=Eie});var xie=m((V$t,Bie)=>{"use strict";var Pze=require("node:assert"),{AsyncResource:kze}=require("node:async_hooks"),{InvalidArgumentError:PM,SocketError:Oze}=Tt(),wie=ot(),{addSignal:Lze,removeSignal:Iie}=Qb(),kM=class extends kze{static{o(this,"ConnectHandler")}constructor(e,r){if(!e||typeof e!="object")throw new PM("invalid opts");if(typeof r!="function")throw new PM("invalid callback");let{signal:n,opaque:i,responseHeaders:s}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new PM("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=i||null,this.responseHeaders=s||null,this.callback=r,this.abort=null,Lze(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}Pze(this.callback),this.abort=e,this.context=r}onHeaders(){throw new Oze("bad connect",null)}onUpgrade(e,r,n){let{callback:i,opaque:s,context:a}=this;Iie(this),this.callback=null;let c=r;c!=null&&(c=this.responseHeaders==="raw"?wie.parseRawHeaders(r):wie.parseHeaders(r)),this.runInAsyncScope(i,null,null,{statusCode:e,headers:c,socket:n,opaque:s,context:a})}onError(e){let{callback:r,opaque:n}=this;Iie(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Sie(t,e){if(e===void 0)return new Promise((r,n)=>{Sie.call(this,t,(i,s)=>i?n(i):r(s))});try{let r=new kM(t,e);this.dispatch({...t,method:"CONNECT"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}o(Sie,"connect");Bie.exports=Sie});var vie=m(($$t,$m)=>{"use strict";$m.exports.request=iie();$m.exports.stream=die();$m.exports.pipeline=Aie();$m.exports.upgrade=bie();$m.exports.connect=xie()});var LM=m((j$t,_ie)=>{"use strict";var{UndiciError:Fze}=Tt(),Nie=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED"),OM=class t extends Fze{static{o(this,"MockNotMatchedError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="MockNotMatchedError",this.message=e||"The request does not match any registered mock dispatches",this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](e){return e&&e[Nie]===!0}[Nie]=!0};_ie.exports={MockNotMatchedError:OM}});var jm=m((J$t,Tie)=>{"use strict";Tie.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 kb=m((Y$t,qie)=>{"use strict";var{MockNotMatchedError:$h}=LM(),{kDispatches:Bv,kMockAgent:Mze,kOriginalDispatch:Uze,kOrigin:qze,kGetNetConnect:Gze}=jm(),{buildURL:Hze}=ot(),{STATUS_CODES:Vze}=require("node:http"),{types:{isPromise:zze}}=require("node:util");function Nu(t,e){return typeof t=="string"?t===e:t instanceof RegExp?t.test(e):typeof t=="function"?t(e)===!0:!1}o(Nu,"matchValue");function Die(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLocaleLowerCase(),r]))}o(Die,"lowerCaseEntries");function Qie(t,e){if(Array.isArray(t)){for(let r=0;r<t.length;r+=2)if(t[r].toLocaleLowerCase()===e.toLocaleLowerCase())return t[r+1];return}else return typeof t.get=="function"?t.get(e):Die(t)[e.toLocaleLowerCase()]}o(Qie,"getHeaderByName");function UM(t){let e=t.slice(),r=[];for(let n=0;n<e.length;n+=2)r.push([e[n],e[n+1]]);return Object.fromEntries(r)}o(UM,"buildHeadersFromArray");function Pie(t,e){if(typeof t.headers=="function")return Array.isArray(e)&&(e=UM(e)),t.headers(e?Die(e):{});if(typeof t.headers>"u")return!0;if(typeof e!="object"||typeof t.headers!="object")return!1;for(let[r,n]of Object.entries(t.headers)){let i=Qie(e,r);if(!Nu(n,i))return!1}return!0}o(Pie,"matchHeaders");function Rie(t){if(typeof t!="string")return t;let e=t.split("?");if(e.length!==2)return t;let r=new URLSearchParams(e.pop());return r.sort(),[...e,r.toString()].join("?")}o(Rie,"safeUrl");function $ze(t,{path:e,method:r,body:n,headers:i}){let s=Nu(t.path,e),a=Nu(t.method,r),c=typeof t.body<"u"?Nu(t.body,n):!0,l=Pie(t,i);return s&&a&&c&&l}o($ze,"matchKey");function kie(t){return Buffer.isBuffer(t)||t instanceof Uint8Array||t instanceof ArrayBuffer?t:typeof t=="object"?JSON.stringify(t):t.toString()}o(kie,"getResponseData");function Oie(t,e){let r=e.query?Hze(e.path,e.query):e.path,n=typeof r=="string"?Rie(r):r,i=t.filter(({consumed:s})=>!s).filter(({path:s})=>Nu(Rie(s),n));if(i.length===0)throw new $h(`Mock dispatch not matched for path '${n}'`);if(i=i.filter(({method:s})=>Nu(s,e.method)),i.length===0)throw new $h(`Mock dispatch not matched for method '${e.method}' on path '${n}'`);if(i=i.filter(({body:s})=>typeof s<"u"?Nu(s,e.body):!0),i.length===0)throw new $h(`Mock dispatch not matched for body '${e.body}' on path '${n}'`);if(i=i.filter(s=>Pie(s,e.headers)),i.length===0){let s=typeof e.headers=="object"?JSON.stringify(e.headers):e.headers;throw new $h(`Mock dispatch not matched for headers '${s}' on path '${n}'`)}return i[0]}o(Oie,"getMockDispatch");function jze(t,e,r){let n={timesInvoked:0,times:1,persist:!1,consumed:!1},i=typeof r=="function"?{callback:r}:{...r},s={...n,...e,pending:!0,data:{error:null,...i}};return t.push(s),s}o(jze,"addMockDispatch");function FM(t,e){let r=t.findIndex(n=>n.consumed?$ze(n,e):!1);r!==-1&&t.splice(r,1)}o(FM,"deleteMockDispatch");function Lie(t){let{path:e,method:r,body:n,headers:i,query:s}=t;return{path:e,method:r,body:n,headers:i,query:s}}o(Lie,"buildKey");function MM(t){let e=Object.keys(t),r=[];for(let n=0;n<e.length;++n){let i=e[n],s=t[i],a=Buffer.from(`${i}`);if(Array.isArray(s))for(let c=0;c<s.length;++c)r.push(a,Buffer.from(`${s[c]}`));else r.push(a,Buffer.from(`${s}`))}return r}o(MM,"generateKeyValues");function Fie(t){return Vze[t]||"unknown"}o(Fie,"getStatusText");async function Wze(t){let e=[];for await(let r of t)e.push(r);return Buffer.concat(e).toString("utf8")}o(Wze,"getResponse");function Mie(t,e){let r=Lie(t),n=Oie(this[Bv],r);n.timesInvoked++,n.data.callback&&(n.data={...n.data,...n.data.callback(t)});let{data:{statusCode:i,data:s,headers:a,trailers:c,error:l},delay:u,persist:d}=n,{timesInvoked:f,times:h}=n;if(n.consumed=!d&&f>=h,n.pending=f<h,l!==null)return FM(this[Bv],r),e.onError(l),!0;typeof u=="number"&&u>0?setTimeout(()=>{p(this[Bv])},u):p(this[Bv]);function p(A,E=s){let y=Array.isArray(t.headers)?UM(t.headers):t.headers,C=typeof E=="function"?E({...t,headers:y}):E;if(zze(C)){C.then(U=>p(A,U));return}let w=kie(C),B=MM(a),Q=MM(c);e.onConnect?.(U=>e.onError(U),null),e.onHeaders?.(i,B,g,Fie(i)),e.onData?.(Buffer.from(w)),e.onComplete?.(Q),FM(A,r)}o(p,"handleReply");function g(){}return o(g,"resume"),!0}o(Mie,"mockDispatch");function Jze(){let t=this[Mze],e=this[qze],r=this[Uze];return o(function(i,s){if(t.isMockActive)try{Mie.call(this,i,s)}catch(a){if(a instanceof $h){let c=t[Gze]();if(c===!1)throw new $h(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(Uie(c,e))r.call(this,i,s);else throw new $h(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect is not enabled for this origin)`)}else throw a}else r.call(this,i,s)},"dispatch")}o(Jze,"buildMockDispatch");function Uie(t,e){let r=new URL(e);return t===!0?!0:!!(Array.isArray(t)&&t.some(n=>Nu(n,r.host)))}o(Uie,"checkNetConnect");function Yze(t){if(t){let{agent:e,...r}=t;return r}}o(Yze,"buildMockOptions");qie.exports={getResponseData:kie,getMockDispatch:Oie,addMockDispatch:jze,deleteMockDispatch:FM,buildKey:Lie,generateKeyValues:MM,matchValue:Nu,getResponse:Wze,getStatusText:Fie,mockDispatch:Mie,buildMockDispatch:Jze,checkNetConnect:Uie,buildMockOptions:Yze,getHeaderByName:Qie,buildHeadersFromArray:UM}});var jM=m((X$t,$M)=>{"use strict";var{getResponseData:Kze,buildKey:Xze,addMockDispatch:qM}=kb(),{kDispatches:xv,kDispatchKey:vv,kDefaultHeaders:GM,kDefaultTrailers:HM,kContentLength:VM,kMockDispatch:Nv}=jm(),{InvalidArgumentError:Oc}=Tt(),{buildURL:Zze}=ot(),Wm=class{static{o(this,"MockScope")}constructor(e){this[Nv]=e}delay(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new Oc("waitInMs must be a valid integer > 0");return this[Nv].delay=e,this}persist(){return this[Nv].persist=!0,this}times(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new Oc("repeatTimes must be a valid integer > 0");return this[Nv].times=e,this}},zM=class{static{o(this,"MockInterceptor")}constructor(e,r){if(typeof e!="object")throw new Oc("opts must be an object");if(typeof e.path>"u")throw new Oc("opts.path must be defined");if(typeof e.method>"u"&&(e.method="GET"),typeof e.path=="string")if(e.query)e.path=Zze(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[vv]=Xze(e),this[xv]=r,this[GM]={},this[HM]={},this[VM]=!1}createMockScopeDispatchData({statusCode:e,data:r,responseOptions:n}){let i=Kze(r),s=this[VM]?{"content-length":i.length}:{},a={...this[GM],...s,...n.headers},c={...this[HM],...n.trailers};return{statusCode:e,data:r,headers:a,trailers:c}}validateReplyParameters(e){if(typeof e.statusCode>"u")throw new Oc("statusCode must be defined");if(typeof e.responseOptions!="object"||e.responseOptions===null)throw new Oc("responseOptions must be an object")}reply(e){if(typeof e=="function"){let s=o(c=>{let l=e(c);if(typeof l!="object"||l===null)throw new Oc("reply options callback must return an object");let u={data:"",responseOptions:{},...l};return this.validateReplyParameters(u),{...this.createMockScopeDispatchData(u)}},"wrappedDefaultsCallback"),a=qM(this[xv],this[vv],s);return new Wm(a)}let r={statusCode:e,data:arguments[1]===void 0?"":arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(r);let n=this.createMockScopeDispatchData(r),i=qM(this[xv],this[vv],n);return new Wm(i)}replyWithError(e){if(typeof e>"u")throw new Oc("error must be defined");let r=qM(this[xv],this[vv],{error:e});return new Wm(r)}defaultReplyHeaders(e){if(typeof e>"u")throw new Oc("headers must be defined");return this[GM]=e,this}defaultReplyTrailers(e){if(typeof e>"u")throw new Oc("trailers must be defined");return this[HM]=e,this}replyContentLength(){return this[VM]=!0,this}};$M.exports.MockInterceptor=zM;$M.exports.MockScope=Wm});var YM=m((ejt,Wie)=>{"use strict";var{promisify:e$e}=require("node:util"),t$e=Om(),{buildMockDispatch:r$e}=kb(),{kDispatches:Gie,kMockAgent:Hie,kClose:Vie,kOriginalClose:zie,kOrigin:$ie,kOriginalDispatch:n$e,kConnected:WM}=jm(),{MockInterceptor:i$e}=jM(),jie=Ar(),{InvalidArgumentError:s$e}=Tt(),JM=class extends t$e{static{o(this,"MockClient")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new s$e("Argument opts.agent must implement Agent");this[Hie]=r.agent,this[$ie]=e,this[Gie]=[],this[WM]=1,this[n$e]=this.dispatch,this[zie]=this.close.bind(this),this.dispatch=r$e.call(this),this.close=this[Vie]}get[jie.kConnected](){return this[WM]}intercept(e){return new i$e(e,this[Gie])}async[Vie](){await e$e(this[zie])(),this[WM]=0,this[Hie][jie.kClients].delete(this[$ie])}};Wie.exports=JM});var ZM=m((rjt,tse)=>{"use strict";var{promisify:o$e}=require("node:util"),a$e=Lm(),{buildMockDispatch:c$e}=kb(),{kDispatches:Jie,kMockAgent:Yie,kClose:Kie,kOriginalClose:Xie,kOrigin:Zie,kOriginalDispatch:l$e,kConnected:KM}=jm(),{MockInterceptor:u$e}=jM(),ese=Ar(),{InvalidArgumentError:d$e}=Tt(),XM=class extends a$e{static{o(this,"MockPool")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new d$e("Argument opts.agent must implement Agent");this[Yie]=r.agent,this[Zie]=e,this[Jie]=[],this[KM]=1,this[l$e]=this.dispatch,this[Xie]=this.close.bind(this),this.dispatch=c$e.call(this),this.close=this[Kie]}get[ese.kConnected](){return this[KM]}intercept(e){return new u$e(e,this[Jie])}async[Kie](){await o$e(this[Xie])(),this[KM]=0,this[Yie][ese.kClients].delete(this[Zie])}};tse.exports=XM});var nse=m((sjt,rse)=>{"use strict";var f$e={pronoun:"it",is:"is",was:"was",this:"this"},h$e={pronoun:"they",is:"are",was:"were",this:"these"};rse.exports=class{static{o(this,"Pluralizer")}constructor(e,r){this.singular=e,this.plural=r}pluralize(e){let r=e===1,n=r?f$e:h$e,i=r?this.singular:this.plural;return{...n,count:e,noun:i}}}});var sse=m((cjt,ise)=>{"use strict";var{Transform:p$e}=require("node:stream"),{Console:A$e}=require("node:console"),m$e=process.versions.icu?"\u2705":"Y ",g$e=process.versions.icu?"\u274C":"N ";ise.exports=class{static{o(this,"PendingInterceptorsFormatter")}constructor({disableColors:e}={}){this.transform=new p$e({transform(r,n,i){i(null,r)}}),this.logger=new A$e({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let r=e.map(({method:n,path:i,data:{statusCode:s},persist:a,times:c,timesInvoked:l,origin:u})=>({Method:n,Origin:u,Path:i,"Status code":s,Persistent:a?m$e:g$e,Invocations:l,Remaining:a?1/0:c-l}));return this.logger.table(r),this.transform.read().toString()}}});var lse=m((ujt,cse)=>{"use strict";var{kClients:jh}=Ar(),y$e=Fm(),{kAgent:eU,kMockAgentSet:_v,kMockAgentGet:ose,kDispatches:tU,kIsMockActive:Tv,kNetConnect:Wh,kGetNetConnect:E$e,kOptions:Rv,kFactory:Dv}=jm(),C$e=YM(),b$e=ZM(),{matchValue:w$e,buildMockOptions:I$e}=kb(),{InvalidArgumentError:ase,UndiciError:S$e}=Tt(),B$e=sb(),x$e=nse(),v$e=sse(),rU=class extends B$e{static{o(this,"MockAgent")}constructor(e){if(super(e),this[Wh]=!0,this[Tv]=!0,e?.agent&&typeof e.agent.dispatch!="function")throw new ase("Argument opts.agent must implement Agent");let r=e?.agent?e.agent:new y$e(e);this[eU]=r,this[jh]=r[jh],this[Rv]=I$e(e)}get(e){let r=this[ose](e);return r||(r=this[Dv](e),this[_v](e,r)),r}dispatch(e,r){return this.get(e.origin),this[eU].dispatch(e,r)}async close(){await this[eU].close(),this[jh].clear()}deactivate(){this[Tv]=!1}activate(){this[Tv]=!0}enableNetConnect(e){if(typeof e=="string"||typeof e=="function"||e instanceof RegExp)Array.isArray(this[Wh])?this[Wh].push(e):this[Wh]=[e];else if(typeof e>"u")this[Wh]=!0;else throw new ase("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[Wh]=!1}get isMockActive(){return this[Tv]}[_v](e,r){this[jh].set(e,r)}[Dv](e){let r=Object.assign({agent:this},this[Rv]);return this[Rv]&&this[Rv].connections===1?new C$e(e,r):new b$e(e,r)}[ose](e){let r=this[jh].get(e);if(r)return r;if(typeof e!="string"){let n=this[Dv]("http://localhost:9999");return this[_v](e,n),n}for(let[n,i]of Array.from(this[jh]))if(i&&typeof n!="string"&&w$e(n,e)){let s=this[Dv](e);return this[_v](e,s),s[tU]=i[tU],s}}[E$e](){return this[Wh]}pendingInterceptors(){let e=this[jh];return Array.from(e.entries()).flatMap(([r,n])=>n[tU].map(i=>({...i,origin:r}))).filter(({pending:r})=>r)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new v$e}={}){let r=this.pendingInterceptors();if(r.length===0)return;let n=new x$e("interceptor","interceptors").pluralize(r.length);throw new S$e(`
|
|
${n.count} ${n.noun} ${n.is} pending:
|
|
|
|
${e.format(r)}
|
|
`.trim())}};cse.exports=rU});var Qv=m((fjt,hse)=>{"use strict";var use=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:N$e}=Tt(),_$e=Fm();fse()===void 0&&dse(new _$e);function dse(t){if(!t||typeof t.dispatch!="function")throw new N$e("Argument agent must implement Agent");Object.defineProperty(globalThis,use,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(dse,"setGlobalDispatcher");function fse(){return globalThis[use]}o(fse,"getGlobalDispatcher");hse.exports={setGlobalDispatcher:dse,getGlobalDispatcher:fse}});var Pv=m((Ajt,pse)=>{"use strict";pse.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var mse=m((gjt,Ase)=>{"use strict";var T$e=fv();Ase.exports=t=>{let e=t?.maxRedirections;return r=>o(function(i,s){let{maxRedirections:a=e,...c}=i;if(!a)return r(i,s);let l=new T$e(r,a,i,s);return r(c,l)},"redirectInterceptor")}});var yse=m((Ejt,gse)=>{"use strict";var R$e=Iv();gse.exports=t=>e=>o(function(n,i){return e(n,new R$e({...n,retryOptions:{...t,...n.retryOptions}},{handler:i,dispatch:e}))},"retryInterceptor")});var Cse=m((bjt,Ese)=>{"use strict";var D$e=ot(),{InvalidArgumentError:Q$e,RequestAbortedError:P$e}=Tt(),k$e=Pv(),nU=class extends k$e{static{o(this,"DumpHandler")}#e=1024*1024;#r=null;#n=!1;#t=!1;#i=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Q$e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#r=e,this.#l.onConnect(this.#a.bind(this))}#a(e){this.#t=!0,this.#s=e}onHeaders(e,r,n,i){let a=D$e.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new P$e(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#t?!0:this.#l.onHeaders(e,r,n,i)}onError(e){this.#n||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#t?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#t){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function O$e({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,i){let{dumpMaxSize:s=t}=n,a=new nU({maxSize:s},i);return e(n,a)},"Intercept")}o(O$e,"createDumpInterceptor");Ese.exports=O$e});var Ise=m((Ijt,wse)=>{"use strict";var{isIP:L$e}=require("node:net"),{lookup:F$e}=require("node:dns"),M$e=Pv(),{InvalidArgumentError:Jm,InformationalError:U$e}=Tt(),bse=Math.pow(2,31)-1,iU=class{static{o(this,"DNSInstance")}#e=0;#r=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#r=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#t,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#r}runLookup(e,r,n){let i=this.#n.get(e.hostname);if(i==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#r};if(i==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new U$e("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,s.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,i,s.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#t(e,r,n){F$e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,s)=>{if(i)return n(i);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#i(e,r,n){let i=null,{records:s,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===bse?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?c=s[n]:c=s[n===4?6:4]):c=s[n],c==null||c.ips.length===0)return i;c.offset==null||c.offset===bse?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return i=c.ips[l]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):i}setRecords(e,r){let n=Date.now(),i={records:{4:null,6:null}};for(let s of r){s.timestamp=n,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=i.records[s.family]??{ips:[]};a.ips.push(s),i.records[s.family]=a}this.#n.set(e.hostname,i)}getHandler(e,r){return new sU(this,e,r)}},sU=class extends M$e{static{o(this,"DNSDispatchHandler")}#e=null;#r=null;#n=null;#t=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:i},s){super(n),this.#i=r,this.#t=n,this.#r={...s},this.#e=e,this.#n=i}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#r,(r,n)=>{if(r)return this.#t.onError(r);let i={...this.#r,origin:n};this.#n(i,this)});return}this.#t.onError(e);return}case"ENOTFOUND":this.#e.deleteRecord(this.#i);default:this.#t.onError(e);break}}};wse.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!="number"||t?.maxTTL<0))throw new Jm("Invalid maxTTL. Must be a positive number");if(t?.maxItems!=null&&(typeof t?.maxItems!="number"||t?.maxItems<1))throw new Jm("Invalid maxItems. Must be a positive number and greater than zero");if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6)throw new Jm("Invalid affinity. Must be either 4 or 6");if(t?.dualStack!=null&&typeof t?.dualStack!="boolean")throw new Jm("Invalid dualStack. Must be a boolean");if(t?.lookup!=null&&typeof t?.lookup!="function")throw new Jm("Invalid lookup. Must be a function");if(t?.pick!=null&&typeof t?.pick!="function")throw new Jm("Invalid pick. Must be a function");let e=t?.dualStack??!0,r;e?r=t?.affinity??null:r=t?.affinity??4;let n={maxTTL:t?.maxTTL??1e4,lookup:t?.lookup??null,pick:t?.pick??null,dualStack:e,affinity:r,maxItems:t?.maxItems??1/0},i=new iU(n);return s=>o(function(c,l){let u=c.origin.constructor===URL?c.origin:new URL(c.origin);return L$e(u.hostname)!==0?s(c,l):(i.runLookup(u,c,(d,f)=>{if(d)return l.onError(d);let h=null;h={...c,servername:u.hostname,origin:f,headers:{host:u.hostname,...c.headers}},s(h,i.getHandler({origin:u,dispatch:s,handler:l},c))}),!0)},"dnsInterceptor")}});var Jh=m((Bjt,Tse)=>{"use strict";var{kConstruct:q$e}=Ar(),{kEnumerableProperty:Ym}=ot(),{iteratorMixin:G$e,isValidHeaderName:Ob,isValidHeaderValue:Bse}=Js(),{webidl:xt}=ai(),oU=require("node:assert"),kv=require("node:util"),mn=Symbol("headers map"),Zs=Symbol("headers map sorted");function Sse(t){return t===10||t===13||t===9||t===32}o(Sse,"isHTTPWhiteSpaceCharCode");function xse(t){let e=0,r=t.length;for(;r>e&&Sse(t.charCodeAt(r-1));)--r;for(;r>e&&Sse(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}o(xse,"headerValueNormalize");function vse(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw xt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});aU(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)aU(t,r[n],e[r[n]])}else throw xt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}o(vse,"fill");function aU(t,e,r){if(r=xse(r),Ob(e)){if(!Bse(r))throw xt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw xt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(_se(t)==="immutable")throw new TypeError("immutable");return cU(t).append(e,r,!1)}o(aU,"appendHeader");function Nse(t,e){return t[0]<e[0]?-1:1}o(Nse,"compareHeaderName");var Ov=class t{static{o(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[mn]=new Map(e[mn]),this[Zs]=e[Zs],this.cookies=e.cookies===null?null:[...e.cookies]):(this[mn]=new Map(e),this[Zs]=null)}contains(e,r){return this[mn].has(r?e:e.toLowerCase())}clear(){this[mn].clear(),this[Zs]=null,this.cookies=null}append(e,r,n){this[Zs]=null;let i=n?e:e.toLowerCase(),s=this[mn].get(i);if(s){let a=i==="cookie"?"; ":", ";this[mn].set(i,{name:s.name,value:`${s.value}${a}${r}`})}else this[mn].set(i,{name:e,value:r});i==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this[Zs]=null;let i=n?e:e.toLowerCase();i==="set-cookie"&&(this.cookies=[r]),this[mn].set(i,{name:e,value:r})}delete(e,r){this[Zs]=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this[mn].delete(e)}get(e,r){return this[mn].get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this[mn])yield[e,r]}get entries(){let e={};if(this[mn].size!==0)for(let{name:r,value:n}of this[mn].values())e[r]=n;return e}rawValues(){return this[mn].values()}get entriesList(){let e=[];if(this[mn].size!==0)for(let{0:r,1:{name:n,value:i}}of this[mn])if(r==="set-cookie")for(let s of this.cookies)e.push([n,s]);else e.push([n,i]);return e}toSortedArray(){let e=this[mn].size,r=new Array(e);if(e<=32){if(e===0)return r;let n=this[mn][Symbol.iterator](),i=n.next().value;r[0]=[i[0],i[1].value],oU(i[1].value!==null);for(let s=1,a=0,c=0,l=0,u=0,d,f;s<e;++s){for(f=n.next().value,d=r[s]=[f[0],f[1].value],oU(d[1]!==null),l=0,c=s;l<c;)u=l+(c-l>>1),r[u][0]<=d[0]?l=u+1:c=u;if(s!==u){for(a=s;a>l;)r[a]=r[--a];r[l]=d}}if(!n.next().done)throw new TypeError("Unreachable");return r}else{let n=0;for(let{0:i,1:{value:s}}of this[mn])r[n++]=[i,s],oU(s!==null);return r.sort(Nse)}}},$a=class t{static{o(this,"Headers")}#e;#r;constructor(e=void 0){xt.util.markAsUncloneable(this),e!==q$e&&(this.#r=new Ov,this.#e="none",e!==void 0&&(e=xt.converters.HeadersInit(e,"Headers contructor","init"),vse(this,e)))}append(e,r){xt.brandCheck(this,t),xt.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=xt.converters.ByteString(e,n,"name"),r=xt.converters.ByteString(r,n,"value"),aU(this,e,r)}delete(e){if(xt.brandCheck(this,t),xt.argumentLengthCheck(arguments,1,"Headers.delete"),e=xt.converters.ByteString(e,"Headers.delete","name"),!Ob(e))throw xt.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#r.contains(e,!1)&&this.#r.delete(e,!1)}get(e){xt.brandCheck(this,t),xt.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=xt.converters.ByteString(e,r,"name"),!Ob(e))throw xt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#r.get(e,!1)}has(e){xt.brandCheck(this,t),xt.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=xt.converters.ByteString(e,r,"name"),!Ob(e))throw xt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#r.contains(e,!1)}set(e,r){xt.brandCheck(this,t),xt.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=xt.converters.ByteString(e,n,"name"),r=xt.converters.ByteString(r,n,"value"),r=xse(r),Ob(e)){if(!Bse(r))throw xt.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw xt.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#r.set(e,r,!1)}getSetCookie(){xt.brandCheck(this,t);let e=this.#r.cookies;return e?[...e]:[]}get[Zs](){if(this.#r[Zs])return this.#r[Zs];let e=[],r=this.#r.toSortedArray(),n=this.#r.cookies;if(n===null||n.length===1)return this.#r[Zs]=r;for(let i=0;i<r.length;++i){let{0:s,1:a}=r[i];if(s==="set-cookie")for(let c=0;c<n.length;++c)e.push([s,n[c]]);else e.push([s,a])}return this.#r[Zs]=e}[kv.inspect.custom](e,r){return r.depth??=e,`Headers ${kv.formatWithOptions(r,this.#r.entries)}`}static getHeadersGuard(e){return e.#e}static setHeadersGuard(e,r){e.#e=r}static getHeadersList(e){return e.#r}static setHeadersList(e,r){e.#r=r}},{getHeadersGuard:_se,setHeadersGuard:H$e,getHeadersList:cU,setHeadersList:V$e}=$a;Reflect.deleteProperty($a,"getHeadersGuard");Reflect.deleteProperty($a,"setHeadersGuard");Reflect.deleteProperty($a,"getHeadersList");Reflect.deleteProperty($a,"setHeadersList");G$e("Headers",$a,Zs,0,1);Object.defineProperties($a.prototype,{append:Ym,delete:Ym,get:Ym,has:Ym,set:Ym,getSetCookie:Ym,[Symbol.toStringTag]:{value:"Headers",configurable:!0},[kv.inspect.custom]:{enumerable:!1}});xt.converters.HeadersInit=function(t,e,r){if(xt.util.Type(t)==="Object"){let n=Reflect.get(t,Symbol.iterator);if(!kv.types.isProxy(t)&&n===$a.prototype.entries)try{return cU(t).entriesList}catch{}return typeof n=="function"?xt.converters["sequence<sequence<ByteString>>"](t,e,r,n.bind(t)):xt.converters["record<ByteString, ByteString>"](t,e,r)}throw xt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};Tse.exports={fill:vse,compareHeaderName:Nse,Headers:$a,HeadersList:Ov,getHeadersGuard:_se,setHeadersGuard:H$e,setHeadersList:V$e,getHeadersList:cU}});var Fb=m((vjt,Gse)=>{"use strict";var{Headers:Ose,HeadersList:Rse,fill:z$e,getHeadersGuard:$$e,setHeadersGuard:Lse,setHeadersList:Fse}=Jh(),{extractBody:Dse,cloneBody:j$e,mixinBody:W$e,hasFinalizationRegistry:Mse,streamRegistry:Use,bodyUnusable:J$e}=_m(),lU=ot(),Qse=require("node:util"),{kEnumerableProperty:eo}=lU,{isValidReasonPhrase:Y$e,isCancelled:K$e,isAborted:X$e,isBlobLike:Z$e,serializeJavascriptValueToJSONString:eje,isErrorLike:tje,isomorphicEncode:rje,environmentSettingsObject:nje}=Js(),{redirectStatusSet:ije,nullBodyStatus:sje}=cb(),{kState:gr,kHeaders:_u}=Ld(),{webidl:tt}=ai(),{FormData:oje}=pb(),{URLSerializer:Pse}=gs(),{kConstruct:Fv}=Ar(),uU=require("node:assert"),{types:aje}=require("node:util"),cje=new TextEncoder("utf-8"),Yh=class t{static{o(this,"Response")}static error(){return Lb(Mv(),"immutable")}static json(e,r={}){tt.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=tt.converters.ResponseInit(r));let n=cje.encode(eje(e)),i=Dse(n),s=Lb(Km({}),"response");return kse(s,r,{body:i[0],type:"application/json"}),s}static redirect(e,r=302){tt.argumentLengthCheck(arguments,1,"Response.redirect"),e=tt.converters.USVString(e),r=tt.converters["unsigned short"](r);let n;try{n=new URL(e,nje.settingsObject.baseUrl)}catch(a){throw new TypeError(`Failed to parse URL from ${e}`,{cause:a})}if(!ije.has(r))throw new RangeError(`Invalid status code ${r}`);let i=Lb(Km({}),"immutable");i[gr].status=r;let s=rje(Pse(n));return i[gr].headersList.append("location",s,!0),i}constructor(e=null,r={}){if(tt.util.markAsUncloneable(this),e===Fv)return;e!==null&&(e=tt.converters.BodyInit(e)),r=tt.converters.ResponseInit(r),this[gr]=Km({}),this[_u]=new Ose(Fv),Lse(this[_u],"response"),Fse(this[_u],this[gr].headersList);let n=null;if(e!=null){let[i,s]=Dse(e);n={body:i,type:s}}kse(this,r,n)}get type(){return tt.brandCheck(this,t),this[gr].type}get url(){tt.brandCheck(this,t);let e=this[gr].urlList,r=e[e.length-1]??null;return r===null?"":Pse(r,!0)}get redirected(){return tt.brandCheck(this,t),this[gr].urlList.length>1}get status(){return tt.brandCheck(this,t),this[gr].status}get ok(){return tt.brandCheck(this,t),this[gr].status>=200&&this[gr].status<=299}get statusText(){return tt.brandCheck(this,t),this[gr].statusText}get headers(){return tt.brandCheck(this,t),this[_u]}get body(){return tt.brandCheck(this,t),this[gr].body?this[gr].body.stream:null}get bodyUsed(){return tt.brandCheck(this,t),!!this[gr].body&&lU.isDisturbed(this[gr].body.stream)}clone(){if(tt.brandCheck(this,t),J$e(this))throw tt.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=dU(this[gr]);return Mse&&this[gr].body?.stream&&Use.register(this,new WeakRef(this[gr].body.stream)),Lb(e,$$e(this[_u]))}[Qse.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 ${Qse.formatWithOptions(r,n)}`}};W$e(Yh);Object.defineProperties(Yh.prototype,{type:eo,url:eo,status:eo,ok:eo,redirected:eo,statusText:eo,headers:eo,clone:eo,body:eo,bodyUsed:eo,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(Yh,{json:eo,redirect:eo,error:eo});function dU(t){if(t.internalResponse)return qse(dU(t.internalResponse),t.type);let e=Km({...t,body:null});return t.body!=null&&(e.body=j$e(e,t.body)),e}o(dU,"cloneResponse");function Km(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new Rse(t?.headersList):new Rse,urlList:t?.urlList?[...t.urlList]:[]}}o(Km,"makeResponse");function Mv(t){let e=tje(t);return Km({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}o(Mv,"makeNetworkError");function lje(t){return t.type==="error"&&t.status===0}o(lje,"isNetworkError");function Lv(t,e){return e={internalResponse:t,...e},new Proxy(t,{get(r,n){return n in e?e[n]:r[n]},set(r,n,i){return uU(!(n in e)),r[n]=i,!0}})}o(Lv,"makeFilteredResponse");function qse(t,e){if(e==="basic")return Lv(t,{type:"basic",headersList:t.headersList});if(e==="cors")return Lv(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return Lv(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return Lv(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});uU(!1)}o(qse,"filterResponse");function uje(t,e=null){return uU(K$e(t)),X$e(t)?Mv(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):Mv(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}o(uje,"makeAppropriateNetworkError");function kse(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&&!Y$e(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[gr].status=e.status),"statusText"in e&&e.statusText!=null&&(t[gr].statusText=e.statusText),"headers"in e&&e.headers!=null&&z$e(t[_u],e.headers),r){if(sje.includes(t.status))throw tt.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[gr].body=r.body,r.type!=null&&!t[gr].headersList.contains("content-type",!0)&&t[gr].headersList.append("content-type",r.type,!0)}}o(kse,"initializeResponse");function Lb(t,e){let r=new Yh(Fv);return r[gr]=t,r[_u]=new Ose(Fv),Fse(r[_u],t.headersList),Lse(r[_u],e),Mse&&t.body?.stream&&Use.register(r,new WeakRef(t.body.stream)),r}o(Lb,"fromInnerResponse");tt.converters.ReadableStream=tt.interfaceConverter(ReadableStream);tt.converters.FormData=tt.interfaceConverter(oje);tt.converters.URLSearchParams=tt.interfaceConverter(URLSearchParams);tt.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?tt.converters.USVString(t,e,r):Z$e(t)?tt.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||aje.isArrayBuffer(t)?tt.converters.BufferSource(t,e,r):lU.isFormDataLike(t)?tt.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?tt.converters.URLSearchParams(t,e,r):tt.converters.DOMString(t,e,r)};tt.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?tt.converters.ReadableStream(t,e,r):t?.[Symbol.asyncIterator]?t:tt.converters.XMLHttpRequestBodyInit(t,e,r)};tt.converters.ResponseInit=tt.dictionaryConverter([{key:"status",converter:tt.converters["unsigned short"],defaultValue:o(()=>200,"defaultValue")},{key:"statusText",converter:tt.converters.ByteString,defaultValue:o(()=>"","defaultValue")},{key:"headers",converter:tt.converters.HeadersInit}]);Gse.exports={isNetworkError:lje,makeNetworkError:Mv,makeResponse:Km,makeAppropriateNetworkError:uje,filterResponse:qse,Response:Yh,cloneResponse:dU,fromInnerResponse:Lb}});var $se=m((_jt,zse)=>{"use strict";var{kConnected:Hse,kSize:Vse}=Ar(),fU=class{static{o(this,"CompatWeakRef")}constructor(e){this.value=e}deref(){return this.value[Hse]===0&&this.value[Vse]===0?void 0:this.value}},hU=class{static{o(this,"CompatFinalizer")}constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[Hse]===0&&e[Vse]===0&&this.finalizer(r)})}unregister(e){}};zse.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:fU,FinalizationRegistry:hU}):{WeakRef,FinalizationRegistry}}});var Xm=m((Rjt,aoe)=>{"use strict";var{extractBody:dje,mixinBody:fje,cloneBody:hje,bodyUnusable:jse}=_m(),{Headers:roe,fill:pje,HeadersList:Hv,setHeadersGuard:AU,getHeadersGuard:Aje,setHeadersList:noe,getHeadersList:Wse}=Jh(),{FinalizationRegistry:mje}=$se()(),qv=ot(),Jse=require("node:util"),{isValidHTTPToken:gje,sameOrigin:Yse,environmentSettingsObject:Uv}=Js(),{forbiddenMethodsSet:yje,corsSafeListedMethodsSet:Eje,referrerPolicy:Cje,requestRedirect:bje,requestMode:wje,requestCredentials:Ije,requestCache:Sje,requestDuplex:Bje}=cb(),{kEnumerableProperty:gn,normalizedMethodRecordsBase:xje,normalizedMethodRecords:vje}=qv,{kHeaders:to,kSignal:Gv,kState:nr,kDispatcher:pU}=Ld(),{webidl:Me}=ai(),{URLSerializer:Nje}=gs(),{kConstruct:Vv}=Ar(),_je=require("node:assert"),{getMaxListeners:Kse,setMaxListeners:Xse,getEventListeners:Tje,defaultMaxListeners:Zse}=require("node:events"),Rje=Symbol("abortController"),ioe=new mje(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),zv=new WeakMap;function eoe(t){return e;function e(){let r=t.deref();if(r!==void 0){ioe.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=zv.get(r.signal);if(n!==void 0){if(n.size!==0){for(let i of n){let s=i.deref();s!==void 0&&s.abort(this.reason)}n.clear()}zv.delete(r.signal)}}}}o(eoe,"buildAbort");var toe=!1,Wd=class t{static{o(this,"Request")}constructor(e,r={}){if(Me.util.markAsUncloneable(this),e===Vv)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 i=null,s=null,a=Uv.settingsObject.baseUrl,c=null;if(typeof e=="string"){this[pU]=r.dispatcher;let y;try{y=new URL(e,a)}catch(C){throw new TypeError("Failed to parse URL from "+e,{cause:C})}if(y.username||y.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);i=$v({urlList:[y]}),s="cors"}else this[pU]=r.dispatcher||e[pU],_je(e instanceof t),i=e[nr],c=e[Gv];let l=Uv.settingsObject.origin,u="client";if(i.window?.constructor?.name==="EnvironmentSettingsObject"&&Yse(i.window,l)&&(u=i.window),r.window!=null)throw new TypeError(`'window' option '${u}' must be null`);"window"in r&&(u="no-window"),i=$v({method:i.method,headersList:i.headersList,unsafeRequest:i.unsafeRequest,client:Uv.settingsObject,window:u,priority:i.priority,origin:i.origin,referrer:i.referrer,referrerPolicy:i.referrerPolicy,mode:i.mode,credentials:i.credentials,cache:i.cache,redirect:i.redirect,integrity:i.integrity,keepalive:i.keepalive,reloadNavigation:i.reloadNavigation,historyNavigation:i.historyNavigation,urlList:[...i.urlList]});let d=Object.keys(r).length!==0;if(d&&(i.mode==="navigate"&&(i.mode="same-origin"),i.reloadNavigation=!1,i.historyNavigation=!1,i.origin="client",i.referrer="client",i.referrerPolicy="",i.url=i.urlList[i.urlList.length-1],i.urlList=[i.url]),r.referrer!==void 0){let y=r.referrer;if(y==="")i.referrer="no-referrer";else{let C;try{C=new URL(y,a)}catch(w){throw new TypeError(`Referrer "${y}" is not a valid URL.`,{cause:w})}C.protocol==="about:"&&C.hostname==="client"||l&&!Yse(C,Uv.settingsObject.baseUrl)?i.referrer="client":i.referrer=C}}r.referrerPolicy!==void 0&&(i.referrerPolicy=r.referrerPolicy);let f;if(r.mode!==void 0?f=r.mode:f=s,f==="navigate")throw Me.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(f!=null&&(i.mode=f),r.credentials!==void 0&&(i.credentials=r.credentials),r.cache!==void 0&&(i.cache=r.cache),i.cache==="only-if-cached"&&i.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(r.redirect!==void 0&&(i.redirect=r.redirect),r.integrity!=null&&(i.integrity=String(r.integrity)),r.keepalive!==void 0&&(i.keepalive=!!r.keepalive),r.method!==void 0){let y=r.method,C=vje[y];if(C!==void 0)i.method=C;else{if(!gje(y))throw new TypeError(`'${y}' is not a valid HTTP method.`);let w=y.toUpperCase();if(yje.has(w))throw new TypeError(`'${y}' HTTP method is unsupported.`);y=xje[w]??y,i.method=y}!toe&&i.method==="patch"&&(process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"}),toe=!0)}r.signal!==void 0&&(c=r.signal),this[nr]=i;let h=new AbortController;if(this[Gv]=h.signal,c!=null){if(!c||typeof c.aborted!="boolean"||typeof c.addEventListener!="function")throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(c.aborted)h.abort(c.reason);else{this[Rje]=h;let y=new WeakRef(h),C=eoe(y);try{(typeof Kse=="function"&&Kse(c)===Zse||Tje(c,"abort").length>=Zse)&&Xse(1500,c)}catch{}qv.addAbortListener(c,C),ioe.register(h,{signal:c,abort:C},C)}}if(this[to]=new roe(Vv),noe(this[to],i.headersList),AU(this[to],"request"),f==="no-cors"){if(!Eje.has(i.method))throw new TypeError(`'${i.method} is unsupported in no-cors mode.`);AU(this[to],"request-no-cors")}if(d){let y=Wse(this[to]),C=r.headers!==void 0?r.headers:new Hv(y);if(y.clear(),C instanceof Hv){for(let{name:w,value:B}of C.rawValues())y.append(w,B,!1);y.cookies=C.cookies}else pje(this[to],C)}let p=e instanceof t?e[nr].body:null;if((r.body!=null||p!=null)&&(i.method==="GET"||i.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let g=null;if(r.body!=null){let[y,C]=dje(r.body,i.keepalive);g=y,C&&!Wse(this[to]).contains("content-type",!0)&&this[to].append("content-type",C)}let A=g??p;if(A!=null&&A.source==null){if(g!=null&&r.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(i.mode!=="same-origin"&&i.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');i.useCORSPreflightFlag=!0}let E=A;if(g==null&&p!=null){if(jse(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let y=new TransformStream;p.stream.pipeThrough(y),E={source:p.source,length:p.length,stream:y.readable}}this[nr].body=E}get method(){return Me.brandCheck(this,t),this[nr].method}get url(){return Me.brandCheck(this,t),Nje(this[nr].url)}get headers(){return Me.brandCheck(this,t),this[to]}get destination(){return Me.brandCheck(this,t),this[nr].destination}get referrer(){return Me.brandCheck(this,t),this[nr].referrer==="no-referrer"?"":this[nr].referrer==="client"?"about:client":this[nr].referrer.toString()}get referrerPolicy(){return Me.brandCheck(this,t),this[nr].referrerPolicy}get mode(){return Me.brandCheck(this,t),this[nr].mode}get credentials(){return this[nr].credentials}get cache(){return Me.brandCheck(this,t),this[nr].cache}get redirect(){return Me.brandCheck(this,t),this[nr].redirect}get integrity(){return Me.brandCheck(this,t),this[nr].integrity}get keepalive(){return Me.brandCheck(this,t),this[nr].keepalive}get isReloadNavigation(){return Me.brandCheck(this,t),this[nr].reloadNavigation}get isHistoryNavigation(){return Me.brandCheck(this,t),this[nr].historyNavigation}get signal(){return Me.brandCheck(this,t),this[Gv]}get body(){return Me.brandCheck(this,t),this[nr].body?this[nr].body.stream:null}get bodyUsed(){return Me.brandCheck(this,t),!!this[nr].body&&qv.isDisturbed(this[nr].body.stream)}get duplex(){return Me.brandCheck(this,t),"half"}clone(){if(Me.brandCheck(this,t),jse(this))throw new TypeError("unusable");let e=soe(this[nr]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=zv.get(this.signal);n===void 0&&(n=new Set,zv.set(this.signal,n));let i=new WeakRef(r);n.add(i),qv.addAbortListener(r.signal,eoe(i))}return ooe(e,r.signal,Aje(this[to]))}[Jse.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 ${Jse.formatWithOptions(r,n)}`}};fje(Wd);function $v(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 Hv(t.headersList):new Hv}}o($v,"makeRequest");function soe(t){let e=$v({...t,body:null});return t.body!=null&&(e.body=hje(e,t.body)),e}o(soe,"cloneRequest");function ooe(t,e,r){let n=new Wd(Vv);return n[nr]=t,n[Gv]=e,n[to]=new roe(Vv),noe(n[to],t.headersList),AU(n[to],r),n}o(ooe,"fromInnerRequest");Object.defineProperties(Wd.prototype,{method:gn,url:gn,headers:gn,redirect:gn,clone:gn,signal:gn,duplex:gn,destination:gn,body:gn,bodyUsed:gn,isHistoryNavigation:gn,isReloadNavigation:gn,keepalive:gn,integrity:gn,cache:gn,credentials:gn,attribute:gn,referrerPolicy:gn,referrer:gn,mode:gn,[Symbol.toStringTag]:{value:"Request",configurable:!0}});Me.converters.Request=Me.interfaceConverter(Wd);Me.converters.RequestInfo=function(t,e,r){return typeof t=="string"?Me.converters.USVString(t,e,r):t instanceof Wd?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:Cje},{key:"mode",converter:Me.converters.DOMString,allowedValues:wje},{key:"credentials",converter:Me.converters.DOMString,allowedValues:Ije},{key:"cache",converter:Me.converters.DOMString,allowedValues:Sje},{key:"redirect",converter:Me.converters.DOMString,allowedValues:bje},{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:Bje},{key:"dispatcher",converter:Me.converters.any}]);aoe.exports={Request:Wd,makeRequest:$v,fromInnerRequest:ooe,cloneRequest:soe}});var Ub=m((Qjt,woe)=>{"use strict";var{makeNetworkError:Ht,makeAppropriateNetworkError:jv,filterResponse:mU,makeResponse:Wv,fromInnerResponse:Dje}=Fb(),{HeadersList:coe}=Jh(),{Request:Qje,cloneRequest:Pje}=Xm(),Jd=require("node:zlib"),{bytesMatch:kje,makePolicyContainer:Oje,clonePolicyContainer:Lje,requestBadPort:Fje,TAOCheck:Mje,appendRequestOriginHeader:Uje,responseLocationURL:qje,requestCurrentURL:Lc,setRequestReferrerPolicyOnRedirect:Gje,tryUpgradeRequestToAPotentiallyTrustworthyURL:Hje,createOpaqueTimingInfo:bU,appendFetchMetadata:Vje,corsCheck:zje,crossOriginResourcePolicyCheck:$je,determineRequestsReferrer:jje,coarsenedSharedCurrentTime:Mb,createDeferredPromise:Wje,isBlobLike:Jje,sameOrigin:CU,isCancelled:Kh,isAborted:loe,isErrorLike:Yje,fullyReadBody:Kje,readableStreamClose:Xje,isomorphicEncode:Jv,urlIsLocal:Zje,urlIsHttpHttpsScheme:wU,urlHasHttpsScheme:e8e,clampAndCoarsenConnectionTimingInfo:t8e,simpleRangeHeaderValue:r8e,buildContentRange:n8e,createInflate:i8e,extractMimeType:s8e}=Js(),{kState:hoe,kDispatcher:o8e}=Ld(),Xh=require("node:assert"),{safelyExtractBody:IU,extractBody:uoe}=_m(),{redirectStatusSet:poe,nullBodyStatus:Aoe,safeMethodsSet:a8e,requestBodyHeader:c8e,subresourceSet:l8e}=cb(),u8e=require("node:events"),{Readable:d8e,pipeline:f8e,finished:h8e}=require("node:stream"),{addAbortListener:p8e,isErrored:A8e,isReadable:Yv,bufferToLowerCasedHeaderName:doe}=ot(),{dataURLProcessor:m8e,serializeAMimeType:g8e,minimizeSupportedMimeType:y8e}=gs(),{getGlobalDispatcher:E8e}=Qv(),{webidl:C8e}=ai(),{STATUS_CODES:b8e}=require("node:http"),w8e=["GET","HEAD"],I8e=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",gU,Kv=class extends u8e{static{o(this,"Fetch")}constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(e){this.state==="ongoing"&&(this.state="terminated",this.connection?.destroy(e),this.emit("terminated",e))}abort(e){this.state==="ongoing"&&(this.state="aborted",e||(e=new DOMException("The operation was aborted.","AbortError")),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit("terminated",e))}};function S8e(t){moe(t,"fetch")}o(S8e,"handleFetchDone");function B8e(t,e=void 0){C8e.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=Wje(),n;try{n=new Qje(t,e)}catch(d){return r.reject(d),r.promise}let i=n[hoe];if(n.signal.aborted)return yU(r,i,null,n.signal.reason),r.promise;i.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope"&&(i.serviceWorkers="none");let a=null,c=!1,l=null;return p8e(n.signal,()=>{c=!0,Xh(l!=null),l.abort(n.signal.reason);let d=a?.deref();yU(r,i,d,n.signal.reason)}),l=yoe({request:i,processResponseEndOfBody:S8e,processResponse:o(d=>{if(!c){if(d.aborted){yU(r,i,a,l.serializedAbortReason);return}if(d.type==="error"){r.reject(new TypeError("fetch failed",{cause:d.error}));return}a=new WeakRef(Dje(d,"immutable")),r.resolve(a.deref()),r=null}},"processResponse"),dispatcher:n[o8e]}),r.promise}o(B8e,"fetch");function moe(t,e="other"){if(t.type==="error"&&t.aborted||!t.urlList?.length)return;let r=t.urlList[0],n=t.timingInfo,i=t.cacheState;wU(r)&&n!==null&&(t.timingAllowPassed||(n=bU({startTime:n.startTime}),i=""),n.endTime=Mb(),t.timingInfo=n,goe(n,r.href,e,globalThis,i))}o(moe,"finalizeAndReportTiming");var goe=performance.markResourceTiming;function yU(t,e,r,n){if(t&&t.reject(n),e.body!=null&&Yv(e.body?.stream)&&e.body.stream.cancel(n).catch(s=>{if(s.code!=="ERR_INVALID_STATE")throw s}),r==null)return;let i=r[hoe];i.body!=null&&Yv(i.body?.stream)&&i.body.stream.cancel(n).catch(s=>{if(s.code!=="ERR_INVALID_STATE")throw s})}o(yU,"abortFetch");function yoe({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:i,processResponseConsumeBody:s,useParallelQueue:a=!1,dispatcher:c=E8e()}){Xh(c);let l=null,u=!1;t.client!=null&&(l=t.client.globalObject,u=t.client.crossOriginIsolatedCapability);let d=Mb(u),f=bU({startTime:d}),h={controller:new Kv(c),request:t,timingInfo:f,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:s,processResponseEndOfBody:i,taskDestination:l,crossOriginIsolatedCapability:u};return Xh(!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=Lje(t.client.policyContainer):t.policyContainer=Oje()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,l8e.has(t.destination),Eoe(h).catch(p=>{h.controller.terminate(p)}),h.controller}o(yoe,"fetching");async function Eoe(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!Zje(Lc(r))&&(n=Ht("local URLs only")),Hje(r),Fje(r)==="blocked"&&(n=Ht("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=jje(r)),n===null&&(n=await(async()=>{let s=Lc(r);return CU(s,r.url)&&r.responseTainting==="basic"||s.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await foe(t)):r.mode==="same-origin"?Ht('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?Ht('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await foe(t)):wU(Lc(r))?(r.responseTainting="cors",await Coe(t)):Ht("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=mU(n,"basic"):r.responseTainting==="cors"?n=mU(n,"cors"):r.responseTainting==="opaque"?n=mU(n,"opaque"):Xh(!1));let i=n.status===0?n:n.internalResponse;if(i.urlList.length===0&&i.urlList.push(...r.urlList),r.timingAllowFailed||(n.timingAllowPassed=!0),n.type==="opaque"&&i.status===206&&i.rangeRequested&&!r.headers.contains("range",!0)&&(n=i=Ht()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||Aoe.includes(i.status))&&(i.body=null,t.controller.dump=!0),r.integrity){let s=o(c=>EU(t,Ht(c)),"processBodyError");if(r.responseTainting==="opaque"||n.body==null){s(n.error);return}let a=o(c=>{if(!kje(c,r.integrity)){s("integrity mismatch");return}n.body=IU(c)[0],EU(t,n)},"processBody");await Kje(n.body,a,s)}else EU(t,n)}o(Eoe,"mainFetch");function foe(t){if(Kh(t)&&t.request.redirectCount===0)return Promise.resolve(jv(t));let{request:e}=t,{protocol:r}=Lc(e);switch(r){case"about:":return Promise.resolve(Ht("about scheme is not supported"));case"blob:":{gU||(gU=require("node:buffer").resolveObjectURL);let n=Lc(e);if(n.search.length!==0)return Promise.resolve(Ht("NetworkError when attempting to fetch resource."));let i=gU(n.toString());if(e.method!=="GET"||!Jje(i))return Promise.resolve(Ht("invalid method"));let s=Wv(),a=i.size,c=Jv(`${a}`),l=i.type;if(e.headersList.contains("range",!0)){s.rangeRequested=!0;let u=e.headersList.get("range",!0),d=r8e(u,!0);if(d==="failure")return Promise.resolve(Ht("failed to fetch the data URL"));let{rangeStartValue:f,rangeEndValue:h}=d;if(f===null)f=a-h,h=f+h-1;else{if(f>=a)return Promise.resolve(Ht("Range start is greater than the blob's size."));(h===null||h>=a)&&(h=a-1)}let p=i.slice(f,h,l),g=uoe(p);s.body=g[0];let A=Jv(`${p.size}`),E=n8e(f,h,a);s.status=206,s.statusText="Partial Content",s.headersList.set("content-length",A,!0),s.headersList.set("content-type",l,!0),s.headersList.set("content-range",E,!0)}else{let u=uoe(i);s.statusText="OK",s.body=u[0],s.headersList.set("content-length",c,!0),s.headersList.set("content-type",l,!0)}return Promise.resolve(s)}case"data:":{let n=Lc(e),i=m8e(n);if(i==="failure")return Promise.resolve(Ht("failed to fetch the data URL"));let s=g8e(i.mimeType);return Promise.resolve(Wv({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:s}]],body:IU(i.body)[0]}))}case"file:":return Promise.resolve(Ht("not implemented... yet..."));case"http:":case"https:":return Coe(t).catch(n=>Ht(n));default:return Promise.resolve(Ht("unknown scheme"))}}o(foe,"schemeFetch");function x8e(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}o(x8e,"finalizeResponse");function EU(t,e){let r=t.timingInfo,n=o(()=>{let s=Date.now();t.request.destination==="document"&&(t.controller.fullTimingInfo=r),t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:")return;r.endTime=s;let c=e.cacheState,l=e.bodyInfo;e.timingAllowPassed||(r=bU(r),c="");let u=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){u=e.status;let d=s8e(e.headersList);d!=="failure"&&(l.contentType=y8e(d))}t.request.initiatorType!=null&&goe(r,t.request.url.href,t.request.initiatorType,globalThis,c,l,u)};let a=o(()=>{t.request.done=!0,t.processResponseEndOfBody!=null&&queueMicrotask(()=>t.processResponseEndOfBody(e)),t.request.initiatorType!=null&&t.controller.reportTimingSteps()},"processResponseEndOfBodyTask");queueMicrotask(()=>a())},"processResponseEndOfBody");t.processResponse!=null&&queueMicrotask(()=>{t.processResponse(e),t.processResponse=null});let i=e.type==="error"?e:e.internalResponse??e;i.body==null?n():h8e(i.body.stream,()=>{n()})}o(EU,"fetchFinale");async function Coe(t){let e=t.request,r=null,n=null,i=t.timingInfo;if(e.serviceWorkers,r===null){if(e.redirect==="follow"&&(e.serviceWorkers="none"),n=r=await boe(t),e.responseTainting==="cors"&&zje(e,r)==="failure")return Ht("cors failure");Mje(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&$je(e.origin,e.client,e.destination,n)==="blocked"?Ht("blocked"):(poe.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=Ht("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await v8e(t,r):Xh(!1)),r.timingInfo=i,r)}o(Coe,"httpFetch");function v8e(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,i;try{if(i=qje(n,Lc(r).hash),i==null)return e}catch(a){return Promise.resolve(Ht(a))}if(!wU(i))return Promise.resolve(Ht("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(Ht("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(i.username||i.password)&&!CU(r,i))return Promise.resolve(Ht('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(i.username||i.password))return Promise.resolve(Ht('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(Ht());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!w8e.includes(r.method)){r.method="GET",r.body=null;for(let a of c8e)r.headersList.delete(a)}CU(Lc(r),i)||(r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0)),r.body!=null&&(Xh(r.body.source!=null),r.body=IU(r.body.source)[0]);let s=t.timingInfo;return s.redirectEndTime=s.postRedirectStartTime=Mb(t.crossOriginIsolatedCapability),s.redirectStartTime===0&&(s.redirectStartTime=s.startTime),r.urlList.push(i),Gje(r,n),Eoe(t,!0)}o(v8e,"httpRedirectFetch");async function boe(t,e=!1,r=!1){let n=t.request,i=null,s=null,a=null,c=null,l=!1;n.window==="no-window"&&n.redirect==="error"?(i=t,s=n):(s=Pje(n),i={...t},i.request=s);let u=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",d=s.body?s.body.length:null,f=null;if(s.body==null&&["POST","PUT"].includes(s.method)&&(f="0"),d!=null&&(f=Jv(`${d}`)),f!=null&&s.headersList.append("content-length",f,!0),d!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append("referer",Jv(s.referrer.href),!0),Uje(s),Vje(s),s.headersList.contains("user-agent",!0)||s.headersList.append("user-agent",I8e),s.cache==="default"&&(s.headersList.contains("if-modified-since",!0)||s.headersList.contains("if-none-match",!0)||s.headersList.contains("if-unmodified-since",!0)||s.headersList.contains("if-match",!0)||s.headersList.contains("if-range",!0))&&(s.cache="no-store"),s.cache==="no-cache"&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains("cache-control",!0)&&s.headersList.append("cache-control","max-age=0",!0),(s.cache==="no-store"||s.cache==="reload")&&(s.headersList.contains("pragma",!0)||s.headersList.append("pragma","no-cache",!0),s.headersList.contains("cache-control",!0)||s.headersList.append("cache-control","no-cache",!0)),s.headersList.contains("range",!0)&&s.headersList.append("accept-encoding","identity",!0),s.headersList.contains("accept-encoding",!0)||(e8e(Lc(s))?s.headersList.append("accept-encoding","br, gzip, deflate",!0):s.headersList.append("accept-encoding","gzip, deflate",!0)),s.headersList.delete("host",!0),c==null&&(s.cache="no-store"),s.cache!=="no-store"&&s.cache,a==null){if(s.cache==="only-if-cached")return Ht("only if cached");let h=await N8e(i,u,r);!a8e.has(s.method)&&h.status>=200&&h.status<=399,l&&h.status,a==null&&(a=h)}if(a.urlList=[...s.urlList],s.headersList.contains("range",!0)&&(a.rangeRequested=!0),a.requestIncludesCredentials=u,a.status===407)return n.window==="no-window"?Ht():Kh(t)?jv(t):Ht("proxy authentication required");if(a.status===421&&!r&&(n.body==null||n.body.source!=null)){if(Kh(t))return jv(t);t.controller.connection.destroy(),a=await boe(t,e,!0)}return a}o(boe,"httpNetworkOrCacheFetch");async function N8e(t,e=!1,r=!1){Xh(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(g,A=!0){this.destroyed||(this.destroyed=!0,A&&this.abort?.(g??new DOMException("The operation was aborted.","AbortError")))}};let n=t.request,i=null,s=t.timingInfo;null==null&&(n.cache="no-store");let c=r?"yes":"no";n.mode;let l=null;if(n.body==null&&t.processRequestEndOfBody)queueMicrotask(()=>t.processRequestEndOfBody());else if(n.body!=null){let g=o(async function*(y){Kh(t)||(yield y,t.processRequestBodyChunkLength?.(y.byteLength))},"processBodyChunk"),A=o(()=>{Kh(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},"processEndOfBody"),E=o(y=>{Kh(t)||(y.name==="AbortError"?t.controller.abort():t.controller.terminate(y))},"processBodyError");l=(async function*(){try{for await(let y of n.body.stream)yield*g(y);A()}catch(y){E(y)}})()}try{let{body:g,status:A,statusText:E,headersList:y,socket:C}=await p({body:l});if(C)i=Wv({status:A,statusText:E,headersList:y,socket:C});else{let w=g[Symbol.asyncIterator]();t.controller.next=()=>w.next(),i=Wv({status:A,statusText:E,headersList:y})}}catch(g){return g.name==="AbortError"?(t.controller.connection.destroy(),jv(t,g)):Ht(g)}let u=o(async()=>{await t.controller.resume()},"pullAlgorithm"),d=o(g=>{Kh(t)||t.controller.abort(g)},"cancelAlgorithm"),f=new ReadableStream({async start(g){t.controller.controller=g},async pull(g){await u(g)},async cancel(g){await d(g)},type:"bytes"});i.body={stream:f,source:null,length:null},t.controller.onAborted=h,t.controller.on("terminated",h),t.controller.resume=async()=>{for(;;){let g,A;try{let{done:y,value:C}=await t.controller.next();if(loe(t))break;g=y?void 0:C}catch(y){t.controller.ended&&!s.encodedBodySize?g=void 0:(g=y,A=!0)}if(g===void 0){Xje(t.controller.controller),x8e(t,i);return}if(s.decodedBodySize+=g?.byteLength??0,A){t.controller.terminate(g);return}let E=new Uint8Array(g);if(E.byteLength&&t.controller.controller.enqueue(E),A8e(f)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function h(g){loe(t)?(i.aborted=!0,Yv(f)&&t.controller.controller.error(t.controller.serializedAbortReason)):Yv(f)&&t.controller.controller.error(new TypeError("terminated",{cause:Yje(g)?g:void 0})),t.controller.connection.destroy()}return o(h,"onAborted"),i;function p({body:g}){let A=Lc(n),E=t.controller.dispatcher;return new Promise((y,C)=>E.dispatch({path:A.pathname+A.search,origin:A.origin,method:n.method,body:E.isMockActive?n.body&&(n.body.source||n.body.stream):g,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(w){let{connection:B}=t.controller;s.finalConnectionTimingInfo=t8e(void 0,s.postRedirectStartTime,t.crossOriginIsolatedCapability),B.destroyed?w(new DOMException("The operation was aborted.","AbortError")):(t.controller.on("terminated",w),this.abort=B.abort=w),s.finalNetworkRequestStartTime=Mb(t.crossOriginIsolatedCapability)},onResponseStarted(){s.finalNetworkResponseStartTime=Mb(t.crossOriginIsolatedCapability)},onHeaders(w,B,Q,U){if(w<200)return;let v="",j=new coe;for(let J=0;J<B.length;J+=2)j.append(doe(B[J]),B[J+1].toString("latin1"),!0);v=j.get("location",!0),this.body=new d8e({read:Q});let D=[],H=v&&n.redirect==="follow"&&poe.has(w);if(n.method!=="HEAD"&&n.method!=="CONNECT"&&!Aoe.includes(w)&&!H){let J=j.get("content-encoding",!0),oe=J?J.toLowerCase().split(","):[],ae=5;if(oe.length>ae)return C(new Error(`too many content-encodings in response: ${oe.length}, maximum allowed is ${ae}`)),!0;for(let Ce=oe.length-1;Ce>=0;--Ce){let K=oe[Ce].trim();if(K==="x-gzip"||K==="gzip")D.push(Jd.createGunzip({flush:Jd.constants.Z_SYNC_FLUSH,finishFlush:Jd.constants.Z_SYNC_FLUSH}));else if(K==="deflate")D.push(i8e({flush:Jd.constants.Z_SYNC_FLUSH,finishFlush:Jd.constants.Z_SYNC_FLUSH}));else if(K==="br")D.push(Jd.createBrotliDecompress({flush:Jd.constants.BROTLI_OPERATION_FLUSH,finishFlush:Jd.constants.BROTLI_OPERATION_FLUSH}));else{D.length=0;break}}}let V=this.onError.bind(this);return y({status:w,statusText:U,headersList:j,body:D.length?f8e(this.body,...D,J=>{J&&this.onError(J)}).on("error",V):this.body.on("error",V)}),!0},onData(w){if(t.controller.dump)return;let B=w;return s.encodedBodySize+=B.byteLength,this.body.push(B)},onComplete(){this.abort&&t.controller.off("terminated",this.abort),t.controller.onAborted&&t.controller.off("terminated",t.controller.onAborted),t.controller.ended=!0,this.body.push(null)},onError(w){this.abort&&t.controller.off("terminated",this.abort),this.body?.destroy(w),t.controller.terminate(w),C(w)},onUpgrade(w,B,Q){if(w!==101)return;let U=new coe;for(let v=0;v<B.length;v+=2)U.append(doe(B[v]),B[v+1].toString("latin1"),!0);return y({status:w,statusText:b8e[w],headersList:U,socket:Q}),!0}}))}o(p,"dispatch")}o(N8e,"httpNetworkFetch");woe.exports={fetch:B8e,Fetch:Kv,fetching:yoe,finalizeAndReportTiming:moe}});var SU=m((kjt,Ioe)=>{"use strict";Ioe.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 Boe=m((Ojt,Soe)=>{"use strict";var{webidl:ro}=ai(),Xv=Symbol("ProgressEvent state"),BU=class t extends Event{static{o(this,"ProgressEvent")}constructor(e,r={}){e=ro.converters.DOMString(e,"ProgressEvent constructor","type"),r=ro.converters.ProgressEventInit(r??{}),super(e,r),this[Xv]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return ro.brandCheck(this,t),this[Xv].lengthComputable}get loaded(){return ro.brandCheck(this,t),this[Xv].loaded}get total(){return ro.brandCheck(this,t),this[Xv].total}};ro.converters.ProgressEventInit=ro.dictionaryConverter([{key:"lengthComputable",converter:ro.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"loaded",converter:ro.converters["unsigned long long"],defaultValue:o(()=>0,"defaultValue")},{key:"total",converter:ro.converters["unsigned long long"],defaultValue:o(()=>0,"defaultValue")},{key:"bubbles",converter:ro.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"cancelable",converter:ro.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"composed",converter:ro.converters.boolean,defaultValue:o(()=>!1,"defaultValue")}]);Soe.exports={ProgressEvent:BU}});var voe=m((Fjt,xoe)=>{"use strict";function _8e(t){if(!t)return"failure";switch(t.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}o(_8e,"getEncoding");xoe.exports={getEncoding:_8e}});var koe=m((Ujt,Poe)=>{"use strict";var{kState:Zm,kError:xU,kResult:Noe,kAborted:qb,kLastProgressEventFired:vU}=SU(),{ProgressEvent:T8e}=Boe(),{getEncoding:_oe}=voe(),{serializeAMimeType:R8e,parseMIMEType:Toe}=gs(),{types:D8e}=require("node:util"),{StringDecoder:Roe}=require("string_decoder"),{btoa:Doe}=require("node:buffer"),Q8e={enumerable:!0,writable:!1,configurable:!1};function P8e(t,e,r,n){if(t[Zm]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[Zm]="loading",t[Noe]=null,t[xU]=null;let s=e.stream().getReader(),a=[],c=s.read(),l=!0;(async()=>{for(;!t[qb];)try{let{done:u,value:d}=await c;if(l&&!t[qb]&&queueMicrotask(()=>{Yd("loadstart",t)}),l=!1,!u&&D8e.isUint8Array(d))a.push(d),(t[vU]===void 0||Date.now()-t[vU]>=50)&&!t[qb]&&(t[vU]=Date.now(),queueMicrotask(()=>{Yd("progress",t)})),c=s.read();else if(u){queueMicrotask(()=>{t[Zm]="done";try{let f=k8e(a,r,e.type,n);if(t[qb])return;t[Noe]=f,Yd("load",t)}catch(f){t[xU]=f,Yd("error",t)}t[Zm]!=="loading"&&Yd("loadend",t)});break}}catch(u){if(t[qb])return;queueMicrotask(()=>{t[Zm]="done",t[xU]=u,Yd("error",t),t[Zm]!=="loading"&&Yd("loadend",t)});break}})()}o(P8e,"readOperation");function Yd(t,e){let r=new T8e(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}o(Yd,"fireAProgressEvent");function k8e(t,e,r,n){switch(e){case"DataURL":{let i="data:",s=Toe(r||"application/octet-stream");s!=="failure"&&(i+=R8e(s)),i+=";base64,";let a=new Roe("latin1");for(let c of t)i+=Doe(a.write(c));return i+=Doe(a.end()),i}case"Text":{let i="failure";if(n&&(i=_oe(n)),i==="failure"&&r){let s=Toe(r);s!=="failure"&&(i=_oe(s.parameters.get("charset")))}return i==="failure"&&(i="UTF-8"),O8e(t,i)}case"ArrayBuffer":return Qoe(t).buffer;case"BinaryString":{let i="",s=new Roe("latin1");for(let a of t)i+=s.write(a);return i+=s.end(),i}}}o(k8e,"packageData");function O8e(t,e){let r=Qoe(t),n=L8e(r),i=0;n!==null&&(e=n,i=n==="UTF-8"?3:2);let s=r.slice(i);return new TextDecoder(e).decode(s)}o(O8e,"decode");function L8e(t){let[e,r,n]=t;return e===239&&r===187&&n===191?"UTF-8":e===254&&r===255?"UTF-16BE":e===255&&r===254?"UTF-16LE":null}o(L8e,"BOMSniffing");function Qoe(t){let e=t.reduce((n,i)=>n+i.byteLength,0),r=0;return t.reduce((n,i)=>(n.set(i,r),r+=i.byteLength,n),new Uint8Array(e))}o(Qoe,"combineByteSequences");Poe.exports={staticPropertyDescriptors:Q8e,readOperation:P8e,fireAProgressEvent:Yd}});var Moe=m((Gjt,Foe)=>{"use strict";var{staticPropertyDescriptors:eg,readOperation:Zv,fireAProgressEvent:Ooe}=koe(),{kState:Zh,kError:Loe,kResult:eN,kEvents:Ot,kAborted:F8e}=SU(),{webidl:zt}=ai(),{kEnumerableProperty:Cs}=ot(),ja=class t extends EventTarget{static{o(this,"FileReader")}constructor(){super(),this[Zh]="empty",this[eN]=null,this[Loe]=null,this[Ot]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){zt.brandCheck(this,t),zt.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=zt.converters.Blob(e,{strict:!1}),Zv(this,e,"ArrayBuffer")}readAsBinaryString(e){zt.brandCheck(this,t),zt.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=zt.converters.Blob(e,{strict:!1}),Zv(this,e,"BinaryString")}readAsText(e,r=void 0){zt.brandCheck(this,t),zt.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=zt.converters.Blob(e,{strict:!1}),r!==void 0&&(r=zt.converters.DOMString(r,"FileReader.readAsText","encoding")),Zv(this,e,"Text",r)}readAsDataURL(e){zt.brandCheck(this,t),zt.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=zt.converters.Blob(e,{strict:!1}),Zv(this,e,"DataURL")}abort(){if(this[Zh]==="empty"||this[Zh]==="done"){this[eN]=null;return}this[Zh]==="loading"&&(this[Zh]="done",this[eN]=null),this[F8e]=!0,Ooe("abort",this),this[Zh]!=="loading"&&Ooe("loadend",this)}get readyState(){switch(zt.brandCheck(this,t),this[Zh]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return zt.brandCheck(this,t),this[eN]}get error(){return zt.brandCheck(this,t),this[Loe]}get onloadend(){return zt.brandCheck(this,t),this[Ot].loadend}set onloadend(e){zt.brandCheck(this,t),this[Ot].loadend&&this.removeEventListener("loadend",this[Ot].loadend),typeof e=="function"?(this[Ot].loadend=e,this.addEventListener("loadend",e)):this[Ot].loadend=null}get onerror(){return zt.brandCheck(this,t),this[Ot].error}set onerror(e){zt.brandCheck(this,t),this[Ot].error&&this.removeEventListener("error",this[Ot].error),typeof e=="function"?(this[Ot].error=e,this.addEventListener("error",e)):this[Ot].error=null}get onloadstart(){return zt.brandCheck(this,t),this[Ot].loadstart}set onloadstart(e){zt.brandCheck(this,t),this[Ot].loadstart&&this.removeEventListener("loadstart",this[Ot].loadstart),typeof e=="function"?(this[Ot].loadstart=e,this.addEventListener("loadstart",e)):this[Ot].loadstart=null}get onprogress(){return zt.brandCheck(this,t),this[Ot].progress}set onprogress(e){zt.brandCheck(this,t),this[Ot].progress&&this.removeEventListener("progress",this[Ot].progress),typeof e=="function"?(this[Ot].progress=e,this.addEventListener("progress",e)):this[Ot].progress=null}get onload(){return zt.brandCheck(this,t),this[Ot].load}set onload(e){zt.brandCheck(this,t),this[Ot].load&&this.removeEventListener("load",this[Ot].load),typeof e=="function"?(this[Ot].load=e,this.addEventListener("load",e)):this[Ot].load=null}get onabort(){return zt.brandCheck(this,t),this[Ot].abort}set onabort(e){zt.brandCheck(this,t),this[Ot].abort&&this.removeEventListener("abort",this[Ot].abort),typeof e=="function"?(this[Ot].abort=e,this.addEventListener("abort",e)):this[Ot].abort=null}};ja.EMPTY=ja.prototype.EMPTY=0;ja.LOADING=ja.prototype.LOADING=1;ja.DONE=ja.prototype.DONE=2;Object.defineProperties(ja.prototype,{EMPTY:eg,LOADING:eg,DONE:eg,readAsArrayBuffer:Cs,readAsBinaryString:Cs,readAsText:Cs,readAsDataURL:Cs,abort:Cs,readyState:Cs,result:Cs,error:Cs,onloadstart:Cs,onprogress:Cs,onload:Cs,onabort:Cs,onerror:Cs,onloadend:Cs,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(ja,{EMPTY:eg,LOADING:eg,DONE:eg});Foe.exports={FileReader:ja}});var tN=m((Vjt,Uoe)=>{"use strict";Uoe.exports={kConstruct:Ar().kConstruct}});var Hoe=m((zjt,Goe)=>{"use strict";var M8e=require("node:assert"),{URLSerializer:qoe}=gs(),{isValidHeaderName:U8e}=Js();function q8e(t,e,r=!1){let n=qoe(t,r),i=qoe(e,r);return n===i}o(q8e,"urlEquals");function G8e(t){M8e(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),U8e(r)&&e.push(r);return e}o(G8e,"getFieldValues");Goe.exports={urlEquals:q8e,getFieldValues:G8e}});var $oe=m((jjt,zoe)=>{"use strict";var{kConstruct:H8e}=tN(),{urlEquals:V8e,getFieldValues:NU}=Hoe(),{kEnumerableProperty:ep,isDisturbed:z8e}=ot(),{webidl:ve}=ai(),{Response:$8e,cloneResponse:j8e,fromInnerResponse:W8e}=Fb(),{Request:Tu,fromInnerRequest:J8e}=Xm(),{kState:Wa}=Ld(),{fetching:Y8e}=Ub(),{urlIsHttpHttpsScheme:rN,createDeferredPromise:tg,readAllBytes:K8e}=Js(),_U=require("node:assert"),nN=class t{static{o(this,"Cache")}#e;constructor(){arguments[0]!==H8e&&ve.illegalConstructor(),ve.util.markAsUncloneable(this),this.#e=arguments[1]}async match(e,r={}){ve.brandCheck(this,t);let n="Cache.match";ve.argumentLengthCheck(arguments,1,n),e=ve.converters.RequestInfo(e,n,"request"),r=ve.converters.CacheQueryOptions(r,n,"options");let i=this.#i(e,r,1);if(i.length!==0)return i[0]}async matchAll(e=void 0,r={}){ve.brandCheck(this,t);let n="Cache.matchAll";return e!==void 0&&(e=ve.converters.RequestInfo(e,n,"request")),r=ve.converters.CacheQueryOptions(r,n,"options"),this.#i(e,r)}async add(e){ve.brandCheck(this,t);let r="Cache.add";ve.argumentLengthCheck(arguments,1,r),e=ve.converters.RequestInfo(e,r,"request");let n=[e];return await this.addAll(n)}async addAll(e){ve.brandCheck(this,t);let r="Cache.addAll";ve.argumentLengthCheck(arguments,1,r);let n=[],i=[];for(let h of e){if(h===void 0)throw ve.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(h=ve.converters.RequestInfo(h),typeof h=="string")continue;let p=h[Wa];if(!rN(p.url)||p.method!=="GET")throw ve.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let s=[];for(let h of e){let p=new Tu(h)[Wa];if(!rN(p.url))throw ve.errors.exception({header:r,message:"Expected http/s scheme."});p.initiator="fetch",p.destination="subresource",i.push(p);let g=tg();s.push(Y8e({request:p,processResponse(A){if(A.type==="error"||A.status===206||A.status<200||A.status>299)g.reject(ve.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(A.headersList.contains("vary")){let E=NU(A.headersList.get("vary"));for(let y of E)if(y==="*"){g.reject(ve.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let C of s)C.abort();return}}},processResponseEndOfBody(A){if(A.aborted){g.reject(new DOMException("aborted","AbortError"));return}g.resolve(A)}})),n.push(g.promise)}let c=await Promise.all(n),l=[],u=0;for(let h of c){let p={type:"put",request:i[u],response:h};l.push(p),u++}let d=tg(),f=null;try{this.#r(l)}catch(h){f=h}return queueMicrotask(()=>{f===null?d.resolve(void 0):d.reject(f)}),d.promise}async put(e,r){ve.brandCheck(this,t);let n="Cache.put";ve.argumentLengthCheck(arguments,2,n),e=ve.converters.RequestInfo(e,n,"request"),r=ve.converters.Response(r,n,"response");let i=null;if(e instanceof Tu?i=e[Wa]:i=new Tu(e)[Wa],!rN(i.url)||i.method!=="GET")throw ve.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"});let s=r[Wa];if(s.status===206)throw ve.errors.exception({header:n,message:"Got 206 status"});if(s.headersList.contains("vary")){let p=NU(s.headersList.get("vary"));for(let g of p)if(g==="*")throw ve.errors.exception({header:n,message:"Got * vary field value"})}if(s.body&&(z8e(s.body.stream)||s.body.stream.locked))throw ve.errors.exception({header:n,message:"Response body is locked or disturbed"});let a=j8e(s),c=tg();if(s.body!=null){let g=s.body.stream.getReader();K8e(g).then(c.resolve,c.reject)}else c.resolve(void 0);let l=[],u={type:"put",request:i,response:a};l.push(u);let d=await c.promise;a.body!=null&&(a.body.source=d);let f=tg(),h=null;try{this.#r(l)}catch(p){h=p}return queueMicrotask(()=>{h===null?f.resolve():f.reject(h)}),f.promise}async delete(e,r={}){ve.brandCheck(this,t);let n="Cache.delete";ve.argumentLengthCheck(arguments,1,n),e=ve.converters.RequestInfo(e,n,"request"),r=ve.converters.CacheQueryOptions(r,n,"options");let i=null;if(e instanceof Tu){if(i=e[Wa],i.method!=="GET"&&!r.ignoreMethod)return!1}else _U(typeof e=="string"),i=new Tu(e)[Wa];let s=[],a={type:"delete",request:i,options:r};s.push(a);let c=tg(),l=null,u;try{u=this.#r(s)}catch(d){l=d}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(e=void 0,r={}){ve.brandCheck(this,t);let n="Cache.keys";e!==void 0&&(e=ve.converters.RequestInfo(e,n,"request")),r=ve.converters.CacheQueryOptions(r,n,"options");let i=null;if(e!==void 0)if(e instanceof Tu){if(i=e[Wa],i.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(i=new Tu(e)[Wa]);let s=tg(),a=[];if(e===void 0)for(let c of this.#e)a.push(c[0]);else{let c=this.#n(i,r);for(let l of c)a.push(l[0])}return queueMicrotask(()=>{let c=[];for(let l of a){let u=J8e(l,new AbortController().signal,"immutable");c.push(u)}s.resolve(Object.freeze(c))}),s.promise}#r(e){let r=this.#e,n=[...r],i=[],s=[];try{for(let a of e){if(a.type!=="delete"&&a.type!=="put")throw ve.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(a.type==="delete"&&a.response!=null)throw ve.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#n(a.request,a.options,i).length)throw new DOMException("???","InvalidStateError");let c;if(a.type==="delete"){if(c=this.#n(a.request,a.options),c.length===0)return[];for(let l of c){let u=r.indexOf(l);_U(u!==-1),r.splice(u,1)}}else if(a.type==="put"){if(a.response==null)throw ve.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let l=a.request;if(!rN(l.url))throw ve.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(l.method!=="GET")throw ve.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(a.options!=null)throw ve.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});c=this.#n(a.request);for(let u of c){let d=r.indexOf(u);_U(d!==-1),r.splice(d,1)}r.push([a.request,a.response]),i.push([a.request,a.response])}s.push([a.request,a.response])}return s}catch(a){throw this.#e.length=0,this.#e=n,a}}#n(e,r,n){let i=[],s=n??this.#e;for(let a of s){let[c,l]=a;this.#t(e,c,l,r)&&i.push(a)}return i}#t(e,r,n=null,i){let s=new URL(e.url),a=new URL(r.url);if(i?.ignoreSearch&&(a.search="",s.search=""),!V8e(s,a,!0))return!1;if(n==null||i?.ignoreVary||!n.headersList.contains("vary"))return!0;let c=NU(n.headersList.get("vary"));for(let l of c){if(l==="*")return!1;let u=r.headersList.get(l),d=e.headersList.get(l);if(u!==d)return!1}return!0}#i(e,r,n=1/0){let i=null;if(e!==void 0)if(e instanceof Tu){if(i=e[Wa],i.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(i=new Tu(e)[Wa]);let s=[];if(e===void 0)for(let c of this.#e)s.push(c[1]);else{let c=this.#n(i,r);for(let l of c)s.push(l[1])}let a=[];for(let c of s){let l=W8e(c,"immutable");if(a.push(l.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(nN.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:ep,matchAll:ep,add:ep,addAll:ep,put:ep,delete:ep,keys:ep});var Voe=[{key:"ignoreSearch",converter:ve.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"ignoreMethod",converter:ve.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"ignoreVary",converter:ve.converters.boolean,defaultValue:o(()=>!1,"defaultValue")}];ve.converters.CacheQueryOptions=ve.dictionaryConverter(Voe);ve.converters.MultiCacheQueryOptions=ve.dictionaryConverter([...Voe,{key:"cacheName",converter:ve.converters.DOMString}]);ve.converters.Response=ve.interfaceConverter($8e);ve.converters["sequence<RequestInfo>"]=ve.sequenceConverter(ve.converters.RequestInfo);zoe.exports={Cache:nN}});var Woe=m((Jjt,joe)=>{"use strict";var{kConstruct:Gb}=tN(),{Cache:iN}=$oe(),{webidl:Si}=ai(),{kEnumerableProperty:Hb}=ot(),sN=class t{static{o(this,"CacheStorage")}#e=new Map;constructor(){arguments[0]!==Gb&&Si.illegalConstructor(),Si.util.markAsUncloneable(this)}async match(e,r={}){if(Si.brandCheck(this,t),Si.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=Si.converters.RequestInfo(e),r=Si.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(this.#e.has(r.cacheName)){let n=this.#e.get(r.cacheName);return await new iN(Gb,n).match(e,r)}}else for(let n of this.#e.values()){let s=await new iN(Gb,n).match(e,r);if(s!==void 0)return s}}async has(e){Si.brandCheck(this,t);let r="CacheStorage.has";return Si.argumentLengthCheck(arguments,1,r),e=Si.converters.DOMString(e,r,"cacheName"),this.#e.has(e)}async open(e){Si.brandCheck(this,t);let r="CacheStorage.open";if(Si.argumentLengthCheck(arguments,1,r),e=Si.converters.DOMString(e,r,"cacheName"),this.#e.has(e)){let i=this.#e.get(e);return new iN(Gb,i)}let n=[];return this.#e.set(e,n),new iN(Gb,n)}async delete(e){Si.brandCheck(this,t);let r="CacheStorage.delete";return Si.argumentLengthCheck(arguments,1,r),e=Si.converters.DOMString(e,r,"cacheName"),this.#e.delete(e)}async keys(){return Si.brandCheck(this,t),[...this.#e.keys()]}};Object.defineProperties(sN.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:Hb,has:Hb,open:Hb,delete:Hb,keys:Hb});joe.exports={CacheStorage:sN}});var Yoe=m((Kjt,Joe)=>{"use strict";Joe.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var DU=m((Xjt,eae)=>{"use strict";function X8e(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r>=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}o(X8e,"isCTLExcludingHtab");function TU(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<33||r>126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125)throw new Error("Invalid cookie name")}}o(TU,"validateCookieName");function RU(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(;r<e;){let n=t.charCodeAt(r++);if(n<33||n>126||n===34||n===44||n===59||n===92)throw new Error("Invalid cookie value")}}o(RU,"validateCookieValue");function Xoe(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<32||r>126||r===59)throw new Error("Invalid cookie path")}}o(Xoe,"validateCookiePath");function Koe(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}o(Koe,"isLetterOrDigit");function Z8e(t){if(t===" ")return;if(t.length>255)throw new Error("Invalid cookie domain");let e=0;for(let r=0;r<t.length;++r){let n=t.charCodeAt(r);if(n===46){if(e===0)throw new Error("Invalid cookie domain");if(t.charCodeAt(r-1)===45)throw new Error("Invalid cookie domain");e=0;continue}if(e===0&&!Koe(n))throw new Error("Invalid cookie domain");if(!Koe(n)&&n!==45)throw new Error("Invalid cookie domain");if(++e>63)throw new Error("Invalid cookie domain")}if(e===0||t.charCodeAt(t.length-1)===45)throw new Error("Invalid cookie domain")}o(Z8e,"validateCookieDomain");var e6e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],t6e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],oN=Array(61).fill(0).map((t,e)=>e.toString().padStart(2,"0"));function Zoe(t){return typeof t=="number"&&(t=new Date(t)),`${e6e[t.getUTCDay()]}, ${oN[t.getUTCDate()]} ${t6e[t.getUTCMonth()]} ${t.getUTCFullYear()} ${oN[t.getUTCHours()]}:${oN[t.getUTCMinutes()]}:${oN[t.getUTCSeconds()]} GMT`}o(Zoe,"toIMFDate");function r6e(t){if(t<0)throw new Error("Invalid cookie max-age")}o(r6e,"validateCookieMaxAge");function n6e(t){if(t.name.length===0)return null;TU(t.name),RU(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"&&(r6e(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(Z8e(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(Xoe(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${Zoe(t.expires)}`),t.sameSite&&e.push(`SameSite=${t.sameSite}`);for(let r of t.unparsed){if(!r.includes("="))throw new Error("Invalid unparsed");let[n,...i]=r.split("="),s=n.trim(),a=i.join("=");TU(s),RU(a),e.push(`${s}=${a}`)}return e.join("; ")}o(n6e,"stringify");eae.exports={isCTLExcludingHtab:X8e,validateCookieName:TU,validateCookiePath:Xoe,validateCookieValue:RU,toIMFDate:Zoe,stringify:n6e}});var rae=m((e8t,tae)=>{"use strict";var{maxNameValuePairSize:i6e,maxAttributeValueSize:s6e}=Yoe(),{isCTLExcludingHtab:o6e}=DU(),{collectASequenceOfCodePointsFast:aN}=gs(),a6e=require("node:assert");function c6e(t){if(o6e(t))return null;let e="",r="",n="",i="";if(t.includes(";")){let s={position:0};e=aN(";",t,s),r=t.slice(s.position)}else e=t;if(!e.includes("="))i=e;else{let s={position:0};n=aN("=",e,s),i=e.slice(s.position+1)}return n=n.trim(),i=i.trim(),n.length+i.length>i6e?null:{name:n,value:i,...rg(r)}}o(c6e,"parseSetCookie");function rg(t,e={}){if(t.length===0)return e;a6e(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=aN(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",i="";if(r.includes("=")){let a={position:0};n=aN("=",r,a),i=r.slice(a.position+1)}else n=r;if(n=n.trim(),i=i.trim(),i.length>s6e)return rg(t,e);let s=n.toLowerCase();if(s==="expires"){let a=new Date(i);e.expires=a}else if(s==="max-age"){let a=i.charCodeAt(0);if((a<48||a>57)&&i[0]!=="-"||!/^\d+$/.test(i))return rg(t,e);let c=Number(i);e.maxAge=c}else if(s==="domain"){let a=i;a[0]==="."&&(a=a.slice(1)),a=a.toLowerCase(),e.domain=a}else if(s==="path"){let a="";i.length===0||i[0]!=="/"?a="/":a=i,e.path=a}else if(s==="secure")e.secure=!0;else if(s==="httponly")e.httpOnly=!0;else if(s==="samesite"){let a=i.toLowerCase();a==="none"?e.sameSite="None":a==="strict"?e.sameSite="Strict":a==="lax"&&(e.sameSite="Lax")}else e.unparsed??=[],e.unparsed.push(`${n}=${i}`);return rg(t,e)}o(rg,"parseUnparsedAttributes");tae.exports={parseSetCookie:c6e,parseUnparsedAttributes:rg}});var sae=m((r8t,iae)=>{"use strict";var{parseSetCookie:l6e}=rae(),{stringify:u6e}=DU(),{webidl:mt}=ai(),{Headers:cN}=Jh();function d6e(t){mt.argumentLengthCheck(arguments,1,"getCookies"),mt.brandCheck(t,cN,{strict:!1});let e=t.get("cookie"),r={};if(!e)return r;for(let n of e.split(";")){let[i,...s]=n.split("=");r[i.trim()]=s.join("=")}return r}o(d6e,"getCookies");function f6e(t,e,r){mt.brandCheck(t,cN,{strict:!1});let n="deleteCookie";mt.argumentLengthCheck(arguments,2,n),e=mt.converters.DOMString(e,n,"name"),r=mt.converters.DeleteCookieAttributes(r),nae(t,{name:e,value:"",expires:new Date(0),...r})}o(f6e,"deleteCookie");function h6e(t){mt.argumentLengthCheck(arguments,1,"getSetCookies"),mt.brandCheck(t,cN,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>l6e(r)):[]}o(h6e,"getSetCookies");function nae(t,e){mt.argumentLengthCheck(arguments,2,"setCookie"),mt.brandCheck(t,cN,{strict:!1}),e=mt.converters.Cookie(e);let r=u6e(e);r&&t.append("Set-Cookie",r)}o(nae,"setCookie");mt.converters.DeleteCookieAttributes=mt.dictionaryConverter([{converter:mt.nullableConverter(mt.converters.DOMString),key:"path",defaultValue:o(()=>null,"defaultValue")},{converter:mt.nullableConverter(mt.converters.DOMString),key:"domain",defaultValue:o(()=>null,"defaultValue")}]);mt.converters.Cookie=mt.dictionaryConverter([{converter:mt.converters.DOMString,key:"name"},{converter:mt.converters.DOMString,key:"value"},{converter:mt.nullableConverter(t=>typeof t=="number"?mt.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:o(()=>null,"defaultValue")},{converter:mt.nullableConverter(mt.converters["long long"]),key:"maxAge",defaultValue:o(()=>null,"defaultValue")},{converter:mt.nullableConverter(mt.converters.DOMString),key:"domain",defaultValue:o(()=>null,"defaultValue")},{converter:mt.nullableConverter(mt.converters.DOMString),key:"path",defaultValue:o(()=>null,"defaultValue")},{converter:mt.nullableConverter(mt.converters.boolean),key:"secure",defaultValue:o(()=>null,"defaultValue")},{converter:mt.nullableConverter(mt.converters.boolean),key:"httpOnly",defaultValue:o(()=>null,"defaultValue")},{converter:mt.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:mt.sequenceConverter(mt.converters.DOMString),key:"unparsed",defaultValue:o(()=>new Array(0),"defaultValue")}]);iae.exports={getCookies:d6e,deleteCookie:f6e,getSetCookies:h6e,setCookie:nae}});var ig=m((i8t,aae)=>{"use strict";var{webidl:Be}=ai(),{kEnumerableProperty:bs}=ot(),{kConstruct:oae}=Ar(),{MessagePort:p6e}=require("node:worker_threads"),ng=class t extends Event{static{o(this,"MessageEvent")}#e;constructor(e,r={}){if(e===oae){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,i=null,s="",a="",c=null,l=[]){return Be.brandCheck(this,t),Be.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new t(e,{bubbles:r,cancelable:n,data:i,origin:s,lastEventId:a,source:c,ports:l})}static createFastMessageEvent(e,r){let n=new t(oae,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:A6e}=ng;delete ng.createFastMessageEvent;var lN=class t extends Event{static{o(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}},uN=class t extends Event{static{o(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(ng.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:bs,origin:bs,lastEventId:bs,source:bs,ports:bs,initMessageEvent:bs});Object.defineProperties(lN.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:bs,code:bs,wasClean:bs});Object.defineProperties(uN.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:bs,filename:bs,lineno:bs,colno:bs,error:bs});Be.converters.MessagePort=Be.interfaceConverter(p6e);Be.converters["sequence<MessagePort>"]=Be.sequenceConverter(Be.converters.MessagePort);var QU=[{key:"bubbles",converter:Be.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"cancelable",converter:Be.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"composed",converter:Be.converters.boolean,defaultValue:o(()=>!1,"defaultValue")}];Be.converters.MessageEventInit=Be.dictionaryConverter([...QU,{key:"data",converter:Be.converters.any,defaultValue:o(()=>null,"defaultValue")},{key:"origin",converter:Be.converters.USVString,defaultValue:o(()=>"","defaultValue")},{key:"lastEventId",converter:Be.converters.DOMString,defaultValue:o(()=>"","defaultValue")},{key:"source",converter:Be.nullableConverter(Be.converters.MessagePort),defaultValue:o(()=>null,"defaultValue")},{key:"ports",converter:Be.converters["sequence<MessagePort>"],defaultValue:o(()=>new Array(0),"defaultValue")}]);Be.converters.CloseEventInit=Be.dictionaryConverter([...QU,{key:"wasClean",converter:Be.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"code",converter:Be.converters["unsigned short"],defaultValue:o(()=>0,"defaultValue")},{key:"reason",converter:Be.converters.USVString,defaultValue:o(()=>"","defaultValue")}]);Be.converters.ErrorEventInit=Be.dictionaryConverter([...QU,{key:"message",converter:Be.converters.DOMString,defaultValue:o(()=>"","defaultValue")},{key:"filename",converter:Be.converters.USVString,defaultValue:o(()=>"","defaultValue")},{key:"lineno",converter:Be.converters["unsigned long"],defaultValue:o(()=>0,"defaultValue")},{key:"colno",converter:Be.converters["unsigned long"],defaultValue:o(()=>0,"defaultValue")},{key:"error",converter:Be.converters.any}]);aae.exports={MessageEvent:ng,CloseEvent:lN,ErrorEvent:uN,createFastMessageEvent:A6e}});var tp=m((o8t,cae)=>{"use strict";var m6e="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",g6e={enumerable:!0,writable:!1,configurable:!1},y6e={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},E6e={NOT_SENT:0,PROCESSING:1,SENT:2},C6e={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},b6e=2**16-1,w6e={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},I6e=Buffer.allocUnsafe(0),S6e={string:1,typedArray:2,arrayBuffer:3,blob:4};cae.exports={uid:m6e,sentCloseFrameState:E6e,staticPropertyDescriptors:g6e,states:y6e,opcodes:C6e,maxUnsigned16Bit:b6e,parserStates:w6e,emptyBuffer:I6e,sendHints:S6e}});var Vb=m((a8t,lae)=>{"use strict";lae.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 jb=m((c8t,yae)=>{"use strict";var{kReadyState:zb,kController:B6e,kResponse:x6e,kBinaryType:v6e,kWebSocketURL:N6e}=Vb(),{states:$b,opcodes:Kd}=tp(),{ErrorEvent:_6e,createFastMessageEvent:T6e}=ig(),{isUtf8:R6e}=require("node:buffer"),{collectASequenceOfCodePointsFast:D6e,removeHTTPWhitespace:uae}=gs();function Q6e(t){return t[zb]===$b.CONNECTING}o(Q6e,"isConnecting");function P6e(t){return t[zb]===$b.OPEN}o(P6e,"isEstablished");function k6e(t){return t[zb]===$b.CLOSING}o(k6e,"isClosing");function O6e(t){return t[zb]===$b.CLOSED}o(O6e,"isClosed");function PU(t,e,r=(i,s)=>new Event(i,s),n={}){let i=r(t,n);e.dispatchEvent(i)}o(PU,"fireEvent");function L6e(t,e,r){if(t[zb]!==$b.OPEN)return;let n;if(e===Kd.TEXT)try{n=gae(r)}catch{fae(t,"Received invalid UTF-8 in text frame.");return}else e===Kd.BINARY&&(t[v6e]==="blob"?n=new Blob([r]):n=F6e(r));PU("message",t,T6e,{origin:t[N6e].origin,data:n})}o(L6e,"websocketMessageReceived");function F6e(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}o(F6e,"toArrayBuffer");function M6e(t){if(t.length===0)return!1;for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<33||r>126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125)return!1}return!0}o(M6e,"isValidSubprotocol");function U6e(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}o(U6e,"isValidStatusCode");function fae(t,e){let{[B6e]:r,[x6e]:n}=t;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&PU("error",t,(i,s)=>new _6e(i,s),{error:new Error(e),message:e})}o(fae,"failWebsocketConnection");function hae(t){return t===Kd.CLOSE||t===Kd.PING||t===Kd.PONG}o(hae,"isControlFrame");function pae(t){return t===Kd.CONTINUATION}o(pae,"isContinuationFrame");function Aae(t){return t===Kd.TEXT||t===Kd.BINARY}o(Aae,"isTextBinaryFrame");function q6e(t){return Aae(t)||pae(t)||hae(t)}o(q6e,"isValidOpcode");function G6e(t){let e={position:0},r=new Map;for(;e.position<t.length;){let n=D6e(";",t,e),[i,s=""]=n.split("=");r.set(uae(i,!0,!1),uae(s,!1,!0)),e.position++}return r}o(G6e,"parseExtensions");function H6e(t){if(t.length===0)return!1;for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(n<48||n>57)return!1}let e=Number.parseInt(t,10);return e>=8&&e<=15}o(H6e,"isValidClientWindowBits");var mae=typeof process.versions.icu=="string",dae=mae?new TextDecoder("utf-8",{fatal:!0}):void 0,gae=mae?dae.decode.bind(dae):function(t){if(R6e(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};yae.exports={isConnecting:Q6e,isEstablished:P6e,isClosing:k6e,isClosed:O6e,fireEvent:PU,isValidSubprotocol:M6e,isValidStatusCode:U6e,failWebsocketConnection:fae,websocketMessageReceived:L6e,utf8Decode:gae,isControlFrame:hae,isContinuationFrame:pae,isTextBinaryFrame:Aae,isValidOpcode:q6e,parseExtensions:G6e,isValidClientWindowBits:H6e}});var fN=m((u8t,Eae)=>{"use strict";var{maxUnsigned16Bit:V6e}=tp(),dN=16386,kU,Wb=null,sg=dN;try{kU=require("node:crypto")}catch{kU={randomFillSync:o(function(e,r,n){for(let i=0;i<e.length;++i)e[i]=Math.random()*255|0;return e},"randomFillSync")}}function z6e(){return sg===dN&&(sg=0,kU.randomFillSync(Wb??=Buffer.allocUnsafe(dN),0,dN)),[Wb[sg++],Wb[sg++],Wb[sg++],Wb[sg++]]}o(z6e,"generateMask");var OU=class{static{o(this,"WebsocketFrameSend")}constructor(e){this.frameData=e}createFrame(e){let r=this.frameData,n=z6e(),i=r?.byteLength??0,s=i,a=6;i>V6e?(a+=8,s=127):i>125&&(a+=2,s=126);let c=Buffer.allocUnsafe(i+a);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e;c[a-4]=n[0],c[a-3]=n[1],c[a-2]=n[2],c[a-1]=n[3],c[1]=s,s===126?c.writeUInt16BE(i,2):s===127&&(c[2]=c[3]=0,c.writeUIntBE(i,4,6)),c[1]|=128;for(let l=0;l<i;++l)c[a+l]=r[l]^n[l&3];return c}};Eae.exports={WebsocketFrameSend:OU}});var FU=m((f8t,xae)=>{"use strict";var{uid:$6e,states:Jb,sentCloseFrameState:hN,emptyBuffer:j6e,opcodes:W6e}=tp(),{kReadyState:Yb,kSentClose:pN,kByteParser:bae,kReceivedClose:Cae,kResponse:wae}=Vb(),{fireEvent:J6e,failWebsocketConnection:Xd,isClosing:Y6e,isClosed:K6e,isEstablished:X6e,parseExtensions:Z6e}=jb(),{channels:og}=mm(),{CloseEvent:eWe}=ig(),{makeRequest:tWe}=Xm(),{fetching:rWe}=Ub(),{Headers:nWe,getHeadersList:iWe}=Jh(),{getDecodeSplit:sWe}=Js(),{WebsocketFrameSend:oWe}=fN(),LU;try{LU=require("node:crypto")}catch{}function aWe(t,e,r,n,i,s){let a=t;a.protocol=t.protocol==="ws:"?"http:":"https:";let c=tWe({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(s.headers){let f=iWe(new nWe(s.headers));c.headersList=f}let l=LU.randomBytes(16).toString("base64");c.headersList.append("sec-websocket-key",l),c.headersList.append("sec-websocket-version","13");for(let f of e)c.headersList.append("sec-websocket-protocol",f);return c.headersList.append("sec-websocket-extensions","permessage-deflate; client_max_window_bits"),rWe({request:c,useParallelQueue:!0,dispatcher:s.dispatcher,processResponse(f){if(f.type==="error"||f.status!==101){Xd(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!f.headersList.get("Sec-WebSocket-Protocol")){Xd(n,"Server did not respond with sent protocols.");return}if(f.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){Xd(n,'Server did not set Upgrade header to "websocket".');return}if(f.headersList.get("Connection")?.toLowerCase()!=="upgrade"){Xd(n,'Server did not set Connection header to "upgrade".');return}let h=f.headersList.get("Sec-WebSocket-Accept"),p=LU.createHash("sha1").update(l+$6e).digest("base64");if(h!==p){Xd(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let g=f.headersList.get("Sec-WebSocket-Extensions"),A;if(g!==null&&(A=Z6e(g),!A.has("permessage-deflate"))){Xd(n,"Sec-WebSocket-Extensions header does not match.");return}let E=f.headersList.get("Sec-WebSocket-Protocol");if(E!==null&&!sWe("sec-websocket-protocol",c.headersList).includes(E)){Xd(n,"Protocol was not set in the opening handshake.");return}f.socket.on("data",Iae),f.socket.on("close",Sae),f.socket.on("error",Bae),og.open.hasSubscribers&&og.open.publish({address:f.socket.address(),protocol:E,extensions:g}),i(f,A)}})}o(aWe,"establishWebSocketConnection");function cWe(t,e,r,n){if(!(Y6e(t)||K6e(t)))if(!X6e(t))Xd(t,"Connection was closed before it was established."),t[Yb]=Jb.CLOSING;else if(t[pN]===hN.NOT_SENT){t[pN]=hN.PROCESSING;let i=new oWe;e!==void 0&&r===void 0?(i.frameData=Buffer.allocUnsafe(2),i.frameData.writeUInt16BE(e,0)):e!==void 0&&r!==void 0?(i.frameData=Buffer.allocUnsafe(2+n),i.frameData.writeUInt16BE(e,0),i.frameData.write(r,2,"utf-8")):i.frameData=j6e,t[wae].socket.write(i.createFrame(W6e.CLOSE)),t[pN]=hN.SENT,t[Yb]=Jb.CLOSING}else t[Yb]=Jb.CLOSING}o(cWe,"closeWebSocketConnection");function Iae(t){this.ws[bae].write(t)||this.pause()}o(Iae,"onSocketData");function Sae(){let{ws:t}=this,{[wae]:e}=t;e.socket.off("data",Iae),e.socket.off("close",Sae),e.socket.off("error",Bae);let r=t[pN]===hN.SENT&&t[Cae],n=1005,i="",s=t[bae].closingInfo;s&&!s.error?(n=s.code??1005,i=s.reason):t[Cae]||(n=1006),t[Yb]=Jb.CLOSED,J6e("close",t,(a,c)=>new eWe(a,c),{wasClean:r,code:n,reason:i}),og.close.hasSubscribers&&og.close.publish({websocket:t,code:n,reason:i})}o(Sae,"onSocketClose");function Bae(t){let{ws:e}=this;e[Yb]=Jb.CLOSING,og.socketError.hasSubscribers&&og.socketError.publish(t),this.destroy()}o(Bae,"onSocketError");xae.exports={establishWebSocketConnection:aWe,closeWebSocketConnection:cWe}});var Nae=m((p8t,vae)=>{"use strict";var{createInflateRaw:lWe,Z_DEFAULT_WINDOWBITS:uWe}=require("node:zlib"),{isValidClientWindowBits:dWe}=jb(),{MessageSizeExceededError:fWe}=Tt(),hWe=Buffer.from([0,0,255,255]),AN=Symbol("kBuffer"),Kb=Symbol("kLength"),MU=class{static{o(this,"PerMessageDeflate")}#e;#r={};#n=0;constructor(e,r){this.#r.serverNoContextTakeover=e.has("server_no_context_takeover"),this.#r.serverMaxWindowBits=e.get("server_max_window_bits"),this.#n=r.maxPayloadSize}decompress(e,r,n){if(!this.#e){let i=uWe;if(this.#r.serverMaxWindowBits){if(!dWe(this.#r.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}i=Number.parseInt(this.#r.serverMaxWindowBits)}try{this.#e=lWe({windowBits:i})}catch(s){n(s);return}this.#e[AN]=[],this.#e[Kb]=0,this.#e.on("data",s=>{if(this.#e[Kb]+=s.length,this.#n>0&&this.#e[Kb]>this.#n){n(new fWe),this.#e.removeAllListeners(),this.#e=null;return}this.#e[AN].push(s)}),this.#e.on("error",s=>{this.#e=null,n(s)})}this.#e.write(e),r&&this.#e.write(hWe),this.#e.flush(()=>{if(!this.#e)return;let i=Buffer.concat(this.#e[AN],this.#e[Kb]);this.#e[AN].length=0,this.#e[Kb]=0,n(null,i)})}};vae.exports={PerMessageDeflate:MU}});var Fae=m((m8t,Lae)=>{"use strict";var{Writable:pWe}=require("node:stream"),AWe=require("node:assert"),{parserStates:ws,opcodes:ag,states:mWe,emptyBuffer:_ae,sentCloseFrameState:Tae}=tp(),{kReadyState:gWe,kSentClose:Rae,kResponse:Dae,kReceivedClose:Qae}=Vb(),{channels:mN}=mm(),{isValidStatusCode:yWe,isValidOpcode:EWe,failWebsocketConnection:no,websocketMessageReceived:Pae,utf8Decode:CWe,isControlFrame:UU,isTextBinaryFrame:qU,isContinuationFrame:bWe}=jb(),{WebsocketFrameSend:kae}=fN(),{closeWebSocketConnection:Oae}=FU(),{PerMessageDeflate:wWe}=Nae(),{MessageSizeExceededError:GU}=Tt();function Xb(t,e,r){Oae(t,e,r,Buffer.byteLength(r)),no(t,r)}o(Xb,"failWebsocketConnectionWithCode");var HU=class extends pWe{static{o(this,"ByteParser")}#e=[];#r=0;#n=0;#t=!1;#i=ws.INFO;#s={};#l=[];#a;#c;#o;constructor(e,r,n={}){super(),this.ws=e,this.#a=r??new Map,this.#c=n.maxFragments??0,this.#o=n.maxPayloadSize??0,this.#a.has("permessage-deflate")&&this.#a.set("permessage-deflate",new wWe(r,n))}_write(e,r,n){this.#e.push(e),this.#n+=e.length,this.#t=!0,this.run(n)}#f(){return this.#o>0&&!UU(this.#s.opcode)&&this.#s.payloadLength+this.#r>this.#o?(Xb(this.ws,1009,"Payload size exceeds maximum allowed size"),!1):!0}run(e){for(;this.#t;)if(this.#i===ws.INFO){if(this.#n<2)return e();let r=this.consume(2),n=(r[0]&128)!==0,i=r[0]&15,s=(r[1]&128)===128,a=!n&&i!==ag.CONTINUATION,c=r[1]&127,l=r[0]&64,u=r[0]&32,d=r[0]&16;if(!EWe(i))return no(this.ws,"Invalid opcode received"),e();if(s)return no(this.ws,"Frame cannot be masked"),e();if(l!==0&&!this.#a.has("permessage-deflate")){no(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){no(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!qU(i)){no(this.ws,"Invalid frame type was fragmented.");return}if(qU(i)&&this.#l.length>0){no(this.ws,"Expected continuation frame");return}if(this.#s.fragmented&&a){no(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&UU(i)){no(this.ws,"Control frame either too large or fragmented");return}if(bWe(i)&&this.#l.length===0&&!this.#s.compressed){no(this.ws,"Unexpected continuation frame");return}if(c<=125){if(this.#s.payloadLength=c,this.#i=ws.READ_DATA,!this.#f())return}else c===126?this.#i=ws.PAYLOADLENGTH_16:c===127&&(this.#i=ws.PAYLOADLENGTH_64);qU(i)&&(this.#s.binaryType=i,this.#s.compressed=l!==0),this.#s.opcode=i,this.#s.masked=s,this.#s.fin=n,this.#s.fragmented=a}else if(this.#i===ws.PAYLOADLENGTH_16){if(this.#n<2)return e();let r=this.consume(2);if(this.#s.payloadLength=r.readUInt16BE(0),this.#i=ws.READ_DATA,!this.#f())return}else if(this.#i===ws.PAYLOADLENGTH_64){if(this.#n<8)return e();let r=this.consume(8),n=r.readUInt32BE(0),i=r.readUInt32BE(4);if(n!==0||i>2**31-1){no(this.ws,"Received payload length > 2^31 bytes.");return}if(this.#s.payloadLength=i,this.#i=ws.READ_DATA,!this.#f())return}else if(this.#i===ws.READ_DATA){if(this.#n<this.#s.payloadLength)return e();let r=this.consume(this.#s.payloadLength);if(UU(this.#s.opcode))this.#t=this.parseControlFrame(r),this.#i=ws.INFO;else if(this.#s.compressed){this.#a.get("permessage-deflate").decompress(r,this.#s.fin,(n,i)=>{if(n){let s=n instanceof GU?1009:1007;Xb(this.ws,s,n.message);return}if(this.writeFragments(i)){if(this.#o>0&&this.#r>this.#o){Xb(this.ws,1009,new GU().message);return}if(!this.#s.fin){this.#i=ws.INFO,this.#t=!0,this.run(e);return}Pae(this.ws,this.#s.binaryType,this.consumeFragments()),this.#t=!0,this.#i=ws.INFO,this.run(e)}}),this.#t=!1;break}else{if(!this.writeFragments(r))return;if(this.#o>0&&this.#r>this.#o){Xb(this.ws,1009,new GU().message);return}!this.#s.fragmented&&this.#s.fin&&Pae(this.ws,this.#s.binaryType,this.consumeFragments()),this.#i=ws.INFO}}}consume(e){if(e>this.#n)throw new Error("Called consume() before buffers satiated.");if(e===0)return _ae;if(this.#e[0].length===e)return this.#n-=this.#e[0].length,this.#e.shift();let r=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let i=this.#e[0],{length:s}=i;if(s+n===e){r.set(this.#e.shift(),n);break}else if(s+n>e){r.set(i.subarray(0,e-n),n),this.#e[0]=i.subarray(e-n);break}else r.set(this.#e.shift(),n),n+=i.length}return this.#n-=e,r}writeFragments(e){return this.#c>0&&this.#l.length===this.#c?(Xb(this.ws,1008,"Too many message fragments"),!1):(this.#r+=e.length,this.#l.push(e),!0)}consumeFragments(){let e=this.#l;if(e.length===1)return this.#r=0,e.shift();let r=Buffer.concat(e,this.#r);return this.#l=[],this.#r=0,r}parseCloseBody(e){AWe(e.length!==1);let r;if(e.length>=2&&(r=e.readUInt16BE(0)),r!==void 0&&!yWe(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=CWe(n)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:r,reason:n,error:!1}}parseControlFrame(e){let{opcode:r,payloadLength:n}=this.#s;if(r===ag.CLOSE){if(n===1)return no(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#s.closeInfo=this.parseCloseBody(e),this.#s.closeInfo.error){let{code:i,reason:s}=this.#s.closeInfo;return Oae(this.ws,i,s,s.length),no(this.ws,s),!1}if(this.ws[Rae]!==Tae.SENT){let i=_ae;this.#s.closeInfo.code&&(i=Buffer.allocUnsafe(2),i.writeUInt16BE(this.#s.closeInfo.code,0));let s=new kae(i);this.ws[Dae].socket.write(s.createFrame(ag.CLOSE),a=>{a||(this.ws[Rae]=Tae.SENT)})}return this.ws[gWe]=mWe.CLOSING,this.ws[Qae]=!0,!1}else if(r===ag.PING){if(!this.ws[Qae]){let i=new kae(e);this.ws[Dae].socket.write(i.createFrame(ag.PONG)),mN.ping.hasSubscribers&&mN.ping.publish({payload:e})}}else r===ag.PONG&&mN.pong.hasSubscribers&&mN.pong.publish({payload:e});return!0}get closingInfo(){return this.#s.closeInfo}};Lae.exports={ByteParser:HU}});var Hae=m((y8t,Gae)=>{"use strict";var{WebsocketFrameSend:IWe}=fN(),{opcodes:Mae,sendHints:cg}=tp(),SWe=JF(),Uae=Buffer[Symbol.species],VU=class{static{o(this,"SendQueue")}#e=new SWe;#r=!1;#n;constructor(e){this.#n=e}add(e,r,n){if(n!==cg.blob){let s=qae(e,n);if(!this.#r)this.#n.write(s,r);else{let a={promise:null,callback:r,frame:s};this.#e.push(a)}return}let i={promise:e.arrayBuffer().then(s=>{i.promise=null,i.frame=qae(s,n)}),callback:r,frame:null};this.#e.push(i),this.#r||this.#t()}async#t(){this.#r=!0;let e=this.#e;for(;!e.isEmpty();){let r=e.shift();r.promise!==null&&await r.promise,this.#n.write(r.frame,r.callback),r.callback=r.frame=null}this.#r=!1}};function qae(t,e){return new IWe(BWe(t,e)).createFrame(e===cg.string?Mae.TEXT:Mae.BINARY)}o(qae,"createFrame");function BWe(t,e){switch(e){case cg.string:return Buffer.from(t);case cg.arrayBuffer:case cg.blob:return new Uae(t);case cg.typedArray:return new Uae(t.buffer,t.byteOffset,t.byteLength)}}o(BWe,"toBuffer");Gae.exports={SendQueue:VU}});var Zae=m((C8t,Xae)=>{"use strict";var{webidl:He}=ai(),{URLSerializer:xWe}=gs(),{environmentSettingsObject:Vae}=Js(),{staticPropertyDescriptors:Zd,states:Zb,sentCloseFrameState:vWe,sendHints:gN}=tp(),{kWebSocketURL:zae,kReadyState:zU,kController:$ae,kBinaryType:yN,kResponse:jae,kSentClose:NWe,kByteParser:_We}=Vb(),{isConnecting:TWe,isEstablished:RWe,isClosing:DWe,isValidSubprotocol:QWe,fireEvent:Wae}=jb(),{establishWebSocketConnection:PWe,closeWebSocketConnection:Jae}=FU(),{ByteParser:kWe}=Fae(),{kEnumerableProperty:Uo,isBlobLike:Yae}=ot(),{getGlobalDispatcher:OWe}=Qv(),{types:Kae}=require("node:util"),{ErrorEvent:LWe,CloseEvent:FWe}=ig(),{SendQueue:MWe}=Hae(),io=class t extends EventTarget{static{o(this,"WebSocket")}#e={open:null,error:null,close:null,message:null};#r=0;#n="";#t="";#i;constructor(e,r=[]){super(),He.util.markAsUncloneable(this);let n="WebSocket constructor";He.argumentLengthCheck(arguments,1,n);let i=He.converters["DOMString or sequence<DOMString> or WebSocketInit"](r,n,"options");e=He.converters.USVString(e,n,"url"),r=i.protocols;let s=Vae.settingsObject.baseUrl,a;try{a=new URL(e,s)}catch(l){throw new DOMException(l,"SyntaxError")}if(a.protocol==="http:"?a.protocol="ws:":a.protocol==="https:"&&(a.protocol="wss:"),a.protocol!=="ws:"&&a.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError");if(a.hash||a.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof r=="string"&&(r=[r]),r.length!==new Set(r.map(l=>l.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(r.length>0&&!r.every(l=>QWe(l)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[zae]=new URL(a.href);let c=Vae.settingsObject;this[$ae]=PWe(a,r,c,this,(l,u)=>this.#s(l,u),i),this[zU]=t.CONNECTING,this[NWe]=vWe.NOT_SENT,this[yN]="blob"}close(e=void 0,r=void 0){He.brandCheck(this,t);let n="WebSocket.close";if(e!==void 0&&(e=He.converters["unsigned short"](e,n,"code",{clamp:!0})),r!==void 0&&(r=He.converters.USVString(r,n,"reason")),e!==void 0&&e!==1e3&&(e<3e3||e>4999))throw new DOMException("invalid code","InvalidAccessError");let i=0;if(r!==void 0&&(i=Buffer.byteLength(r),i>123))throw new DOMException(`Reason must be less than 123 bytes; received ${i}`,"SyntaxError");Jae(this,e,r,i)}send(e){He.brandCheck(this,t);let r="WebSocket.send";if(He.argumentLengthCheck(arguments,1,r),e=He.converters.WebSocketSendData(e,r,"data"),TWe(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!RWe(this)||DWe(this)))if(typeof e=="string"){let n=Buffer.byteLength(e);this.#r+=n,this.#i.add(e,()=>{this.#r-=n},gN.string)}else Kae.isArrayBuffer(e)?(this.#r+=e.byteLength,this.#i.add(e,()=>{this.#r-=e.byteLength},gN.arrayBuffer)):ArrayBuffer.isView(e)?(this.#r+=e.byteLength,this.#i.add(e,()=>{this.#r-=e.byteLength},gN.typedArray)):Yae(e)&&(this.#r+=e.size,this.#i.add(e,()=>{this.#r-=e.size},gN.blob))}get readyState(){return He.brandCheck(this,t),this[zU]}get bufferedAmount(){return He.brandCheck(this,t),this.#r}get url(){return He.brandCheck(this,t),xWe(this[zae])}get extensions(){return He.brandCheck(this,t),this.#t}get protocol(){return He.brandCheck(this,t),this.#n}get onopen(){return He.brandCheck(this,t),this.#e.open}set onopen(e){He.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 He.brandCheck(this,t),this.#e.error}set onerror(e){He.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 He.brandCheck(this,t),this.#e.close}set onclose(e){He.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 He.brandCheck(this,t),this.#e.message}set onmessage(e){He.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 He.brandCheck(this,t),this[yN]}set binaryType(e){He.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[yN]="blob":this[yN]=e}#s(e,r){this[jae]=e;let n=this[$ae]?.dispatcher?.webSocketOptions,i=n?.maxFragments,s=n?.maxPayloadSize,a=new kWe(this,r,{maxFragments:i,maxPayloadSize:s});a.on("drain",UWe),a.on("error",qWe.bind(this)),e.socket.ws=this,this[_We]=a,this.#i=new MWe(e.socket),this[zU]=Zb.OPEN;let c=e.headersList.get("sec-websocket-extensions");c!==null&&(this.#t=c);let l=e.headersList.get("sec-websocket-protocol");l!==null&&(this.#n=l),Wae("open",this)}};io.CONNECTING=io.prototype.CONNECTING=Zb.CONNECTING;io.OPEN=io.prototype.OPEN=Zb.OPEN;io.CLOSING=io.prototype.CLOSING=Zb.CLOSING;io.CLOSED=io.prototype.CLOSED=Zb.CLOSED;Object.defineProperties(io.prototype,{CONNECTING:Zd,OPEN:Zd,CLOSING:Zd,CLOSED:Zd,url:Uo,readyState:Uo,bufferedAmount:Uo,onopen:Uo,onerror:Uo,onclose:Uo,close:Uo,onmessage:Uo,binaryType:Uo,send:Uo,extensions:Uo,protocol:Uo,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(io,{CONNECTING:Zd,OPEN:Zd,CLOSING:Zd,CLOSED:Zd});He.converters["sequence<DOMString>"]=He.sequenceConverter(He.converters.DOMString);He.converters["DOMString or sequence<DOMString>"]=function(t,e,r){return He.util.Type(t)==="Object"&&Symbol.iterator in t?He.converters["sequence<DOMString>"](t):He.converters.DOMString(t,e,r)};He.converters.WebSocketInit=He.dictionaryConverter([{key:"protocols",converter:He.converters["DOMString or sequence<DOMString>"],defaultValue:o(()=>new Array(0),"defaultValue")},{key:"dispatcher",converter:He.converters.any,defaultValue:o(()=>OWe(),"defaultValue")},{key:"headers",converter:He.nullableConverter(He.converters.HeadersInit)}]);He.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(t){return He.util.Type(t)==="Object"&&!(Symbol.iterator in t)?He.converters.WebSocketInit(t):{protocols:He.converters["DOMString or sequence<DOMString>"](t)}};He.converters.WebSocketSendData=function(t){if(He.util.Type(t)==="Object"){if(Yae(t))return He.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Kae.isArrayBuffer(t))return He.converters.BufferSource(t)}return He.converters.USVString(t)};function UWe(){this.ws[jae].socket.resume()}o(UWe,"onParserDrain");function qWe(t){let e,r;t instanceof FWe?(e=t.reason,r=t.code):e=t.message,Wae("error",this,()=>new LWe("error",{error:t,message:e})),Jae(this,r)}o(qWe,"onParserError");Xae.exports={WebSocket:io}});var $U=m((w8t,ece)=>{"use strict";function GWe(t){return t.indexOf("\0")===-1}o(GWe,"isValidLastEventId");function HWe(t){if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(t.charCodeAt(e)<48||t.charCodeAt(e)>57)return!1;return!0}o(HWe,"isASCIINumber");function VWe(t){return new Promise(e=>{setTimeout(e,t).unref()})}o(VWe,"delay");ece.exports={isValidLastEventId:GWe,isASCIINumber:HWe,delay:VWe}});var ice=m((S8t,nce)=>{"use strict";var{Transform:zWe}=require("node:stream"),{isASCIINumber:tce,isValidLastEventId:rce}=$U(),Ru=[239,187,191],jU=10,EN=13,$We=58,jWe=32,WU=class extends zWe{static{o(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]===Ru[0]){n();return}this.checkBOM=!1,n();return;case 2:if(this.buffer[0]===Ru[0]&&this.buffer[1]===Ru[1]){n();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===Ru[0]&&this.buffer[1]===Ru[1]&&this.buffer[2]===Ru[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,n();return}this.checkBOM=!1;break;default:this.buffer[0]===Ru[0]&&this.buffer[1]===Ru[1]&&this.buffer[2]===Ru[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos<this.buffer.length;){if(this.eventEndCheck){if(this.crlfCheck){if(this.buffer[this.pos]===jU){this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.crlfCheck=!1;continue}this.crlfCheck=!1}if(this.buffer[this.pos]===jU||this.buffer[this.pos]===EN){this.buffer[this.pos]===EN&&(this.crlfCheck=!0),this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,(this.event.data!==void 0||this.event.event||this.event.id||this.event.retry)&&this.processEvent(this.event),this.clearEvent();continue}this.eventEndCheck=!1;continue}if(this.buffer[this.pos]===jU||this.buffer[this.pos]===EN){this.buffer[this.pos]===EN&&(this.crlfCheck=!0),this.parseLine(this.buffer.subarray(0,this.pos),this.event),this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.eventEndCheck=!0;continue}this.pos++}n()}parseLine(e,r){if(e.length===0)return;let n=e.indexOf($We);if(n===0)return;let i="",s="";if(n!==-1){i=e.subarray(0,n).toString("utf8");let a=n+1;e[a]===jWe&&++a,s=e.subarray(a).toString("utf8")}else i=e.toString("utf8"),s="";switch(i){case"data":r[i]===void 0?r[i]=s:r[i]+=`
|
|
${s}`;break;case"retry":tce(s)&&(r[i]=s);break;case"id":rce(s)&&(r[i]=s);break;case"event":s.length>0&&(r[i]=s);break}}processEvent(e){e.retry&&tce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&rce(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}}};nce.exports={EventSourceStream:WU}});var fce=m((x8t,dce)=>{"use strict";var{pipeline:WWe}=require("node:stream"),{fetching:JWe}=Ub(),{makeRequest:YWe}=Xm(),{webidl:Du}=ai(),{EventSourceStream:KWe}=ice(),{parseMIMEType:XWe}=gs(),{createFastMessageEvent:ZWe}=ig(),{isNetworkError:sce}=Fb(),{delay:eJe}=$U(),{kEnumerableProperty:rp}=ot(),{environmentSettingsObject:oce}=Js(),ace=!1,cce=3e3,e0=0,lce=1,t0=2,tJe="anonymous",rJe="use-credentials",lg=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#r=null;#n=!1;#t=e0;#i=null;#s=null;#l;#a;constructor(e,r={}){super(),Du.util.markAsUncloneable(this);let n="EventSource constructor";Du.argumentLengthCheck(arguments,1,n),ace||(ace=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Du.converters.USVString(e,n,"url"),r=Du.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#l=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:cce};let i=oce,s;try{s=new URL(e,i.settingsObject.baseUrl),this.#a.origin=s.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#r=s.href;let a=tJe;r.withCredentials&&(a=rJe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=oce.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#r)],this.#i=YWe(c),this.#c()}get readyState(){return this.#t}get url(){return this.#r}get withCredentials(){return this.#n}#c(){if(this.#t===t0)return;this.#t=e0;let e={request:this.#i,dispatcher:this.#l},r=o(n=>{sce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#o()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(sce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#o();return}let i=n.headersList.get("content-type",!0),s=i!==null?XWe(i):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#t=lce,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new KWe({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(ZWe(l.type,l.options))},"push")});WWe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=JWe(e)}async#o(){this.#t!==t0&&(this.#t=e0,this.dispatchEvent(new Event("error")),await eJe(this.#a.reconnectionTime),this.#t===e0&&(this.#a.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){Du.brandCheck(this,t),this.#t!==t0&&(this.#t=t0,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},uce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:e0,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:lce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:t0,writable:!1}};Object.defineProperties(lg,uce);Object.defineProperties(lg.prototype,uce);Object.defineProperties(lg.prototype,{close:rp,onerror:rp,onmessage:rp,onopen:rp,readyState:rp,url:rp,withCredentials:rp});Du.converters.EventSourceInitDict=Du.dictionaryConverter([{key:"withCredentials",converter:Du.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Du.converters.any}]);dce.exports={EventSource:lg,defaultReconnectionTime:cce}});var ef=m((N8t,Ue)=>{"use strict";var nJe=Om(),hce=sb(),iJe=Lm(),sJe=une(),oJe=Fm(),aJe=AM(),cJe=Pne(),lJe=qne(),pce=Tt(),bN=ot(),{InvalidArgumentError:CN}=pce,ug=vie(),uJe=ab(),dJe=YM(),fJe=lse(),hJe=ZM(),pJe=LM(),AJe=Iv(),{getGlobalDispatcher:Ace,setGlobalDispatcher:mJe}=Qv(),gJe=Pv(),yJe=fv(),EJe=hv();Object.assign(hce.prototype,ug);Ue.exports.Dispatcher=hce;Ue.exports.Client=nJe;Ue.exports.Pool=iJe;Ue.exports.BalancedPool=sJe;Ue.exports.Agent=oJe;Ue.exports.ProxyAgent=aJe;Ue.exports.EnvHttpProxyAgent=cJe;Ue.exports.RetryAgent=lJe;Ue.exports.RetryHandler=AJe;Ue.exports.DecoratorHandler=gJe;Ue.exports.RedirectHandler=yJe;Ue.exports.createRedirectInterceptor=EJe;Ue.exports.interceptors={redirect:mse(),retry:yse(),dump:Cse(),dns:Ise()};Ue.exports.buildConnector=uJe;Ue.exports.errors=pce;Ue.exports.util={parseHeaders:bN.parseHeaders,headerNameToString:bN.headerNameToString};function r0(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 CN("invalid url");if(r!=null&&typeof r!="object")throw new CN("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new CN("invalid opts.path");let a=r.path;r.path.startsWith("/")||(a=`/${a}`),e=new URL(bN.parseOrigin(e).origin+a)}else r||(r=typeof e=="object"?e:{}),e=bN.parseURL(e);let{agent:i,dispatcher:s=Ace()}=r;if(i)throw new CN("unsupported opts.agent. Did you mean opts.client?");return t.call(s,{...r,origin:e.origin,path:e.search?`${e.pathname}${e.search}`:e.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}o(r0,"makeDispatcher");Ue.exports.setGlobalDispatcher=mJe;Ue.exports.getGlobalDispatcher=Ace;var CJe=Ub().fetch;Ue.exports.fetch=o(async function(e,r=void 0){try{return await CJe(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}},"fetch");Ue.exports.Headers=Jh().Headers;Ue.exports.Response=Fb().Response;Ue.exports.Request=Xm().Request;Ue.exports.FormData=pb().FormData;Ue.exports.File=globalThis.File??require("node:buffer").File;Ue.exports.FileReader=Moe().FileReader;var{setGlobalOrigin:bJe,getGlobalOrigin:wJe}=mF();Ue.exports.setGlobalOrigin=bJe;Ue.exports.getGlobalOrigin=wJe;var{CacheStorage:IJe}=Woe(),{kConstruct:SJe}=tN();Ue.exports.caches=new IJe(SJe);var{deleteCookie:BJe,getCookies:xJe,getSetCookies:vJe,setCookie:NJe}=sae();Ue.exports.deleteCookie=BJe;Ue.exports.getCookies=xJe;Ue.exports.getSetCookies=vJe;Ue.exports.setCookie=NJe;var{parseMIMEType:_Je,serializeAMimeType:TJe}=gs();Ue.exports.parseMIMEType=_Je;Ue.exports.serializeAMimeType=TJe;var{CloseEvent:RJe,ErrorEvent:DJe,MessageEvent:QJe}=ig();Ue.exports.WebSocket=Zae().WebSocket;Ue.exports.CloseEvent=RJe;Ue.exports.ErrorEvent=DJe;Ue.exports.MessageEvent=QJe;Ue.exports.request=r0(ug.request);Ue.exports.stream=r0(ug.stream);Ue.exports.pipeline=r0(ug.pipeline);Ue.exports.connect=r0(ug.connect);Ue.exports.upgrade=r0(ug.upgrade);Ue.exports.MockClient=dJe;Ue.exports.MockPool=hJe;Ue.exports.MockAgent=fJe;Ue.exports.mockErrors=pJe;var{EventSource:PJe}=fce();Ue.exports.EventSource=PJe});var u0=m((X6t,jce)=>{"use strict";var o9e="2.0.0",a9e=Number.MAX_SAFE_INTEGER||9007199254740991,c9e=16,l9e=250,u9e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];jce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:c9e,MAX_SAFE_BUILD_LENGTH:l9e,MAX_SAFE_INTEGER:a9e,RELEASE_TYPES:u9e,SEMVER_SPEC_VERSION:o9e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var d0=m((Z6t,Wce)=>{"use strict";var d9e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Wce.exports=d9e});var gg=m((qc,Jce)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:yq,MAX_SAFE_BUILD_LENGTH:f9e,MAX_LENGTH:h9e}=u0(),p9e=d0();qc=Jce.exports={};var A9e=qc.re=[],m9e=qc.safeRe=[],ce=qc.src=[],g9e=qc.safeSrc=[],le=qc.t={},y9e=0,Eq="[a-zA-Z0-9-]",E9e=[["\\s",1],["\\d",h9e],[Eq,f9e]],C9e=o(t=>{for(let[e,r]of E9e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),je=o((t,e,r)=>{let n=C9e(e),i=y9e++;p9e(t,i,e),le[t]=i,ce[i]=e,g9e[i]=n,A9e[i]=new RegExp(e,r?"g":void 0),m9e[i]=new RegExp(n,r?"g":void 0)},"createToken");je("NUMERICIDENTIFIER","0|[1-9]\\d*");je("NUMERICIDENTIFIERLOOSE","\\d+");je("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Eq}*`);je("MAINVERSION",`(${ce[le.NUMERICIDENTIFIER]})\\.(${ce[le.NUMERICIDENTIFIER]})\\.(${ce[le.NUMERICIDENTIFIER]})`);je("MAINVERSIONLOOSE",`(${ce[le.NUMERICIDENTIFIERLOOSE]})\\.(${ce[le.NUMERICIDENTIFIERLOOSE]})\\.(${ce[le.NUMERICIDENTIFIERLOOSE]})`);je("PRERELEASEIDENTIFIER",`(?:${ce[le.NONNUMERICIDENTIFIER]}|${ce[le.NUMERICIDENTIFIER]})`);je("PRERELEASEIDENTIFIERLOOSE",`(?:${ce[le.NONNUMERICIDENTIFIER]}|${ce[le.NUMERICIDENTIFIERLOOSE]})`);je("PRERELEASE",`(?:-(${ce[le.PRERELEASEIDENTIFIER]}(?:\\.${ce[le.PRERELEASEIDENTIFIER]})*))`);je("PRERELEASELOOSE",`(?:-?(${ce[le.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ce[le.PRERELEASEIDENTIFIERLOOSE]})*))`);je("BUILDIDENTIFIER",`${Eq}+`);je("BUILD",`(?:\\+(${ce[le.BUILDIDENTIFIER]}(?:\\.${ce[le.BUILDIDENTIFIER]})*))`);je("FULLPLAIN",`v?${ce[le.MAINVERSION]}${ce[le.PRERELEASE]}?${ce[le.BUILD]}?`);je("FULL",`^${ce[le.FULLPLAIN]}$`);je("LOOSEPLAIN",`[v=\\s]*${ce[le.MAINVERSIONLOOSE]}${ce[le.PRERELEASELOOSE]}?${ce[le.BUILD]}?`);je("LOOSE",`^${ce[le.LOOSEPLAIN]}$`);je("GTLT","((?:<|>)?=?)");je("XRANGEIDENTIFIERLOOSE",`${ce[le.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);je("XRANGEIDENTIFIER",`${ce[le.NUMERICIDENTIFIER]}|x|X|\\*`);je("XRANGEPLAIN",`[v=\\s]*(${ce[le.XRANGEIDENTIFIER]})(?:\\.(${ce[le.XRANGEIDENTIFIER]})(?:\\.(${ce[le.XRANGEIDENTIFIER]})(?:${ce[le.PRERELEASE]})?${ce[le.BUILD]}?)?)?`);je("XRANGEPLAINLOOSE",`[v=\\s]*(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:${ce[le.PRERELEASELOOSE]})?${ce[le.BUILD]}?)?)?`);je("XRANGE",`^${ce[le.GTLT]}\\s*${ce[le.XRANGEPLAIN]}$`);je("XRANGELOOSE",`^${ce[le.GTLT]}\\s*${ce[le.XRANGEPLAINLOOSE]}$`);je("COERCEPLAIN",`(^|[^\\d])(\\d{1,${yq}})(?:\\.(\\d{1,${yq}}))?(?:\\.(\\d{1,${yq}}))?`);je("COERCE",`${ce[le.COERCEPLAIN]}(?:$|[^\\d])`);je("COERCEFULL",ce[le.COERCEPLAIN]+`(?:${ce[le.PRERELEASE]})?(?:${ce[le.BUILD]})?(?:$|[^\\d])`);je("COERCERTL",ce[le.COERCE],!0);je("COERCERTLFULL",ce[le.COERCEFULL],!0);je("LONETILDE","(?:~>?)");je("TILDETRIM",`(\\s*)${ce[le.LONETILDE]}\\s+`,!0);qc.tildeTrimReplace="$1~";je("TILDE",`^${ce[le.LONETILDE]}${ce[le.XRANGEPLAIN]}$`);je("TILDELOOSE",`^${ce[le.LONETILDE]}${ce[le.XRANGEPLAINLOOSE]}$`);je("LONECARET","(?:\\^)");je("CARETTRIM",`(\\s*)${ce[le.LONECARET]}\\s+`,!0);qc.caretTrimReplace="$1^";je("CARET",`^${ce[le.LONECARET]}${ce[le.XRANGEPLAIN]}$`);je("CARETLOOSE",`^${ce[le.LONECARET]}${ce[le.XRANGEPLAINLOOSE]}$`);je("COMPARATORLOOSE",`^${ce[le.GTLT]}\\s*(${ce[le.LOOSEPLAIN]})$|^$`);je("COMPARATOR",`^${ce[le.GTLT]}\\s*(${ce[le.FULLPLAIN]})$|^$`);je("COMPARATORTRIM",`(\\s*)${ce[le.GTLT]}\\s*(${ce[le.LOOSEPLAIN]}|${ce[le.XRANGEPLAIN]})`,!0);qc.comparatorTrimReplace="$1$2$3";je("HYPHENRANGE",`^\\s*(${ce[le.XRANGEPLAIN]})\\s+-\\s+(${ce[le.XRANGEPLAIN]})\\s*$`);je("HYPHENRANGELOOSE",`^\\s*(${ce[le.XRANGEPLAINLOOSE]})\\s+-\\s+(${ce[le.XRANGEPLAINLOOSE]})\\s*$`);je("STAR","(<|>)?=?\\s*\\*");je("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");je("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var NN=m((tWt,Yce)=>{"use strict";var b9e=Object.freeze({loose:!0}),w9e=Object.freeze({}),I9e=o(t=>t?typeof t!="object"?b9e:t:w9e,"parseOptions");Yce.exports=I9e});var Cq=m((nWt,Zce)=>{"use strict";var Kce=/^[0-9]+$/,Xce=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Kce.test(t),n=Kce.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),S9e=o((t,e)=>Xce(e,t),"rcompareIdentifiers");Zce.exports={compareIdentifiers:Xce,rcompareIdentifiers:S9e}});var Bi=m((sWt,tle)=>{"use strict";var _N=d0(),{MAX_LENGTH:ele,MAX_SAFE_INTEGER:TN}=u0(),{safeRe:RN,t:DN}=gg(),B9e=NN(),{compareIdentifiers:bq}=Cq(),wq=class t{static{o(this,"SemVer")}constructor(e,r){if(r=B9e(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>ele)throw new TypeError(`version is longer than ${ele} characters`);_N("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?RN[DN.LOOSE]:RN[DN.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>TN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>TN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>TN||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<TN)return s}return i}):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(_N("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.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(_N("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return bq(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(_N("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return bq(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?RN[DN.PRERELEASELOOSE]:RN[DN.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),bq(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};tle.exports=wq});var ap=m((aWt,nle)=>{"use strict";var rle=Bi(),x9e=o((t,e,r=!1)=>{if(t instanceof rle)return t;try{return new rle(t,e)}catch(n){if(!r)return null;throw n}},"parse");nle.exports=x9e});var sle=m((lWt,ile)=>{"use strict";var v9e=ap(),N9e=o((t,e)=>{let r=v9e(t,e);return r?r.version:null},"valid");ile.exports=N9e});var ale=m((dWt,ole)=>{"use strict";var _9e=ap(),T9e=o((t,e)=>{let r=_9e(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");ole.exports=T9e});var ule=m((hWt,lle)=>{"use strict";var cle=Bi(),R9e=o((t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new cle(t instanceof cle?t.version:t,r).inc(e,n,i).version}catch{return null}},"inc");lle.exports=R9e});var hle=m((AWt,fle)=>{"use strict";var dle=ap(),D9e=o((t,e)=>{let r=dle(t,null,!0),n=dle(e,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,c=s?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");fle.exports=D9e});var Ale=m((gWt,ple)=>{"use strict";var Q9e=Bi(),P9e=o((t,e)=>new Q9e(t,e).major,"major");ple.exports=P9e});var gle=m((EWt,mle)=>{"use strict";var k9e=Bi(),O9e=o((t,e)=>new k9e(t,e).minor,"minor");mle.exports=O9e});var Ele=m((bWt,yle)=>{"use strict";var L9e=Bi(),F9e=o((t,e)=>new L9e(t,e).patch,"patch");yle.exports=F9e});var ble=m((IWt,Cle)=>{"use strict";var M9e=ap(),U9e=o((t,e)=>{let r=M9e(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Cle.exports=U9e});var Go=m((BWt,Ile)=>{"use strict";var wle=Bi(),q9e=o((t,e,r)=>new wle(t,r).compare(new wle(e,r)),"compare");Ile.exports=q9e});var Ble=m((vWt,Sle)=>{"use strict";var G9e=Go(),H9e=o((t,e,r)=>G9e(e,t,r),"rcompare");Sle.exports=H9e});var vle=m((_Wt,xle)=>{"use strict";var V9e=Go(),z9e=o((t,e)=>V9e(t,e,!0),"compareLoose");xle.exports=z9e});var QN=m((RWt,_le)=>{"use strict";var Nle=Bi(),$9e=o((t,e,r)=>{let n=new Nle(t,r),i=new Nle(e,r);return n.compare(i)||n.compareBuild(i)},"compareBuild");_le.exports=$9e});var Rle=m((QWt,Tle)=>{"use strict";var j9e=QN(),W9e=o((t,e)=>t.sort((r,n)=>j9e(r,n,e)),"sort");Tle.exports=W9e});var Qle=m((kWt,Dle)=>{"use strict";var J9e=QN(),Y9e=o((t,e)=>t.sort((r,n)=>J9e(n,r,e)),"rsort");Dle.exports=Y9e});var f0=m((LWt,Ple)=>{"use strict";var K9e=Go(),X9e=o((t,e,r)=>K9e(t,e,r)>0,"gt");Ple.exports=X9e});var PN=m((MWt,kle)=>{"use strict";var Z9e=Go(),eYe=o((t,e,r)=>Z9e(t,e,r)<0,"lt");kle.exports=eYe});var Iq=m((qWt,Ole)=>{"use strict";var tYe=Go(),rYe=o((t,e,r)=>tYe(t,e,r)===0,"eq");Ole.exports=rYe});var Sq=m((HWt,Lle)=>{"use strict";var nYe=Go(),iYe=o((t,e,r)=>nYe(t,e,r)!==0,"neq");Lle.exports=iYe});var kN=m((zWt,Fle)=>{"use strict";var sYe=Go(),oYe=o((t,e,r)=>sYe(t,e,r)>=0,"gte");Fle.exports=oYe});var ON=m((jWt,Mle)=>{"use strict";var aYe=Go(),cYe=o((t,e,r)=>aYe(t,e,r)<=0,"lte");Mle.exports=cYe});var Bq=m((JWt,Ule)=>{"use strict";var lYe=Iq(),uYe=Sq(),dYe=f0(),fYe=kN(),hYe=PN(),pYe=ON(),AYe=o((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return lYe(t,r,n);case"!=":return uYe(t,r,n);case">":return dYe(t,r,n);case">=":return fYe(t,r,n);case"<":return hYe(t,r,n);case"<=":return pYe(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Ule.exports=AYe});var Gle=m((KWt,qle)=>{"use strict";var mYe=Bi(),gYe=ap(),{safeRe:LN,t:FN}=gg(),yYe=o((t,e)=>{if(t instanceof mYe)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?LN[FN.COERCEFULL]:LN[FN.COERCE]);else{let l=e.includePrerelease?LN[FN.COERCERTLFULL]:LN[FN.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return gYe(`${n}.${i}.${s}${a}${c}`,e)},"coerce");qle.exports=yYe});var Vle=m((ZWt,Hle)=>{"use strict";var xq=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};Hle.exports=xq});var Ho=m((tJt,Wle)=>{"use strict";var EYe=/\s+/g,vq=class t{static{o(this,"Range")}constructor(e,r){if(r=bYe(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof Nq)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(EYe," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!$le(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&NYe(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n<r.length;n++)n>0&&(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&&xYe)|(this.options.loose&&vYe))+":"+e,i=zle.get(n);if(i)return i;let s=this.options.loose,a=s?zi[xi.HYPHENRANGELOOSE]:zi[xi.HYPHENRANGE];e=e.replace(a,FYe(this.options.includePrerelease)),ir("hyphen replace",e),e=e.replace(zi[xi.COMPARATORTRIM],IYe),ir("comparator trim",e),e=e.replace(zi[xi.TILDETRIM],SYe),ir("tilde trim",e),e=e.replace(zi[xi.CARETTRIM],BYe),ir("caret trim",e);let c=e.split(" ").map(f=>_Ye(f,this.options)).join(" ").split(/\s+/).map(f=>LYe(f,this.options));s&&(c=c.filter(f=>(ir("loose invalid filter",f,this.options),!!f.match(zi[xi.COMPARATORLOOSE])))),ir("range list",c);let l=new Map,u=c.map(f=>new Nq(f,this.options));for(let f of u){if($le(f))return[f];l.set(f.value,f)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return zle.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>jle(n,r)&&e.set.some(i=>jle(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new wYe(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(MYe(this.set[r],e,this.options))return!0;return!1}};Wle.exports=vq;var CYe=Vle(),zle=new CYe,bYe=NN(),Nq=h0(),ir=d0(),wYe=Bi(),{safeRe:zi,t:xi,comparatorTrimReplace:IYe,tildeTrimReplace:SYe,caretTrimReplace:BYe}=gg(),{FLAG_INCLUDE_PRERELEASE:xYe,FLAG_LOOSE:vYe}=u0(),$le=o(t=>t.value==="<0.0.0-0","isNullSet"),NYe=o(t=>t.value==="","isAny"),jle=o((t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},"isSatisfiable"),_Ye=o((t,e)=>(t=t.replace(zi[xi.BUILD],""),ir("comp",t,e),t=DYe(t,e),ir("caret",t),t=TYe(t,e),ir("tildes",t),t=PYe(t,e),ir("xrange",t),t=OYe(t,e),ir("stars",t),t),"parseComparator"),$i=o(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),TYe=o((t,e)=>t.trim().split(/\s+/).map(r=>RYe(r,e)).join(" "),"replaceTildes"),RYe=o((t,e)=>{let r=e.loose?zi[xi.TILDELOOSE]:zi[xi.TILDE];return t.replace(r,(n,i,s,a,c)=>{ir("tilde",t,n,i,s,a,c);let l;return $i(i)?l="":$i(s)?l=`>=${i}.0.0 <${+i+1}.0.0-0`:$i(a)?l=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:c?(ir("replaceTilde pr",c),l=`>=${i}.${s}.${a}-${c} <${i}.${+s+1}.0-0`):l=`>=${i}.${s}.${a} <${i}.${+s+1}.0-0`,ir("tilde return",l),l})},"replaceTilde"),DYe=o((t,e)=>t.trim().split(/\s+/).map(r=>QYe(r,e)).join(" "),"replaceCarets"),QYe=o((t,e)=>{ir("caret",t,e);let r=e.loose?zi[xi.CARETLOOSE]:zi[xi.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{ir("caret",t,i,s,a,c,l);let u;return $i(s)?u="":$i(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:$i(c)?s==="0"?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:l?(ir("replaceCaret pr",l),s==="0"?a==="0"?u=`>=${s}.${a}.${c}-${l} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c}-${l} <${+s+1}.0.0-0`):(ir("no pr"),s==="0"?a==="0"?u=`>=${s}.${a}.${c}${n} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),ir("caret return",u),u})},"replaceCaret"),PYe=o((t,e)=>(ir("replaceXRanges",t,e),t.split(/\s+/).map(r=>kYe(r,e)).join(" ")),"replaceXRanges"),kYe=o((t,e)=>{t=t.trim();let r=e.loose?zi[xi.XRANGELOOSE]:zi[xi.XRANGE];return t.replace(r,(n,i,s,a,c,l)=>{ir("xRange",t,n,i,s,a,c,l);let u=$i(s),d=u||$i(a),f=d||$i(c),h=f;return i==="="&&h&&(i=""),l=e.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(d&&(a=0),c=0,i===">"?(i=">=",d?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):i==="<="&&(i="<",d?s=+s+1:a=+a+1),i==="<"&&(l="-0"),n=`${i+s}.${a}.${c}${l}`):d?n=`>=${s}.0.0${l} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${l} <${s}.${+a+1}.0-0`),ir("xRange return",n),n})},"replaceXRange"),OYe=o((t,e)=>(ir("replaceStars",t,e),t.trim().replace(zi[xi.STAR],"")),"replaceStars"),LYe=o((t,e)=>(ir("replaceGTE0",t,e),t.trim().replace(zi[e.includePrerelease?xi.GTE0PRE:xi.GTE0],"")),"replaceGTE0"),FYe=o(t=>(e,r,n,i,s,a,c,l,u,d,f,h)=>($i(n)?r="":$i(i)?r=`>=${n}.0.0${t?"-0":""}`:$i(s)?r=`>=${n}.${i}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,$i(u)?l="":$i(d)?l=`<${+u+1}.0.0-0`:$i(f)?l=`<${u}.${+d+1}.0-0`:h?l=`<=${u}.${d}.${f}-${h}`:t?l=`<${u}.${d}.${+f+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),MYe=o((t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(ir(t[n].semver),t[n].semver!==Nq.ANY&&t[n].semver.prerelease.length>0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0},"testSet")});var h0=m((nJt,eue)=>{"use strict";var p0=Symbol("SemVer ANY"),Rq=class t{static{o(this,"Comparator")}static get ANY(){return p0}constructor(e,r){if(r=Jle(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Tq("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===p0?this.value="":this.value=this.operator+this.semver.version,Tq("comp",this)}parse(e){let r=this.options.loose?Yle[Kle.COMPARATORLOOSE]:Yle[Kle.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 Xle(n[2],this.options.loose):this.semver=p0}toString(){return this.value}test(e){if(Tq("Comparator.test",e,this.options.loose),this.semver===p0||e===p0)return!0;if(typeof e=="string")try{e=new Xle(e,this.options)}catch{return!1}return _q(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 Zle(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Zle(this.value,r).test(e.semver):(r=Jle(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("=")||_q(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||_q(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};eue.exports=Rq;var Jle=NN(),{safeRe:Yle,t:Kle}=gg(),_q=Bq(),Tq=d0(),Xle=Bi(),Zle=Ho()});var A0=m((sJt,tue)=>{"use strict";var UYe=Ho(),qYe=o((t,e,r)=>{try{e=new UYe(e,r)}catch{return!1}return e.test(t)},"satisfies");tue.exports=qYe});var nue=m((aJt,rue)=>{"use strict";var GYe=Ho(),HYe=o((t,e)=>new GYe(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");rue.exports=HYe});var sue=m((lJt,iue)=>{"use strict";var VYe=Bi(),zYe=Ho(),$Ye=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new zYe(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new VYe(n,r))}),n},"maxSatisfying");iue.exports=$Ye});var aue=m((dJt,oue)=>{"use strict";var jYe=Bi(),WYe=Ho(),JYe=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new WYe(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new jYe(n,r))}),n},"minSatisfying");oue.exports=JYe});var uue=m((hJt,lue)=>{"use strict";var Dq=Bi(),YYe=Ho(),cue=f0(),KYe=o((t,e)=>{t=new YYe(t,e);let r=new Dq("0.0.0");if(t.test(r)||(r=new Dq("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let i=t.set[n],s=null;i.forEach(a=>{let c=new Dq(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||cue(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||cue(r,s))&&(r=s)}return r&&t.test(r)?r:null},"minVersion");lue.exports=KYe});var fue=m((AJt,due)=>{"use strict";var XYe=Ho(),ZYe=o((t,e)=>{try{return new XYe(t,e).range||"*"}catch{return null}},"validRange");due.exports=ZYe});var MN=m((gJt,mue)=>{"use strict";var eKe=Bi(),Aue=h0(),{ANY:tKe}=Aue,rKe=Ho(),nKe=A0(),hue=f0(),pue=PN(),iKe=ON(),sKe=kN(),oKe=o((t,e,r,n)=>{t=new eKe(t,n),e=new rKe(e,n);let i,s,a,c,l;switch(r){case">":i=hue,s=iKe,a=pue,c=">",l=">=";break;case"<":i=pue,s=sKe,a=hue,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(nKe(t,e,n))return!1;for(let u=0;u<e.set.length;++u){let d=e.set[u],f=null,h=null;if(d.forEach(p=>{p.semver===tKe&&(p=new Aue(">=0.0.0")),f=f||p,h=h||p,i(p.semver,f.semver,n)?f=p:a(p.semver,h.semver,n)&&(h=p)}),f.operator===c||f.operator===l||(!h.operator||h.operator===c)&&s(t,h.semver))return!1;if(h.operator===l&&a(t,h.semver))return!1}return!0},"outside");mue.exports=oKe});var yue=m((EJt,gue)=>{"use strict";var aKe=MN(),cKe=o((t,e,r)=>aKe(t,e,">",r),"gtr");gue.exports=cKe});var Cue=m((bJt,Eue)=>{"use strict";var lKe=MN(),uKe=o((t,e,r)=>lKe(t,e,"<",r),"ltr");Eue.exports=uKe});var Iue=m((IJt,wue)=>{"use strict";var bue=Ho(),dKe=o((t,e,r)=>(t=new bue(t,r),e=new bue(e,r),t.intersects(e,r)),"intersects");wue.exports=dKe});var Bue=m((BJt,Sue)=>{"use strict";var fKe=A0(),hKe=Go();Sue.exports=(t,e,r)=>{let n=[],i=null,s=null,a=t.sort((d,f)=>hKe(d,f,r));for(let d of a)fKe(d,e,r)?(s=d,i||(i=d)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let c=[];for(let[d,f]of n)d===f?c.push(d):!f&&d===a[0]?c.push("*"):f?d===a[0]?c.push(`<=${f}`):c.push(`${d} - ${f}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e}});var Rue=m((xJt,Tue)=>{"use strict";var xue=Ho(),Pq=h0(),{ANY:Qq}=Pq,m0=A0(),kq=Go(),pKe=o((t,e,r={})=>{if(t===e)return!0;t=new xue(t,r),e=new xue(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let a=mKe(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),AKe=[new Pq(">=0.0.0-0")],vue=[new Pq(">=0.0.0")],mKe=o((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Qq){if(e.length===1&&e[0].semver===Qq)return!0;r.includePrerelease?t=AKe:t=vue}if(e.length===1&&e[0].semver===Qq){if(r.includePrerelease)return!0;e=vue}let n=new Set,i,s;for(let p of t)p.operator===">"||p.operator===">="?i=Nue(i,p,r):p.operator==="<"||p.operator==="<="?s=_ue(s,p,r):n.add(p.semver);if(n.size>1)return null;let a;if(i&&s){if(a=kq(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!m0(p,String(i),r)||s&&!m0(p,String(s),r))return null;for(let g of e)if(!m0(p,String(g),r))return!1;return!0}let c,l,u,d,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of e){if(d=d||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(c=Nue(i,p,r),c===p&&c!==i)return!1}else if(i.operator===">="&&!m0(i.semver,String(p),r))return!1}if(s){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(l=_ue(s,p,r),l===p&&l!==s)return!1}else if(s.operator==="<="&&!m0(s.semver,String(p),r))return!1}if(!p.operator&&(s||i)&&a!==0)return!1}return!(i&&u&&!s&&a!==0||s&&d&&!i&&a!==0||h||f)},"simpleSubset"),Nue=o((t,e,r)=>{if(!t)return e;let n=kq(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),_ue=o((t,e,r)=>{if(!t)return e;let n=kq(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Tue.exports=pKe});var Lq=m((NJt,Pue)=>{"use strict";var Oq=gg(),Due=u0(),gKe=Bi(),Que=Cq(),yKe=ap(),EKe=sle(),CKe=ale(),bKe=ule(),wKe=hle(),IKe=Ale(),SKe=gle(),BKe=Ele(),xKe=ble(),vKe=Go(),NKe=Ble(),_Ke=vle(),TKe=QN(),RKe=Rle(),DKe=Qle(),QKe=f0(),PKe=PN(),kKe=Iq(),OKe=Sq(),LKe=kN(),FKe=ON(),MKe=Bq(),UKe=Gle(),qKe=h0(),GKe=Ho(),HKe=A0(),VKe=nue(),zKe=sue(),$Ke=aue(),jKe=uue(),WKe=fue(),JKe=MN(),YKe=yue(),KKe=Cue(),XKe=Iue(),ZKe=Bue(),e7e=Rue();Pue.exports={parse:yKe,valid:EKe,clean:CKe,inc:bKe,diff:wKe,major:IKe,minor:SKe,patch:BKe,prerelease:xKe,compare:vKe,rcompare:NKe,compareLoose:_Ke,compareBuild:TKe,sort:RKe,rsort:DKe,gt:QKe,lt:PKe,eq:kKe,neq:OKe,gte:LKe,lte:FKe,cmp:MKe,coerce:UKe,Comparator:qKe,Range:GKe,satisfies:HKe,toComparators:VKe,maxSatisfying:zKe,minSatisfying:$Ke,minVersion:jKe,validRange:WKe,outside:JKe,gtr:YKe,ltr:KKe,intersects:XKe,simplifyRange:ZKe,subset:e7e,SemVer:gKe,re:Oq.re,src:Oq.src,tokens:Oq.t,SEMVER_SPEC_VERSION:Due.SEMVER_SPEC_VERSION,RELEASE_TYPES:Due.RELEASE_TYPES,compareIdentifiers:Que.compareIdentifiers,rcompareIdentifiers:Que.rcompareIdentifiers}});var Ig=m((BYt,bde)=>{"use strict";var PXe="2.0.0",kXe=Number.MAX_SAFE_INTEGER||9007199254740991,OXe=16,LXe=250,FXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];bde.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:OXe,MAX_SAFE_BUILD_LENGTH:LXe,MAX_SAFE_INTEGER:kXe,RELEASE_TYPES:FXe,SEMVER_SPEC_VERSION:PXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var x0=m((xYt,wde)=>{"use strict";var MXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};wde.exports=MXe});var Sg=m((Hc,Ide)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:i3,MAX_SAFE_BUILD_LENGTH:UXe,MAX_LENGTH:qXe}=Ig(),GXe=x0();Hc=Ide.exports={};var HXe=Hc.re=[],VXe=Hc.safeRe=[],ue=Hc.src=[],zXe=Hc.safeSrc=[],de=Hc.t={},$Xe=0,s3="[a-zA-Z0-9-]",jXe=[["\\s",1],["\\d",qXe],[s3,UXe]],WXe=o(t=>{for(let[e,r]of jXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),We=o((t,e,r)=>{let n=WXe(e),i=$Xe++;GXe(t,i,e),de[t]=i,ue[i]=e,zXe[i]=n,HXe[i]=new RegExp(e,r?"g":void 0),VXe[i]=new RegExp(n,r?"g":void 0)},"createToken");We("NUMERICIDENTIFIER","0|[1-9]\\d*");We("NUMERICIDENTIFIERLOOSE","\\d+");We("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${s3}*`);We("MAINVERSION",`(${ue[de.NUMERICIDENTIFIER]})\\.(${ue[de.NUMERICIDENTIFIER]})\\.(${ue[de.NUMERICIDENTIFIER]})`);We("MAINVERSIONLOOSE",`(${ue[de.NUMERICIDENTIFIERLOOSE]})\\.(${ue[de.NUMERICIDENTIFIERLOOSE]})\\.(${ue[de.NUMERICIDENTIFIERLOOSE]})`);We("PRERELEASEIDENTIFIER",`(?:${ue[de.NONNUMERICIDENTIFIER]}|${ue[de.NUMERICIDENTIFIER]})`);We("PRERELEASEIDENTIFIERLOOSE",`(?:${ue[de.NONNUMERICIDENTIFIER]}|${ue[de.NUMERICIDENTIFIERLOOSE]})`);We("PRERELEASE",`(?:-(${ue[de.PRERELEASEIDENTIFIER]}(?:\\.${ue[de.PRERELEASEIDENTIFIER]})*))`);We("PRERELEASELOOSE",`(?:-?(${ue[de.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ue[de.PRERELEASEIDENTIFIERLOOSE]})*))`);We("BUILDIDENTIFIER",`${s3}+`);We("BUILD",`(?:\\+(${ue[de.BUILDIDENTIFIER]}(?:\\.${ue[de.BUILDIDENTIFIER]})*))`);We("FULLPLAIN",`v?${ue[de.MAINVERSION]}${ue[de.PRERELEASE]}?${ue[de.BUILD]}?`);We("FULL",`^${ue[de.FULLPLAIN]}$`);We("LOOSEPLAIN",`[v=\\s]*${ue[de.MAINVERSIONLOOSE]}${ue[de.PRERELEASELOOSE]}?${ue[de.BUILD]}?`);We("LOOSE",`^${ue[de.LOOSEPLAIN]}$`);We("GTLT","((?:<|>)?=?)");We("XRANGEIDENTIFIERLOOSE",`${ue[de.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);We("XRANGEIDENTIFIER",`${ue[de.NUMERICIDENTIFIER]}|x|X|\\*`);We("XRANGEPLAIN",`[v=\\s]*(${ue[de.XRANGEIDENTIFIER]})(?:\\.(${ue[de.XRANGEIDENTIFIER]})(?:\\.(${ue[de.XRANGEIDENTIFIER]})(?:${ue[de.PRERELEASE]})?${ue[de.BUILD]}?)?)?`);We("XRANGEPLAINLOOSE",`[v=\\s]*(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:${ue[de.PRERELEASELOOSE]})?${ue[de.BUILD]}?)?)?`);We("XRANGE",`^${ue[de.GTLT]}\\s*${ue[de.XRANGEPLAIN]}$`);We("XRANGELOOSE",`^${ue[de.GTLT]}\\s*${ue[de.XRANGEPLAINLOOSE]}$`);We("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i3}})(?:\\.(\\d{1,${i3}}))?(?:\\.(\\d{1,${i3}}))?`);We("COERCE",`${ue[de.COERCEPLAIN]}(?:$|[^\\d])`);We("COERCEFULL",ue[de.COERCEPLAIN]+`(?:${ue[de.PRERELEASE]})?(?:${ue[de.BUILD]})?(?:$|[^\\d])`);We("COERCERTL",ue[de.COERCE],!0);We("COERCERTLFULL",ue[de.COERCEFULL],!0);We("LONETILDE","(?:~>?)");We("TILDETRIM",`(\\s*)${ue[de.LONETILDE]}\\s+`,!0);Hc.tildeTrimReplace="$1~";We("TILDE",`^${ue[de.LONETILDE]}${ue[de.XRANGEPLAIN]}$`);We("TILDELOOSE",`^${ue[de.LONETILDE]}${ue[de.XRANGEPLAINLOOSE]}$`);We("LONECARET","(?:\\^)");We("CARETTRIM",`(\\s*)${ue[de.LONECARET]}\\s+`,!0);Hc.caretTrimReplace="$1^";We("CARET",`^${ue[de.LONECARET]}${ue[de.XRANGEPLAIN]}$`);We("CARETLOOSE",`^${ue[de.LONECARET]}${ue[de.XRANGEPLAINLOOSE]}$`);We("COMPARATORLOOSE",`^${ue[de.GTLT]}\\s*(${ue[de.LOOSEPLAIN]})$|^$`);We("COMPARATOR",`^${ue[de.GTLT]}\\s*(${ue[de.FULLPLAIN]})$|^$`);We("COMPARATORTRIM",`(\\s*)${ue[de.GTLT]}\\s*(${ue[de.LOOSEPLAIN]}|${ue[de.XRANGEPLAIN]})`,!0);Hc.comparatorTrimReplace="$1$2$3";We("HYPHENRANGE",`^\\s*(${ue[de.XRANGEPLAIN]})\\s+-\\s+(${ue[de.XRANGEPLAIN]})\\s*$`);We("HYPHENRANGELOOSE",`^\\s*(${ue[de.XRANGEPLAINLOOSE]})\\s+-\\s+(${ue[de.XRANGEPLAINLOOSE]})\\s*$`);We("STAR","(<|>)?=?\\s*\\*");We("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");We("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var WN=m((NYt,Sde)=>{"use strict";var JXe=Object.freeze({loose:!0}),YXe=Object.freeze({}),KXe=o(t=>t?typeof t!="object"?JXe:t:YXe,"parseOptions");Sde.exports=KXe});var o3=m((TYt,vde)=>{"use strict";var Bde=/^[0-9]+$/,xde=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Bde.test(t),n=Bde.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),XXe=o((t,e)=>xde(e,t),"rcompareIdentifiers");vde.exports={compareIdentifiers:xde,rcompareIdentifiers:XXe}});var ui=m((DYt,_de)=>{"use strict";var JN=x0(),{MAX_LENGTH:Nde,MAX_SAFE_INTEGER:YN}=Ig(),{safeRe:KN,t:XN}=Sg(),ZXe=WN(),{compareIdentifiers:a3}=o3(),eZe=o((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;n<r.length;n++)if(a3(t[n],r[n])!==0)return!1;return!0},"isPrereleaseIdentifier"),c3=class t{static{o(this,"SemVer")}constructor(e,r){if(r=ZXe(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>Nde)throw new TypeError(`version is longer than ${Nde} characters`);JN("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?KN[XN.LOOSE]:KN[XN.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>YN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>YN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>YN||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<YN)return s}return i}):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(JN("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.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(JN("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return a3(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(JN("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return a3(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?KN[XN.PRERELEASELOOSE]:KN[XN.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];if(n===!1&&(s=[r]),eZe(this.prerelease,r)){let a=this.prerelease[r.split(".").length];isNaN(a)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};_de.exports=c3});var df=m((PYt,Rde)=>{"use strict";var Tde=ui(),tZe=o((t,e,r=!1)=>{if(t instanceof Tde)return t;try{return new Tde(t,e)}catch(n){if(!r)return null;throw n}},"parse");Rde.exports=tZe});var Qde=m((OYt,Dde)=>{"use strict";var rZe=df(),nZe=o((t,e)=>{let r=rZe(t,e);return r?r.version:null},"valid");Dde.exports=nZe});var kde=m((FYt,Pde)=>{"use strict";var iZe=df(),sZe=o((t,e)=>{let r=iZe(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Pde.exports=sZe});var Fde=m((UYt,Lde)=>{"use strict";var Ode=ui(),oZe=o((t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Ode(t instanceof Ode?t.version:t,r).inc(e,n,i).version}catch{return null}},"inc");Lde.exports=oZe});var qde=m((GYt,Ude)=>{"use strict";var Mde=df(),aZe=o((t,e)=>{let r=Mde(t,null,!0),n=Mde(e,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,c=s?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");Ude.exports=aZe});var Hde=m((VYt,Gde)=>{"use strict";var cZe=ui(),lZe=o((t,e)=>new cZe(t,e).major,"major");Gde.exports=lZe});var zde=m(($Yt,Vde)=>{"use strict";var uZe=ui(),dZe=o((t,e)=>new uZe(t,e).minor,"minor");Vde.exports=dZe});var jde=m((WYt,$de)=>{"use strict";var fZe=ui(),hZe=o((t,e)=>new fZe(t,e).patch,"patch");$de.exports=hZe});var Jde=m((YYt,Wde)=>{"use strict";var pZe=df(),AZe=o((t,e)=>{let r=pZe(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Wde.exports=AZe});var Wo=m((XYt,Kde)=>{"use strict";var Yde=ui(),mZe=o((t,e,r)=>new Yde(t,r).compare(new Yde(e,r)),"compare");Kde.exports=mZe});var Zde=m((eKt,Xde)=>{"use strict";var gZe=Wo(),yZe=o((t,e,r)=>gZe(e,t,r),"rcompare");Xde.exports=yZe});var tfe=m((rKt,efe)=>{"use strict";var EZe=Wo(),CZe=o((t,e)=>EZe(t,e,!0),"compareLoose");efe.exports=CZe});var ZN=m((iKt,nfe)=>{"use strict";var rfe=ui(),bZe=o((t,e,r)=>{let n=new rfe(t,r),i=new rfe(e,r);return n.compare(i)||n.compareBuild(i)},"compareBuild");nfe.exports=bZe});var sfe=m((oKt,ife)=>{"use strict";var wZe=ZN(),IZe=o((t,e)=>t.sort((r,n)=>wZe(r,n,e)),"sort");ife.exports=IZe});var afe=m((cKt,ofe)=>{"use strict";var SZe=ZN(),BZe=o((t,e)=>t.sort((r,n)=>SZe(n,r,e)),"rsort");ofe.exports=BZe});var v0=m((uKt,cfe)=>{"use strict";var xZe=Wo(),vZe=o((t,e,r)=>xZe(t,e,r)>0,"gt");cfe.exports=vZe});var e_=m((fKt,lfe)=>{"use strict";var NZe=Wo(),_Ze=o((t,e,r)=>NZe(t,e,r)<0,"lt");lfe.exports=_Ze});var l3=m((pKt,ufe)=>{"use strict";var TZe=Wo(),RZe=o((t,e,r)=>TZe(t,e,r)===0,"eq");ufe.exports=RZe});var u3=m((mKt,dfe)=>{"use strict";var DZe=Wo(),QZe=o((t,e,r)=>DZe(t,e,r)!==0,"neq");dfe.exports=QZe});var t_=m((yKt,ffe)=>{"use strict";var PZe=Wo(),kZe=o((t,e,r)=>PZe(t,e,r)>=0,"gte");ffe.exports=kZe});var r_=m((CKt,hfe)=>{"use strict";var OZe=Wo(),LZe=o((t,e,r)=>OZe(t,e,r)<=0,"lte");hfe.exports=LZe});var d3=m((wKt,pfe)=>{"use strict";var FZe=l3(),MZe=u3(),UZe=v0(),qZe=t_(),GZe=e_(),HZe=r_(),VZe=o((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return FZe(t,r,n);case"!=":return MZe(t,r,n);case">":return UZe(t,r,n);case">=":return qZe(t,r,n);case"<":return GZe(t,r,n);case"<=":return HZe(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");pfe.exports=VZe});var mfe=m((SKt,Afe)=>{"use strict";var zZe=ui(),$Ze=df(),{safeRe:n_,t:i_}=Sg(),jZe=o((t,e)=>{if(t instanceof zZe)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?n_[i_.COERCEFULL]:n_[i_.COERCE]);else{let l=e.includePrerelease?n_[i_.COERCERTLFULL]:n_[i_.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return $Ze(`${n}.${i}.${s}${a}${c}`,e)},"coerce");Afe.exports=jZe});var yfe=m((xKt,gfe)=>{"use strict";var WZe=df(),JZe=Ig(),YZe=ui(),KZe=o((t,e,r)=>{if(!JZe.RELEASE_TYPES.includes(e))return null;let n=XZe(t,r);return n&&ZZe(n,e)},"truncate"),XZe=o((t,e)=>{let r=t instanceof YZe?t.version:t;return WZe(r,e)},"cloneInputVersion"),ZZe=o((t,e)=>{if(eet(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"),eet=o(t=>t.startsWith("pre"),"isPrerelease");gfe.exports=KZe});var Cfe=m((NKt,Efe)=>{"use strict";var f3=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};Efe.exports=f3});var Jo=m((TKt,Sfe)=>{"use strict";var tet=/\s+/g,h3=class t{static{o(this,"Range")}constructor(e,r){if(r=net(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof p3)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(tet," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!wfe(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&het(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(fet,"");let n=((this.options.includePrerelease&&uet)|(this.options.loose&&det))+":"+e,i=bfe.get(n);if(i)return i;let s=this.options.loose,a=s?Wi[di.HYPHENRANGELOOSE]:Wi[di.HYPHENRANGE];e=e.replace(a,Bet(this.options.includePrerelease)),sr("hyphen replace",e),e=e.replace(Wi[di.COMPARATORTRIM],oet),sr("comparator trim",e),e=e.replace(Wi[di.TILDETRIM],aet),sr("tilde trim",e),e=e.replace(Wi[di.CARETTRIM],cet),sr("caret trim",e);let c=e.split(" ").map(f=>pet(f,this.options)).join(" ").split(/\s+/).map(f=>Iet(f,this.options));s&&(c=c.filter(f=>(sr("loose invalid filter",f,this.options),!!f.match(Wi[di.COMPARATORLOOSE])))),sr("range list",c);let l=new Map,u=c.map(f=>new p3(f,this.options));for(let f of u){if(wfe(f))return[f];l.set(f.value,f)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return bfe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Ife(n,r)&&e.set.some(i=>Ife(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new iet(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(xet(this.set[r],e,this.options))return!0;return!1}};Sfe.exports=h3;var ret=Cfe(),bfe=new ret,net=WN(),p3=N0(),sr=x0(),iet=ui(),{safeRe:Wi,src:set,t:di,comparatorTrimReplace:oet,tildeTrimReplace:aet,caretTrimReplace:cet}=Sg(),{FLAG_INCLUDE_PRERELEASE:uet,FLAG_LOOSE:det}=Ig(),fet=new RegExp(set[di.BUILD],"g"),wfe=o(t=>t.value==="<0.0.0-0","isNullSet"),het=o(t=>t.value==="","isAny"),Ife=o((t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},"isSatisfiable"),pet=o((t,e)=>(t=t.replace(Wi[di.BUILD],""),sr("comp",t,e),t=yet(t,e),sr("caret",t),t=met(t,e),sr("tildes",t),t=Cet(t,e),sr("xrange",t),t=wet(t,e),sr("stars",t),t),"parseComparator"),xn=o(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),Aet=o((t,e,r)=>xn(t)&&!xn(e)||xn(e)&&r&&!xn(r),"invalidXRangeOrder"),met=o((t,e)=>t.trim().split(/\s+/).map(r=>get(r,e)).join(" "),"replaceTildes"),get=o((t,e)=>{let r=e.loose?Wi[di.TILDELOOSE]:Wi[di.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{sr("tilde",t,i,s,a,c,l);let u;return xn(s)?u="":xn(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:xn(c)?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:l?(sr("replaceTilde pr",l),u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`):u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`,sr("tilde return",u),u})},"replaceTilde"),yet=o((t,e)=>t.trim().split(/\s+/).map(r=>Eet(r,e)).join(" "),"replaceCarets"),Eet=o((t,e)=>{sr("caret",t,e);let r=e.loose?Wi[di.CARETLOOSE]:Wi[di.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{sr("caret",t,i,s,a,c,l);let u;return xn(s)?u="":xn(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:xn(c)?s==="0"?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:l?(sr("replaceCaret pr",l),s==="0"?a==="0"?u=`>=${s}.${a}.${c}-${l} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c}-${l} <${+s+1}.0.0-0`):(sr("no pr"),s==="0"?a==="0"?u=`>=${s}.${a}.${c} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),sr("caret return",u),u})},"replaceCaret"),Cet=o((t,e)=>(sr("replaceXRanges",t,e),t.split(/\s+/).map(r=>bet(r,e)).join(" ")),"replaceXRanges"),bet=o((t,e)=>{t=t.trim();let r=e.loose?Wi[di.XRANGELOOSE]:Wi[di.XRANGE];return t.replace(r,(n,i,s,a,c,l)=>{if(sr("xRange",t,n,i,s,a,c,l),Aet(s,a,c))return t;let u=xn(s),d=u||xn(a),f=d||xn(c),h=f;return i==="="&&h&&(i=""),l=e.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(d&&(a=0),c=0,i===">"?(i=">=",d?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):i==="<="&&(i="<",d?s=+s+1:a=+a+1),i==="<"&&(l="-0"),n=`${i+s}.${a}.${c}${l}`):d?n=`>=${s}.0.0${l} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${l} <${s}.${+a+1}.0-0`),sr("xRange return",n),n})},"replaceXRange"),wet=o((t,e)=>(sr("replaceStars",t,e),t.trim().replace(Wi[di.STAR],"")),"replaceStars"),Iet=o((t,e)=>(sr("replaceGTE0",t,e),t.trim().replace(Wi[e.includePrerelease?di.GTE0PRE:di.GTE0],"")),"replaceGTE0"),Bet=o(t=>(e,r,n,i,s,a,c,l,u,d,f,h)=>(xn(n)?r="":xn(i)?r=`>=${n}.0.0${t?"-0":""}`:xn(s)?r=`>=${n}.${i}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,xn(u)?l="":xn(d)?l=`<${+u+1}.0.0-0`:xn(f)?l=`<${u}.${+d+1}.0-0`:h?l=`<=${u}.${d}.${f}-${h}`:t?l=`<${u}.${d}.${+f+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),xet=o((t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(sr(t[n].semver),t[n].semver!==p3.ANY&&t[n].semver.prerelease.length>0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0},"testSet")});var N0=m((DKt,Tfe)=>{"use strict";var _0=Symbol("SemVer ANY"),g3=class t{static{o(this,"Comparator")}static get ANY(){return _0}constructor(e,r){if(r=Bfe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),m3("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===_0?this.value="":this.value=this.operator+this.semver.version,m3("comp",this)}parse(e){let r=this.options.loose?xfe[vfe.COMPARATORLOOSE]:xfe[vfe.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 Nfe(n[2],this.options.loose):this.semver=_0}toString(){return this.value}test(e){if(m3("Comparator.test",e,this.options.loose),this.semver===_0||e===_0)return!0;if(typeof e=="string")try{e=new Nfe(e,this.options)}catch{return!1}return A3(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 _fe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new _fe(this.value,r).test(e.semver):(r=Bfe(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("=")||A3(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||A3(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Tfe.exports=g3;var Bfe=WN(),{safeRe:xfe,t:vfe}=Sg(),A3=d3(),m3=x0(),Nfe=ui(),_fe=Jo()});var T0=m((PKt,Rfe)=>{"use strict";var vet=Jo(),Net=o((t,e,r)=>{try{e=new vet(e,r)}catch{return!1}return e.test(t)},"satisfies");Rfe.exports=Net});var Qfe=m((OKt,Dfe)=>{"use strict";var _et=Jo(),Tet=o((t,e)=>new _et(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Dfe.exports=Tet});var kfe=m((FKt,Pfe)=>{"use strict";var Ret=ui(),Det=Jo(),Qet=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new Det(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new Ret(n,r))}),n},"maxSatisfying");Pfe.exports=Qet});var Lfe=m((UKt,Ofe)=>{"use strict";var Pet=ui(),ket=Jo(),Oet=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new ket(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new Pet(n,r))}),n},"minSatisfying");Ofe.exports=Oet});var Ufe=m((GKt,Mfe)=>{"use strict";var y3=ui(),Let=Jo(),Ffe=v0(),Fet=o((t,e)=>{t=new Let(t,e);let r=new y3("0.0.0");if(t.test(r)||(r=new y3("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let i=t.set[n],s=null;i.forEach(a=>{let c=new y3(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||Ffe(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||Ffe(r,s))&&(r=s)}return r&&t.test(r)?r:null},"minVersion");Mfe.exports=Fet});var Gfe=m((VKt,qfe)=>{"use strict";var Met=Jo(),Uet=o((t,e)=>{try{return new Met(t,e).range||"*"}catch{return null}},"validRange");qfe.exports=Uet});var s_=m(($Kt,$fe)=>{"use strict";var qet=ui(),zfe=N0(),{ANY:Get}=zfe,Het=Jo(),Vet=T0(),Hfe=v0(),Vfe=e_(),zet=r_(),$et=t_(),jet=o((t,e,r,n)=>{t=new qet(t,n),e=new Het(e,n);let i,s,a,c,l;switch(r){case">":i=Hfe,s=zet,a=Vfe,c=">",l=">=";break;case"<":i=Vfe,s=$et,a=Hfe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Vet(t,e,n))return!1;for(let u=0;u<e.set.length;++u){let d=e.set[u],f=null,h=null;if(d.forEach(p=>{p.semver===Get&&(p=new zfe(">=0.0.0")),f=f||p,h=h||p,i(p.semver,f.semver,n)?f=p:a(p.semver,h.semver,n)&&(h=p)}),f.operator===c||f.operator===l||(!h.operator||h.operator===c)&&s(t,h.semver))return!1;if(h.operator===l&&a(t,h.semver))return!1}return!0},"outside");$fe.exports=jet});var Wfe=m((WKt,jfe)=>{"use strict";var Wet=s_(),Jet=o((t,e,r)=>Wet(t,e,">",r),"gtr");jfe.exports=Jet});var Yfe=m((YKt,Jfe)=>{"use strict";var Yet=s_(),Ket=o((t,e,r)=>Yet(t,e,"<",r),"ltr");Jfe.exports=Ket});var Zfe=m((XKt,Xfe)=>{"use strict";var Kfe=Jo(),Xet=o((t,e,r)=>(t=new Kfe(t,r),e=new Kfe(e,r),t.intersects(e,r)),"intersects");Xfe.exports=Xet});var the=m((e7t,ehe)=>{"use strict";var Zet=T0(),ett=Wo();ehe.exports=(t,e,r)=>{let n=[],i=null,s=null,a=t.sort((d,f)=>ett(d,f,r));for(let d of a)Zet(d,e,r)?(s=d,i||(i=d)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let c=[];for(let[d,f]of n)d===f?c.push(d):!f&&d===a[0]?c.push("*"):f?d===a[0]?c.push(`<=${f}`):c.push(`${d} - ${f}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e}});var ahe=m((t7t,ohe)=>{"use strict";var rhe=Jo(),b3=N0(),{ANY:E3}=b3,C3=T0(),w3=Wo(),ttt=o((t,e,r={})=>{if(t===e)return!0;t=new rhe(t,r),e=new rhe(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let a=ntt(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),rtt=[new b3(">=0.0.0-0")],nhe=[new b3(">=0.0.0")],ntt=o((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===E3){if(e.length===1&&e[0].semver===E3)return!0;r.includePrerelease?t=rtt:t=nhe}if(e.length===1&&e[0].semver===E3){if(r.includePrerelease)return!0;e=nhe}let n=new Set,i,s;for(let p of t)p.operator===">"||p.operator===">="?i=ihe(i,p,r):p.operator==="<"||p.operator==="<="?s=she(s,p,r):n.add(p.semver);if(n.size>1)return null;let a;if(i&&s){if(a=w3(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!C3(p,String(i),r)||s&&!C3(p,String(s),r))return null;for(let g of e)if(!C3(p,String(g),r))return!1;return!0}let c,l,u,d,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of e){if(d=d||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(c=ihe(i,p,r),c===p&&c!==i)return!1}else if(i.operator===">="&&!p.test(i.semver))return!1}if(s){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(l=she(s,p,r),l===p&&l!==s)return!1}else if(s.operator==="<="&&!p.test(s.semver))return!1}if(!p.operator&&(s||i)&&a!==0)return!1}return!(i&&u&&!s&&a!==0||s&&d&&!i&&a!==0||h||f)},"simpleSubset"),ihe=o((t,e,r)=>{if(!t)return e;let n=w3(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),she=o((t,e,r)=>{if(!t)return e;let n=w3(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");ohe.exports=ttt});var dhe=m((n7t,uhe)=>{"use strict";var I3=Sg(),che=Ig(),itt=ui(),lhe=o3(),stt=df(),ott=Qde(),att=kde(),ctt=Fde(),ltt=qde(),utt=Hde(),dtt=zde(),ftt=jde(),htt=Jde(),ptt=Wo(),Att=Zde(),mtt=tfe(),gtt=ZN(),ytt=sfe(),Ett=afe(),Ctt=v0(),btt=e_(),wtt=l3(),Itt=u3(),Stt=t_(),Btt=r_(),xtt=d3(),vtt=mfe(),Ntt=yfe(),_tt=N0(),Ttt=Jo(),Rtt=T0(),Dtt=Qfe(),Qtt=kfe(),Ptt=Lfe(),ktt=Ufe(),Ott=Gfe(),Ltt=s_(),Ftt=Wfe(),Mtt=Yfe(),Utt=Zfe(),qtt=the(),Gtt=ahe();uhe.exports={parse:stt,valid:ott,clean:att,inc:ctt,diff:ltt,major:utt,minor:dtt,patch:ftt,prerelease:htt,compare:ptt,rcompare:Att,compareLoose:mtt,compareBuild:gtt,sort:ytt,rsort:Ett,gt:Ctt,lt:btt,eq:wtt,neq:Itt,gte:Stt,lte:Btt,cmp:xtt,coerce:vtt,truncate:Ntt,Comparator:_tt,Range:Ttt,satisfies:Rtt,toComparators:Dtt,maxSatisfying:Qtt,minSatisfying:Ptt,minVersion:ktt,validRange:Ott,outside:Ltt,gtr:Ftt,ltr:Mtt,intersects:Utt,simplifyRange:qtt,subset:Gtt,SemVer:itt,re:I3.re,src:I3.src,tokens:I3.t,SEMVER_SPEC_VERSION:che.SEMVER_SPEC_VERSION,RELEASE_TYPES:che.RELEASE_TYPES,compareIdentifiers:lhe.compareIdentifiers,rcompareIdentifiers:lhe.rcompareIdentifiers}});var Zhe=m((cZt,Xhe)=>{var Rg=1e3,Dg=Rg*60,Qg=Dg*60,yp=Qg*24,Srt=yp*7,Brt=yp*365.25;Xhe.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return xrt(t);if(r==="number"&&isFinite(t))return e.long?Nrt(t):vrt(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function xrt(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*Brt;case"weeks":case"week":case"w":return r*Srt;case"days":case"day":case"d":return r*yp;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Qg;case"minutes":case"minute":case"mins":case"min":case"m":return r*Dg;case"seconds":case"second":case"secs":case"sec":case"s":return r*Rg;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}o(xrt,"parse");function vrt(t){var e=Math.abs(t);return e>=yp?Math.round(t/yp)+"d":e>=Qg?Math.round(t/Qg)+"h":e>=Dg?Math.round(t/Dg)+"m":e>=Rg?Math.round(t/Rg)+"s":t+"ms"}o(vrt,"fmtShort");function Nrt(t){var e=Math.abs(t);return e>=yp?R_(t,e,yp,"day"):e>=Qg?R_(t,e,Qg,"hour"):e>=Dg?R_(t,e,Dg,"minute"):e>=Rg?R_(t,e,Rg,"second"):t+" ms"}o(Nrt,"fmtLong");function R_(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}o(R_,"plural")});var W3=m((uZt,epe)=>{function _rt(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=i,r.enabled=a,r.humanize=Zhe(),r.destroy=u,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let f=0;for(let h=0;h<d.length;h++)f=(f<<5)-f+d.charCodeAt(h),f|=0;return r.colors[Math.abs(f)%r.colors.length]}o(e,"selectColor"),r.selectColor=e;function r(d){let f,h=null,p,g;function A(...E){if(!A.enabled)return;let y=A,C=Number(new Date),w=C-(f||C);y.diff=w,y.prev=f,y.curr=C,f=C,E[0]=r.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let B=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(U,v)=>{if(U==="%%")return"%";B++;let j=r.formatters[v];if(typeof j=="function"){let D=E[B];U=j.call(y,D),E.splice(B,1),B--}return U}),r.formatArgs.call(y,E),(y.log||r.log).apply(y,E)}return o(A,"debug"),A.namespace=d,A.useColors=r.useColors(),A.color=r.selectColor(d),A.extend=n,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:o(()=>h!==null?h:(p!==r.namespaces&&(p=r.namespaces,g=r.enabled(d)),g),"get"),set:o(E=>{h=E},"set")}),typeof r.init=="function"&&r.init(A),A}o(r,"createDebug");function n(d,f){let h=r(this.namespace+(typeof f>"u"?":":f)+d);return h.log=this.log,h}o(n,"extend");function i(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let f,h=(typeof d=="string"?d:"").split(/[\s,]+/),p=h.length;for(f=0;f<p;f++)h[f]&&(d=h[f].replace(/\*/g,".*?"),d[0]==="-"?r.skips.push(new RegExp("^"+d.slice(1)+"$")):r.names.push(new RegExp("^"+d+"$")))}o(i,"enable");function s(){let d=[...r.names.map(c),...r.skips.map(c).map(f=>"-"+f)].join(",");return r.enable(""),d}o(s,"disable");function a(d){if(d[d.length-1]==="*")return!0;let f,h;for(f=0,h=r.skips.length;f<h;f++)if(r.skips[f].test(d))return!1;for(f=0,h=r.names.length;f<h;f++)if(r.names[f].test(d))return!0;return!1}o(a,"enabled");function c(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}o(c,"toNamespace");function l(d){return d instanceof Error?d.stack||d.message:d}o(l,"coerce");function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o(u,"destroy"),r.enable(r.load()),r}o(_rt,"setup");epe.exports=_rt});var tpe=m((lo,D_)=>{lo.formatArgs=Rrt;lo.save=Drt;lo.load=Qrt;lo.useColors=Trt;lo.storage=Prt();lo.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`."))}})();lo.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 Trt(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}o(Trt,"useColors");function Rrt(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+D_.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}o(Rrt,"formatArgs");lo.log=console.debug||console.log||(()=>{});function Drt(t){try{t?lo.storage.setItem("debug",t):lo.storage.removeItem("debug")}catch{}}o(Drt,"save");function Qrt(){let t;try{t=lo.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}o(Qrt,"load");function Prt(){try{return localStorage}catch{}}o(Prt,"localstorage");D_.exports=W3()(lo);var{formatters:krt}=D_.exports;krt.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var npe=m((hZt,rpe)=>{"use strict";rpe.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var K3=m((pZt,spe)=>{"use strict";var Ort=require("os"),ipe=require("tty"),Ko=npe(),{env:Vn}=process,pf;Ko("no-color")||Ko("no-colors")||Ko("color=false")||Ko("color=never")?pf=0:(Ko("color")||Ko("colors")||Ko("color=true")||Ko("color=always"))&&(pf=1);"FORCE_COLOR"in Vn&&(Vn.FORCE_COLOR==="true"?pf=1:Vn.FORCE_COLOR==="false"?pf=0:pf=Vn.FORCE_COLOR.length===0?1:Math.min(parseInt(Vn.FORCE_COLOR,10),3));function J3(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}o(J3,"translateLevel");function Y3(t,e){if(pf===0)return 0;if(Ko("color=16m")||Ko("color=full")||Ko("color=truecolor"))return 3;if(Ko("color=256"))return 2;if(t&&!e&&pf===void 0)return 0;let r=pf||0;if(Vn.TERM==="dumb")return r;if(process.platform==="win32"){let n=Ort.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Vn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Vn)||Vn.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Vn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Vn.TEAMCITY_VERSION)?1:0;if(Vn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Vn){let n=parseInt((Vn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Vn.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Vn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Vn.TERM)||"COLORTERM"in Vn?1:r}o(Y3,"supportsColor");function Lrt(t){let e=Y3(t,t&&t.isTTY);return J3(e)}o(Lrt,"getSupportLevel");spe.exports={supportsColor:Lrt,stdout:J3(Y3(!0,ipe.isatty(1))),stderr:J3(Y3(!0,ipe.isatty(2)))}});var ape=m((fi,P_)=>{var Frt=require("tty"),Q_=require("util");fi.init=zrt;fi.log=Grt;fi.formatArgs=Urt;fi.save=Hrt;fi.load=Vrt;fi.useColors=Mrt;fi.destroy=Q_.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");fi.colors=[6,2,3,4,5,1];try{let t=K3();t&&(t.stderr||t).level>=2&&(fi.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{}fi.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Mrt(){return"colors"in fi.inspectOpts?!!fi.inspectOpts.colors:Frt.isatty(process.stderr.fd)}o(Mrt,"useColors");function Urt(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
|
|
`).join(`
|
|
`+s),t.push(i+"m+"+P_.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=qrt()+e+" "+t[0]}o(Urt,"formatArgs");function qrt(){return fi.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(qrt,"getDate");function Grt(...t){return process.stderr.write(Q_.format(...t)+`
|
|
`)}o(Grt,"log");function Hrt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(Hrt,"save");function Vrt(){return process.env.DEBUG}o(Vrt,"load");function zrt(t){t.inspectOpts={};let e=Object.keys(fi.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=fi.inspectOpts[e[r]]}o(zrt,"init");P_.exports=W3()(fi);var{formatters:ope}=P_.exports;ope.o=function(t){return this.inspectOpts.colors=this.useColors,Q_.inspect(t,this.inspectOpts).split(`
|
|
`).map(e=>e.trim()).join(" ")};ope.O=function(t){return this.inspectOpts.colors=this.useColors,Q_.inspect(t,this.inspectOpts)}});var k_=m((gZt,X3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?X3.exports=tpe():X3.exports=ape()});var upe=m(Bs=>{"use strict";var $rt=Bs&&Bs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jrt=Bs&&Bs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cpe=Bs&&Bs.__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)&&$rt(e,t,r);return jrt(e,t),e};Object.defineProperty(Bs,"__esModule",{value:!0});Bs.req=Bs.json=Bs.toBuffer=void 0;var Wrt=cpe(require("http")),Jrt=cpe(require("https"));async function lpe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(lpe,"toBuffer");Bs.toBuffer=lpe;async function Yrt(t){let r=(await lpe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(Yrt,"json");Bs.json=Yrt;function Krt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Jrt:Wrt).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(Krt,"req");Bs.req=Krt});var ppe=m(uo=>{"use strict";var fpe=uo&&uo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Xrt=uo&&uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hpe=uo&&uo.__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)&&fpe(e,t,r);return Xrt(e,t),e},Zrt=uo&&uo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fpe(e,t,r)};Object.defineProperty(uo,"__esModule",{value:!0});uo.Agent=void 0;var ent=hpe(require("net")),dpe=hpe(require("http")),tnt=require("https");Zrt(upe(),uo);var jc=Symbol("AgentBaseInternalState"),Z3=class extends dpe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[jc]={}}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 ent.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?tnt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof dpe.Agent)try{return c.addRequest(e,i)}catch(l){return n(l)}this[jc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[jc].currentSocket;if(this[jc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[jc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[jc]&&(this[jc].defaultPort=e)}get protocol(){return this[jc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[jc]&&(this[jc].protocol=e)}};uo.Agent=Z3});var Ape=m(Pg=>{"use strict";var rnt=Pg&&Pg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pg,"__esModule",{value:!0});Pg.parseProxyResponse=void 0;var nnt=rnt(k_()),O_=(0,nnt.default)("https-proxy-agent:parse-proxy-response");function int(t){return new Promise((e,r)=>{let n=0,i=[];function s(){let d=t.read();d?u(d):t.once("readable",s)}o(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",s)}o(a,"cleanup");function c(){a(),O_("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),O_("onerror %o",d),r(d)}o(l,"onerror");function u(d){i.push(d),n+=d.length;let f=Buffer.concat(i,n),h=f.indexOf(`\r
|
|
\r
|
|
`);if(h===-1){O_("have not received end of HTTP headers yet..."),s();return}let p=f.slice(0,h).toString("ascii").split(`\r
|
|
`),g=p.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=g.split(" "),E=+A[1],y=A.slice(2).join(" "),C={};for(let w of p){if(!w)continue;let B=w.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let Q=w.slice(0,B).toLowerCase(),U=w.slice(B+1).trimStart(),v=C[Q];typeof v=="string"?C[Q]=[v,U]:Array.isArray(v)?v.push(U):C[Q]=U}O_("got proxy server response: %o %o",g,C),a(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:f})}o(u,"ondata"),t.on("error",l),t.on("end",c),s()})}o(int,"parseProxyResponse");Pg.parseProxyResponse=int});var bpe=m(Xo=>{"use strict";var snt=Xo&&Xo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ont=Xo&&Xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Epe=Xo&&Xo.__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)&&snt(e,t,r);return ont(e,t),e},Cpe=Xo&&Xo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xo,"__esModule",{value:!0});Xo.HttpsProxyAgent=void 0;var L_=Epe(require("net")),mpe=Epe(require("tls")),ant=Cpe(require("assert")),cnt=Cpe(k_()),lnt=ppe(),unt=require("url"),dnt=Ape(),U0=(0,cnt.default)("https-proxy-agent"),gpe=o(t=>t.servername===void 0&&t.host&&!L_.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),F_=class extends lnt.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new unt.URL(e):e,this.proxyHeaders=r?.headers??{},U0("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ype(r,"headers"):null,host:n,port:i}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let i;n.protocol==="https:"?(U0("Creating `tls.Socket`: %o",this.connectOpts),i=mpe.connect(gpe(this.connectOpts))):(U0("Creating `net.Socket`: %o",this.connectOpts),i=L_.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=L_.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
|
|
`;if(n.username||n.password){let h=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))c+=`${h}: ${s[h]}\r
|
|
`;let l=(0,dnt.parseProxyResponse)(i);i.write(`${c}\r
|
|
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",fnt),r.secureEndpoint?(U0("Upgrading socket connection to TLS"),mpe.connect({...ype(gpe(r),"host","path","port"),socket:i})):i;i.destroy();let f=new L_.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{U0("Replaying proxy buffer for failed request"),(0,ant.default)(h.listenerCount("data")>0),h.push(d),h.push(null)}),f}};F_.protocols=["http","https"];Xo.HttpsProxyAgent=F_;function fnt(t){t.resume()}o(fnt,"resume");function ype(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(ype,"omit")});var Spe=m(xs=>{"use strict";var hnt=xs&&xs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),pnt=xs&&xs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wpe=xs&&xs.__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)&&hnt(e,t,r);return pnt(e,t),e};Object.defineProperty(xs,"__esModule",{value:!0});xs.req=xs.json=xs.toBuffer=void 0;var Ant=wpe(require("http")),mnt=wpe(require("https"));async function Ipe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(Ipe,"toBuffer");xs.toBuffer=Ipe;async function gnt(t){let r=(await Ipe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(gnt,"json");xs.json=gnt;function ynt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?mnt:Ant).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(ynt,"req");xs.req=ynt});var Npe=m(fo=>{"use strict";var xpe=fo&&fo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ent=fo&&fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vpe=fo&&fo.__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)&&xpe(e,t,r);return Ent(e,t),e},Cnt=fo&&fo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&xpe(e,t,r)};Object.defineProperty(fo,"__esModule",{value:!0});fo.Agent=void 0;var bnt=vpe(require("net")),Bpe=vpe(require("http")),wnt=require("https");Cnt(Spe(),fo);var Wc=Symbol("AgentBaseInternalState"),eG=class extends Bpe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Wc]={}}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 bnt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?wnt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof Bpe.Agent)return c.addRequest(e,i);this[Wc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[Wc].currentSocket;if(this[Wc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Wc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Wc]&&(this[Wc].defaultPort=e)}get protocol(){return this[Wc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Wc]&&(this[Wc].protocol=e)}};fo.Agent=eG});var Rpe=m(Zo=>{"use strict";var Int=Zo&&Zo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Snt=Zo&&Zo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tpe=Zo&&Zo.__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)&&Int(e,t,r);return Snt(e,t),e},Bnt=Zo&&Zo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.HttpProxyAgent=void 0;var xnt=Tpe(require("net")),vnt=Tpe(require("tls")),Nnt=Bnt(k_()),_nt=require("events"),Tnt=Npe(),_pe=require("url"),kg=(0,Nnt.default)("http-proxy-agent"),M_=class extends Tnt.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new _pe.URL(e):e,this.proxyHeaders=r?.headers??{},kg("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Rnt(r,"headers"):null,host:n,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,i=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${i}//${s}`,c=new _pe.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,i;kg("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(kg("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,i=n.indexOf(`\r
|
|
\r
|
|
`)+4,e.outputData[0].data=e._header+n.substring(i),kg("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(kg("Creating `tls.Socket`: %o",this.connectOpts),s=vnt.connect(this.connectOpts)):(kg("Creating `net.Socket`: %o",this.connectOpts),s=xnt.connect(this.connectOpts)),await(0,_nt.once)(s,"connect"),s}};M_.protocols=["http","https"];Zo.HttpProxyAgent=M_;function Rnt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(Rnt,"omit")});var Zpe=m(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.state=void 0;Z_.state={instrumenterImplementation:void 0}});var mAe=m(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});iT.state=void 0;iT.state={operationRequestMap:new WeakMap}});var Wge=m(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});var Kct=require("os"),Xct=require("util");function Zct(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(Zct,"_interopDefaultLegacy");var elt=Zct(Xct);function tlt(t,...e){process.stderr.write(`${elt.default.format(t,...e)}${Kct.EOL}`)}o(tlt,"log");var Fge=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Uge,D5=[],Q5=[],IR=[];Fge&&P5(Fge);var qge=Object.assign(t=>Gge(t),{enable:P5,enabled:k5,disable:rlt,log:tlt});function P5(t){Uge=t,D5=[],Q5=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?Q5.push(new RegExp(`^${n.substr(1)}$`)):D5.push(new RegExp(`^${n}$`));for(let n of IR)n.enabled=k5(n.namespace)}o(P5,"enable");function k5(t){if(t.endsWith("*"))return!0;for(let e of Q5)if(e.test(t))return!1;for(let e of D5)if(e.test(t))return!0;return!1}o(k5,"enabled");function rlt(){let t=Uge||"";return P5(""),t}o(rlt,"disable");function Gge(t){let e=Object.assign(r,{enabled:k5(t),destroy:nlt,log:qge.log,namespace:t,extend:ilt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),IR.push(e),e}o(Gge,"createDebugger");function nlt(){let t=IR.indexOf(this);return t>=0?(IR.splice(t,1),!0):!1}o(nlt,"destroy");function ilt(t){let e=Gge(`${this.namespace}:${t}`);return e.log=this.log,e}o(ilt,"extend");var vw=qge,Hge=new Set,bR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,SR,BR=vw("azure");BR.log=(...t)=>{vw.log(...t)};var O5=["verbose","info","warning","error"];bR&&(jge(bR)?Vge(bR):console.error(`AZURE_LOG_LEVEL set to unknown log level '${bR}'; logging is not enabled. Acceptable values: ${O5.join(", ")}.`));function Vge(t){if(t&&!jge(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${O5.join(",")}`);SR=t;let e=[];for(let r of Hge)$ge(r)&&e.push(r.namespace);vw.enable(e.join(","))}o(Vge,"setLogLevel");function slt(){return SR}o(slt,"getLogLevel");var Mge={verbose:400,info:300,warning:200,error:100};function olt(t){let e=BR.extend(t);return zge(BR,e),{error:wR(e,"error"),warning:wR(e,"warning"),info:wR(e,"info"),verbose:wR(e,"verbose")}}o(olt,"createClientLogger");function zge(t,e){e.log=(...r)=>{t.log(...r)}}o(zge,"patchLogMethod");function wR(t,e){let r=Object.assign(t.extend(e),{level:e});if(zge(t,r),$ge(r)){let n=vw.disable();vw.enable(n+","+r.namespace)}return Hge.add(r),r}o(wR,"createLogger");function $ge(t){return!!(SR&&Mge[t.level]<=Mge[SR])}o($ge,"shouldEnable");function jge(t){return O5.includes(t)}o(jge,"isAzureLogLevel");Zg.AzureLogger=BR;Zg.createClientLogger=olt;Zg.getLogLevel=slt;Zg.setLogLevel=Vge});var M5=m(_w=>{"use strict";Object.defineProperty(_w,"__esModule",{value:!0});var ey=new WeakMap,xR=new WeakMap,Nw=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,ey.set(this,[]),xR.set(this,!1)}get aborted(){if(!xR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return xR.get(this)}static get none(){return new t}addEventListener(e,r){if(!ey.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");ey.get(this).push(r)}removeEventListener(e,r){if(!ey.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=ey.get(this),i=n.indexOf(r);i>-1&&n.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function Jge(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=ey.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),xR.set(t,!0)}o(Jge,"abortSignal");var L5=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},F5=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Nw,!!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(){Jge(this._signal)}static timeout(e){let r=new Nw,n=setTimeout(Jge,e,r);return typeof n.unref=="function"&&n.unref(),r}};_w.AbortController=F5;_w.AbortError=L5;_w.AbortSignal=Nw});var eye=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});var alt=M5(),$5=require("crypto");function Yge(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,a)=>{function c(){a(new alt.AbortError(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),s(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(Yge,"createAbortablePromise");var clt="The delay was aborted.";function llt(t,e){let r,{abortSignal:n,abortErrorMsg:i}=e??{};return Yge(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??clt})}o(llt,"delay");function ult(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}o(ult,"getRandomIntegerInclusive");function Kge(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}o(Kge,"isObject");function Xge(t){if(Kge(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}o(Xge,"isError");function dlt(t){if(Xge(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(dlt,"getErrorMessage");async function flt(t,e,r){let n=Buffer.from(t,"base64");return $5.createHmac("sha256",n).update(e).digest(r)}o(flt,"computeSha256Hmac");async function hlt(t,e){return $5.createHash("sha256").update(t).digest(e)}o(hlt,"computeSha256Hash");function j5(t){return typeof t<"u"&&t!==null}o(j5,"isDefined");function plt(t,e){if(!j5(t)||typeof t!="object")return!1;for(let r of e)if(!Zge(t,r))return!1;return!0}o(plt,"isObjectWithProperties");function Zge(t,e){return j5(t)&&typeof t=="object"&&e in t}o(Zge,"objectHasProperty");function Alt(){let t="";for(let e=0;e<32;e++){let r=Math.floor(Math.random()*16);e===12?t+="4":e===16?t+=r&3|8:t+=r.toString(16),(e===7||e===11||e===15||e===19)&&(t+="-")}return t}o(Alt,"generateUUID");var U5,z5=typeof((U5=globalThis?.crypto)===null||U5===void 0?void 0:U5.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):$5.randomUUID;z5||(z5=Alt);function mlt(){return z5()}o(mlt,"randomUUID");var q5,G5,H5,V5,glt=typeof window<"u"&&typeof window.document<"u",ylt=typeof self=="object"&&typeof self?.importScripts=="function"&&(((q5=self.constructor)===null||q5===void 0?void 0:q5.name)==="DedicatedWorkerGlobalScope"||((G5=self.constructor)===null||G5===void 0?void 0:G5.name)==="ServiceWorkerGlobalScope"||((H5=self.constructor)===null||H5===void 0?void 0:H5.name)==="SharedWorkerGlobalScope"),Elt=typeof process<"u"&&!!process.version&&!!(!((V5=process.versions)===null||V5===void 0)&&V5.node),Clt=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",blt=typeof Bun<"u"&&typeof Bun.version<"u",wlt=typeof navigator<"u"&&navigator?.product==="ReactNative";function Ilt(t,e){switch(e){case"utf-8":return vlt(t);case"base64":return Blt(t);case"base64url":return xlt(t)}}o(Ilt,"uint8ArrayToString");function Slt(t,e){switch(e){case"utf-8":return Nlt(t);case"base64":return _lt(t);case"base64url":return Tlt(t)}}o(Slt,"stringToUint8Array");function Blt(t){return Buffer.from(t).toString("base64")}o(Blt,"uint8ArrayToBase64");function xlt(t){return Buffer.from(t).toString("base64url")}o(xlt,"uint8ArrayToBase64Url");function vlt(t){return Buffer.from(t).toString("utf-8")}o(vlt,"uint8ArrayToUtf8String");function Nlt(t){return Buffer.from(t)}o(Nlt,"utf8StringToUint8Array");function _lt(t){return Buffer.from(t,"base64")}o(_lt,"base64ToUint8Array");function Tlt(t){return Buffer.from(t,"base64url")}o(Tlt,"base64UrlToUint8Array");Mr.computeSha256Hash=hlt;Mr.computeSha256Hmac=flt;Mr.createAbortablePromise=Yge;Mr.delay=llt;Mr.getErrorMessage=dlt;Mr.getRandomIntegerInclusive=ult;Mr.isBrowser=glt;Mr.isBun=blt;Mr.isDefined=j5;Mr.isDeno=Clt;Mr.isError=Xge;Mr.isNode=Elt;Mr.isObject=Kge;Mr.isObjectWithProperties=plt;Mr.isReactNative=wlt;Mr.isWebWorker=ylt;Mr.objectHasProperty=Zge;Mr.randomUUID=mlt;Mr.stringToUint8Array=Slt;Mr.uint8ArrayToString=Ilt});var bye=m(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var Rlt=Wge(),tye=M5(),Dlt=eye(),Op=Rlt.createClientLogger("core-lro"),nye=2e3,iye=["succeeded","canceled","failed"];function sye(t){try{return JSON.parse(t).state}catch{throw new Error(`Unable to deserialize input state: ${t}`)}}o(sye,"deserializeState");function rye(t){let{state:e,stateProxy:r,isOperationError:n}=t;return i=>{throw n(i)&&(r.setError(e,i),r.setFailed(e)),i}}o(rye,"setStateError");function Qlt(t,e){let r=t;return r.slice(-1)!=="."&&(r=r+"."),r+" "+e}o(Qlt,"appendReadableErrorMessage");function Plt(t){let e=t.message,r=t.code,n=t;for(;n.innererror;)n=n.innererror,r=n.code,e=Qlt(e,n.message);return{code:r,message:e}}o(Plt,"simplifyError");function oye(t){let{state:e,stateProxy:r,status:n,isDone:i,processResult:s,getError:a,response:c,setErrorAsResult:l}=t;switch(n){case"succeeded":{r.setSucceeded(e);break}case"failed":{let u=a?.(c),d="";if(u){let{code:h,message:p}=Plt(u);d=`. ${h}. ${p}`}let f=`The long-running operation has failed${d}`;r.setError(e,new Error(f)),r.setFailed(e),Op.warning(f);break}case"canceled":{r.setCanceled(e);break}}(i?.(c,e)||i===void 0&&["succeeded","canceled"].concat(l?[]:["failed"]).includes(n))&&r.setResult(e,klt({response:c,state:e,processResult:s}))}o(oye,"processOperationStatus");function klt(t){let{processResult:e,response:r,state:n}=t;return e?e(r,n):r}o(klt,"buildResult");async function aye(t){let{init:e,stateProxy:r,processResult:n,getOperationStatus:i,withOperationLocation:s,setErrorAsResult:a}=t,{operationLocation:c,resourceLocation:l,metadata:u,response:d}=await e();c&&s?.(c,!1);let f={metadata:u,operationLocation:c,resourceLocation:l};Op.verbose("LRO: Operation description:",f);let h=r.initState(f),p=i({response:d,state:h,operationLocation:c});return oye({state:h,status:p,stateProxy:r,response:d,setErrorAsResult:a,processResult:n}),h}o(aye,"initOperation");async function Olt(t){let{poll:e,state:r,stateProxy:n,operationLocation:i,getOperationStatus:s,getResourceLocation:a,isOperationError:c,options:l}=t,u=await e(i,l).catch(rye({state:r,stateProxy:n,isOperationError:c})),d=s(u,r);if(Op.verbose(`LRO: Status:
|
|
Polling from: ${r.config.operationLocation}
|
|
Operation status: ${d}
|
|
Polling status: ${iye.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let f=a(u,r);if(f!==void 0)return{response:await e(f).catch(rye({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(Olt,"pollOperationHelper");async function cye(t){let{poll:e,state:r,stateProxy:n,options:i,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:f,getError:h,updateState:p,setDelay:g,isDone:A,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:C,status:w}=await Olt({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:i});if(oye({status:w,response:C,state:r,stateProxy:n,isDone:A,processResult:f,getError:h,setErrorAsResult:E}),!iye.includes(w)){let B=d?.(C);B&&g(B);let Q=c?.(C,r);if(Q!==void 0){let U=y!==Q;r.config.operationLocation=Q,u?.(Q,U)}else u?.(y,!1)}p?.(r,C)}}o(cye,"pollOperation");function lye(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(lye,"getOperationLocationPollingUrl");function uye(t){return t.headers.location}o(uye,"getLocationHeader");function dye(t){return t.headers["operation-location"]}o(dye,"getOperationLocationHeader");function fye(t){return t.headers["azure-asyncoperation"]}o(fye,"getAzureAsyncOperationHeader");function Llt(t){var e;let{location:r,requestMethod:n,requestPath:i,resourceLocationConfig:s}=t;switch(n){case"PUT":return i;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:i;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return i;default:return r}}o(a,"getDefault")}o(Llt,"findResourceLocation");function hye(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:i}=t,s=dye(e),a=fye(e),c=lye({operationLocation:s,azureAsyncOperation:a}),l=uye(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Llt({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:i})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(hye,"inferLroMode");function pye(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 Y5(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 Op.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(pye,"transformStatus");function Flt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return pye({status:r,statusCode:t.statusCode})}o(Flt,"getStatus");function Mlt(t){var e,r;let{properties:n,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:i;return pye({status:s,statusCode:t.statusCode})}o(Mlt,"getProvisioningState");function Y5(t){return t===202?"running":t<300?"succeeded":"failed"}o(Y5,"toOperationStatus");function Aye({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Ult(new Date(e)):r*1e3}}o(Aye,"parseRetryAfter");function mye(t){let e=t.flatResponse.error;if(!e){Op.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Op.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(mye,"getErrorFromResponse");function Ult(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(Ult,"calculatePollingIntervalFromDate");function gye(t){let{response:e,state:r,operationLocation:n}=t;function i(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return Y5(e.rawResponse.statusCode);case"Body":return K5(e,r);default:return"running"}}o(i,"helper");let s=i();return s==="running"&&n===void 0?"succeeded":s}o(gye,"getStatusFromInitialResponse");async function qlt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:i,setErrorAsResult:s}=t;return aye({init:o(async()=>{let a=await i.sendInitialRequest(),c=hye({rawResponse:a.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:gye,setErrorAsResult:s})}o(qlt,"initHttpOperation");function yye({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return lye({operationLocation:dye(t),azureAsyncOperation:fye(t)});case"ResourceLocation":return uye(t);default:return}}o(yye,"getOperationLocation");function K5({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return Flt(t);case"ResourceLocation":return Y5(t.statusCode);case"Body":return Mlt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}o(K5,"getOperationStatus");function Eye({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.config.resourceLocation}o(Eye,"getResourceLocation");function Cye(t){return t.name==="RestError"}o(Cye,"isOperationError");async function Glt(t){let{lro:e,stateProxy:r,options:n,processResult:i,updateState:s,setDelay:a,state:c,setErrorAsResult:l}=t;return cye({state:c,stateProxy:r,setDelay:a,processResult:i?({flatResponse:u},d)=>i(u,d):({flatResponse:u})=>u,getError:mye,updateState:s,getPollingInterval:Aye,getOperationLocation:yye,getOperationStatus:K5,isOperationError:Cye,getResourceLocation:Eye,options:n,poll:o(async(u,d)=>e.sendPollRequest(u,d),"poll"),setErrorAsResult:l})}o(Glt,"pollHttpOperation");var Hlt=o(()=>({initState:o(t=>({status:"running",config:t}),"initState"),setCanceled:o(t=>t.status="canceled","setCanceled"),setError:o((t,e)=>t.error=e,"setError"),setResult:o((t,e)=>t.result=e,"setResult"),setRunning:o(t=>t.status="running","setRunning"),setSucceeded:o(t=>t.status="succeeded","setSucceeded"),setFailed:o(t=>t.status="failed","setFailed"),getError:o(t=>t.error,"getError"),getResult:o(t=>t.result,"getResult"),isCanceled:o(t=>t.status==="canceled","isCanceled"),isFailed:o(t=>t.status==="failed","isFailed"),isRunning:o(t=>t.status==="running","isRunning"),isSucceeded:o(t=>t.status==="succeeded","isSucceeded")}),"createStateProxy$1");function Vlt(t){let{getOperationLocation:e,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:i,getResourceLocation:s,getPollingInterval:a,getError:c,resolveOnUnsuccessful:l}=t;return async({init:u,poll:d},f)=>{let{processResult:h,updateState:p,withOperationLocation:g,intervalInMs:A=nye,restoreFrom:E}=f||{},y=Hlt(),C=g?(()=>{let V=!1;return(J,oe)=>{oe?g(J):V||g(J),V=!0}})():void 0,w=E?sye(E):await aye({init:u,stateProxy:y,processResult:h,getOperationStatus:r,withOperationLocation:C,setErrorAsResult:!l}),B,Q=new tye.AbortController,U=new Map,v=o(async()=>U.forEach(V=>V(w)),"handleProgressEvents"),j="Operation was canceled",D=A,H={getOperationState:o(()=>w,"getOperationState"),getResult:o(()=>w.result,"getResult"),isDone:o(()=>["succeeded","failed","canceled"].includes(w.status),"isDone"),isStopped:o(()=>B===void 0,"isStopped"),stopPolling:o(()=>{Q.abort()},"stopPolling"),toString:o(()=>JSON.stringify({state:w}),"toString"),onProgress:o(V=>{let J=Symbol();return U.set(J,V),()=>U.delete(J)},"onProgress"),pollUntilDone:o(V=>B??(B=(async()=>{let{abortSignal:J}=V||{},{signal:oe}=J?new tye.AbortController([J,Q.signal]):Q;if(!H.isDone())for(await H.poll({abortSignal:oe});!H.isDone();)await Dlt.delay(D,{abortSignal:oe}),await H.poll({abortSignal:oe});if(l)return H.getResult();switch(w.status){case"succeeded":return H.getResult();case"canceled":throw new Error(j);case"failed":throw w.error;case"notStarted":case"running":throw new Error("Polling completed without succeeding or failing")}})().finally(()=>{B=void 0})),"pollUntilDone"),async poll(V){if(l){if(H.isDone())return}else switch(w.status){case"succeeded":return;case"canceled":throw new Error(j);case"failed":throw w.error}if(await cye({poll:d,state:w,stateProxy:y,getOperationLocation:e,isOperationError:i,withOperationLocation:C,getPollingInterval:a,getOperationStatus:n,getResourceLocation:s,processResult:h,getError:c,updateState:p,options:V,setDelay:o(J=>{D=J},"setDelay"),setErrorAsResult:!l}),await v(),!l)switch(w.status){case"canceled":throw new Error(j);case"failed":throw w.error}}};return H}}o(Vlt,"buildCreatePoller");async function zlt(t,e){let{resourceLocationConfig:r,intervalInMs:n,processResult:i,restoreFrom:s,updateState:a,withOperationLocation:c,resolveOnUnsuccessful:l=!1}=e||{};return Vlt({getStatusFromInitialResponse:gye,getStatusFromPollResponse:K5,isOperationError:Cye,getOperationLocation:yye,getResourceLocation:Eye,getPollingInterval:Aye,getError:mye,resolveOnUnsuccessful:l})({init:o(async()=>{let u=await t.sendInitialRequest(),d=hye({rawResponse:u.rawResponse,requestPath:t.requestPath,requestMethod:t.requestMethod,resourceLocationConfig:r});return Object.assign({response:u,operationLocation:d?.operationLocation,resourceLocation:d?.resourceLocation},d?.mode?{metadata:{mode:d.mode}}:{})},"init"),poll:t.sendPollRequest},{intervalInMs:n,withOperationLocation:c,restoreFrom:s,updateState:a,processResult:i?({flatResponse:u},d)=>i(u,d):({flatResponse:u})=>u})}o(zlt,"createHttpPoller");var $lt=o(()=>({initState:o(t=>({config:t,isStarted:!0}),"initState"),setCanceled:o(t=>t.isCancelled=!0,"setCanceled"),setError:o((t,e)=>t.error=e,"setError"),setResult:o((t,e)=>t.result=e,"setResult"),setRunning:o(t=>t.isStarted=!0,"setRunning"),setSucceeded:o(t=>t.isCompleted=!0,"setSucceeded"),setFailed:o(()=>{},"setFailed"),getError:o(t=>t.error,"getError"),getResult:o(t=>t.result,"getResult"),isCanceled:o(t=>!!t.isCancelled,"isCanceled"),isFailed:o(t=>!!t.error,"isFailed"),isRunning:o(t=>!!t.isStarted,"isRunning"),isSucceeded:o(t=>!!(t.isCompleted&&!t.isCancelled&&!t.error),"isSucceeded")}),"createStateProxy"),W5=class{static{o(this,"GenericPollOperation")}constructor(e,r,n,i,s,a,c){this.state=e,this.lro=r,this.setErrorAsResult=n,this.lroResourceLocationConfig=i,this.processResult=s,this.updateState=a,this.isDone=c}setPollerConfig(e){this.pollerConfig=e}async update(e){var r;let n=$lt();this.state.isStarted||(this.state=Object.assign(Object.assign({},this.state),await qlt({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult})));let i=this.updateState,s=this.isDone;return!this.state.isCompleted&&this.state.error===void 0&&await Glt({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:i?(a,{rawResponse:c})=>i(a,c):void 0,isDone:s?({flatResponse:a},c)=>s(a,c):void 0,options:e,setDelay:o(a=>{this.pollerConfig.intervalInMs=a},"setDelay"),setErrorAsResult:this.setErrorAsResult}),(r=e?.fireProgress)===null||r===void 0||r.call(e,this.state),this}async cancel(){return Op.error("`cancelOperation` is deprecated because it wasn't implemented"),this}toString(){return JSON.stringify({state:this.state})}},vR=class t extends Error{static{o(this,"PollerStoppedError")}constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,t.prototype)}},NR=class t extends Error{static{o(this,"PollerCancelledError")}constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,t.prototype)}},_R=class{static{o(this,"Poller")}constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((r,n)=>{this.resolve=r,this.reject=n}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&(this.stopped=!1);!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let r of this.pollProgressCallbacks)r(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let r=o(()=>{this.pollOncePromise=void 0},"clearPollOncePromise");this.pollOncePromise.then(r,r).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new NR("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 vR("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()}},J5=class extends _R{static{o(this,"LroEngine")}constructor(e,r){let{intervalInMs:n=nye,resumeFrom:i,resolveOnUnsuccessful:s=!1,isDone:a,lroResourceLocationConfig:c,processResult:l,updateState:u}=r||{},d=i?sye(i):{},f=new W5(d,e,!s,c,l,u,a);super(f),this.resolveOnUnsuccessful=s,this.config={intervalInMs:n},f.setPollerConfig(this.config)}delay(){return new Promise(e=>setTimeout(()=>e(),this.config.intervalInMs))}};Lp.LroEngine=J5;Lp.Poller=_R;Lp.PollerCancelledError=NR;Lp.PollerStoppedError=vR;Lp.createHttpPoller=zlt});var Hye=m((_yr,hut)=>{hut.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"~1.23.0","@azure/storage-blob":"~12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var zye=m((Tyr,Vye)=>{var put=Hye();Vye.exports={version:put.version}});var GR=m(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.isJsonObject=sy.typeofJsonValue=void 0;function wut(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(wut,"typeofJsonValue");sy.typeofJsonValue=wut;function Iut(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(Iut,"isJsonObject");sy.isJsonObject=Iut});var VR=m(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});oy.base64encode=oy.base64decode=void 0;var Xu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),HR=[];for(let t=0;t<Xu.length;t++)HR[Xu[t].charCodeAt(0)]=t;HR[45]=Xu.indexOf("+");HR[95]=Xu.indexOf("/");function Sut(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,i=0,s,a=0;for(let c=0;c<t.length;c++){if(s=HR[t.charCodeAt(c)],s===void 0)switch(t[c]){case"=":i=0;case`
|
|
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=s,i=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,i=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:r[n++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(Sut,"base64decode");oy.base64decode=Sut;function But(t){let e="",r=0,n,i=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=Xu[n>>2],i=(n&3)<<4,r=1;break;case 1:e+=Xu[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=Xu[i|n>>6],e+=Xu[n&63],r=0;break}return r&&(e+=Xu[i],e+="=",r==1&&(e+="=")),e}o(But,"base64encode");oy.base64encode=But});var Kye=m(zR=>{"use strict";Object.defineProperty(zR,"__esModule",{value:!0});zR.utf8read=void 0;var cz=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function xut(t){if(t.length<1)return"";let e=0,r=[],n=[],i=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[i++]=s:s>191&&s<224?n[i++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[i++]=55296+(s>>10),n[i++]=56320+(s&1023)):n[i++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(cz(n)),i=0);return r.length?(i&&r.push(cz(n.slice(0,i))),r.join("")):cz(n.slice(0,i))}o(xut,"utf8read");zR.utf8read=xut});var Lw=m(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.WireType=Cl.mergeBinaryOptions=Cl.UnknownFieldHandler=void 0;var vut;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,i,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:i,wireType:s,data:a})},t.onWrite=(r,n,i)=>{for(let{no:s,wireType:a,data:c}of t.list(n))i.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let i=r[t.symbol];return n?i.filter(s=>s.no==n):i}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(vut=Cl.UnknownFieldHandler||(Cl.UnknownFieldHandler={}));function Nut(t,e){return Object.assign(Object.assign({},t),e)}o(Nut,"mergeBinaryOptions");Cl.mergeBinaryOptions=Nut;var _ut;(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"})(_ut=Cl.WireType||(Cl.WireType={}))});var jR=m(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.varint32read=Qs.varint32write=Qs.int64toString=Qs.int64fromString=Qs.varint64write=Qs.varint64read=void 0;function Tut(){let t=0,e=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(Tut,"varint64read");Qs.varint64read=Tut;function Rut(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?n|128:n)&255),!!i){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(Rut,"varint64write");Qs.varint64write=Rut;var $R=65536*65536;function Dut(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,i=0;function s(a,c){let l=Number(t.slice(a,c));i*=r,n=n*r+l,n>=$R&&(i=i+(n/$R|0),n=n%$R)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(Dut,"int64fromString");Qs.int64fromString=Dut;function Qut(t,e){if(e>>>0<=2097151)return""+($R*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,s=r+n*6777216+i*6710656,a=n+i*8147497,c=i*2,l=1e7;s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,f){let h=d?String(d):"";return f?"0000000".slice(h.length)+h:h}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(s,1)}o(Qut,"int64toString");Qs.int64toString=Qut;function Put(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(Put,"varint32write");Qs.varint32write=Put;function kut(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(kut,"varint32read");Qs.varint32read=kut});var vf=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.PbLong=xf.PbULong=xf.detectBi=void 0;var Fw=jR(),Wt;function Xye(){let t=new DataView(new ArrayBuffer(8));Wt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}o(Xye,"detectBi");xf.detectBi=Xye;Xye();function Zye(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}o(Zye,"assertBi");var eEe=/^-?[0-9]+$/,JR=4294967296,WR=2147483648,YR=class{static{o(this,"SharedPbLong")}constructor(e,r){this.lo=e|0,this.hi=r|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*JR+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},Mw=class t extends YR{static{o(this,"PbULong")}static from(e){if(Wt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Wt.C(e);case"number":if(e===0)return this.ZERO;e=Wt.C(e);case"bigint":if(!e)return this.ZERO;if(e<Wt.UMIN)throw new Error("signed value for ulong");if(e>Wt.UMAX)throw new Error("ulong too large");return Wt.V.setBigUint64(0,e,!0),new t(Wt.V.getInt32(0,!0),Wt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!eEe.test(e))throw new Error("string is no integer");let[r,n,i]=Fw.int64fromString(e);if(r)throw new Error("signed value for ulong");return new t(n,i);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new t(e,e/JR)}throw new Error("unknown value "+typeof e)}toString(){return Wt?this.toBigInt().toString():Fw.int64toString(this.lo,this.hi)}toBigInt(){return Zye(Wt),Wt.V.setInt32(0,this.lo,!0),Wt.V.setInt32(4,this.hi,!0),Wt.V.getBigUint64(0,!0)}};xf.PbULong=Mw;Mw.ZERO=new Mw(0,0);var Uw=class t extends YR{static{o(this,"PbLong")}static from(e){if(Wt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Wt.C(e);case"number":if(e===0)return this.ZERO;e=Wt.C(e);case"bigint":if(!e)return this.ZERO;if(e<Wt.MIN)throw new Error("signed long too small");if(e>Wt.MAX)throw new Error("signed long too large");return Wt.V.setBigInt64(0,e,!0),new t(Wt.V.getInt32(0,!0),Wt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!eEe.test(e))throw new Error("string is no integer");let[r,n,i]=Fw.int64fromString(e);if(r){if(i>WR||i==WR&&n!=0)throw new Error("signed long too small")}else if(i>=WR)throw new Error("signed long too large");let s=new t(n,i);return r?s.negate():s;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new t(e,e/JR):new t(-e,-e/JR).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&WR)!==0}negate(){let e=~this.hi,r=this.lo;return r?r=~r+1:e+=1,new t(r,e)}toString(){if(Wt)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+Fw.int64toString(e.lo,e.hi)}return Fw.int64toString(this.lo,this.hi)}toBigInt(){return Zye(Wt),Wt.V.setInt32(0,this.lo,!0),Wt.V.setInt32(4,this.hi,!0),Wt.V.getBigInt64(0,!0)}};xf.PbLong=Uw;Uw.ZERO=new Uw(0,0)});var lz=m(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});cy.BinaryReader=cy.binaryReadOptions=void 0;var ay=Lw(),qw=vf(),tEe=jR(),rEe={readUnknownField:!0,readerFactory:o(t=>new KR(t),"readerFactory")};function Out(t){return t?Object.assign(Object.assign({},rEe),t):rEe}o(Out,"binaryReadOptions");cy.binaryReadOptions=Out;var KR=class{static{o(this,"BinaryReader")}constructor(e,r){this.varint64=tEe.varint64read,this.uint32=tEe.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 ay.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case ay.WireType.Bit64:this.pos+=4;case ay.WireType.Bit32:this.pos+=4;break;case ay.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case ay.WireType.StartGroup:let i;for(;(i=this.tag()[1])!==ay.WireType.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new qw.PbLong(...this.varint64())}uint64(){return new qw.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 qw.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 qw.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new qw.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())}};cy.BinaryReader=KR});var ly=m(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.assertFloat32=oa.assertUInt32=oa.assertInt32=oa.assertNever=oa.assert=void 0;function Lut(t,e){if(!t)throw new Error(e)}o(Lut,"assert");oa.assert=Lut;function Fut(t,e){throw new Error(e??"Unexpected object: "+t)}o(Fut,"assertNever");oa.assertNever=Fut;var Mut=34028234663852886e22,Uut=-34028234663852886e22,qut=4294967295,Gut=2147483647,Hut=-2147483648;function Vut(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>Gut||t<Hut)throw new Error("invalid int 32: "+t)}o(Vut,"assertInt32");oa.assertInt32=Vut;function zut(t){if(typeof t!="number")throw new Error("invalid uint 32: "+typeof t);if(!Number.isInteger(t)||t>qut||t<0)throw new Error("invalid uint 32: "+t)}o(zut,"assertUInt32");oa.assertUInt32=zut;function $ut(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>Mut||t<Uut))throw new Error("invalid float 32: "+t)}o($ut,"assertFloat32");oa.assertFloat32=$ut});var uz=m(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.BinaryWriter=dy.binaryWriteOptions=void 0;var Gw=vf(),Hw=jR(),uy=ly(),nEe={writeUnknownFields:!0,writerFactory:o(()=>new XR,"writerFactory")};function jut(t){return t?Object.assign(Object.assign({},nEe),t):nEe}o(jut,"binaryWriteOptions");dy.binaryWriteOptions=jut;var XR=class{static{o(this,"BinaryWriter")}constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let i=0;i<this.chunks.length;i++)e+=this.chunks[i].length;let r=new Uint8Array(e),n=0;for(let i=0;i<this.chunks.length;i++)r.set(this.chunks[i],n),n+=this.chunks[i].length;return this.chunks=[],r}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),r=this.stack.pop();if(!r)throw new Error("invalid state, fork stack empty");return this.chunks=r.chunks,this.buf=r.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,r){return this.uint32((e<<3|r)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(uy.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return uy.assertInt32(e),Hw.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){uy.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){uy.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){uy.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return uy.assertInt32(e),e=(e<<1^e>>31)>>>0,Hw.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),i=Gw.PbLong.from(e);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}fixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),i=Gw.PbULong.from(e);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}int64(e){let r=Gw.PbLong.from(e);return Hw.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=Gw.PbLong.from(e),n=r.hi>>31,i=r.lo<<1^n,s=(r.hi<<1|r.lo>>>31)^n;return Hw.varint64write(i,s,this.buf),this}uint64(e){let r=Gw.PbULong.from(e);return Hw.varint64write(r.lo,r.hi,this.buf),this}};dy.BinaryWriter=XR});var dz=m(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.mergeJsonOptions=Nf.jsonWriteOptions=Nf.jsonReadOptions=void 0;var iEe={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},sEe={ignoreUnknownFields:!1};function Wut(t){return t?Object.assign(Object.assign({},sEe),t):sEe}o(Wut,"jsonReadOptions");Nf.jsonReadOptions=Wut;function Jut(t){return t?Object.assign(Object.assign({},iEe),t):iEe}o(Jut,"jsonWriteOptions");Nf.jsonWriteOptions=Jut;function Yut(t,e){var r,n;let i=Object.assign(Object.assign({},t),e);return i.typeRegistry=[...(r=t?.typeRegistry)!==null&&r!==void 0?r:[],...(n=e?.typeRegistry)!==null&&n!==void 0?n:[]],i}o(Yut,"mergeJsonOptions");Nf.mergeJsonOptions=Yut});var Vw=m(ZR=>{"use strict";Object.defineProperty(ZR,"__esModule",{value:!0});ZR.MESSAGE_TYPE=void 0;ZR.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var fz=m(e2=>{"use strict";Object.defineProperty(e2,"__esModule",{value:!0});e2.lowerCamelCase=void 0;function Kut(t){let e=!1,r=[];for(let n=0;n<t.length;n++){let i=t.charAt(n);i=="_"?e=!0:/\d/.test(i)?(r.push(i),e=!0):e?(r.push(i.toUpperCase()),e=!1):n==0?r.push(i.toLowerCase()):r.push(i)}return r.join("")}o(Kut,"lowerCamelCase");e2.lowerCamelCase=Kut});var ac=m(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.readMessageOption=Rn.readFieldOption=Rn.readFieldOptions=Rn.normalizeFieldInfo=Rn.RepeatType=Rn.LongType=Rn.ScalarType=void 0;var oEe=fz(),Xut;(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"})(Xut=Rn.ScalarType||(Rn.ScalarType={}));var Zut;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(Zut=Rn.LongType||(Rn.LongType={}));var aEe;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(aEe=Rn.RepeatType||(Rn.RepeatType={}));function edt(t){var e,r,n,i;return t.localName=(e=t.localName)!==null&&e!==void 0?e:oEe.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:oEe.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:aEe.NO,t.opt=(i=t.opt)!==null&&i!==void 0?i:t.repeat||t.oneof?!1:t.kind=="message",t}o(edt,"normalizeFieldInfo");Rn.normalizeFieldInfo=edt;function tdt(t,e,r,n){var i;let s=(i=t.fields.find((a,c)=>a.localName==e||c==e))===null||i===void 0?void 0:i.options;return s&&s[r]?n.fromJson(s[r]):void 0}o(tdt,"readFieldOptions");Rn.readFieldOptions=tdt;function rdt(t,e,r,n){var i;let s=(i=t.fields.find((c,l)=>c.localName==e||l==e))===null||i===void 0?void 0:i.options;if(!s)return;let a=s[r];return a===void 0?a:n?n.fromJson(a):a}o(rdt,"readFieldOption");Rn.readFieldOption=rdt;function ndt(t,e,r){let i=t.options[e];return i===void 0?i:r?r.fromJson(i):i}o(ndt,"readMessageOption");Rn.readMessageOption=ndt});var hz=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.getSelectedOneofValue=Ps.clearOneofValue=Ps.setUnknownOneofValue=Ps.setOneofValue=Ps.getOneofValue=Ps.isOneofGroup=void 0;function idt(t){if(typeof t!="object"||t===null||!t.hasOwnProperty("oneofKind"))return!1;switch(typeof t.oneofKind){case"string":return t[t.oneofKind]===void 0?!1:Object.keys(t).length==2;case"undefined":return Object.keys(t).length==1;default:return!1}}o(idt,"isOneofGroup");Ps.isOneofGroup=idt;function sdt(t,e){return t[e]}o(sdt,"getOneofValue");Ps.getOneofValue=sdt;function odt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}o(odt,"setOneofValue");Ps.setOneofValue=odt;function adt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}o(adt,"setUnknownOneofValue");Ps.setUnknownOneofValue=adt;function cdt(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}o(cdt,"clearOneofValue");Ps.clearOneofValue=cdt;function ldt(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}o(ldt,"getSelectedOneofValue");Ps.getSelectedOneofValue=ldt});var Az=m(t2=>{"use strict";Object.defineProperty(t2,"__esModule",{value:!0});t2.ReflectionTypeCheck=void 0;var Ur=ac(),udt=hz(),pz=class{static{o(this,"ReflectionTypeCheck")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}prepare(){if(this.data)return;let e=[],r=[],n=[];for(let i of this.fields)if(i.oneof)n.includes(i.oneof)||(n.push(i.oneof),e.push(i.oneof),r.push(i.oneof));else switch(r.push(i.localName),i.kind){case"scalar":case"enum":(!i.opt||i.repeat)&&e.push(i.localName);break;case"message":i.repeat&&e.push(i.localName);break;case"map":e.push(i.localName);break}this.data={req:e,known:r,oneofs:Object.values(n)}}is(e,r,n=!1){if(r<0)return!0;if(e==null||typeof e!="object")return!1;this.prepare();let i=Object.keys(e),s=this.data;if(i.length<s.req.length||s.req.some(a=>!i.includes(a))||!n&&i.some(a=>!s.known.includes(a)))return!1;if(r<1)return!0;for(let a of s.oneofs){let c=e[a];if(!udt.isOneofGroup(c))return!1;if(c.oneofKind===void 0)continue;let l=this.fields.find(u=>u.localName===c.oneofKind);if(!l||!this.field(c[c.oneofKind],l,n,r))return!1}for(let a of this.fields)if(a.oneof===void 0&&!this.field(e[a.localName],a,n,r))return!1;return!0}field(e,r,n,i){let s=r.repeat;switch(r.kind){case"scalar":return e===void 0?r.opt:s?this.scalars(e,r.T,i,r.L):this.scalar(e,r.T,r.L);case"enum":return e===void 0?r.opt:s?this.scalars(e,Ur.ScalarType.INT32,i):this.scalar(e,Ur.ScalarType.INT32);case"message":return e===void 0?!0:s?this.messages(e,r.T(),n,i):this.message(e,r.T(),n,i);case"map":if(typeof e!="object"||e===null)return!1;if(i<2)return!0;if(!this.mapKeys(e,r.K,i))return!1;switch(r.V.kind){case"scalar":return this.scalars(Object.values(e),r.V.T,i,r.V.L);case"enum":return this.scalars(Object.values(e),Ur.ScalarType.INT32,i);case"message":return this.messages(Object.values(e),r.V.T(),n,i)}break}return!0}message(e,r,n,i){return n?r.isAssignable(e,i):r.is(e,i)}messages(e,r,n,i){if(!Array.isArray(e))return!1;if(i<2)return!0;if(n){for(let s=0;s<e.length&&s<i;s++)if(!r.isAssignable(e[s],i-1))return!1}else for(let s=0;s<e.length&&s<i;s++)if(!r.is(e[s],i-1))return!1;return!0}scalar(e,r,n){let i=typeof e;switch(r){case Ur.ScalarType.UINT64:case Ur.ScalarType.FIXED64:case Ur.ScalarType.INT64:case Ur.ScalarType.SFIXED64:case Ur.ScalarType.SINT64:switch(n){case Ur.LongType.BIGINT:return i=="bigint";case Ur.LongType.NUMBER:return i=="number"&&!isNaN(e);default:return i=="string"}case Ur.ScalarType.BOOL:return i=="boolean";case Ur.ScalarType.STRING:return i=="string";case Ur.ScalarType.BYTES:return e instanceof Uint8Array;case Ur.ScalarType.DOUBLE:case Ur.ScalarType.FLOAT:return i=="number"&&!isNaN(e);default:return i=="number"&&Number.isInteger(e)}}scalars(e,r,n,i){if(!Array.isArray(e))return!1;if(n<2)return!0;if(Array.isArray(e)){for(let s=0;s<e.length&&s<n;s++)if(!this.scalar(e[s],r,i))return!1}return!0}mapKeys(e,r,n){let i=Object.keys(e);switch(r){case Ur.ScalarType.INT32:case Ur.ScalarType.FIXED32:case Ur.ScalarType.SFIXED32:case Ur.ScalarType.SINT32:case Ur.ScalarType.UINT32:return this.scalars(i.slice(0,n).map(s=>parseInt(s)),r,n);case Ur.ScalarType.BOOL:return this.scalars(i.slice(0,n).map(s=>s=="true"?!0:s=="false"?!1:s),r,n);default:return this.scalars(i,r,n,Ur.LongType.STRING)}}};t2.ReflectionTypeCheck=pz});var n2=m(r2=>{"use strict";Object.defineProperty(r2,"__esModule",{value:!0});r2.reflectionLongConvert=void 0;var cEe=ac();function ddt(t,e){switch(e){case cEe.LongType.BIGINT:return t.toBigInt();case cEe.LongType.NUMBER:return t.toNumber();default:return t.toString()}}o(ddt,"reflectionLongConvert");r2.reflectionLongConvert=ddt});var gz=m(o2=>{"use strict";Object.defineProperty(o2,"__esModule",{value:!0});o2.ReflectionJsonReader=void 0;var lEe=GR(),fdt=VR(),Dn=ac(),i2=vf(),Mp=ly(),s2=n2(),mz=class{static{o(this,"ReflectionJsonReader")}constructor(e){this.info=e}prepare(){var e;if(this.fMap===void 0){this.fMap={};let r=(e=this.info.fields)!==null&&e!==void 0?e:[];for(let n of r)this.fMap[n.name]=n,this.fMap[n.jsonName]=n,this.fMap[n.localName]=n}}assert(e,r,n){if(!e){let i=lEe.typeofJsonValue(n);throw(i=="number"||i=="boolean")&&(i=n.toString()),new Error(`Cannot parse JSON ${i} for ${this.info.typeName}#${r}`)}}read(e,r,n){this.prepare();let i=[];for(let[s,a]of Object.entries(e)){let c=this.fMap[s];if(!c){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${s}`);continue}let l=c.localName,u;if(c.oneof){if(a===null&&(c.kind!=="enum"||c.T()[0]!=="google.protobuf.NullValue"))continue;if(i.includes(c.oneof))throw new Error(`Multiple members of the oneof group "${c.oneof}" of ${this.info.typeName} are present in JSON.`);i.push(c.oneof),u=r[c.oneof]={oneofKind:l}}else u=r;if(c.kind=="map"){if(a===null)continue;this.assert(lEe.isJsonObject(a),c.name,a);let d=u[l];for(let[f,h]of Object.entries(a)){this.assert(h!==null,c.name+" map value",null);let p;switch(c.V.kind){case"message":p=c.V.T().internalJsonRead(h,n);break;case"enum":if(p=this.enum(c.V.T(),h,c.name,n.ignoreUnknownFields),p===!1)continue;break;case"scalar":p=this.scalar(h,c.V.T,c.V.L,c.name);break}this.assert(p!==void 0,c.name+" map value",h);let g=f;c.K==Dn.ScalarType.BOOL&&(g=g=="true"?!0:g=="false"?!1:g),g=this.scalar(g,c.K,Dn.LongType.STRING,c.name).toString(),d[g]=p}}else if(c.repeat){if(a===null)continue;this.assert(Array.isArray(a),c.name,a);let d=u[l];for(let f of a){this.assert(f!==null,c.name,null);let h;switch(c.kind){case"message":h=c.T().internalJsonRead(f,n);break;case"enum":if(h=this.enum(c.T(),f,c.name,n.ignoreUnknownFields),h===!1)continue;break;case"scalar":h=this.scalar(f,c.T,c.L,c.name);break}this.assert(h!==void 0,c.name,a),d.push(h)}}else switch(c.kind){case"message":if(a===null&&c.T().typeName!="google.protobuf.Value"){this.assert(c.oneof===void 0,c.name+" (oneof member)",null);continue}u[l]=c.T().internalJsonRead(a,n,u[l]);break;case"enum":if(a===null)continue;let d=this.enum(c.T(),a,c.name,n.ignoreUnknownFields);if(d===!1)continue;u[l]=d;break;case"scalar":if(a===null)continue;u[l]=this.scalar(a,c.T,c.L,c.name);break}}}enum(e,r,n,i){if(e[0]=="google.protobuf.NullValue"&&Mp.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 Mp.assert(Number.isInteger(r),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${r}.`),r;case"string":let s=r;e[2]&&r.substring(0,e[2].length)===e[2]&&(s=r.substring(e[2].length));let a=e[1][s];return typeof a>"u"&&i?!1:(Mp.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}Mp.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof r}".`)}scalar(e,r,n,i){let s;try{switch(r){case Dn.ScalarType.DOUBLE:case Dn.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){s="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){s="extra whitespace";break}if(typeof e!="string"&&typeof e!="number")break;let a=Number(e);if(Number.isNaN(a)){s="not a number";break}if(!Number.isFinite(a)){s="too large or small";break}return r==Dn.ScalarType.FLOAT&&Mp.assertFloat32(a),a;case Dn.ScalarType.INT32:case Dn.ScalarType.FIXED32:case Dn.ScalarType.SFIXED32:case Dn.ScalarType.SINT32:case Dn.ScalarType.UINT32:if(e===null)return 0;let c;if(typeof e=="number"?c=e:e===""?s="empty string":typeof e=="string"&&(e.trim().length!==e.length?s="extra whitespace":c=Number(e)),c===void 0)break;return r==Dn.ScalarType.UINT32?Mp.assertUInt32(c):Mp.assertInt32(c),c;case Dn.ScalarType.INT64:case Dn.ScalarType.SFIXED64:case Dn.ScalarType.SINT64:if(e===null)return s2.reflectionLongConvert(i2.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return s2.reflectionLongConvert(i2.PbLong.from(e),n);case Dn.ScalarType.FIXED64:case Dn.ScalarType.UINT64:if(e===null)return s2.reflectionLongConvert(i2.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return s2.reflectionLongConvert(i2.PbULong.from(e),n);case Dn.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case Dn.ScalarType.STRING:if(e===null)return"";if(typeof e!="string"){s="extra whitespace";break}try{encodeURIComponent(e)}catch(l){l="invalid UTF8";break}return e;case Dn.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return fdt.base64decode(e)}}catch(a){s=a.message}this.assert(!1,i+(s?" - "+s:""),e)}};o2.ReflectionJsonReader=mz});var Ez=m(a2=>{"use strict";Object.defineProperty(a2,"__esModule",{value:!0});a2.ReflectionJsonWriter=void 0;var hdt=VR(),uEe=vf(),es=ac(),Cr=ly(),yz=class{static{o(this,"ReflectionJsonWriter")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}write(e,r){let n={},i=e;for(let s of this.fields){if(!s.oneof){let u=this.field(s,i[s.localName],r);u!==void 0&&(n[r.useProtoFieldName?s.name:s.jsonName]=u);continue}let a=i[s.oneof];if(a.oneofKind!==s.localName)continue;let c=s.kind=="scalar"||s.kind=="enum"?Object.assign(Object.assign({},r),{emitDefaultValues:!0}):r,l=this.field(s,a[s.localName],c);Cr.assert(l!==void 0),n[r.useProtoFieldName?s.name:s.jsonName]=l}return n}field(e,r,n){let i;if(e.kind=="map"){Cr.assert(typeof r=="object"&&r!==null);let s={};switch(e.V.kind){case"scalar":for(let[l,u]of Object.entries(r)){let d=this.scalar(e.V.T,u,e.name,!1,!0);Cr.assert(d!==void 0),s[l.toString()]=d}break;case"message":let a=e.V.T();for(let[l,u]of Object.entries(r)){let d=this.message(a,u,e.name,n);Cr.assert(d!==void 0),s[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){Cr.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);Cr.assert(d!==void 0),s[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(s).length>0)&&(i=s)}else if(e.repeat){Cr.assert(Array.isArray(r));let s=[];switch(e.kind){case"scalar":for(let l=0;l<r.length;l++){let u=this.scalar(e.T,r[l],e.name,e.opt,!0);Cr.assert(u!==void 0),s.push(u)}break;case"enum":let a=e.T();for(let l=0;l<r.length;l++){Cr.assert(r[l]===void 0||typeof r[l]=="number");let u=this.enum(a,r[l],e.name,e.opt,!0,n.enumAsInteger);Cr.assert(u!==void 0),s.push(u)}break;case"message":let c=e.T();for(let l=0;l<r.length;l++){let u=this.message(c,r[l],e.name,n);Cr.assert(u!==void 0),s.push(u)}break}(n.emitDefaultValues||s.length>0||n.emitDefaultValues)&&(i=s)}else switch(e.kind){case"scalar":i=this.scalar(e.T,r,e.name,e.opt,n.emitDefaultValues);break;case"enum":i=this.enum(e.T(),r,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":i=this.message(e.T(),r,e.name,n);break}return i}enum(e,r,n,i,s,a){if(e[0]=="google.protobuf.NullValue")return!s&&!i?void 0:null;if(r===void 0){Cr.assert(i);return}if(!(r===0&&!s&&!i))return Cr.assert(typeof r=="number"),Cr.assert(Number.isInteger(r)),a||!e[1].hasOwnProperty(r)?r:e[2]?e[2]+e[1][r]:e[1][r]}message(e,r,n,i){return r===void 0?i.emitDefaultValues?null:void 0:e.internalJsonWrite(r,i)}scalar(e,r,n,i,s){if(r===void 0){Cr.assert(i);return}let a=s||i;switch(e){case es.ScalarType.INT32:case es.ScalarType.SFIXED32:case es.ScalarType.SINT32:return r===0?a?0:void 0:(Cr.assertInt32(r),r);case es.ScalarType.FIXED32:case es.ScalarType.UINT32:return r===0?a?0:void 0:(Cr.assertUInt32(r),r);case es.ScalarType.FLOAT:Cr.assertFloat32(r);case es.ScalarType.DOUBLE:return r===0?a?0:void 0:(Cr.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case es.ScalarType.STRING:return r===""?a?"":void 0:(Cr.assert(typeof r=="string"),r);case es.ScalarType.BOOL:return r===!1?a?!1:void 0:(Cr.assert(typeof r=="boolean"),r);case es.ScalarType.UINT64:case es.ScalarType.FIXED64:Cr.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=uEe.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case es.ScalarType.INT64:case es.ScalarType.SFIXED64:case es.ScalarType.SINT64:Cr.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=uEe.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case es.ScalarType.BYTES:return Cr.assert(r instanceof Uint8Array),r.byteLength?hdt.base64encode(r):a?"":void 0}}};a2.ReflectionJsonWriter=yz});var l2=m(c2=>{"use strict";Object.defineProperty(c2,"__esModule",{value:!0});c2.reflectionScalarDefault=void 0;var cc=ac(),dEe=n2(),fEe=vf();function pdt(t,e=cc.LongType.STRING){switch(t){case cc.ScalarType.BOOL:return!1;case cc.ScalarType.UINT64:case cc.ScalarType.FIXED64:return dEe.reflectionLongConvert(fEe.PbULong.ZERO,e);case cc.ScalarType.INT64:case cc.ScalarType.SFIXED64:case cc.ScalarType.SINT64:return dEe.reflectionLongConvert(fEe.PbLong.ZERO,e);case cc.ScalarType.DOUBLE:case cc.ScalarType.FLOAT:return 0;case cc.ScalarType.BYTES:return new Uint8Array(0);case cc.ScalarType.STRING:return"";default:return 0}}o(pdt,"reflectionScalarDefault");c2.reflectionScalarDefault=pdt});var bz=m(u2=>{"use strict";Object.defineProperty(u2,"__esModule",{value:!0});u2.ReflectionBinaryReader=void 0;var hEe=Lw(),tn=ac(),zw=n2(),pEe=l2(),Cz=class{static{o(this,"ReflectionBinaryReader")}constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){let r=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(r.map(n=>[n.no,n]))}}read(e,r,n,i){this.prepare();let s=i===void 0?e.len:e.pos+i;for(;e.pos<s;){let[a,c]=e.tag(),l=this.fieldNoToField.get(a);if(!l){let h=n.readUnknownField;if(h=="throw")throw new Error(`Unknown field ${a} (wire type ${c}) for ${this.info.typeName}`);let p=e.skip(c);h!==!1&&(h===!0?hEe.UnknownFieldHandler.onRead:h)(this.info.typeName,r,a,c,p);continue}let u=r,d=l.repeat,f=l.localName;switch(l.oneof&&(u=u[l.oneof],u.oneofKind!==f&&(u=r[l.oneof]={oneofKind:f})),l.kind){case"scalar":case"enum":let h=l.kind=="enum"?tn.ScalarType.INT32:l.T,p=l.kind=="scalar"?l.L:void 0;if(d){let E=u[f];if(c==hEe.WireType.LengthDelimited&&h!=tn.ScalarType.STRING&&h!=tn.ScalarType.BYTES){let y=e.uint32()+e.pos;for(;e.pos<y;)E.push(this.scalar(e,h,p))}else E.push(this.scalar(e,h,p))}else u[f]=this.scalar(e,h,p);break;case"message":if(d){let E=u[f],y=l.T().internalBinaryRead(e,e.uint32(),n);E.push(y)}else u[f]=l.T().internalBinaryRead(e,e.uint32(),n,u[f]);break;case"map":let[g,A]=this.mapEntry(l,e,n);u[f][g]=A;break}}}mapEntry(e,r,n){let i=r.uint32(),s=r.pos+i,a,c;for(;r.pos<s;){let[l,u]=r.tag();switch(l){case 1:e.K==tn.ScalarType.BOOL?a=r.bool().toString():a=this.scalar(r,e.K,tn.LongType.STRING);break;case 2:switch(e.V.kind){case"scalar":c=this.scalar(r,e.V.T,e.V.L);break;case"enum":c=r.int32();break;case"message":c=e.V.T().internalBinaryRead(r,r.uint32(),n);break}break;default:throw new Error(`Unknown field ${l} (wire type ${u}) in map entry for ${this.info.typeName}#${e.name}`)}}if(a===void 0){let l=pEe.reflectionScalarDefault(e.K);a=e.K==tn.ScalarType.BOOL?l.toString():l}if(c===void 0)switch(e.V.kind){case"scalar":c=pEe.reflectionScalarDefault(e.V.T,e.V.L);break;case"enum":c=0;break;case"message":c=e.V.T().create();break}return[a,c]}scalar(e,r,n){switch(r){case tn.ScalarType.INT32:return e.int32();case tn.ScalarType.STRING:return e.string();case tn.ScalarType.BOOL:return e.bool();case tn.ScalarType.DOUBLE:return e.double();case tn.ScalarType.FLOAT:return e.float();case tn.ScalarType.INT64:return zw.reflectionLongConvert(e.int64(),n);case tn.ScalarType.UINT64:return zw.reflectionLongConvert(e.uint64(),n);case tn.ScalarType.FIXED64:return zw.reflectionLongConvert(e.fixed64(),n);case tn.ScalarType.FIXED32:return e.fixed32();case tn.ScalarType.BYTES:return e.bytes();case tn.ScalarType.UINT32:return e.uint32();case tn.ScalarType.SFIXED32:return e.sfixed32();case tn.ScalarType.SFIXED64:return zw.reflectionLongConvert(e.sfixed64(),n);case tn.ScalarType.SINT32:return e.sint32();case tn.ScalarType.SINT64:return zw.reflectionLongConvert(e.sint64(),n)}}};u2.ReflectionBinaryReader=Cz});var Iz=m(d2=>{"use strict";Object.defineProperty(d2,"__esModule",{value:!0});d2.ReflectionBinaryWriter=void 0;var yo=Lw(),er=ac(),fy=ly(),$w=vf(),wz=class{static{o(this,"ReflectionBinaryWriter")}constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((r,n)=>r.no-n.no)}}write(e,r,n){this.prepare();for(let s of this.fields){let a,c,l=s.repeat,u=s.localName;if(s.oneof){let d=e[s.oneof];if(d.oneofKind!==u)continue;a=d[u],c=!0}else a=e[u],c=!1;switch(s.kind){case"scalar":case"enum":let d=s.kind=="enum"?er.ScalarType.INT32:s.T;if(l)if(fy.assert(Array.isArray(a)),l==er.RepeatType.PACKED)this.packed(r,d,s.no,a);else for(let f of a)this.scalar(r,d,s.no,f,!0);else a===void 0?fy.assert(s.opt):this.scalar(r,d,s.no,a,c||s.opt);break;case"message":if(l){fy.assert(Array.isArray(a));for(let f of a)this.message(r,n,s.T(),s.no,f)}else this.message(r,n,s.T(),s.no,a);break;case"map":fy.assert(typeof a=="object"&&a!==null);for(let[f,h]of Object.entries(a))this.mapEntry(r,n,s,f,h);break}}let i=n.writeUnknownFields;i!==!1&&(i===!0?yo.UnknownFieldHandler.onWrite:i)(this.info.typeName,e,r)}mapEntry(e,r,n,i,s){e.tag(n.no,yo.WireType.LengthDelimited),e.fork();let a=i;switch(n.K){case er.ScalarType.INT32:case er.ScalarType.FIXED32:case er.ScalarType.UINT32:case er.ScalarType.SFIXED32:case er.ScalarType.SINT32:a=Number.parseInt(i);break;case er.ScalarType.BOOL:fy.assert(i=="true"||i=="false"),a=i=="true";break}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,s,!0);break;case"enum":this.scalar(e,er.ScalarType.INT32,2,s,!0);break;case"message":this.message(e,r,n.V.T(),2,s);break}e.join()}message(e,r,n,i,s){s!==void 0&&(n.internalBinaryWrite(s,e.tag(i,yo.WireType.LengthDelimited).fork(),r),e.join())}scalar(e,r,n,i,s){let[a,c,l]=this.scalarInfo(r,i);(!l||s)&&(e.tag(n,a),e[c](i))}packed(e,r,n,i){if(!i.length)return;fy.assert(r!==er.ScalarType.BYTES&&r!==er.ScalarType.STRING),e.tag(n,yo.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(r);for(let a=0;a<i.length;a++)e[s](i[a]);e.join()}scalarInfo(e,r){let n=yo.WireType.Varint,i,s=r===void 0,a=r===0;switch(e){case er.ScalarType.INT32:i="int32";break;case er.ScalarType.STRING:a=s||!r.length,n=yo.WireType.LengthDelimited,i="string";break;case er.ScalarType.BOOL:a=r===!1,i="bool";break;case er.ScalarType.UINT32:i="uint32";break;case er.ScalarType.DOUBLE:n=yo.WireType.Bit64,i="double";break;case er.ScalarType.FLOAT:n=yo.WireType.Bit32,i="float";break;case er.ScalarType.INT64:a=s||$w.PbLong.from(r).isZero(),i="int64";break;case er.ScalarType.UINT64:a=s||$w.PbULong.from(r).isZero(),i="uint64";break;case er.ScalarType.FIXED64:a=s||$w.PbULong.from(r).isZero(),n=yo.WireType.Bit64,i="fixed64";break;case er.ScalarType.BYTES:a=s||!r.byteLength,n=yo.WireType.LengthDelimited,i="bytes";break;case er.ScalarType.FIXED32:n=yo.WireType.Bit32,i="fixed32";break;case er.ScalarType.SFIXED32:n=yo.WireType.Bit32,i="sfixed32";break;case er.ScalarType.SFIXED64:a=s||$w.PbLong.from(r).isZero(),n=yo.WireType.Bit64,i="sfixed64";break;case er.ScalarType.SINT32:i="sint32";break;case er.ScalarType.SINT64:a=s||$w.PbLong.from(r).isZero(),i="sint64";break}return[n,i,s||a]}};d2.ReflectionBinaryWriter=wz});var Sz=m(f2=>{"use strict";Object.defineProperty(f2,"__esModule",{value:!0});f2.reflectionCreate=void 0;var Adt=l2(),mdt=Vw();function gdt(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},mdt.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]=Adt.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}o(gdt,"reflectionCreate");f2.reflectionCreate=gdt});var Bz=m(h2=>{"use strict";Object.defineProperty(h2,"__esModule",{value:!0});h2.reflectionMergePartial=void 0;function ydt(t,e,r){let n,i=r,s;for(let a of t.fields){let c=a.localName;if(a.oneof){let l=i[a.oneof];if(l?.oneofKind==null)continue;if(n=l[c],s=e[a.oneof],s.oneofKind=l.oneofKind,n==null){delete s[c];continue}}else if(n=i[c],s=e,n==null)continue;switch(a.repeat&&(s[c].length=n.length),a.kind){case"scalar":case"enum":if(a.repeat)for(let u=0;u<n.length;u++)s[c][u]=n[u];else s[c]=n;break;case"message":let l=a.T();if(a.repeat)for(let u=0;u<n.length;u++)s[c][u]=l.create(n[u]);else s[c]===void 0?s[c]=l.create(n):l.mergePartial(s[c],n);break;case"map":switch(a.V.kind){case"scalar":case"enum":Object.assign(s[c],n);break;case"message":let u=a.V.T();for(let d of Object.keys(n))s[c][d]=u.create(n[d]);break}break}}}o(ydt,"reflectionMergePartial");h2.reflectionMergePartial=ydt});var vz=m(A2=>{"use strict";Object.defineProperty(A2,"__esModule",{value:!0});A2.reflectionEquals=void 0;var xz=ac();function Edt(t,e,r){if(e===r)return!0;if(!e||!r)return!1;for(let n of t.fields){let i=n.localName,s=n.oneof?e[n.oneof][i]:e[i],a=n.oneof?r[n.oneof][i]:r[i];switch(n.kind){case"enum":case"scalar":let c=n.kind=="enum"?xz.ScalarType.INT32:n.T;if(!(n.repeat?AEe(c,s,a):gEe(c,s,a)))return!1;break;case"map":if(!(n.V.kind=="message"?mEe(n.V.T(),p2(s),p2(a)):AEe(n.V.kind=="enum"?xz.ScalarType.INT32:n.V.T,p2(s),p2(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?mEe(l,s,a):l.equals(s,a)))return!1;break}}return!0}o(Edt,"reflectionEquals");A2.reflectionEquals=Edt;var p2=Object.values;function gEe(t,e,r){if(e===r)return!0;if(t!==xz.ScalarType.BYTES)return!1;let n=e,i=r;if(n.length!==i.length)return!1;for(let s=0;s<n.length;s++)if(n[s]!=i[s])return!1;return!0}o(gEe,"primitiveEq");function AEe(t,e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!gEe(t,e[n],r[n]))return!1;return!0}o(AEe,"repeatedPrimitiveEq");function mEe(t,e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!t.equals(e[n],r[n]))return!1;return!0}o(mEe,"repeatedMsgEq")});var CEe=m(m2=>{"use strict";Object.defineProperty(m2,"__esModule",{value:!0});m2.MessageType=void 0;var Cdt=Vw(),bdt=ac(),wdt=Az(),Idt=gz(),Sdt=Ez(),Bdt=bz(),xdt=Iz(),vdt=Sz(),Nz=Bz(),Ndt=GR(),yEe=dz(),_dt=vz(),Tdt=uz(),Rdt=lz(),EEe=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),Ddt=EEe[Cdt.MESSAGE_TYPE]={},_z=class{static{o(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(bdt.normalizeFieldInfo),this.options=n??{},Ddt.value=this,this.messagePrototype=Object.create(null,EEe),this.refTypeCheck=new wdt.ReflectionTypeCheck(this),this.refJsonReader=new Idt.ReflectionJsonReader(this),this.refJsonWriter=new Sdt.ReflectionJsonWriter(this),this.refBinReader=new Bdt.ReflectionBinaryReader(this),this.refBinWriter=new xdt.ReflectionBinaryWriter(this)}create(e){let r=vdt.reflectionCreate(this);return e!==void 0&&Nz.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return Nz.reflectionMergePartial(this,r,e),r}equals(e,r){return _dt.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){Nz.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=Rdt.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,yEe.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,yEe.jsonWriteOptions(r))}toJsonString(e,r){var n;let i=this.toJson(e,r);return JSON.stringify(i,null,(n=r?.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,r){let n=Tdt.binaryWriteOptions(r);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,r,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let i=n??this.create();return this.refJsonReader.read(e,i,r),i}throw new Error(`Unable to parse message ${this.typeName} from JSON ${Ndt.typeofJsonValue(e)}.`)}internalJsonWrite(e,r){return this.refJsonWriter.write(e,r)}internalBinaryWrite(e,r,n){return this.refBinWriter.write(e,r,n),r}internalBinaryRead(e,r,n,i){let s=i??this.create();return this.refBinReader.read(e,s,n,r),s}};m2.MessageType=_z});var bEe=m(g2=>{"use strict";Object.defineProperty(g2,"__esModule",{value:!0});g2.containsMessageType=void 0;var Qdt=Vw();function Pdt(t){return t[Qdt.MESSAGE_TYPE]!=null}o(Pdt,"containsMessageType");g2.containsMessageType=Pdt});var IEe=m(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.listEnumNumbers=bl.listEnumNames=bl.listEnumValues=bl.isEnumObject=void 0;function wEe(t){if(typeof t!="object"||t===null||!t.hasOwnProperty(0))return!1;for(let e of Object.keys(t)){let r=parseInt(e);if(Number.isNaN(r)){let n=t[e];if(n===void 0||typeof n!="number"||t[n]===void 0)return!1}else{let n=t[r];if(n===void 0||t[n]!==r)return!1}}return!0}o(wEe,"isEnumObject");bl.isEnumObject=wEe;function Tz(t){if(!wEe(t))throw new Error("not a typescript enum object");let e=[];for(let[r,n]of Object.entries(t))typeof n=="number"&&e.push({name:r,number:n});return e}o(Tz,"listEnumValues");bl.listEnumValues=Tz;function kdt(t){return Tz(t).map(e=>e.name)}o(kdt,"listEnumNames");bl.listEnumNames=kdt;function Odt(t){return Tz(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}o(Odt,"listEnumNumbers");bl.listEnumNumbers=Odt});var rn=m(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});var SEe=GR();Object.defineProperty(Re,"typeofJsonValue",{enumerable:!0,get:o(function(){return SEe.typeofJsonValue},"get")});Object.defineProperty(Re,"isJsonObject",{enumerable:!0,get:o(function(){return SEe.isJsonObject},"get")});var BEe=VR();Object.defineProperty(Re,"base64decode",{enumerable:!0,get:o(function(){return BEe.base64decode},"get")});Object.defineProperty(Re,"base64encode",{enumerable:!0,get:o(function(){return BEe.base64encode},"get")});var Ldt=Kye();Object.defineProperty(Re,"utf8read",{enumerable:!0,get:o(function(){return Ldt.utf8read},"get")});var Rz=Lw();Object.defineProperty(Re,"WireType",{enumerable:!0,get:o(function(){return Rz.WireType},"get")});Object.defineProperty(Re,"mergeBinaryOptions",{enumerable:!0,get:o(function(){return Rz.mergeBinaryOptions},"get")});Object.defineProperty(Re,"UnknownFieldHandler",{enumerable:!0,get:o(function(){return Rz.UnknownFieldHandler},"get")});var xEe=lz();Object.defineProperty(Re,"BinaryReader",{enumerable:!0,get:o(function(){return xEe.BinaryReader},"get")});Object.defineProperty(Re,"binaryReadOptions",{enumerable:!0,get:o(function(){return xEe.binaryReadOptions},"get")});var vEe=uz();Object.defineProperty(Re,"BinaryWriter",{enumerable:!0,get:o(function(){return vEe.BinaryWriter},"get")});Object.defineProperty(Re,"binaryWriteOptions",{enumerable:!0,get:o(function(){return vEe.binaryWriteOptions},"get")});var NEe=vf();Object.defineProperty(Re,"PbLong",{enumerable:!0,get:o(function(){return NEe.PbLong},"get")});Object.defineProperty(Re,"PbULong",{enumerable:!0,get:o(function(){return NEe.PbULong},"get")});var Dz=dz();Object.defineProperty(Re,"jsonReadOptions",{enumerable:!0,get:o(function(){return Dz.jsonReadOptions},"get")});Object.defineProperty(Re,"jsonWriteOptions",{enumerable:!0,get:o(function(){return Dz.jsonWriteOptions},"get")});Object.defineProperty(Re,"mergeJsonOptions",{enumerable:!0,get:o(function(){return Dz.mergeJsonOptions},"get")});var Fdt=Vw();Object.defineProperty(Re,"MESSAGE_TYPE",{enumerable:!0,get:o(function(){return Fdt.MESSAGE_TYPE},"get")});var Mdt=CEe();Object.defineProperty(Re,"MessageType",{enumerable:!0,get:o(function(){return Mdt.MessageType},"get")});var Up=ac();Object.defineProperty(Re,"ScalarType",{enumerable:!0,get:o(function(){return Up.ScalarType},"get")});Object.defineProperty(Re,"LongType",{enumerable:!0,get:o(function(){return Up.LongType},"get")});Object.defineProperty(Re,"RepeatType",{enumerable:!0,get:o(function(){return Up.RepeatType},"get")});Object.defineProperty(Re,"normalizeFieldInfo",{enumerable:!0,get:o(function(){return Up.normalizeFieldInfo},"get")});Object.defineProperty(Re,"readFieldOptions",{enumerable:!0,get:o(function(){return Up.readFieldOptions},"get")});Object.defineProperty(Re,"readFieldOption",{enumerable:!0,get:o(function(){return Up.readFieldOption},"get")});Object.defineProperty(Re,"readMessageOption",{enumerable:!0,get:o(function(){return Up.readMessageOption},"get")});var Udt=Az();Object.defineProperty(Re,"ReflectionTypeCheck",{enumerable:!0,get:o(function(){return Udt.ReflectionTypeCheck},"get")});var qdt=Sz();Object.defineProperty(Re,"reflectionCreate",{enumerable:!0,get:o(function(){return qdt.reflectionCreate},"get")});var Gdt=l2();Object.defineProperty(Re,"reflectionScalarDefault",{enumerable:!0,get:o(function(){return Gdt.reflectionScalarDefault},"get")});var Hdt=Bz();Object.defineProperty(Re,"reflectionMergePartial",{enumerable:!0,get:o(function(){return Hdt.reflectionMergePartial},"get")});var Vdt=vz();Object.defineProperty(Re,"reflectionEquals",{enumerable:!0,get:o(function(){return Vdt.reflectionEquals},"get")});var zdt=bz();Object.defineProperty(Re,"ReflectionBinaryReader",{enumerable:!0,get:o(function(){return zdt.ReflectionBinaryReader},"get")});var $dt=Iz();Object.defineProperty(Re,"ReflectionBinaryWriter",{enumerable:!0,get:o(function(){return $dt.ReflectionBinaryWriter},"get")});var jdt=gz();Object.defineProperty(Re,"ReflectionJsonReader",{enumerable:!0,get:o(function(){return jdt.ReflectionJsonReader},"get")});var Wdt=Ez();Object.defineProperty(Re,"ReflectionJsonWriter",{enumerable:!0,get:o(function(){return Wdt.ReflectionJsonWriter},"get")});var Jdt=bEe();Object.defineProperty(Re,"containsMessageType",{enumerable:!0,get:o(function(){return Jdt.containsMessageType},"get")});var jw=hz();Object.defineProperty(Re,"isOneofGroup",{enumerable:!0,get:o(function(){return jw.isOneofGroup},"get")});Object.defineProperty(Re,"setOneofValue",{enumerable:!0,get:o(function(){return jw.setOneofValue},"get")});Object.defineProperty(Re,"getOneofValue",{enumerable:!0,get:o(function(){return jw.getOneofValue},"get")});Object.defineProperty(Re,"clearOneofValue",{enumerable:!0,get:o(function(){return jw.clearOneofValue},"get")});Object.defineProperty(Re,"getSelectedOneofValue",{enumerable:!0,get:o(function(){return jw.getSelectedOneofValue},"get")});var y2=IEe();Object.defineProperty(Re,"listEnumValues",{enumerable:!0,get:o(function(){return y2.listEnumValues},"get")});Object.defineProperty(Re,"listEnumNames",{enumerable:!0,get:o(function(){return y2.listEnumNames},"get")});Object.defineProperty(Re,"listEnumNumbers",{enumerable:!0,get:o(function(){return y2.listEnumNumbers},"get")});Object.defineProperty(Re,"isEnumObject",{enumerable:!0,get:o(function(){return y2.isEnumObject},"get")});var Ydt=fz();Object.defineProperty(Re,"lowerCamelCase",{enumerable:!0,get:o(function(){return Ydt.lowerCamelCase},"get")});var Ww=ly();Object.defineProperty(Re,"assert",{enumerable:!0,get:o(function(){return Ww.assert},"get")});Object.defineProperty(Re,"assertNever",{enumerable:!0,get:o(function(){return Ww.assertNever},"get")});Object.defineProperty(Re,"assertInt32",{enumerable:!0,get:o(function(){return Ww.assertInt32},"get")});Object.defineProperty(Re,"assertUInt32",{enumerable:!0,get:o(function(){return Ww.assertUInt32},"get")});Object.defineProperty(Re,"assertFloat32",{enumerable:!0,get:o(function(){return Ww.assertFloat32},"get")})});var Qz=m(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.readServiceOption=wl.readMethodOption=wl.readMethodOptions=wl.normalizeMethodInfo=void 0;var Kdt=rn();function Xdt(t,e){var r,n,i;let s=t;return s.service=e,s.localName=(r=s.localName)!==null&&r!==void 0?r:Kdt.lowerCamelCase(s.name),s.serverStreaming=!!s.serverStreaming,s.clientStreaming=!!s.clientStreaming,s.options=(n=s.options)!==null&&n!==void 0?n:{},s.idempotency=(i=s.idempotency)!==null&&i!==void 0?i:void 0,s}o(Xdt,"normalizeMethodInfo");wl.normalizeMethodInfo=Xdt;function Zdt(t,e,r,n){var i;let s=(i=t.methods.find((a,c)=>a.localName===e||c===e))===null||i===void 0?void 0:i.options;return s&&s[r]?n.fromJson(s[r]):void 0}o(Zdt,"readMethodOptions");wl.readMethodOptions=Zdt;function eft(t,e,r,n){var i;let s=(i=t.methods.find((c,l)=>c.localName===e||l===e))===null||i===void 0?void 0:i.options;if(!s)return;let a=s[r];return a===void 0?a:n?n.fromJson(a):a}o(eft,"readMethodOption");wl.readMethodOption=eft;function tft(t,e,r){let n=t.options;if(!n)return;let i=n[e];return i===void 0?i:r?r.fromJson(i):i}o(tft,"readServiceOption");wl.readServiceOption=tft});var _Ee=m(E2=>{"use strict";Object.defineProperty(E2,"__esModule",{value:!0});E2.ServiceType=void 0;var rft=Qz(),Pz=class{static{o(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(i=>rft.normalizeMethodInfo(i,this)),this.options=n??{}}};E2.ServiceType=Pz});var Oz=m(C2=>{"use strict";Object.defineProperty(C2,"__esModule",{value:!0});C2.RpcError=void 0;var kz=class extends Error{static{o(this,"RpcError")}constructor(e,r="UNKNOWN",n){super(e),this.name="RpcError",Object.setPrototypeOf(this,new.target.prototype),this.code=r,this.meta=n??{}}toString(){let e=[this.name+": "+this.message];this.code&&(e.push(""),e.push("Code: "+this.code)),this.serviceName&&this.methodName&&e.push("Method: "+this.serviceName+"/"+this.methodName);let r=Object.entries(this.meta);if(r.length){e.push(""),e.push("Meta:");for(let[n,i]of r)e.push(` ${n}: ${i}`)}return e.join(`
|
|
`)}};C2.RpcError=kz});var Lz=m(w2=>{"use strict";Object.defineProperty(w2,"__esModule",{value:!0});w2.mergeRpcOptions=void 0;var TEe=rn();function nft(t,e){if(!e)return t;let r={};b2(t,r),b2(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=TEe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=TEe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},b2(t.meta,r.meta),b2(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(nft,"mergeRpcOptions");w2.mergeRpcOptions=nft;function b2(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}o(b2,"copy")});var Mz=m(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.Deferred=qp.DeferredState=void 0;var Il;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Il=qp.DeferredState||(qp.DeferredState={}));var Fz=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Il.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!==Il.PENDING)throw new Error(`cannot resolve ${Il[this.state].toLowerCase()}`);this._resolve(e),this._state=Il.RESOLVED}reject(e){if(this.state!==Il.PENDING)throw new Error(`cannot reject ${Il[this.state].toLowerCase()}`);this._reject(e),this._state=Il.REJECTED}resolvePending(e){this._state===Il.PENDING&&this.resolve(e)}rejectPending(e){this._state===Il.PENDING&&this.reject(e)}};qp.Deferred=Fz});var qz=m(I2=>{"use strict";Object.defineProperty(I2,"__esModule",{value:!0});I2.RpcOutputStreamController=void 0;var REe=Mz(),Gp=rn(),Uz=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Gp.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){Gp.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){Gp.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(){Gp.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;Gp.assert(e,"bad state"),Gp.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 REe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Gp.assert(n.state==REe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};I2.RpcOutputStreamController=Uz});var Hz=m(hy=>{"use strict";var ift=hy&&hy.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(hy,"__esModule",{value:!0});hy.UnaryCall=void 0;var Gz=class{static{o(this,"UnaryCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return ift(this,void 0,void 0,function*(){let[e,r,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:i}})}};hy.UnaryCall=Gz});var zz=m(py=>{"use strict";var sft=py&&py.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(py,"__esModule",{value:!0});py.ServerStreamingCall=void 0;var Vz=class{static{o(this,"ServerStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.responses=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return sft(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}})}};py.ServerStreamingCall=Vz});var jz=m(Ay=>{"use strict";var oft=Ay&&Ay.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Ay,"__esModule",{value:!0});Ay.ClientStreamingCall=void 0;var $z=class{static{o(this,"ClientStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=i,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return oft(this,void 0,void 0,function*(){let[e,r,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:r,status:n,trailers:i}})}};Ay.ClientStreamingCall=$z});var Jz=m(my=>{"use strict";var aft=my&&my.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(my,"__esModule",{value:!0});my.DuplexStreamingCall=void 0;var Wz=class{static{o(this,"DuplexStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=i,this.responses=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return aft(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}})}};my.DuplexStreamingCall=Wz});var QEe=m(Ey=>{"use strict";var cft=Ey&&Ey.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Ey,"__esModule",{value:!0});Ey.TestTransport=void 0;var aa=Oz(),S2=rn(),DEe=qz(),lft=Lz(),uft=Hz(),dft=zz(),fft=jz(),hft=Jz(),yy=class t{static{o(this,"TestTransport")}constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof gy?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof gy?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 aa.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof aa.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(S2.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),S2.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return cft(this,void 0,void 0,function*(){let i=[];if(this.data.response===void 0)i.push(e.O.create());else if(Array.isArray(this.data.response))for(let s of this.data.response)S2.assert(e.O.is(s)),i.push(s);else this.data.response instanceof aa.RpcError||(S2.assert(e.O.is(this.data.response)),i.push(this.data.response));try{yield Jn(this.responseDelay,n)(void 0)}catch(s){r.notifyError(s);return}if(this.data.response instanceof aa.RpcError){r.notifyError(this.data.response);return}for(let s of i){r.notifyMessage(s);try{yield Jn(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof aa.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof aa.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 aa.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 aa.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return lft.mergeRpcOptions({},e)}unary(e,r,n){var i;let s=(i=n.meta)!==null&&i!==void 0?i:{},a=this.promiseHeaders().then(Jn(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(Jn(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(Jn(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(Jn(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new uft.UnaryCall(e,s,r,a,c,l,u)}serverStreaming(e,r,n){var i;let s=(i=n.meta)!==null&&i!==void 0?i:{},a=this.promiseHeaders().then(Jn(this.headerDelay,n.abort)),c=new DEe.RpcOutputStreamController,l=a.then(Jn(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(Jn(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new dft.ServerStreamingCall(e,s,r,a,c,u,d)}clientStreaming(e,r){var n;let i=(n=r.meta)!==null&&n!==void 0?n:{},s=this.promiseHeaders().then(Jn(this.headerDelay,r.abort)),a=s.catch(u=>{}).then(Jn(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(Jn(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(Jn(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new gy(this.data,r.abort),new fft.ClientStreamingCall(e,i,this.lastInput,s,a,c,l)}duplex(e,r){var n;let i=(n=r.meta)!==null&&n!==void 0?n:{},s=this.promiseHeaders().then(Jn(this.headerDelay,r.abort)),a=new DEe.RpcOutputStreamController,c=s.then(Jn(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(Jn(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new gy(this.data,r.abort),new hft.DuplexStreamingCall(e,i,this.lastInput,s,a,l,u)}};Ey.TestTransport=yy;yy.defaultHeaders={responseHeader:"test"};yy.defaultStatus={code:"OK",detail:"all good"};yy.defaultTrailers={responseTrailer:"test"};function Jn(t,e){return r=>new Promise((n,i)=>{if(e?.aborted)i(new aa.RpcError("user cancel","CANCELLED"));else{let s=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(s),i(new aa.RpcError("user cancel","CANCELLED"))})}})}o(Jn,"delay");var gy=class{static{o(this,"TestInputStream")}constructor(e,r){this._completed=!1,this._sent=[],this.data=e,this.abort=r}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof aa.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(Jn(r,this.abort))}complete(){if(this.data.inputComplete instanceof aa.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(Jn(e,this.abort))}}});var PEe=m(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.stackDuplexStreamingInterceptors=ca.stackClientStreamingInterceptors=ca.stackServerStreamingInterceptors=ca.stackUnaryInterceptors=ca.stackIntercept=void 0;var pft=rn();function Jw(t,e,r,n,i){var s,a,c,l;if(t=="unary"){let u=o((d,f,h)=>e.unary(d,f,h),"tail");for(let d of((s=n.interceptors)!==null&&s!==void 0?s:[]).filter(f=>f.interceptUnary).reverse()){let f=u;u=o((h,p,g)=>d.interceptUnary(f,h,p,g),"tail")}return u(r,i,n)}if(t=="serverStreaming"){let u=o((d,f,h)=>e.serverStreaming(d,f,h),"tail");for(let d of((a=n.interceptors)!==null&&a!==void 0?a:[]).filter(f=>f.interceptServerStreaming).reverse()){let f=u;u=o((h,p,g)=>d.interceptServerStreaming(f,h,p,g),"tail")}return u(r,i,n)}if(t=="clientStreaming"){let u=o((d,f)=>e.clientStreaming(d,f),"tail");for(let d of((c=n.interceptors)!==null&&c!==void 0?c:[]).filter(f=>f.interceptClientStreaming).reverse()){let f=u;u=o((h,p)=>d.interceptClientStreaming(f,h,p),"tail")}return u(r,n)}if(t=="duplex"){let u=o((d,f)=>e.duplex(d,f),"tail");for(let d of((l=n.interceptors)!==null&&l!==void 0?l:[]).filter(f=>f.interceptDuplex).reverse()){let f=u;u=o((h,p)=>d.interceptDuplex(f,h,p),"tail")}return u(r,n)}pft.assertNever(t)}o(Jw,"stackIntercept");ca.stackIntercept=Jw;function Aft(t,e,r,n){return Jw("unary",t,e,n,r)}o(Aft,"stackUnaryInterceptors");ca.stackUnaryInterceptors=Aft;function mft(t,e,r,n){return Jw("serverStreaming",t,e,n,r)}o(mft,"stackServerStreamingInterceptors");ca.stackServerStreamingInterceptors=mft;function gft(t,e,r){return Jw("clientStreaming",t,e,r)}o(gft,"stackClientStreamingInterceptors");ca.stackClientStreamingInterceptors=gft;function yft(t,e,r){return Jw("duplex",t,e,r)}o(yft,"stackDuplexStreamingInterceptors");ca.stackDuplexStreamingInterceptors=yft});var kEe=m(B2=>{"use strict";Object.defineProperty(B2,"__esModule",{value:!0});B2.ServerCallContextController=void 0;var Yz=class{static{o(this,"ServerCallContextController")}constructor(e,r,n,i,s={code:"OK",detail:""}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=r,this.deadline=n,this.trailers={},this._sendRH=i,this.status=s}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let r=this._listeners;return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}};B2.ServerCallContextController=Yz});var LEe=m(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});var Eft=_Ee();Object.defineProperty(qr,"ServiceType",{enumerable:!0,get:o(function(){return Eft.ServiceType},"get")});var Kz=Qz();Object.defineProperty(qr,"readMethodOptions",{enumerable:!0,get:o(function(){return Kz.readMethodOptions},"get")});Object.defineProperty(qr,"readMethodOption",{enumerable:!0,get:o(function(){return Kz.readMethodOption},"get")});Object.defineProperty(qr,"readServiceOption",{enumerable:!0,get:o(function(){return Kz.readServiceOption},"get")});var Cft=Oz();Object.defineProperty(qr,"RpcError",{enumerable:!0,get:o(function(){return Cft.RpcError},"get")});var bft=Lz();Object.defineProperty(qr,"mergeRpcOptions",{enumerable:!0,get:o(function(){return bft.mergeRpcOptions},"get")});var wft=qz();Object.defineProperty(qr,"RpcOutputStreamController",{enumerable:!0,get:o(function(){return wft.RpcOutputStreamController},"get")});var Ift=QEe();Object.defineProperty(qr,"TestTransport",{enumerable:!0,get:o(function(){return Ift.TestTransport},"get")});var OEe=Mz();Object.defineProperty(qr,"Deferred",{enumerable:!0,get:o(function(){return OEe.Deferred},"get")});Object.defineProperty(qr,"DeferredState",{enumerable:!0,get:o(function(){return OEe.DeferredState},"get")});var Sft=Jz();Object.defineProperty(qr,"DuplexStreamingCall",{enumerable:!0,get:o(function(){return Sft.DuplexStreamingCall},"get")});var Bft=jz();Object.defineProperty(qr,"ClientStreamingCall",{enumerable:!0,get:o(function(){return Bft.ClientStreamingCall},"get")});var xft=zz();Object.defineProperty(qr,"ServerStreamingCall",{enumerable:!0,get:o(function(){return xft.ServerStreamingCall},"get")});var vft=Hz();Object.defineProperty(qr,"UnaryCall",{enumerable:!0,get:o(function(){return vft.UnaryCall},"get")});var Yw=PEe();Object.defineProperty(qr,"stackIntercept",{enumerable:!0,get:o(function(){return Yw.stackIntercept},"get")});Object.defineProperty(qr,"stackDuplexStreamingInterceptors",{enumerable:!0,get:o(function(){return Yw.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(qr,"stackClientStreamingInterceptors",{enumerable:!0,get:o(function(){return Yw.stackClientStreamingInterceptors},"get")});Object.defineProperty(qr,"stackServerStreamingInterceptors",{enumerable:!0,get:o(function(){return Yw.stackServerStreamingInterceptors},"get")});Object.defineProperty(qr,"stackUnaryInterceptors",{enumerable:!0,get:o(function(){return Yw.stackUnaryInterceptors},"get")});var Nft=kEe();Object.defineProperty(qr,"ServerCallContextController",{enumerable:!0,get:o(function(){return Nft.ServerCallContextController},"get")})});var by=m((rbr,nCe)=>{"use strict";var Uft="2.0.0",qft=Number.MAX_SAFE_INTEGER||9007199254740991,Gft=16,Hft=250,Vft=["major","premajor","minor","preminor","patch","prepatch","prerelease"];nCe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Gft,MAX_SAFE_BUILD_LENGTH:Hft,MAX_SAFE_INTEGER:qft,RELEASE_TYPES:Vft,SEMVER_SPEC_VERSION:Uft,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var eI=m((nbr,iCe)=>{"use strict";var zft=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};iCe.exports=zft});var wy=m((xl,sCe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:v$,MAX_SAFE_BUILD_LENGTH:$ft,MAX_LENGTH:jft}=by(),Wft=eI();xl=sCe.exports={};var Jft=xl.re=[],Yft=xl.safeRe=[],fe=xl.src=[],Kft=xl.safeSrc=[],he=xl.t={},Xft=0,N$="[a-zA-Z0-9-]",Zft=[["\\s",1],["\\d",jft],[N$,$ft]],eht=o(t=>{for(let[e,r]of Zft)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ke=o((t,e,r)=>{let n=eht(e),i=Xft++;Wft(t,i,e),he[t]=i,fe[i]=e,Kft[i]=n,Jft[i]=new RegExp(e,r?"g":void 0),Yft[i]=new RegExp(n,r?"g":void 0)},"createToken");Ke("NUMERICIDENTIFIER","0|[1-9]\\d*");Ke("NUMERICIDENTIFIERLOOSE","\\d+");Ke("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${N$}*`);Ke("MAINVERSION",`(${fe[he.NUMERICIDENTIFIER]})\\.(${fe[he.NUMERICIDENTIFIER]})\\.(${fe[he.NUMERICIDENTIFIER]})`);Ke("MAINVERSIONLOOSE",`(${fe[he.NUMERICIDENTIFIERLOOSE]})\\.(${fe[he.NUMERICIDENTIFIERLOOSE]})\\.(${fe[he.NUMERICIDENTIFIERLOOSE]})`);Ke("PRERELEASEIDENTIFIER",`(?:${fe[he.NONNUMERICIDENTIFIER]}|${fe[he.NUMERICIDENTIFIER]})`);Ke("PRERELEASEIDENTIFIERLOOSE",`(?:${fe[he.NONNUMERICIDENTIFIER]}|${fe[he.NUMERICIDENTIFIERLOOSE]})`);Ke("PRERELEASE",`(?:-(${fe[he.PRERELEASEIDENTIFIER]}(?:\\.${fe[he.PRERELEASEIDENTIFIER]})*))`);Ke("PRERELEASELOOSE",`(?:-?(${fe[he.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${fe[he.PRERELEASEIDENTIFIERLOOSE]})*))`);Ke("BUILDIDENTIFIER",`${N$}+`);Ke("BUILD",`(?:\\+(${fe[he.BUILDIDENTIFIER]}(?:\\.${fe[he.BUILDIDENTIFIER]})*))`);Ke("FULLPLAIN",`v?${fe[he.MAINVERSION]}${fe[he.PRERELEASE]}?${fe[he.BUILD]}?`);Ke("FULL",`^${fe[he.FULLPLAIN]}$`);Ke("LOOSEPLAIN",`[v=\\s]*${fe[he.MAINVERSIONLOOSE]}${fe[he.PRERELEASELOOSE]}?${fe[he.BUILD]}?`);Ke("LOOSE",`^${fe[he.LOOSEPLAIN]}$`);Ke("GTLT","((?:<|>)?=?)");Ke("XRANGEIDENTIFIERLOOSE",`${fe[he.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ke("XRANGEIDENTIFIER",`${fe[he.NUMERICIDENTIFIER]}|x|X|\\*`);Ke("XRANGEPLAIN",`[v=\\s]*(${fe[he.XRANGEIDENTIFIER]})(?:\\.(${fe[he.XRANGEIDENTIFIER]})(?:\\.(${fe[he.XRANGEIDENTIFIER]})(?:${fe[he.PRERELEASE]})?${fe[he.BUILD]}?)?)?`);Ke("XRANGEPLAINLOOSE",`[v=\\s]*(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:${fe[he.PRERELEASELOOSE]})?${fe[he.BUILD]}?)?)?`);Ke("XRANGE",`^${fe[he.GTLT]}\\s*${fe[he.XRANGEPLAIN]}$`);Ke("XRANGELOOSE",`^${fe[he.GTLT]}\\s*${fe[he.XRANGEPLAINLOOSE]}$`);Ke("COERCEPLAIN",`(^|[^\\d])(\\d{1,${v$}})(?:\\.(\\d{1,${v$}}))?(?:\\.(\\d{1,${v$}}))?`);Ke("COERCE",`${fe[he.COERCEPLAIN]}(?:$|[^\\d])`);Ke("COERCEFULL",fe[he.COERCEPLAIN]+`(?:${fe[he.PRERELEASE]})?(?:${fe[he.BUILD]})?(?:$|[^\\d])`);Ke("COERCERTL",fe[he.COERCE],!0);Ke("COERCERTLFULL",fe[he.COERCEFULL],!0);Ke("LONETILDE","(?:~>?)");Ke("TILDETRIM",`(\\s*)${fe[he.LONETILDE]}\\s+`,!0);xl.tildeTrimReplace="$1~";Ke("TILDE",`^${fe[he.LONETILDE]}${fe[he.XRANGEPLAIN]}$`);Ke("TILDELOOSE",`^${fe[he.LONETILDE]}${fe[he.XRANGEPLAINLOOSE]}$`);Ke("LONECARET","(?:\\^)");Ke("CARETTRIM",`(\\s*)${fe[he.LONECARET]}\\s+`,!0);xl.caretTrimReplace="$1^";Ke("CARET",`^${fe[he.LONECARET]}${fe[he.XRANGEPLAIN]}$`);Ke("CARETLOOSE",`^${fe[he.LONECARET]}${fe[he.XRANGEPLAINLOOSE]}$`);Ke("COMPARATORLOOSE",`^${fe[he.GTLT]}\\s*(${fe[he.LOOSEPLAIN]})$|^$`);Ke("COMPARATOR",`^${fe[he.GTLT]}\\s*(${fe[he.FULLPLAIN]})$|^$`);Ke("COMPARATORTRIM",`(\\s*)${fe[he.GTLT]}\\s*(${fe[he.LOOSEPLAIN]}|${fe[he.XRANGEPLAIN]})`,!0);xl.comparatorTrimReplace="$1$2$3";Ke("HYPHENRANGE",`^\\s*(${fe[he.XRANGEPLAIN]})\\s+-\\s+(${fe[he.XRANGEPLAIN]})\\s*$`);Ke("HYPHENRANGELOOSE",`^\\s*(${fe[he.XRANGEPLAINLOOSE]})\\s+-\\s+(${fe[he.XRANGEPLAINLOOSE]})\\s*$`);Ke("STAR","(<|>)?=?\\s*\\*");Ke("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ke("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Q2=m((sbr,oCe)=>{"use strict";var tht=Object.freeze({loose:!0}),rht=Object.freeze({}),nht=o(t=>t?typeof t!="object"?tht:t:rht,"parseOptions");oCe.exports=nht});var _$=m((abr,lCe)=>{"use strict";var aCe=/^[0-9]+$/,cCe=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=aCe.test(t),n=aCe.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),iht=o((t,e)=>cCe(e,t),"rcompareIdentifiers");lCe.exports={compareIdentifiers:cCe,rcompareIdentifiers:iht}});var hi=m((lbr,dCe)=>{"use strict";var P2=eI(),{MAX_LENGTH:uCe,MAX_SAFE_INTEGER:k2}=by(),{safeRe:O2,t:L2}=wy(),sht=Q2(),{compareIdentifiers:T$}=_$(),oht=o((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;n<r.length;n++)if(T$(t[n],r[n])!==0)return!1;return!0},"isPrereleaseIdentifier"),R$=class t{static{o(this,"SemVer")}constructor(e,r){if(r=sht(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>uCe)throw new TypeError(`version is longer than ${uCe} characters`);P2("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?O2[L2.LOOSE]:O2[L2.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>k2||this.major<0)throw new TypeError("Invalid major version");if(this.minor>k2||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>k2||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<k2)return s}return i}):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(P2("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.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(P2("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return T$(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(P2("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return T$(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?O2[L2.PRERELEASELOOSE]:O2[L2.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];if(n===!1&&(s=[r]),oht(this.prerelease,r)){let a=this.prerelease[r.split(".").length];isNaN(a)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};dCe.exports=R$});var Tf=m((dbr,hCe)=>{"use strict";var fCe=hi(),aht=o((t,e,r=!1)=>{if(t instanceof fCe)return t;try{return new fCe(t,e)}catch(n){if(!r)return null;throw n}},"parse");hCe.exports=aht});var ACe=m((hbr,pCe)=>{"use strict";var cht=Tf(),lht=o((t,e)=>{let r=cht(t,e);return r?r.version:null},"valid");pCe.exports=lht});var gCe=m((Abr,mCe)=>{"use strict";var uht=Tf(),dht=o((t,e)=>{let r=uht(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");mCe.exports=dht});var CCe=m((gbr,ECe)=>{"use strict";var yCe=hi(),fht=o((t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new yCe(t instanceof yCe?t.version:t,r).inc(e,n,i).version}catch{return null}},"inc");ECe.exports=fht});var ICe=m((Ebr,wCe)=>{"use strict";var bCe=Tf(),hht=o((t,e)=>{let r=bCe(t,null,!0),n=bCe(e,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,c=s?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");wCe.exports=hht});var BCe=m((bbr,SCe)=>{"use strict";var pht=hi(),Aht=o((t,e)=>new pht(t,e).major,"major");SCe.exports=Aht});var vCe=m((Ibr,xCe)=>{"use strict";var mht=hi(),ght=o((t,e)=>new mht(t,e).minor,"minor");xCe.exports=ght});var _Ce=m((Bbr,NCe)=>{"use strict";var yht=hi(),Eht=o((t,e)=>new yht(t,e).patch,"patch");NCe.exports=Eht});var RCe=m((vbr,TCe)=>{"use strict";var Cht=Tf(),bht=o((t,e)=>{let r=Cht(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");TCe.exports=bht});var la=m((_br,QCe)=>{"use strict";var DCe=hi(),wht=o((t,e,r)=>new DCe(t,r).compare(new DCe(e,r)),"compare");QCe.exports=wht});var kCe=m((Rbr,PCe)=>{"use strict";var Iht=la(),Sht=o((t,e,r)=>Iht(e,t,r),"rcompare");PCe.exports=Sht});var LCe=m((Qbr,OCe)=>{"use strict";var Bht=la(),xht=o((t,e)=>Bht(t,e,!0),"compareLoose");OCe.exports=xht});var F2=m((kbr,MCe)=>{"use strict";var FCe=hi(),vht=o((t,e,r)=>{let n=new FCe(t,r),i=new FCe(e,r);return n.compare(i)||n.compareBuild(i)},"compareBuild");MCe.exports=vht});var qCe=m((Lbr,UCe)=>{"use strict";var Nht=F2(),_ht=o((t,e)=>t.sort((r,n)=>Nht(r,n,e)),"sort");UCe.exports=_ht});var HCe=m((Mbr,GCe)=>{"use strict";var Tht=F2(),Rht=o((t,e)=>t.sort((r,n)=>Tht(n,r,e)),"rsort");GCe.exports=Rht});var tI=m((qbr,VCe)=>{"use strict";var Dht=la(),Qht=o((t,e,r)=>Dht(t,e,r)>0,"gt");VCe.exports=Qht});var M2=m((Hbr,zCe)=>{"use strict";var Pht=la(),kht=o((t,e,r)=>Pht(t,e,r)<0,"lt");zCe.exports=kht});var D$=m((zbr,$Ce)=>{"use strict";var Oht=la(),Lht=o((t,e,r)=>Oht(t,e,r)===0,"eq");$Ce.exports=Lht});var Q$=m((jbr,jCe)=>{"use strict";var Fht=la(),Mht=o((t,e,r)=>Fht(t,e,r)!==0,"neq");jCe.exports=Mht});var U2=m((Jbr,WCe)=>{"use strict";var Uht=la(),qht=o((t,e,r)=>Uht(t,e,r)>=0,"gte");WCe.exports=qht});var q2=m((Kbr,JCe)=>{"use strict";var Ght=la(),Hht=o((t,e,r)=>Ght(t,e,r)<=0,"lte");JCe.exports=Hht});var P$=m((Zbr,YCe)=>{"use strict";var Vht=D$(),zht=Q$(),$ht=tI(),jht=U2(),Wht=M2(),Jht=q2(),Yht=o((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return Vht(t,r,n);case"!=":return zht(t,r,n);case">":return $ht(t,r,n);case">=":return jht(t,r,n);case"<":return Wht(t,r,n);case"<=":return Jht(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");YCe.exports=Yht});var XCe=m((t0r,KCe)=>{"use strict";var Kht=hi(),Xht=Tf(),{safeRe:G2,t:H2}=wy(),Zht=o((t,e)=>{if(t instanceof Kht)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?G2[H2.COERCEFULL]:G2[H2.COERCE]);else{let l=e.includePrerelease?G2[H2.COERCERTLFULL]:G2[H2.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return Xht(`${n}.${i}.${s}${a}${c}`,e)},"coerce");KCe.exports=Zht});var ebe=m((n0r,ZCe)=>{"use strict";var ept=Tf(),tpt=by(),rpt=hi(),npt=o((t,e,r)=>{if(!tpt.RELEASE_TYPES.includes(e))return null;let n=ipt(t,r);return n&&spt(n,e)},"truncate"),ipt=o((t,e)=>{let r=t instanceof rpt?t.version:t;return ept(r,e)},"cloneInputVersion"),spt=o((t,e)=>{if(opt(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"),opt=o(t=>t.startsWith("pre"),"isPrerelease");ZCe.exports=npt});var rbe=m((s0r,tbe)=>{"use strict";var k$=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};tbe.exports=k$});var ua=m((a0r,obe)=>{"use strict";var apt=/\s+/g,O$=class t{static{o(this,"Range")}constructor(e,r){if(r=lpt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof L$)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(apt," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!ibe(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&ypt(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(gpt,"");let n=((this.options.includePrerelease&&Apt)|(this.options.loose&&mpt))+":"+e,i=nbe.get(n);if(i)return i;let s=this.options.loose,a=s?ts[pi.HYPHENRANGELOOSE]:ts[pi.HYPHENRANGE];e=e.replace(a,_pt(this.options.includePrerelease)),or("hyphen replace",e),e=e.replace(ts[pi.COMPARATORTRIM],fpt),or("comparator trim",e),e=e.replace(ts[pi.TILDETRIM],hpt),or("tilde trim",e),e=e.replace(ts[pi.CARETTRIM],ppt),or("caret trim",e);let c=e.split(" ").map(f=>Ept(f,this.options)).join(" ").split(/\s+/).map(f=>Npt(f,this.options));s&&(c=c.filter(f=>(or("loose invalid filter",f,this.options),!!f.match(ts[pi.COMPARATORLOOSE])))),or("range list",c);let l=new Map,u=c.map(f=>new L$(f,this.options));for(let f of u){if(ibe(f))return[f];l.set(f.value,f)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return nbe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>sbe(n,r)&&e.set.some(i=>sbe(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new upt(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Tpt(this.set[r],e,this.options))return!0;return!1}};obe.exports=O$;var cpt=rbe(),nbe=new cpt,lpt=Q2(),L$=rI(),or=eI(),upt=hi(),{safeRe:ts,src:dpt,t:pi,comparatorTrimReplace:fpt,tildeTrimReplace:hpt,caretTrimReplace:ppt}=wy(),{FLAG_INCLUDE_PRERELEASE:Apt,FLAG_LOOSE:mpt}=by(),gpt=new RegExp(dpt[pi.BUILD],"g"),ibe=o(t=>t.value==="<0.0.0-0","isNullSet"),ypt=o(t=>t.value==="","isAny"),sbe=o((t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},"isSatisfiable"),Ept=o((t,e)=>(t=t.replace(ts[pi.BUILD],""),or("comp",t,e),t=Ipt(t,e),or("caret",t),t=bpt(t,e),or("tildes",t),t=Bpt(t,e),or("xrange",t),t=vpt(t,e),or("stars",t),t),"parseComparator"),Qn=o(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),Cpt=o((t,e,r)=>Qn(t)&&!Qn(e)||Qn(e)&&r&&!Qn(r),"invalidXRangeOrder"),bpt=o((t,e)=>t.trim().split(/\s+/).map(r=>wpt(r,e)).join(" "),"replaceTildes"),wpt=o((t,e)=>{let r=e.loose?ts[pi.TILDELOOSE]:ts[pi.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{or("tilde",t,i,s,a,c,l);let u;return Qn(s)?u="":Qn(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Qn(c)?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:l?(or("replaceTilde pr",l),u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`):u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`,or("tilde return",u),u})},"replaceTilde"),Ipt=o((t,e)=>t.trim().split(/\s+/).map(r=>Spt(r,e)).join(" "),"replaceCarets"),Spt=o((t,e)=>{or("caret",t,e);let r=e.loose?ts[pi.CARETLOOSE]:ts[pi.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{or("caret",t,i,s,a,c,l);let u;return Qn(s)?u="":Qn(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Qn(c)?s==="0"?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:l?(or("replaceCaret pr",l),s==="0"?a==="0"?u=`>=${s}.${a}.${c}-${l} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c}-${l} <${+s+1}.0.0-0`):(or("no pr"),s==="0"?a==="0"?u=`>=${s}.${a}.${c} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),or("caret return",u),u})},"replaceCaret"),Bpt=o((t,e)=>(or("replaceXRanges",t,e),t.split(/\s+/).map(r=>xpt(r,e)).join(" ")),"replaceXRanges"),xpt=o((t,e)=>{t=t.trim();let r=e.loose?ts[pi.XRANGELOOSE]:ts[pi.XRANGE];return t.replace(r,(n,i,s,a,c,l)=>{if(or("xRange",t,n,i,s,a,c,l),Cpt(s,a,c))return t;let u=Qn(s),d=u||Qn(a),f=d||Qn(c),h=f;return i==="="&&h&&(i=""),l=e.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(d&&(a=0),c=0,i===">"?(i=">=",d?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):i==="<="&&(i="<",d?s=+s+1:a=+a+1),i==="<"&&(l="-0"),n=`${i+s}.${a}.${c}${l}`):d?n=`>=${s}.0.0${l} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${l} <${s}.${+a+1}.0-0`),or("xRange return",n),n})},"replaceXRange"),vpt=o((t,e)=>(or("replaceStars",t,e),t.trim().replace(ts[pi.STAR],"")),"replaceStars"),Npt=o((t,e)=>(or("replaceGTE0",t,e),t.trim().replace(ts[e.includePrerelease?pi.GTE0PRE:pi.GTE0],"")),"replaceGTE0"),_pt=o(t=>(e,r,n,i,s,a,c,l,u,d,f,h)=>(Qn(n)?r="":Qn(i)?r=`>=${n}.0.0${t?"-0":""}`:Qn(s)?r=`>=${n}.${i}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Qn(u)?l="":Qn(d)?l=`<${+u+1}.0.0-0`:Qn(f)?l=`<${u}.${+d+1}.0-0`:h?l=`<=${u}.${d}.${f}-${h}`:t?l=`<${u}.${d}.${+f+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),Tpt=o((t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(or(t[n].semver),t[n].semver!==L$.ANY&&t[n].semver.prerelease.length>0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0},"testSet")});var rI=m((l0r,fbe)=>{"use strict";var nI=Symbol("SemVer ANY"),U$=class t{static{o(this,"Comparator")}static get ANY(){return nI}constructor(e,r){if(r=abe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),M$("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===nI?this.value="":this.value=this.operator+this.semver.version,M$("comp",this)}parse(e){let r=this.options.loose?cbe[lbe.COMPARATORLOOSE]:cbe[lbe.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 ube(n[2],this.options.loose):this.semver=nI}toString(){return this.value}test(e){if(M$("Comparator.test",e,this.options.loose),this.semver===nI||e===nI)return!0;if(typeof e=="string")try{e=new ube(e,this.options)}catch{return!1}return F$(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 dbe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new dbe(this.value,r).test(e.semver):(r=abe(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("=")||F$(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||F$(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};fbe.exports=U$;var abe=Q2(),{safeRe:cbe,t:lbe}=wy(),F$=P$(),M$=eI(),ube=hi(),dbe=ua()});var iI=m((d0r,hbe)=>{"use strict";var Rpt=ua(),Dpt=o((t,e,r)=>{try{e=new Rpt(e,r)}catch{return!1}return e.test(t)},"satisfies");hbe.exports=Dpt});var Abe=m((h0r,pbe)=>{"use strict";var Qpt=ua(),Ppt=o((t,e)=>new Qpt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");pbe.exports=Ppt});var gbe=m((A0r,mbe)=>{"use strict";var kpt=hi(),Opt=ua(),Lpt=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new Opt(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new kpt(n,r))}),n},"maxSatisfying");mbe.exports=Lpt});var Ebe=m((g0r,ybe)=>{"use strict";var Fpt=hi(),Mpt=ua(),Upt=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new Mpt(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new Fpt(n,r))}),n},"minSatisfying");ybe.exports=Upt});var wbe=m((E0r,bbe)=>{"use strict";var q$=hi(),qpt=ua(),Cbe=tI(),Gpt=o((t,e)=>{t=new qpt(t,e);let r=new q$("0.0.0");if(t.test(r)||(r=new q$("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let i=t.set[n],s=null;i.forEach(a=>{let c=new q$(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||Cbe(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||Cbe(r,s))&&(r=s)}return r&&t.test(r)?r:null},"minVersion");bbe.exports=Gpt});var Sbe=m((b0r,Ibe)=>{"use strict";var Hpt=ua(),Vpt=o((t,e)=>{try{return new Hpt(t,e).range||"*"}catch{return null}},"validRange");Ibe.exports=Vpt});var V2=m((I0r,Nbe)=>{"use strict";var zpt=hi(),vbe=rI(),{ANY:$pt}=vbe,jpt=ua(),Wpt=iI(),Bbe=tI(),xbe=M2(),Jpt=q2(),Ypt=U2(),Kpt=o((t,e,r,n)=>{t=new zpt(t,n),e=new jpt(e,n);let i,s,a,c,l;switch(r){case">":i=Bbe,s=Jpt,a=xbe,c=">",l=">=";break;case"<":i=xbe,s=Ypt,a=Bbe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Wpt(t,e,n))return!1;for(let u=0;u<e.set.length;++u){let d=e.set[u],f=null,h=null;if(d.forEach(p=>{p.semver===$pt&&(p=new vbe(">=0.0.0")),f=f||p,h=h||p,i(p.semver,f.semver,n)?f=p:a(p.semver,h.semver,n)&&(h=p)}),f.operator===c||f.operator===l||(!h.operator||h.operator===c)&&s(t,h.semver))return!1;if(h.operator===l&&a(t,h.semver))return!1}return!0},"outside");Nbe.exports=Kpt});var Tbe=m((B0r,_be)=>{"use strict";var Xpt=V2(),Zpt=o((t,e,r)=>Xpt(t,e,">",r),"gtr");_be.exports=Zpt});var Dbe=m((v0r,Rbe)=>{"use strict";var eAt=V2(),tAt=o((t,e,r)=>eAt(t,e,"<",r),"ltr");Rbe.exports=tAt});var kbe=m((_0r,Pbe)=>{"use strict";var Qbe=ua(),rAt=o((t,e,r)=>(t=new Qbe(t,r),e=new Qbe(e,r),t.intersects(e,r)),"intersects");Pbe.exports=rAt});var Lbe=m((R0r,Obe)=>{"use strict";var nAt=iI(),iAt=la();Obe.exports=(t,e,r)=>{let n=[],i=null,s=null,a=t.sort((d,f)=>iAt(d,f,r));for(let d of a)nAt(d,e,r)?(s=d,i||(i=d)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let c=[];for(let[d,f]of n)d===f?c.push(d):!f&&d===a[0]?c.push("*"):f?d===a[0]?c.push(`<=${f}`):c.push(`${d} - ${f}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e}});var Hbe=m((D0r,Gbe)=>{"use strict";var Fbe=ua(),V$=rI(),{ANY:G$}=V$,H$=iI(),z$=la(),sAt=o((t,e,r={})=>{if(t===e)return!0;t=new Fbe(t,r),e=new Fbe(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let a=aAt(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),oAt=[new V$(">=0.0.0-0")],Mbe=[new V$(">=0.0.0")],aAt=o((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===G$){if(e.length===1&&e[0].semver===G$)return!0;r.includePrerelease?t=oAt:t=Mbe}if(e.length===1&&e[0].semver===G$){if(r.includePrerelease)return!0;e=Mbe}let n=new Set,i,s;for(let p of t)p.operator===">"||p.operator===">="?i=Ube(i,p,r):p.operator==="<"||p.operator==="<="?s=qbe(s,p,r):n.add(p.semver);if(n.size>1)return null;let a;if(i&&s){if(a=z$(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!H$(p,String(i),r)||s&&!H$(p,String(s),r))return null;for(let g of e)if(!H$(p,String(g),r))return!1;return!0}let c,l,u,d,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of e){if(d=d||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(c=Ube(i,p,r),c===p&&c!==i)return!1}else if(i.operator===">="&&!p.test(i.semver))return!1}if(s){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(l=qbe(s,p,r),l===p&&l!==s)return!1}else if(s.operator==="<="&&!p.test(s.semver))return!1}if(!p.operator&&(s||i)&&a!==0)return!1}return!(i&&u&&!s&&a!==0||s&&d&&!i&&a!==0||h||f)},"simpleSubset"),Ube=o((t,e,r)=>{if(!t)return e;let n=z$(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),qbe=o((t,e,r)=>{if(!t)return e;let n=z$(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Gbe.exports=sAt});var uc=m((P0r,$be)=>{"use strict";var $$=wy(),Vbe=by(),cAt=hi(),zbe=_$(),lAt=Tf(),uAt=ACe(),dAt=gCe(),fAt=CCe(),hAt=ICe(),pAt=BCe(),AAt=vCe(),mAt=_Ce(),gAt=RCe(),yAt=la(),EAt=kCe(),CAt=LCe(),bAt=F2(),wAt=qCe(),IAt=HCe(),SAt=tI(),BAt=M2(),xAt=D$(),vAt=Q$(),NAt=U2(),_At=q2(),TAt=P$(),RAt=XCe(),DAt=ebe(),QAt=rI(),PAt=ua(),kAt=iI(),OAt=Abe(),LAt=gbe(),FAt=Ebe(),MAt=wbe(),UAt=Sbe(),qAt=V2(),GAt=Tbe(),HAt=Dbe(),VAt=kbe(),zAt=Lbe(),$At=Hbe();$be.exports={parse:lAt,valid:uAt,clean:dAt,inc:fAt,diff:hAt,major:pAt,minor:AAt,patch:mAt,prerelease:gAt,compare:yAt,rcompare:EAt,compareLoose:CAt,compareBuild:bAt,sort:wAt,rsort:IAt,gt:SAt,lt:BAt,eq:xAt,neq:vAt,gte:NAt,lte:_At,cmp:TAt,coerce:RAt,truncate:DAt,Comparator:QAt,Range:PAt,satisfies:kAt,toComparators:OAt,maxSatisfying:LAt,minSatisfying:FAt,minVersion:MAt,validRange:UAt,outside:qAt,gtr:GAt,ltr:HAt,intersects:VAt,simplifyRange:zAt,subset:$At,SemVer:cAt,re:$$.re,src:$$.src,tokens:$$.t,SEMVER_SPEC_VERSION:Vbe.SEMVER_SPEC_VERSION,RELEASE_TYPES:Vbe.RELEASE_TYPES,compareIdentifiers:zbe.compareIdentifiers,rcompareIdentifiers:zbe.rcompareIdentifiers}});var Wbe=m((L0r,jbe)=>{function da(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}o(da,"RetryOperation");jbe.exports=da;da.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};da.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};da.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};da.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};da.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};da.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};da.prototype.start=da.prototype.try;da.prototype.errors=function(){return this._errors};da.prototype.attempts=function(){return this._attempts};da.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,a=(t[s]||0)+1;t[s]=a,a>=r&&(e=i,r=a)}return e}});var Jbe=m(jp=>{var jAt=Wbe();jp.operation=function(t){var e=jp.timeouts(t);return new jAt(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};jp.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,a){return s-a}),n};jp.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};jp.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],a=t[s];t[s]=o(function(l){var u=jp.operation(e),d=Array.prototype.slice.call(arguments,1),f=d.pop();d.push(function(h){u.retry(h)||(h&&(arguments[0]=u.mainError()),f.apply(this,arguments))}),u.attempt(function(){l.apply(t,d)})},"retryWrapper").bind(t,a),t[s].options=e}}});var Kbe=m((q0r,Ybe)=>{Ybe.exports=Jbe()});var Zbe=m((G0r,Xbe)=>{var WAt=Kbe();function JAt(t,e){function r(n,i){var s=e||{},a;"randomize"in s||(s.randomize=!0),a=WAt.operation(s);function c(d){i(d||new Error("Aborted"))}o(c,"bail");function l(d,f){if(d.bail){c(d);return}a.retry(d)?s.onRetry&&s.onRetry(d,f):i(a.mainError())}o(l,"onError");function u(d){var f;try{f=t(c,d)}catch(h){l(h,d);return}Promise.resolve(f).then(n).catch(o(function(p){l(p,d)},"catchIt"))}o(u,"runAttempt"),a.attempt(u)}return o(r,"run"),new Promise(r)}o(JAt,"retry");Xbe.exports=JAt});var g0e=m((V0r,Zu)=>{var $t=require("fs"),j2=require("os"),Pn=require("path"),e0e=require("crypto"),vl={fs:$t.constants,os:j2.constants},t0e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s0e=/XXXXXX/,YAt=3,o0e=(vl.O_CREAT||vl.fs.O_CREAT)|(vl.O_EXCL||vl.fs.O_EXCL)|(vl.O_RDWR||vl.fs.O_RDWR),KAt=j2.platform()==="win32",XAt=vl.EBADF||vl.os.errno.EBADF,ZAt=vl.ENOENT||vl.os.errno.ENOENT,a0e=448,c0e=384,emt="exit",Iy=[],l0e=$t.rmdirSync.bind($t),u0e=!1;function tmt(t,e){return $t.rm(t,{recursive:!0},e)}o(tmt,"rimraf");function d0e(t){return $t.rmSync(t,{recursive:!0})}o(d0e,"FN_RIMRAF_SYNC");function Y$(t,e){let r=Sy(t,e),n=r[0],i=r[1];dmt(n,function(s,a){if(s)return i(s);let c=a.tries;o((function l(){try{let u=h0e(a);$t.stat(u,function(d){if(!d)return c-- >0?l():i(new Error("Could not get a unique tmp filename, max tries reached "+u));i(null,u)})}catch(u){i(u)}}),"_getUniqueName")()})}o(Y$,"tmpName");function K$(t){let e=Sy(t),r=e[0],n=fmt(r),i=n.tries;do{let s=h0e(n);try{$t.statSync(s)}catch{return s}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}o(K$,"tmpNameSync");function rmt(t,e){let r=Sy(t,e),n=r[0],i=r[1];Y$(n,o(function(a,c){if(a)return i(a);$t.open(c,o0e,n.mode||c0e,o(function(u,d){if(u)return i(u);if(n.discardDescriptor)return $t.close(d,o(function(h){return i(h,c,void 0,W$(c,-1,n,!1))},"_discardCallback"));{let f=n.discardDescriptor||n.detachDescriptor;i(null,c,d,W$(c,f?-1:d,n,!1))}},"_fileCreated"))},"_tmpNameCreated"))}o(rmt,"file");function nmt(t){let e=Sy(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,i=K$(r),s=$t.openSync(i,o0e,r.mode||c0e);return r.discardDescriptor&&($t.closeSync(s),s=void 0),{name:i,fd:s,removeCallback:W$(i,n?-1:s,r,!0)}}o(nmt,"fileSync");function imt(t,e){let r=Sy(t,e),n=r[0],i=r[1];Y$(n,o(function(a,c){if(a)return i(a);$t.mkdir(c,n.mode||a0e,o(function(u){if(u)return i(u);i(null,c,f0e(c,n,!1))},"_dirCreated"))},"_tmpNameCreated"))}o(imt,"dir");function smt(t){let e=Sy(t),r=e[0],n=K$(r);return $t.mkdirSync(n,r.mode||a0e),{name:n,removeCallback:f0e(n,r,!0)}}o(smt,"dirSync");function omt(t,e){let r=o(function(n){if(n&&!J$(n))return e(n);e()},"_handler");0<=t[0]?$t.close(t[0],function(){$t.unlink(t[1],r)}):$t.unlink(t[1],r)}o(omt,"_removeFileAsync");function amt(t){let e=null;try{0<=t[0]&&$t.closeSync(t[0])}catch(r){if(!hmt(r)&&!J$(r))throw r}finally{try{$t.unlinkSync(t[1])}catch(r){J$(r)||(e=r)}}if(e!==null)throw e}o(amt,"_removeFileSync");function W$(t,e,r,n){let i=$2(amt,[e,t],n),s=$2(omt,[e,t],n,i);return r.keep||Iy.unshift(i),n?i:s}o(W$,"_prepareTmpFileRemoveCallback");function f0e(t,e,r){let n=e.unsafeCleanup?tmt:$t.rmdir.bind($t),i=e.unsafeCleanup?d0e:l0e,s=$2(i,t,r),a=$2(n,t,r,s);return e.keep||Iy.unshift(s),r?s:a}o(f0e,"_prepareTmpDirRemoveCallback");function $2(t,e,r,n){let i=!1;return o(function s(a){if(!i){let c=n||s,l=Iy.indexOf(c);return l>=0&&Iy.splice(l,1),i=!0,r||t===l0e||t===d0e?t(e):t(e,a||function(){})}},"_cleanupCallback")}o($2,"_prepareRemoveCallback");function cmt(){if(u0e)for(;Iy.length;)try{Iy[0]()}catch{}}o(cmt,"_garbageCollector");function r0e(t){let e=[],r=null;try{r=e0e.randomBytes(t)}catch{r=e0e.pseudoRandomBytes(t)}for(let n=0;n<t;n++)e.push(t0e[r[n]%t0e.length]);return e.join("")}o(r0e,"_randomChars");function Os(t){return typeof t>"u"}o(Os,"_isUndefined");function Sy(t,e){if(typeof t=="function")return[{},t];if(Os(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}o(Sy,"_parseArguments");function lmt(t,e,r){let n=Pn.isAbsolute(t)?t:Pn.join(e,t);$t.stat(n,function(i){i?$t.realpath(Pn.dirname(n),function(s,a){if(s)return r(s);r(null,Pn.join(a,Pn.basename(n)))}):$t.realpath(n,r)})}o(lmt,"_resolvePath");function umt(t,e){let r=Pn.isAbsolute(t)?t:Pn.join(e,t);try{return $t.statSync(r),$t.realpathSync(r)}catch{let i=$t.realpathSync(Pn.dirname(r));return Pn.join(i,Pn.basename(r))}}o(umt,"_resolvePathSync");function h0e(t){let e=t.tmpdir;if(!Os(t.name))return Pn.join(e,t.dir,t.name);if(!Os(t.template))return Pn.join(e,t.dir,t.template).replace(s0e,r0e(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",r0e(12),t.postfix?"-"+t.postfix:""].join("");return Pn.join(e,t.dir,r)}o(h0e,"_generateTmpName");function j$(t,e){if(typeof e!="string")throw new Error(`${t} option must be a string, got "${typeof e}".`);if(e.includes(".."))throw new Error("Relative value not allowed");return e}o(j$,"_assertPath");function p0e(t){if(!Os(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(!Os(t.template)){if(typeof t.template!="string")throw new Error(`template option must be a string, got "${typeof t.template}".`);if(!t.template.match(s0e))throw new Error(`Invalid template, found "${t.template}".`)}if(!Os(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=Os(t.name)?t.tries||YAt:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.prefix=Os(t.prefix)?"":j$("prefix",t.prefix),t.postfix=Os(t.postfix)?"":j$("postfix",t.postfix),t.template=Os(t.template)?void 0:j$("template",t.template)}o(p0e,"_assertOptionsBase");function n0e(t,e,r,n){if(Os(e))return n(null);lmt(e,r,function(i,s){if(i)return n(i);let a=Pn.relative(r,s);if(a.startsWith("..")||Pn.isAbsolute(a))return n(new Error(`${t} option must be relative to "${r}", found "${a}".`));n(null,a)})}o(n0e,"_getRelativePath");function i0e(t,e,r){if(Os(e))return;let n=umt(e,r),i=Pn.relative(r,n);if(i.startsWith("..")||Pn.isAbsolute(i))throw new Error(`${t} option must be relative to "${r}", found "${i}".`);return i}o(i0e,"_getRelativePathSync");function dmt(t,e){Amt(t,function(r,n){if(r)return e(r);t.tmpdir=n;try{p0e(t,n)}catch(i){return e(i)}n0e("dir",t.dir,n,function(i,s){if(i)return e(i);t.dir=Os(s)?"":s,n0e("template",t.template,n,function(a,c){if(a)return e(a);t.template=c,e(null,t)})})})}o(dmt,"_assertAndSanitizeOptions");function fmt(t){let e=t.tmpdir=m0e(t);p0e(t,e);let r=i0e("dir",t.dir,e);return t.dir=Os(r)?"":r,t.template=i0e("template",t.template,e),t}o(fmt,"_assertAndSanitizeOptionsSync");function hmt(t){return A0e(t,-XAt,"EBADF")}o(hmt,"_isEBADF");function J$(t){return A0e(t,-ZAt,"ENOENT")}o(J$,"_isENOENT");function A0e(t,e,r){return KAt?t.code===r:t.code===r&&t.errno===e}o(A0e,"_isExpectedError");function pmt(){u0e=!0}o(pmt,"setGracefulCleanup");function Amt(t,e){return $t.realpath(t&&t.tmpdir||j2.tmpdir(),e)}o(Amt,"_getTmpDir");function m0e(t){return $t.realpathSync(t&&t.tmpdir||j2.tmpdir())}o(m0e,"_getTmpDirSync");process.addListener(emt,cmt);Object.defineProperty(Zu.exports,"tmpdir",{enumerable:!0,configurable:!1,get:o(function(){return m0e()},"get")});Zu.exports.dir=imt;Zu.exports.dirSync=smt;Zu.exports.file=rmt;Zu.exports.fileSync=nmt;Zu.exports.tmpName=Y$;Zu.exports.tmpNameSync=K$;Zu.exports.setGracefulCleanup=pmt});var rs=m(Co=>{"use strict";Co.__esModule=!0;Co.extend=b0e;Co.indexOf=Cmt;Co.escapeExpression=bmt;Co.isEmpty=wmt;Co.createFrame=Imt;Co.blockParams=Smt;Co.appendContextPath=Bmt;var mmt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},gmt=/[&<>"'`=]/g,ymt=/[&<>"'`=]/;function Emt(t){return mmt[t]}o(Emt,"escapeChar");function b0e(t){for(var e=1;e<arguments.length;e++)for(var r in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],r)&&(t[r]=arguments[e][r]);return t}o(b0e,"extend");var ej=Object.prototype.toString;Co.toString=ej;var Z$=o(function(e){return typeof e=="function"},"isFunction");Z$(/x/)&&(Co.isFunction=Z$=o(function(t){return typeof t=="function"&&ej.call(t)==="[object Function]"},"isFunction"));Co.isFunction=Z$;var w0e=Array.isArray||function(t){return t&&typeof t=="object"?ej.call(t)==="[object Array]":!1};Co.isArray=w0e;function Cmt(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}o(Cmt,"indexOf");function bmt(t){if(typeof t!="string"){if(t&&t.toHTML)return t.toHTML();if(t==null)return"";if(!t)return t+"";t=""+t}return ymt.test(t)?t.replace(gmt,Emt):t}o(bmt,"escapeExpression");function wmt(t){return!t&&t!==0?!0:!!(w0e(t)&&t.length===0)}o(wmt,"isEmpty");function Imt(t){var e=b0e({},t);return e._parent=t,e}o(Imt,"createFrame");function Smt(t,e){return t.path=e,t}o(Smt,"blockParams");function Bmt(t,e){return(t?t+".":"")+e}o(Bmt,"appendContextPath")});var bo=m((W2,I0e)=>{"use strict";W2.__esModule=!0;var tj=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function rj(t,e){var r=e&&e.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,t+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,t),l=0;l<tj.length;l++)this[tj[l]]=c[tj[l]];Error.captureStackTrace&&Error.captureStackTrace(this,rj);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(rj,"Exception");rj.prototype=new Error;W2.default=rj;I0e.exports=W2.default});var B0e=m((J2,S0e)=>{"use strict";J2.__esModule=!0;var nj=rs();J2.default=function(t){t.registerHelper("blockHelperMissing",function(e,r){var n=r.inverse,i=r.fn;if(e===!0)return i(this);if(e===!1||e==null)return n(this);if(nj.isArray(e))return e.length>0?(r.ids&&(r.ids=[r.name]),t.helpers.each(e,r)):n(this);if(r.data&&r.ids){var s=nj.createFrame(r.data);s.contextPath=nj.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(e,r)})};S0e.exports=J2.default});var v0e=m((Y2,x0e)=>{"use strict";Y2.__esModule=!0;function xmt(t){return t&&t.__esModule?t:{default:t}}o(xmt,"_interopRequireDefault");var sI=rs(),vmt=bo(),Nmt=xmt(vmt);Y2.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new Nmt.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,l=void 0;r.data&&r.ids&&(l=sI.appendContextPath(r.data.contextPath,r.ids[0])+"."),sI.isFunction(e)&&(e=e.call(this)),r.data&&(c=sI.createFrame(r.data));function u(g,A,E){c&&(c.key=g,c.index=A,c.first=A===0,c.last=!!E,l&&(c.contextPath=l+g)),a=a+n(e[g],{data:c,blockParams:sI.blockParams([e[g],g],[l+g,null])})}if(o(u,"execIteration"),e&&typeof e=="object")if(sI.isArray(e))for(var d=e.length;s<d;s++)s in e&&u(s,s,s===e.length-1);else if(typeof Symbol=="function"&&e[Symbol.iterator]){for(var f=[],h=e[Symbol.iterator](),p=h.next();!p.done;p=h.next())f.push(p.value);e=f;for(var d=e.length;s<d;s++)u(s,s,s===e.length-1)}else(function(){var g=void 0;Object.keys(e).forEach(function(A){g!==void 0&&u(g,s-1),g=A,s++}),g!==void 0&&u(g,s-1,!0)})();return s===0&&(a=i(this)),a})};x0e.exports=Y2.default});var _0e=m((K2,N0e)=>{"use strict";K2.__esModule=!0;function _mt(t){return t&&t.__esModule?t:{default:t}}o(_mt,"_interopRequireDefault");var Tmt=bo(),Rmt=_mt(Tmt);K2.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Rmt.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};N0e.exports=K2.default});var Q0e=m((X2,D0e)=>{"use strict";X2.__esModule=!0;function Dmt(t){return t&&t.__esModule?t:{default:t}}o(Dmt,"_interopRequireDefault");var T0e=rs(),Qmt=bo(),R0e=Dmt(Qmt);X2.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new R0e.default("#if requires exactly one argument");return T0e.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||T0e.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,r){if(arguments.length!=2)throw new R0e.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};D0e.exports=X2.default});var k0e=m((Z2,P0e)=>{"use strict";Z2.__esModule=!0;Z2.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)e.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),e[0]=i,t.log.apply(t,e)})};P0e.exports=Z2.default});var L0e=m((eD,O0e)=>{"use strict";eD.__esModule=!0;eD.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};O0e.exports=eD.default});var M0e=m((tD,F0e)=>{"use strict";tD.__esModule=!0;function Pmt(t){return t&&t.__esModule?t:{default:t}}o(Pmt,"_interopRequireDefault");var oI=rs(),kmt=bo(),Omt=Pmt(kmt);tD.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new Omt.default("#with requires exactly one argument");oI.isFunction(e)&&(e=e.call(this));var n=r.fn;if(oI.isEmpty(e))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=oI.createFrame(r.data),i.contextPath=oI.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:i,blockParams:oI.blockParams([e],[i&&i.contextPath])})})};F0e.exports=tD.default});var ij=m(rD=>{"use strict";rD.__esModule=!0;rD.registerDefaultHelpers=Kmt;rD.moveHelperToHooks=Xmt;function Wp(t){return t&&t.__esModule?t:{default:t}}o(Wp,"_interopRequireDefault");var Lmt=B0e(),Fmt=Wp(Lmt),Mmt=v0e(),Umt=Wp(Mmt),qmt=_0e(),Gmt=Wp(qmt),Hmt=Q0e(),Vmt=Wp(Hmt),zmt=k0e(),$mt=Wp(zmt),jmt=L0e(),Wmt=Wp(jmt),Jmt=M0e(),Ymt=Wp(Jmt);function Kmt(t){Fmt.default(t),Umt.default(t),Gmt.default(t),Vmt.default(t),$mt.default(t),Wmt.default(t),Ymt.default(t)}o(Kmt,"registerDefaultHelpers");function Xmt(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}o(Xmt,"moveHelperToHooks")});var q0e=m((nD,U0e)=>{"use strict";nD.__esModule=!0;var Zmt=rs();nD.default=function(t){t.registerDecorator("inline",function(e,r,n,i){var s=e;return r.partials||(r.partials={},s=o(function(a,c){var l=n.partials;n.partials=Zmt.extend({},l,r.partials);var u=e(a,c);return n.partials=l,u},"ret")),r.partials[i.args[0]]=i.fn,s})};U0e.exports=nD.default});var G0e=m(sj=>{"use strict";sj.__esModule=!0;sj.registerDefaultDecorators=ngt;function egt(t){return t&&t.__esModule?t:{default:t}}o(egt,"_interopRequireDefault");var tgt=q0e(),rgt=egt(tgt);function ngt(t){rgt.default(t)}o(ngt,"registerDefaultDecorators")});var oj=m((iD,H0e)=>{"use strict";iD.__esModule=!0;var igt=rs(),By={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(e){if(typeof e=="string"){var r=igt.indexOf(By.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},"lookupLevel"),log:o(function(e){if(e=By.lookupLevel(e),typeof console<"u"&&By.lookupLevel(By.level)<=e){var r=By.methodMap[e];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};iD.default=By;H0e.exports=iD.default});var aj=m(aI=>{"use strict";aI.__esModule=!0;aI.createProtoAccessControl=cgt;aI.resultIsAllowed=lgt;aI.resetLoggedProperties=dgt;function sgt(t){return t&&t.__esModule?t:{default:t}}o(sgt,"_interopRequireDefault");var V0e=rs(),ogt=oj(),agt=sgt(ogt),sD=Object.create(null);function cgt(t){var e=Object.create(null);e.__proto__=!1,V0e.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,V0e.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}o(cgt,"createProtoAccessControl");function lgt(t,e,r){return z0e(typeof t=="function"?e.methods:e.properties,r)}o(lgt,"resultIsAllowed");function z0e(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(ugt(e),!1)}o(z0e,"checkWhiteList");function ugt(t){sD[t]!==!0&&(sD[t]=!0,agt.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+`" because it is not an "own property" of its parent.
|
|
You can add a runtime option to disable the check or this warning:
|
|
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(ugt,"logUnexpecedPropertyAccessOnce");function dgt(){Object.keys(sD).forEach(function(t){delete sD[t]})}o(dgt,"resetLoggedProperties")});var aD=m(Nl=>{"use strict";Nl.__esModule=!0;Nl.HandlebarsEnvironment=uj;function $0e(t){return t&&t.__esModule?t:{default:t}}o($0e,"_interopRequireDefault");var Jp=rs(),fgt=bo(),cj=$0e(fgt),hgt=ij(),pgt=G0e(),Agt=oj(),oD=$0e(Agt),mgt=aj(),ggt="4.7.9";Nl.VERSION=ggt;var ygt=8;Nl.COMPILER_REVISION=ygt;var Egt=7;Nl.LAST_COMPATIBLE_COMPILER_REVISION=Egt;var Cgt={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"};Nl.REVISION_CHANGES=Cgt;var lj="[object Object]";function uj(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},hgt.registerDefaultHelpers(this),pgt.registerDefaultDecorators(this)}o(uj,"HandlebarsEnvironment");uj.prototype={constructor:uj,logger:oD.default,log:oD.default.log,registerHelper:o(function(e,r){if(Jp.toString.call(e)===lj){if(r)throw new cj.default("Arg not supported with multiple helpers");Jp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(Jp.toString.call(e)===lj)Jp.extend(this.partials,e);else{if(typeof r>"u")throw new cj.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(Jp.toString.call(e)===lj){if(r)throw new cj.default("Arg not supported with multiple decorators");Jp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){mgt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var bgt=oD.default.log;Nl.log=bgt;Nl.createFrame=Jp.createFrame;Nl.logger=oD.default});var W0e=m((cD,j0e)=>{"use strict";cD.__esModule=!0;function dj(t){this.string=t}o(dj,"SafeString");dj.prototype.toString=dj.prototype.toHTML=function(){return""+this.string};cD.default=dj;j0e.exports=cD.default});var J0e=m(fj=>{"use strict";fj.__esModule=!0;fj.wrapHelper=wgt;function wgt(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(wgt,"wrapHelper")});var twe=m(Rf=>{"use strict";Rf.__esModule=!0;Rf.checkRevision=Ngt;Rf.template=_gt;Rf.wrapProgram=lD;Rf.resolvePartial=Tgt;Rf.invokePartial=Rgt;Rf.noop=Z0e;function Igt(t){return t&&t.__esModule?t:{default:t}}o(Igt,"_interopRequireDefault");function Sgt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(Sgt,"_interopRequireWildcard");var Bgt=rs(),xy=Sgt(Bgt),xgt=bo(),ed=Igt(xgt),td=aD(),Y0e=ij(),vgt=J0e(),K0e=aj();function Ngt(t){var e=t&&t[0]||1,r=td.COMPILER_REVISION;if(!(e>=td.LAST_COMPATIBLE_COMPILER_REVISION&&e<=td.COMPILER_REVISION))if(e<td.LAST_COMPATIBLE_COMPILER_REVISION){var n=td.REVISION_CHANGES[r],i=td.REVISION_CHANGES[e];throw new ed.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new ed.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(Ngt,"checkRevision");function _gt(t,e){if(!e)throw new ed.default("No environment passed to template");if(!t||!t.main)throw new ed.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=xy.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var d=u.split(`
|
|
`),f=0,h=d.length;f<h&&!(!d[f]&&f+1===h);f++)d[f]=l.indent+d[f];u=d.join(`
|
|
`)}return u}else throw new ed.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,l,u){if(!c||!(l in c))throw new ed.default('"'+l+'" not defined in '+c,{loc:u});return i.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||K0e.resultIsAllowed(u,i.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var f=c[d]&&i.lookupProperty(c[d],l);if(f!=null)return f}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:xy.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,d,f){var h=this.programs[c],p=this.fn(c);return l||f||d||u?h=lD(this,c,p,l,u,d,f):h||(h=this.programs[c]=lD(this,c,p)),h},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=xy.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;s._setup(c),!c.partial&&t.useData&&(l=Dgt(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function f(h){return""+t.main(i,h,i.helpers,i.partials,l,d,u)}return o(f,"main"),f=ewe(t.main,f,i,c.depths||[],l,d),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c={};X0e(c,e.helpers,i),X0e(c,a.helpers,i),i.helpers=c,t.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=xy.extend({},e.decorators,a.decorators)),i.hooks={},i.protoAccessControl=K0e.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;Y0e.moveHelperToHooks(i,"helperMissing",l),Y0e.moveHelperToHooks(i,"blockHelperMissing",l)}},s._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new ed.default("must pass block params");if(t.useDepths&&!u)throw new ed.default("must pass parent depths");return lD(i,a,t[a],c,0,l,u)},s}o(_gt,"template");function lD(t,e,r,n,i,s,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,s&&[u.blockParams].concat(s),d)}return o(c,"prog"),c=ewe(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=i||0,c}o(lD,"wrapProgram");function Tgt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=uD(r.partials,t)):r.name==="@partial-block"?t=uD(r.data,"partial-block"):t=uD(r.partials,r.name),t}o(Tgt,"resolvePartial");function Rgt(t,e,r){var n=uD(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==Z0e&&(function(){r.data=td.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=td.createFrame(l.data),l.data["partial-block"]=n,s(c,l)},"partialBlockWrapper"),s.partials&&(r.partials=xy.extend({},r.partials,s.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new ed.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(Rgt,"invokePartial");function Z0e(){return""}o(Z0e,"noop");function uD(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(uD,"lookupOwnProperty");function Dgt(t,e){return(!e||!("root"in e))&&(e=e?td.createFrame(e):{},e.root=t),e}o(Dgt,"initData");function ewe(t,e,r,n,i,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],i,s,n),xy.extend(e,a)}return e}o(ewe,"executeDecorators");function X0e(t,e,r){e&&Object.keys(e).forEach(function(n){var i=e[n];t[n]=Qgt(i,r)})}o(X0e,"addHelpers");function Qgt(t,e){var r=e.lookupProperty;return vgt.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(Qgt,"passLookupPropertyOption")});var hj=m((dD,rwe)=>{"use strict";dD.__esModule=!0;dD.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}};rwe.exports=dD.default});var awe=m((fD,owe)=>{"use strict";fD.__esModule=!0;function Aj(t){return t&&t.__esModule?t:{default:t}}o(Aj,"_interopRequireDefault");function mj(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(mj,"_interopRequireWildcard");var Pgt=aD(),nwe=mj(Pgt),kgt=W0e(),Ogt=Aj(kgt),Lgt=bo(),Fgt=Aj(Lgt),Mgt=rs(),pj=mj(Mgt),Ugt=twe(),iwe=mj(Ugt),qgt=hj(),Ggt=Aj(qgt);function swe(){var t=new nwe.HandlebarsEnvironment;return pj.extend(t,nwe),t.SafeString=Ogt.default,t.Exception=Fgt.default,t.Utils=pj,t.escapeExpression=pj.escapeExpression,t.VM=iwe,t.template=function(e){return iwe.template(e,t)},t}o(swe,"create");var cI=swe();cI.create=swe;Ggt.default(cI);cI.default=cI;fD.default=cI;owe.exports=fD.default});var gj=m((hD,lwe)=>{"use strict";hD.__esModule=!0;var cwe={helpers:{helperExpression:o(function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},"helperExpression"),scopedId:o(function(e){return/^\.|this\b/.test(e.original)},"scopedId"),simpleId:o(function(e){return e.parts.length===1&&!cwe.helpers.scopedId(e)&&!e.depth},"simpleId")}};hD.default=cwe;lwe.exports=hD.default});var dwe=m((pD,uwe)=>{"use strict";pD.__esModule=!0;var Hgt=(function(){var t={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,l,u,d){var f=u.length-1;switch(l){case 1:return u[f-1];case 2:this.$=c.prepareProgram(u[f]);break;case 3:this.$=u[f];break;case 4:this.$=u[f];break;case 5:this.$=u[f];break;case 6:this.$=u[f];break;case 7:this.$=u[f];break;case 8:this.$=u[f];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(u[f]),strip:c.stripFlags(u[f],u[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:u[f],value:u[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(u[f-2],u[f-1],u[f],this._$);break;case 12:this.$={path:u[f-3],params:u[f-2],hash:u[f-1]};break;case 13:this.$=c.prepareBlock(u[f-3],u[f-2],u[f-1],u[f],!1,this._$);break;case 14:this.$=c.prepareBlock(u[f-3],u[f-2],u[f-1],u[f],!0,this._$);break;case 15:this.$={open:u[f-5],path:u[f-4],params:u[f-3],hash:u[f-2],blockParams:u[f-1],strip:c.stripFlags(u[f-5],u[f])};break;case 16:this.$={path:u[f-4],params:u[f-3],hash:u[f-2],blockParams:u[f-1],strip:c.stripFlags(u[f-5],u[f])};break;case 17:this.$={path:u[f-4],params:u[f-3],hash:u[f-2],blockParams:u[f-1],strip:c.stripFlags(u[f-5],u[f])};break;case 18:this.$={strip:c.stripFlags(u[f-1],u[f-1]),program:u[f]};break;case 19:var h=c.prepareBlock(u[f-2],u[f-1],u[f],u[f],!1,this._$),p=c.prepareProgram([h],u[f-1].loc);p.chained=!0,this.$={strip:u[f-2].strip,program:p,chain:!0};break;case 20:this.$=u[f];break;case 21:this.$={path:u[f-1],strip:c.stripFlags(u[f-2],u[f])};break;case 22:this.$=c.prepareMustache(u[f-3],u[f-2],u[f-1],u[f-4],c.stripFlags(u[f-4],u[f]),this._$);break;case 23:this.$=c.prepareMustache(u[f-3],u[f-2],u[f-1],u[f-4],c.stripFlags(u[f-4],u[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:u[f-3],params:u[f-2],hash:u[f-1],indent:"",strip:c.stripFlags(u[f-4],u[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(u[f-2],u[f-1],u[f],this._$);break;case 26:this.$={path:u[f-3],params:u[f-2],hash:u[f-1],strip:c.stripFlags(u[f-4],u[f])};break;case 27:this.$=u[f];break;case 28:this.$=u[f];break;case 29:this.$={type:"SubExpression",path:u[f-3],params:u[f-2],hash:u[f-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:u[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(u[f-2]),value:u[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(u[f-1]);break;case 33:this.$=u[f];break;case 34:this.$=u[f];break;case 35:this.$={type:"StringLiteral",value:u[f],original:u[f],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(u[f]),original:Number(u[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:u[f]==="true",original:u[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=u[f];break;case 41:this.$=u[f];break;case 42:this.$=c.preparePath(!0,u[f],this._$);break;case 43:this.$=c.preparePath(!1,u[f],this._$);break;case 44:u[f-2].push({part:c.id(u[f]),original:u[f],separator:u[f-1]}),this.$=u[f-2];break;case 45:this.$=[{part:c.id(u[f]),original:u[f]}];break;case 46:this.$=[];break;case 47:u[f-1].push(u[f]);break;case 48:this.$=[];break;case 49:u[f-1].push(u[f]);break;case 50:this.$=[];break;case 51:u[f-1].push(u[f]);break;case 58:this.$=[];break;case 59:u[f-1].push(u[f]);break;case 64:this.$=[];break;case 65:u[f-1].push(u[f]);break;case 70:this.$=[];break;case 71:u[f-1].push(u[f]);break;case 78:this.$=[];break;case 79:u[f-1].push(u[f]);break;case 82:this.$=[];break;case 83:u[f-1].push(u[f]);break;case 86:this.$=[];break;case 87:u[f-1].push(u[f]);break;case 90:this.$=[];break;case 91:u[f-1].push(u[f]);break;case 94:this.$=[];break;case 95:u[f-1].push(u[f]);break;case 98:this.$=[u[f]];break;case 99:u[f-1].push(u[f]);break;case 100:this.$=[u[f]];break;case 101:u[f-1].push(u[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],l=[],u=this.table,d="",f=0,h=0,p=0,g=2,A=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var E=this.lexer.yylloc;l.push(E);var y=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function C(K){a.length=a.length-2*K,c.length=c.length-K,l.length=l.length-K}o(C,"popStack");function w(){var K;return K=s.lexer.lex()||1,typeof K!="number"&&(K=s.symbols_[K]||K),K}o(w,"lex");for(var B,Q,U,v,j,D,H={},V,J,oe,ae;;){if(U=a[a.length-1],this.defaultActions[U]?v=this.defaultActions[U]:((B===null||typeof B>"u")&&(B=w()),v=u[U]&&u[U][B]),typeof v>"u"||!v.length||!v[0]){var Ce="";if(!p){ae=[];for(V in u[U])this.terminals_[V]&&V>2&&ae.push("'"+this.terminals_[V]+"'");this.lexer.showPosition?Ce="Parse error on line "+(f+1)+`:
|
|
`+this.lexer.showPosition()+`
|
|
Expecting `+ae.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ce="Parse error on line "+(f+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ce,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:ae})}}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+B);switch(v[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(v[1]),B=null,Q?(B=Q,Q=null):(h=this.lexer.yyleng,d=this.lexer.yytext,f=this.lexer.yylineno,E=this.lexer.yylloc,p>0&&p--);break;case 2:if(J=this.productions_[v[1]][1],H.$=c[c.length-J],H._$={first_line:l[l.length-(J||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(J||1)].first_column,last_column:l[l.length-1].last_column},y&&(H._$.range=[l[l.length-(J||1)].range[0],l[l.length-1].range[1]]),D=this.performAction.call(H,d,h,f,this.yy,v[1],c,l),typeof D<"u")return D;J&&(a=a.slice(0,-1*J*2),c=c.slice(0,-1*J),l=l.slice(0,-1*J)),a.push(this.productions_[v[1]][0]),c.push(H.$),l.push(H._$),oe=u[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),h=0;h<f.length&&(c=this._input.match(this.rules[f[h]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=h,!this.options.flex)));h++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,f[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,l){function u(f,h){return a.yytext=a.yytext.substring(f,a.yyleng-h+f)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();pD.default=Hgt;uwe.exports=pD.default});var yD=m((gD,pwe)=>{"use strict";gD.__esModule=!0;function Vgt(t){return t&&t.__esModule?t:{default:t}}o(Vgt,"_interopRequireDefault");var zgt=bo(),yj=Vgt(zgt);function AD(){this.parents=[]}o(AD,"Visitor");AD.prototype={constructor:AD,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!AD.prototype[n.type])throw new yj.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new yj.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new yj.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:mD,Decorator:mD,BlockStatement:fwe,DecoratorBlock:fwe,PartialStatement:hwe,PartialBlockStatement:o(function(e){hwe.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:mD,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(e){this.acceptArray(e.pairs)},"Hash"),HashPair:o(function(e){this.acceptRequired(e,"value")},"HashPair")};function mD(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}o(mD,"visitSubExpression");function fwe(t){mD.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}o(fwe,"visitBlock");function hwe(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}o(hwe,"visitPartial");gD.default=AD;pwe.exports=gD.default});var mwe=m((ED,Awe)=>{"use strict";ED.__esModule=!0;function $gt(t){return t&&t.__esModule?t:{default:t}}o($gt,"_interopRequireDefault");var jgt=yD(),Wgt=$gt(jgt);function _l(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}o(_l,"WhitespaceControl");_l.prototype=new Wgt.default;_l.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var l=Ej(n,i,r),u=Cj(n,i,r),d=c.openStandalone&&l,f=c.closeStandalone&&u,h=c.inlineStandalone&&l&&u;c.close&&Yp(n,i,!0),c.open&&Df(n,i,!0),e&&h&&(Yp(n,i),Df(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),e&&d&&(Yp((a.program||a.inverse).body),Df(n,i)),e&&f&&(Yp(n,i),Df((a.inverse||a.program).body))}}return t};_l.prototype.BlockStatement=_l.prototype.DecoratorBlock=_l.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,r=t.program&&t.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:Cj(e.body),closeStandalone:Ej((n||e).body)};if(t.openStrip.close&&Yp(e.body,null,!0),r){var a=t.inverseStrip;a.open&&Df(e.body,null,!0),a.close&&Yp(n.body,null,!0),t.closeStrip.open&&Df(i.body,null,!0),!this.options.ignoreStandalone&&Ej(e.body)&&Cj(n.body)&&(Df(e.body),Yp(n.body))}else t.closeStrip.open&&Df(e.body,null,!0);return s};_l.prototype.Decorator=_l.prototype.MustacheStatement=function(t){return t.strip};_l.prototype.PartialStatement=_l.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}};function Ej(t,e,r){e===void 0&&(e=t.length);var n=t[e-1],i=t[e-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}o(Ej,"isPrevWhitespace");function Cj(t,e,r){e===void 0&&(e=-1);var n=t[e+1],i=t[e+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o(Cj,"isNextWhitespace");function Yp(t,e,r){var n=t[e==null?0:e+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(Yp,"omitRight");function Df(t,e,r){var n=t[e==null?t.length-1:e-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}o(Df,"omitLeft");ED.default=_l;Awe.exports=ED.default});var gwe=m(fa=>{"use strict";fa.__esModule=!0;fa.SourceLocation=Kgt;fa.id=Xgt;fa.stripFlags=Zgt;fa.stripComment=eyt;fa.preparePath=tyt;fa.prepareMustache=ryt;fa.prepareRawBlock=nyt;fa.prepareBlock=iyt;fa.prepareProgram=syt;fa.preparePartialBlock=oyt;function Jgt(t){return t&&t.__esModule?t:{default:t}}o(Jgt,"_interopRequireDefault");var Ygt=bo(),bj=Jgt(Ygt);function wj(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new bj.default(t.path.original+" doesn't match "+e,r)}}o(wj,"validateClose");function Kgt(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}o(Kgt,"SourceLocation");function Xgt(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}o(Xgt,"id");function Zgt(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}o(Zgt,"stripFlags");function eyt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(eyt,"stripComment");function tyt(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",i=[],s=0,a=0,c=e.length;a<c;a++){var l=e[a].part,u=e[a].original!==l;if(n+=(e[a].separator||"")+l,!u&&(l===".."||l==="."||l==="this")){if(i.length>0)throw new bj.default("Invalid path: "+n,{loc:r});l===".."&&s++}else i.push(l)}return{type:"PathExpression",data:t,depth:s,parts:i,original:n,loc:r}}o(tyt,"preparePath");function ryt(t,e,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",l=/\*/.test(n);return{type:l?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(ryt,"prepareMustache");function nyt(t,e,r,n){wj(t,r),n=this.locInfo(n);var i={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(nyt,"prepareRawBlock");function iyt(t,e,r,n,i,s){n&&n.path&&wj(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var c=void 0,l=void 0;if(r){if(a)throw new bj.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),l=r.strip,c=r.program}return i&&(i=c,c=e,e=i),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:c,openStrip:t.strip,inverseStrip:l,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(iyt,"prepareBlock");function syt(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}o(syt,"prepareProgram");function oyt(t,e,r,n){return wj(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(oyt,"preparePartialBlock")});var Ewe=m(uI=>{"use strict";uI.__esModule=!0;uI.parseWithoutProcessing=ywe;uI.parse=Ayt;function ayt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(ayt,"_interopRequireWildcard");function Bj(t){return t&&t.__esModule?t:{default:t}}o(Bj,"_interopRequireDefault");var cyt=dwe(),Ij=Bj(cyt),lyt=mwe(),uyt=Bj(lyt),dyt=gwe(),fyt=ayt(dyt),hyt=bo(),lI=Bj(hyt),pyt=rs();uI.parser=Ij.default;var CD={};pyt.extend(CD,fyt);function ywe(t,e){if(t.type==="Program")return myt(t),t;Ij.default.yy=CD,CD.locInfo=function(n){return new CD.SourceLocation(e&&e.srcName,n)};var r=Ij.default.parse(t);return r}o(ywe,"parseWithoutProcessing");function Ayt(t,e){var r=ywe(t,e),n=new uyt.default(e);return n.accept(r)}o(Ayt,"parse");function myt(t){Sj(t)}o(myt,"validateInputAst");function Sj(t){if(t!=null){if(Array.isArray(t)){t.forEach(Sj);return}if(typeof t=="object"){if(t.type==="PathExpression"){if(!gyt(t.depth))throw new lI.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(t.parts))throw new lI.default("Invalid AST: PathExpression.parts must be an array");for(var e=0;e<t.parts.length;e++)if(typeof t.parts[e]!="string")throw new lI.default("Invalid AST: PathExpression.parts must only contain strings")}else if(t.type==="NumberLiteral"){if(typeof t.value!="number"||!isFinite(t.value))throw new lI.default("Invalid AST: NumberLiteral.value must be a number")}else if(t.type==="BooleanLiteral"&&typeof t.value!="boolean")throw new lI.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(t).forEach(function(r){r!=="loc"&&Sj(t[r])})}}}o(Sj,"validateAstNode");function gyt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&t>=0}o(gyt,"isValidDepth")});var Iwe=m(pI=>{"use strict";pI.__esModule=!0;pI.Compiler=xj;pI.precompile=byt;pI.compile=wyt;function bwe(t){return t&&t.__esModule?t:{default:t}}o(bwe,"_interopRequireDefault");var yyt=bo(),fI=bwe(yyt),hI=rs(),Eyt=gj(),dI=bwe(Eyt),Cyt=[].slice;function xj(){}o(xj,"Compiler");xj.prototype={compiler:xj,equals:o(function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=e.opcodes[n];if(i.opcode!==s.opcode||!wwe(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},"equals"),guid:0,compile:o(function(e,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=hI.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(e)},"compile"),compileProgram:o(function(e){var r=new this.compiler,n=r.compile(e,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:o(function(e){if(!this[e.type])throw new fI.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var r=this[e.type](e);return this.sourceNode.shift(),r},"accept"),Program:o(function(e){this.options.blockParams.unshift(e.blockParams);for(var r=e.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=e.blockParams?e.blockParams.length:0,this},"Program"),BlockStatement:o(function(e){Cwe(e);var r=e.program,n=e.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(e);i==="helper"?this.helperSexpr(e,r,n):i==="simple"?(this.simpleSexpr(e),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:o(function(e){var r=e.program&&this.compileProgram(e.program),n=this.setupFullMustacheParams(e,r,void 0),i=e.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:o(function(e){this.usePartial=!0;var r=e.program;r&&(r=this.compileProgram(e.program));var n=e.params;if(n.length>1)throw new fI.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=e.name.original,s=e.name.type==="SubExpression";s&&this.accept(e.name),this.setupFullMustacheParams(e,r,void 0,!0);var a=e.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(e){this.PartialStatement(e)},"PartialBlockStatement"),MustacheStatement:o(function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(e){this.DecoratorBlock(e)},"Decorator"),ContentStatement:o(function(e){e.value&&this.opcode("appendContent",e.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(e){Cwe(e);var r=this.classifySexpr(e);r==="simple"?this.simpleSexpr(e):r==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},"SubExpression"),ambiguousSexpr:o(function(e,r,n){var i=e.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(e){var r=e.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(e,r,n){var i=this.setupFullMustacheParams(e,r,n),s=e.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new fI.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,dI.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var r=e.parts[0],n=dI.default.helpers.scopedId(e),i=!e.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,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:o(function(e){this.opcode("pushString",e.value)},"StringLiteral"),NumberLiteral:o(function(e){this.opcode("pushLiteral",e.value)},"NumberLiteral"),BooleanLiteral:o(function(e){this.opcode("pushLiteral",e.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(e){var r=e.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:o(function(e){this.opcodes.push({opcode:e,args:Cyt.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(e){e&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(e){var r=dI.default.helpers.simpleId(e.path),n=r&&!!this.blockParamIndex(e.path.parts[0]),i=!n&&dI.default.helpers.helperExpression(e),s=!n&&(i||r);if(s&&!i){var a=e.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(e){for(var r=0,n=e.length;r<n;r++)this.pushParam(e[r])},"pushParams"),pushParam:o(function(e){var r=e.value!=null?e.value:e.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",r,e.type),e.type==="SubExpression"&&this.accept(e);else{if(this.trackIds){var n=void 0;if(e.parts&&!dI.default.helpers.scopedId(e)&&!e.depth&&(n=this.blockParamIndex(e.parts[0])),n){var i=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=e.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,r)}this.accept(e)}},"pushParam"),setupFullMustacheParams:o(function(e,r,n,i){var s=e.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),e.hash?this.accept(e.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(e){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&hI.indexOf(i,e);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function byt(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new fI.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);e=e||{},"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=r.parse(t,e),i=new r.Compiler().compile(n,e);return new r.JavaScriptCompiler().compile(i,e)}o(byt,"precompile");function wyt(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new fI.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=hI.extend({},e),"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function i(){var a=r.parse(t,e),c=new r.Compiler().compile(a,e),l=new r.JavaScriptCompiler().compile(c,e,void 0,!0);return r.template(l)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,l,u){return n||(n=i()),n._child(a,c,l,u)},s}o(wyt,"compile");function wwe(t,e){if(t===e)return!0;if(hI.isArray(t)&&hI.isArray(e)&&t.length===e.length){for(var r=0;r<t.length;r++)if(!wwe(t[r],e[r]))return!1;return!0}}o(wwe,"argEquals");function Cwe(t){if(!t.path.parts){var e=t.path;t.path={type:"PathExpression",data:!1,depth:0,parts:[e.original+""],original:e.original+"",loc:e.loc}}}o(Cwe,"transformLiteralToPath")});var Bwe=m(vj=>{var Swe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");vj.encode=function(t){if(0<=t&&t<Swe.length)return Swe[t];throw new TypeError("Must be between 0 and 63: "+t)};vj.decode=function(t){var e=65,r=90,n=97,i=122,s=48,a=57,c=43,l=47,u=26,d=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+u:s<=t&&t<=a?t-s+d:t==c?62:t==l?63:-1}});var Tj=m(_j=>{var xwe=Bwe(),Nj=5,vwe=1<<Nj,Nwe=vwe-1,_we=vwe;function Iyt(t){return t<0?(-t<<1)+1:(t<<1)+0}o(Iyt,"toVLQSigned");function Syt(t){var e=(t&1)===1,r=t>>1;return e?-r:r}o(Syt,"fromVLQSigned");_j.encode=o(function(e){var r="",n,i=Iyt(e);do n=i&Nwe,i>>>=Nj,i>0&&(n|=_we),r+=xwe.encode(n);while(i>0);return r},"base64VLQ_encode");_j.decode=o(function(e,r,n){var i=e.length,s=0,a=0,c,l;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=xwe.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));c=!!(l&_we),l&=Nwe,s=s+(l<<a),a+=Nj}while(c);n.value=Syt(s),n.rest=r},"base64VLQ_decode")});var _y=m(Ti=>{function Byt(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}o(Byt,"getArg");Ti.getArg=Byt;var Twe=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,xyt=/^data:.+\,.+$/;function AI(t){var e=t.match(Twe);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}o(AI,"urlParse");Ti.urlParse=AI;function vy(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}o(vy,"urlGenerate");Ti.urlGenerate=vy;function Rj(t){var e=t,r=AI(t);if(r){if(!r.path)return t;e=r.path}for(var n=Ti.isAbsolute(e),i=e.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return e=i.join("/"),e===""&&(e=n?"/":"."),r?(r.path=e,vy(r)):e}o(Rj,"normalize");Ti.normalize=Rj;function Rwe(t,e){t===""&&(t="."),e===""&&(e=".");var r=AI(e),n=AI(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),vy(r);if(r||e.match(xyt))return e;if(n&&!n.host&&!n.path)return n.host=e,vy(n);var i=e.charAt(0)==="/"?e:Rj(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,vy(n)):i}o(Rwe,"join");Ti.join=Rwe;Ti.isAbsolute=function(t){return t.charAt(0)==="/"||Twe.test(t)};function vyt(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}o(vyt,"relative");Ti.relative=vyt;var Dwe=(function(){var t=Object.create(null);return!("__proto__"in t)})();function Qwe(t){return t}o(Qwe,"identity");function Nyt(t){return Pwe(t)?"$"+t:t}o(Nyt,"toSetString");Ti.toSetString=Dwe?Qwe:Nyt;function _yt(t){return Pwe(t)?t.slice(1):t}o(_yt,"fromSetString");Ti.fromSetString=Dwe?Qwe:_yt;function Pwe(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}o(Pwe,"isProtoString");function Tyt(t,e,r){var n=Ny(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:Ny(t.name,e.name)}o(Tyt,"compareByOriginalPositions");Ti.compareByOriginalPositions=Tyt;function Ryt(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=Ny(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Ny(t.name,e.name)}o(Ryt,"compareByGeneratedPositionsDeflated");Ti.compareByGeneratedPositionsDeflated=Ryt;function Ny(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}o(Ny,"strcmp");function Dyt(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=Ny(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Ny(t.name,e.name)}o(Dyt,"compareByGeneratedPositionsInflated");Ti.compareByGeneratedPositionsInflated=Dyt;function Qyt(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}o(Qyt,"parseSourceMapInput");Ti.parseSourceMapInput=Qyt;function Pyt(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=AI(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=Rwe(vy(n),e)}return Rj(e)}o(Pyt,"computeSourceURL");Ti.computeSourceURL=Pyt});var Pj=m(kwe=>{var Dj=_y(),Qj=Object.prototype.hasOwnProperty,Kp=typeof Map<"u";function rd(){this._array=[],this._set=Kp?new Map:Object.create(null)}o(rd,"ArraySet");rd.fromArray=o(function(e,r){for(var n=new rd,i=0,s=e.length;i<s;i++)n.add(e[i],r);return n},"ArraySet_fromArray");rd.prototype.size=o(function(){return Kp?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");rd.prototype.add=o(function(e,r){var n=Kp?e:Dj.toSetString(e),i=Kp?this.has(e):Qj.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(e),i||(Kp?this._set.set(e,s):this._set[n]=s)},"ArraySet_add");rd.prototype.has=o(function(e){if(Kp)return this._set.has(e);var r=Dj.toSetString(e);return Qj.call(this._set,r)},"ArraySet_has");rd.prototype.indexOf=o(function(e){if(Kp){var r=this._set.get(e);if(r>=0)return r}else{var n=Dj.toSetString(e);if(Qj.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");rd.prototype.at=o(function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},"ArraySet_at");rd.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");kwe.ArraySet=rd});var Fwe=m(Lwe=>{var Owe=_y();function kyt(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn;return n>r||n==r&&s>=i||Owe.compareByGeneratedPositionsInflated(t,e)<=0}o(kyt,"generatedPositionAfter");function bD(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(bD,"MappingList");bD.prototype.unsortedForEach=o(function(e,r){this._array.forEach(e,r)},"MappingList_forEach");bD.prototype.add=o(function(e){kyt(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");bD.prototype.toArray=o(function(){return this._sorted||(this._array.sort(Owe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");Lwe.MappingList=bD});var kj=m(Mwe=>{var mI=Tj(),En=_y(),wD=Pj().ArraySet,Oyt=Fwe().MappingList;function ha(t){t||(t={}),this._file=En.getArg(t,"file",null),this._sourceRoot=En.getArg(t,"sourceRoot",null),this._skipValidation=En.getArg(t,"skipValidation",!1),this._sources=new wD,this._names=new wD,this._mappings=new Oyt,this._sourcesContents=null}o(ha,"SourceMapGenerator");ha.prototype._version=3;ha.fromSourceMap=o(function(e){var r=e.sourceRoot,n=new ha({file:e.file,sourceRoot:r});return e.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=En.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),e.sources.forEach(function(i){var s=i;r!==null&&(s=En.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=e.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");ha.prototype.addMapping=o(function(e){var r=En.getArg(e,"generated"),n=En.getArg(e,"original",null),i=En.getArg(e,"source",null),s=En.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");ha.prototype.setSourceContent=o(function(e,r){var n=e;this._sourceRoot!=null&&(n=En.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[En.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[En.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");ha.prototype.applySourceMap=o(function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=En.relative(s,i));var a=new wD,c=new wD;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var u=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=En.join(n,l.source)),s!=null&&(l.source=En.relative(s,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var d=l.source;d!=null&&!a.has(d)&&a.add(d);var f=l.name;f!=null&&!c.has(f)&&c.add(f)},this),this._sources=a,this._names=c,e.sources.forEach(function(l){var u=e.sourceContentFor(l);u!=null&&(n!=null&&(l=En.join(n,l)),s!=null&&(l=En.relative(s,l)),this.setSourceContent(l,u))},this)},"SourceMapGenerator_applySourceMap");ha.prototype._validateMapping=o(function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");ha.prototype._serializeMappings=o(function(){for(var e=0,r=1,n=0,i=0,s=0,a=0,c="",l,u,d,f,h=this._mappings.toArray(),p=0,g=h.length;p<g;p++){if(u=h[p],l="",u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=";",r++;else if(p>0){if(!En.compareByGeneratedPositionsInflated(u,h[p-1]))continue;l+=","}l+=mI.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=mI.encode(f-a),a=f,l+=mI.encode(u.originalLine-1-i),i=u.originalLine-1,l+=mI.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=mI.encode(d-s),s=d)),c+=l}return c},"SourceMapGenerator_serializeMappings");ha.prototype._generateSourcesContent=o(function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=En.relative(r,n));var i=En.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");ha.prototype.toJSON=o(function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},"SourceMapGenerator_toJSON");ha.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");Mwe.SourceMapGenerator=ha});var Uwe=m(Xp=>{Xp.GREATEST_LOWER_BOUND=1;Xp.LEAST_UPPER_BOUND=2;function Oj(t,e,r,n,i,s){var a=Math.floor((e-t)/2)+t,c=i(r,n[a],!0);return c===0?a:c>0?e-a>1?Oj(a,e,r,n,i,s):s==Xp.LEAST_UPPER_BOUND?e<n.length?e:-1:a:a-t>1?Oj(t,a,r,n,i,s):s==Xp.LEAST_UPPER_BOUND?a:t<0?-1:t}o(Oj,"recursiveSearch");Xp.search=o(function(e,r,n,i){if(r.length===0)return-1;var s=Oj(-1,r.length,e,r,n,i||Xp.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var Gwe=m(qwe=>{function Lj(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}o(Lj,"swap");function Lyt(t,e){return Math.round(t+Math.random()*(e-t))}o(Lyt,"randomIntInRange");function Fj(t,e,r,n){if(r<n){var i=Lyt(r,n),s=r-1;Lj(t,i,n);for(var a=t[n],c=r;c<n;c++)e(t[c],a)<=0&&(s+=1,Lj(t,s,c));Lj(t,s+1,c);var l=s+1;Fj(t,e,r,l-1),Fj(t,e,l+1,n)}}o(Fj,"doQuickSort");qwe.quickSort=function(t,e){Fj(t,e,0,t.length-1)}});var Vwe=m(ID=>{var ye=_y(),Mj=Uwe(),Ty=Pj().ArraySet,Fyt=Tj(),gI=Gwe().quickSort;function ar(t,e){var r=t;return typeof t=="string"&&(r=ye.parseSourceMapInput(t)),r.sections!=null?new dc(r,e):new Ai(r,e)}o(ar,"SourceMapConsumer");ar.fromSourceMap=function(t,e){return Ai.fromSourceMap(t,e)};ar.prototype._version=3;ar.prototype.__generatedMappings=null;Object.defineProperty(ar.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});ar.prototype.__originalMappings=null;Object.defineProperty(ar.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});ar.prototype._charIsMappingSeparator=o(function(e,r){var n=e.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");ar.prototype._parseMappings=o(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");ar.GENERATED_ORDER=1;ar.ORIGINAL_ORDER=2;ar.GREATEST_LOWER_BOUND=1;ar.LEAST_UPPER_BOUND=2;ar.prototype.eachMapping=o(function(e,r,n){var i=r||null,s=n||ar.GENERATED_ORDER,a;switch(s){case ar.GENERATED_ORDER:a=this._generatedMappings;break;case ar.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=ye.computeSourceURL(c,u,this._sourceMapURL),{source:u,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(e,i)},"SourceMapConsumer_eachMapping");ar.prototype.allGeneratedPositionsFor=o(function(e){var r=ye.getArg(e,"line"),n={source:ye.getArg(e,"source"),originalLine:r,originalColumn:ye.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ye.compareByOriginalPositions,Mj.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(e.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:ye.getArg(a,"generatedLine",null),column:ye.getArg(a,"generatedColumn",null),lastColumn:ye.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var l=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==l;)i.push({line:ye.getArg(a,"generatedLine",null),column:ye.getArg(a,"generatedColumn",null),lastColumn:ye.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");ID.SourceMapConsumer=ar;function Ai(t,e){var r=t;typeof t=="string"&&(r=ye.parseSourceMapInput(t));var n=ye.getArg(r,"version"),i=ye.getArg(r,"sources"),s=ye.getArg(r,"names",[]),a=ye.getArg(r,"sourceRoot",null),c=ye.getArg(r,"sourcesContent",null),l=ye.getArg(r,"mappings"),u=ye.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=ye.normalize(a)),i=i.map(String).map(ye.normalize).map(function(d){return a&&ye.isAbsolute(a)&&ye.isAbsolute(d)?ye.relative(a,d):d}),this._names=Ty.fromArray(s.map(String),!0),this._sources=Ty.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(d){return ye.computeSourceURL(a,d,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=e,this.file=u}o(Ai,"BasicSourceMapConsumer");Ai.prototype=Object.create(ar.prototype);Ai.prototype.consumer=ar;Ai.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=ye.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};Ai.fromSourceMap=o(function(e,r){var n=Object.create(Ai.prototype),i=n._names=Ty.fromArray(e._names.toArray(),!0),s=n._sources=Ty.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(p){return ye.computeSourceURL(n.sourceRoot,p,r)});for(var a=e._mappings.toArray().slice(),c=n.__generatedMappings=[],l=n.__originalMappings=[],u=0,d=a.length;u<d;u++){var f=a[u],h=new Hwe;h.generatedLine=f.generatedLine,h.generatedColumn=f.generatedColumn,f.source&&(h.source=s.indexOf(f.source),h.originalLine=f.originalLine,h.originalColumn=f.originalColumn,f.name&&(h.name=i.indexOf(f.name)),l.push(h)),c.push(h)}return gI(n.__originalMappings,ye.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");Ai.prototype._version=3;Object.defineProperty(Ai.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function Hwe(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(Hwe,"Mapping");Ai.prototype._parseMappings=o(function(e,r){for(var n=1,i=0,s=0,a=0,c=0,l=0,u=e.length,d=0,f={},h={},p=[],g=[],A,E,y,C,w;d<u;)if(e.charAt(d)===";")n++,d++,i=0;else if(e.charAt(d)===",")d++;else{for(A=new Hwe,A.generatedLine=n,C=d;C<u&&!this._charIsMappingSeparator(e,C);C++);if(E=e.slice(d,C),y=f[E],y)d+=E.length;else{for(y=[];d<C;)Fyt.decode(e,d,h),w=h.value,d=h.rest,y.push(w);if(y.length===2)throw new Error("Found a source, but no line and column");if(y.length===3)throw new Error("Found a source and line, but no column");f[E]=y}A.generatedColumn=i+y[0],i=A.generatedColumn,y.length>1&&(A.source=c+y[1],c+=y[1],A.originalLine=s+y[2],s=A.originalLine,A.originalLine+=1,A.originalColumn=a+y[3],a=A.originalColumn,y.length>4&&(A.name=l+y[4],l+=y[4])),g.push(A),typeof A.originalLine=="number"&&p.push(A)}gI(g,ye.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,gI(p,ye.compareByOriginalPositions),this.__originalMappings=p},"SourceMapConsumer_parseMappings");Ai.prototype._findMapping=o(function(e,r,n,i,s,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return Mj.search(e,r,s,a)},"SourceMapConsumer_findMapping");Ai.prototype.computeColumnSpans=o(function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");Ai.prototype.originalPositionFor=o(function(e){var r={generatedLine:ye.getArg(e,"line"),generatedColumn:ye.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",ye.compareByGeneratedPositionsDeflated,ye.getArg(e,"bias",ar.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=ye.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=ye.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=ye.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:ye.getArg(i,"originalLine",null),column:ye.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");Ai.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");Ai.prototype.sourceContentFor=o(function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=ye.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=ye.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");Ai.prototype.generatedPositionFor=o(function(e){var r=ye.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:ye.getArg(e,"line"),originalColumn:ye.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ye.compareByOriginalPositions,ye.getArg(e,"bias",ar.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:ye.getArg(s,"generatedLine",null),column:ye.getArg(s,"generatedColumn",null),lastColumn:ye.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");ID.BasicSourceMapConsumer=Ai;function dc(t,e){var r=t;typeof t=="string"&&(r=ye.parseSourceMapInput(t));var n=ye.getArg(r,"version"),i=ye.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Ty,this._names=new Ty;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=ye.getArg(a,"offset"),l=ye.getArg(c,"line"),u=ye.getArg(c,"column");if(l<s.line||l===s.line&&u<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:l+1,generatedColumn:u+1},consumer:new ar(ye.getArg(a,"map"),e)}})}o(dc,"IndexedSourceMapConsumer");dc.prototype=Object.create(ar.prototype);dc.prototype.constructor=ar;dc.prototype._version=3;Object.defineProperty(dc.prototype,"sources",{get:o(function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t},"get")});dc.prototype.originalPositionFor=o(function(e){var r={generatedLine:ye.getArg(e,"line"),generatedColumn:ye.getArg(e,"column")},n=Mj.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");dc.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");dc.prototype.sourceContentFor=o(function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(e,!0);if(s)return s}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");dc.prototype.generatedPositionFor=o(function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(ye.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");dc.prototype._parseMappings=o(function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],l=i.consumer._sources.at(c.source);l=ye.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine=="number"&&this.__originalMappings.push(d)}gI(this.__generatedMappings,ye.compareByGeneratedPositionsDeflated),gI(this.__originalMappings,ye.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");ID.IndexedSourceMapConsumer=dc});var $we=m(zwe=>{var Myt=kj().SourceMapGenerator,SD=_y(),Uyt=/(\r?\n)/,qyt=10,Ry="$$$isSourceNode$$$";function wo(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[Ry]=!0,n!=null&&this.add(n)}o(wo,"SourceNode");wo.fromStringWithSourceMap=o(function(e,r,n){var i=new wo,s=e.split(Uyt),a=0,c=o(function(){var h=g(),p=g()||"";return h+p;function g(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),l=1,u=0,d=null;return r.eachMapping(function(h){if(d!==null)if(l<h.generatedLine)f(d,c()),l++,u=0;else{var p=s[a]||"",g=p.substr(0,h.generatedColumn-u);s[a]=p.substr(h.generatedColumn-u),u=h.generatedColumn,f(d,g),d=h;return}for(;l<h.generatedLine;)i.add(c()),l++;if(u<h.generatedColumn){var p=s[a]||"";i.add(p.substr(0,h.generatedColumn)),s[a]=p.substr(h.generatedColumn),u=h.generatedColumn}d=h},this),a<s.length&&(d&&f(d,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(h){var p=r.sourceContentFor(h);p!=null&&(n!=null&&(h=SD.join(n,h)),i.setSourceContent(h,p))}),i;function f(h,p){if(h===null||h.source===void 0)i.add(p);else{var g=n?SD.join(n,h.source):h.source;i.add(new wo(h.originalLine,h.originalColumn,g,p,h.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");wo.prototype.add=o(function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[Ry]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},"SourceNode_add");wo.prototype.prepend=o(function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[Ry]||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");wo.prototype.walk=o(function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Ry]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");wo.prototype.join=o(function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");wo.prototype.replaceRight=o(function(e,r){var n=this.children[this.children.length-1];return n[Ry]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this},"SourceNode_replaceRight");wo.prototype.setSourceContent=o(function(e,r){this.sourceContents[SD.toSetString(e)]=r},"SourceNode_setSourceContent");wo.prototype.walkSourceContents=o(function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Ry]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(SD.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");wo.prototype.toString=o(function(){var e="";return this.walk(function(r){e+=r}),e},"SourceNode_toString");wo.prototype.toStringWithSourceMap=o(function(e){var r={code:"",line:1,column:0},n=new Myt(e),i=!1,s=null,a=null,c=null,l=null;return this.walk(function(u,d){r.code+=u,d.source!==null&&d.line!==null&&d.column!==null?((s!==d.source||a!==d.line||c!==d.column||l!==d.name)&&n.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:r.line,column:r.column},name:d.name}),s=d.source,a=d.line,c=d.column,l=d.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,h=u.length;f<h;f++)u.charCodeAt(f)===qyt?(r.line++,r.column=0,f+1===h?(s=null,i=!1):i&&n.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:r.line,column:r.column},name:d.name})):r.column++}),this.walkSourceContents(function(u,d){n.setSourceContent(u,d)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");zwe.SourceNode=wo});var jwe=m(BD=>{BD.SourceMapGenerator=kj().SourceMapGenerator;BD.SourceMapConsumer=Vwe().SourceMapConsumer;BD.SourceNode=$we().SourceNode});var Kwe=m((xD,Ywe)=>{"use strict";xD.__esModule=!0;var qj=rs(),Zp=void 0;try{(typeof define!="function"||!define.amd)&&(Wwe=jwe(),Zp=Wwe.SourceNode)}catch{}var Wwe;Zp||(Zp=o(function(t,e,r,n){this.src="",n&&this.add(n)},"SourceNode"),Zp.prototype={add:o(function(e){qj.isArray(e)&&(e=e.join("")),this.src+=e},"add"),prepend:o(function(e){qj.isArray(e)&&(e=e.join("")),this.src=e+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function Uj(t,e,r){if(qj.isArray(t)){for(var n=[],i=0,s=t.length;i<s;i++)n.push(e.wrap(t[i],r));return n}else if(typeof t=="boolean"||typeof t=="number")return t+"";return t}o(Uj,"castChunk");function Jwe(t){this.srcFile=t,this.source=[]}o(Jwe,"CodeGen");Jwe.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(e,r){this.source.unshift(this.wrap(e,r))},"prepend"),push:o(function(e,r){this.source.push(this.wrap(e,r))},"push"),merge:o(function(){var e=this.empty();return this.each(function(r){e.add([" ",r,`
|
|
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Zp(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Zp?e:(e=Uj(e,this,r),new Zp(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(s){var a=Uj(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,i=e.length;n<i;n++)n&&r.add(","),r.add(Uj(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};xD.default=Jwe;Ywe.exports=xD.default});var rIe=m((vD,tIe)=>{"use strict";vD.__esModule=!0;function eIe(t){return t&&t.__esModule?t:{default:t}}o(eIe,"_interopRequireDefault");var Xwe=aD(),Gyt=bo(),Gj=eIe(Gyt),Hyt=rs(),Vyt=Kwe(),Zwe=eIe(Vyt);function Dy(t){this.value=t}o(Dy,"Literal");function Qy(){}o(Qy,"JavaScriptCompiler");Qy.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=Xwe.COMPILER_REVISION,r=Xwe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return Hyt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=s.length;l<u;l++)a=s[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Gj.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
`),this.decorators.push(`}
|
|
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(i);if(this.isChild)return d;var f={compiler:this.compilerInfo(),main:d};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,p=h.programs,g=h.decorators;for(l=0,u=p.length;l<u;l++)f[l]=p[l],g[l]&&(f[l+"_d"]=g[l],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new Zwe.default(this.options.srcName),this.decorators=new Zwe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++s+"="+l,u.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
|
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(i?"":`;
|
|
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
|
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
return parent[propertyName];
|
|
}
|
|
return undefined
|
|
}
|
|
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(zyt(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(f){var h=a.nameLookup(f,r[d],e);return i?[" && ",h]:[" != null ? ",h," : ",f]})},"_loop"),u=n;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var i=this.popStack(),s=this.setupHelper(e,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",s.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var i=1;i<e.length;i++)n.push(r,e[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(e,r,n){var i=[],s=this.setupParams(r,1,i);e&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",e?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(e){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[e]=n),i&&(a.types[e]=i),s&&(a.ids[e]=s),a.values[e]=r},"assignToHash"),pushId:o(function(e,r,n){e==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):e==="PathExpression"?this.pushString(r):e==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Qy,compileChildren:o(function(e,r){for(var n=e.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var l=this.matchExistingProgram(i);if(l==null){var u=this.context.programs.push("")-1;i.index=u,i.name="program"+u,this.context.programs[u]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[u]=s.decorators,this.context.environments[u]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=l.index,i.name="program"+l.index,this.useDepths=this.useDepths||l.useDepths,this.useBlockParams=this.useBlockParams||l.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(e){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(e))return i}},"matchExistingProgram"),programExpression:o(function(e){var r=this.environment.children[e],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},"useRegister"),push:o(function(e){return e instanceof Dy||(e=this.source.wrap(e)),this.inlineStack.push(e),e},"push"),pushStackLiteral:o(function(e){this.push(new Dy(e))},"pushStackLiteral"),pushSource:o(function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},"pushSource"),replaceStack:o(function(e){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new Gj.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Dy)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var l=e.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(l,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var e=this.inlineStack;this.inlineStack=[];for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i instanceof Dy)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(e){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!e&&n instanceof Dy)return n.value;if(!r){if(!this.stackSlot)throw new Gj.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var e=this.isInline()?this.inlineStack:this.compileStack,r=e[e.length-1];return r instanceof Dy?r.value:r},"topStack"),contextName:o(function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},"contextName"),quotedString:o(function(e){return this.source.quotedString(e)},"quotedString"),objectLiteral:o(function(e){return this.source.objectLiteral(e)},"objectLiteral"),aliasable:o(function(e){var r=this.aliases[e];return r?(r.referenceCount++,r):(r=this.aliases[e]=this.source.wrap(e),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(e,r,n){var i=[],s=this.setupHelperArgs(r,e,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(e,r,n){var i={},s=[],a=[],c=[],l=!n,u=void 0;l&&(n=[]),i.name=this.quotedString(e),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var d=this.popStack(),f=this.popStack();(f||d)&&(i.fn=f||"container.noop",i.inverse=d||"container.noop");for(var h=r;h--;)u=this.popStack(),n[h]=u,this.trackIds&&(c[h]=this.popStack()),this.stringParams&&(a[h]=this.popStack(),s[h]=this.popStack());return l&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(e,r,n,i){var s=this.setupParams(e,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var t="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),e=Qy.RESERVED_WORDS={},r=0,n=t.length;r<n;r++)e[t[r]]=!0})();Qy.isValidJavaScriptVariableName=function(t){return!Qy.RESERVED_WORDS[t]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t)};function zyt(t,e,r,n,i){var s=e.popStack(),a=r.length;t&&a--;for(var c=n;c<a;c++)s=e.nameLookup(s,r[c],i);return t?[e.aliasable("container.strict"),"(",s,", ",e.quotedString(r[a]),", ",JSON.stringify(e.source.currentLocation)," )"]:s}o(zyt,"strictLookup");vD.default=Qy;tIe.exports=vD.default});var sIe=m((ND,iIe)=>{"use strict";ND.__esModule=!0;function yI(t){return t&&t.__esModule?t:{default:t}}o(yI,"_interopRequireDefault");var $yt=awe(),jyt=yI($yt),Wyt=gj(),Jyt=yI(Wyt),Hj=Ewe(),Vj=Iwe(),Yyt=rIe(),Kyt=yI(Yyt),Xyt=yD(),Zyt=yI(Xyt),eEt=hj(),tEt=yI(eEt),rEt=jyt.default.create;function nIe(){var t=rEt();return t.compile=function(e,r){return Vj.compile(e,r,t)},t.precompile=function(e,r){return Vj.precompile(e,r,t)},t.AST=Jyt.default,t.Compiler=Vj.Compiler,t.JavaScriptCompiler=Kyt.default,t.Parser=Hj.parser,t.parse=Hj.parse,t.parseWithoutProcessing=Hj.parseWithoutProcessing,t}o(nIe,"create");var Py=nIe();Py.create=nIe;tEt.default(Py);Py.Visitor=Zyt.default;Py.default=Py;ND.default=Py;iIe.exports=ND.default});var oIe=m(_D=>{"use strict";_D.__esModule=!0;_D.print=oEt;_D.PrintVisitor=Gr;function nEt(t){return t&&t.__esModule?t:{default:t}}o(nEt,"_interopRequireDefault");var iEt=yD(),sEt=nEt(iEt);function oEt(t){return new Gr().accept(t)}o(oEt,"print");function Gr(){this.padding=0}o(Gr,"PrintVisitor");Gr.prototype=new sEt.default;Gr.prototype.pad=function(t){for(var e="",r=0,n=this.padding;r<n;r++)e+=" ";return e+=t+`
|
|
`,e};Gr.prototype.Program=function(t){var e="",r=t.body,n=void 0,i=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=t.blockParams.length;n<i;n++)s+=" "+t.blockParams[n];s+=" ]",e+=this.pad(s)}for(n=0,i=r.length;n<i;n++)e+=this.accept(r[n]);return this.padding--,e};Gr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Gr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Gr.prototype.BlockStatement=Gr.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};Gr.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};Gr.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+" }}")};Gr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Gr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Gr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,i=0,s=e.length;i<s;i++)r.push(this.accept(e[i]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Gr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Gr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Gr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Gr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Gr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Gr.prototype.NullLiteral=function(){return"NULL"};Gr.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Gr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var zj=m((eIr,lIe)=>{var TD=sIe().default,cIe=oIe();TD.PrintVisitor=cIe.PrintVisitor;TD.print=cIe.print;lIe.exports=TD;function aIe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=TD.compile(n)}o(aIe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=aIe,require.extensions[".hbs"]=aIe)});var wIe=m(kD=>{"use strict";Object.defineProperty(kD,"__esModule",{value:!0});kD.getProxyUrl=uEt;kD.checkBypass=bIe;function uEt(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 PD(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new PD(`http://${r}`)}else return}o(uEt,"getProxyUrl");function bIe(t){if(!t.hostname)return!1;let e=t.hostname;if(dEt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(bIe,"checkBypass");function dEt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(dEt,"isLoopbackAddress");var PD=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var SIe=m(br=>{"use strict";var fEt=br&&br.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hEt=br&&br.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MD=br&&br.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&fEt(r,e,n[i]);return hEt(r,e),r}})(),on=br&&br.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(br,"__esModule",{value:!0});br.HttpClient=br.HttpClientResponse=br.HttpClientError=br.MediaTypes=br.Headers=br.HttpCodes=void 0;br.getProxyUrl=AEt;br.isHttps=bEt;var Yj=MD(require("http")),IIe=MD(require("https")),Kj=MD(wIe()),OD=MD(pm()),pEt=ef(),pa;(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"})(pa||(br.HttpCodes=pa={}));var ns;(function(t){t.Accept="accept",t.ContentType="content-type"})(ns||(br.Headers=ns={}));var nd;(function(t){t.ApplicationJson="application/json"})(nd||(br.MediaTypes=nd={}));function AEt(t){let e=Kj.getProxyUrl(new URL(t));return e?e.href:""}o(AEt,"getProxyUrl");var mEt=[pa.MovedPermanently,pa.ResourceMoved,pa.SeeOther,pa.TemporaryRedirect,pa.PermanentRedirect],gEt=[pa.BadGateway,pa.ServiceUnavailable,pa.GatewayTimeout],yEt=["OPTIONS","GET","DELETE","HEAD"],EEt=10,CEt=5,LD=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}};br.HttpClientError=LD;var FD=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return on(this,void 0,void 0,function*(){return new Promise(e=>on(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 on(this,void 0,void 0,function*(){return new Promise(e=>on(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};br.HttpClientResponse=FD;function bEt(t){return new URL(t).protocol==="https:"}o(bEt,"isHttps");var Xj=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return on(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return on(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return on(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return on(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return on(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return on(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return on(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return on(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return on(this,arguments,void 0,function*(r,n={}){n[ns.Accept]=this._getExistingOrDefaultHeader(n,ns.Accept,nd.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return on(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[ns.Accept]=this._getExistingOrDefaultHeader(s,ns.Accept,nd.ApplicationJson),s[ns.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,nd.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return on(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[ns.Accept]=this._getExistingOrDefaultHeader(s,ns.Accept,nd.ApplicationJson),s[ns.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,nd.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return on(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[ns.Accept]=this._getExistingOrDefaultHeader(s,ns.Accept,nd.ApplicationJson),s[ns.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,nd.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return on(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&yEt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===pa.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&mEt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!gEt.includes(u.message.statusCode))return u;l+=1,l<c&&(yield u.readBody(),yield this._performExponentialBackoff(l))}while(l<c);return u})}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,r){return on(this,void 0,void 0,function*(){return new Promise((n,i)=>{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new FD(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=Kj.getProxyUrl(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?IIe:Yj;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},wI(this.requestOptions.headers),wI(e||{})):wI(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=wI(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=wI(this.requestOptions.headers)[ns.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[ns.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=Kj.getProxyUrl(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Yj.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?OD.httpsOverHttps:OD.httpsOverHttp:l=u?OD.httpOverHttps:OD.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new IIe.Agent(c):new Yj.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new pEt.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return on(this,void 0,void 0,function*(){e=Math.min(EEt,e);let r=CEt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return on(this,void 0,void 0,function*(){return new Promise((n,i)=>on(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===pa.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new LD(d,s);f.result=a.result,i(f)}else n(a)}))})}};br.HttpClient=Xj;var wI=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var $Ie=m((ASr,SI)=>{"use strict";var HD=o(function(){},"NullObject");HD.prototype=Object.create(null);var qD=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,GD=/\\([\v\u0020-\u00ff])/gu,HIe=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,eA={type:"",parameters:new HD};Object.freeze(eA.parameters);Object.freeze(eA);function VIe(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(HIe.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new HD};if(e===-1)return n;let i,s,a;for(qD.lastIndex=e;s=qD.exec(t);){if(s.index!==e)throw new TypeError("invalid parameter format");e+=s[0].length,i=s[1].toLowerCase(),a=s[2],a[0]==='"'&&(a=a.slice(1,a.length-1),GD.test(a)&&(a=a.replace(GD,"$1"))),n.parameters[i]=a}if(e!==t.length)throw new TypeError("invalid parameter format");return n}o(VIe,"parse");function zIe(t){if(typeof t!="string")return eA;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(HIe.test(r)===!1)return eA;let n={type:r.toLowerCase(),parameters:new HD};if(e===-1)return n;let i,s,a;for(qD.lastIndex=e;s=qD.exec(t);){if(s.index!==e)return eA;e+=s[0].length,i=s[1].toLowerCase(),a=s[2],a[0]==='"'&&(a=a.slice(1,a.length-1),GD.test(a)&&(a=a.replace(GD,"$1"))),n.parameters[i]=a}return e!==t.length?eA:n}o(zIe,"safeParse");SI.exports.default={parse:VIe,safeParse:zIe};SI.exports.parse=VIe;SI.exports.safeParse=zIe;SI.exports.defaultContentType=eA});var XD=m(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});Gy.isJsonObject=Gy.typeofJsonValue=void 0;function LCt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(LCt,"typeofJsonValue");Gy.typeofJsonValue=LCt;function FCt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(FCt,"isJsonObject");Gy.isJsonObject=FCt});var eQ=m(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});Hy.base64encode=Hy.base64decode=void 0;var ad="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ZD=[];for(let t=0;t<ad.length;t++)ZD[ad[t].charCodeAt(0)]=t;ZD[45]=ad.indexOf("+");ZD[95]=ad.indexOf("/");function MCt(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,i=0,s,a=0;for(let c=0;c<t.length;c++){if(s=ZD[t.charCodeAt(c)],s===void 0)switch(t[c]){case"=":i=0;case`
|
|
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=s,i=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,i=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:r[n++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(MCt,"base64decode");Hy.base64decode=MCt;function UCt(t){let e="",r=0,n,i=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=ad[n>>2],i=(n&3)<<4,r=1;break;case 1:e+=ad[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=ad[i|n>>6],e+=ad[n&63],r=0;break}return r&&(e+=ad[i],e+="=",r==1&&(e+="=")),e}o(UCt,"base64encode");Hy.base64encode=UCt});var DSe=m(tQ=>{"use strict";Object.defineProperty(tQ,"__esModule",{value:!0});tQ.utf8read=void 0;var B8=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function qCt(t){if(t.length<1)return"";let e=0,r=[],n=[],i=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[i++]=s:s>191&&s<224?n[i++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[i++]=55296+(s>>10),n[i++]=56320+(s&1023)):n[i++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(B8(n)),i=0);return r.length?(i&&r.push(B8(n.slice(0,i))),r.join("")):B8(n.slice(0,i))}o(qCt,"utf8read");tQ.utf8read=qCt});var PI=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.WireType=Tl.mergeBinaryOptions=Tl.UnknownFieldHandler=void 0;var GCt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,i,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:i,wireType:s,data:a})},t.onWrite=(r,n,i)=>{for(let{no:s,wireType:a,data:c}of t.list(n))i.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let i=r[t.symbol];return n?i.filter(s=>s.no==n):i}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(GCt=Tl.UnknownFieldHandler||(Tl.UnknownFieldHandler={}));function HCt(t,e){return Object.assign(Object.assign({},t),e)}o(HCt,"mergeBinaryOptions");Tl.mergeBinaryOptions=HCt;var VCt;(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"})(VCt=Tl.WireType||(Tl.WireType={}))});var nQ=m(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.varint32read=Ms.varint32write=Ms.int64toString=Ms.int64fromString=Ms.varint64write=Ms.varint64read=void 0;function zCt(){let t=0,e=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(zCt,"varint64read");Ms.varint64read=zCt;function $Ct(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?n|128:n)&255),!!i){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o($Ct,"varint64write");Ms.varint64write=$Ct;var rQ=65536*65536;function jCt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,i=0;function s(a,c){let l=Number(t.slice(a,c));i*=r,n=n*r+l,n>=rQ&&(i=i+(n/rQ|0),n=n%rQ)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(jCt,"int64fromString");Ms.int64fromString=jCt;function WCt(t,e){if(e>>>0<=2097151)return""+(rQ*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,s=r+n*6777216+i*6710656,a=n+i*8147497,c=i*2,l=1e7;s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,f){let h=d?String(d):"";return f?"0000000".slice(h.length)+h:h}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(s,1)}o(WCt,"int64toString");Ms.int64toString=WCt;function JCt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(JCt,"varint32write");Ms.varint32write=JCt;function YCt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(YCt,"varint32read");Ms.varint32read=YCt});var Of=m(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.PbLong=kf.PbULong=kf.detectBi=void 0;var kI=nQ(),Jt;function QSe(){let t=new DataView(new ArrayBuffer(8));Jt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}o(QSe,"detectBi");kf.detectBi=QSe;QSe();function PSe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}o(PSe,"assertBi");var kSe=/^-?[0-9]+$/,sQ=4294967296,iQ=2147483648,oQ=class{static{o(this,"SharedPbLong")}constructor(e,r){this.lo=e|0,this.hi=r|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*sQ+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},OI=class t extends oQ{static{o(this,"PbULong")}static from(e){if(Jt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Jt.C(e);case"number":if(e===0)return this.ZERO;e=Jt.C(e);case"bigint":if(!e)return this.ZERO;if(e<Jt.UMIN)throw new Error("signed value for ulong");if(e>Jt.UMAX)throw new Error("ulong too large");return Jt.V.setBigUint64(0,e,!0),new t(Jt.V.getInt32(0,!0),Jt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!kSe.test(e))throw new Error("string is no integer");let[r,n,i]=kI.int64fromString(e);if(r)throw new Error("signed value for ulong");return new t(n,i);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new t(e,e/sQ)}throw new Error("unknown value "+typeof e)}toString(){return Jt?this.toBigInt().toString():kI.int64toString(this.lo,this.hi)}toBigInt(){return PSe(Jt),Jt.V.setInt32(0,this.lo,!0),Jt.V.setInt32(4,this.hi,!0),Jt.V.getBigUint64(0,!0)}};kf.PbULong=OI;OI.ZERO=new OI(0,0);var LI=class t extends oQ{static{o(this,"PbLong")}static from(e){if(Jt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Jt.C(e);case"number":if(e===0)return this.ZERO;e=Jt.C(e);case"bigint":if(!e)return this.ZERO;if(e<Jt.MIN)throw new Error("signed long too small");if(e>Jt.MAX)throw new Error("signed long too large");return Jt.V.setBigInt64(0,e,!0),new t(Jt.V.getInt32(0,!0),Jt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!kSe.test(e))throw new Error("string is no integer");let[r,n,i]=kI.int64fromString(e);if(r){if(i>iQ||i==iQ&&n!=0)throw new Error("signed long too small")}else if(i>=iQ)throw new Error("signed long too large");let s=new t(n,i);return r?s.negate():s;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new t(e,e/sQ):new t(-e,-e/sQ).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&iQ)!==0}negate(){let e=~this.hi,r=this.lo;return r?r=~r+1:e+=1,new t(r,e)}toString(){if(Jt)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+kI.int64toString(e.lo,e.hi)}return kI.int64toString(this.lo,this.hi)}toBigInt(){return PSe(Jt),Jt.V.setInt32(0,this.lo,!0),Jt.V.setInt32(4,this.hi,!0),Jt.V.getBigInt64(0,!0)}};kf.PbLong=LI;LI.ZERO=new LI(0,0)});var x8=m(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});zy.BinaryReader=zy.binaryReadOptions=void 0;var Vy=PI(),FI=Of(),OSe=nQ(),LSe={readUnknownField:!0,readerFactory:o(t=>new aQ(t),"readerFactory")};function KCt(t){return t?Object.assign(Object.assign({},LSe),t):LSe}o(KCt,"binaryReadOptions");zy.binaryReadOptions=KCt;var aQ=class{static{o(this,"BinaryReader")}constructor(e,r){this.varint64=OSe.varint64read,this.uint32=OSe.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 Vy.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case Vy.WireType.Bit64:this.pos+=4;case Vy.WireType.Bit32:this.pos+=4;break;case Vy.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case Vy.WireType.StartGroup:let i;for(;(i=this.tag()[1])!==Vy.WireType.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new FI.PbLong(...this.varint64())}uint64(){return new FI.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 FI.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 FI.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new FI.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())}};zy.BinaryReader=aQ});var $y=m(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.assertFloat32=ma.assertUInt32=ma.assertInt32=ma.assertNever=ma.assert=void 0;function XCt(t,e){if(!t)throw new Error(e)}o(XCt,"assert");ma.assert=XCt;function ZCt(t,e){throw new Error(e??"Unexpected object: "+t)}o(ZCt,"assertNever");ma.assertNever=ZCt;var ebt=34028234663852886e22,tbt=-34028234663852886e22,rbt=4294967295,nbt=2147483647,ibt=-2147483648;function sbt(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>nbt||t<ibt)throw new Error("invalid int 32: "+t)}o(sbt,"assertInt32");ma.assertInt32=sbt;function obt(t){if(typeof t!="number")throw new Error("invalid uint 32: "+typeof t);if(!Number.isInteger(t)||t>rbt||t<0)throw new Error("invalid uint 32: "+t)}o(obt,"assertUInt32");ma.assertUInt32=obt;function abt(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>ebt||t<tbt))throw new Error("invalid float 32: "+t)}o(abt,"assertFloat32");ma.assertFloat32=abt});var v8=m(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});Wy.BinaryWriter=Wy.binaryWriteOptions=void 0;var MI=Of(),UI=nQ(),jy=$y(),FSe={writeUnknownFields:!0,writerFactory:o(()=>new cQ,"writerFactory")};function cbt(t){return t?Object.assign(Object.assign({},FSe),t):FSe}o(cbt,"binaryWriteOptions");Wy.binaryWriteOptions=cbt;var cQ=class{static{o(this,"BinaryWriter")}constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let i=0;i<this.chunks.length;i++)e+=this.chunks[i].length;let r=new Uint8Array(e),n=0;for(let i=0;i<this.chunks.length;i++)r.set(this.chunks[i],n),n+=this.chunks[i].length;return this.chunks=[],r}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),r=this.stack.pop();if(!r)throw new Error("invalid state, fork stack empty");return this.chunks=r.chunks,this.buf=r.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,r){return this.uint32((e<<3|r)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(jy.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return jy.assertInt32(e),UI.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){jy.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){jy.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){jy.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return jy.assertInt32(e),e=(e<<1^e>>31)>>>0,UI.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),i=MI.PbLong.from(e);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}fixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),i=MI.PbULong.from(e);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}int64(e){let r=MI.PbLong.from(e);return UI.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=MI.PbLong.from(e),n=r.hi>>31,i=r.lo<<1^n,s=(r.hi<<1|r.lo>>>31)^n;return UI.varint64write(i,s,this.buf),this}uint64(e){let r=MI.PbULong.from(e);return UI.varint64write(r.lo,r.hi,this.buf),this}};Wy.BinaryWriter=cQ});var N8=m(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.mergeJsonOptions=Lf.jsonWriteOptions=Lf.jsonReadOptions=void 0;var MSe={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},USe={ignoreUnknownFields:!1};function lbt(t){return t?Object.assign(Object.assign({},USe),t):USe}o(lbt,"jsonReadOptions");Lf.jsonReadOptions=lbt;function ubt(t){return t?Object.assign(Object.assign({},MSe),t):MSe}o(ubt,"jsonWriteOptions");Lf.jsonWriteOptions=ubt;function dbt(t,e){var r,n;let i=Object.assign(Object.assign({},t),e);return i.typeRegistry=[...(r=t?.typeRegistry)!==null&&r!==void 0?r:[],...(n=e?.typeRegistry)!==null&&n!==void 0?n:[]],i}o(dbt,"mergeJsonOptions");Lf.mergeJsonOptions=dbt});var qI=m(lQ=>{"use strict";Object.defineProperty(lQ,"__esModule",{value:!0});lQ.MESSAGE_TYPE=void 0;lQ.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var _8=m(uQ=>{"use strict";Object.defineProperty(uQ,"__esModule",{value:!0});uQ.lowerCamelCase=void 0;function fbt(t){let e=!1,r=[];for(let n=0;n<t.length;n++){let i=t.charAt(n);i=="_"?e=!0:/\d/.test(i)?(r.push(i),e=!0):e?(r.push(i.toUpperCase()),e=!1):n==0?r.push(i.toLowerCase()):r.push(i)}return r.join("")}o(fbt,"lowerCamelCase");uQ.lowerCamelCase=fbt});var fc=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.readMessageOption=kn.readFieldOption=kn.readFieldOptions=kn.normalizeFieldInfo=kn.RepeatType=kn.LongType=kn.ScalarType=void 0;var qSe=_8(),hbt;(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"})(hbt=kn.ScalarType||(kn.ScalarType={}));var pbt;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(pbt=kn.LongType||(kn.LongType={}));var GSe;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(GSe=kn.RepeatType||(kn.RepeatType={}));function Abt(t){var e,r,n,i;return t.localName=(e=t.localName)!==null&&e!==void 0?e:qSe.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:qSe.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:GSe.NO,t.opt=(i=t.opt)!==null&&i!==void 0?i:t.repeat||t.oneof?!1:t.kind=="message",t}o(Abt,"normalizeFieldInfo");kn.normalizeFieldInfo=Abt;function mbt(t,e,r,n){var i;let s=(i=t.fields.find((a,c)=>a.localName==e||c==e))===null||i===void 0?void 0:i.options;return s&&s[r]?n.fromJson(s[r]):void 0}o(mbt,"readFieldOptions");kn.readFieldOptions=mbt;function gbt(t,e,r,n){var i;let s=(i=t.fields.find((c,l)=>c.localName==e||l==e))===null||i===void 0?void 0:i.options;if(!s)return;let a=s[r];return a===void 0?a:n?n.fromJson(a):a}o(gbt,"readFieldOption");kn.readFieldOption=gbt;function ybt(t,e,r){let i=t.options[e];return i===void 0?i:r?r.fromJson(i):i}o(ybt,"readMessageOption");kn.readMessageOption=ybt});var T8=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.getSelectedOneofValue=Us.clearOneofValue=Us.setUnknownOneofValue=Us.setOneofValue=Us.getOneofValue=Us.isOneofGroup=void 0;function Ebt(t){if(typeof t!="object"||t===null||!t.hasOwnProperty("oneofKind"))return!1;switch(typeof t.oneofKind){case"string":return t[t.oneofKind]===void 0?!1:Object.keys(t).length==2;case"undefined":return Object.keys(t).length==1;default:return!1}}o(Ebt,"isOneofGroup");Us.isOneofGroup=Ebt;function Cbt(t,e){return t[e]}o(Cbt,"getOneofValue");Us.getOneofValue=Cbt;function bbt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}o(bbt,"setOneofValue");Us.setOneofValue=bbt;function wbt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}o(wbt,"setUnknownOneofValue");Us.setUnknownOneofValue=wbt;function Ibt(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}o(Ibt,"clearOneofValue");Us.clearOneofValue=Ibt;function Sbt(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}o(Sbt,"getSelectedOneofValue");Us.getSelectedOneofValue=Sbt});var D8=m(dQ=>{"use strict";Object.defineProperty(dQ,"__esModule",{value:!0});dQ.ReflectionTypeCheck=void 0;var Hr=fc(),Bbt=T8(),R8=class{static{o(this,"ReflectionTypeCheck")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}prepare(){if(this.data)return;let e=[],r=[],n=[];for(let i of this.fields)if(i.oneof)n.includes(i.oneof)||(n.push(i.oneof),e.push(i.oneof),r.push(i.oneof));else switch(r.push(i.localName),i.kind){case"scalar":case"enum":(!i.opt||i.repeat)&&e.push(i.localName);break;case"message":i.repeat&&e.push(i.localName);break;case"map":e.push(i.localName);break}this.data={req:e,known:r,oneofs:Object.values(n)}}is(e,r,n=!1){if(r<0)return!0;if(e==null||typeof e!="object")return!1;this.prepare();let i=Object.keys(e),s=this.data;if(i.length<s.req.length||s.req.some(a=>!i.includes(a))||!n&&i.some(a=>!s.known.includes(a)))return!1;if(r<1)return!0;for(let a of s.oneofs){let c=e[a];if(!Bbt.isOneofGroup(c))return!1;if(c.oneofKind===void 0)continue;let l=this.fields.find(u=>u.localName===c.oneofKind);if(!l||!this.field(c[c.oneofKind],l,n,r))return!1}for(let a of this.fields)if(a.oneof===void 0&&!this.field(e[a.localName],a,n,r))return!1;return!0}field(e,r,n,i){let s=r.repeat;switch(r.kind){case"scalar":return e===void 0?r.opt:s?this.scalars(e,r.T,i,r.L):this.scalar(e,r.T,r.L);case"enum":return e===void 0?r.opt:s?this.scalars(e,Hr.ScalarType.INT32,i):this.scalar(e,Hr.ScalarType.INT32);case"message":return e===void 0?!0:s?this.messages(e,r.T(),n,i):this.message(e,r.T(),n,i);case"map":if(typeof e!="object"||e===null)return!1;if(i<2)return!0;if(!this.mapKeys(e,r.K,i))return!1;switch(r.V.kind){case"scalar":return this.scalars(Object.values(e),r.V.T,i,r.V.L);case"enum":return this.scalars(Object.values(e),Hr.ScalarType.INT32,i);case"message":return this.messages(Object.values(e),r.V.T(),n,i)}break}return!0}message(e,r,n,i){return n?r.isAssignable(e,i):r.is(e,i)}messages(e,r,n,i){if(!Array.isArray(e))return!1;if(i<2)return!0;if(n){for(let s=0;s<e.length&&s<i;s++)if(!r.isAssignable(e[s],i-1))return!1}else for(let s=0;s<e.length&&s<i;s++)if(!r.is(e[s],i-1))return!1;return!0}scalar(e,r,n){let i=typeof e;switch(r){case Hr.ScalarType.UINT64:case Hr.ScalarType.FIXED64:case Hr.ScalarType.INT64:case Hr.ScalarType.SFIXED64:case Hr.ScalarType.SINT64:switch(n){case Hr.LongType.BIGINT:return i=="bigint";case Hr.LongType.NUMBER:return i=="number"&&!isNaN(e);default:return i=="string"}case Hr.ScalarType.BOOL:return i=="boolean";case Hr.ScalarType.STRING:return i=="string";case Hr.ScalarType.BYTES:return e instanceof Uint8Array;case Hr.ScalarType.DOUBLE:case Hr.ScalarType.FLOAT:return i=="number"&&!isNaN(e);default:return i=="number"&&Number.isInteger(e)}}scalars(e,r,n,i){if(!Array.isArray(e))return!1;if(n<2)return!0;if(Array.isArray(e)){for(let s=0;s<e.length&&s<n;s++)if(!this.scalar(e[s],r,i))return!1}return!0}mapKeys(e,r,n){let i=Object.keys(e);switch(r){case Hr.ScalarType.INT32:case Hr.ScalarType.FIXED32:case Hr.ScalarType.SFIXED32:case Hr.ScalarType.SINT32:case Hr.ScalarType.UINT32:return this.scalars(i.slice(0,n).map(s=>parseInt(s)),r,n);case Hr.ScalarType.BOOL:return this.scalars(i.slice(0,n).map(s=>s=="true"?!0:s=="false"?!1:s),r,n);default:return this.scalars(i,r,n,Hr.LongType.STRING)}}};dQ.ReflectionTypeCheck=R8});var hQ=m(fQ=>{"use strict";Object.defineProperty(fQ,"__esModule",{value:!0});fQ.reflectionLongConvert=void 0;var HSe=fc();function xbt(t,e){switch(e){case HSe.LongType.BIGINT:return t.toBigInt();case HSe.LongType.NUMBER:return t.toNumber();default:return t.toString()}}o(xbt,"reflectionLongConvert");fQ.reflectionLongConvert=xbt});var P8=m(mQ=>{"use strict";Object.defineProperty(mQ,"__esModule",{value:!0});mQ.ReflectionJsonReader=void 0;var VSe=XD(),vbt=eQ(),On=fc(),pQ=Of(),iA=$y(),AQ=hQ(),Q8=class{static{o(this,"ReflectionJsonReader")}constructor(e){this.info=e}prepare(){var e;if(this.fMap===void 0){this.fMap={};let r=(e=this.info.fields)!==null&&e!==void 0?e:[];for(let n of r)this.fMap[n.name]=n,this.fMap[n.jsonName]=n,this.fMap[n.localName]=n}}assert(e,r,n){if(!e){let i=VSe.typeofJsonValue(n);throw(i=="number"||i=="boolean")&&(i=n.toString()),new Error(`Cannot parse JSON ${i} for ${this.info.typeName}#${r}`)}}read(e,r,n){this.prepare();let i=[];for(let[s,a]of Object.entries(e)){let c=this.fMap[s];if(!c){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${s}`);continue}let l=c.localName,u;if(c.oneof){if(a===null&&(c.kind!=="enum"||c.T()[0]!=="google.protobuf.NullValue"))continue;if(i.includes(c.oneof))throw new Error(`Multiple members of the oneof group "${c.oneof}" of ${this.info.typeName} are present in JSON.`);i.push(c.oneof),u=r[c.oneof]={oneofKind:l}}else u=r;if(c.kind=="map"){if(a===null)continue;this.assert(VSe.isJsonObject(a),c.name,a);let d=u[l];for(let[f,h]of Object.entries(a)){this.assert(h!==null,c.name+" map value",null);let p;switch(c.V.kind){case"message":p=c.V.T().internalJsonRead(h,n);break;case"enum":if(p=this.enum(c.V.T(),h,c.name,n.ignoreUnknownFields),p===!1)continue;break;case"scalar":p=this.scalar(h,c.V.T,c.V.L,c.name);break}this.assert(p!==void 0,c.name+" map value",h);let g=f;c.K==On.ScalarType.BOOL&&(g=g=="true"?!0:g=="false"?!1:g),g=this.scalar(g,c.K,On.LongType.STRING,c.name).toString(),d[g]=p}}else if(c.repeat){if(a===null)continue;this.assert(Array.isArray(a),c.name,a);let d=u[l];for(let f of a){this.assert(f!==null,c.name,null);let h;switch(c.kind){case"message":h=c.T().internalJsonRead(f,n);break;case"enum":if(h=this.enum(c.T(),f,c.name,n.ignoreUnknownFields),h===!1)continue;break;case"scalar":h=this.scalar(f,c.T,c.L,c.name);break}this.assert(h!==void 0,c.name,a),d.push(h)}}else switch(c.kind){case"message":if(a===null&&c.T().typeName!="google.protobuf.Value"){this.assert(c.oneof===void 0,c.name+" (oneof member)",null);continue}u[l]=c.T().internalJsonRead(a,n,u[l]);break;case"enum":let d=this.enum(c.T(),a,c.name,n.ignoreUnknownFields);if(d===!1)continue;u[l]=d;break;case"scalar":u[l]=this.scalar(a,c.T,c.L,c.name);break}}}enum(e,r,n,i){if(e[0]=="google.protobuf.NullValue"&&iA.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 iA.assert(Number.isInteger(r),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${r}.`),r;case"string":let s=r;e[2]&&r.substring(0,e[2].length)===e[2]&&(s=r.substring(e[2].length));let a=e[1][s];return typeof a>"u"&&i?!1:(iA.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}iA.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof r}".`)}scalar(e,r,n,i){let s;try{switch(r){case On.ScalarType.DOUBLE:case On.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){s="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){s="extra whitespace";break}if(typeof e!="string"&&typeof e!="number")break;let a=Number(e);if(Number.isNaN(a)){s="not a number";break}if(!Number.isFinite(a)){s="too large or small";break}return r==On.ScalarType.FLOAT&&iA.assertFloat32(a),a;case On.ScalarType.INT32:case On.ScalarType.FIXED32:case On.ScalarType.SFIXED32:case On.ScalarType.SINT32:case On.ScalarType.UINT32:if(e===null)return 0;let c;if(typeof e=="number"?c=e:e===""?s="empty string":typeof e=="string"&&(e.trim().length!==e.length?s="extra whitespace":c=Number(e)),c===void 0)break;return r==On.ScalarType.UINT32?iA.assertUInt32(c):iA.assertInt32(c),c;case On.ScalarType.INT64:case On.ScalarType.SFIXED64:case On.ScalarType.SINT64:if(e===null)return AQ.reflectionLongConvert(pQ.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return AQ.reflectionLongConvert(pQ.PbLong.from(e),n);case On.ScalarType.FIXED64:case On.ScalarType.UINT64:if(e===null)return AQ.reflectionLongConvert(pQ.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return AQ.reflectionLongConvert(pQ.PbULong.from(e),n);case On.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case On.ScalarType.STRING:if(e===null)return"";if(typeof e!="string"){s="extra whitespace";break}try{encodeURIComponent(e)}catch(l){l="invalid UTF8";break}return e;case On.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return vbt.base64decode(e)}}catch(a){s=a.message}this.assert(!1,i+(s?" - "+s:""),e)}};mQ.ReflectionJsonReader=Q8});var O8=m(gQ=>{"use strict";Object.defineProperty(gQ,"__esModule",{value:!0});gQ.ReflectionJsonWriter=void 0;var Nbt=eQ(),zSe=Of(),os=fc(),wr=$y(),k8=class{static{o(this,"ReflectionJsonWriter")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}write(e,r){let n={},i=e;for(let s of this.fields){if(!s.oneof){let u=this.field(s,i[s.localName],r);u!==void 0&&(n[r.useProtoFieldName?s.name:s.jsonName]=u);continue}let a=i[s.oneof];if(a.oneofKind!==s.localName)continue;let c=s.kind=="scalar"||s.kind=="enum"?Object.assign(Object.assign({},r),{emitDefaultValues:!0}):r,l=this.field(s,a[s.localName],c);wr.assert(l!==void 0),n[r.useProtoFieldName?s.name:s.jsonName]=l}return n}field(e,r,n){let i;if(e.kind=="map"){wr.assert(typeof r=="object"&&r!==null);let s={};switch(e.V.kind){case"scalar":for(let[l,u]of Object.entries(r)){let d=this.scalar(e.V.T,u,e.name,!1,!0);wr.assert(d!==void 0),s[l.toString()]=d}break;case"message":let a=e.V.T();for(let[l,u]of Object.entries(r)){let d=this.message(a,u,e.name,n);wr.assert(d!==void 0),s[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){wr.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);wr.assert(d!==void 0),s[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(s).length>0)&&(i=s)}else if(e.repeat){wr.assert(Array.isArray(r));let s=[];switch(e.kind){case"scalar":for(let l=0;l<r.length;l++){let u=this.scalar(e.T,r[l],e.name,e.opt,!0);wr.assert(u!==void 0),s.push(u)}break;case"enum":let a=e.T();for(let l=0;l<r.length;l++){wr.assert(r[l]===void 0||typeof r[l]=="number");let u=this.enum(a,r[l],e.name,e.opt,!0,n.enumAsInteger);wr.assert(u!==void 0),s.push(u)}break;case"message":let c=e.T();for(let l=0;l<r.length;l++){let u=this.message(c,r[l],e.name,n);wr.assert(u!==void 0),s.push(u)}break}(n.emitDefaultValues||s.length>0||n.emitDefaultValues)&&(i=s)}else switch(e.kind){case"scalar":i=this.scalar(e.T,r,e.name,e.opt,n.emitDefaultValues);break;case"enum":i=this.enum(e.T(),r,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":i=this.message(e.T(),r,e.name,n);break}return i}enum(e,r,n,i,s,a){if(e[0]=="google.protobuf.NullValue")return!s&&!i?void 0:null;if(r===void 0){wr.assert(i);return}if(!(r===0&&!s&&!i))return wr.assert(typeof r=="number"),wr.assert(Number.isInteger(r)),a||!e[1].hasOwnProperty(r)?r:e[2]?e[2]+e[1][r]:e[1][r]}message(e,r,n,i){return r===void 0?i.emitDefaultValues?null:void 0:e.internalJsonWrite(r,i)}scalar(e,r,n,i,s){if(r===void 0){wr.assert(i);return}let a=s||i;switch(e){case os.ScalarType.INT32:case os.ScalarType.SFIXED32:case os.ScalarType.SINT32:return r===0?a?0:void 0:(wr.assertInt32(r),r);case os.ScalarType.FIXED32:case os.ScalarType.UINT32:return r===0?a?0:void 0:(wr.assertUInt32(r),r);case os.ScalarType.FLOAT:wr.assertFloat32(r);case os.ScalarType.DOUBLE:return r===0?a?0:void 0:(wr.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case os.ScalarType.STRING:return r===""?a?"":void 0:(wr.assert(typeof r=="string"),r);case os.ScalarType.BOOL:return r===!1?a?!1:void 0:(wr.assert(typeof r=="boolean"),r);case os.ScalarType.UINT64:case os.ScalarType.FIXED64:wr.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=zSe.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case os.ScalarType.INT64:case os.ScalarType.SFIXED64:case os.ScalarType.SINT64:wr.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=zSe.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case os.ScalarType.BYTES:return wr.assert(r instanceof Uint8Array),r.byteLength?Nbt.base64encode(r):a?"":void 0}}};gQ.ReflectionJsonWriter=k8});var EQ=m(yQ=>{"use strict";Object.defineProperty(yQ,"__esModule",{value:!0});yQ.reflectionScalarDefault=void 0;var hc=fc(),$Se=hQ(),jSe=Of();function _bt(t,e=hc.LongType.STRING){switch(t){case hc.ScalarType.BOOL:return!1;case hc.ScalarType.UINT64:case hc.ScalarType.FIXED64:return $Se.reflectionLongConvert(jSe.PbULong.ZERO,e);case hc.ScalarType.INT64:case hc.ScalarType.SFIXED64:case hc.ScalarType.SINT64:return $Se.reflectionLongConvert(jSe.PbLong.ZERO,e);case hc.ScalarType.DOUBLE:case hc.ScalarType.FLOAT:return 0;case hc.ScalarType.BYTES:return new Uint8Array(0);case hc.ScalarType.STRING:return"";default:return 0}}o(_bt,"reflectionScalarDefault");yQ.reflectionScalarDefault=_bt});var F8=m(CQ=>{"use strict";Object.defineProperty(CQ,"__esModule",{value:!0});CQ.ReflectionBinaryReader=void 0;var WSe=PI(),cn=fc(),GI=hQ(),JSe=EQ(),L8=class{static{o(this,"ReflectionBinaryReader")}constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){let r=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(r.map(n=>[n.no,n]))}}read(e,r,n,i){this.prepare();let s=i===void 0?e.len:e.pos+i;for(;e.pos<s;){let[a,c]=e.tag(),l=this.fieldNoToField.get(a);if(!l){let h=n.readUnknownField;if(h=="throw")throw new Error(`Unknown field ${a} (wire type ${c}) for ${this.info.typeName}`);let p=e.skip(c);h!==!1&&(h===!0?WSe.UnknownFieldHandler.onRead:h)(this.info.typeName,r,a,c,p);continue}let u=r,d=l.repeat,f=l.localName;switch(l.oneof&&(u=u[l.oneof],u.oneofKind!==f&&(u=r[l.oneof]={oneofKind:f})),l.kind){case"scalar":case"enum":let h=l.kind=="enum"?cn.ScalarType.INT32:l.T,p=l.kind=="scalar"?l.L:void 0;if(d){let E=u[f];if(c==WSe.WireType.LengthDelimited&&h!=cn.ScalarType.STRING&&h!=cn.ScalarType.BYTES){let y=e.uint32()+e.pos;for(;e.pos<y;)E.push(this.scalar(e,h,p))}else E.push(this.scalar(e,h,p))}else u[f]=this.scalar(e,h,p);break;case"message":if(d){let E=u[f],y=l.T().internalBinaryRead(e,e.uint32(),n);E.push(y)}else u[f]=l.T().internalBinaryRead(e,e.uint32(),n,u[f]);break;case"map":let[g,A]=this.mapEntry(l,e,n);u[f][g]=A;break}}}mapEntry(e,r,n){let i=r.uint32(),s=r.pos+i,a,c;for(;r.pos<s;){let[l,u]=r.tag();switch(l){case 1:e.K==cn.ScalarType.BOOL?a=r.bool().toString():a=this.scalar(r,e.K,cn.LongType.STRING);break;case 2:switch(e.V.kind){case"scalar":c=this.scalar(r,e.V.T,e.V.L);break;case"enum":c=r.int32();break;case"message":c=e.V.T().internalBinaryRead(r,r.uint32(),n);break}break;default:throw new Error(`Unknown field ${l} (wire type ${u}) in map entry for ${this.info.typeName}#${e.name}`)}}if(a===void 0){let l=JSe.reflectionScalarDefault(e.K);a=e.K==cn.ScalarType.BOOL?l.toString():l}if(c===void 0)switch(e.V.kind){case"scalar":c=JSe.reflectionScalarDefault(e.V.T,e.V.L);break;case"enum":c=0;break;case"message":c=e.V.T().create();break}return[a,c]}scalar(e,r,n){switch(r){case cn.ScalarType.INT32:return e.int32();case cn.ScalarType.STRING:return e.string();case cn.ScalarType.BOOL:return e.bool();case cn.ScalarType.DOUBLE:return e.double();case cn.ScalarType.FLOAT:return e.float();case cn.ScalarType.INT64:return GI.reflectionLongConvert(e.int64(),n);case cn.ScalarType.UINT64:return GI.reflectionLongConvert(e.uint64(),n);case cn.ScalarType.FIXED64:return GI.reflectionLongConvert(e.fixed64(),n);case cn.ScalarType.FIXED32:return e.fixed32();case cn.ScalarType.BYTES:return e.bytes();case cn.ScalarType.UINT32:return e.uint32();case cn.ScalarType.SFIXED32:return e.sfixed32();case cn.ScalarType.SFIXED64:return GI.reflectionLongConvert(e.sfixed64(),n);case cn.ScalarType.SINT32:return e.sint32();case cn.ScalarType.SINT64:return GI.reflectionLongConvert(e.sint64(),n)}}};CQ.ReflectionBinaryReader=L8});var U8=m(bQ=>{"use strict";Object.defineProperty(bQ,"__esModule",{value:!0});bQ.ReflectionBinaryWriter=void 0;var So=PI(),tr=fc(),Jy=$y(),HI=Of(),M8=class{static{o(this,"ReflectionBinaryWriter")}constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((r,n)=>r.no-n.no)}}write(e,r,n){this.prepare();for(let s of this.fields){let a,c,l=s.repeat,u=s.localName;if(s.oneof){let d=e[s.oneof];if(d.oneofKind!==u)continue;a=d[u],c=!0}else a=e[u],c=!1;switch(s.kind){case"scalar":case"enum":let d=s.kind=="enum"?tr.ScalarType.INT32:s.T;if(l)if(Jy.assert(Array.isArray(a)),l==tr.RepeatType.PACKED)this.packed(r,d,s.no,a);else for(let f of a)this.scalar(r,d,s.no,f,!0);else a===void 0?Jy.assert(s.opt):this.scalar(r,d,s.no,a,c||s.opt);break;case"message":if(l){Jy.assert(Array.isArray(a));for(let f of a)this.message(r,n,s.T(),s.no,f)}else this.message(r,n,s.T(),s.no,a);break;case"map":Jy.assert(typeof a=="object"&&a!==null);for(let[f,h]of Object.entries(a))this.mapEntry(r,n,s,f,h);break}}let i=n.writeUnknownFields;i!==!1&&(i===!0?So.UnknownFieldHandler.onWrite:i)(this.info.typeName,e,r)}mapEntry(e,r,n,i,s){e.tag(n.no,So.WireType.LengthDelimited),e.fork();let a=i;switch(n.K){case tr.ScalarType.INT32:case tr.ScalarType.FIXED32:case tr.ScalarType.UINT32:case tr.ScalarType.SFIXED32:case tr.ScalarType.SINT32:a=Number.parseInt(i);break;case tr.ScalarType.BOOL:Jy.assert(i=="true"||i=="false"),a=i=="true";break}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,s,!0);break;case"enum":this.scalar(e,tr.ScalarType.INT32,2,s,!0);break;case"message":this.message(e,r,n.V.T(),2,s);break}e.join()}message(e,r,n,i,s){s!==void 0&&(n.internalBinaryWrite(s,e.tag(i,So.WireType.LengthDelimited).fork(),r),e.join())}scalar(e,r,n,i,s){let[a,c,l]=this.scalarInfo(r,i);(!l||s)&&(e.tag(n,a),e[c](i))}packed(e,r,n,i){if(!i.length)return;Jy.assert(r!==tr.ScalarType.BYTES&&r!==tr.ScalarType.STRING),e.tag(n,So.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(r);for(let a=0;a<i.length;a++)e[s](i[a]);e.join()}scalarInfo(e,r){let n=So.WireType.Varint,i,s=r===void 0,a=r===0;switch(e){case tr.ScalarType.INT32:i="int32";break;case tr.ScalarType.STRING:a=s||!r.length,n=So.WireType.LengthDelimited,i="string";break;case tr.ScalarType.BOOL:a=r===!1,i="bool";break;case tr.ScalarType.UINT32:i="uint32";break;case tr.ScalarType.DOUBLE:n=So.WireType.Bit64,i="double";break;case tr.ScalarType.FLOAT:n=So.WireType.Bit32,i="float";break;case tr.ScalarType.INT64:a=s||HI.PbLong.from(r).isZero(),i="int64";break;case tr.ScalarType.UINT64:a=s||HI.PbULong.from(r).isZero(),i="uint64";break;case tr.ScalarType.FIXED64:a=s||HI.PbULong.from(r).isZero(),n=So.WireType.Bit64,i="fixed64";break;case tr.ScalarType.BYTES:a=s||!r.byteLength,n=So.WireType.LengthDelimited,i="bytes";break;case tr.ScalarType.FIXED32:n=So.WireType.Bit32,i="fixed32";break;case tr.ScalarType.SFIXED32:n=So.WireType.Bit32,i="sfixed32";break;case tr.ScalarType.SFIXED64:a=s||HI.PbLong.from(r).isZero(),n=So.WireType.Bit64,i="sfixed64";break;case tr.ScalarType.SINT32:i="sint32";break;case tr.ScalarType.SINT64:a=s||HI.PbLong.from(r).isZero(),i="sint64";break}return[n,i,s||a]}};bQ.ReflectionBinaryWriter=M8});var q8=m(wQ=>{"use strict";Object.defineProperty(wQ,"__esModule",{value:!0});wQ.reflectionCreate=void 0;var Tbt=EQ(),Rbt=qI();function Dbt(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},Rbt.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]=Tbt.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}o(Dbt,"reflectionCreate");wQ.reflectionCreate=Dbt});var G8=m(IQ=>{"use strict";Object.defineProperty(IQ,"__esModule",{value:!0});IQ.reflectionMergePartial=void 0;function Qbt(t,e,r){let n,i=r,s;for(let a of t.fields){let c=a.localName;if(a.oneof){let l=i[a.oneof];if(l?.oneofKind==null)continue;if(n=l[c],s=e[a.oneof],s.oneofKind=l.oneofKind,n==null){delete s[c];continue}}else if(n=i[c],s=e,n==null)continue;switch(a.repeat&&(s[c].length=n.length),a.kind){case"scalar":case"enum":if(a.repeat)for(let u=0;u<n.length;u++)s[c][u]=n[u];else s[c]=n;break;case"message":let l=a.T();if(a.repeat)for(let u=0;u<n.length;u++)s[c][u]=l.create(n[u]);else s[c]===void 0?s[c]=l.create(n):l.mergePartial(s[c],n);break;case"map":switch(a.V.kind){case"scalar":case"enum":Object.assign(s[c],n);break;case"message":let u=a.V.T();for(let d of Object.keys(n))s[c][d]=u.create(n[d]);break}break}}}o(Qbt,"reflectionMergePartial");IQ.reflectionMergePartial=Qbt});var V8=m(BQ=>{"use strict";Object.defineProperty(BQ,"__esModule",{value:!0});BQ.reflectionEquals=void 0;var H8=fc();function Pbt(t,e,r){if(e===r)return!0;if(!e||!r)return!1;for(let n of t.fields){let i=n.localName,s=n.oneof?e[n.oneof][i]:e[i],a=n.oneof?r[n.oneof][i]:r[i];switch(n.kind){case"enum":case"scalar":let c=n.kind=="enum"?H8.ScalarType.INT32:n.T;if(!(n.repeat?YSe(c,s,a):XSe(c,s,a)))return!1;break;case"map":if(!(n.V.kind=="message"?KSe(n.V.T(),SQ(s),SQ(a)):YSe(n.V.kind=="enum"?H8.ScalarType.INT32:n.V.T,SQ(s),SQ(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?KSe(l,s,a):l.equals(s,a)))return!1;break}}return!0}o(Pbt,"reflectionEquals");BQ.reflectionEquals=Pbt;var SQ=Object.values;function XSe(t,e,r){if(e===r)return!0;if(t!==H8.ScalarType.BYTES)return!1;let n=e,i=r;if(n.length!==i.length)return!1;for(let s=0;s<n.length;s++)if(n[s]!=i[s])return!1;return!0}o(XSe,"primitiveEq");function YSe(t,e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!XSe(t,e[n],r[n]))return!1;return!0}o(YSe,"repeatedPrimitiveEq");function KSe(t,e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!t.equals(e[n],r[n]))return!1;return!0}o(KSe,"repeatedMsgEq")});var eBe=m(xQ=>{"use strict";Object.defineProperty(xQ,"__esModule",{value:!0});xQ.MessageType=void 0;var kbt=qI(),Obt=fc(),Lbt=D8(),Fbt=P8(),Mbt=O8(),Ubt=F8(),qbt=U8(),Gbt=q8(),z8=G8(),Hbt=XD(),ZSe=N8(),Vbt=V8(),zbt=v8(),$bt=x8(),jbt=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),$8=class{static{o(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(Obt.normalizeFieldInfo),this.options=n??{},this.messagePrototype=Object.create(null,Object.assign(Object.assign({},jbt),{[kbt.MESSAGE_TYPE]:{value:this}})),this.refTypeCheck=new Lbt.ReflectionTypeCheck(this),this.refJsonReader=new Fbt.ReflectionJsonReader(this),this.refJsonWriter=new Mbt.ReflectionJsonWriter(this),this.refBinReader=new Ubt.ReflectionBinaryReader(this),this.refBinWriter=new qbt.ReflectionBinaryWriter(this)}create(e){let r=Gbt.reflectionCreate(this);return e!==void 0&&z8.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return z8.reflectionMergePartial(this,r,e),r}equals(e,r){return Vbt.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){z8.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=$bt.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,ZSe.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,ZSe.jsonWriteOptions(r))}toJsonString(e,r){var n;let i=this.toJson(e,r);return JSON.stringify(i,null,(n=r?.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,r){let n=zbt.binaryWriteOptions(r);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,r,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let i=n??this.create();return this.refJsonReader.read(e,i,r),i}throw new Error(`Unable to parse message ${this.typeName} from JSON ${Hbt.typeofJsonValue(e)}.`)}internalJsonWrite(e,r){return this.refJsonWriter.write(e,r)}internalBinaryWrite(e,r,n){return this.refBinWriter.write(e,r,n),r}internalBinaryRead(e,r,n,i){let s=i??this.create();return this.refBinReader.read(e,s,n,r),s}};xQ.MessageType=$8});var tBe=m(vQ=>{"use strict";Object.defineProperty(vQ,"__esModule",{value:!0});vQ.containsMessageType=void 0;var Wbt=qI();function Jbt(t){return t[Wbt.MESSAGE_TYPE]!=null}o(Jbt,"containsMessageType");vQ.containsMessageType=Jbt});var nBe=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.listEnumNumbers=Rl.listEnumNames=Rl.listEnumValues=Rl.isEnumObject=void 0;function rBe(t){if(typeof t!="object"||t===null||!t.hasOwnProperty(0))return!1;for(let e of Object.keys(t)){let r=parseInt(e);if(Number.isNaN(r)){let n=t[e];if(n===void 0||typeof n!="number"||t[n]===void 0)return!1}else{let n=t[r];if(n===void 0||t[n]!==r)return!1}}return!0}o(rBe,"isEnumObject");Rl.isEnumObject=rBe;function j8(t){if(!rBe(t))throw new Error("not a typescript enum object");let e=[];for(let[r,n]of Object.entries(t))typeof n=="number"&&e.push({name:r,number:n});return e}o(j8,"listEnumValues");Rl.listEnumValues=j8;function Ybt(t){return j8(t).map(e=>e.name)}o(Ybt,"listEnumNames");Rl.listEnumNames=Ybt;function Kbt(t){return j8(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}o(Kbt,"listEnumNumbers");Rl.listEnumNumbers=Kbt});var cr=m(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});var iBe=XD();Object.defineProperty(De,"typeofJsonValue",{enumerable:!0,get:o(function(){return iBe.typeofJsonValue},"get")});Object.defineProperty(De,"isJsonObject",{enumerable:!0,get:o(function(){return iBe.isJsonObject},"get")});var sBe=eQ();Object.defineProperty(De,"base64decode",{enumerable:!0,get:o(function(){return sBe.base64decode},"get")});Object.defineProperty(De,"base64encode",{enumerable:!0,get:o(function(){return sBe.base64encode},"get")});var Xbt=DSe();Object.defineProperty(De,"utf8read",{enumerable:!0,get:o(function(){return Xbt.utf8read},"get")});var W8=PI();Object.defineProperty(De,"WireType",{enumerable:!0,get:o(function(){return W8.WireType},"get")});Object.defineProperty(De,"mergeBinaryOptions",{enumerable:!0,get:o(function(){return W8.mergeBinaryOptions},"get")});Object.defineProperty(De,"UnknownFieldHandler",{enumerable:!0,get:o(function(){return W8.UnknownFieldHandler},"get")});var oBe=x8();Object.defineProperty(De,"BinaryReader",{enumerable:!0,get:o(function(){return oBe.BinaryReader},"get")});Object.defineProperty(De,"binaryReadOptions",{enumerable:!0,get:o(function(){return oBe.binaryReadOptions},"get")});var aBe=v8();Object.defineProperty(De,"BinaryWriter",{enumerable:!0,get:o(function(){return aBe.BinaryWriter},"get")});Object.defineProperty(De,"binaryWriteOptions",{enumerable:!0,get:o(function(){return aBe.binaryWriteOptions},"get")});var cBe=Of();Object.defineProperty(De,"PbLong",{enumerable:!0,get:o(function(){return cBe.PbLong},"get")});Object.defineProperty(De,"PbULong",{enumerable:!0,get:o(function(){return cBe.PbULong},"get")});var J8=N8();Object.defineProperty(De,"jsonReadOptions",{enumerable:!0,get:o(function(){return J8.jsonReadOptions},"get")});Object.defineProperty(De,"jsonWriteOptions",{enumerable:!0,get:o(function(){return J8.jsonWriteOptions},"get")});Object.defineProperty(De,"mergeJsonOptions",{enumerable:!0,get:o(function(){return J8.mergeJsonOptions},"get")});var Zbt=qI();Object.defineProperty(De,"MESSAGE_TYPE",{enumerable:!0,get:o(function(){return Zbt.MESSAGE_TYPE},"get")});var e0t=eBe();Object.defineProperty(De,"MessageType",{enumerable:!0,get:o(function(){return e0t.MessageType},"get")});var sA=fc();Object.defineProperty(De,"ScalarType",{enumerable:!0,get:o(function(){return sA.ScalarType},"get")});Object.defineProperty(De,"LongType",{enumerable:!0,get:o(function(){return sA.LongType},"get")});Object.defineProperty(De,"RepeatType",{enumerable:!0,get:o(function(){return sA.RepeatType},"get")});Object.defineProperty(De,"normalizeFieldInfo",{enumerable:!0,get:o(function(){return sA.normalizeFieldInfo},"get")});Object.defineProperty(De,"readFieldOptions",{enumerable:!0,get:o(function(){return sA.readFieldOptions},"get")});Object.defineProperty(De,"readFieldOption",{enumerable:!0,get:o(function(){return sA.readFieldOption},"get")});Object.defineProperty(De,"readMessageOption",{enumerable:!0,get:o(function(){return sA.readMessageOption},"get")});var t0t=D8();Object.defineProperty(De,"ReflectionTypeCheck",{enumerable:!0,get:o(function(){return t0t.ReflectionTypeCheck},"get")});var r0t=q8();Object.defineProperty(De,"reflectionCreate",{enumerable:!0,get:o(function(){return r0t.reflectionCreate},"get")});var n0t=EQ();Object.defineProperty(De,"reflectionScalarDefault",{enumerable:!0,get:o(function(){return n0t.reflectionScalarDefault},"get")});var i0t=G8();Object.defineProperty(De,"reflectionMergePartial",{enumerable:!0,get:o(function(){return i0t.reflectionMergePartial},"get")});var s0t=V8();Object.defineProperty(De,"reflectionEquals",{enumerable:!0,get:o(function(){return s0t.reflectionEquals},"get")});var o0t=F8();Object.defineProperty(De,"ReflectionBinaryReader",{enumerable:!0,get:o(function(){return o0t.ReflectionBinaryReader},"get")});var a0t=U8();Object.defineProperty(De,"ReflectionBinaryWriter",{enumerable:!0,get:o(function(){return a0t.ReflectionBinaryWriter},"get")});var c0t=P8();Object.defineProperty(De,"ReflectionJsonReader",{enumerable:!0,get:o(function(){return c0t.ReflectionJsonReader},"get")});var l0t=O8();Object.defineProperty(De,"ReflectionJsonWriter",{enumerable:!0,get:o(function(){return l0t.ReflectionJsonWriter},"get")});var u0t=tBe();Object.defineProperty(De,"containsMessageType",{enumerable:!0,get:o(function(){return u0t.containsMessageType},"get")});var VI=T8();Object.defineProperty(De,"isOneofGroup",{enumerable:!0,get:o(function(){return VI.isOneofGroup},"get")});Object.defineProperty(De,"setOneofValue",{enumerable:!0,get:o(function(){return VI.setOneofValue},"get")});Object.defineProperty(De,"getOneofValue",{enumerable:!0,get:o(function(){return VI.getOneofValue},"get")});Object.defineProperty(De,"clearOneofValue",{enumerable:!0,get:o(function(){return VI.clearOneofValue},"get")});Object.defineProperty(De,"getSelectedOneofValue",{enumerable:!0,get:o(function(){return VI.getSelectedOneofValue},"get")});var NQ=nBe();Object.defineProperty(De,"listEnumValues",{enumerable:!0,get:o(function(){return NQ.listEnumValues},"get")});Object.defineProperty(De,"listEnumNames",{enumerable:!0,get:o(function(){return NQ.listEnumNames},"get")});Object.defineProperty(De,"listEnumNumbers",{enumerable:!0,get:o(function(){return NQ.listEnumNumbers},"get")});Object.defineProperty(De,"isEnumObject",{enumerable:!0,get:o(function(){return NQ.isEnumObject},"get")});var d0t=_8();Object.defineProperty(De,"lowerCamelCase",{enumerable:!0,get:o(function(){return d0t.lowerCamelCase},"get")});var zI=$y();Object.defineProperty(De,"assert",{enumerable:!0,get:o(function(){return zI.assert},"get")});Object.defineProperty(De,"assertNever",{enumerable:!0,get:o(function(){return zI.assertNever},"get")});Object.defineProperty(De,"assertInt32",{enumerable:!0,get:o(function(){return zI.assertInt32},"get")});Object.defineProperty(De,"assertUInt32",{enumerable:!0,get:o(function(){return zI.assertUInt32},"get")});Object.defineProperty(De,"assertFloat32",{enumerable:!0,get:o(function(){return zI.assertFloat32},"get")})});var l6=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.readServiceOption=Ol.readMethodOption=Ol.readMethodOptions=Ol.normalizeMethodInfo=void 0;var f0t=cr();function h0t(t,e){var r,n,i;let s=t;return s.service=e,s.localName=(r=s.localName)!==null&&r!==void 0?r:f0t.lowerCamelCase(s.name),s.serverStreaming=!!s.serverStreaming,s.clientStreaming=!!s.clientStreaming,s.options=(n=s.options)!==null&&n!==void 0?n:{},s.idempotency=(i=s.idempotency)!==null&&i!==void 0?i:void 0,s}o(h0t,"normalizeMethodInfo");Ol.normalizeMethodInfo=h0t;function p0t(t,e,r,n){var i;let s=(i=t.methods.find((a,c)=>a.localName===e||c===e))===null||i===void 0?void 0:i.options;return s&&s[r]?n.fromJson(s[r]):void 0}o(p0t,"readMethodOptions");Ol.readMethodOptions=p0t;function A0t(t,e,r,n){var i;let s=(i=t.methods.find((c,l)=>c.localName===e||l===e))===null||i===void 0?void 0:i.options;if(!s)return;let a=s[r];return a===void 0?a:n?n.fromJson(a):a}o(A0t,"readMethodOption");Ol.readMethodOption=A0t;function m0t(t,e,r){let n=t.options;if(!n)return;let i=n[e];return i===void 0?i:r?r.fromJson(i):i}o(m0t,"readServiceOption");Ol.readServiceOption=m0t});var hBe=m(_Q=>{"use strict";Object.defineProperty(_Q,"__esModule",{value:!0});_Q.ServiceType=void 0;var g0t=l6(),u6=class{static{o(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(i=>g0t.normalizeMethodInfo(i,this)),this.options=n??{}}};_Q.ServiceType=u6});var f6=m(TQ=>{"use strict";Object.defineProperty(TQ,"__esModule",{value:!0});TQ.RpcError=void 0;var d6=class extends Error{static{o(this,"RpcError")}constructor(e,r="UNKNOWN",n){super(e),this.name="RpcError",Object.setPrototypeOf(this,new.target.prototype),this.code=r,this.meta=n??{}}toString(){let e=[this.name+": "+this.message];this.code&&(e.push(""),e.push("Code: "+this.code)),this.serviceName&&this.methodName&&e.push("Method: "+this.serviceName+"/"+this.methodName);let r=Object.entries(this.meta);if(r.length){e.push(""),e.push("Meta:");for(let[n,i]of r)e.push(` ${n}: ${i}`)}return e.join(`
|
|
`)}};TQ.RpcError=d6});var h6=m(DQ=>{"use strict";Object.defineProperty(DQ,"__esModule",{value:!0});DQ.mergeRpcOptions=void 0;var pBe=cr();function y0t(t,e){if(!e)return t;let r={};RQ(t,r),RQ(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=pBe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=pBe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},RQ(t.meta,r.meta),RQ(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(y0t,"mergeRpcOptions");DQ.mergeRpcOptions=y0t;function RQ(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}o(RQ,"copy")});var A6=m(oA=>{"use strict";Object.defineProperty(oA,"__esModule",{value:!0});oA.Deferred=oA.DeferredState=void 0;var Ll;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ll=oA.DeferredState||(oA.DeferredState={}));var p6=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Ll.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!==Ll.PENDING)throw new Error(`cannot resolve ${Ll[this.state].toLowerCase()}`);this._resolve(e),this._state=Ll.RESOLVED}reject(e){if(this.state!==Ll.PENDING)throw new Error(`cannot reject ${Ll[this.state].toLowerCase()}`);this._reject(e),this._state=Ll.REJECTED}resolvePending(e){this._state===Ll.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ll.PENDING&&this.reject(e)}};oA.Deferred=p6});var g6=m(QQ=>{"use strict";Object.defineProperty(QQ,"__esModule",{value:!0});QQ.RpcOutputStreamController=void 0;var ABe=A6(),aA=cr(),m6=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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){aA.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){aA.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){aA.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(){aA.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;aA.assert(e,"bad state"),aA.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 ABe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r)if(r.p){let n=r.p;aA.assert(n.state==ABe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};QQ.RpcOutputStreamController=m6});var E6=m(Xy=>{"use strict";var E0t=Xy&&Xy.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Xy,"__esModule",{value:!0});Xy.UnaryCall=void 0;var y6=class{static{o(this,"UnaryCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return E0t(this,void 0,void 0,function*(){let[e,r,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:i}})}};Xy.UnaryCall=y6});var b6=m(Zy=>{"use strict";var C0t=Zy&&Zy.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Zy,"__esModule",{value:!0});Zy.ServerStreamingCall=void 0;var C6=class{static{o(this,"ServerStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.responses=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return C0t(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}})}};Zy.ServerStreamingCall=C6});var I6=m(eE=>{"use strict";var b0t=eE&&eE.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(eE,"__esModule",{value:!0});eE.ClientStreamingCall=void 0;var w6=class{static{o(this,"ClientStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=i,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return b0t(this,void 0,void 0,function*(){let[e,r,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:r,status:n,trailers:i}})}};eE.ClientStreamingCall=w6});var B6=m(tE=>{"use strict";var w0t=tE&&tE.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(tE,"__esModule",{value:!0});tE.DuplexStreamingCall=void 0;var S6=class{static{o(this,"DuplexStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=i,this.responses=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return w0t(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}})}};tE.DuplexStreamingCall=S6});var gBe=m(iE=>{"use strict";var I0t=iE&&iE.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(iE,"__esModule",{value:!0});iE.TestTransport=void 0;var ga=f6(),PQ=cr(),mBe=g6(),S0t=h6(),B0t=E6(),x0t=b6(),v0t=I6(),N0t=B6(),nE=class t{static{o(this,"TestTransport")}constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof rE?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof rE?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 ga.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof ga.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(PQ.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),PQ.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return I0t(this,void 0,void 0,function*(){let i=[];if(this.data.response===void 0)i.push(e.O.create());else if(Array.isArray(this.data.response))for(let s of this.data.response)PQ.assert(e.O.is(s)),i.push(s);else this.data.response instanceof ga.RpcError||(PQ.assert(e.O.is(this.data.response)),i.push(this.data.response));try{yield Kn(this.responseDelay,n)(void 0)}catch(s){r.notifyError(s);return}if(this.data.response instanceof ga.RpcError){r.notifyError(this.data.response);return}for(let s of i){r.notifyMessage(s);try{yield Kn(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof ga.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof ga.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 ga.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 ga.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return S0t.mergeRpcOptions({},e)}unary(e,r,n){var i;let s=(i=n.meta)!==null&&i!==void 0?i:{},a=this.promiseHeaders().then(Kn(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(Kn(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(Kn(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(Kn(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new B0t.UnaryCall(e,s,r,a,c,l,u)}serverStreaming(e,r,n){var i;let s=(i=n.meta)!==null&&i!==void 0?i:{},a=this.promiseHeaders().then(Kn(this.headerDelay,n.abort)),c=new mBe.RpcOutputStreamController,l=a.then(Kn(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(Kn(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new x0t.ServerStreamingCall(e,s,r,a,c,u,d)}clientStreaming(e,r){var n;let i=(n=r.meta)!==null&&n!==void 0?n:{},s=this.promiseHeaders().then(Kn(this.headerDelay,r.abort)),a=s.catch(u=>{}).then(Kn(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(Kn(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(Kn(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new rE(this.data,r.abort),new v0t.ClientStreamingCall(e,i,this.lastInput,s,a,c,l)}duplex(e,r){var n;let i=(n=r.meta)!==null&&n!==void 0?n:{},s=this.promiseHeaders().then(Kn(this.headerDelay,r.abort)),a=new mBe.RpcOutputStreamController,c=s.then(Kn(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(Kn(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new rE(this.data,r.abort),new N0t.DuplexStreamingCall(e,i,this.lastInput,s,a,l,u)}};iE.TestTransport=nE;nE.defaultHeaders={responseHeader:"test"};nE.defaultStatus={code:"OK",detail:"all good"};nE.defaultTrailers={responseTrailer:"test"};function Kn(t,e){return r=>new Promise((n,i)=>{if(e?.aborted)i(new ga.RpcError("user cancel","CANCELLED"));else{let s=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(s),i(new ga.RpcError("user cancel","CANCELLED"))})}})}o(Kn,"delay");var rE=class{static{o(this,"TestInputStream")}constructor(e,r){this._completed=!1,this._sent=[],this.data=e,this.abort=r}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof ga.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(Kn(r,this.abort))}complete(){if(this.data.inputComplete instanceof ga.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(Kn(e,this.abort))}}});var yBe=m(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.stackDuplexStreamingInterceptors=ya.stackClientStreamingInterceptors=ya.stackServerStreamingInterceptors=ya.stackUnaryInterceptors=ya.stackIntercept=void 0;var _0t=cr();function jI(t,e,r,n,i){var s,a,c,l;if(t=="unary"){let u=o((d,f,h)=>e.unary(d,f,h),"tail");for(let d of((s=n.interceptors)!==null&&s!==void 0?s:[]).filter(f=>f.interceptUnary).reverse()){let f=u;u=o((h,p,g)=>d.interceptUnary(f,h,p,g),"tail")}return u(r,i,n)}if(t=="serverStreaming"){let u=o((d,f,h)=>e.serverStreaming(d,f,h),"tail");for(let d of((a=n.interceptors)!==null&&a!==void 0?a:[]).filter(f=>f.interceptServerStreaming).reverse()){let f=u;u=o((h,p,g)=>d.interceptServerStreaming(f,h,p,g),"tail")}return u(r,i,n)}if(t=="clientStreaming"){let u=o((d,f)=>e.clientStreaming(d,f),"tail");for(let d of((c=n.interceptors)!==null&&c!==void 0?c:[]).filter(f=>f.interceptClientStreaming).reverse()){let f=u;u=o((h,p)=>d.interceptClientStreaming(f,h,p),"tail")}return u(r,n)}if(t=="duplex"){let u=o((d,f)=>e.duplex(d,f),"tail");for(let d of((l=n.interceptors)!==null&&l!==void 0?l:[]).filter(f=>f.interceptDuplex).reverse()){let f=u;u=o((h,p)=>d.interceptDuplex(f,h,p),"tail")}return u(r,n)}_0t.assertNever(t)}o(jI,"stackIntercept");ya.stackIntercept=jI;function T0t(t,e,r,n){return jI("unary",t,e,n,r)}o(T0t,"stackUnaryInterceptors");ya.stackUnaryInterceptors=T0t;function R0t(t,e,r,n){return jI("serverStreaming",t,e,n,r)}o(R0t,"stackServerStreamingInterceptors");ya.stackServerStreamingInterceptors=R0t;function D0t(t,e,r){return jI("clientStreaming",t,e,r)}o(D0t,"stackClientStreamingInterceptors");ya.stackClientStreamingInterceptors=D0t;function Q0t(t,e,r){return jI("duplex",t,e,r)}o(Q0t,"stackDuplexStreamingInterceptors");ya.stackDuplexStreamingInterceptors=Q0t});var EBe=m(kQ=>{"use strict";Object.defineProperty(kQ,"__esModule",{value:!0});kQ.ServerCallContextController=void 0;var x6=class{static{o(this,"ServerCallContextController")}constructor(e,r,n,i,s={code:"OK",detail:""}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=r,this.deadline=n,this.trailers={},this._sendRH=i,this.status=s}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let r=this._listeners;return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}};kQ.ServerCallContextController=x6});var bBe=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});var P0t=hBe();Object.defineProperty(Vr,"ServiceType",{enumerable:!0,get:o(function(){return P0t.ServiceType},"get")});var v6=l6();Object.defineProperty(Vr,"readMethodOptions",{enumerable:!0,get:o(function(){return v6.readMethodOptions},"get")});Object.defineProperty(Vr,"readMethodOption",{enumerable:!0,get:o(function(){return v6.readMethodOption},"get")});Object.defineProperty(Vr,"readServiceOption",{enumerable:!0,get:o(function(){return v6.readServiceOption},"get")});var k0t=f6();Object.defineProperty(Vr,"RpcError",{enumerable:!0,get:o(function(){return k0t.RpcError},"get")});var O0t=h6();Object.defineProperty(Vr,"mergeRpcOptions",{enumerable:!0,get:o(function(){return O0t.mergeRpcOptions},"get")});var L0t=g6();Object.defineProperty(Vr,"RpcOutputStreamController",{enumerable:!0,get:o(function(){return L0t.RpcOutputStreamController},"get")});var F0t=gBe();Object.defineProperty(Vr,"TestTransport",{enumerable:!0,get:o(function(){return F0t.TestTransport},"get")});var CBe=A6();Object.defineProperty(Vr,"Deferred",{enumerable:!0,get:o(function(){return CBe.Deferred},"get")});Object.defineProperty(Vr,"DeferredState",{enumerable:!0,get:o(function(){return CBe.DeferredState},"get")});var M0t=B6();Object.defineProperty(Vr,"DuplexStreamingCall",{enumerable:!0,get:o(function(){return M0t.DuplexStreamingCall},"get")});var U0t=I6();Object.defineProperty(Vr,"ClientStreamingCall",{enumerable:!0,get:o(function(){return U0t.ClientStreamingCall},"get")});var q0t=b6();Object.defineProperty(Vr,"ServerStreamingCall",{enumerable:!0,get:o(function(){return q0t.ServerStreamingCall},"get")});var G0t=E6();Object.defineProperty(Vr,"UnaryCall",{enumerable:!0,get:o(function(){return G0t.UnaryCall},"get")});var WI=yBe();Object.defineProperty(Vr,"stackIntercept",{enumerable:!0,get:o(function(){return WI.stackIntercept},"get")});Object.defineProperty(Vr,"stackDuplexStreamingInterceptors",{enumerable:!0,get:o(function(){return WI.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(Vr,"stackClientStreamingInterceptors",{enumerable:!0,get:o(function(){return WI.stackClientStreamingInterceptors},"get")});Object.defineProperty(Vr,"stackServerStreamingInterceptors",{enumerable:!0,get:o(function(){return WI.stackServerStreamingInterceptors},"get")});Object.defineProperty(Vr,"stackUnaryInterceptors",{enumerable:!0,get:o(function(){return WI.stackUnaryInterceptors},"get")});var H0t=EBe();Object.defineProperty(Vr,"ServerCallContextController",{enumerable:!0,get:o(function(){return H0t.ServerCallContextController},"get")})});var xBe=m((vNr,z0t)=>{z0t.exports={name:"@actions/artifact",version:"6.2.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:"cd ../../ && npm run test ./packages/artifact",bootstrap:"cd ../../ && npm run bootstrap","tsc-run":"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/",tsc:"npm run bootstrap && npm run tsc-run","gen:docs":"typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/github":"^9.0.0","@actions/http-client":"^4.0.0","@azure/storage-blob":"^12.30.0","@octokit/core":"^7.0.6","@octokit/plugin-request-log":"^6.0.0","@octokit/plugin-retry":"^8.0.0","@octokit/request":"^10.0.7","@octokit/request-error":"^7.1.0","@protobuf-ts/plugin":"^2.2.3-alpha.1","@protobuf-ts/runtime":"^2.9.4",archiver:"^7.0.1","jwt-decode":"^4.0.0","unzip-stream":"^0.3.1"},devDependencies:{"@types/archiver":"^7.0.0","@types/unzip-stream":"^0.3.4",typedoc:"^0.28.16","typedoc-plugin-markdown":"^4.9.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var NBe=m((NNr,vBe)=>{var $0t=xBe();vBe.exports={version:$0t.version}});var MBe=m((n_r,FBe)=>{var j0t=typeof process=="object"&&process&&process.platform==="win32";FBe.exports=j0t?{sep:"\\"}:{sep:"/"}});var VBe=m((i_r,HBe)=>{"use strict";HBe.exports=qBe;function qBe(t,e,r){t instanceof RegExp&&(t=UBe(t,r)),e instanceof RegExp&&(e=UBe(e,r));var n=GBe(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}o(qBe,"balanced");function UBe(t,e){var r=e.match(t);return r?r[0]:null}o(UBe,"maybeMatch");qBe.range=GBe;function GBe(t,e,r){var n,i,s,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;d>=0&&!c;)d==l?(n.push(d),l=r.indexOf(t,d+1)):n.length==1?c=[n.pop(),u]:(i=n.pop(),i<s&&(s=i,a=u),u=r.indexOf(e,d+1)),d=l<u&&l>=0?l:u;n.length&&(c=[s,a])}return c}o(GBe,"range")});var tW=m((o_r,KBe)=>{var zBe=VBe();KBe.exports=Y0t;var $Be="\0SLASH"+Math.random()+"\0",jBe="\0OPEN"+Math.random()+"\0",eW="\0CLOSE"+Math.random()+"\0",WBe="\0COMMA"+Math.random()+"\0",JBe="\0PERIOD"+Math.random()+"\0";function Z6(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}o(Z6,"numeric");function W0t(t){return t.split("\\\\").join($Be).split("\\{").join(jBe).split("\\}").join(eW).split("\\,").join(WBe).split("\\.").join(JBe)}o(W0t,"escapeBraces");function J0t(t){return t.split($Be).join("\\").split(jBe).join("{").split(eW).join("}").split(WBe).join(",").split(JBe).join(".")}o(J0t,"unescapeBraces");function YBe(t){if(!t)return[""];var e=[],r=zBe("{","}",t);if(!r)return t.split(",");var n=r.pre,i=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+i+"}";var c=YBe(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(YBe,"parseCommaParts");function Y0t(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),JI(W0t(t),!0).map(J0t)):[]}o(Y0t,"expandTop");function K0t(t){return"{"+t+"}"}o(K0t,"embrace");function X0t(t){return/^-?0\d/.test(t)}o(X0t,"isPadded");function Z0t(t,e){return t<=e}o(Z0t,"lte");function ewt(t,e){return t>=e}o(ewt,"gte");function JI(t,e){var r=[],n=zBe("{","}",t);if(!n)return[t];var i=n.pre,s=n.post.length?JI(n.post,!1):[""];if(/\$$/.test(n.pre))for(var a=0;a<s.length;a++){var c=i+"{"+n.body+"}"+s[a];r.push(c)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),d=l||u,f=n.body.indexOf(",")>=0;if(!d&&!f)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+eW+n.post,JI(t)):[t];var h;if(d)h=n.body.split(/\.\./);else if(h=YBe(n.body),h.length===1&&(h=JI(h[0],!1).map(K0t),h.length===1))return s.map(function(H){return n.pre+h[0]+H});var p;if(d){var g=Z6(h[0]),A=Z6(h[1]),E=Math.max(h[0].length,h[1].length),y=h.length==3?Math.abs(Z6(h[2])):1,C=Z0t,w=A<g;w&&(y*=-1,C=ewt);var B=h.some(X0t);p=[];for(var Q=g;C(Q,A);Q+=y){var U;if(u)U=String.fromCharCode(Q),U==="\\"&&(U="");else if(U=String(Q),B){var v=E-U.length;if(v>0){var j=new Array(v+1).join("0");Q<0?U="-"+j+U.slice(1):U=j+U}}p.push(U)}}else{p=[];for(var D=0;D<h.length;D++)p.push.apply(p,JI(h[D],!1))}for(var D=0;D<p.length;D++)for(var a=0;a<s.length;a++){var c=i+p[D]+s[a];(!e||d||c)&&r.push(c)}}return r}o(JI,"expand")});var nxe=m((l_r,oW)=>{var xo=oW.exports=(t,e,r={})=>(MQ(e),!r.nocomment&&e.charAt(0)==="#"?!1:new cE(e,r).match(t));oW.exports=xo;var iW=MBe();xo.sep=iW.sep;var Ac=Symbol("globstar **");xo.GLOBSTAR=Ac;var twt=tW(),XBe={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},sW="[^/]",rW=sW+"*?",rwt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",nwt="(?:(?!(?:\\/|^)\\.).)*?",txe=o(t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),"charSet"),ZBe=txe("().*{}+?[]^$\\!"),iwt=txe("[.("),exe=/\/+/;xo.filter=(t,e={})=>(r,n,i)=>xo(r,t,e);var Mf=o((t,e={})=>{let r={};return Object.keys(t).forEach(n=>r[n]=t[n]),Object.keys(e).forEach(n=>r[n]=e[n]),r},"ext");xo.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return xo;let e=xo,r=o((n,i,s)=>e(n,i,Mf(t,s)),"m");return r.Minimatch=class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s){super(i,Mf(t,s))}},r.Minimatch.defaults=n=>e.defaults(Mf(t,n)).Minimatch,r.filter=(n,i)=>e.filter(n,Mf(t,i)),r.defaults=n=>e.defaults(Mf(t,n)),r.makeRe=(n,i)=>e.makeRe(n,Mf(t,i)),r.braceExpand=(n,i)=>e.braceExpand(n,Mf(t,i)),r.match=(n,i,s)=>e.match(n,i,Mf(t,s)),r};xo.braceExpand=(t,e)=>rxe(t,e);var rxe=o((t,e={})=>(MQ(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:twt(t)),"braceExpand"),swt=1024*64,MQ=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>swt)throw new TypeError("pattern is too long")},"assertValidPattern"),nW=Symbol("subparse");xo.makeRe=(t,e)=>new cE(t,e||{}).makeRe();xo.match=(t,e,r={})=>{let n=new cE(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t};var owt=o(t=>t.replace(/\\(.)/g,"$1"),"globUnescape"),awt=o(t=>t.replace(/\\([^-\]])/g,"$1"),"charUnescape"),cwt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),lwt=o(t=>t.replace(/[[\]\\]/g,"\\$&"),"braExpEscape"),cE=class{static{o(this,"Minimatch")}constructor(e,r){MQ(e),r||(r={}),this.options=r,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();r.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,n),n=this.globParts=n.map(i=>i.split(exe)),this.debug(this.pattern,n),n=n.map((i,s,a)=>i.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,r=!1,n=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=e.slice(n)),this.negate=r}matchOne(e,r,n){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:r}),this.debug("matchOne",e.length,r.length);for(var s=0,a=0,c=e.length,l=r.length;s<c&&a<l;s++,a++){this.debug("matchOne loop");var u=r[a],d=e[s];if(this.debug(r,u,d),u===!1)return!1;if(u===Ac){this.debug("GLOBSTAR",[r,u,d]);var f=s,h=a+1;if(h===l){for(this.debug("** at the end");s<c;s++)if(e[s]==="."||e[s]===".."||!i.dot&&e[s].charAt(0)===".")return!1;return!0}for(;f<c;){var p=e[f];if(this.debug(`
|
|
globstar while`,e,f,r,h,p),this.matchOne(e.slice(f),r.slice(h),n))return this.debug("globstar found match!",f,c,p),!0;if(p==="."||p===".."||!i.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,f,r,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(n&&(this.debug(`
|
|
>>> no match, partial?`,e,f,r,h),f===c))}var g;if(typeof u=="string"?(g=d===u,this.debug("string match",u,d,g)):(g=d.match(u),this.debug("pattern match",u,d,g)),!g)return!1}if(s===c&&a===l)return!0;if(s===c)return n;if(a===l)return s===c-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return rxe(this.pattern,this.options)}parse(e,r){MQ(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return Ac;if(e==="")return"";let i="",s=!1,a=!1,c=[],l=[],u,d=!1,f=-1,h=-1,p,g,A,E=e.charAt(0)===".",y=n.dot||E,C=o(()=>E?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","patternStart"),w=o(v=>v.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","subPatternStart"),B=o(()=>{if(u){switch(u){case"*":i+=rW,s=!0;break;case"?":i+=sW,s=!0;break;default:i+="\\"+u;break}this.debug("clearStateChar %j %j",u,i),u=!1}},"clearStateChar");for(let v=0,j;v<e.length&&(j=e.charAt(v));v++){if(this.debug("%s %s %s %j",e,v,i,j),a){if(j==="/")return!1;ZBe[j]&&(i+="\\"),i+=j,a=!1;continue}switch(j){case"/":return!1;case"\\":if(d&&e.charAt(v+1)==="-"){i+=j;continue}B(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,v,i,j),d){this.debug(" in class"),j==="!"&&v===h+1&&(j="^"),i+=j;continue}this.debug("call clearStateChar %j",u),B(),u=j,n.noext&&B();continue;case"(":{if(d){i+="(";continue}if(!u){i+="\\(";continue}let D={type:u,start:v-1,reStart:i.length,open:XBe[u].open,close:XBe[u].close};this.debug(this.pattern," ",D),c.push(D),i+=D.open,D.start===0&&D.type!=="!"&&(E=!0,i+=w(e.slice(v+1))),this.debug("plType %j %j",u,i),u=!1;continue}case")":{let D=c[c.length-1];if(d||!D){i+="\\)";continue}c.pop(),B(),s=!0,g=D,i+=g.close,g.type==="!"&&l.push(Object.assign(g,{reEnd:i.length}));continue}case"|":{let D=c[c.length-1];if(d||!D){i+="\\|";continue}B(),i+="|",D.start===0&&D.type!=="!"&&(E=!0,i+=w(e.slice(v+1)));continue}case"[":if(B(),d){i+="\\"+j;continue}d=!0,h=v,f=i.length,i+=j;continue;case"]":if(v===h+1||!d){i+="\\"+j;continue}p=e.substring(h+1,v);try{RegExp("["+lwt(awt(p))+"]"),i+=j}catch{i=i.substring(0,f)+"(?:$.)"}s=!0,d=!1;continue;default:B(),ZBe[j]&&!(j==="^"&&d)&&(i+="\\"),i+=j;break}}for(d&&(p=e.slice(h+1),A=this.parse(p,nW),i=i.substring(0,f)+"\\["+A[0],s=s||A[1]),g=c.pop();g;g=c.pop()){let v;v=i.slice(g.reStart+g.open.length),this.debug("setting tail",i,g),v=v.replace(/((?:\\{2}){0,64})(\\?)\|/g,(D,H,V)=>(V||(V="\\"),H+H+V+"|")),this.debug(`tail=%j
|
|
%s`,v,v,g,i);let j=g.type==="*"?rW:g.type==="?"?sW:"\\"+g.type;s=!0,i=i.slice(0,g.reStart)+j+"\\("+v}B(),a&&(i+="\\\\");let Q=iwt[i.charAt(0)];for(let v=l.length-1;v>-1;v--){let j=l[v],D=i.slice(0,j.reStart),H=i.slice(j.reStart,j.reEnd-8),V=i.slice(j.reEnd),J=i.slice(j.reEnd-8,j.reEnd)+V,oe=D.split(")").length,ae=D.split("(").length-oe,Ce=V;for(let z=0;z<ae;z++)Ce=Ce.replace(/\)[+*?]?/,"");V=Ce;let K=V===""&&r!==nW?"(?:$|\\/)":"";i=D+H+V+K+J}if(i!==""&&s&&(i="(?=.)"+i),Q&&(i=C()+i),r===nW)return[i,s];if(n.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return owt(e);let U=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",U),{_glob:e,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?rW:r.dot?rwt:nwt,i=r.nocase?"i":"",s=e.map(a=>(a=a.map(c=>typeof c=="string"?cwt(c):c===Ac?Ac:c._src).reduce((c,l)=>(c[c.length-1]===Ac&&l===Ac||c.push(l),c),[]),a.forEach((c,l)=>{c!==Ac||a[l-1]===Ac||(l===0?a.length>1?a[l+1]="(?:\\/|"+n+"\\/)?"+a[l+1]:a[l]=n:l===a.length-1?a[l-1]+="(?:\\/|"+n+")?":(a[l-1]+="(?:\\/|\\/"+n+"\\/)"+a[l+1],a[l+1]=Ac))}),a.filter(c=>c!==Ac).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;iW.sep!=="/"&&(e=e.split(iW.sep).join("/")),e=e.split(exe),this.debug(this.pattern,"split",e);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let a=e.length-1;a>=0&&(s=e[a],!s);a--);for(let a=0;a<i.length;a++){let c=i[a],l=e;if(n.matchBase&&c.length===1&&(l=[s]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return xo.defaults(e).Minimatch}};xo.Minimatch=cE});var cxe=m((d_r,axe)=>{axe.exports=oxe;var cW=require("fs"),{EventEmitter:uwt}=require("events"),{Minimatch:aW}=nxe(),{resolve:dwt}=require("path");function fwt(t,e){return new Promise((r,n)=>{cW.readdir(t,{withFileTypes:!0},(i,s)=>{if(i)switch(i.code){case"ENOTDIR":e?n(i):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(i);break}else r(s)})})}o(fwt,"readdir");function ixe(t,e){return new Promise((r,n)=>{(e?cW.stat:cW.lstat)(t,(s,a)=>{s?s.code==="ENOENT"?r(e?ixe(t,!1):null):r(null):r(a)})})}o(ixe,"stat");async function*sxe(t,e,r,n,i,s){let a=await fwt(e+t,s);for(let c of a){let l=c.name;l===void 0&&(l=c,n=!0);let u=t+"/"+l,d=u.slice(1),f=e+"/"+d,h=null;(n||r)&&(h=await ixe(f,r)),!h&&c.name!==void 0&&(h=c),h===null&&(h={isDirectory:o(()=>!1,"isDirectory")}),h.isDirectory()?i(d)||(yield{relative:d,absolute:f,stats:h},yield*sxe(u,e,r,n,i,!1)):yield{relative:d,absolute:f,stats:h}}}o(sxe,"exploreWalkAsync");async function*hwt(t,e,r,n){yield*sxe("",t,e,r,n,!0)}o(hwt,"explore");function pwt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}o(pwt,"readOptions");var UQ=class extends uwt{static{o(this,"ReaddirGlob")}constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=pwt(r||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(s=>new aW(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(s=>new aW(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(s=>new aW(s,{dot:!0}))}this.iterator=hwt(dwt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",i=>this._matches.push(this.options.absolute?i.absolute:i.relative)),this.on("error",i=>n(i)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(n)))&&!this.ignoreMatchers.some(i=>i.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,i=e.value.absolute;this.options.mark&&r&&(n+="/",i+="/"),this.options.stat?this.emit("match",{relative:n,absolute:i,stat:e.value.stats}):this.emit("match",{relative:n,absolute:i})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function oxe(t,e,r){return new UQ(t,e,r)}o(oxe,"readdirGlob");oxe.ReaddirGlob=UQ});var uxe=m((qQ,lxe)=>{(function(t,e){typeof qQ=="object"&&typeof lxe<"u"?e(qQ):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.async={}))})(qQ,(function(t){"use strict";function e(I,...b){return(...S)=>I(...b,...S)}o(e,"apply");function r(I){return function(...b){var S=b.pop();return I.call(this,b,S)}}o(r,"initialParams");var n=typeof queueMicrotask=="function"&&queueMicrotask,i=typeof setImmediate=="function"&&setImmediate,s=typeof process=="object"&&typeof process.nextTick=="function";function a(I){setTimeout(I,0)}o(a,"fallback");function c(I){return(b,...S)=>I(()=>b(...S))}o(c,"wrap");var l;n?l=queueMicrotask:i?l=setImmediate:s?l=process.nextTick:l=a;var u=c(l);function d(I){return p(I)?function(...b){let S=b.pop(),T=I.apply(this,b);return f(T,S)}:r(function(b,S){var T;try{T=I.apply(this,b)}catch(P){return S(P)}if(T&&typeof T.then=="function")return f(T,S);S(null,T)})}o(d,"asyncify");function f(I,b){return I.then(S=>{h(b,null,S)},S=>{h(b,S&&(S instanceof Error||S.message)?S:new Error(S))})}o(f,"handlePromise");function h(I,b,S){try{I(b,S)}catch(T){u(P=>{throw P},T)}}o(h,"invokeCallback");function p(I){return I[Symbol.toStringTag]==="AsyncFunction"}o(p,"isAsync");function g(I){return I[Symbol.toStringTag]==="AsyncGenerator"}o(g,"isAsyncGenerator");function A(I){return typeof I[Symbol.asyncIterator]=="function"}o(A,"isAsyncIterable");function E(I){if(typeof I!="function")throw new Error("expected a function");return p(I)?d(I):I}o(E,"wrapAsync");function y(I,b){if(b||(b=I.length),!b)throw new Error("arity is undefined");function S(...T){return typeof T[b-1]=="function"?I.apply(this,T):new Promise((P,L)=>{T[b-1]=(M,...G)=>{if(M)return L(M);P(G.length>1?G:G[0])},I.apply(this,T)})}return o(S,"awaitable"),S}o(y,"awaitify");function C(I){return o(function(S,...T){return y(function(L){var M=this;return I(S,(G,W)=>{E(G).apply(M,T.concat(W))},L)})},"applyEach")}o(C,"applyEach$1");function w(I,b,S,T){b=b||[];var P=[],L=0,M=E(S);return I(b,(G,W,Ie)=>{var wt=L++;M(G,(Dt,St)=>{P[wt]=St,Ie(Dt)})},G=>{T(G,P)})}o(w,"_asyncMap");function B(I){return I&&typeof I.length=="number"&&I.length>=0&&I.length%1===0}o(B,"isArrayLike");var U={};function v(I){function b(...S){if(I!==null){var T=I;I=null,T.apply(this,S)}}return o(b,"wrapper"),Object.assign(b,I),b}o(v,"once");function j(I){return I[Symbol.iterator]&&I[Symbol.iterator]()}o(j,"getIterator");function D(I){var b=-1,S=I.length;return o(function(){return++b<S?{value:I[b],key:b}:null},"next")}o(D,"createArrayIterator");function H(I){var b=-1;return o(function(){var T=I.next();return T.done?null:(b++,{value:T.value,key:b})},"next")}o(H,"createES2015Iterator");function V(I){var b=I?Object.keys(I):[],S=-1,T=b.length;return o(function P(){var L=b[++S];return L==="__proto__"?P():S<T?{value:I[L],key:L}:null},"next")}o(V,"createObjectIterator");function J(I){if(B(I))return D(I);var b=j(I);return b?H(b):V(I)}o(J,"createIterator");function oe(I){return function(...b){if(I===null)throw new Error("Callback was already called.");var S=I;I=null,S.apply(this,b)}}o(oe,"onlyOnce");function ae(I,b,S,T){let P=!1,L=!1,M=!1,G=0,W=0;function Ie(){G>=b||M||P||(M=!0,I.next().then(({value:St,done:Qo})=>{if(!(L||P)){if(M=!1,Qo){P=!0,G<=0&&T(null);return}G++,S(St,W,wt),W++,Ie()}}).catch(Dt))}o(Ie,"replenish");function wt(St,Qo){if(G-=1,!L){if(St)return Dt(St);if(St===!1){P=!0,L=!0;return}if(Qo===U||P&&G<=0)return P=!0,T(null);Ie()}}o(wt,"iterateeCallback");function Dt(St){L||(M=!1,P=!0,T(St))}o(Dt,"handleError"),Ie()}o(ae,"asyncEachOfLimit");var Ce=o(I=>(b,S,T)=>{if(T=v(T),I<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!b)return T(null);if(g(b))return ae(b,I,S,T);if(A(b))return ae(b[Symbol.asyncIterator](),I,S,T);var P=J(b),L=!1,M=!1,G=0,W=!1;function Ie(Dt,St){if(!M)if(G-=1,Dt)L=!0,T(Dt);else if(Dt===!1)L=!0,M=!0;else{if(St===U||L&&G<=0)return L=!0,T(null);W||wt()}}o(Ie,"iterateeCallback");function wt(){for(W=!0;G<I&&!L;){var Dt=P();if(Dt===null){L=!0,G<=0&&T(null);return}G+=1,S(Dt.value,Dt.key,oe(Ie))}W=!1}o(wt,"replenish"),wt()},"eachOfLimit$2");function K(I,b,S,T){return Ce(b)(I,E(S),T)}o(K,"eachOfLimit");var z=y(K,4);function Se(I,b,S){S=v(S);var T=0,P=0,{length:L}=I,M=!1;L===0&&S(null);function G(W,Ie){W===!1&&(M=!0),M!==!0&&(W?S(W):(++P===L||Ie===U)&&S(null))}for(o(G,"iteratorCallback");T<L;T++)b(I[T],T,oe(G))}o(Se,"eachOfArrayLike");function xe(I,b,S){return z(I,1/0,b,S)}o(xe,"eachOfGeneric");function lt(I,b,S){var T=B(I)?Se:xe;return T(I,E(b),S)}o(lt,"eachOf");var Rt=y(lt,3);function fn(I,b,S){return w(Rt,I,b,S)}o(fn,"map");var hn=y(fn,3),oi=C(hn);function hr(I,b,S){return z(I,1,b,S)}o(hr,"eachOfSeries");var Wr=y(hr,3);function vh(I,b,S){return w(Wr,I,b,S)}o(vh,"mapSeries");var pu=y(vh,3),vc=C(pu);let ms=Symbol("promiseCallback");function La(){let I,b;function S(T,...P){if(T)return b(T);I(P.length>1?P:P[0])}return o(S,"callback"),S[ms]=new Promise((T,P)=>{I=T,b=P}),S}o(La,"promiseCallback");function Pd(I,b,S){typeof b!="number"&&(S=b,b=null),S=v(S||La());var T=Object.keys(I).length;if(!T)return S(null);b||(b=T);var P={},L=0,M=!1,G=!1,W=Object.create(null),Ie=[],wt=[],Dt={};Object.keys(I).forEach(we=>{var Oe=I[we];if(!Array.isArray(Oe)){St(we,[Oe]),wt.push(we);return}var Bt=Oe.slice(0,Oe.length-1),pr=Bt.length;if(pr===0){St(we,Oe),wt.push(we);return}Dt[we]=pr,Bt.forEach(Un=>{if(!I[Un])throw new Error("async.auto task `"+we+"` has a non-existent dependency `"+Un+"` in "+Bt.join(", "));dm(Un,()=>{pr--,pr===0&&St(we,Oe)})})}),Qt(),Qo();function St(we,Oe){Ie.push(()=>tb(we,Oe))}o(St,"enqueueTask");function Qo(){if(!M){if(Ie.length===0&&L===0)return S(null,P);for(;Ie.length&&L<b;){var we=Ie.shift();we()}}}o(Qo,"processQueue");function dm(we,Oe){var Bt=W[we];Bt||(Bt=W[we]=[]),Bt.push(Oe)}o(dm,"addListener");function _h(we){var Oe=W[we]||[];Oe.forEach(Bt=>Bt()),Qo()}o(_h,"taskComplete");function tb(we,Oe){if(!G){var Bt=oe((Un,...Po)=>{if(L--,Un===!1){M=!0;return}if(Po.length<2&&([Po]=Po),Un){var fm={};if(Object.keys(P).forEach(Th=>{fm[Th]=P[Th]}),fm[we]=Po,G=!0,W=Object.create(null),M)return;S(Un,fm)}else P[we]=Po,_h(we)});L++;var pr=E(Oe[Oe.length-1]);Oe.length>1?pr(P,Bt):pr(Bt)}}o(tb,"runTask");function Qt(){for(var we,Oe=0;wt.length;)we=wt.pop(),Oe++,ke(we).forEach(Bt=>{--Dt[Bt]===0&&wt.push(Bt)});if(Oe!==T)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}o(Qt,"checkForDeadlocks");function ke(we){var Oe=[];return Object.keys(I).forEach(Bt=>{let pr=I[Bt];Array.isArray(pr)&&pr.indexOf(we)>=0&&Oe.push(Bt)}),Oe}return o(ke,"getDependents"),S[ms]}o(Pd,"auto");var kd=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,Au=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,XB=/,/,jC=/(=.+)?(\s*)$/;function WC(I){let b="",S=0,T=I.indexOf("*/");for(;S<I.length;)if(I[S]==="/"&&I[S+1]==="/"){let P=I.indexOf(`
|
|
`,S);S=P===-1?I.length:P}else if(T!==-1&&I[S]==="/"&&I[S+1]==="*"){let P=I.indexOf("*/",S);P!==-1?(S=P+2,T=I.indexOf("*/",S)):(b+=I[S],S++)}else b+=I[S],S++;return b}o(WC,"stripComments");function ZB(I){let b=WC(I.toString()),S=b.match(kd);if(S||(S=b.match(Au)),!S)throw new Error(`could not parse args in autoInject
|
|
Source:
|
|
`+b);let[,T]=S;return T.replace(/\s/g,"").split(XB).map(P=>P.replace(jC,"").trim())}o(ZB,"parseParams");function am(I,b){var S={};return Object.keys(I).forEach(T=>{var P=I[T],L,M=p(P),G=!M&&P.length===1||M&&P.length===0;if(Array.isArray(P))L=[...P],P=L.pop(),S[T]=L.concat(L.length>0?W:P);else if(G)S[T]=P;else{if(L=ZB(P),P.length===0&&!M&&L.length===0)throw new Error("autoInject task functions require explicit parameters.");M||L.pop(),S[T]=L.concat(W)}function W(Ie,wt){var Dt=L.map(St=>Ie[St]);Dt.push(wt),E(P)(...Dt)}o(W,"newTask")}),Pd(S,b)}o(am,"autoInject");class ex{static{o(this,"DLL")}constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):JC(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):JC(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:T}=S;b(S)&&this.removeLink(S),S=T}return this}}function JC(I,b){I.length=1,I.head=I.tail=b}o(JC,"setInitial");function cm(I,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var T=E(I),P=0,L=[];let M={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function G(ke,we){M[ke].push(we)}o(G,"on");function W(ke,we){let Oe=o((...Bt)=>{Ie(ke,Oe),we(...Bt)},"handleAndRemove");M[ke].push(Oe)}o(W,"once");function Ie(ke,we){if(!ke)return Object.keys(M).forEach(Oe=>M[Oe]=[]);if(!we)return M[ke]=[];M[ke]=M[ke].filter(Oe=>Oe!==we)}o(Ie,"off");function wt(ke,...we){M[ke].forEach(Oe=>Oe(...we))}o(wt,"trigger");var Dt=!1;function St(ke,we,Oe,Bt){if(Bt!=null&&typeof Bt!="function")throw new Error("task callback must be a function");Qt.started=!0;var pr,Un;function Po(Th,...rb){if(Th)return Oe?Un(Th):pr();if(rb.length<=1)return pr(rb[0]);pr(rb)}o(Po,"promiseCallback");var fm=Qt._createTaskItem(ke,Oe?Po:Bt||Po);if(we?Qt._tasks.unshift(fm):Qt._tasks.push(fm),Dt||(Dt=!0,u(()=>{Dt=!1,Qt.process()})),Oe||!Bt)return new Promise((Th,rb)=>{pr=Th,Un=rb})}o(St,"_insert");function Qo(ke){return function(we,...Oe){P-=1;for(var Bt=0,pr=ke.length;Bt<pr;Bt++){var Un=ke[Bt],Po=L.indexOf(Un);Po===0?L.shift():Po>0&&L.splice(Po,1),Un.callback(we,...Oe),we!=null&&wt("error",we,Un.data)}P<=Qt.concurrency-Qt.buffer&&wt("unsaturated"),Qt.idle()&&wt("drain"),Qt.process()}}o(Qo,"_createCB");function dm(ke){return ke.length===0&&Qt.idle()?(u(()=>wt("drain")),!0):!1}o(dm,"_maybeDrain");let _h=o(ke=>we=>{if(!we)return new Promise((Oe,Bt)=>{W(ke,(pr,Un)=>{if(pr)return Bt(pr);Oe(Un)})});Ie(ke),G(ke,we)},"eventMethod");var tb=!1,Qt={_tasks:new ex,_createTaskItem(ke,we){return{data:ke,callback:we}},*[Symbol.iterator](){yield*Qt._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(ke,we){return Array.isArray(ke)?dm(ke)?void 0:ke.map(Oe=>St(Oe,!1,!1,we)):St(ke,!1,!1,we)},pushAsync(ke,we){return Array.isArray(ke)?dm(ke)?void 0:ke.map(Oe=>St(Oe,!1,!0,we)):St(ke,!1,!0,we)},kill(){Ie(),Qt._tasks.empty()},unshift(ke,we){return Array.isArray(ke)?dm(ke)?void 0:ke.map(Oe=>St(Oe,!0,!1,we)):St(ke,!0,!1,we)},unshiftAsync(ke,we){return Array.isArray(ke)?dm(ke)?void 0:ke.map(Oe=>St(Oe,!0,!0,we)):St(ke,!0,!0,we)},remove(ke){Qt._tasks.remove(ke)},process(){if(!tb){for(tb=!0;!Qt.paused&&P<Qt.concurrency&&Qt._tasks.length;){var ke=[],we=[],Oe=Qt._tasks.length;Qt.payload&&(Oe=Math.min(Oe,Qt.payload));for(var Bt=0;Bt<Oe;Bt++){var pr=Qt._tasks.shift();ke.push(pr),L.push(pr),we.push(pr.data)}P+=1,Qt._tasks.length===0&&wt("empty"),P===Qt.concurrency&&wt("saturated");var Un=oe(Qo(ke));T(we,Un)}tb=!1}},length(){return Qt._tasks.length},running(){return P},workersList(){return L},idle(){return Qt._tasks.length+P===0},pause(){Qt.paused=!0},resume(){Qt.paused!==!1&&(Qt.paused=!1,u(Qt.process))}};return Object.defineProperties(Qt,{saturated:{writable:!1,value:_h("saturated")},unsaturated:{writable:!1,value:_h("unsaturated")},empty:{writable:!1,value:_h("empty")},drain:{writable:!1,value:_h("drain")},error:{writable:!1,value:_h("error")}}),Qt}o(cm,"queue$1");function lm(I,b){return cm(I,1,b)}o(lm,"cargo$1");function Ws(I,b,S){return cm(I,b,S)}o(Ws,"cargo");function tx(I,b,S,T){T=v(T);var P=E(S);return Wr(I,(L,M,G)=>{P(b,L,(W,Ie)=>{b=Ie,G(W)})},L=>T(L,b))}o(tx,"reduce");var Fa=y(tx,4);function YC(...I){var b=I.map(E);return function(...S){var T=this,P=S[S.length-1];return typeof P=="function"?S.pop():P=La(),Fa(b,S,(L,M,G)=>{M.apply(T,L.concat((W,...Ie)=>{G(W,Ie)}))},(L,M)=>P(L,...M)),P[ms]}}o(YC,"seq");function be(...I){return YC(...I.reverse())}o(be,"compose");function k(I,b,S,T){return w(Ce(b),I,S,T)}o(k,"mapLimit");var x=y(k,4);function F(I,b,S,T){var P=E(S);return x(I,b,(L,M)=>{P(L,(G,...W)=>G?M(G):M(G,W))},(L,M)=>{for(var G=[],W=0;W<M.length;W++)M[W]&&(G=G.concat(...M[W]));return T(L,G)})}o(F,"concatLimit");var q=y(F,4);function $(I,b,S){return q(I,1/0,b,S)}o($,"concat");var X=y($,3);function me(I,b,S){return q(I,1,b,S)}o(me,"concatSeries");var It=y(me,3);function pn(...I){return function(...b){var S=b.pop();return S(null,...I)}}o(pn,"constant$1");function Kt(I,b){return(S,T,P,L)=>{var M=!1,G;let W=E(P);S(T,(Ie,wt,Dt)=>{W(Ie,(St,Qo)=>{if(St||St===!1)return Dt(St);if(I(Qo)&&!G)return M=!0,G=b(!0,Ie),Dt(null,U);Dt()})},Ie=>{if(Ie)return L(Ie);L(null,M?G:b(!1))})}}o(Kt,"_createTester");function Nh(I,b,S){return Kt(T=>T,(T,P)=>P)(Rt,I,b,S)}o(Nh,"detect");var um=y(Nh,3);function rx(I,b,S,T){return Kt(P=>P,(P,L)=>L)(Ce(b),I,S,T)}o(rx,"detectLimit");var nx=y(rx,4);function DUe(I,b,S){return Kt(T=>T,(T,P)=>P)(Ce(1),I,b,S)}o(DUe,"detectSeries");var ix=y(DUe,3);function rZ(I){return(b,...S)=>E(b)(...S,(T,...P)=>{typeof console=="object"&&(T?console.error&&console.error(T):console[I]&&P.forEach(L=>console[I](L)))})}o(rZ,"consoleFunc");var nZ=rZ("dir");function QUe(I,b,S){S=oe(S);var T=E(I),P=E(b),L;function M(W,...Ie){if(W)return S(W);W!==!1&&(L=Ie,P(...Ie,G))}o(M,"next");function G(W,Ie){if(W)return S(W);if(W!==!1){if(!Ie)return S(null,...L);T(M)}}return o(G,"check"),G(null,!0)}o(QUe,"doWhilst");var KC=y(QUe,3);function iZ(I,b,S){let T=E(b);return KC(I,(...P)=>{let L=P.pop();T(...P,(M,G)=>L(M,!G))},S)}o(iZ,"doUntil");function sZ(I){return(b,S,T)=>I(b,T)}o(sZ,"_withoutIndex");function PUe(I,b,S){return Rt(I,sZ(E(b)),S)}o(PUe,"eachLimit$2");var sx=y(PUe,3);function kUe(I,b,S,T){return Ce(b)(I,sZ(E(S)),T)}o(kUe,"eachLimit");var XC=y(kUe,4);function OUe(I,b,S){return XC(I,1,b,S)}o(OUe,"eachSeries");var ZC=y(OUe,3);function fL(I){return p(I)?I:function(...b){var S=b.pop(),T=!0;b.push((...P)=>{T?u(()=>S(...P)):S(...P)}),I.apply(this,b),T=!1}}o(fL,"ensureAsync");function LUe(I,b,S){return Kt(T=>!T,T=>!T)(Rt,I,b,S)}o(LUe,"every");var ox=y(LUe,3);function FUe(I,b,S,T){return Kt(P=>!P,P=>!P)(Ce(b),I,S,T)}o(FUe,"everyLimit");var ax=y(FUe,4);function MUe(I,b,S){return Kt(T=>!T,T=>!T)(Wr,I,b,S)}o(MUe,"everySeries");var cx=y(MUe,3);function UUe(I,b,S,T){var P=new Array(b.length);I(b,(L,M,G)=>{S(L,(W,Ie)=>{P[M]=!!Ie,G(W)})},L=>{if(L)return T(L);for(var M=[],G=0;G<b.length;G++)P[G]&&M.push(b[G]);T(null,M)})}o(UUe,"filterArray");function qUe(I,b,S,T){var P=[];I(b,(L,M,G)=>{S(L,(W,Ie)=>{if(W)return G(W);Ie&&P.push({index:M,value:L}),G(W)})},L=>{if(L)return T(L);T(null,P.sort((M,G)=>M.index-G.index).map(M=>M.value))})}o(qUe,"filterGeneric");function lx(I,b,S,T){var P=B(b)?UUe:qUe;return P(I,b,E(S),T)}o(lx,"_filter");function GUe(I,b,S){return lx(Rt,I,b,S)}o(GUe,"filter");var ux=y(GUe,3);function HUe(I,b,S,T){return lx(Ce(b),I,S,T)}o(HUe,"filterLimit");var dx=y(HUe,4);function VUe(I,b,S){return lx(Wr,I,b,S)}o(VUe,"filterSeries");var fx=y(VUe,3);function zUe(I,b){var S=oe(b),T=E(fL(I));function P(L){if(L)return S(L);L!==!1&&T(P)}return o(P,"next"),P()}o(zUe,"forever");var oZ=y(zUe,2);function $Ue(I,b,S,T){var P=E(S);return x(I,b,(L,M)=>{P(L,(G,W)=>G?M(G):M(G,{key:W,val:L}))},(L,M)=>{for(var G={},{hasOwnProperty:W}=Object.prototype,Ie=0;Ie<M.length;Ie++)if(M[Ie]){var{key:wt}=M[Ie],{val:Dt}=M[Ie];W.call(G,wt)?G[wt].push(Dt):G[wt]=[Dt]}return T(L,G)})}o($Ue,"groupByLimit");var hx=y($Ue,4);function aZ(I,b,S){return hx(I,1/0,b,S)}o(aZ,"groupBy");function cZ(I,b,S){return hx(I,1,b,S)}o(cZ,"groupBySeries");var lZ=rZ("log");function jUe(I,b,S,T){T=v(T);var P={},L=E(S);return Ce(b)(I,(M,G,W)=>{L(M,G,(Ie,wt)=>{if(Ie)return W(Ie);P[G]=wt,W(Ie)})},M=>T(M,P))}o(jUe,"mapValuesLimit");var px=y(jUe,4);function uZ(I,b,S){return px(I,1/0,b,S)}o(uZ,"mapValues");function dZ(I,b,S){return px(I,1,b,S)}o(dZ,"mapValuesSeries");function fZ(I,b=S=>S){var S=Object.create(null),T=Object.create(null),P=E(I),L=r((M,G)=>{var W=b(...M);W in S?u(()=>G(null,...S[W])):W in T?T[W].push(G):(T[W]=[G],P(...M,(Ie,...wt)=>{Ie||(S[W]=wt);var Dt=T[W];delete T[W];for(var St=0,Qo=Dt.length;St<Qo;St++)Dt[St](Ie,...wt)}))});return L.memo=S,L.unmemoized=I,L}o(fZ,"memoize");var Ax;s?Ax=process.nextTick:i?Ax=setImmediate:Ax=a;var hZ=c(Ax),hL=y((I,b,S)=>{var T=B(b)?[]:{};I(b,(P,L,M)=>{E(P)((G,...W)=>{W.length<2&&([W]=W),T[L]=W,M(G)})},P=>S(P,T))},3);function pZ(I,b){return hL(Rt,I,b)}o(pZ,"parallel");function AZ(I,b,S){return hL(Ce(b),I,S)}o(AZ,"parallelLimit");function pL(I,b){var S=E(I);return cm((T,P)=>{S(T[0],P)},b,1)}o(pL,"queue");class WUe{static{o(this,"Heap")}constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(b){let S;for(;b>0&&AL(this.heap[b],this.heap[S=mZ(b)]);){let T=this.heap[b];this.heap[b]=this.heap[S],this.heap[S]=T,b=S}}percDown(b){let S;for(;(S=JUe(b))<this.heap.length&&(S+1<this.heap.length&&AL(this.heap[S+1],this.heap[S])&&(S=S+1),!AL(this.heap[b],this.heap[S]));){let T=this.heap[b];this.heap[b]=this.heap[S],this.heap[S]=T,b=S}}push(b){b.pushCount=++this.pushCount,this.heap.push(b),this.percUp(this.heap.length-1)}unshift(b){return this.heap.push(b)}shift(){let[b]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),b}toArray(){return[...this]}*[Symbol.iterator](){for(let b=0;b<this.heap.length;b++)yield this.heap[b].data}remove(b){let S=0;for(let T=0;T<this.heap.length;T++)b(this.heap[T])||(this.heap[S]=this.heap[T],S++);this.heap.splice(S);for(let T=mZ(this.heap.length-1);T>=0;T--)this.percDown(T);return this}}function JUe(I){return(I<<1)+1}o(JUe,"leftChi");function mZ(I){return(I+1>>1)-1}o(mZ,"parent");function AL(I,b){return I.priority!==b.priority?I.priority<b.priority:I.pushCount<b.pushCount}o(AL,"smaller");function gZ(I,b){var S=pL(I,b),{push:T,pushAsync:P}=S;S._tasks=new WUe,S._createTaskItem=({data:M,priority:G},W)=>({data:M,priority:G,callback:W});function L(M,G){return Array.isArray(M)?M.map(W=>({data:W,priority:G})):{data:M,priority:G}}return o(L,"createDataItems"),S.push=function(M,G=0,W){return T(L(M,G),W)},S.pushAsync=function(M,G=0,W){return P(L(M,G),W)},delete S.unshift,delete S.unshiftAsync,S}o(gZ,"priorityQueue");function YUe(I,b){if(b=v(b),!Array.isArray(I))return b(new TypeError("First argument to race must be an array of functions"));if(!I.length)return b();for(var S=0,T=I.length;S<T;S++)E(I[S])(b)}o(YUe,"race");var yZ=y(YUe,2);function mx(I,b,S,T){var P=[...I].reverse();return Fa(P,b,S,T)}o(mx,"reduceRight");function gx(I){var b=E(I);return r(o(function(T,P){return T.push((L,...M)=>{let G={};if(L&&(G.error=L),M.length>0){var W=M;M.length<=1&&([W]=M),G.value=W}P(null,G)}),b.apply(this,T)},"reflectOn"))}o(gx,"reflect");function EZ(I){var b;return Array.isArray(I)?b=I.map(gx):(b={},Object.keys(I).forEach(S=>{b[S]=gx.call(this,I[S])})),b}o(EZ,"reflectAll");function mL(I,b,S,T){let P=E(S);return lx(I,b,(L,M)=>{P(L,(G,W)=>{M(G,!W)})},T)}o(mL,"reject$2");function KUe(I,b,S){return mL(Rt,I,b,S)}o(KUe,"reject");var CZ=y(KUe,3);function XUe(I,b,S,T){return mL(Ce(b),I,S,T)}o(XUe,"rejectLimit");var bZ=y(XUe,4);function ZUe(I,b,S){return mL(Wr,I,b,S)}o(ZUe,"rejectSeries");var wZ=y(ZUe,3);function IZ(I){return function(){return I}}o(IZ,"constant");let gL=5,SZ=0;function yx(I,b,S){var T={times:gL,intervalFunc:IZ(SZ)};if(arguments.length<3&&typeof I=="function"?(S=b||La(),b=I):(eqe(T,I),S=S||La()),typeof b!="function")throw new Error("Invalid arguments for async.retry");var P=E(b),L=1;function M(){P((G,...W)=>{G!==!1&&(G&&L++<T.times&&(typeof T.errorFilter!="function"||T.errorFilter(G))?setTimeout(M,T.intervalFunc(L-1)):S(G,...W))})}return o(M,"retryAttempt"),M(),S[ms]}o(yx,"retry");function eqe(I,b){if(typeof b=="object")I.times=+b.times||gL,I.intervalFunc=typeof b.interval=="function"?b.interval:IZ(+b.interval||SZ),I.errorFilter=b.errorFilter;else if(typeof b=="number"||typeof b=="string")I.times=+b||gL;else throw new Error("Invalid arguments for async.retry")}o(eqe,"parseTimes");function BZ(I,b){b||(b=I,I=null);let S=I&&I.arity||b.length;p(b)&&(S+=1);var T=E(b);return r((P,L)=>{(P.length<S-1||L==null)&&(P.push(L),L=La());function M(G){T(...P,G)}return o(M,"taskFn"),I?yx(I,M,L):yx(M,L),L[ms]})}o(BZ,"retryable");function xZ(I,b){return hL(Wr,I,b)}o(xZ,"series");function tqe(I,b,S){return Kt(Boolean,T=>T)(Rt,I,b,S)}o(tqe,"some");var Ex=y(tqe,3);function rqe(I,b,S,T){return Kt(Boolean,P=>P)(Ce(b),I,S,T)}o(rqe,"someLimit");var Cx=y(rqe,4);function nqe(I,b,S){return Kt(Boolean,T=>T)(Wr,I,b,S)}o(nqe,"someSeries");var bx=y(nqe,3);function iqe(I,b,S){var T=E(b);return hn(I,(L,M)=>{T(L,(G,W)=>{if(G)return M(G);M(G,{value:L,criteria:W})})},(L,M)=>{if(L)return S(L);S(null,M.sort(P).map(G=>G.value))});function P(L,M){var G=L.criteria,W=M.criteria;return G<W?-1:G>W?1:0}}o(iqe,"sortBy");var vZ=y(iqe,3);function NZ(I,b,S){var T=E(I);return r((P,L)=>{var M=!1,G;function W(){var Ie=I.name||"anonymous",wt=new Error('Callback function "'+Ie+'" timed out.');wt.code="ETIMEDOUT",S&&(wt.info=S),M=!0,L(wt)}o(W,"timeoutCallback"),P.push((...Ie)=>{M||(L(...Ie),clearTimeout(G))}),G=setTimeout(W,b),T(...P)})}o(NZ,"timeout");function sqe(I){for(var b=Array(I);I--;)b[I]=I;return b}o(sqe,"range");function wx(I,b,S,T){var P=E(S);return x(sqe(I),b,P,T)}o(wx,"timesLimit");function _Z(I,b,S){return wx(I,1/0,b,S)}o(_Z,"times");function TZ(I,b,S){return wx(I,1,b,S)}o(TZ,"timesSeries");function RZ(I,b,S,T){arguments.length<=3&&typeof b=="function"&&(T=S,S=b,b=Array.isArray(I)?[]:{}),T=v(T||La());var P=E(S);return Rt(I,(L,M,G)=>{P(b,L,M,G)},L=>T(L,b)),T[ms]}o(RZ,"transform");function oqe(I,b){var S=null,T;return ZC(I,(P,L)=>{E(P)((M,...G)=>{if(M===!1)return L(M);G.length<2?[T]=G:T=G,S=M,L(M?null:{})})},()=>b(S,T))}o(oqe,"tryEach");var DZ=y(oqe);function QZ(I){return(...b)=>(I.unmemoized||I)(...b)}o(QZ,"unmemoize");function aqe(I,b,S){S=oe(S);var T=E(b),P=E(I),L=[];function M(W,...Ie){if(W)return S(W);L=Ie,W!==!1&&P(G)}o(M,"next");function G(W,Ie){if(W)return S(W);if(W!==!1){if(!Ie)return S(null,...L);T(M)}}return o(G,"check"),P(G)}o(aqe,"whilst");var eb=y(aqe,3);function PZ(I,b,S){let T=E(I);return eb(P=>T((L,M)=>P(L,!M)),b,S)}o(PZ,"until");function cqe(I,b){if(b=v(b),!Array.isArray(I))return b(new Error("First argument to waterfall must be an array of functions"));if(!I.length)return b();var S=0;function T(L){var M=E(I[S++]);M(...L,oe(P))}o(T,"nextTask");function P(L,...M){if(L!==!1){if(L||S===I.length)return b(L,...M);T(M)}}o(P,"next"),T([])}o(cqe,"waterfall");var kZ=y(cqe),lqe={apply:e,applyEach:oi,applyEachSeries:vc,asyncify:d,auto:Pd,autoInject:am,cargo:lm,cargoQueue:Ws,compose:be,concat:X,concatLimit:q,concatSeries:It,constant:pn,detect:um,detectLimit:nx,detectSeries:ix,dir:nZ,doUntil:iZ,doWhilst:KC,each:sx,eachLimit:XC,eachOf:Rt,eachOfLimit:z,eachOfSeries:Wr,eachSeries:ZC,ensureAsync:fL,every:ox,everyLimit:ax,everySeries:cx,filter:ux,filterLimit:dx,filterSeries:fx,forever:oZ,groupBy:aZ,groupByLimit:hx,groupBySeries:cZ,log:lZ,map:hn,mapLimit:x,mapSeries:pu,mapValues:uZ,mapValuesLimit:px,mapValuesSeries:dZ,memoize:fZ,nextTick:hZ,parallel:pZ,parallelLimit:AZ,priorityQueue:gZ,queue:pL,race:yZ,reduce:Fa,reduceRight:mx,reflect:gx,reflectAll:EZ,reject:CZ,rejectLimit:bZ,rejectSeries:wZ,retry:yx,retryable:BZ,seq:YC,series:xZ,setImmediate:u,some:Ex,someLimit:Cx,someSeries:bx,sortBy:vZ,timeout:NZ,times:_Z,timesLimit:wx,timesSeries:TZ,transform:RZ,tryEach:DZ,unmemoize:QZ,until:PZ,waterfall:kZ,whilst:eb,all:ox,allLimit:ax,allSeries:cx,any:Ex,anyLimit:Cx,anySeries:bx,find:um,findLimit:nx,findSeries:ix,flatMap:X,flatMapLimit:q,flatMapSeries:It,forEach:sx,forEachSeries:ZC,forEachLimit:XC,forEachOf:Rt,forEachOfSeries:Wr,forEachOfLimit:z,inject:Fa,foldl:Fa,foldr:mx,select:ux,selectLimit:dx,selectSeries:fx,wrapSync:d,during:eb,doDuring:KC};t.all=ox,t.allLimit=ax,t.allSeries=cx,t.any=Ex,t.anyLimit=Cx,t.anySeries=bx,t.apply=e,t.applyEach=oi,t.applyEachSeries=vc,t.asyncify=d,t.auto=Pd,t.autoInject=am,t.cargo=lm,t.cargoQueue=Ws,t.compose=be,t.concat=X,t.concatLimit=q,t.concatSeries=It,t.constant=pn,t.default=lqe,t.detect=um,t.detectLimit=nx,t.detectSeries=ix,t.dir=nZ,t.doDuring=KC,t.doUntil=iZ,t.doWhilst=KC,t.during=eb,t.each=sx,t.eachLimit=XC,t.eachOf=Rt,t.eachOfLimit=z,t.eachOfSeries=Wr,t.eachSeries=ZC,t.ensureAsync=fL,t.every=ox,t.everyLimit=ax,t.everySeries=cx,t.filter=ux,t.filterLimit=dx,t.filterSeries=fx,t.find=um,t.findLimit=nx,t.findSeries=ix,t.flatMap=X,t.flatMapLimit=q,t.flatMapSeries=It,t.foldl=Fa,t.foldr=mx,t.forEach=sx,t.forEachLimit=XC,t.forEachOf=Rt,t.forEachOfLimit=z,t.forEachOfSeries=Wr,t.forEachSeries=ZC,t.forever=oZ,t.groupBy=aZ,t.groupByLimit=hx,t.groupBySeries=cZ,t.inject=Fa,t.log=lZ,t.map=hn,t.mapLimit=x,t.mapSeries=pu,t.mapValues=uZ,t.mapValuesLimit=px,t.mapValuesSeries=dZ,t.memoize=fZ,t.nextTick=hZ,t.parallel=pZ,t.parallelLimit=AZ,t.priorityQueue=gZ,t.queue=pL,t.race=yZ,t.reduce=Fa,t.reduceRight=mx,t.reflect=gx,t.reflectAll=EZ,t.reject=CZ,t.rejectLimit=bZ,t.rejectSeries=wZ,t.retry=yx,t.retryable=BZ,t.select=ux,t.selectLimit=dx,t.selectSeries=fx,t.seq=YC,t.series=xZ,t.setImmediate=u,t.some=Ex,t.someLimit=Cx,t.someSeries=bx,t.sortBy=vZ,t.timeout=NZ,t.times=_Z,t.timesLimit=wx,t.timesSeries=TZ,t.transform=RZ,t.tryEach=DZ,t.unmemoize=QZ,t.until=PZ,t.waterfall=kZ,t.whilst=eb,t.wrapSync=d,Object.defineProperty(t,"__esModule",{value:!0})}))});var fxe=m((p_r,dxe)=>{var Uf=require("constants"),Awt=process.cwd,GQ=null,mwt=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return GQ||(GQ=Awt.call(process)),GQ};try{process.cwd()}catch{}typeof process.chdir=="function"&&(lW=process.chdir,process.chdir=function(t){GQ=null,lW.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,lW));var lW;dxe.exports=gwt;function gwt(t){Uf.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(d,f,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(d,f,h,p){p&&process.nextTick(p)},t.lchownSync=function(){}),mwt==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(d){function f(h,p,g){var A=Date.now(),E=0;d(h,p,o(function y(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-A<6e4){setTimeout(function(){t.stat(p,function(w,B){w&&w.code==="ENOENT"?d(h,p,y):g(C)})},E),E<100&&(E+=10);return}g&&g(C)},"CB"))}return o(f,"rename"),Object.setPrototypeOf&&Object.setPrototypeOf(f,d),f})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(d){function f(h,p,g,A,E,y){var C;if(y&&typeof y=="function"){var w=0;C=o(function(B,Q,U){if(B&&B.code==="EAGAIN"&&w<10)return w++,d.call(t,h,p,g,A,E,C);y.apply(this,arguments)},"callback")}return d.call(t,h,p,g,A,E,C)}return o(f,"read"),Object.setPrototypeOf&&Object.setPrototypeOf(f,d),f})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(d){return function(f,h,p,g,A){for(var E=0;;)try{return d.call(t,f,h,p,g,A)}catch(y){if(y.code==="EAGAIN"&&E<10){E++;continue}throw y}}})(t.readSync);function e(d){d.lchmod=function(f,h,p){d.open(f,Uf.O_WRONLY|Uf.O_SYMLINK,h,function(g,A){if(g){p&&p(g);return}d.fchmod(A,h,function(E){d.close(A,function(y){p&&p(E||y)})})})},d.lchmodSync=function(f,h){var p=d.openSync(f,Uf.O_WRONLY|Uf.O_SYMLINK,h),g=!0,A;try{A=d.fchmodSync(p,h),g=!1}finally{if(g)try{d.closeSync(p)}catch{}else d.closeSync(p)}return A}}o(e,"patchLchmod");function r(d){Uf.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(f,h,p,g){d.open(f,Uf.O_SYMLINK,function(A,E){if(A){g&&g(A);return}d.futimes(E,h,p,function(y){d.close(E,function(C){g&&g(y||C)})})})},d.lutimesSync=function(f,h,p){var g=d.openSync(f,Uf.O_SYMLINK),A,E=!0;try{A=d.futimesSync(g,h,p),E=!1}finally{if(E)try{d.closeSync(g)}catch{}else d.closeSync(g)}return A}):d.futimes&&(d.lutimes=function(f,h,p,g){g&&process.nextTick(g)},d.lutimesSync=function(){})}o(r,"patchLutimes");function n(d){return d&&function(f,h,p){return d.call(t,f,h,function(g){u(g)&&(g=null),p&&p.apply(this,arguments)})}}o(n,"chmodFix");function i(d){return d&&function(f,h){try{return d.call(t,f,h)}catch(p){if(!u(p))throw p}}}o(i,"chmodFixSync");function s(d){return d&&function(f,h,p,g){return d.call(t,f,h,p,function(A){u(A)&&(A=null),g&&g.apply(this,arguments)})}}o(s,"chownFix");function a(d){return d&&function(f,h,p){try{return d.call(t,f,h,p)}catch(g){if(!u(g))throw g}}}o(a,"chownFixSync");function c(d){return d&&function(f,h,p){typeof h=="function"&&(p=h,h=null);function g(A,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),p&&p.apply(this,arguments)}return o(g,"callback"),h?d.call(t,f,h,g):d.call(t,f,g)}}o(c,"statFix");function l(d){return d&&function(f,h){var p=h?d.call(t,f,h):d.call(t,f);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}o(l,"statFixSync");function u(d){if(!d||d.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(d.code==="EINVAL"||d.code==="EPERM"))}o(u,"chownErOk")}o(gwt,"patch")});var Axe=m((m_r,pxe)=>{var hxe=require("stream").Stream;pxe.exports=ywt;function ywt(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);hxe.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),c=0,l=a.length;c<l;c++){var u=a[c];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(d,f){if(d){s.emit("error",d),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);hxe.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),a=0,c=s.length;a<c;a++){var l=s[a];this[l]=i[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}o(ywt,"legacy")});var gxe=m((y_r,mxe)=>{"use strict";mxe.exports=Cwt;var Ewt=Object.getPrototypeOf||function(t){return t.__proto__};function Cwt(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Ewt(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}o(Cwt,"clone")});var hW=m((C_r,fW)=>{var Nr=require("fs"),bwt=fxe(),wwt=Axe(),Iwt=gxe(),HQ=require("util"),gi,zQ;typeof Symbol=="function"&&typeof Symbol.for=="function"?(gi=Symbol.for("graceful-fs.queue"),zQ=Symbol.for("graceful-fs.previous")):(gi="___graceful-fs.queue",zQ="___graceful-fs.previous");function Swt(){}o(Swt,"noop");function Cxe(t,e){Object.defineProperty(t,gi,{get:o(function(){return e},"get")})}o(Cxe,"publishQueue");var lA=Swt;HQ.debuglog?lA=HQ.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(lA=o(function(){var t=HQ.format.apply(HQ,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
GFS4: `),console.error(t)},"debug"));Nr[gi]||(yxe=global[gi]||[],Cxe(Nr,yxe),Nr.close=(function(t){function e(r,n){return t.call(Nr,r,function(i){i||Exe(),typeof n=="function"&&n.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,zQ,{value:t}),e})(Nr.close),Nr.closeSync=(function(t){function e(r){t.apply(Nr,arguments),Exe()}return o(e,"closeSync"),Object.defineProperty(e,zQ,{value:t}),e})(Nr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){lA(Nr[gi]),require("assert").equal(Nr[gi].length,0)}));var yxe;global[gi]||Cxe(global,Nr[gi]);fW.exports=uW(Iwt(Nr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Nr.__patched&&(fW.exports=uW(Nr),Nr.__patched=!0);function uW(t){bwt(t),t.gracefulify=uW,t.createReadStream=Q,t.createWriteStream=U;var e=t.readFile;t.readFile=r;function r(D,H,V){return typeof H=="function"&&(V=H,H=null),J(D,H,V);function J(oe,ae,Ce,K){return e(oe,ae,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?lE([J,[oe,ae,Ce],z,K||Date.now(),Date.now()]):typeof Ce=="function"&&Ce.apply(this,arguments)})}o(J,"go$readFile")}o(r,"readFile");var n=t.writeFile;t.writeFile=i;function i(D,H,V,J){return typeof V=="function"&&(J=V,V=null),oe(D,H,V,J);function oe(ae,Ce,K,z,Se){return n(ae,Ce,K,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?lE([oe,[ae,Ce,K,z],xe,Se||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(oe,"go$writeFile")}o(i,"writeFile");var s=t.appendFile;s&&(t.appendFile=a);function a(D,H,V,J){return typeof V=="function"&&(J=V,V=null),oe(D,H,V,J);function oe(ae,Ce,K,z,Se){return s(ae,Ce,K,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?lE([oe,[ae,Ce,K,z],xe,Se||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(oe,"go$appendFile")}o(a,"appendFile");var c=t.copyFile;c&&(t.copyFile=l);function l(D,H,V,J){return typeof V=="function"&&(J=V,V=0),oe(D,H,V,J);function oe(ae,Ce,K,z,Se){return c(ae,Ce,K,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?lE([oe,[ae,Ce,K,z],xe,Se||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(oe,"go$copyFile")}o(l,"copyFile");var u=t.readdir;t.readdir=f;var d=/^v[0-5]\./;function f(D,H,V){typeof H=="function"&&(V=H,H=null);var J=d.test(process.version)?o(function(Ce,K,z,Se){return u(Ce,oe(Ce,K,z,Se))},"go$readdir"):o(function(Ce,K,z,Se){return u(Ce,K,oe(Ce,K,z,Se))},"go$readdir");return J(D,H,V);function oe(ae,Ce,K,z){return function(Se,xe){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?lE([J,[ae,Ce,K],Se,z||Date.now(),Date.now()]):(xe&&xe.sort&&xe.sort(),typeof K=="function"&&K.call(this,Se,xe))}}}if(o(f,"readdir"),process.version.substr(0,4)==="v0.8"){var h=wwt(t);y=h.ReadStream,w=h.WriteStream}var p=t.ReadStream;p&&(y.prototype=Object.create(p.prototype),y.prototype.open=C);var g=t.WriteStream;g&&(w.prototype=Object.create(g.prototype),w.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:o(function(){return y},"get"),set:o(function(D){y=D},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return w},"get"),set:o(function(D){w=D},"set"),enumerable:!0,configurable:!0});var A=y;Object.defineProperty(t,"FileReadStream",{get:o(function(){return A},"get"),set:o(function(D){A=D},"set"),enumerable:!0,configurable:!0});var E=w;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(D){E=D},"set"),enumerable:!0,configurable:!0});function y(D,H){return this instanceof y?(p.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}o(y,"ReadStream");function C(){var D=this;j(D.path,D.flags,D.mode,function(H,V){H?(D.autoClose&&D.destroy(),D.emit("error",H)):(D.fd=V,D.emit("open",V),D.read())})}o(C,"ReadStream$open");function w(D,H){return this instanceof w?(g.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}o(w,"WriteStream");function B(){var D=this;j(D.path,D.flags,D.mode,function(H,V){H?(D.destroy(),D.emit("error",H)):(D.fd=V,D.emit("open",V))})}o(B,"WriteStream$open");function Q(D,H){return new t.ReadStream(D,H)}o(Q,"createReadStream");function U(D,H){return new t.WriteStream(D,H)}o(U,"createWriteStream");var v=t.open;t.open=j;function j(D,H,V,J){return typeof V=="function"&&(J=V,V=null),oe(D,H,V,J);function oe(ae,Ce,K,z,Se){return v(ae,Ce,K,function(xe,lt){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?lE([oe,[ae,Ce,K,z],xe,Se||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(oe,"go$open")}return o(j,"open"),t}o(uW,"patch");function lE(t){lA("ENQUEUE",t[0].name,t[1]),Nr[gi].push(t),dW()}o(lE,"enqueue");var VQ;function Exe(){for(var t=Date.now(),e=0;e<Nr[gi].length;++e)Nr[gi][e].length>2&&(Nr[gi][e][3]=t,Nr[gi][e][4]=t);dW()}o(Exe,"resetQueue");function dW(){if(clearTimeout(VQ),VQ=void 0,Nr[gi].length!==0){var t=Nr[gi].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)lA("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){lA("TIMEOUT",e.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var c=Date.now()-s,l=Math.max(s-i,1),u=Math.min(l*1.2,100);c>=u?(lA("RETRY",e.name,r),e.apply(null,r.concat([i]))):Nr[gi].push(t)}VQ===void 0&&(VQ=setTimeout(dW,0))}}o(dW,"retry")});var $Q=m((w_r,bxe)=>{"use strict";var ql=o(t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function","isStream");ql.writable=t=>ql(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";ql.readable=t=>ql(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";ql.duplex=t=>ql.writable(t)&&ql.readable(t);ql.transform=t=>ql.duplex(t)&&typeof t._transform=="function";bxe.exports=ql});var YI=m((S_r,pW)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?pW.exports={nextTick:Bwt}:pW.exports=process;function Bwt(t,e,r,n){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,a;switch(i){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(o(function(){t.call(null,e)},"afterTickOne"));case 3:return process.nextTick(o(function(){t.call(null,e,r)},"afterTickTwo"));case 4:return process.nextTick(o(function(){t.call(null,e,r,n)},"afterTickThree"));default:for(s=new Array(i-1),a=0;a<s.length;)s[a++]=arguments[a];return process.nextTick(o(function(){t.apply(null,s)},"afterTick"))}}o(Bwt,"nextTick")});var Ixe=m((x_r,wxe)=>{var xwt={}.toString;wxe.exports=Array.isArray||function(t){return xwt.call(t)=="[object Array]"}});var AW=m((v_r,Sxe)=>{Sxe.exports=require("stream")});var KI=m((mW,xxe)=>{var jQ=require("buffer"),ud=jQ.Buffer;function Bxe(t,e){for(var r in t)e[r]=t[r]}o(Bxe,"copyProps");ud.from&&ud.alloc&&ud.allocUnsafe&&ud.allocUnsafeSlow?xxe.exports=jQ:(Bxe(jQ,mW),mW.Buffer=uE);function uE(t,e,r){return ud(t,e,r)}o(uE,"SafeBuffer");Bxe(ud,uE);uE.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ud(t,e,r)};uE.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=ud(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};uE.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ud(t)};uE.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return jQ.SlowBuffer(t)}});var dE=m(Ri=>{function vwt(t){return Array.isArray?Array.isArray(t):WQ(t)==="[object Array]"}o(vwt,"isArray");Ri.isArray=vwt;function Nwt(t){return typeof t=="boolean"}o(Nwt,"isBoolean");Ri.isBoolean=Nwt;function _wt(t){return t===null}o(_wt,"isNull");Ri.isNull=_wt;function Twt(t){return t==null}o(Twt,"isNullOrUndefined");Ri.isNullOrUndefined=Twt;function Rwt(t){return typeof t=="number"}o(Rwt,"isNumber");Ri.isNumber=Rwt;function Dwt(t){return typeof t=="string"}o(Dwt,"isString");Ri.isString=Dwt;function Qwt(t){return typeof t=="symbol"}o(Qwt,"isSymbol");Ri.isSymbol=Qwt;function Pwt(t){return t===void 0}o(Pwt,"isUndefined");Ri.isUndefined=Pwt;function kwt(t){return WQ(t)==="[object RegExp]"}o(kwt,"isRegExp");Ri.isRegExp=kwt;function Owt(t){return typeof t=="object"&&t!==null}o(Owt,"isObject");Ri.isObject=Owt;function Lwt(t){return WQ(t)==="[object Date]"}o(Lwt,"isDate");Ri.isDate=Lwt;function Fwt(t){return WQ(t)==="[object Error]"||t instanceof Error}o(Fwt,"isError");Ri.isError=Fwt;function Mwt(t){return typeof t=="function"}o(Mwt,"isFunction");Ri.isFunction=Mwt;function Uwt(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}o(Uwt,"isPrimitive");Ri.isPrimitive=Uwt;Ri.isBuffer=require("buffer").Buffer.isBuffer;function WQ(t){return Object.prototype.toString.call(t)}o(WQ,"objectToString")});var vxe=m((R_r,gW)=>{typeof Object.create=="function"?gW.exports=o(function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):gW.exports=o(function(e,r){if(r){e.super_=r;var n=o(function(){},"TempCtor");n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}},"inherits")});var fE=m((Q_r,EW)=>{try{if(yW=require("util"),typeof yW.inherits!="function")throw"";EW.exports=yW.inherits}catch{EW.exports=vxe()}var yW});var _xe=m((P_r,CW)=>{"use strict";function qwt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}o(qwt,"_classCallCheck");var Nxe=KI().Buffer,XI=require("util");function Gwt(t,e,r){t.copy(e,r)}o(Gwt,"copyBuffer");CW.exports=(function(){function t(){qwt(this,t),this.head=null,this.tail=null,this.length=0}return o(t,"BufferList"),t.prototype.push=o(function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},"push"),t.prototype.unshift=o(function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},"unshift"),t.prototype.shift=o(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},"shift"),t.prototype.clear=o(function(){this.head=this.tail=null,this.length=0},"clear"),t.prototype.join=o(function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},"join"),t.prototype.concat=o(function(r){if(this.length===0)return Nxe.alloc(0);for(var n=Nxe.allocUnsafe(r>>>0),i=this.head,s=0;i;)Gwt(i.data,n,s),s+=i.data.length,i=i.next;return n},"concat"),t})();XI&&XI.inspect&&XI.inspect.custom&&(CW.exports.prototype[XI.inspect.custom]=function(){var t=XI.inspect({length:this.length});return this.constructor.name+" "+t})});var bW=m((O_r,Txe)=>{"use strict";var JQ=YI();function Hwt(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,JQ.nextTick(YQ,this,t)):JQ.nextTick(YQ,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,JQ.nextTick(YQ,r,s)):JQ.nextTick(YQ,r,s):e&&e(s)}),this)}o(Hwt,"destroy");function Vwt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}o(Vwt,"undestroy");function YQ(t,e){t.emit("error",e)}o(YQ,"emitErrorNT");Txe.exports={destroy:Hwt,undestroy:Vwt}});var Dxe=m((F_r,Rxe)=>{Rxe.exports=require("util").deprecate});var IW=m((M_r,Uxe)=>{"use strict";var uA=YI();Uxe.exports=bn;function Pxe(t){var e=this;this.next=null,this.entry=null,this.finish=function(){cIt(e,t)}}o(Pxe,"CorkedRequest");var zwt=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:uA.nextTick,hE;bn.WritableState=eS;var kxe=Object.create(dE());kxe.inherits=fE();var $wt={deprecate:Dxe()},Oxe=AW(),XQ=KI().Buffer,jwt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Wwt(t){return XQ.from(t)}o(Wwt,"_uint8ArrayToBuffer");function Jwt(t){return XQ.isBuffer(t)||t instanceof jwt}o(Jwt,"_isUint8Array");var Lxe=bW();kxe.inherits(bn,Oxe);function Ywt(){}o(Ywt,"nop");function eS(t,e){hE=hE||dA(),t=t||{};var r=e instanceof hE;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=t.writableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=t.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(c){nIt(e,c)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Pxe(this)}o(eS,"WritableState");eS.prototype.getBuffer=o(function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r},"getBuffer");(function(){try{Object.defineProperty(eS.prototype,"buffer",{get:$wt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var KQ;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(KQ=Function.prototype[Symbol.hasInstance],Object.defineProperty(bn,Symbol.hasInstance,{value:o(function(t){return KQ.call(this,t)?!0:this!==bn?!1:t&&t._writableState instanceof eS},"value")})):KQ=o(function(t){return t instanceof this},"realHasInstance");function bn(t){if(hE=hE||dA(),!KQ.call(bn,this)&&!(this instanceof hE))return new bn(t);this._writableState=new eS(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Oxe.call(this)}o(bn,"Writable");bn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Kwt(t,e){var r=new Error("write after end");t.emit("error",r),uA.nextTick(e,r)}o(Kwt,"writeAfterEnd");function Xwt(t,e,r,n){var i=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),uA.nextTick(n,s),i=!1),i}o(Xwt,"validChunk");bn.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&Jwt(t);return s&&!XQ.isBuffer(t)&&(t=Wwt(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Ywt),n.ended?Kwt(this,r):(s||Xwt(this,n,t,r))&&(n.pendingcb++,i=eIt(this,n,s,t,e,r)),i};bn.prototype.cork=function(){var t=this._writableState;t.corked++};bn.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Fxe(this,t))};bn.prototype.setDefaultEncoding=o(function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},"setDefaultEncoding");function Zwt(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=XQ.from(e,r)),e}o(Zwt,"decodeChunk");Object.defineProperty(bn.prototype,"writableHighWaterMark",{enumerable:!1,get:o(function(){return this._writableState.highWaterMark},"get")});function eIt(t,e,r,n,i,s){if(!r){var a=Zwt(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var c=e.objectMode?1:n.length;e.length+=c;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else wW(t,e,!1,c,n,i,s);return l}o(eIt,"writeOrBuffer");function wW(t,e,r,n,i,s,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}o(wW,"doWrite");function tIt(t,e,r,n,i){--e.pendingcb,r?(uA.nextTick(i,n),uA.nextTick(ZI,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),ZI(t,e))}o(tIt,"onwriteError");function rIt(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}o(rIt,"onwriteStateUpdate");function nIt(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(rIt(r),e)tIt(t,r,n,e,i);else{var s=Mxe(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Fxe(t,r),n?zwt(Qxe,t,r,s,i):Qxe(t,r,s,i)}}o(nIt,"onwrite");function Qxe(t,e,r,n){r||iIt(t,e),e.pendingcb--,n(),ZI(t,e)}o(Qxe,"afterWrite");function iIt(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}o(iIt,"onwriteDrain");function Fxe(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var a=0,c=!0;r;)i[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;i.allBuffers=c,wW(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Pxe(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback,f=e.objectMode?1:l.length;if(wW(t,e,!1,f,l,u,d),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}o(Fxe,"clearBuffer");bn.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};bn.prototype._writev=null;bn.prototype.end=function(t,e,r){var n=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||aIt(this,n,r)};function Mxe(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}o(Mxe,"needFinish");function sIt(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),ZI(t,e)})}o(sIt,"callFinal");function oIt(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,uA.nextTick(sIt,t,e)):(e.prefinished=!0,t.emit("prefinish")))}o(oIt,"prefinish");function ZI(t,e){var r=Mxe(e);return r&&(oIt(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}o(ZI,"finishMaybe");function aIt(t,e,r){e.ending=!0,ZI(t,e),r&&(e.finished?uA.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}o(aIt,"endWritable");function cIt(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}o(cIt,"onCorkedFinish");Object.defineProperty(bn.prototype,"destroyed",{get:o(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:o(function(t){this._writableState&&(this._writableState.destroyed=t)},"set")});bn.prototype.destroy=Lxe.destroy;bn.prototype._undestroy=Lxe.undestroy;bn.prototype._destroy=function(t,e){this.end(),e(t)}});var dA=m((q_r,Vxe)=>{"use strict";var qxe=YI(),lIt=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Vxe.exports=dd;var Gxe=Object.create(dE());Gxe.inherits=fE();var Hxe=xW(),BW=IW();Gxe.inherits(dd,Hxe);for(SW=lIt(BW.prototype),ZQ=0;ZQ<SW.length;ZQ++)e1=SW[ZQ],dd.prototype[e1]||(dd.prototype[e1]=BW.prototype[e1]);var SW,e1,ZQ;function dd(t){if(!(this instanceof dd))return new dd(t);Hxe.call(this,t),BW.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",uIt)}o(dd,"Duplex");Object.defineProperty(dd.prototype,"writableHighWaterMark",{enumerable:!1,get:o(function(){return this._writableState.highWaterMark},"get")});function uIt(){this.allowHalfOpen||this._writableState.ended||qxe.nextTick(dIt,this)}o(uIt,"onend");function dIt(t){t.end()}o(dIt,"onEndNT");Object.defineProperty(dd.prototype,"destroyed",{get:o(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:o(function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)},"set")});dd.prototype._destroy=function(t,e){this.push(null),this.end(),qxe.nextTick(e,t)}});var _W=m($xe=>{"use strict";var NW=KI().Buffer,zxe=NW.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function fIt(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}o(fIt,"_normalizeEncoding");function hIt(t){var e=fIt(t);if(typeof e!="string"&&(NW.isEncoding===zxe||!zxe(t)))throw new Error("Unknown encoding: "+t);return e||t}o(hIt,"normalizeEncoding");$xe.StringDecoder=tS;function tS(t){this.encoding=hIt(t);var e;switch(this.encoding){case"utf16le":this.text=EIt,this.end=CIt,e=4;break;case"utf8":this.fillLast=mIt,e=4;break;case"base64":this.text=bIt,this.end=wIt,e=3;break;default:this.write=IIt,this.end=SIt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=NW.allocUnsafe(e)}o(tS,"StringDecoder");tS.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};tS.prototype.end=yIt;tS.prototype.text=gIt;tS.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function vW(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}o(vW,"utf8CheckByte");function pIt(t,e,r){var n=e.length-1;if(n<r)return 0;var i=vW(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=vW(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=vW(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}o(pIt,"utf8CheckIncomplete");function AIt(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}o(AIt,"utf8CheckExtraBytes");function mIt(t){var e=this.lastTotal-this.lastNeed,r=AIt(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}o(mIt,"utf8FillLast");function gIt(t,e){var r=pIt(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}o(gIt,"utf8Text");function yIt(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}o(yIt,"utf8End");function EIt(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}o(EIt,"utf16Text");function CIt(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}o(CIt,"utf16End");function bIt(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}o(bIt,"base64Text");function wIt(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}o(wIt,"base64End");function IIt(t){return t.toString(this.encoding)}o(IIt,"simpleWrite");function SIt(t){return t&&t.length?this.write(t):""}o(SIt,"simpleEnd")});var xW=m(($_r,ive)=>{"use strict";var AE=YI();ive.exports=lr;var BIt=Ixe(),rS;lr.ReadableState=Zxe;var z_r=require("events").EventEmitter,Yxe=o(function(t,e){return t.listeners(e).length},"EElistenerCount"),PW=AW(),nS=KI().Buffer,xIt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function vIt(t){return nS.from(t)}o(vIt,"_uint8ArrayToBuffer");function NIt(t){return nS.isBuffer(t)||t instanceof xIt}o(NIt,"_isUint8Array");var Kxe=Object.create(dE());Kxe.inherits=fE();var TW=require("util"),Mt=void 0;TW&&TW.debuglog?Mt=TW.debuglog("stream"):Mt=o(function(){},"debug");var _It=_xe(),Xxe=bW(),pE;Kxe.inherits(lr,PW);var RW=["error","close","destroy","pause","resume"];function TIt(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):BIt(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}o(TIt,"prependListener");function Zxe(t,e){rS=rS||dA(),t=t||{};var r=e instanceof rS;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=t.readableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _It,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(pE||(pE=_W().StringDecoder),this.decoder=new pE(t.encoding),this.encoding=t.encoding)}o(Zxe,"ReadableState");function lr(t){if(rS=rS||dA(),!(this instanceof lr))return new lr(t);this._readableState=new Zxe(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),PW.call(this)}o(lr,"Readable");Object.defineProperty(lr.prototype,"destroyed",{get:o(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:o(function(t){this._readableState&&(this._readableState.destroyed=t)},"set")});lr.prototype.destroy=Xxe.destroy;lr.prototype._undestroy=Xxe.undestroy;lr.prototype._destroy=function(t,e){this.push(null),e(t)};lr.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=nS.from(t,e),e=""),n=!0),eve(this,t,e,!1,n)};lr.prototype.unshift=function(t){return eve(this,t,null,!0,!1)};function eve(t,e,r,n,i){var s=t._readableState;if(e===null)s.reading=!1,PIt(t,s);else{var a;i||(a=RIt(s,e)),a?t.emit("error",a):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==nS.prototype&&(e=vIt(e)),n?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):DW(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?DW(t,s,e,!1):tve(t,s)):DW(t,s,e,!1))):n||(s.reading=!1)}return DIt(s)}o(eve,"readableAddChunk");function DW(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&t1(t)),tve(t,e)}o(DW,"addChunk");function RIt(t,e){var r;return!NIt(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}o(RIt,"chunkInvalid");function DIt(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}o(DIt,"needMoreData");lr.prototype.isPaused=function(){return this._readableState.flowing===!1};lr.prototype.setEncoding=function(t){return pE||(pE=_W().StringDecoder),this._readableState.decoder=new pE(t),this._readableState.encoding=t,this};var jxe=8388608;function QIt(t){return t>=jxe?t=jxe:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}o(QIt,"computeNewHighWaterMark");function Wxe(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=QIt(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}o(Wxe,"howMuchToRead");lr.prototype.read=function(t){Mt("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Mt("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?QW(this):t1(this),null;if(t=Wxe(t,e),t===0&&e.ended)return e.length===0&&QW(this),null;var n=e.needReadable;Mt("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,Mt("length less than watermark",n)),e.ended||e.reading?(n=!1,Mt("reading or ended",n)):n&&(Mt("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Wxe(r,e)));var i;return t>0?i=rve(t,e):i=null,i===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&QW(this)),i!==null&&this.emit("data",i),i};function PIt(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,t1(t)}}o(PIt,"onEofChunk");function t1(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Mt("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?AE.nextTick(Jxe,t):Jxe(t))}o(t1,"emitReadable");function Jxe(t){Mt("emit readable"),t.emit("readable"),kW(t)}o(Jxe,"emitReadable_");function tve(t,e){e.readingMore||(e.readingMore=!0,AE.nextTick(kIt,t,e))}o(tve,"maybeReadMore");function kIt(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Mt("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}o(kIt,"maybeReadMore_");lr.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};lr.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,Mt("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?c:E;n.endEmitted?AE.nextTick(s):r.once("end",s),t.on("unpipe",a);function a(y,C){Mt("onunpipe"),y===r&&C&&C.hasUnpiped===!1&&(C.hasUnpiped=!0,d())}o(a,"onunpipe");function c(){Mt("onend"),t.end()}o(c,"onend");var l=OIt(r);t.on("drain",l);var u=!1;function d(){Mt("cleanup"),t.removeListener("close",g),t.removeListener("finish",A),t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",a),r.removeListener("end",c),r.removeListener("end",E),r.removeListener("data",h),u=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}o(d,"cleanup");var f=!1;r.on("data",h);function h(y){Mt("ondata"),f=!1;var C=t.write(y);C===!1&&!f&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&nve(n.pipes,t)!==-1)&&!u&&(Mt("false write response, pause",n.awaitDrain),n.awaitDrain++,f=!0),r.pause())}o(h,"ondata");function p(y){Mt("onerror",y),E(),t.removeListener("error",p),Yxe(t,"error")===0&&t.emit("error",y)}o(p,"onerror"),TIt(t,"error",p);function g(){t.removeListener("finish",A),E()}o(g,"onclose"),t.once("close",g);function A(){Mt("onfinish"),t.removeListener("close",g),E()}o(A,"onfinish"),t.once("finish",A);function E(){Mt("unpipe"),r.unpipe(t)}return o(E,"unpipe"),t.emit("pipe",r),n.flowing||(Mt("pipe resume"),r.resume()),t};function OIt(t){return function(){var e=t._readableState;Mt("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Yxe(t,"data")&&(e.flowing=!0,kW(t))}}o(OIt,"pipeOnDrain");lr.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=nve(e.pipes,t);return a===-1?this:(e.pipes.splice(a,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};lr.prototype.on=function(t,e){var r=PW.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&t1(this):AE.nextTick(LIt,this))}return r};lr.prototype.addListener=lr.prototype.on;function LIt(t){Mt("readable nexttick read 0"),t.read(0)}o(LIt,"nReadingNextTick");lr.prototype.resume=function(){var t=this._readableState;return t.flowing||(Mt("resume"),t.flowing=!0,FIt(this,t)),this};function FIt(t,e){e.resumeScheduled||(e.resumeScheduled=!0,AE.nextTick(MIt,t,e))}o(FIt,"resume");function MIt(t,e){e.reading||(Mt("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),kW(t),e.flowing&&!e.reading&&t.read(0)}o(MIt,"resume_");lr.prototype.pause=function(){return Mt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Mt("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function kW(t){var e=t._readableState;for(Mt("flow",e.flowing);e.flowing&&t.read()!==null;);}o(kW,"flow");lr.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(Mt("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&e.push(a)}e.push(null)}),t.on("data",function(a){if(Mt("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var c=e.push(a);c||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=(function(a){return function(){return t[a].apply(t,arguments)}})(i));for(var s=0;s<RW.length;s++)t.on(RW[s],this.emit.bind(this,RW[s]));return this._read=function(a){Mt("wrapped _read",a),n&&(n=!1,t.resume())},this};Object.defineProperty(lr.prototype,"readableHighWaterMark",{enumerable:!1,get:o(function(){return this._readableState.highWaterMark},"get")});lr._fromList=rve;function rve(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=UIt(t,e.buffer,e.decoder),r}o(rve,"fromList");function UIt(t,e,r){var n;return t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?n=e.shift():n=r?qIt(t,e):GIt(t,e),n}o(UIt,"fromListPartial");function qIt(t,e){var r=e.head,n=1,i=r.data;for(t-=i.length;r=r.next;){var s=r.data,a=t>s.length?s.length:t;if(a===s.length?i+=s:i+=s.slice(0,t),t-=a,t===0){a===s.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(a));break}++n}return e.length-=n,i}o(qIt,"copyFromBufferString");function GIt(t,e){var r=nS.allocUnsafe(t),n=e.head,i=1;for(n.data.copy(r),t-=n.data.length;n=n.next;){var s=n.data,a=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,a),t-=a,t===0){a===s.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=s.slice(a));break}++i}return e.length-=i,r}o(GIt,"copyFromBuffer");function QW(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,AE.nextTick(HIt,e,t))}o(QW,"endReadable");function HIt(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}o(HIt,"endReadableNT");function nve(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}o(nve,"indexOf")});var OW=m((W_r,ave)=>{"use strict";ave.exports=fd;var r1=dA(),ove=Object.create(dE());ove.inherits=fE();ove.inherits(fd,r1);function VIt(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}o(VIt,"afterTransform");function fd(t){if(!(this instanceof fd))return new fd(t);r1.call(this,t),this._transformState={afterTransform:VIt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",zIt)}o(fd,"Transform");function zIt(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){sve(t,e,r)}):sve(this,null,null)}o(zIt,"prefinish");fd.prototype.push=function(t,e){return this._transformState.needTransform=!1,r1.prototype.push.call(this,t,e)};fd.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};fd.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};fd.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};fd.prototype._destroy=function(t,e){var r=this;r1.prototype._destroy.call(this,t,function(n){e(n),r.emit("close")})};function sve(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}o(sve,"done")});var dve=m((Y_r,uve)=>{"use strict";uve.exports=iS;var cve=OW(),lve=Object.create(dE());lve.inherits=fE();lve.inherits(iS,cve);function iS(t){if(!(this instanceof iS))return new iS(t);cve.call(this,t)}o(iS,"PassThrough");iS.prototype._transform=function(t,e,r){r(null,t)}});var fve=m((yi,n1)=>{var Gl=require("stream");process.env.READABLE_STREAM==="disable"&&Gl?(n1.exports=Gl,yi=n1.exports=Gl.Readable,yi.Readable=Gl.Readable,yi.Writable=Gl.Writable,yi.Duplex=Gl.Duplex,yi.Transform=Gl.Transform,yi.PassThrough=Gl.PassThrough,yi.Stream=Gl):(yi=n1.exports=xW(),yi.Stream=Gl||yi,yi.Readable=yi,yi.Writable=IW(),yi.Duplex=dA(),yi.Transform=OW(),yi.PassThrough=dve())});var pve=m((X_r,hve)=>{hve.exports=fve().PassThrough});var yve=m((Z_r,gve)=>{var Ave=require("util"),o1=pve();gve.exports={Readable:i1,Writable:s1};Ave.inherits(i1,o1);Ave.inherits(s1,o1);function mve(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}o(mve,"beforeFirstCall");function i1(t,e){if(!(this instanceof i1))return new i1(t,e);o1.call(this,e),mve(this,"_read",function(){var r=t.call(this,e),n=this.emit.bind(this,"error");r.on("error",n),r.pipe(this)}),this.emit("readable")}o(i1,"Readable");function s1(t,e){if(!(this instanceof s1))return new s1(t,e);o1.call(this,e),mve(this,"_write",function(){var r=t.call(this,e),n=this.emit.bind(this,"error");r.on("error",n),this.pipe(r)}),this.emit("writable")}o(s1,"Writable")});var LW=m((tTr,Eve)=>{Eve.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var n="";if(r>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),n="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")}});var FW=m((rTr,Cve)=>{function $It(t){return t}o($It,"identity");Cve.exports=$It});var wve=m((iTr,bve)=>{function jIt(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}o(jIt,"apply");bve.exports=jIt});var Bve=m((oTr,Sve)=>{var WIt=wve(),Ive=Math.max;function JIt(t,e,r){return e=Ive(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,s=Ive(n.length-e,0),a=Array(s);++i<s;)a[i]=n[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=n[i];return c[e]=r(a),WIt(t,this,c)}}o(JIt,"overRest");Sve.exports=JIt});var vve=m((cTr,xve)=>{function YIt(t){return function(){return t}}o(YIt,"constant");xve.exports=YIt});var MW=m((uTr,Nve)=>{var KIt=typeof global=="object"&&global&&global.Object===Object&&global;Nve.exports=KIt});var mE=m((dTr,_ve)=>{var XIt=MW(),ZIt=typeof self=="object"&&self&&self.Object===Object&&self,eSt=XIt||ZIt||Function("return this")();_ve.exports=eSt});var a1=m((fTr,Tve)=>{var tSt=mE(),rSt=tSt.Symbol;Tve.exports=rSt});var Pve=m((hTr,Qve)=>{var Rve=a1(),Dve=Object.prototype,nSt=Dve.hasOwnProperty,iSt=Dve.toString,sS=Rve?Rve.toStringTag:void 0;function sSt(t){var e=nSt.call(t,sS),r=t[sS];try{t[sS]=void 0;var n=!0}catch{}var i=iSt.call(t);return n&&(e?t[sS]=r:delete t[sS]),i}o(sSt,"getRawTag");Qve.exports=sSt});var Ove=m((ATr,kve)=>{var oSt=Object.prototype,aSt=oSt.toString;function cSt(t){return aSt.call(t)}o(cSt,"objectToString");kve.exports=cSt});var oS=m((gTr,Mve)=>{var Lve=a1(),lSt=Pve(),uSt=Ove(),dSt="[object Null]",fSt="[object Undefined]",Fve=Lve?Lve.toStringTag:void 0;function hSt(t){return t==null?t===void 0?fSt:dSt:Fve&&Fve in Object(t)?lSt(t):uSt(t)}o(hSt,"baseGetTag");Mve.exports=hSt});var aS=m((ETr,Uve)=>{function pSt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}o(pSt,"isObject");Uve.exports=pSt});var UW=m((bTr,qve)=>{var ASt=oS(),mSt=aS(),gSt="[object AsyncFunction]",ySt="[object Function]",ESt="[object GeneratorFunction]",CSt="[object Proxy]";function bSt(t){if(!mSt(t))return!1;var e=ASt(t);return e==ySt||e==ESt||e==gSt||e==CSt}o(bSt,"isFunction");qve.exports=bSt});var Hve=m((ITr,Gve)=>{var wSt=mE(),ISt=wSt["__core-js_shared__"];Gve.exports=ISt});var $ve=m((STr,zve)=>{var qW=Hve(),Vve=(function(){var t=/[^.]+$/.exec(qW&&qW.keys&&qW.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function SSt(t){return!!Vve&&Vve in t}o(SSt,"isMasked");zve.exports=SSt});var Wve=m((xTr,jve)=>{var BSt=Function.prototype,xSt=BSt.toString;function vSt(t){if(t!=null){try{return xSt.call(t)}catch{}try{return t+""}catch{}}return""}o(vSt,"toSource");jve.exports=vSt});var Yve=m((NTr,Jve)=>{var NSt=UW(),_St=$ve(),TSt=aS(),RSt=Wve(),DSt=/[\\^$.*+?()[\]{}|]/g,QSt=/^\[object .+?Constructor\]$/,PSt=Function.prototype,kSt=Object.prototype,OSt=PSt.toString,LSt=kSt.hasOwnProperty,FSt=RegExp("^"+OSt.call(LSt).replace(DSt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function MSt(t){if(!TSt(t)||_St(t))return!1;var e=NSt(t)?FSt:QSt;return e.test(RSt(t))}o(MSt,"baseIsNative");Jve.exports=MSt});var Xve=m((TTr,Kve)=>{function USt(t,e){return t?.[e]}o(USt,"getValue");Kve.exports=USt});var cS=m((DTr,Zve)=>{var qSt=Yve(),GSt=Xve();function HSt(t,e){var r=GSt(t,e);return qSt(r)?r:void 0}o(HSt,"getNative");Zve.exports=HSt});var tNe=m((PTr,eNe)=>{var VSt=cS(),zSt=(function(){try{var t=VSt(Object,"defineProperty");return t({},"",{}),t}catch{}})();eNe.exports=zSt});var iNe=m((kTr,nNe)=>{var $St=vve(),rNe=tNe(),jSt=FW(),WSt=rNe?function(t,e){return rNe(t,"toString",{configurable:!0,enumerable:!1,value:$St(e),writable:!0})}:jSt;nNe.exports=WSt});var oNe=m((OTr,sNe)=>{var JSt=800,YSt=16,KSt=Date.now;function XSt(t){var e=0,r=0;return function(){var n=KSt(),i=YSt-(n-r);if(r=n,i>0){if(++e>=JSt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}o(XSt,"shortOut");sNe.exports=XSt});var cNe=m((FTr,aNe)=>{var ZSt=iNe(),eBt=oNe(),tBt=eBt(ZSt);aNe.exports=tBt});var c1=m((MTr,lNe)=>{var rBt=FW(),nBt=Bve(),iBt=cNe();function sBt(t,e){return iBt(nBt(t,e,rBt),t+"")}o(sBt,"baseRest");lNe.exports=sBt});var l1=m((qTr,uNe)=>{function oBt(t,e){return t===e||t!==t&&e!==e}o(oBt,"eq");uNe.exports=oBt});var GW=m((HTr,dNe)=>{var aBt=9007199254740991;function cBt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=aBt}o(cBt,"isLength");dNe.exports=cBt});var u1=m((zTr,fNe)=>{var lBt=UW(),uBt=GW();function dBt(t){return t!=null&&uBt(t.length)&&!lBt(t)}o(dBt,"isArrayLike");fNe.exports=dBt});var HW=m((jTr,hNe)=>{var fBt=9007199254740991,hBt=/^(?:0|[1-9]\d*)$/;function pBt(t,e){var r=typeof t;return e=e??fBt,!!e&&(r=="number"||r!="symbol"&&hBt.test(t))&&t>-1&&t%1==0&&t<e}o(pBt,"isIndex");hNe.exports=pBt});var ANe=m((JTr,pNe)=>{var ABt=l1(),mBt=u1(),gBt=HW(),yBt=aS();function EBt(t,e,r){if(!yBt(r))return!1;var n=typeof e;return(n=="number"?mBt(r)&&gBt(e,r.length):n=="string"&&e in r)?ABt(r[e],t):!1}o(EBt,"isIterateeCall");pNe.exports=EBt});var gNe=m((KTr,mNe)=>{function CBt(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}o(CBt,"baseTimes");mNe.exports=CBt});var gE=m((ZTr,yNe)=>{function bBt(t){return t!=null&&typeof t=="object"}o(bBt,"isObjectLike");yNe.exports=bBt});var CNe=m((tRr,ENe)=>{var wBt=oS(),IBt=gE(),SBt="[object Arguments]";function BBt(t){return IBt(t)&&wBt(t)==SBt}o(BBt,"baseIsArguments");ENe.exports=BBt});var VW=m((nRr,INe)=>{var bNe=CNe(),xBt=gE(),wNe=Object.prototype,vBt=wNe.hasOwnProperty,NBt=wNe.propertyIsEnumerable,_Bt=bNe((function(){return arguments})())?bNe:function(t){return xBt(t)&&vBt.call(t,"callee")&&!NBt.call(t,"callee")};INe.exports=_Bt});var zW=m((iRr,SNe)=>{var TBt=Array.isArray;SNe.exports=TBt});var xNe=m((sRr,BNe)=>{function RBt(){return!1}o(RBt,"stubFalse");BNe.exports=RBt});var TNe=m((lS,yE)=>{var DBt=mE(),QBt=xNe(),_Ne=typeof lS=="object"&&lS&&!lS.nodeType&&lS,vNe=_Ne&&typeof yE=="object"&&yE&&!yE.nodeType&&yE,PBt=vNe&&vNe.exports===_Ne,NNe=PBt?DBt.Buffer:void 0,kBt=NNe?NNe.isBuffer:void 0,OBt=kBt||QBt;yE.exports=OBt});var DNe=m((aRr,RNe)=>{var LBt=oS(),FBt=GW(),MBt=gE(),UBt="[object Arguments]",qBt="[object Array]",GBt="[object Boolean]",HBt="[object Date]",VBt="[object Error]",zBt="[object Function]",$Bt="[object Map]",jBt="[object Number]",WBt="[object Object]",JBt="[object RegExp]",YBt="[object Set]",KBt="[object String]",XBt="[object WeakMap]",ZBt="[object ArrayBuffer]",ext="[object DataView]",txt="[object Float32Array]",rxt="[object Float64Array]",nxt="[object Int8Array]",ixt="[object Int16Array]",sxt="[object Int32Array]",oxt="[object Uint8Array]",axt="[object Uint8ClampedArray]",cxt="[object Uint16Array]",lxt="[object Uint32Array]",ur={};ur[txt]=ur[rxt]=ur[nxt]=ur[ixt]=ur[sxt]=ur[oxt]=ur[axt]=ur[cxt]=ur[lxt]=!0;ur[UBt]=ur[qBt]=ur[ZBt]=ur[GBt]=ur[ext]=ur[HBt]=ur[VBt]=ur[zBt]=ur[$Bt]=ur[jBt]=ur[WBt]=ur[JBt]=ur[YBt]=ur[KBt]=ur[XBt]=!1;function uxt(t){return MBt(t)&&FBt(t.length)&&!!ur[LBt(t)]}o(uxt,"baseIsTypedArray");RNe.exports=uxt});var $W=m((lRr,QNe)=>{function dxt(t){return function(e){return t(e)}}o(dxt,"baseUnary");QNe.exports=dxt});var kNe=m((uS,EE)=>{var fxt=MW(),PNe=typeof uS=="object"&&uS&&!uS.nodeType&&uS,dS=PNe&&typeof EE=="object"&&EE&&!EE.nodeType&&EE,hxt=dS&&dS.exports===PNe,jW=hxt&&fxt.process,pxt=(function(){try{var t=dS&&dS.require&&dS.require("util").types;return t||jW&&jW.binding&&jW.binding("util")}catch{}})();EE.exports=pxt});var MNe=m((dRr,FNe)=>{var Axt=DNe(),mxt=$W(),ONe=kNe(),LNe=ONe&&ONe.isTypedArray,gxt=LNe?mxt(LNe):Axt;FNe.exports=gxt});var qNe=m((fRr,UNe)=>{var yxt=gNe(),Ext=VW(),Cxt=zW(),bxt=TNe(),wxt=HW(),Ixt=MNe(),Sxt=Object.prototype,Bxt=Sxt.hasOwnProperty;function xxt(t,e){var r=Cxt(t),n=!r&&Ext(t),i=!r&&!n&&bxt(t),s=!r&&!n&&!i&&Ixt(t),a=r||n||i||s,c=a?yxt(t.length,String):[],l=c.length;for(var u in t)(e||Bxt.call(t,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||wxt(u,l)))&&c.push(u);return c}o(xxt,"arrayLikeKeys");UNe.exports=xxt});var HNe=m((pRr,GNe)=>{var vxt=Object.prototype;function Nxt(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||vxt;return t===r}o(Nxt,"isPrototype");GNe.exports=Nxt});var zNe=m((mRr,VNe)=>{function _xt(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}o(_xt,"nativeKeysIn");VNe.exports=_xt});var jNe=m((yRr,$Ne)=>{var Txt=aS(),Rxt=HNe(),Dxt=zNe(),Qxt=Object.prototype,Pxt=Qxt.hasOwnProperty;function kxt(t){if(!Txt(t))return Dxt(t);var e=Rxt(t),r=[];for(var n in t)n=="constructor"&&(e||!Pxt.call(t,n))||r.push(n);return r}o(kxt,"baseKeysIn");$Ne.exports=kxt});var JNe=m((CRr,WNe)=>{var Oxt=qNe(),Lxt=jNe(),Fxt=u1();function Mxt(t){return Fxt(t)?Oxt(t,!0):Lxt(t)}o(Mxt,"keysIn");WNe.exports=Mxt});var XNe=m((wRr,KNe)=>{var Uxt=c1(),qxt=l1(),Gxt=ANe(),Hxt=JNe(),YNe=Object.prototype,Vxt=YNe.hasOwnProperty,zxt=Uxt(function(t,e){t=Object(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&Gxt(e[0],e[1],i)&&(n=1);++r<n;)for(var s=e[r],a=Hxt(s),c=-1,l=a.length;++c<l;){var u=a[c],d=t[u];(d===void 0||qxt(d,YNe[u])&&!Vxt.call(t,u))&&(t[u]=s[u])}return t});KNe.exports=zxt});var _r=m((IRr,ZNe)=>{"use strict";ZNe.exports={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var l_e=m((pS,hS)=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});var s_e=new WeakMap,WW=new WeakMap;function dr(t){let e=s_e.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}o(dr,"pd");function e_e(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}o(e_e,"setCancelFlag");function CE(t,e){s_e.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let n=0;n<r.length;++n){let i=r[n];i in this||Object.defineProperty(this,i,o_e(i))}}o(CE,"Event");CE.prototype={get type(){return dr(this).event.type},get target(){return dr(this).eventTarget},get currentTarget(){return dr(this).currentTarget},composedPath(){let t=dr(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return dr(this).eventPhase},stopPropagation(){let t=dr(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=dr(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!dr(this).event.bubbles},get cancelable(){return!!dr(this).event.cancelable},preventDefault(){e_e(dr(this))},get defaultPrevented(){return dr(this).canceled},get composed(){return!!dr(this).event.composed},get timeStamp(){return dr(this).timeStamp},get srcElement(){return dr(this).eventTarget},get cancelBubble(){return dr(this).stopped},set cancelBubble(t){if(!t)return;let e=dr(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!dr(this).canceled},set returnValue(t){t||e_e(dr(this))},initEvent(){}};Object.defineProperty(CE.prototype,"constructor",{value:CE,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(CE.prototype,window.Event.prototype),WW.set(window.Event.prototype,CE));function o_e(t){return{get(){return dr(this).event[t]},set(e){dr(this).event[t]=e},configurable:!0,enumerable:!0}}o(o_e,"defineRedirectDescriptor");function $xt(t){return{value(){let e=dr(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}o($xt,"defineCallDescriptor");function jxt(t,e){let r=Object.keys(e);if(r.length===0)return t;function n(i,s){t.call(this,i,s)}o(n,"CustomEvent"),n.prototype=Object.create(t.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let i=0;i<r.length;++i){let s=r[i];if(!(s in t.prototype)){let c=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(n.prototype,s,c?$xt(s):o_e(s))}}return n}o(jxt,"defineWrapper");function a_e(t){if(t==null||t===Object.prototype)return CE;let e=WW.get(t);return e==null&&(e=jxt(a_e(Object.getPrototypeOf(t)),t),WW.set(t,e)),e}o(a_e,"getWrapper");function Wxt(t,e){let r=a_e(Object.getPrototypeOf(e));return new r(t,e)}o(Wxt,"wrapEvent");function Jxt(t){return dr(t).immediateStopped}o(Jxt,"isStopped");function Yxt(t,e){dr(t).eventPhase=e}o(Yxt,"setEventPhase");function Kxt(t,e){dr(t).currentTarget=e}o(Kxt,"setCurrentTarget");function t_e(t,e){dr(t).passiveListener=e}o(t_e,"setPassiveListener");var c_e=new WeakMap,r_e=1,n_e=2,d1=3;function f1(t){return t!==null&&typeof t=="object"}o(f1,"isObject");function fS(t){let e=c_e.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}o(fS,"getListeners");function Xxt(t){return{get(){let r=fS(this).get(t);for(;r!=null;){if(r.listenerType===d1)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!f1(e)&&(e=null);let r=fS(this),n=null,i=r.get(t);for(;i!=null;)i.listenerType===d1?n!==null?n.next=i.next:i.next!==null?r.set(t,i.next):r.delete(t):n=i,i=i.next;if(e!==null){let s={listener:e,listenerType:d1,passive:!1,once:!1,next:null};n===null?r.set(t,s):n.next=s}},configurable:!0,enumerable:!0}}o(Xxt,"defineEventAttributeDescriptor");function JW(t,e){Object.defineProperty(t,`on${e}`,Xxt(e))}o(JW,"defineEventAttribute");function i_e(t){function e(){mc.call(this)}o(e,"CustomEventTarget"),e.prototype=Object.create(mc.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)JW(e.prototype,t[r]);return e}o(i_e,"defineCustomEventTarget");function mc(){if(this instanceof mc){c_e.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return i_e(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return i_e(t)}throw new TypeError("Cannot call a class as a function")}o(mc,"EventTarget");mc.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!f1(e))throw new TypeError("'listener' should be a function or an object.");let n=fS(this),i=f1(r),a=(i?!!r.capture:!!r)?r_e:n_e,c={listener:e,listenerType:a,passive:i&&!!r.passive,once:i&&!!r.once,next:null},l=n.get(t);if(l===void 0){n.set(t,c);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===a)return;u=l,l=l.next}u.next=c},removeEventListener(t,e,r){if(e==null)return;let n=fS(this),s=(f1(r)?!!r.capture:!!r)?r_e:n_e,a=null,c=n.get(t);for(;c!=null;){if(c.listener===e&&c.listenerType===s){a!==null?a.next=c.next:c.next!==null?n.set(t,c.next):n.delete(t);return}a=c,c=c.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=fS(this),r=t.type,n=e.get(r);if(n==null)return!0;let i=Wxt(this,t),s=null;for(;n!=null;){if(n.once?s!==null?s.next=n.next:n.next!==null?e.set(r,n.next):e.delete(r):s=n,t_e(i,n.passive?n.listener:null),typeof n.listener=="function")try{n.listener.call(this,i)}catch(a){typeof console<"u"&&typeof console.error=="function"&&console.error(a)}else n.listenerType!==d1&&typeof n.listener.handleEvent=="function"&&n.listener.handleEvent(i);if(Jxt(i))break;n=n.next}return t_e(i,null),Yxt(i,0),Kxt(i,null),!i.defaultPrevented}};Object.defineProperty(mc.prototype,"constructor",{value:mc,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(mc.prototype,window.EventTarget.prototype);pS.defineEventAttribute=JW;pS.EventTarget=mc;pS.default=mc;hS.exports=mc;hS.exports.EventTarget=hS.exports.default=mc;hS.exports.defineEventAttribute=JW});var bE=m((mS,AS)=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});var YW=l_e(),qf=class extends YW.EventTarget{static{o(this,"AbortSignal")}constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=h1.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};YW.defineEventAttribute(qf.prototype,"abort");function Zxt(){let t=Object.create(qf.prototype);return YW.EventTarget.call(t),h1.set(t,!1),t}o(Zxt,"createAbortSignal");function evt(t){h1.get(t)===!1&&(h1.set(t,!0),t.dispatchEvent({type:"abort"}))}o(evt,"abortSignal");var h1=new WeakMap;Object.defineProperties(qf.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(qf.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Gf=class{static{o(this,"AbortController")}constructor(){d_e.set(this,Zxt())}get signal(){return u_e(this)}abort(){evt(u_e(this))}},d_e=new WeakMap;function u_e(t){let e=d_e.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}o(u_e,"getSignal");Object.defineProperties(Gf.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Gf.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});mS.AbortController=Gf;mS.AbortSignal=qf;mS.default=Gf;AS.exports=Gf;AS.exports.AbortController=AS.exports.default=Gf;AS.exports.AbortSignal=qf});var Di=m((xRr,XW)=>{"use strict";var tvt=require("buffer"),{kResistStopPropagation:rvt,SymbolDispose:nvt}=_r(),ivt=globalThis.AbortSignal||bE().AbortSignal,svt=globalThis.AbortController||bE().AbortController,ovt=Object.getPrototypeOf(async function(){}).constructor,f_e=globalThis.Blob||tvt.Blob,avt=o(typeof f_e<"u"?function(e){return e instanceof f_e}:function(e){return!1},"isBlob"),h_e=o((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new ERR_INVALID_ARG_TYPE(e,"AbortSignal",t)},"validateAbortSignal"),cvt=o((t,e)=>{if(typeof t!="function")throw new ERR_INVALID_ARG_TYPE(e,"Function",t)},"validateFunction"),KW=class extends Error{static{o(this,"AggregateError")}constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let n=0;n<e.length;n++)r+=` ${e[n].stack}
|
|
`;super(r),this.name="AggregateError",this.errors=e}};XW.exports={AggregateError:KW,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:o(function(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}},"createDeferredPromise"),promisify(t){return new Promise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof ovt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:avt,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||o(function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);h_e(e,"signal"),cvt(r,"listener");let n;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[rvt]:!0}),n=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[nvt](){var i;(i=n)===null||i===void 0||i()}}},"addAbortListener"),AbortSignalAny:ivt.any||o(function(e){if(e.length===1)return e[0];let r=new svt,n=o(()=>r.abort(),"abort");return e.forEach(i=>{h_e(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal},"AbortSignalAny")};XW.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var as=m((NRr,m_e)=>{"use strict";var{format:lvt,inspect:p1,AggregateError:uvt}=Di(),dvt=globalThis.AggregateError||uvt,fvt=Symbol("kIsNodeError"),hvt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],pvt=/^([A-Z][a-z0-9]*)+$/,Avt="__node_internal_",A1={};function fA(t,e){if(!t)throw new A1.ERR_INTERNAL_ASSERTION(e)}o(fA,"assert");function p_e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}o(p_e,"addNumericalSeparator");function mvt(t,e,r){if(typeof e=="function")return fA(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return fA(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:lvt(e,...r)}o(mvt,"getMessage");function Ei(t,e,r){r||(r=Error);class n extends r{static{o(this,"NodeError")}constructor(...s){super(mvt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[fvt]=!0,A1[t]=n}o(Ei,"E");function A_e(t){let e=Avt+t.name;return Object.defineProperty(t,"name",{value:e}),t}o(A_e,"hideStackFrames");function gvt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new dvt([e,t],e.message);return r.code=e.code,r}return t||e}o(gvt,"aggregateTwoErrors");var ZW=class extends Error{static{o(this,"AbortError")}constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new A1.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Ei("ERR_ASSERTION","%s",Error);Ei("ERR_INVALID_ARG_TYPE",(t,e,r)=>{fA(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],s=[],a=[];for(let l of e)fA(typeof l=="string","All expected entries have to be of type string"),hvt.includes(l)?i.push(l.toLowerCase()):pvt.test(l)?s.push(l):(fA(l!=="object",'The value "object" should be written as "Object"'),a.push(l));if(s.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();n+=`an instance of ${s.join(", ")}, or ${l}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{let l=a.pop();n+=`one of ${a.join(", ")}, or ${l}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var c;if((c=r.constructor)!==null&&c!==void 0&&c.name)n+=`. Received an instance of ${r.constructor.name}`;else{let l=p1(r,{depth:-1});n+=`. Received ${l}`}}else{let l=p1(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),n+=`. Received type ${typeof r} (${l})`}return n},TypeError);Ei("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let n=p1(e);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`},TypeError);Ei("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var n;let i=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${i}.`},TypeError);Ei("ERR_MISSING_ARGS",(...t)=>{fA(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(n=>`"${n}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let n=t.pop();e+=`The ${t.join(", ")}, and ${n} arguments`}break}return`${e} must be specified`},TypeError);Ei("ERR_OUT_OF_RANGE",(t,e,r)=>{fA(e,'Missing "range" argument');let n;return Number.isInteger(r)&&Math.abs(r)>2**32?n=p_e(String(r)):typeof r=="bigint"?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=p_e(n)),n+="n"):n=p1(r),`The value of "${t}" is out of range. It must be ${e}. Received ${n}`},RangeError);Ei("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Ei("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Ei("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Ei("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Ei("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Ei("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ei("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Ei("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Ei("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Ei("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Ei("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);m_e.exports={AbortError:ZW,aggregateTwoErrors:A_e(gvt),hideStackFrames:A_e,codes:A1}});var IE=m((TRr,x_e)=>{"use strict";var{ArrayIsArray:tJ,ArrayPrototypeIncludes:C_e,ArrayPrototypeJoin:b_e,ArrayPrototypeMap:yvt,NumberIsInteger:rJ,NumberIsNaN:Evt,NumberMAX_SAFE_INTEGER:Cvt,NumberMIN_SAFE_INTEGER:bvt,NumberParseInt:wvt,ObjectPrototypeHasOwnProperty:Ivt,RegExpPrototypeExec:w_e,String:Svt,StringPrototypeToUpperCase:Bvt,StringPrototypeTrim:xvt}=_r(),{hideStackFrames:wa,codes:{ERR_SOCKET_BAD_PORT:vvt,ERR_INVALID_ARG_TYPE:Qi,ERR_INVALID_ARG_VALUE:wE,ERR_OUT_OF_RANGE:hA,ERR_UNKNOWN_SIGNAL:g_e}}=as(),{normalizeEncoding:Nvt}=Di(),{isAsyncFunction:_vt,isArrayBufferView:Tvt}=Di().types,y_e={};function Rvt(t){return t===(t|0)}o(Rvt,"isInt32");function Dvt(t){return t===t>>>0}o(Dvt,"isUint32");var Qvt=/^[0-7]+$/,Pvt="must be a 32-bit unsigned integer or an octal string";function kvt(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(w_e(Qvt,t)===null)throw new wE(e,t,Pvt);t=wvt(t,8)}return I_e(t,e),t}o(kvt,"parseFileMode");var Ovt=wa((t,e,r=bvt,n=Cvt)=>{if(typeof t!="number")throw new Qi(e,"number",t);if(!rJ(t))throw new hA(e,"an integer",t);if(t<r||t>n)throw new hA(e,`>= ${r} && <= ${n}`,t)}),Lvt=wa((t,e,r=-2147483648,n=2147483647)=>{if(typeof t!="number")throw new Qi(e,"number",t);if(!rJ(t))throw new hA(e,"an integer",t);if(t<r||t>n)throw new hA(e,`>= ${r} && <= ${n}`,t)}),I_e=wa((t,e,r=!1)=>{if(typeof t!="number")throw new Qi(e,"number",t);if(!rJ(t))throw new hA(e,"an integer",t);let n=r?1:0,i=4294967295;if(t<n||t>i)throw new hA(e,`>= ${n} && <= ${i}`,t)});function nJ(t,e){if(typeof t!="string")throw new Qi(e,"string",t)}o(nJ,"validateString");function Fvt(t,e,r=void 0,n){if(typeof t!="number")throw new Qi(e,"number",t);if(r!=null&&t<r||n!=null&&t>n||(r!=null||n!=null)&&Evt(t))throw new hA(e,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,t)}o(Fvt,"validateNumber");var Mvt=wa((t,e,r)=>{if(!C_e(r,t)){let i="must be one of: "+b_e(yvt(r,s=>typeof s=="string"?`'${s}'`:Svt(s)),", ");throw new wE(e,t,i)}});function S_e(t,e){if(typeof t!="boolean")throw new Qi(e,"boolean",t)}o(S_e,"validateBoolean");function eJ(t,e,r){return t==null||!Ivt(t,e)?r:t[e]}o(eJ,"getOwnPropertyValueOrDefault");var Uvt=wa((t,e,r=null)=>{let n=eJ(r,"allowArray",!1),i=eJ(r,"allowFunction",!1);if(!eJ(r,"nullable",!1)&&t===null||!n&&tJ(t)||typeof t!="object"&&(!i||typeof t!="function"))throw new Qi(e,"Object",t)}),qvt=wa((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Qi(e,"a dictionary",t)}),m1=wa((t,e,r=0)=>{if(!tJ(t))throw new Qi(e,"Array",t);if(t.length<r){let n=`must be longer than ${r}`;throw new wE(e,t,n)}});function Gvt(t,e){m1(t,e);for(let r=0;r<t.length;r++)nJ(t[r],`${e}[${r}]`)}o(Gvt,"validateStringArray");function Hvt(t,e){m1(t,e);for(let r=0;r<t.length;r++)S_e(t[r],`${e}[${r}]`)}o(Hvt,"validateBooleanArray");function Vvt(t,e){m1(t,e);for(let r=0;r<t.length;r++){let n=t[r],i=`${e}[${r}]`;if(n==null)throw new Qi(i,"AbortSignal",n);B_e(n,i)}}o(Vvt,"validateAbortSignalArray");function zvt(t,e="signal"){if(nJ(t,e),y_e[t]===void 0)throw y_e[Bvt(t)]!==void 0?new g_e(t+" (signals must use all capital letters)"):new g_e(t)}o(zvt,"validateSignalName");var $vt=wa((t,e="buffer")=>{if(!Tvt(t))throw new Qi(e,["Buffer","TypedArray","DataView"],t)});function jvt(t,e){let r=Nvt(e),n=t.length;if(r==="hex"&&n%2!==0)throw new wE("encoding",e,`is invalid for data of length ${n}`)}o(jvt,"validateEncoding");function Wvt(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&xvt(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new vvt(e,t,r);return t|0}o(Wvt,"validatePort");var B_e=wa((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Qi(e,"AbortSignal",t)}),Jvt=wa((t,e)=>{if(typeof t!="function")throw new Qi(e,"Function",t)}),Yvt=wa((t,e)=>{if(typeof t!="function"||_vt(t))throw new Qi(e,"Function",t)}),Kvt=wa((t,e)=>{if(t!==void 0)throw new Qi(e,"undefined",t)});function Xvt(t,e,r){if(!C_e(r,t))throw new Qi(e,`('${b_e(r,"|")}')`,t)}o(Xvt,"validateUnion");var Zvt=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function E_e(t,e){if(typeof t>"u"||!w_e(Zvt,t))throw new wE(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}o(E_e,"validateLinkHeaderFormat");function eNt(t){if(typeof t=="string")return E_e(t,"hints"),t;if(tJ(t)){let e=t.length,r="";if(e===0)return r;for(let n=0;n<e;n++){let i=t[n];E_e(i,"hints"),r+=i,n!==e-1&&(r+=", ")}return r}throw new wE("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}o(eNt,"validateLinkHeaderValue");x_e.exports={isInt32:Rvt,isUint32:Dvt,parseFileMode:kvt,validateArray:m1,validateStringArray:Gvt,validateBooleanArray:Hvt,validateAbortSignalArray:Vvt,validateBoolean:S_e,validateBuffer:$vt,validateDictionary:qvt,validateEncoding:jvt,validateFunction:Jvt,validateInt32:Lvt,validateInteger:Ovt,validateNumber:Fvt,validateObject:Uvt,validateOneOf:Mvt,validatePlainFunction:Yvt,validatePort:Wvt,validateSignalName:zvt,validateString:nJ,validateUint32:I_e,validateUndefined:Kvt,validateUnion:Xvt,validateAbortSignal:B_e,validateLinkHeaderValue:eNt}});var Hf=m((DRr,v_e)=>{v_e.exports=global.process});var Vl=m((QRr,G_e)=>{"use strict";var{SymbolAsyncIterator:N_e,SymbolIterator:__e,SymbolFor:pA}=_r(),T_e=pA("nodejs.stream.destroyed"),R_e=pA("nodejs.stream.errored"),iJ=pA("nodejs.stream.readable"),sJ=pA("nodejs.stream.writable"),D_e=pA("nodejs.stream.disturbed"),tNt=pA("nodejs.webstream.isClosedPromise"),rNt=pA("nodejs.webstream.controllerErrorFunction");function g1(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}o(g1,"isReadableNodeStream");function y1(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}o(y1,"isWritableNodeStream");function nNt(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}o(nNt,"isDuplexNodeStream");function Hl(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}o(Hl,"isNodeStream");function Q_e(t){return!!(t&&!Hl(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}o(Q_e,"isReadableStream");function P_e(t){return!!(t&&!Hl(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}o(P_e,"isWritableStream");function k_e(t){return!!(t&&!Hl(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}o(k_e,"isTransformStream");function iNt(t){return Q_e(t)||P_e(t)||k_e(t)}o(iNt,"isWebStream");function sNt(t,e){return t==null?!1:e===!0?typeof t[N_e]=="function":e===!1?typeof t[__e]=="function":typeof t[N_e]=="function"||typeof t[__e]=="function"}o(sNt,"isIterable");function E1(t){if(!Hl(t))return null;let e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[T_e]||n!=null&&n.destroyed)}o(E1,"isDestroyed");function O_e(t){if(!y1(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}o(O_e,"isWritableEnded");function oNt(t,e){if(!y1(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}o(oNt,"isWritableFinished");function aNt(t){if(!g1(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}o(aNt,"isReadableEnded");function L_e(t,e){if(!g1(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}o(L_e,"isReadableFinished");function F_e(t){return t&&t[iJ]!=null?t[iJ]:typeof t?.readable!="boolean"?null:E1(t)?!1:g1(t)&&t.readable&&!L_e(t)}o(F_e,"isReadable");function M_e(t){return t&&t[sJ]!=null?t[sJ]:typeof t?.writable!="boolean"?null:E1(t)?!1:y1(t)&&t.writable&&!O_e(t)}o(M_e,"isWritable");function cNt(t,e){return Hl(t)?E1(t)?!0:!(e?.readable!==!1&&F_e(t)||e?.writable!==!1&&M_e(t)):null}o(cNt,"isFinished");function lNt(t){var e,r;return Hl(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}o(lNt,"isWritableErrored");function uNt(t){var e,r;return Hl(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}o(uNt,"isReadableErrored");function dNt(t){if(!Hl(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&U_e(t)?t._closed:null}o(dNt,"isClosed");function U_e(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}o(U_e,"isOutgoingMessage");function q_e(t){return typeof t._sent100=="boolean"&&U_e(t)}o(q_e,"isServerResponse");function fNt(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}o(fNt,"isServerRequest");function hNt(t){if(!Hl(t))return null;let e=t._writableState,r=t._readableState,n=e||r;return!n&&q_e(t)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}o(hNt,"willEmitClose");function pNt(t){var e;return!!(t&&((e=t[D_e])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}o(pNt,"isDisturbed");function ANt(t){var e,r,n,i,s,a,c,l,u,d;return!!(t&&((e=(r=(n=(i=(s=(a=t[R_e])!==null&&a!==void 0?a:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&i!==void 0?i:(c=t._readableState)===null||c===void 0?void 0:c.errorEmitted)!==null&&n!==void 0?n:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((d=t._writableState)===null||d===void 0)&&d.errored))}o(ANt,"isErrored");G_e.exports={isDestroyed:E1,kIsDestroyed:T_e,isDisturbed:pNt,kIsDisturbed:D_e,isErrored:ANt,kIsErrored:R_e,isReadable:F_e,kIsReadable:iJ,kIsClosedPromise:tNt,kControllerErrorFunction:rNt,kIsWritable:sJ,isClosed:dNt,isDuplexNodeStream:nNt,isFinished:cNt,isIterable:sNt,isReadableNodeStream:g1,isReadableStream:Q_e,isReadableEnded:aNt,isReadableFinished:L_e,isReadableErrored:uNt,isNodeStream:Hl,isWebStream:iNt,isWritable:M_e,isWritableNodeStream:y1,isWritableStream:P_e,isWritableEnded:O_e,isWritableFinished:oNt,isWritableErrored:lNt,isServerRequest:fNt,isServerResponse:q_e,willEmitClose:hNt,isTransformStream:k_e}});var hd=m((kRr,uJ)=>{var Vf=Hf(),{AbortError:K_e,codes:mNt}=as(),{ERR_INVALID_ARG_TYPE:gNt,ERR_STREAM_PREMATURE_CLOSE:H_e}=mNt,{kEmptyObject:aJ,once:cJ}=Di(),{validateAbortSignal:yNt,validateFunction:ENt,validateObject:CNt,validateBoolean:bNt}=IE(),{Promise:wNt,PromisePrototypeThen:INt,SymbolDispose:X_e}=_r(),{isClosed:SNt,isReadable:V_e,isReadableNodeStream:oJ,isReadableStream:BNt,isReadableFinished:z_e,isReadableErrored:$_e,isWritable:j_e,isWritableNodeStream:W_e,isWritableStream:xNt,isWritableFinished:J_e,isWritableErrored:Y_e,isNodeStream:vNt,willEmitClose:NNt,kIsClosedPromise:_Nt}=Vl(),SE;function TNt(t){return t.setHeader&&typeof t.abort=="function"}o(TNt,"isRequest");var lJ=o(()=>{},"nop");function Z_e(t,e,r){var n,i;if(arguments.length===2?(r=e,e=aJ):e==null?e=aJ:CNt(e,"options"),ENt(r,"callback"),yNt(e.signal,"options.signal"),r=cJ(r),BNt(t)||xNt(t))return RNt(t,e,r);if(!vNt(t))throw new gNt("stream",["ReadableStream","WritableStream","Stream"],t);let s=(n=e.readable)!==null&&n!==void 0?n:oJ(t),a=(i=e.writable)!==null&&i!==void 0?i:W_e(t),c=t._writableState,l=t._readableState,u=o(()=>{t.writable||h()},"onlegacyfinish"),d=NNt(t)&&oJ(t)===s&&W_e(t)===a,f=J_e(t,!1),h=o(()=>{f=!0,t.destroyed&&(d=!1),!(d&&(!t.readable||s))&&(!s||p)&&r.call(t)},"onfinish"),p=z_e(t,!1),g=o(()=>{p=!0,t.destroyed&&(d=!1),!(d&&(!t.writable||a))&&(!a||f)&&r.call(t)},"onend"),A=o(Q=>{r.call(t,Q)},"onerror"),E=SNt(t),y=o(()=>{E=!0;let Q=Y_e(t)||$_e(t);if(Q&&typeof Q!="boolean")return r.call(t,Q);if(s&&!p&&oJ(t,!0)&&!z_e(t,!1))return r.call(t,new H_e);if(a&&!f&&!J_e(t,!1))return r.call(t,new H_e);r.call(t)},"onclose"),C=o(()=>{E=!0;let Q=Y_e(t)||$_e(t);if(Q&&typeof Q!="boolean")return r.call(t,Q);r.call(t)},"onclosed"),w=o(()=>{t.req.on("finish",h)},"onrequest");TNt(t)?(t.on("complete",h),d||t.on("abort",y),t.req?w():t.on("request",w)):a&&!c&&(t.on("end",u),t.on("close",u)),!d&&typeof t.aborted=="boolean"&&t.on("aborted",y),t.on("end",g),t.on("finish",h),e.error!==!1&&t.on("error",A),t.on("close",y),E?Vf.nextTick(y):c!=null&&c.errorEmitted||l!=null&&l.errorEmitted?d||Vf.nextTick(C):(!s&&(!d||V_e(t))&&(f||j_e(t)===!1)||!a&&(!d||j_e(t))&&(p||V_e(t)===!1)||l&&t.req&&t.aborted)&&Vf.nextTick(C);let B=o(()=>{r=lJ,t.removeListener("aborted",y),t.removeListener("complete",h),t.removeListener("abort",y),t.removeListener("request",w),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",g),t.removeListener("error",A),t.removeListener("close",y)},"cleanup");if(e.signal&&!E){let Q=o(()=>{let U=r;B(),U.call(t,new K_e(void 0,{cause:e.signal.reason}))},"abort");if(e.signal.aborted)Vf.nextTick(Q);else{SE=SE||Di().addAbortListener;let U=SE(e.signal,Q),v=r;r=cJ((...j)=>{U[X_e](),v.apply(t,j)})}}return B}o(Z_e,"eos");function RNt(t,e,r){let n=!1,i=lJ;if(e.signal)if(i=o(()=>{n=!0,r.call(t,new K_e(void 0,{cause:e.signal.reason}))},"abort"),e.signal.aborted)Vf.nextTick(i);else{SE=SE||Di().addAbortListener;let a=SE(e.signal,i),c=r;r=cJ((...l)=>{a[X_e](),c.apply(t,l)})}let s=o((...a)=>{n||Vf.nextTick(()=>r.apply(t,a))},"resolverFn");return INt(t[_Nt].promise,s,s),lJ}o(RNt,"eosWeb");function DNt(t,e){var r;let n=!1;return e===null&&(e=aJ),(r=e)!==null&&r!==void 0&&r.cleanup&&(bNt(e.cleanup,"cleanup"),n=e.cleanup),new wNt((i,s)=>{let a=Z_e(t,e,c=>{n&&a(),c?s(c):i()})})}o(DNt,"finished");uJ.exports=Z_e;uJ.exports.finished=DNt});var AA=m((LRr,aTe)=>{"use strict";var zl=Hf(),{aggregateTwoErrors:QNt,codes:{ERR_MULTIPLE_CALLBACK:PNt},AbortError:kNt}=as(),{Symbol:rTe}=_r(),{kIsDestroyed:ONt,isDestroyed:LNt,isFinished:FNt,isServerRequest:MNt}=Vl(),nTe=rTe("kDestroy"),dJ=rTe("kConstruct");function iTe(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}o(iTe,"checkError");function UNt(t,e){let r=this._readableState,n=this._writableState,i=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(iTe(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),i.constructed?eTe(this,t,e):this.once(nTe,function(s){eTe(this,QNt(s,t),e)}),this)}o(UNt,"destroy");function eTe(t,e,r){let n=!1;function i(s){if(n)return;n=!0;let a=t._readableState,c=t._writableState;iTe(s,c,a),c&&(c.closed=!0),a&&(a.closed=!0),typeof r=="function"&&r(s),s?zl.nextTick(qNt,t,s):zl.nextTick(sTe,t)}o(i,"onDestroy");try{t._destroy(e||null,i)}catch(s){i(s)}}o(eTe,"_destroy");function qNt(t,e){fJ(t,e),sTe(t)}o(qNt,"emitErrorCloseNT");function sTe(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}o(sTe,"emitCloseNT");function fJ(t,e){let r=t._readableState,n=t._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}o(fJ,"emitErrorNT");function GNt(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}o(GNt,"undestroy");function hJ(t,e,r){let n=t._readableState,i=t._writableState;if(i!=null&&i.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||i!=null&&i.autoDestroy?t.destroy(e):e&&(e.stack,i&&!i.errored&&(i.errored=e),n&&!n.errored&&(n.errored=e),r?zl.nextTick(fJ,t,e):fJ(t,e))}o(hJ,"errorOrDestroy");function HNt(t,e){if(typeof t._construct!="function")return;let r=t._readableState,n=t._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),t.once(dJ,e),!(t.listenerCount(dJ)>1)&&zl.nextTick(VNt,t)}o(HNt,"construct");function VNt(t){let e=!1;function r(n){if(e){hJ(t,n??new PNt);return}e=!0;let i=t._readableState,s=t._writableState,a=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),a.destroyed?t.emit(nTe,n):n?hJ(t,n,!0):zl.nextTick(zNt,t)}o(r,"onConstruct");try{t._construct(n=>{zl.nextTick(r,n)})}catch(n){zl.nextTick(r,n)}}o(VNt,"constructNT");function zNt(t){t.emit(dJ)}o(zNt,"emitConstructNT");function tTe(t){return t?.setHeader&&typeof t.abort=="function"}o(tTe,"isRequest");function oTe(t){t.emit("close")}o(oTe,"emitCloseLegacy");function $Nt(t,e){t.emit("error",e),zl.nextTick(oTe,t)}o($Nt,"emitErrorCloseLegacy");function jNt(t,e){!t||LNt(t)||(!e&&!FNt(t)&&(e=new kNt),MNt(t)?(t.socket=null,t.destroy(e)):tTe(t)?t.abort():tTe(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?zl.nextTick($Nt,t,e):zl.nextTick(oTe,t),t.destroyed||(t[ONt]=!0))}o(jNt,"destroyer");aTe.exports={construct:HNt,destroyer:jNt,destroy:UNt,undestroy:GNt,errorOrDestroy:hJ}});var w1=m((MRr,lTe)=>{"use strict";var{ArrayIsArray:WNt,ObjectSetPrototypeOf:cTe}=_r(),{EventEmitter:C1}=require("events");function b1(t){C1.call(this,t)}o(b1,"Stream");cTe(b1.prototype,C1.prototype);cTe(b1,C1);b1.prototype.pipe=function(t,e){let r=this;function n(d){t.writable&&t.write(d)===!1&&r.pause&&r.pause()}o(n,"ondata"),r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}o(i,"ondrain"),t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",a),r.on("close",c));let s=!1;function a(){s||(s=!0,t.end())}o(a,"onend");function c(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}o(c,"onclose");function l(d){u(),C1.listenerCount(this,"error")===0&&this.emit("error",d)}o(l,"onerror"),pJ(r,"error",l),pJ(t,"error",l);function u(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",c),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return o(u,"cleanup"),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function pJ(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):WNt(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}o(pJ,"prependListener");lTe.exports={Stream:b1,prependListener:pJ}});var gS=m((qRr,I1)=>{"use strict";var{SymbolDispose:JNt}=_r(),{AbortError:uTe,codes:YNt}=as(),{isNodeStream:dTe,isWebStream:KNt,kControllerErrorFunction:XNt}=Vl(),ZNt=hd(),{ERR_INVALID_ARG_TYPE:fTe}=YNt,AJ,e_t=o((t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new fTe(e,"AbortSignal",t)},"validateAbortSignal");I1.exports.addAbortSignal=o(function(e,r){if(e_t(e,"signal"),!dTe(r)&&!KNt(r))throw new fTe("stream",["ReadableStream","WritableStream","Stream"],r);return I1.exports.addAbortSignalNoValidate(e,r)},"addAbortSignal");I1.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=dTe(e)?()=>{e.destroy(new uTe(void 0,{cause:t.reason}))}:()=>{e[XNt](new uTe(void 0,{cause:t.reason}))};if(t.aborted)r();else{AJ=AJ||Di().addAbortListener;let n=AJ(t,r);ZNt(e,n[JNt])}return e}});var ATe=m((VRr,pTe)=>{"use strict";var{StringPrototypeSlice:hTe,SymbolIterator:t_t,TypedArrayPrototypeSet:S1,Uint8Array:r_t}=_r(),{Buffer:mJ}=require("buffer"),{inspect:n_t}=Di();pTe.exports=class{static{o(this,"BufferList")}constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=e+r.data;return n}concat(e){if(this.length===0)return mJ.alloc(0);let r=mJ.allocUnsafe(e>>>0),n=this.head,i=0;for(;n;)S1(r,n.data,i),i+=n.data.length,n=n.next;return r}consume(e,r){let n=this.head.data;if(e<n.length){let i=n.slice(0,e);return this.head.data=n.slice(e),i}return e===n.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[t_t](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",n=this.head,i=0;do{let s=n.data;if(e>s.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++i,n.next?this.head=n.next:this.head=this.tail=null):(r+=hTe(s,0,e),this.head=n,n.data=hTe(s,e));break}++i}while((n=n.next)!==null);return this.length-=i,r}_getBuffer(e){let r=mJ.allocUnsafe(e),n=e,i=this.head,s=0;do{let a=i.data;if(e>a.length)S1(r,a,n-e),e-=a.length;else{e===a.length?(S1(r,a,n-e),++s,i.next?this.head=i.next:this.head=this.tail=null):(S1(r,new r_t(a.buffer,a.byteOffset,e),n-e),this.head=i,i.data=a.slice(e));break}++s}while((i=i.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return n_t(this,{...r,depth:0,customInspect:!1})}}});var yS=m(($Rr,ETe)=>{"use strict";var{MathFloor:i_t,NumberIsInteger:s_t}=_r(),{validateInteger:o_t}=IE(),{ERR_INVALID_ARG_VALUE:a_t}=as().codes,mTe=16*1024,gTe=16;function c_t(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}o(c_t,"highWaterMarkFrom");function yTe(t){return t?gTe:mTe}o(yTe,"getDefaultHighWaterMark");function l_t(t,e){o_t(e,"value",0),t?gTe=e:mTe=e}o(l_t,"setDefaultHighWaterMark");function u_t(t,e,r,n){let i=c_t(e,n,r);if(i!=null){if(!s_t(i)||i<0){let s=n?`options.${r}`:"options.highWaterMark";throw new a_t(s,i)}return i_t(i)}return yTe(t.objectMode)}o(u_t,"getHighWaterMark");ETe.exports={getHighWaterMark:u_t,getDefaultHighWaterMark:yTe,setDefaultHighWaterMark:l_t}});var gJ=m((WRr,ITe)=>{"use strict";var CTe=Hf(),{PromisePrototypeThen:d_t,SymbolAsyncIterator:bTe,SymbolIterator:wTe}=_r(),{Buffer:f_t}=require("buffer"),{ERR_INVALID_ARG_TYPE:h_t,ERR_STREAM_NULL_VALUES:p_t}=as().codes;function A_t(t,e,r){let n;if(typeof e=="string"||e instanceof f_t)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let i;if(e&&e[bTe])i=!0,n=e[bTe]();else if(e&&e[wTe])i=!1,n=e[wTe]();else throw new h_t("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),a=!1;s._read=function(){a||(a=!0,l())},s._destroy=function(u,d){d_t(c(u),()=>CTe.nextTick(d,u),f=>CTe.nextTick(d,f||u))};async function c(u){let d=u!=null,f=typeof n.throw=="function";if(d&&f){let{value:h,done:p}=await n.throw(u);if(await h,p)return}if(typeof n.return=="function"){let{value:h}=await n.return();await h}}o(c,"close");async function l(){for(;;){try{let{value:u,done:d}=i?await n.next():n.next();if(d)s.push(null);else{let f=u&&typeof u.then=="function"?await u:u;if(f===null)throw a=!1,new p_t;if(s.push(f))continue;a=!1}}catch(u){s.destroy(u)}break}}return o(l,"next"),s}o(A_t,"from");ITe.exports=A_t});var CS=m((YRr,qTe)=>{var gc=Hf(),{ArrayPrototypeIndexOf:m_t,NumberIsInteger:g_t,NumberIsNaN:y_t,NumberParseInt:E_t,ObjectDefineProperties:BJ,ObjectKeys:C_t,ObjectSetPrototypeOf:xTe,Promise:vTe,SafeSet:b_t,SymbolAsyncDispose:w_t,SymbolAsyncIterator:I_t,Symbol:S_t}=_r();qTe.exports=st;st.ReadableState=N1;var{EventEmitter:B_t}=require("events"),{Stream:zf,prependListener:x_t}=w1(),{Buffer:yJ}=require("buffer"),{addAbortSignal:v_t}=gS(),NTe=hd(),Ct=Di().debuglog("stream",t=>{Ct=t}),N_t=ATe(),vE=AA(),{getHighWaterMark:__t,getDefaultHighWaterMark:T_t}=yS(),{aggregateTwoErrors:STe,codes:{ERR_INVALID_ARG_TYPE:R_t,ERR_METHOD_NOT_IMPLEMENTED:D_t,ERR_OUT_OF_RANGE:Q_t,ERR_STREAM_PUSH_AFTER_EOF:P_t,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:k_t},AbortError:O_t}=as(),{validateObject:L_t}=IE(),mA=S_t("kPaused"),{StringDecoder:_Te}=require("string_decoder"),F_t=gJ();xTe(st.prototype,zf.prototype);xTe(st,zf);var EJ=o(()=>{},"nop"),{errorOrDestroy:BE}=vE,xE=1,M_t=2,TTe=4,ES=8,RTe=16,B1=32,x1=64,DTe=128,U_t=256,q_t=512,G_t=1024,IJ=2048,SJ=4096,H_t=8192,V_t=16384,z_t=32768,QTe=65536,$_t=1<<17,j_t=1<<18;function Fn(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}o(Fn,"makeBitMapDescriptor");BJ(N1.prototype,{objectMode:Fn(xE),ended:Fn(M_t),endEmitted:Fn(TTe),reading:Fn(ES),constructed:Fn(RTe),sync:Fn(B1),needReadable:Fn(x1),emittedReadable:Fn(DTe),readableListening:Fn(U_t),resumeScheduled:Fn(q_t),errorEmitted:Fn(G_t),emitClose:Fn(IJ),autoDestroy:Fn(SJ),destroyed:Fn(H_t),closed:Fn(V_t),closeEmitted:Fn(z_t),multiAwaitDrain:Fn(QTe),readingMore:Fn($_t),dataEmitted:Fn(j_t)});function N1(t,e,r){typeof r!="boolean"&&(r=e instanceof $l()),this.state=IJ|SJ|RTe|B1,t&&t.objectMode&&(this.state|=xE),r&&t&&t.readableObjectMode&&(this.state|=xE),this.highWaterMark=t?__t(this,t,"readableHighWaterMark",r):T_t(!1),this.buffer=new N_t,this.length=0,this.pipes=[],this.flowing=null,this[mA]=null,t&&t.emitClose===!1&&(this.state&=~IJ),t&&t.autoDestroy===!1&&(this.state&=~SJ),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new _Te(t.encoding),this.encoding=t.encoding)}o(N1,"ReadableState");function st(t){if(!(this instanceof st))return new st(t);let e=this instanceof $l();this._readableState=new N1(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&v_t(t.signal,this)),zf.call(this,t),vE.construct(this,()=>{this._readableState.needReadable&&v1(this,this._readableState)})}o(st,"Readable");st.prototype.destroy=vE.destroy;st.prototype._undestroy=vE.undestroy;st.prototype._destroy=function(t,e){e(t)};st.prototype[B_t.captureRejectionSymbol]=function(t){this.destroy(t)};st.prototype[w_t]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new O_t,this.destroy(t)),new vTe((e,r)=>NTe(this,n=>n&&n!==t?r(n):e(null)))};st.prototype.push=function(t,e){return PTe(this,t,e,!1)};st.prototype.unshift=function(t,e){return PTe(this,t,e,!0)};function PTe(t,e,r,n){Ct("readableAddChunk",e);let i=t._readableState,s;if((i.state&xE)===0&&(typeof e=="string"?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?e=yJ.from(e,r).toString(i.encoding):(e=yJ.from(e,r),r=""))):e instanceof yJ?r="":zf._isUint8Array(e)?(e=zf._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new R_t("chunk",["string","Buffer","Uint8Array"],e))),s)BE(t,s);else if(e===null)i.state&=~ES,Y_t(t,i);else if((i.state&xE)!==0||e&&e.length>0)if(n)if((i.state&TTe)!==0)BE(t,new k_t);else{if(i.destroyed||i.errored)return!1;CJ(t,i,e,!0)}else if(i.ended)BE(t,new P_t);else{if(i.destroyed||i.errored)return!1;i.state&=~ES,i.decoder&&!r?(e=i.decoder.write(e),i.objectMode||e.length!==0?CJ(t,i,e,!1):v1(t,i)):CJ(t,i,e,!1)}else n||(i.state&=~ES,v1(t,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}o(PTe,"readableAddChunk");function CJ(t,e,r,n){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&QTe)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),(e.state&x1)!==0&&_1(t)),v1(t,e)}o(CJ,"addChunk");st.prototype.isPaused=function(){let t=this._readableState;return t[mA]===!0||t.flowing===!1};st.prototype.setEncoding=function(t){let e=new _Te(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,n="";for(let i of r)n+=e.write(i);return r.clear(),n!==""&&r.push(n),this._readableState.length=n.length,this};var W_t=1073741824;function J_t(t){if(t>W_t)throw new Q_t("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}o(J_t,"computeNewHighWaterMark");function BTe(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&xE)!==0?1:y_t(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}o(BTe,"howMuchToRead");st.prototype.read=function(t){Ct("read",t),t===void 0?t=NaN:g_t(t)||(t=E_t(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=J_t(t)),t!==0&&(e.state&=~DTe),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Ct("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?bJ(this):_1(this),null;if(t=BTe(t,e),t===0&&e.ended)return e.length===0&&bJ(this),null;let n=(e.state&x1)!==0;if(Ct("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,Ct("length less than watermark",n)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)n=!1,Ct("reading, ended or constructing",n);else if(n){Ct("do read"),e.state|=ES|B1,e.length===0&&(e.state|=x1);try{this._read(e.highWaterMark)}catch(s){BE(this,s)}e.state&=~B1,e.reading||(t=BTe(r,e))}let i;return t>0?i=MTe(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&bJ(this)),i!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",i)),i};function Y_t(t,e){if(Ct("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?_1(t):(e.needReadable=!1,e.emittedReadable=!0,kTe(t))}}o(Y_t,"onEofChunk");function _1(t){let e=t._readableState;Ct("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Ct("emitReadable",e.flowing),e.emittedReadable=!0,gc.nextTick(kTe,t))}o(_1,"emitReadable");function kTe(t){let e=t._readableState;Ct("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,LTe(t)}o(kTe,"emitReadable_");function v1(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,gc.nextTick(K_t,t,e))}o(v1,"maybeReadMore");function K_t(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(Ct("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}o(K_t,"maybeReadMore_");st.prototype._read=function(t){throw new D_t("_read()")};st.prototype.pipe=function(t,e){let r=this,n=this._readableState;n.pipes.length===1&&(n.multiAwaitDrain||(n.multiAwaitDrain=!0,n.awaitDrainWriters=new b_t(n.awaitDrainWriters?[n.awaitDrainWriters]:[]))),n.pipes.push(t),Ct("pipe count=%d opts=%j",n.pipes.length,e);let s=(!e||e.end!==!1)&&t!==gc.stdout&&t!==gc.stderr?c:E;n.endEmitted?gc.nextTick(s):r.once("end",s),t.on("unpipe",a);function a(y,C){Ct("onunpipe"),y===r&&C&&C.hasUnpiped===!1&&(C.hasUnpiped=!0,d())}o(a,"onunpipe");function c(){Ct("onend"),t.end()}o(c,"onend");let l,u=!1;function d(){Ct("cleanup"),t.removeListener("close",g),t.removeListener("finish",A),l&&t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",a),r.removeListener("end",c),r.removeListener("end",E),r.removeListener("data",h),u=!0,l&&n.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}o(d,"cleanup");function f(){u||(n.pipes.length===1&&n.pipes[0]===t?(Ct("false write response, pause",0),n.awaitDrainWriters=t,n.multiAwaitDrain=!1):n.pipes.length>1&&n.pipes.includes(t)&&(Ct("false write response, pause",n.awaitDrainWriters.size),n.awaitDrainWriters.add(t)),r.pause()),l||(l=X_t(r,t),t.on("drain",l))}o(f,"pause"),r.on("data",h);function h(y){Ct("ondata");let C=t.write(y);Ct("dest.write",C),C===!1&&f()}o(h,"ondata");function p(y){if(Ct("onerror",y),E(),t.removeListener("error",p),t.listenerCount("error")===0){let C=t._writableState||t._readableState;C&&!C.errorEmitted?BE(t,y):t.emit("error",y)}}o(p,"onerror"),x_t(t,"error",p);function g(){t.removeListener("finish",A),E()}o(g,"onclose"),t.once("close",g);function A(){Ct("onfinish"),t.removeListener("close",g),E()}o(A,"onfinish"),t.once("finish",A);function E(){Ct("unpipe"),r.unpipe(t)}return o(E,"unpipe"),t.emit("pipe",r),t.writableNeedDrain===!0?f():n.flowing||(Ct("pipe resume"),r.resume()),t};function X_t(t,e){return o(function(){let n=t._readableState;n.awaitDrainWriters===e?(Ct("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(Ct("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(e)),(!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()},"pipeOnDrainFunctionResult")}o(X_t,"pipeOnDrain");st.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let i=e.pipes;e.pipes=[],this.pause();for(let s=0;s<i.length;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}let n=m_t(e.pipes,t);return n===-1?this:(e.pipes.splice(n,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};st.prototype.on=function(t,e){let r=zf.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Ct("on readable",n.length,n.reading),n.length?_1(this):n.reading||gc.nextTick(Z_t,this)),r};st.prototype.addListener=st.prototype.on;st.prototype.removeListener=function(t,e){let r=zf.prototype.removeListener.call(this,t,e);return t==="readable"&&gc.nextTick(OTe,this),r};st.prototype.off=st.prototype.removeListener;st.prototype.removeAllListeners=function(t){let e=zf.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&gc.nextTick(OTe,this),e};function OTe(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[mA]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}o(OTe,"updateReadableListening");function Z_t(t){Ct("readable nexttick read 0"),t.read(0)}o(Z_t,"nReadingNextTick");st.prototype.resume=function(){let t=this._readableState;return t.flowing||(Ct("resume"),t.flowing=!t.readableListening,eTt(this,t)),t[mA]=!1,this};function eTt(t,e){e.resumeScheduled||(e.resumeScheduled=!0,gc.nextTick(tTt,t,e))}o(eTt,"resume");function tTt(t,e){Ct("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),LTe(t),e.flowing&&!e.reading&&t.read(0)}o(tTt,"resume_");st.prototype.pause=function(){return Ct("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ct("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[mA]=!0,this};function LTe(t){let e=t._readableState;for(Ct("flow",e.flowing);e.flowing&&t.read()!==null;);}o(LTe,"flow");st.prototype.wrap=function(t){let e=!1;t.on("data",n=>{!this.push(n)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",n=>{BE(this,n)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=C_t(t);for(let n=1;n<r.length;n++){let i=r[n];this[i]===void 0&&typeof t[i]=="function"&&(this[i]=t[i].bind(t))}return this};st.prototype[I_t]=function(){return FTe(this)};st.prototype.iterator=function(t){return t!==void 0&&L_t(t,"options"),FTe(this,t)};function FTe(t,e){typeof t.read!="function"&&(t=st.wrap(t,{objectMode:!0}));let r=rTt(t,e);return r.stream=t,r}o(FTe,"streamToAsyncIterator");async function*rTt(t,e){let r=EJ;function n(a){this===t?(r(),r=EJ):r=a}o(n,"next"),t.on("readable",n);let i,s=NTe(t,{writable:!1},a=>{i=a?STe(i,a):null,r(),r=EJ});try{for(;;){let a=t.destroyed?null:t.read();if(a!==null)yield a;else{if(i)throw i;if(i===null)return;await new vTe(n)}}}catch(a){throw i=STe(i,a),i}finally{(i||e?.destroyOnReturn!==!1)&&(i===void 0||t._readableState.autoDestroy)?vE.destroyer(t,null):(t.off("readable",n),s())}}o(rTt,"createAsyncIterator");BJ(st.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.dataEmitted},"get")},readableAborted:{__proto__:null,enumerable:!1,get:o(function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)},"get")},readableHighWaterMark:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.highWaterMark},"get")},readableBuffer:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState&&this._readableState.buffer},"get")},readableFlowing:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.flowing},"get"),set:o(function(t){this._readableState&&(this._readableState.flowing=t)},"set")},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});BJ(N1.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[mA]!==!1},set(t){this[mA]=!!t}}});st._fromList=MTe;function MTe(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}o(MTe,"fromList");function bJ(t){let e=t._readableState;Ct("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,gc.nextTick(nTt,e,t))}o(bJ,"endReadable");function nTt(t,e){if(Ct("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)gc.nextTick(iTt,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}o(nTt,"endReadableNT");function iTt(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}o(iTt,"endWritableNT");st.from=function(t,e){return F_t(st,t,e)};var wJ;function UTe(){return wJ===void 0&&(wJ={}),wJ}o(UTe,"lazyWebStreams");st.fromWeb=function(t,e){return UTe().newStreamReadableFromReadableStream(t,e)};st.toWeb=function(t,e){return UTe().newReadableStreamFromStreamReadable(t,e)};st.wrap=function(t,e){var r,n;return new st({objectMode:(r=(n=t.readableObjectMode)!==null&&n!==void 0?n:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(i,s){vE.destroyer(t,i),s(i)}}).wrap(t)}});var P1=m((XRr,ZTe)=>{var gA=Hf(),{ArrayPrototypeSlice:VTe,Error:sTt,FunctionPrototypeSymbolHasInstance:zTe,ObjectDefineProperty:$Te,ObjectDefineProperties:oTt,ObjectSetPrototypeOf:jTe,StringPrototypeToLowerCase:aTt,Symbol:cTt,SymbolHasInstance:lTt}=_r();ZTe.exports=Tr;Tr.WritableState=IS;var{EventEmitter:uTt}=require("events"),bS=w1().Stream,{Buffer:T1}=require("buffer"),Q1=AA(),{addAbortSignal:dTt}=gS(),{getHighWaterMark:fTt,getDefaultHighWaterMark:hTt}=yS(),{ERR_INVALID_ARG_TYPE:pTt,ERR_METHOD_NOT_IMPLEMENTED:ATt,ERR_MULTIPLE_CALLBACK:WTe,ERR_STREAM_CANNOT_PIPE:mTt,ERR_STREAM_DESTROYED:wS,ERR_STREAM_ALREADY_FINISHED:gTt,ERR_STREAM_NULL_VALUES:yTt,ERR_STREAM_WRITE_AFTER_END:ETt,ERR_UNKNOWN_ENCODING:JTe}=as().codes,{errorOrDestroy:NE}=Q1;jTe(Tr.prototype,bS.prototype);jTe(Tr,bS);function NJ(){}o(NJ,"nop");var _E=cTt("kOnFinished");function IS(t,e,r){typeof r!="boolean"&&(r=e instanceof $l()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?fTt(this,t,"writableHighWaterMark",r):hTt(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let n=!!(t&&t.decodeStrings===!1);this.decodeStrings=!n,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=bTt.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,D1(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[_E]=[]}o(IS,"WritableState");function D1(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}o(D1,"resetBuffer");IS.prototype.getBuffer=o(function(){return VTe(this.buffered,this.bufferedIndex)},"getBuffer");$Te(IS.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Tr(t){let e=this instanceof $l();if(!e&&!zTe(Tr,this))return new Tr(t);this._writableState=new IS(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&dTt(t.signal,this)),bS.call(this,t),Q1.construct(this,()=>{let r=this._writableState;r.writing||TJ(this,r),RJ(this,r)})}o(Tr,"Writable");$Te(Tr,lTt,{__proto__:null,value:o(function(t){return zTe(this,t)?!0:this!==Tr?!1:t&&t._writableState instanceof IS},"value")});Tr.prototype.pipe=function(){NE(this,new mTt)};function YTe(t,e,r,n){let i=t._writableState;if(typeof r=="function")n=r,r=i.defaultEncoding;else{if(!r)r=i.defaultEncoding;else if(r!=="buffer"&&!T1.isEncoding(r))throw new JTe(r);typeof n!="function"&&(n=NJ)}if(e===null)throw new yTt;if(!i.objectMode)if(typeof e=="string")i.decodeStrings!==!1&&(e=T1.from(e,r),r="buffer");else if(e instanceof T1)r="buffer";else if(bS._isUint8Array(e))e=bS._uint8ArrayToBuffer(e),r="buffer";else throw new pTt("chunk",["string","Buffer","Uint8Array"],e);let s;return i.ending?s=new ETt:i.destroyed&&(s=new wS("write")),s?(gA.nextTick(n,s),NE(t,s,!0),s):(i.pendingcb++,CTt(t,i,e,r,n))}o(YTe,"_write");Tr.prototype.write=function(t,e,r){return YTe(this,t,e,r)===!0};Tr.prototype.cork=function(){this._writableState.corked++};Tr.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||TJ(this,t))};Tr.prototype.setDefaultEncoding=o(function(e){if(typeof e=="string"&&(e=aTt(e)),!T1.isEncoding(e))throw new JTe(e);return this._writableState.defaultEncoding=e,this},"setDefaultEncoding");function CTt(t,e,r,n,i){let s=e.objectMode?1:r.length;e.length+=s;let a=e.length<e.highWaterMark;return a||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:n,callback:i}),e.allBuffers&&n!=="buffer"&&(e.allBuffers=!1),e.allNoop&&i!==NJ&&(e.allNoop=!1)):(e.writelen=s,e.writecb=i,e.writing=!0,e.sync=!0,t._write(r,n,e.onwrite),e.sync=!1),a&&!e.errored&&!e.destroyed}o(CTt,"writeOrBuffer");function GTe(t,e,r,n,i,s,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new wS("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}o(GTe,"doWrite");function HTe(t,e,r,n){--e.pendingcb,n(r),_J(e),NE(t,r)}o(HTe,"onwriteError");function bTt(t,e){let r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function"){NE(t,new WTe);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),n?gA.nextTick(HTe,t,r,e,i):HTe(t,r,e,i)):(r.buffered.length>r.bufferedIndex&&TJ(t,r),n?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===i?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:i,stream:t,state:r},gA.nextTick(wTt,r.afterWriteTickInfo)):KTe(t,r,1,i))}o(bTt,"onwrite");function wTt({stream:t,state:e,count:r,cb:n}){return e.afterWriteTickInfo=null,KTe(t,e,r,n)}o(wTt,"afterWriteTick");function KTe(t,e,r,n){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,n();e.destroyed&&_J(e),RJ(t,e)}o(KTe,"afterWrite");function _J(t){if(t.writing)return;for(let i=t.bufferedIndex;i<t.buffered.length;++i){var e;let{chunk:s,callback:a}=t.buffered[i],c=t.objectMode?1:s.length;t.length-=c,a((e=t.errored)!==null&&e!==void 0?e:new wS("write"))}let r=t[_E].splice(0);for(let i=0;i<r.length;i++){var n;r[i]((n=t.errored)!==null&&n!==void 0?n:new wS("end"))}D1(t)}o(_J,"errorBuffer");function TJ(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:n,objectMode:i}=e,s=r.length-n;if(!s)return;let a=n;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let c=e.allNoop?NJ:u=>{for(let d=a;d<r.length;++d)r[d].callback(u)},l=e.allNoop&&a===0?r:VTe(r,a);l.allBuffers=e.allBuffers,GTe(t,e,!0,e.length,l,"",c),D1(e)}else{do{let{chunk:c,encoding:l,callback:u}=r[a];r[a++]=null;let d=i?1:c.length;GTe(t,e,!1,d,c,l,u)}while(a<r.length&&!e.writing);a===r.length?D1(e):a>256?(r.splice(0,a),e.bufferedIndex=0):e.bufferedIndex=a}e.bufferProcessing=!1}o(TJ,"clearBuffer");Tr.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new ATt("_write()")};Tr.prototype._writev=null;Tr.prototype.end=function(t,e,r){let n=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let i;if(t!=null){let s=YTe(this,t,e);s instanceof sTt&&(i=s)}return n.corked&&(n.corked=1,this.uncork()),i||(!n.errored&&!n.ending?(n.ending=!0,RJ(this,n,!0),n.ended=!0):n.finished?i=new gTt("end"):n.destroyed&&(i=new wS("end"))),typeof r=="function"&&(i||n.finished?gA.nextTick(r,i):n[_E].push(r)),this};function R1(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}o(R1,"needFinish");function ITt(t,e){let r=!1;function n(i){if(r){NE(t,i??WTe());return}if(r=!0,e.pendingcb--,i){let s=e[_E].splice(0);for(let a=0;a<s.length;a++)s[a](i);NE(t,i,e.sync)}else R1(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,gA.nextTick(vJ,t,e))}o(n,"onFinish"),e.sync=!0,e.pendingcb++;try{t._final(n)}catch(i){n(i)}e.sync=!1}o(ITt,"callFinal");function STt(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,ITt(t,e)):(e.prefinished=!0,t.emit("prefinish")))}o(STt,"prefinish");function RJ(t,e,r){R1(e)&&(STt(t,e),e.pendingcb===0&&(r?(e.pendingcb++,gA.nextTick((n,i)=>{R1(i)?vJ(n,i):i.pendingcb--},t,e)):R1(e)&&(e.pendingcb++,vJ(t,e))))}o(RJ,"finishMaybe");function vJ(t,e){e.pendingcb--,e.finished=!0;let r=e[_E].splice(0);for(let n=0;n<r.length;n++)r[n]();if(t.emit("finish"),e.autoDestroy){let n=t._readableState;(!n||n.autoDestroy&&(n.endEmitted||n.readable===!1))&&t.destroy()}}o(vJ,"finish");oTt(Tr.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:o(function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)},"get")}});var BTt=Q1.destroy;Tr.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[_E].length)&&gA.nextTick(_J,r),BTt.call(this,t,e),this};Tr.prototype._undestroy=Q1.undestroy;Tr.prototype._destroy=function(t,e){e(t)};Tr.prototype[uTt.captureRejectionSymbol]=function(t){this.destroy(t)};var xJ;function XTe(){return xJ===void 0&&(xJ={}),xJ}o(XTe,"lazyWebStreams");Tr.fromWeb=function(t,e){return XTe().newStreamWritableFromWritableStream(t,e)};Tr.toWeb=function(t){return XTe().newWritableStreamFromStreamWritable(t)}});var pRe=m((e2r,hRe)=>{var DJ=Hf(),xTt=require("buffer"),{isReadable:vTt,isWritable:NTt,isIterable:eRe,isNodeStream:_Tt,isReadableNodeStream:tRe,isWritableNodeStream:rRe,isDuplexNodeStream:TTt,isReadableStream:nRe,isWritableStream:iRe}=Vl(),sRe=hd(),{AbortError:dRe,codes:{ERR_INVALID_ARG_TYPE:RTt,ERR_INVALID_RETURN_VALUE:oRe}}=as(),{destroyer:RE}=AA(),DTt=$l(),fRe=CS(),QTt=P1(),{createDeferredPromise:aRe}=Di(),cRe=gJ(),lRe=globalThis.Blob||xTt.Blob,PTt=o(typeof lRe<"u"?function(e){return e instanceof lRe}:function(e){return!1},"isBlob"),kTt=globalThis.AbortController||bE().AbortController,{FunctionPrototypeCall:uRe}=_r(),$f=class extends DTt{static{o(this,"Duplexify")}constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};hRe.exports=o(function t(e,r){if(TTt(e))return e;if(tRe(e))return TE({readable:e});if(rRe(e))return TE({writable:e});if(_Tt(e))return TE({writable:!1,readable:!1});if(nRe(e))return TE({readable:fRe.fromWeb(e)});if(iRe(e))return TE({writable:QTt.fromWeb(e)});if(typeof e=="function"){let{value:i,write:s,final:a,destroy:c}=OTt(e);if(eRe(i))return cRe($f,i,{objectMode:!0,write:s,final:a,destroy:c});let l=i?.then;if(typeof l=="function"){let u,d=uRe(l,i,f=>{if(f!=null)throw new oRe("nully","body",f)},f=>{RE(u,f)});return u=new $f({objectMode:!0,readable:!1,write:s,final(f){a(async()=>{try{await d,DJ.nextTick(f,null)}catch(h){DJ.nextTick(f,h)}})},destroy:c})}throw new oRe("Iterable, AsyncIterable or AsyncFunction",r,i)}if(PTt(e))return t(e.arrayBuffer());if(eRe(e))return cRe($f,e,{objectMode:!0,writable:!1});if(nRe(e?.readable)&&iRe(e?.writable))return $f.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let i=e!=null&&e.readable?tRe(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?rRe(e?.writable)?e?.writable:t(e.writable):void 0;return TE({readable:i,writable:s})}let n=e?.then;if(typeof n=="function"){let i;return uRe(n,e,s=>{s!=null&&i.push(s),i.push(null)},s=>{RE(i,s)}),i=new $f({objectMode:!0,writable:!1,read(){}})}throw new RTt(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)},"duplexify");function OTt(t){let{promise:e,resolve:r}=aRe(),n=new kTt,i=n.signal;return{value:t((async function*(){for(;;){let a=e;e=null;let{chunk:c,done:l,cb:u}=await a;if(DJ.nextTick(u),l)return;if(i.aborted)throw new dRe(void 0,{cause:i.reason});({promise:e,resolve:r}=aRe()),yield c}})(),{signal:i}),write(a,c,l){let u=r;r=null,u({chunk:a,done:!1,cb:l})},final(a){let c=r;r=null,c({done:!0,cb:a})},destroy(a,c){n.abort(),c(a)}}}o(OTt,"fromAsyncGen");function TE(t){let e=t.readable&&typeof t.readable.read!="function"?fRe.wrap(t.readable):t.readable,r=t.writable,n=!!vTt(e),i=!!NTt(r),s,a,c,l,u;function d(f){let h=l;l=null,h?h(f):f&&u.destroy(f)}return o(d,"onfinished"),u=new $f({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:n,writable:i}),i&&(sRe(r,f=>{i=!1,f&&RE(e,f),d(f)}),u._write=function(f,h,p){r.write(f,h)?p():s=p},u._final=function(f){r.end(),a=f},r.on("drain",function(){if(s){let f=s;s=null,f()}}),r.on("finish",function(){if(a){let f=a;a=null,f()}})),n&&(sRe(e,f=>{n=!1,f&&RE(e,f),d(f)}),e.on("readable",function(){if(c){let f=c;c=null,f()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let f=e.read();if(f===null){c=u._read;return}if(!u.push(f))return}}),u._destroy=function(f,h){!f&&l!==null&&(f=new dRe),c=null,s=null,a=null,l===null?h(f):(l=h,RE(r,f),RE(e,f))},u}o(TE,"_duplexify")});var $l=m((r2r,gRe)=>{"use strict";var{ObjectDefineProperties:LTt,ObjectGetOwnPropertyDescriptor:pd,ObjectKeys:FTt,ObjectSetPrototypeOf:ARe}=_r();gRe.exports=yc;var kJ=CS(),Ia=P1();ARe(yc.prototype,kJ.prototype);ARe(yc,kJ);{let t=FTt(Ia.prototype);for(let e=0;e<t.length;e++){let r=t[e];yc.prototype[r]||(yc.prototype[r]=Ia.prototype[r])}}function yc(t){if(!(this instanceof yc))return new yc(t);kJ.call(this,t),Ia.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}o(yc,"Duplex");LTt(yc.prototype,{writable:{__proto__:null,...pd(Ia.prototype,"writable")},writableHighWaterMark:{__proto__:null,...pd(Ia.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...pd(Ia.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...pd(Ia.prototype,"writableBuffer")},writableLength:{__proto__:null,...pd(Ia.prototype,"writableLength")},writableFinished:{__proto__:null,...pd(Ia.prototype,"writableFinished")},writableCorked:{__proto__:null,...pd(Ia.prototype,"writableCorked")},writableEnded:{__proto__:null,...pd(Ia.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...pd(Ia.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var QJ;function mRe(){return QJ===void 0&&(QJ={}),QJ}o(mRe,"lazyWebStreams");yc.fromWeb=function(t,e){return mRe().newStreamDuplexFromReadableWritablePair(t,e)};yc.toWeb=function(t){return mRe().newReadableWritablePairFromDuplex(t)};var PJ;yc.from=function(t){return PJ||(PJ=pRe()),PJ(t,"body")}});var FJ=m((i2r,ERe)=>{"use strict";var{ObjectSetPrototypeOf:yRe,Symbol:MTt}=_r();ERe.exports=Ad;var{ERR_METHOD_NOT_IMPLEMENTED:UTt}=as().codes,LJ=$l(),{getHighWaterMark:qTt}=yS();yRe(Ad.prototype,LJ.prototype);yRe(Ad,LJ);var SS=MTt("kCallback");function Ad(t){if(!(this instanceof Ad))return new Ad(t);let e=t?qTt(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),LJ.call(this,t),this._readableState.sync=!1,this[SS]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",GTt)}o(Ad,"Transform");function OJ(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}o(OJ,"final");function GTt(){this._final!==OJ&&OJ.call(this)}o(GTt,"prefinish");Ad.prototype._final=OJ;Ad.prototype._transform=function(t,e,r){throw new UTt("_transform()")};Ad.prototype._write=function(t,e,r){let n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,(a,c)=>{if(a){r(a);return}c!=null&&this.push(c),i.ended||s===n.length||n.length<n.highWaterMark?r():this[SS]=r})};Ad.prototype._read=function(){if(this[SS]){let t=this[SS];this[SS]=null,t()}}});var UJ=m((o2r,bRe)=>{"use strict";var{ObjectSetPrototypeOf:CRe}=_r();bRe.exports=DE;var MJ=FJ();CRe(DE.prototype,MJ.prototype);CRe(DE,MJ);function DE(t){if(!(this instanceof DE))return new DE(t);MJ.call(this,t)}o(DE,"PassThrough");DE.prototype._transform=function(t,e,r){r(null,t)}});var F1=m((c2r,xRe)=>{var BS=Hf(),{ArrayIsArray:HTt,Promise:VTt,SymbolAsyncIterator:zTt,SymbolDispose:$Tt}=_r(),L1=hd(),{once:jTt}=Di(),WTt=AA(),wRe=$l(),{aggregateTwoErrors:JTt,codes:{ERR_INVALID_ARG_TYPE:JJ,ERR_INVALID_RETURN_VALUE:qJ,ERR_MISSING_ARGS:YTt,ERR_STREAM_DESTROYED:KTt,ERR_STREAM_PREMATURE_CLOSE:XTt},AbortError:ZTt}=as(),{validateFunction:eRt,validateAbortSignal:tRt}=IE(),{isIterable:yA,isReadable:GJ,isReadableNodeStream:O1,isNodeStream:IRe,isTransformStream:QE,isWebStream:rRt,isReadableStream:HJ,isReadableFinished:nRt}=Vl(),iRt=globalThis.AbortController||bE().AbortController,VJ,zJ,$J;function SRe(t,e,r){let n=!1;t.on("close",()=>{n=!0});let i=L1(t,{readable:e,writable:r},s=>{n=!s});return{destroy:o(s=>{n||(n=!0,WTt.destroyer(t,s||new KTt("pipe")))},"destroy"),cleanup:i}}o(SRe,"destroyer");function sRt(t){return eRt(t[t.length-1],"streams[stream.length - 1]"),t.pop()}o(sRt,"popCallback");function jJ(t){if(yA(t))return t;if(O1(t))return oRt(t);throw new JJ("val",["Readable","Iterable","AsyncIterable"],t)}o(jJ,"makeAsyncIterable");async function*oRt(t){zJ||(zJ=CS()),yield*zJ.prototype[zTt].call(t)}o(oRt,"fromReadable");async function k1(t,e,r,{end:n}){let i,s=null,a=o(u=>{if(u&&(i=u),s){let d=s;s=null,d()}},"resume"),c=o(()=>new VTt((u,d)=>{i?d(i):s=o(()=>{i?d(i):u()},"onresolve")}),"wait");e.on("drain",a);let l=L1(e,{readable:!1},a);try{e.writableNeedDrain&&await c();for await(let u of t)e.write(u)||await c();n&&(e.end(),await c()),r()}catch(u){r(i!==u?JTt(i,u):u)}finally{l(),e.off("drain",a)}}o(k1,"pumpToNode");async function WJ(t,e,r,{end:n}){QE(e)&&(e=e.writable);let i=e.getWriter();try{for await(let s of t)await i.ready,i.write(s).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(s){try{await i.abort(s),r(s)}catch(a){r(a)}}}o(WJ,"pumpToWeb");function aRt(...t){return BRe(t,jTt(sRt(t)))}o(aRt,"pipeline");function BRe(t,e,r){if(t.length===1&&HTt(t[0])&&(t=t[0]),t.length<2)throw new YTt("streams");let n=new iRt,i=n.signal,s=r?.signal,a=[];tRt(s,"options.signal");function c(){g(new ZTt)}o(c,"abort"),$J=$J||Di().addAbortListener;let l;s&&(l=$J(s,c));let u,d,f=[],h=0;function p(w){g(w,--h===0)}o(p,"finish");function g(w,B){var Q;if(w&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=w),!(!u&&!B)){for(;f.length;)f.shift()(u);(Q=l)===null||Q===void 0||Q[$Tt](),n.abort(),B&&(u||a.forEach(U=>U()),BS.nextTick(e,u,d))}}o(g,"finishImpl");let A;for(let w=0;w<t.length;w++){let B=t[w],Q=w<t.length-1,U=w>0,v=Q||r?.end!==!1,j=w===t.length-1;if(IRe(B)){let D=function(H){H&&H.name!=="AbortError"&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"&&p(H)};var C=D;if(o(D,"onError"),v){let{destroy:H,cleanup:V}=SRe(B,Q,U);f.push(H),GJ(B)&&j&&a.push(V)}B.on("error",D),GJ(B)&&j&&a.push(()=>{B.removeListener("error",D)})}if(w===0)if(typeof B=="function"){if(A=B({signal:i}),!yA(A))throw new qJ("Iterable, AsyncIterable or Stream","source",A)}else yA(B)||O1(B)||QE(B)?A=B:A=wRe.from(B);else if(typeof B=="function"){if(QE(A)){var E;A=jJ((E=A)===null||E===void 0?void 0:E.readable)}else A=jJ(A);if(A=B(A,{signal:i}),Q){if(!yA(A,!0))throw new qJ("AsyncIterable",`transform[${w-1}]`,A)}else{var y;VJ||(VJ=UJ());let D=new VJ({objectMode:!0}),H=(y=A)===null||y===void 0?void 0:y.then;if(typeof H=="function")h++,H.call(A,oe=>{d=oe,oe!=null&&D.write(oe),v&&D.end(),BS.nextTick(p)},oe=>{D.destroy(oe),BS.nextTick(p,oe)});else if(yA(A,!0))h++,k1(A,D,p,{end:v});else if(HJ(A)||QE(A)){let oe=A.readable||A;h++,k1(oe,D,p,{end:v})}else throw new qJ("AsyncIterable or Promise","destination",A);A=D;let{destroy:V,cleanup:J}=SRe(A,!1,!0);f.push(V),j&&a.push(J)}}else if(IRe(B)){if(O1(A)){h+=2;let D=cRt(A,B,p,{end:v});GJ(B)&&j&&a.push(D)}else if(QE(A)||HJ(A)){let D=A.readable||A;h++,k1(D,B,p,{end:v})}else if(yA(A))h++,k1(A,B,p,{end:v});else throw new JJ("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],A);A=B}else if(rRt(B)){if(O1(A))h++,WJ(jJ(A),B,p,{end:v});else if(HJ(A)||yA(A))h++,WJ(A,B,p,{end:v});else if(QE(A))h++,WJ(A.readable,B,p,{end:v});else throw new JJ("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],A);A=B}else A=wRe.from(B)}return(i!=null&&i.aborted||s!=null&&s.aborted)&&BS.nextTick(c),A}o(BRe,"pipelineImpl");function cRt(t,e,r,{end:n}){let i=!1;if(e.on("close",()=>{i||r(new XTt)}),t.pipe(e,{end:!1}),n){let a=function(){i=!0,e.end()};var s=a;o(a,"endFn"),nRt(t)?BS.nextTick(a):t.once("end",a)}else r();return L1(t,{readable:!0,writable:!1},a=>{let c=t._readableState;a&&a.code==="ERR_STREAM_PREMATURE_CLOSE"&&c&&c.ended&&!c.errored&&!c.errorEmitted?t.once("end",r).once("error",r):r(a)}),L1(e,{readable:!1,writable:!0},r)}o(cRt,"pipe");xRe.exports={pipelineImpl:BRe,pipeline:aRt}});var KJ=m((u2r,DRe)=>{"use strict";var{pipeline:lRt}=F1(),M1=$l(),{destroyer:uRt}=AA(),{isNodeStream:U1,isReadable:vRe,isWritable:NRe,isWebStream:YJ,isTransformStream:EA,isWritableStream:_Re,isReadableStream:TRe}=Vl(),{AbortError:dRt,codes:{ERR_INVALID_ARG_VALUE:RRe,ERR_MISSING_ARGS:fRt}}=as(),hRt=hd();DRe.exports=o(function(...e){if(e.length===0)throw new fRt("streams");if(e.length===1)return M1.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=M1.from(e[0])),typeof e[e.length-1]=="function"){let p=e.length-1;e[p]=M1.from(e[p])}for(let p=0;p<e.length;++p)if(!(!U1(e[p])&&!YJ(e[p]))){if(p<e.length-1&&!(vRe(e[p])||TRe(e[p])||EA(e[p])))throw new RRe(`streams[${p}]`,r[p],"must be readable");if(p>0&&!(NRe(e[p])||_Re(e[p])||EA(e[p])))throw new RRe(`streams[${p}]`,r[p],"must be writable")}let n,i,s,a,c;function l(p){let g=a;a=null,g?g(p):p?c.destroy(p):!h&&!f&&c.destroy()}o(l,"onfinished");let u=e[0],d=lRt(e,l),f=!!(NRe(u)||_Re(u)||EA(u)),h=!!(vRe(d)||TRe(d)||EA(d));if(c=new M1({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(d!=null&&d.readableObjectMode),writable:f,readable:h}),f){if(U1(u))c._write=function(g,A,E){u.write(g,A)?E():n=E},c._final=function(g){u.end(),i=g},u.on("drain",function(){if(n){let g=n;n=null,g()}});else if(YJ(u)){let A=(EA(u)?u.writable:u).getWriter();c._write=async function(E,y,C){try{await A.ready,A.write(E).catch(()=>{}),C()}catch(w){C(w)}},c._final=async function(E){try{await A.ready,A.close().catch(()=>{}),i=E}catch(y){E(y)}}}let p=EA(d)?d.readable:d;hRt(p,()=>{if(i){let g=i;i=null,g()}})}if(h){if(U1(d))d.on("readable",function(){if(s){let p=s;s=null,p()}}),d.on("end",function(){c.push(null)}),c._read=function(){for(;;){let p=d.read();if(p===null){s=c._read;return}if(!c.push(p))return}};else if(YJ(d)){let g=(EA(d)?d.readable:d).getReader();c._read=async function(){for(;;)try{let{value:A,done:E}=await g.read();if(!c.push(A))return;if(E){c.push(null);return}}catch{return}}}}return c._destroy=function(p,g){!p&&a!==null&&(p=new dRt),s=null,n=null,i=null,a===null?g(p):(a=g,U1(d)&&uRt(d,p))},c},"compose")});var GRe=m((f2r,e9)=>{"use strict";var pRt=globalThis.AbortController||bE().AbortController,{codes:{ERR_INVALID_ARG_VALUE:ARt,ERR_INVALID_ARG_TYPE:xS,ERR_MISSING_ARGS:mRt,ERR_OUT_OF_RANGE:gRt},AbortError:jl}=as(),{validateAbortSignal:CA,validateInteger:QRe,validateObject:bA}=IE(),yRt=_r().Symbol("kWeak"),ERt=_r().Symbol("kResistStopPropagation"),{finished:CRt}=hd(),bRt=KJ(),{addAbortSignalNoValidate:wRt}=gS(),{isWritable:IRt,isNodeStream:SRt}=Vl(),{deprecate:BRt}=Di(),{ArrayPrototypePush:xRt,Boolean:vRt,MathFloor:PRe,Number:NRt,NumberIsNaN:_Rt,Promise:kRe,PromiseReject:ORe,PromiseResolve:TRt,PromisePrototypeThen:LRe,Symbol:MRe}=_r(),q1=MRe("kEmpty"),FRe=MRe("kEof");function RRt(t,e){if(e!=null&&bA(e,"options"),e?.signal!=null&&CA(e.signal,"options.signal"),SRt(t)&&!IRt(t))throw new ARt("stream",t,"must be writable");let r=bRt(this,t);return e!=null&&e.signal&&wRt(e.signal,r),r}o(RRt,"compose");function G1(t,e){if(typeof t!="function")throw new xS("fn",["Function","AsyncFunction"],t);e!=null&&bA(e,"options"),e?.signal!=null&&CA(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=PRe(e.concurrency));let n=r-1;return e?.highWaterMark!=null&&(n=PRe(e.highWaterMark)),QRe(r,"options.concurrency",1),QRe(n,"options.highWaterMark",0),n+=r,o(async function*(){let s=Di().AbortSignalAny([e?.signal].filter(vRt)),a=this,c=[],l={signal:s},u,d,f=!1,h=0;function p(){f=!0,g()}o(p,"onCatch");function g(){h-=1,A()}o(g,"afterItemProcessed");function A(){d&&!f&&h<r&&c.length<n&&(d(),d=null)}o(A,"maybeResume");async function E(){try{for await(let y of a){if(f)return;if(s.aborted)throw new jl;try{if(y=t(y,l),y===q1)continue;y=TRt(y)}catch(C){y=ORe(C)}h+=1,LRe(y,g,p),c.push(y),u&&(u(),u=null),!f&&(c.length>=n||h>=r)&&await new kRe(C=>{d=C})}c.push(FRe)}catch(y){let C=ORe(y);LRe(C,g,p),c.push(C)}finally{f=!0,u&&(u(),u=null)}}o(E,"pump"),E();try{for(;;){for(;c.length>0;){let y=await c[0];if(y===FRe)return;if(s.aborted)throw new jl;y!==q1&&(yield y),c.shift(),A()}await new kRe(y=>{u=y})}}finally{f=!0,d&&(d(),d=null)}},"map").call(this)}o(G1,"map");function DRt(t=void 0){return t!=null&&bA(t,"options"),t?.signal!=null&&CA(t.signal,"options.signal"),o(async function*(){let r=0;for await(let i of this){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new jl({cause:t.signal.reason});yield[r++,i]}},"asIndexedPairs").call(this)}o(DRt,"asIndexedPairs");async function URe(t,e=void 0){for await(let r of ZJ.call(this,t,e))return!0;return!1}o(URe,"some");async function QRt(t,e=void 0){if(typeof t!="function")throw new xS("fn",["Function","AsyncFunction"],t);return!await URe.call(this,async(...r)=>!await t(...r),e)}o(QRt,"every");async function PRt(t,e){for await(let r of ZJ.call(this,t,e))return r}o(PRt,"find");async function kRt(t,e){if(typeof t!="function")throw new xS("fn",["Function","AsyncFunction"],t);async function r(n,i){return await t(n,i),q1}o(r,"forEachFn");for await(let n of G1.call(this,r,e));}o(kRt,"forEach");function ZJ(t,e){if(typeof t!="function")throw new xS("fn",["Function","AsyncFunction"],t);async function r(n,i){return await t(n,i)?n:q1}return o(r,"filterFn"),G1.call(this,r,e)}o(ZJ,"filter");var XJ=class extends mRt{static{o(this,"ReduceAwareErrMissingArgs")}constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function ORt(t,e,r){var n;if(typeof t!="function")throw new xS("reducer",["Function","AsyncFunction"],t);r!=null&&bA(r,"options"),r?.signal!=null&&CA(r.signal,"options.signal");let i=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){let u=new jl(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await CRt(this.destroy(u)),u}let s=new pRt,a=s.signal;if(r!=null&&r.signal){let u={once:!0,[yRt]:this,[ERt]:!0};r.signal.addEventListener("abort",()=>s.abort(),u)}let c=!1;try{for await(let u of this){var l;if(c=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new jl;i?e=await t(e,u,{signal:a}):(e=u,i=!0)}if(!c&&!i)throw new XJ}finally{s.abort()}return e}o(ORt,"reduce");async function LRt(t){t!=null&&bA(t,"options"),t?.signal!=null&&CA(t.signal,"options.signal");let e=[];for await(let n of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new jl(void 0,{cause:t.signal.reason});xRt(e,n)}return e}o(LRt,"toArray");function FRt(t,e){let r=G1.call(this,t,e);return o(async function*(){for await(let i of r)yield*i},"flatMap").call(this)}o(FRt,"flatMap");function qRe(t){if(t=NRt(t),_Rt(t))return 0;if(t<0)throw new gRt("number",">= 0",t);return t}o(qRe,"toIntegerOrInfinity");function MRt(t,e=void 0){return e!=null&&bA(e,"options"),e?.signal!=null&&CA(e.signal,"options.signal"),t=qRe(t),o(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new jl;for await(let s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new jl;t--<=0&&(yield s)}},"drop").call(this)}o(MRt,"drop");function URt(t,e=void 0){return e!=null&&bA(e,"options"),e?.signal!=null&&CA(e.signal,"options.signal"),t=qRe(t),o(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new jl;for await(let s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new jl;if(t-- >0&&(yield s),t<=0)return}},"take").call(this)}o(URt,"take");e9.exports.streamReturningOperators={asIndexedPairs:BRt(DRt,"readable.asIndexedPairs will be removed in a future version."),drop:MRt,filter:ZJ,flatMap:FRt,map:G1,take:URt,compose:RRt};e9.exports.promiseReturningOperators={every:QRt,forEach:kRt,reduce:ORt,toArray:LRt,some:URe,find:PRt}});var t9=m((p2r,HRe)=>{"use strict";var{ArrayPrototypePop:qRt,Promise:GRt}=_r(),{isIterable:HRt,isNodeStream:VRt,isWebStream:zRt}=Vl(),{pipelineImpl:$Rt}=F1(),{finished:jRt}=hd();r9();function WRt(...t){return new GRt((e,r)=>{let n,i,s=t[t.length-1];if(s&&typeof s=="object"&&!VRt(s)&&!HRt(s)&&!zRt(s)){let a=qRt(t);n=a.signal,i=a.end}$Rt(t,(a,c)=>{a?r(a):e(c)},{signal:n,end:i})})}o(WRt,"pipeline");HRe.exports={finished:jRt,pipeline:WRt}});var r9=m((m2r,XRe)=>{var{Buffer:JRt}=require("buffer"),{ObjectDefineProperty:md,ObjectKeys:$Re,ReflectApply:jRe}=_r(),{promisify:{custom:WRe}}=Di(),{streamReturningOperators:VRe,promiseReturningOperators:zRe}=GRe(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:JRe}}=as(),YRt=KJ(),{setDefaultHighWaterMark:KRt,getDefaultHighWaterMark:XRt}=yS(),{pipeline:YRe}=F1(),{destroyer:ZRt}=AA(),KRe=hd(),n9=t9(),vS=Vl(),fr=XRe.exports=w1().Stream;fr.isDestroyed=vS.isDestroyed;fr.isDisturbed=vS.isDisturbed;fr.isErrored=vS.isErrored;fr.isReadable=vS.isReadable;fr.isWritable=vS.isWritable;fr.Readable=CS();for(let t of $Re(VRe)){let r=function(...n){if(new.target)throw JRe();return fr.Readable.from(jRe(e,this,n))};i9=r,o(r,"fn");let e=VRe[t];md(r,"name",{__proto__:null,value:e.name}),md(r,"length",{__proto__:null,value:e.length}),md(fr.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}var i9;for(let t of $Re(zRe)){let r=function(...i){if(new.target)throw JRe();return jRe(e,this,i)};i9=r,o(r,"fn");let e=zRe[t];md(r,"name",{__proto__:null,value:e.name}),md(r,"length",{__proto__:null,value:e.length}),md(fr.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}var i9;fr.Writable=P1();fr.Duplex=$l();fr.Transform=FJ();fr.PassThrough=UJ();fr.pipeline=YRe;var{addAbortSignal:e2t}=gS();fr.addAbortSignal=e2t;fr.finished=KRe;fr.destroy=ZRt;fr.compose=YRt;fr.setDefaultHighWaterMark=KRt;fr.getDefaultHighWaterMark=XRt;md(fr,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return n9}});md(YRe,WRe,{__proto__:null,enumerable:!0,get(){return n9.pipeline}});md(KRe,WRe,{__proto__:null,enumerable:!0,get(){return n9.finished}});fr.Stream=fr;fr._isUint8Array=o(function(e){return e instanceof Uint8Array},"isUint8Array");fr._uint8ArrayToBuffer=o(function(e){return JRt.from(e.buffer,e.byteOffset,e.byteLength)},"_uint8ArrayToBuffer")});var wA=m((y2r,pt)=>{"use strict";var Mn=require("stream");if(Mn&&process.env.READABLE_STREAM==="disable"){let t=Mn.promises;pt.exports._uint8ArrayToBuffer=Mn._uint8ArrayToBuffer,pt.exports._isUint8Array=Mn._isUint8Array,pt.exports.isDisturbed=Mn.isDisturbed,pt.exports.isErrored=Mn.isErrored,pt.exports.isReadable=Mn.isReadable,pt.exports.Readable=Mn.Readable,pt.exports.Writable=Mn.Writable,pt.exports.Duplex=Mn.Duplex,pt.exports.Transform=Mn.Transform,pt.exports.PassThrough=Mn.PassThrough,pt.exports.addAbortSignal=Mn.addAbortSignal,pt.exports.finished=Mn.finished,pt.exports.destroy=Mn.destroy,pt.exports.pipeline=Mn.pipeline,pt.exports.compose=Mn.compose,Object.defineProperty(Mn,"promises",{configurable:!0,enumerable:!0,get(){return t}}),pt.exports.Stream=Mn.Stream}else{let t=r9(),e=t9(),r=t.Readable.destroy;pt.exports=t.Readable,pt.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,pt.exports._isUint8Array=t._isUint8Array,pt.exports.isDisturbed=t.isDisturbed,pt.exports.isErrored=t.isErrored,pt.exports.isReadable=t.isReadable,pt.exports.Readable=t.Readable,pt.exports.Writable=t.Writable,pt.exports.Duplex=t.Duplex,pt.exports.Transform=t.Transform,pt.exports.PassThrough=t.PassThrough,pt.exports.addAbortSignal=t.addAbortSignal,pt.exports.finished=t.finished,pt.exports.destroy=t.destroy,pt.exports.destroy=r,pt.exports.pipeline=t.pipeline,pt.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),pt.exports.Stream=t.Stream}pt.exports.default=pt.exports});var e2e=m((E2r,ZRe)=>{function t2t(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}o(t2t,"arrayPush");ZRe.exports=t2t});var i2e=m((b2r,n2e)=>{var t2e=a1(),r2t=VW(),n2t=zW(),r2e=t2e?t2e.isConcatSpreadable:void 0;function i2t(t){return n2t(t)||r2t(t)||!!(r2e&&t&&t[r2e])}o(i2t,"isFlattenable");n2e.exports=i2t});var H1=m((I2r,o2e)=>{var s2t=e2e(),o2t=i2e();function s2e(t,e,r,n,i){var s=-1,a=t.length;for(r||(r=o2t),i||(i=[]);++s<a;){var c=t[s];e>0&&r(c)?e>1?s2e(c,e-1,r,n,i):s2t(i,c):n||(i[i.length]=c)}return i}o(s2e,"baseFlatten");o2e.exports=s2e});var c2e=m((B2r,a2e)=>{var a2t=H1();function c2t(t){var e=t==null?0:t.length;return e?a2t(t,1):[]}o(c2t,"flatten");a2e.exports=c2t});var NS=m((v2r,l2e)=>{var l2t=cS(),u2t=l2t(Object,"create");l2e.exports=u2t});var f2e=m((N2r,d2e)=>{var u2e=NS();function d2t(){this.__data__=u2e?u2e(null):{},this.size=0}o(d2t,"hashClear");d2e.exports=d2t});var p2e=m((T2r,h2e)=>{function f2t(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}o(f2t,"hashDelete");h2e.exports=f2t});var m2e=m((D2r,A2e)=>{var h2t=NS(),p2t="__lodash_hash_undefined__",A2t=Object.prototype,m2t=A2t.hasOwnProperty;function g2t(t){var e=this.__data__;if(h2t){var r=e[t];return r===p2t?void 0:r}return m2t.call(e,t)?e[t]:void 0}o(g2t,"hashGet");A2e.exports=g2t});var y2e=m((P2r,g2e)=>{var y2t=NS(),E2t=Object.prototype,C2t=E2t.hasOwnProperty;function b2t(t){var e=this.__data__;return y2t?e[t]!==void 0:C2t.call(e,t)}o(b2t,"hashHas");g2e.exports=b2t});var C2e=m((O2r,E2e)=>{var w2t=NS(),I2t="__lodash_hash_undefined__";function S2t(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=w2t&&e===void 0?I2t:e,this}o(S2t,"hashSet");E2e.exports=S2t});var w2e=m((F2r,b2e)=>{var B2t=f2e(),x2t=p2e(),v2t=m2e(),N2t=y2e(),_2t=C2e();function PE(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}o(PE,"Hash");PE.prototype.clear=B2t;PE.prototype.delete=x2t;PE.prototype.get=v2t;PE.prototype.has=N2t;PE.prototype.set=_2t;b2e.exports=PE});var S2e=m((U2r,I2e)=>{function T2t(){this.__data__=[],this.size=0}o(T2t,"listCacheClear");I2e.exports=T2t});var _S=m((G2r,B2e)=>{var R2t=l1();function D2t(t,e){for(var r=t.length;r--;)if(R2t(t[r][0],e))return r;return-1}o(D2t,"assocIndexOf");B2e.exports=D2t});var v2e=m((V2r,x2e)=>{var Q2t=_S(),P2t=Array.prototype,k2t=P2t.splice;function O2t(t){var e=this.__data__,r=Q2t(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():k2t.call(e,r,1),--this.size,!0}o(O2t,"listCacheDelete");x2e.exports=O2t});var _2e=m(($2r,N2e)=>{var L2t=_S();function F2t(t){var e=this.__data__,r=L2t(e,t);return r<0?void 0:e[r][1]}o(F2t,"listCacheGet");N2e.exports=F2t});var R2e=m((W2r,T2e)=>{var M2t=_S();function U2t(t){return M2t(this.__data__,t)>-1}o(U2t,"listCacheHas");T2e.exports=U2t});var Q2e=m((Y2r,D2e)=>{var q2t=_S();function G2t(t,e){var r=this.__data__,n=q2t(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}o(G2t,"listCacheSet");D2e.exports=G2t});var k2e=m((X2r,P2e)=>{var H2t=S2e(),V2t=v2e(),z2t=_2e(),$2t=R2e(),j2t=Q2e();function kE(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}o(kE,"ListCache");kE.prototype.clear=H2t;kE.prototype.delete=V2t;kE.prototype.get=z2t;kE.prototype.has=$2t;kE.prototype.set=j2t;P2e.exports=kE});var L2e=m((eDr,O2e)=>{var W2t=cS(),J2t=mE(),Y2t=W2t(J2t,"Map");O2e.exports=Y2t});var U2e=m((tDr,M2e)=>{var F2e=w2e(),K2t=k2e(),X2t=L2e();function Z2t(){this.size=0,this.__data__={hash:new F2e,map:new(X2t||K2t),string:new F2e}}o(Z2t,"mapCacheClear");M2e.exports=Z2t});var G2e=m((nDr,q2e)=>{function eDt(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}o(eDt,"isKeyable");q2e.exports=eDt});var TS=m((sDr,H2e)=>{var tDt=G2e();function rDt(t,e){var r=t.__data__;return tDt(e)?r[typeof e=="string"?"string":"hash"]:r.map}o(rDt,"getMapData");H2e.exports=rDt});var z2e=m((aDr,V2e)=>{var nDt=TS();function iDt(t){var e=nDt(this,t).delete(t);return this.size-=e?1:0,e}o(iDt,"mapCacheDelete");V2e.exports=iDt});var j2e=m((lDr,$2e)=>{var sDt=TS();function oDt(t){return sDt(this,t).get(t)}o(oDt,"mapCacheGet");$2e.exports=oDt});var J2e=m((dDr,W2e)=>{var aDt=TS();function cDt(t){return aDt(this,t).has(t)}o(cDt,"mapCacheHas");W2e.exports=cDt});var K2e=m((hDr,Y2e)=>{var lDt=TS();function uDt(t,e){var r=lDt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}o(uDt,"mapCacheSet");Y2e.exports=uDt});var Z2e=m((ADr,X2e)=>{var dDt=U2e(),fDt=z2e(),hDt=j2e(),pDt=J2e(),ADt=K2e();function OE(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}o(OE,"MapCache");OE.prototype.clear=dDt;OE.prototype.delete=fDt;OE.prototype.get=hDt;OE.prototype.has=pDt;OE.prototype.set=ADt;X2e.exports=OE});var tDe=m((gDr,eDe)=>{var mDt="__lodash_hash_undefined__";function gDt(t){return this.__data__.set(t,mDt),this}o(gDt,"setCacheAdd");eDe.exports=gDt});var nDe=m((EDr,rDe)=>{function yDt(t){return this.__data__.has(t)}o(yDt,"setCacheHas");rDe.exports=yDt});var s9=m((bDr,iDe)=>{var EDt=Z2e(),CDt=tDe(),bDt=nDe();function V1(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new EDt;++e<r;)this.add(t[e])}o(V1,"SetCache");V1.prototype.add=V1.prototype.push=CDt;V1.prototype.has=bDt;iDe.exports=V1});var oDe=m((IDr,sDe)=>{function wDt(t,e,r,n){for(var i=t.length,s=r+(n?1:-1);n?s--:++s<i;)if(e(t[s],s,t))return s;return-1}o(wDt,"baseFindIndex");sDe.exports=wDt});var cDe=m((BDr,aDe)=>{function IDt(t){return t!==t}o(IDt,"baseIsNaN");aDe.exports=IDt});var uDe=m((vDr,lDe)=>{function SDt(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}o(SDt,"strictIndexOf");lDe.exports=SDt});var fDe=m((_Dr,dDe)=>{var BDt=oDe(),xDt=cDe(),vDt=uDe();function NDt(t,e,r){return e===e?vDt(t,e,r):BDt(t,xDt,r)}o(NDt,"baseIndexOf");dDe.exports=NDt});var o9=m((RDr,hDe)=>{var _Dt=fDe();function TDt(t,e){var r=t==null?0:t.length;return!!r&&_Dt(t,e,0)>-1}o(TDt,"arrayIncludes");hDe.exports=TDt});var a9=m((QDr,pDe)=>{function RDt(t,e,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}o(RDt,"arrayIncludesWith");pDe.exports=RDt});var mDe=m((kDr,ADe)=>{function DDt(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}o(DDt,"arrayMap");ADe.exports=DDt});var c9=m((LDr,gDe)=>{function QDt(t,e){return t.has(e)}o(QDt,"cacheHas");gDe.exports=QDt});var EDe=m((MDr,yDe)=>{var PDt=s9(),kDt=o9(),ODt=a9(),LDt=mDe(),FDt=$W(),MDt=c9(),UDt=200;function qDt(t,e,r,n){var i=-1,s=kDt,a=!0,c=t.length,l=[],u=e.length;if(!c)return l;r&&(e=LDt(e,FDt(r))),n?(s=ODt,a=!1):e.length>=UDt&&(s=MDt,a=!1,e=new PDt(e));e:for(;++i<c;){var d=t[i],f=r==null?d:r(d);if(d=n||d!==0?d:0,a&&f===f){for(var h=u;h--;)if(e[h]===f)continue e;l.push(d)}else s(e,f,n)||l.push(d)}return l}o(qDt,"baseDifference");yDe.exports=qDt});var l9=m((qDr,CDe)=>{var GDt=u1(),HDt=gE();function VDt(t){return HDt(t)&&GDt(t)}o(VDt,"isArrayLikeObject");CDe.exports=VDt});var IDe=m((HDr,wDe)=>{var zDt=EDe(),$Dt=H1(),jDt=c1(),bDe=l9(),WDt=jDt(function(t,e){return bDe(t)?zDt(t,$Dt(e,1,bDe,!0)):[]});wDe.exports=WDt});var BDe=m((VDr,SDe)=>{var JDt=cS(),YDt=mE(),KDt=JDt(YDt,"Set");SDe.exports=KDt});var vDe=m((zDr,xDe)=>{function XDt(){}o(XDt,"noop");xDe.exports=XDt});var u9=m((jDr,NDe)=>{function ZDt(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}o(ZDt,"setToArray");NDe.exports=ZDt});var TDe=m((JDr,_De)=>{var d9=BDe(),eQt=vDe(),tQt=u9(),rQt=1/0,nQt=d9&&1/tQt(new d9([,-0]))[1]==rQt?function(t){return new d9(t)}:eQt;_De.exports=nQt});var DDe=m((YDr,RDe)=>{var iQt=s9(),sQt=o9(),oQt=a9(),aQt=c9(),cQt=TDe(),lQt=u9(),uQt=200;function dQt(t,e,r){var n=-1,i=sQt,s=t.length,a=!0,c=[],l=c;if(r)a=!1,i=oQt;else if(s>=uQt){var u=e?null:cQt(t);if(u)return lQt(u);a=!1,i=aQt,l=new iQt}else l=e?[]:c;e:for(;++n<s;){var d=t[n],f=e?e(d):d;if(d=r||d!==0?d:0,a&&f===f){for(var h=l.length;h--;)if(l[h]===f)continue e;e&&l.push(f),c.push(d)}else i(l,f,r)||(l!==c&&l.push(f),c.push(d))}return c}o(dQt,"baseUniq");RDe.exports=dQt});var PDe=m((XDr,QDe)=>{var fQt=H1(),hQt=c1(),pQt=DDe(),AQt=l9(),mQt=hQt(function(t){return pQt(fQt(t,1,AQt,!0))});QDe.exports=mQt});var ODe=m((ZDr,kDe)=>{function gQt(t,e){return function(r){return t(e(r))}}o(gQt,"overArg");kDe.exports=gQt});var FDe=m((tQr,LDe)=>{var yQt=ODe(),EQt=yQt(Object.getPrototypeOf,Object);LDe.exports=EQt});var qDe=m((rQr,UDe)=>{var CQt=oS(),bQt=FDe(),wQt=gE(),IQt="[object Object]",SQt=Function.prototype,BQt=Object.prototype,MDe=SQt.toString,xQt=BQt.hasOwnProperty,vQt=MDe.call(Object);function NQt(t){if(!wQt(t)||CQt(t)!=IQt)return!1;var e=bQt(t);if(e===null)return!0;var r=xQt.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&MDe.call(r)==vQt}o(NQt,"isPlainObject");UDe.exports=NQt});var GDe=m(z1=>{"use strict";Object.defineProperty(z1,"__esModule",{value:!0});z1.assertValidPattern=void 0;var _Qt=1024*64,TQt=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>_Qt)throw new TypeError("pattern is too long")},"assertValidPattern");z1.assertValidPattern=TQt});var VDe=m($1=>{"use strict";Object.defineProperty($1,"__esModule",{value:!0});$1.parseClass=void 0;var RQt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},RS=o(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),DQt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),HDe=o(t=>t.join(""),"rangesToString"),QQt=o((t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,a=!1,c=!1,l=!1,u=!1,d=r,f="";e:for(;s<t.length;){let A=t.charAt(s);if((A==="!"||A==="^")&&s===r+1){u=!0,s++;continue}if(A==="]"&&a&&!l){d=s+1;break}if(a=!0,A==="\\"&&!l){l=!0,s++;continue}if(A==="["&&!l){for(let[E,[y,C,w]]of Object.entries(RQt))if(t.startsWith(E,s)){if(f)return["$.",!1,t.length-r,!0];s+=E.length,w?i.push(y):n.push(y),c=c||C;continue e}}if(l=!1,f){A>f?n.push(RS(f)+"-"+RS(A)):A===f&&n.push(RS(A)),f="",s++;continue}if(t.startsWith("-]",s+1)){n.push(RS(A+"-")),s+=2;continue}if(t.startsWith("-",s+1)){f=A,s+=2;continue}n.push(RS(A)),s++}if(d<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,t.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!u){let A=n[0].length===2?n[0].slice(-1):n[0];return[DQt(A),!1,d-r,!1]}let h="["+(u?"^":"")+HDe(n)+"]",p="["+(u?"":"^")+HDe(i)+"]";return[n.length&&i.length?"("+h+"|"+p+")":n.length?h:p,c,d-r,!0]},"parseClass");$1.parseClass=QQt});var W1=m(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0});j1.unescape=void 0;var PQt=o((t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),"unescape");j1.unescape=PQt});var p9=m(X1=>{"use strict";var qs;Object.defineProperty(X1,"__esModule",{value:!0});X1.AST=void 0;var kQt=VDe(),J1=W1(),OQt=new Set(["!","?","+","*","@"]),f9=o(t=>OQt.has(t),"isExtglobType"),zDe=o(t=>f9(t.type),"isExtglobAST"),LQt=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),FQt=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),MQt=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),$De=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),UQt="(?!(?:^|/)\\.\\.?(?:$|/))",Y1="(?!\\.)",qQt=new Set(["[","."]),GQt=new Set(["..","."]),HQt=new Set("().*{}+?[]^$\\!"),VQt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),h9="[^/]",jDe=h9+"*?",WDe=h9+"+?",K1=class{static{o(this,"AST")}type;#e;#r;#n=!1;#t=[];#i;#s;#l;#a=!1;#c;#o;#f=!1;constructor(e,r,n={}){this.type=e,e&&(this.#r=!0),this.#i=r,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#l=this.#e===this?[]:this.#e.#l,e==="!"&&!this.#e.#a&&this.#l.push(this),this.#s=this.#i?this.#i.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#o=this.#t.map(e=>String(e)).join("")}#C(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let r=e,n=r.#i;for(;n;){for(let i=r.#s+1;!n.type&&i<n.#t.length;i++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#t[i])}r=n,n=r.#i}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof qs&&r.#i===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#s===0)return!0;let e=this.#i;for(let r=0;r<this.#s;r++){let n=e.#t[r];if(!(n instanceof qs&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type==="!")return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#t.length:0;return this.#s===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new qs(this.type,e);for(let n of this.#t)r.copyIn(n);return r}static#p(e,r,n,i,s){let a=i.maxExtglobRecursion??2,c=!1,l=!1,u=-1,d=!1;if(r.type===null){let A=n,E="";for(;A<e.length;){let y=e.charAt(A++);if(c||y==="\\"){c=!c,E+=y;continue}if(l){A===u+1?(y==="^"||y==="!")&&(d=!0):y==="]"&&!(A===u+2&&d)&&(l=!1),E+=y;continue}else if(y==="["){l=!0,u=A,d=!1,E+=y;continue}if(!i.noext&&f9(y)&&e.charAt(A)==="("&&s<=a){r.push(E),E="";let w=new qs(y,r);A=qs.#p(e,w,A,i,s+1),r.push(w);continue}E+=y}return r.push(E),A}let f=n+1,h=new qs(null,r),p=[],g="";for(;f<e.length;){let A=e.charAt(f++);if(c||A==="\\"){c=!c,g+=A;continue}if(l){f===u+1?(A==="^"||A==="!")&&(d=!0):A==="]"&&!(f===u+2&&d)&&(l=!1),g+=A;continue}else if(A==="["){l=!0,u=f,d=!1,g+=A;continue}if(f9(A)&&e.charAt(f)==="("&&(s<=a||r&&r.#h(A))){let y=r&&r.#h(A)?0:1;h.push(g),g="";let C=new qs(A,h);h.push(C),f=qs.#p(e,C,f,i,s+y);continue}if(A==="|"){h.push(g),g="",p.push(h),h=new qs(null,r);continue}if(A===")")return g===""&&r.#t.length===0&&(r.#f=!0),h.push(g),g="",r.push(...p,h),f;g+=A}return r.type=null,r.#r=void 0,r.#t=[e.substring(n-1)],f}#m(e){return this.#g(e,FQt)}#g(e,r=LQt){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let n=e.#t[0];return!n||typeof n!="object"||n.type===null?!1:this.#h(n.type,r)}#h(e,r=MQt){return!!r.get(this.type)?.includes(e)}#I(e,r){let n=e.#t[0],i=new qs(null,n,this.options);i.#t.push(""),n.push(i),this.#y(e,r)}#y(e,r){let n=e.#t[0];this.#t.splice(r,1,...n.#t);for(let i of n.#t)typeof i=="object"&&(i.#i=this);this.#o=void 0}#b(e){return!!$De.get(this.type)?.has(e)}#E(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#b(r.type)}#B(e){let r=$De.get(this.type),n=e.#t[0],i=r?.get(n.type);if(!i)return!1;this.#t=n.#t;for(let s of this.#t)typeof s=="object"&&(s.#i=this);this.type=i,this.#o=void 0,this.#f=!1}#d(){if(zDe(this)){let e=0,r=!1;do{r=!0;for(let n=0;n<this.#t.length;n++){let i=this.#t[n];typeof i=="object"&&(i.#d(),this.#g(i)?(r=!1,this.#y(i,n)):this.#m(i)?(r=!1,this.#I(i,n)):this.#E(i)&&(r=!1,this.#B(i)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#d();this.#o=void 0}static fromGlob(e,r={}){let n=new qs(null,void 0,r);return qs.#p(e,n,0,r,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#r||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let c=(this.#c.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:e})}get options(){return this.#c}toRegExpSource(e){let r=e??!!this.#c.dot;if(this.#e===this&&(this.#d(),this.#C()),!zDe(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(p=>{let[g,A,E,y]=typeof p=="string"?qs.#S(p,this.#r,l):p.toRegExpSource(e);return this.#r=this.#r||E,this.#n=this.#n||y,g}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&GQt.has(this.#t[0]))){let g=qQt,A=r&&g.has(u.charAt(0))||u.startsWith("\\.")&&g.has(u.charAt(2))||u.startsWith("\\.\\.")&&g.has(u.charAt(4)),E=!r&&!e&&g.has(u.charAt(0));d=A?UQt:E?Y1:""}let f="";return this.isEnd()&&this.#e.#a&&this.#i?.type==="!"&&(f="(?:$|\\/)"),[d+u+f,(0,J1.unescape)(u),this.#r=!!this.#r,this.#n]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#w(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,J1.unescape)(this.toString()),!1,!1]}let a=!n||e||r||!Y1?"":this.#w(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let c="";if(this.type==="!"&&this.#f)c=(this.isStart()&&!r?Y1:"")+WDe;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?Y1:"")+jDe+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=i+s+l}return[c,(0,J1.unescape)(s),this.#r=!!this.#r,this.#n]}#w(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,a]=r.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(e,r,n=!1){let i=!1,s="",a=!1,c=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(i){i=!1,s+=(HQt.has(u)?"\\":"")+u,c=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":i=!0;continue}if(u==="["){let[d,f,h,p]=(0,kQt.parseClass)(e,l);if(h){s+=d,a=a||f,l+=h-1,r=r||p,c=!1;continue}}if(u==="*"){if(c)continue;c=!0,s+=n&&/^[*]+$/.test(e)?WDe:jDe,r=!0;continue}else c=!1;if(u==="?"){s+=h9,r=!0;continue}s+=VQt(u)}return[s,(0,J1.unescape)(e),!!r,a]}};X1.AST=K1;qs=K1});var A9=m(Z1=>{"use strict";Object.defineProperty(Z1,"__esModule",{value:!0});Z1.escape=void 0;var zQt=o((t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");Z1.escape=zQt});var jf=m(pe=>{"use strict";var $Qt=pe&&pe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pe,"__esModule",{value:!0});pe.unescape=pe.escape=pe.AST=pe.Minimatch=pe.match=pe.makeRe=pe.braceExpand=pe.defaults=pe.filter=pe.GLOBSTAR=pe.sep=pe.minimatch=void 0;var jQt=$Qt(tW()),eP=GDe(),KDe=p9(),WQt=A9(),JQt=W1(),YQt=o((t,e,r={})=>((0,eP.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new IA(e,r).match(t)),"minimatch");pe.minimatch=YQt;var KQt=/^\*+([^+@!?\*\[\(]*)$/,XQt=o(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),ZQt=o(t=>e=>e.endsWith(t),"starDotExtTestDot"),e1t=o(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),t1t=o(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),r1t=/^\*+\.\*+$/,n1t=o(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),i1t=o(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),s1t=/^\.\*+$/,o1t=o(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),a1t=/^\*+$/,c1t=o(t=>t.length!==0&&!t.startsWith("."),"starTest"),l1t=o(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),u1t=/^\?+([^+@!?\*\[\(]*)?$/,d1t=o(([t,e=""])=>{let r=XDe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),f1t=o(([t,e=""])=>{let r=ZDe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),h1t=o(([t,e=""])=>{let r=ZDe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),p1t=o(([t,e=""])=>{let r=XDe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),XDe=o(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),ZDe=o(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),eQe=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",JDe={win32:{sep:"\\"},posix:{sep:"/"}};pe.sep=eQe==="win32"?JDe.win32.sep:JDe.posix.sep;pe.minimatch.sep=pe.sep;pe.GLOBSTAR=Symbol("globstar **");pe.minimatch.GLOBSTAR=pe.GLOBSTAR;var A1t="[^/]",m1t=A1t+"*?",g1t="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",y1t="(?:(?!(?:\\/|^)\\.).)*?",E1t=o((t,e={})=>r=>(0,pe.minimatch)(r,t,e),"filter");pe.filter=E1t;pe.minimatch.filter=pe.filter;var Sa=o((t,e={})=>Object.assign({},t,e),"ext"),C1t=o(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return pe.minimatch;let e=pe.minimatch;return Object.assign(o((n,i,s={})=>e(n,i,Sa(t,s)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s={}){super(i,Sa(t,s))}static defaults(i){return e.defaults(Sa(t,i)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(i,s,a={}){super(i,s,Sa(t,a))}static fromGlob(i,s={}){return e.AST.fromGlob(i,Sa(t,s))}},unescape:o((n,i={})=>e.unescape(n,Sa(t,i)),"unescape"),escape:o((n,i={})=>e.escape(n,Sa(t,i)),"escape"),filter:o((n,i={})=>e.filter(n,Sa(t,i)),"filter"),defaults:o(n=>e.defaults(Sa(t,n)),"defaults"),makeRe:o((n,i={})=>e.makeRe(n,Sa(t,i)),"makeRe"),braceExpand:o((n,i={})=>e.braceExpand(n,Sa(t,i)),"braceExpand"),match:o((n,i,s={})=>e.match(n,i,Sa(t,s)),"match"),sep:e.sep,GLOBSTAR:pe.GLOBSTAR})},"defaults");pe.defaults=C1t;pe.minimatch.defaults=pe.defaults;var b1t=o((t,e={})=>((0,eP.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,jQt.default)(t)),"braceExpand");pe.braceExpand=b1t;pe.minimatch.braceExpand=pe.braceExpand;var w1t=o((t,e={})=>new IA(t,e).makeRe(),"makeRe");pe.makeRe=w1t;pe.minimatch.makeRe=pe.makeRe;var I1t=o((t,e,r={})=>{let n=new IA(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t},"match");pe.match=I1t;pe.minimatch.match=pe.match;var YDe=/[?*]|[+@!]\(.*?\)|\[|\]/,S1t=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),IA=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,eP.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||eQe,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!YDe.test(s[2]))&&!YDe.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(d=>this.parse(d))];if(u)return[s[0],...s.slice(1).map(d=>this.parse(d))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let a=this.set[s];a[0]===""&&a[1]===""&&this.globParts[s][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n=0;n<e.length;n++)for(let i=0;i<e[n].length;i++)e[n][i]==="**"&&(e[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let i=e[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,e.splice(n-1,2),n-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let n of e){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let a=i;for(;n[a+1]==="**";)a++;a>i&&n.splice(i+1,a-i);let c=n[i+1],l=n[i+2],u=n[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let d=n.slice(0);d[i]="**",e.push(d),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let c=n[a];a===1&&c===""&&n[0]===""||(c==="."||c==="")&&(r=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let a=n[s-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;let l=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...l),n.length===0&&n.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let n=r+1;n<e.length;n++){let i=this.partsMatch(e[r],e[n],!this.preserveMultipleSlashes);if(i){e[r]=[],e[n]=i;break}}return e.filter(r=>r.length)}partsMatch(e,r,n=!1){let i=0,s=0,a=[],c="";for(;i<e.length&&s<r.length;)if(e[i]===r[s])a.push(c==="b"?r[s]:e[i]),i++,s++;else if(n&&e[i]==="**"&&r[s]===e[i+1])a.push(e[i]),i++;else if(n&&r[s]==="**"&&e[i]===r[s+1])a.push(r[s]),s++;else if(e[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",a.push(e[i]),i++,s++}else if(r[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(c==="a")return!1;c="b",a.push(r[s]),i++,s++}else return!1;return e.length===r.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,n=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=e.slice(n)),this.negate=r}matchOne(e,r,n=!1){let i=0,s=0;if(this.isWindows){let c=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!c&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),d=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),f=l?3:c?0:void 0,h=d?3:u?0:void 0;if(typeof f=="number"&&typeof h=="number"){let[p,g]=[e[f],r[h]];p.toLowerCase()===g.toLowerCase()&&(r[h]=p,s=h,i=f)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(pe.GLOBSTAR)?this.#e(e,r,n,i,s):this.#n(e,r,n,i,s)}#e(e,r,n,i,s){let a=r.indexOf(pe.GLOBSTAR,s),c=r.lastIndexOf(pe.GLOBSTAR),[l,u,d]=n?[r.slice(s,a),r.slice(a+1),[]]:[r.slice(s,a),r.slice(a+1,c),r.slice(c+1)];if(l.length){let C=e.slice(i,i+l.length);if(!this.#n(C,l,n,0,0))return!1;i+=l.length}let f=0;if(d.length){if(d.length+i>e.length)return!1;let C=e.length-d.length;if(this.#n(e,d,n,C,0))f=d.length;else{if(e[e.length-1]!==""||i+d.length===e.length||(C--,!this.#n(e,d,n,C,0)))return!1;f=d.length+1}}if(!u.length){let C=!!f;for(let w=i;w<e.length-f;w++){let B=String(e[w]);if(C=!0,B==="."||B===".."||!this.options.dot&&B.startsWith("."))return!1}return n||C}let h=[[[],0]],p=h[0],g=0,A=[0];for(let C of u)C===pe.GLOBSTAR?(A.push(g),p=[[],0],h.push(p)):(p[0].push(C),g++);let E=h.length-1,y=e.length-f;for(let C of h)C[1]=y-(A[E--]+C[0].length);return!!this.#r(e,h,i,0,n,0,!!f)}#r(e,r,n,i,s,a,c){let l=r[i];if(!l){for(let f=n;f<e.length;f++){c=!0;let h=e[f];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return c}let[u,d]=l;for(;n<=d;){if(this.#n(e.slice(0,n+u.length),u,s,n,0)&&a<this.maxGlobstarRecursion){let p=this.#r(e,r,n+u.length,i+1,s,a+1,c);if(p!==!1)return p}let h=e[n];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;n++}return s||null}#n(e,r,n,i,s){let a,c,l,u;for(a=i,c=s,u=e.length,l=r.length;a<u&&c<l;a++,c++){this.debug("matchOne loop");let d=r[c],f=e[a];if(this.debug(r,d,f),d===!1||d===pe.GLOBSTAR)return!1;let h;if(typeof d=="string"?(h=f===d,this.debug("string match",d,f,h)):(h=d.test(f),this.debug("pattern match",d,f,h)),!h)return!1}if(a===u&&c===l)return!0;if(a===u)return n;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,pe.braceExpand)(this.pattern,this.options)}parse(e){(0,eP.assertValidPattern)(e);let r=this.options;if(e==="**")return pe.GLOBSTAR;if(e==="")return"";let n,i=null;(n=e.match(a1t))?i=r.dot?l1t:c1t:(n=e.match(KQt))?i=(r.nocase?r.dot?t1t:e1t:r.dot?ZQt:XQt)(n[1]):(n=e.match(u1t))?i=(r.nocase?r.dot?f1t:d1t:r.dot?h1t:p1t)(n):(n=e.match(r1t))?i=r.dot?i1t:n1t:(n=e.match(s1t))&&(i=o1t);let s=KDe.AST.fromGlob(e,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?m1t:r.dot?g1t:y1t,i=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(d=>{if(d instanceof RegExp)for(let f of d.flags.split(""))i.add(f);return typeof d=="string"?S1t(d):d===pe.GLOBSTAR?pe.GLOBSTAR:d._src});return u.forEach((d,f)=>{let h=u[f+1],p=u[f-1];d!==pe.GLOBSTAR||p===pe.GLOBSTAR||(p===void 0?h!==void 0&&h!==pe.GLOBSTAR?u[f+1]="(?:\\/|"+n+"\\/)?"+h:u[f]=n:h===void 0?u[f-1]=p+"(?:\\/|"+n+")?":h!==pe.GLOBSTAR&&(u[f-1]=p+"(?:\\/|\\/"+n+"\\/)"+h,u[f+1]=pe.GLOBSTAR))}),u.filter(d=>d!==pe.GLOBSTAR).join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c=0;c<s.length;c++){let l=s[c],u=i;if(n.matchBase&&l.length===1&&(u=[a]),this.matchOne(u,l,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return pe.minimatch.defaults(e).Minimatch}};pe.Minimatch=IA;var B1t=p9();Object.defineProperty(pe,"AST",{enumerable:!0,get:o(function(){return B1t.AST},"get")});var x1t=A9();Object.defineProperty(pe,"escape",{enumerable:!0,get:o(function(){return x1t.escape},"get")});var v1t=W1();Object.defineProperty(pe,"unescape",{enumerable:!0,get:o(function(){return v1t.unescape},"get")});pe.minimatch.AST=KDe.AST;pe.minimatch.Minimatch=IA;pe.minimatch.escape=WQt.escape;pe.minimatch.unescape=JQt.unescape});var sQe=m(rP=>{"use strict";Object.defineProperty(rP,"__esModule",{value:!0});rP.LRUCache=void 0;var LE=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,rQe=new Set,m9=typeof process=="object"&&process?process:{},nQe=o((t,e,r,n)=>{typeof m9.emitWarning=="function"?m9.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},"emitWarning"),tP=globalThis.AbortController,tQe=globalThis.AbortSignal;if(typeof tP>"u"){tQe=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},tP=class{static{o(this,"AbortController")}constructor(){e()}signal=new tQe;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let t=m9.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,nQe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var N1t=o(t=>!rQe.has(t),"shouldWarn"),Wf=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),iQe=o(t=>Wf(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?FE:null:null,"getUintArray"),FE=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},g9=class t{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let r=iQe(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},y9=class t{static{o(this,"LRUCache")}#e;#r;#n;#t;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#s;#l;#a;#c;#o;#f;#C;#p;#m;#g;#h;#I;#y;#b;#E;#B;#d;static unsafeExposeInternals(e){return{starts:e.#y,ttls:e.#b,sizes:e.#I,keyMap:e.#a,keyList:e.#c,valList:e.#o,next:e.#f,prev:e.#C,get head(){return e.#p},get tail(){return e.#m},free:e.#g,isBackgroundFetch:o(r=>e.#A(r),"isBackgroundFetch"),backgroundFetch:o((r,n,i,s)=>e.#P(r,n,i,s),"backgroundFetch"),moveToTail:o(r=>e.#Q(r),"moveToTail"),indexes:o(r=>e.#_(r),"indexes"),rindexes:o(r=>e.#T(r),"rindexes"),isStale:o(r=>e.#x(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#l}get size(){return this.#s}get fetchMethod(){return this.#i}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:c,allowStale:l,dispose:u,disposeAfter:d,noDisposeOnSet:f,noUpdateTTL:h,maxSize:p=0,maxEntrySize:g=0,sizeCalculation:A,fetchMethod:E,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:C,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:B,ignoreFetchAbort:Q}=e;if(r!==0&&!Wf(r))throw new TypeError("max option must be a nonnegative integer");let U=r?iQe(r):Array;if(!U)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=p,this.maxEntrySize=g||this.#r,this.sizeCalculation=A,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#i=E,this.#B=!!E,this.#a=new Map,this.#c=new Array(r).fill(void 0),this.#o=new Array(r).fill(void 0),this.#f=new U(r),this.#C=new U(r),this.#p=0,this.#m=0,this.#g=g9.create(r),this.#s=0,this.#l=0,typeof u=="function"&&(this.#n=u),typeof d=="function"?(this.#t=d,this.#h=[]):(this.#t=void 0,this.#h=void 0),this.#E=!!this.#n,this.#d=!!this.#t,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!B,this.ignoreFetchAbort=!!Q,this.maxEntrySize!==0){if(this.#r!==0&&!Wf(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Wf(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#R()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!C,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!c,this.ttlResolution=Wf(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!Wf(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#w()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let v="LRU_CACHE_UNBOUNDED";N1t(v)&&(rQe.add(v),nQe("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",v,t))}}getRemainingTTL(e){return this.#a.has(e)?1/0:0}#w(){let e=new FE(this.#e),r=new FE(this.#e);this.#b=e,this.#y=r,this.#u=(s,a,c=LE.now())=>{if(r[s]=a!==0?c:0,e[s]=a,a!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#x(s)&&this.delete(this.#c[s])},a+1);l.unref&&l.unref()}},this.#S=s=>{r[s]=e[s]!==0?LE.now():0},this.#v=(s,a)=>{if(e[a]){let c=e[a],l=r[a];if(!c||!l)return;s.ttl=c,s.start=l,s.now=n||i();let u=s.now-l;s.remainingTTL=c-u}};let n=0,i=o(()=>{let s=LE.now();if(this.ttlResolution>0){n=s;let a=setTimeout(()=>n=0,this.ttlResolution);a.unref&&a.unref()}return s},"getNow");this.getRemainingTTL=s=>{let a=this.#a.get(s);if(a===void 0)return 0;let c=e[a],l=r[a];if(!c||!l)return 1/0;let u=(n||i())-l;return c-u},this.#x=s=>{let a=r[s],c=e[s];return!!c&&!!a&&(n||i())-a>c}}#S=o(()=>{},"#updateItemAge");#v=o(()=>{},"#statusTTL");#u=o(()=>{},"#setItemTTL");#x=o(()=>!1,"#isStale");#R(){let e=new FE(this.#e);this.#l=0,this.#I=e,this.#N=r=>{this.#l-=e[r],e[r]=0},this.#O=(r,n,i,s)=>{if(this.#A(n))return 0;if(!Wf(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!Wf(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#k=(r,n,i)=>{if(e[r]=n,this.#r){let s=this.#r-e[r];for(;this.#l>s;)this.#D(!0)}this.#l+=e[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#l)}}#N=o(e=>{},"#removeItemSize");#k=o((e,r,n)=>{},"#addItemSize");#O=o((e,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#_({allowStale:e=this.allowStale}={}){if(this.#s)for(let r=this.#m;!(!this.#L(r)||((e||!this.#x(r))&&(yield r),r===this.#p));)r=this.#C[r]}*#T({allowStale:e=this.allowStale}={}){if(this.#s)for(let r=this.#p;!(!this.#L(r)||((e||!this.#x(r))&&(yield r),r===this.#m));)r=this.#f[r]}#L(e){return e!==void 0&&this.#a.get(this.#c[e])===e}*entries(){for(let e of this.#_())this.#o[e]!==void 0&&this.#c[e]!==void 0&&!this.#A(this.#o[e])&&(yield[this.#c[e],this.#o[e]])}*rentries(){for(let e of this.#T())this.#o[e]!==void 0&&this.#c[e]!==void 0&&!this.#A(this.#o[e])&&(yield[this.#c[e],this.#o[e]])}*keys(){for(let e of this.#_()){let r=this.#c[e];r!==void 0&&!this.#A(this.#o[e])&&(yield r)}}*rkeys(){for(let e of this.#T()){let r=this.#c[e];r!==void 0&&!this.#A(this.#o[e])&&(yield r)}}*values(){for(let e of this.#_())this.#o[e]!==void 0&&!this.#A(this.#o[e])&&(yield this.#o[e])}*rvalues(){for(let e of this.#T())this.#o[e]!==void 0&&!this.#A(this.#o[e])&&(yield this.#o[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let n of this.#_()){let i=this.#o[n],s=this.#A(i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,this.#c[n],this))return this.get(this.#c[n],r)}}forEach(e,r=this){for(let n of this.#_()){let i=this.#o[n],s=this.#A(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.#c[n],this)}}rforEach(e,r=this){for(let n of this.#T()){let i=this.#o[n],s=this.#A(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.#c[n],this)}}purgeStale(){let e=!1;for(let r of this.#T({allowStale:!0}))this.#x(r)&&(this.delete(this.#c[r]),e=!0);return e}info(e){let r=this.#a.get(e);if(r===void 0)return;let n=this.#o[r],i=this.#A(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#b&&this.#y){let a=this.#b[r],c=this.#y[r];if(a&&c){let l=a-(LE.now()-c);s.ttl=l,s.start=Date.now()}}return this.#I&&(s.size=this.#I[r]),s}dump(){let e=[];for(let r of this.#_({allowStale:!0})){let n=this.#c[r],i=this.#o[r],s=this.#A(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let a={value:s};if(this.#b&&this.#y){a.ttl=this.#b[r];let c=LE.now()-this.#y[r];a.start=Math.floor(Date.now()-c)}this.#I&&(a.size=this.#I[r]),e.unshift([n,a])}return e}load(e){this.clear();for(let[r,n]of e){if(n.start){let i=Date.now()-n.start;n.start=LE.now()-i}this.set(r,n.value,n)}}set(e,r,n={}){if(r===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:c=this.sizeCalculation,status:l}=n,{noUpdateTTL:u=this.noUpdateTTL}=n,d=this.#O(e,r,n.size||0,c);if(this.maxEntrySize&&d>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let f=this.#s===0?void 0:this.#a.get(e);if(f===void 0)f=this.#s===0?this.#m:this.#g.length!==0?this.#g.pop():this.#s===this.#e?this.#D(!1):this.#s,this.#c[f]=e,this.#o[f]=r,this.#a.set(e,f),this.#f[this.#m]=f,this.#C[f]=this.#m,this.#m=f,this.#s++,this.#k(f,d,l),l&&(l.set="add"),u=!1;else{this.#Q(f);let h=this.#o[f];if(r!==h){if(this.#B&&this.#A(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!a&&(this.#E&&this.#n?.(p,e,"set"),this.#d&&this.#h?.push([p,e,"set"]))}else a||(this.#E&&this.#n?.(h,e,"set"),this.#d&&this.#h?.push([h,e,"set"]));if(this.#N(f),this.#k(f,d,l),this.#o[f]=r,l){l.set="replace";let p=h&&this.#A(h)?h.__staleWhileFetching:h;p!==void 0&&(l.oldValue=p)}}else l&&(l.set="update")}if(i!==0&&!this.#b&&this.#w(),this.#b&&(u||this.#u(f,i,s),l&&this.#v(l,f)),!a&&this.#d&&this.#h){let h=this.#h,p;for(;p=h?.shift();)this.#t?.(...p)}return this}pop(){try{for(;this.#s;){let e=this.#o[this.#p];if(this.#D(!0),this.#A(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#d&&this.#h){let e=this.#h,r;for(;r=e?.shift();)this.#t?.(...r)}}}#D(e){let r=this.#p,n=this.#c[r],i=this.#o[r];return this.#B&&this.#A(i)?i.__abortController.abort(new Error("evicted")):(this.#E||this.#d)&&(this.#E&&this.#n?.(i,n,"evict"),this.#d&&this.#h?.push([i,n,"evict"])),this.#N(r),e&&(this.#c[r]=void 0,this.#o[r]=void 0,this.#g.push(r)),this.#s===1?(this.#p=this.#m=0,this.#g.length=0):this.#p=this.#f[r],this.#a.delete(n),this.#s--,r}has(e,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#a.get(e);if(s!==void 0){let a=this.#o[s];if(this.#A(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#x(s))i&&(i.has="stale",this.#v(i,s));else return n&&this.#S(s),i&&(i.has="hit",this.#v(i,s)),!0}else i&&(i.has="miss");return!1}peek(e,r={}){let{allowStale:n=this.allowStale}=r,i=this.#a.get(e);if(i===void 0||!n&&this.#x(i))return;let s=this.#o[i];return this.#A(s)?s.__staleWhileFetching:s}#P(e,r,n,i){let s=r===void 0?void 0:this.#o[r];if(this.#A(s))return s;let a=new tP,{signal:c}=n;c?.addEventListener("abort",()=>a.abort(c.reason),{signal:a.signal});let l={signal:a.signal,options:n,context:i},u=o((A,E=!1)=>{let{aborted:y}=a.signal,C=n.ignoreFetchAbort&&A!==void 0;if(n.status&&(y&&!E?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,C&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),y&&!C&&!E)return f(a.signal.reason);let w=p;return this.#o[r]===p&&(A===void 0?w.__staleWhileFetching?this.#o[r]=w.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,A,l.options))),A},"cb"),d=o(A=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=A),f(A)),"eb"),f=o(A=>{let{aborted:E}=a.signal,y=E&&n.allowStaleOnFetchAbort,C=y||n.allowStaleOnFetchRejection,w=C||n.noDeleteOnFetchRejection,B=p;if(this.#o[r]===p&&(!w||B.__staleWhileFetching===void 0?this.delete(e):y||(this.#o[r]=B.__staleWhileFetching)),C)return n.status&&B.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw A},"fetchFail"),h=o((A,E)=>{let y=this.#i?.(e,s,l);y&&y instanceof Promise&&y.then(C=>A(C===void 0?void 0:C),E),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(A(void 0),n.allowStaleOnFetchAbort&&(A=o(C=>u(C,!0),"res")))})},"pcall");n.status&&(n.status.fetchDispatched=!0);let p=new Promise(h).then(u,d),g=Object.assign(p,{__abortController:a,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,g,{...l.options,status:void 0}),r=this.#a.get(e)):this.#o[r]=g,g}#A(e){if(!this.#B)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof tP}async fetch(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:c=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:g=this.allowStaleOnFetchAbort,context:A,forceRefresh:E=!1,status:y,signal:C}=r;if(!this.#B)return y&&(y.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:y});let w={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:a,noDisposeOnSet:c,size:l,sizeCalculation:u,noUpdateTTL:d,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:g,ignoreFetchAbort:p,status:y,signal:C},B=this.#a.get(e);if(B===void 0){y&&(y.fetch="miss");let Q=this.#P(e,B,w,A);return Q.__returned=Q}else{let Q=this.#o[B];if(this.#A(Q)){let H=n&&Q.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",H&&(y.returnedStale=!0)),H?Q.__staleWhileFetching:Q.__returned=Q}let U=this.#x(B);if(!E&&!U)return y&&(y.fetch="hit"),this.#Q(B),i&&this.#S(B),y&&this.#v(y,B),Q;let v=this.#P(e,B,w,A),D=v.__staleWhileFetching!==void 0&&n;return y&&(y.fetch=U?"stale":"refresh",D&&U&&(y.returnedStale=!0)),D?v.__staleWhileFetching:v.__returned=v}}get(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:a}=r,c=this.#a.get(e);if(c!==void 0){let l=this.#o[c],u=this.#A(l);return a&&this.#v(a,c),this.#x(c)?(a&&(a.get="stale"),u?(a&&n&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?l.__staleWhileFetching:void 0):(s||this.delete(e),a&&n&&(a.returnedStale=!0),n?l:void 0)):(a&&(a.get="hit"),u?l.__staleWhileFetching:(this.#Q(c),i&&this.#S(c),l))}else a&&(a.get="miss")}#F(e,r){this.#C[r]=e,this.#f[e]=r}#Q(e){e!==this.#m&&(e===this.#p?this.#p=this.#f[e]:this.#F(this.#C[e],this.#f[e]),this.#F(this.#m,e),this.#m=e)}delete(e){let r=!1;if(this.#s!==0){let n=this.#a.get(e);if(n!==void 0)if(r=!0,this.#s===1)this.clear();else{this.#N(n);let i=this.#o[n];if(this.#A(i)?i.__abortController.abort(new Error("deleted")):(this.#E||this.#d)&&(this.#E&&this.#n?.(i,e,"delete"),this.#d&&this.#h?.push([i,e,"delete"])),this.#a.delete(e),this.#c[n]=void 0,this.#o[n]=void 0,n===this.#m)this.#m=this.#C[n];else if(n===this.#p)this.#p=this.#f[n];else{let s=this.#C[n];this.#f[s]=this.#f[n];let a=this.#f[n];this.#C[a]=this.#C[n]}this.#s--,this.#g.push(n)}}if(this.#d&&this.#h?.length){let n=this.#h,i;for(;i=n?.shift();)this.#t?.(...i)}return r}clear(){for(let e of this.#T({allowStale:!0})){let r=this.#o[e];if(this.#A(r))r.__abortController.abort(new Error("deleted"));else{let n=this.#c[e];this.#E&&this.#n?.(r,n,"delete"),this.#d&&this.#h?.push([r,n,"delete"])}}if(this.#a.clear(),this.#o.fill(void 0),this.#c.fill(void 0),this.#b&&this.#y&&(this.#b.fill(0),this.#y.fill(0)),this.#I&&this.#I.fill(0),this.#p=0,this.#m=0,this.#g.length=0,this.#l=0,this.#s=0,this.#d&&this.#h){let e=this.#h,r;for(;r=e?.shift();)this.#t?.(...r)}}};rP.LRUCache=y9});var dQe=m(ls=>{"use strict";var _1t=ls&&ls.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ls,"__esModule",{value:!0});ls.Minipass=ls.isWritable=ls.isReadable=ls.isStream=void 0;var oQe=typeof process=="object"&&process?process:{stdout:null,stderr:null},B9=require("events"),uQe=_1t(require("stream")),T1t=require("string_decoder"),R1t=o(t=>!!t&&typeof t=="object"&&(t instanceof lP||t instanceof uQe.default||(0,ls.isReadable)(t)||(0,ls.isWritable)(t)),"isStream");ls.isStream=R1t;var D1t=o(t=>!!t&&typeof t=="object"&&t instanceof B9.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==uQe.default.Writable.prototype.pipe,"isReadable");ls.isReadable=D1t;var Q1t=o(t=>!!t&&typeof t=="object"&&t instanceof B9.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");ls.isWritable=Q1t;var gd=Symbol("EOF"),yd=Symbol("maybeEmitEnd"),Jf=Symbol("emittedEnd"),nP=Symbol("emittingEnd"),DS=Symbol("emittedError"),iP=Symbol("closed"),aQe=Symbol("read"),sP=Symbol("flush"),cQe=Symbol("flushChunk"),Ec=Symbol("encoding"),ME=Symbol("decoder"),Xn=Symbol("flowing"),QS=Symbol("paused"),UE=Symbol("resume"),Zn=Symbol("buffer"),cs=Symbol("pipes"),ei=Symbol("bufferLength"),E9=Symbol("bufferPush"),oP=Symbol("bufferShift"),Pi=Symbol("objectMode"),ln=Symbol("destroyed"),C9=Symbol("error"),b9=Symbol("emitData"),lQe=Symbol("emitEnd"),w9=Symbol("emitEnd2"),Wl=Symbol("async"),I9=Symbol("abort"),aP=Symbol("aborted"),PS=Symbol("signal"),SA=Symbol("dataListeners"),vo=Symbol("discarded"),kS=o(t=>Promise.resolve().then(t),"defer"),P1t=o(t=>t(),"nodefer"),k1t=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),O1t=o(t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBufferLike"),L1t=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),cP=class{static{o(this,"Pipe")}src;dest;opts;ondrain;constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[UE](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},S9=class extends cP{static{o(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}},F1t=o(t=>!!t.objectMode,"isObjectModeOptions"),M1t=o(t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer","isEncodingOptions"),lP=class extends B9.EventEmitter{static{o(this,"Minipass")}[Xn]=!1;[QS]=!1;[cs]=[];[Zn]=[];[Pi];[Ec];[Wl];[ME];[gd]=!1;[Jf]=!1;[nP]=!1;[iP]=!1;[DS]=null;[ei]=0;[ln]=!1;[PS];[aP]=!1;[SA]=0;[vo]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");F1t(r)?(this[Pi]=!0,this[Ec]=null):M1t(r)?(this[Ec]=r.encoding,this[Pi]=!1):(this[Pi]=!1,this[Ec]=null),this[Wl]=!!r.async,this[ME]=this[Ec]?new T1t.StringDecoder(this[Ec]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:o(()=>this[Zn],"get")}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:o(()=>this[cs],"get")});let{signal:n}=r;n&&(this[PS]=n,n.aborted?this[I9]():n.addEventListener("abort",()=>this[I9]()))}get bufferLength(){return this[ei]}get encoding(){return this[Ec]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Pi]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Wl]}set async(e){this[Wl]=this[Wl]||!!e}[I9](){this[aP]=!0,this.emit("abort",this[PS]?.reason),this.destroy(this[PS]?.reason)}get aborted(){return this[aP]}set aborted(e){}write(e,r,n){if(this[aP])return!1;if(this[gd])throw new Error("write after end");if(this[ln])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Wl]?kS:P1t;if(!this[Pi]&&!Buffer.isBuffer(e)){if(L1t(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(O1t(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Pi]?(this[Xn]&&this[ei]!==0&&this[sP](!0),this[Xn]?this.emit("data",e):this[E9](e),this[ei]!==0&&this.emit("readable"),n&&i(n),this[Xn]):e.length?(typeof e=="string"&&!(r===this[Ec]&&!this[ME]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ec]&&(e=this[ME].write(e)),this[Xn]&&this[ei]!==0&&this[sP](!0),this[Xn]?this.emit("data",e):this[E9](e),this[ei]!==0&&this.emit("readable"),n&&i(n),this[Xn]):(this[ei]!==0&&this.emit("readable"),n&&i(n),this[Xn])}read(e){if(this[ln])return null;if(this[vo]=!1,this[ei]===0||e===0||e&&e>this[ei])return this[yd](),null;this[Pi]&&(e=null),this[Zn].length>1&&!this[Pi]&&(this[Zn]=[this[Ec]?this[Zn].join(""):Buffer.concat(this[Zn],this[ei])]);let r=this[aQe](e||null,this[Zn][0]);return this[yd](),r}[aQe](e,r){if(this[Pi])this[oP]();else{let n=r;e===n.length||e===null?this[oP]():typeof n=="string"?(this[Zn][0]=n.slice(e),r=n.slice(0,e),this[ei]-=e):(this[Zn][0]=n.subarray(e),r=n.subarray(0,e),this[ei]-=e)}return this.emit("data",r),!this[Zn].length&&!this[gd]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r="utf8"),e!==void 0&&this.write(e,r),n&&this.once("end",n),this[gd]=!0,this.writable=!1,(this[Xn]||!this[QS])&&this[yd](),this}[UE](){this[ln]||(!this[SA]&&!this[cs].length&&(this[vo]=!0),this[QS]=!1,this[Xn]=!0,this.emit("resume"),this[Zn].length?this[sP]():this[gd]?this[yd]():this.emit("drain"))}resume(){return this[UE]()}pause(){this[Xn]=!1,this[QS]=!0,this[vo]=!1}get destroyed(){return this[ln]}get flowing(){return this[Xn]}get paused(){return this[QS]}[E9](e){this[Pi]?this[ei]+=1:this[ei]+=e.length,this[Zn].push(e)}[oP](){return this[Pi]?this[ei]-=1:this[ei]-=this[Zn][0].length,this[Zn].shift()}[sP](e=!1){do;while(this[cQe](this[oP]())&&this[Zn].length);!e&&!this[Zn].length&&!this[gd]&&this.emit("drain")}[cQe](e){return this.emit("data",e),this[Xn]}pipe(e,r){if(this[ln])return e;this[vo]=!1;let n=this[Jf];return r=r||{},e===oQe.stdout||e===oQe.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[cs].push(r.proxyErrors?new S9(this,e,r):new cP(this,e,r)),this[Wl]?kS(()=>this[UE]()):this[UE]()),e}unpipe(e){let r=this[cs].find(n=>n.dest===e);r&&(this[cs].length===1?(this[Xn]&&this[SA]===0&&(this[Xn]=!1),this[cs]=[]):this[cs].splice(this[cs].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);if(e==="data")this[vo]=!1,this[SA]++,!this[cs].length&&!this[Xn]&&this[UE]();else if(e==="readable"&&this[ei]!==0)super.emit("readable");else if(k1t(e)&&this[Jf])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[DS]){let i=r;this[Wl]?kS(()=>i.call(this,this[DS])):i.call(this,this[DS])}return n}removeListener(e,r){return this.off(e,r)}off(e,r){let n=super.off(e,r);return e==="data"&&(this[SA]=this.listeners("data").length,this[SA]===0&&!this[vo]&&!this[cs].length&&(this[Xn]=!1)),n}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[SA]=0,!this[vo]&&!this[cs].length&&(this[Xn]=!1)),r}get emittedEnd(){return this[Jf]}[yd](){!this[nP]&&!this[Jf]&&!this[ln]&&this[Zn].length===0&&this[gd]&&(this[nP]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[iP]&&this.emit("close"),this[nP]=!1)}emit(e,...r){let n=r[0];if(e!=="error"&&e!=="close"&&e!==ln&&this[ln])return!1;if(e==="data")return!this[Pi]&&!n?!1:this[Wl]?(kS(()=>this[b9](n)),!0):this[b9](n);if(e==="end")return this[lQe]();if(e==="close"){if(this[iP]=!0,!this[Jf]&&!this[ln])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[DS]=n,super.emit(C9,n);let s=!this[PS]||this.listeners("error").length?super.emit("error",n):!1;return this[yd](),s}else if(e==="resume"){let s=super.emit("resume");return this[yd](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,...r);return this[yd](),i}[b9](e){for(let n of this[cs])n.dest.write(e)===!1&&this.pause();let r=this[vo]?!1:super.emit("data",e);return this[yd](),r}[lQe](){return this[Jf]?!1:(this[Jf]=!0,this.readable=!1,this[Wl]?(kS(()=>this[w9]()),!0):this[w9]())}[w9](){if(this[ME]){let r=this[ME].end();if(r){for(let n of this[cs])n.dest.write(r);this[vo]||super.emit("data",r)}}for(let r of this[cs])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Pi]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[Pi]||(e.dataLength+=n.length)}),await r,e}async concat(){if(this[Pi])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ec]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(ln,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[vo]=!1;let e=!1,r=o(async()=>(this.pause(),e=!0,{value:void 0,done:!0}),"stop");return{next:o(()=>{if(e)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[gd])return r();let s,a,c=o(f=>{this.off("data",l),this.off("end",u),this.off(ln,d),r(),a(f)},"onerr"),l=o(f=>{this.off("error",c),this.off("end",u),this.off(ln,d),this.pause(),s({value:f,done:!!this[gd]})},"ondata"),u=o(()=>{this.off("error",c),this.off("data",l),this.off(ln,d),r(),s({done:!0,value:void 0})},"onend"),d=o(()=>c(new Error("stream destroyed")),"ondestroy");return new Promise((f,h)=>{a=h,s=f,this.once(ln,d),this.once("error",c),this.once("end",u),this.once("data",l)})},"next"),throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[vo]=!1;let e=!1,r=o(()=>(this.pause(),this.off(C9,r),this.off(ln,r),this.off("end",r),e=!0,{done:!0,value:void 0}),"stop"),n=o(()=>{if(e)return r();let i=this.read();return i===null?r():{done:!1,value:i}},"next");return this.once("end",r),this.once(C9,r),this.once(ln,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(e){if(this[ln])return e?this.emit("error",e):this.emit(ln),this;this[ln]=!0,this[vo]=!0,this[Zn].length=0,this[ei]=0;let r=this;return typeof r.close=="function"&&!this[iP]&&r.close(),e?this.emit("error",e):this.emit(ln),this}static get isStream(){return ls.isStream}};ls.Minipass=lP});var xQe=m(qt=>{"use strict";var U1t=qt&&qt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),q1t=qt&&qt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),G1t=qt&&qt.__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)&&U1t(e,t,r);return q1t(e,t),e};Object.defineProperty(qt,"__esModule",{value:!0});qt.PathScurry=qt.Path=qt.PathScurryDarwin=qt.PathScurryPosix=qt.PathScurryWin32=qt.PathScurryBase=qt.PathPosix=qt.PathWin32=qt.PathBase=qt.ChildrenCache=qt.ResolveCache=void 0;var gQe=sQe(),pP=require("node:path"),H1t=require("node:url"),LS=require("fs"),V1t=G1t(require("node:fs")),z1t=LS.realpathSync.native,uP=require("node:fs/promises"),fQe=dQe(),FS={lstatSync:LS.lstatSync,readdir:LS.readdir,readdirSync:LS.readdirSync,readlinkSync:LS.readlinkSync,realpathSync:z1t,promises:{lstat:uP.lstat,readdir:uP.readdir,readlink:uP.readlink,realpath:uP.realpath}},yQe=o(t=>!t||t===FS||t===V1t?FS:{...FS,...t,promises:{...FS.promises,...t.promises||{}}},"fsFromOption"),EQe=/^\\\\\?\\([a-z]:)\\?$/i,$1t=o(t=>t.replace(/\//g,"\\").replace(EQe,"$1\\"),"uncToDrive"),j1t=/[\\\/]/,xa=0,CQe=1,bQe=2,Jl=4,wQe=6,IQe=8,BA=10,SQe=12,Ba=15,OS=~Ba,x9=16,hQe=32,MS=64,Cc=128,dP=256,hP=512,pQe=MS|Cc|hP,W1t=1023,v9=o(t=>t.isFile()?IQe:t.isDirectory()?Jl:t.isSymbolicLink()?BA:t.isCharacterDevice()?bQe:t.isBlockDevice()?wQe:t.isSocket()?SQe:t.isFIFO()?CQe:xa,"entToType"),AQe=new Map,US=o(t=>{let e=AQe.get(t);if(e)return e;let r=t.normalize("NFKD");return AQe.set(t,r),r},"normalize"),mQe=new Map,fP=o(t=>{let e=mQe.get(t);if(e)return e;let r=US(t.toLowerCase());return mQe.set(t,r),r},"normalizeNocase"),qS=class extends gQe.LRUCache{static{o(this,"ResolveCache")}constructor(){super({max:256})}};qt.ResolveCache=qS;var AP=class extends gQe.LRUCache{static{o(this,"ChildrenCache")}constructor(e=16*1024){super({maxSize:e,sizeCalculation:o(r=>r.length+1,"sizeCalculation")})}};qt.ChildrenCache=AP;var BQe=Symbol("PathScurry setAsCwd"),Ci=class{static{o(this,"PathBase")}name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#i;get uid(){return this.#i}#s;get gid(){return this.#s}#l;get rdev(){return this.#l}#a;get blksize(){return this.#a}#c;get ino(){return this.#c}#o;get size(){return this.#o}#f;get blocks(){return this.#f}#C;get atimeMs(){return this.#C}#p;get mtimeMs(){return this.#p}#m;get ctimeMs(){return this.#m}#g;get birthtimeMs(){return this.#g}#h;get atime(){return this.#h}#I;get mtime(){return this.#I}#y;get ctime(){return this.#y}#b;get birthtime(){return this.#b}#E;#B;#d;#w;#S;#v;#u;#x;#R;#N;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=xa,n,i,s,a,c){this.name=e,this.#E=s?fP(e):US(e),this.#u=r&W1t,this.nocase=s,this.roots=i,this.root=n||this,this.#x=a,this.#d=c.fullpath,this.#S=c.relative,this.#v=c.relativePosix,this.parent=c.parent,this.parent?this.#e=this.parent.#e:this.#e=yQe(c.fs)}depth(){return this.#B!==void 0?this.#B:this.parent?this.#B=this.parent.depth()+1:this.#B=0}childrenCache(){return this.#x}resolve(e){if(!e)return this;let r=this.getRootString(e),i=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#k(i):this.#k(i)}#k(e){let r=this;for(let n of e)r=r.child(n);return r}children(){let e=this.#x.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#x.set(this,r),this.#u&=~x9,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let n=this.children(),i=this.nocase?fP(e):US(e);for(let l of n)if(l.#E===i)return l;let s=this.parent?this.sep:"",a=this.#d?this.#d+s+e:void 0,c=this.newChild(e,xa,{...r,parent:this,fullpath:a});return this.canReaddir()||(c.#u|=Cc),n.push(c),c}relative(){if(this.isCWD)return"";if(this.#S!==void 0)return this.#S;let e=this.name,r=this.parent;if(!r)return this.#S=this.name;let n=r.relative();return n+(!n||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#v!==void 0)return this.#v;let e=this.name,r=this.parent;if(!r)return this.#v=this.fullpathPosix();let n=r.relativePosix();return n+(!n||!r.parent?"":"/")+e}fullpath(){if(this.#d!==void 0)return this.#d;let e=this.name,r=this.parent;if(!r)return this.#d=this.name;let i=r.fullpath()+(r.parent?this.sep:"")+e;return this.#d=i}fullpathPosix(){if(this.#w!==void 0)return this.#w;if(this.sep==="/")return this.#w=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#w=`//?/${i}`:this.#w=i}let e=this.parent,r=e.fullpathPosix(),n=r+(!r||!e.parent?"":"/")+this.name;return this.#w=n}isUnknown(){return(this.#u&Ba)===xa}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#u&Ba)===IQe}isDirectory(){return(this.#u&Ba)===Jl}isCharacterDevice(){return(this.#u&Ba)===bQe}isBlockDevice(){return(this.#u&Ba)===wQe}isFIFO(){return(this.#u&Ba)===CQe}isSocket(){return(this.#u&Ba)===SQe}isSymbolicLink(){return(this.#u&BA)===BA}lstatCached(){return this.#u&hQe?this:void 0}readlinkCached(){return this.#R}realpathCached(){return this.#N}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#R)return!0;if(!this.parent)return!1;let e=this.#u&Ba;return!(e!==xa&&e!==BA||this.#u&dP||this.#u&Cc)}calledReaddir(){return!!(this.#u&x9)}isENOENT(){return!!(this.#u&Cc)}isNamed(e){return this.nocase?this.#E===fP(e):this.#E===US(e)}async readlink(){let e=this.#R;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(r);if(n)return this.#R=n}catch(r){this.#F(r.code);return}}readlinkSync(){let e=this.#R;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(r);if(n)return this.#R=n}catch(r){this.#F(r.code);return}}#O(e){this.#u|=x9;for(let r=e.provisional;r<e.length;r++){let n=e[r];n&&n.#_()}}#_(){this.#u&Cc||(this.#u=(this.#u|Cc)&OS,this.#T())}#T(){let e=this.children();e.provisional=0;for(let r of e)r.#_()}#L(){this.#u|=hP,this.#D()}#D(){if(this.#u&MS)return;let e=this.#u;(e&Ba)===Jl&&(e&=OS),this.#u=e|MS,this.#T()}#P(e=""){e==="ENOTDIR"||e==="EPERM"?this.#D():e==="ENOENT"?this.#_():this.children().provisional=0}#A(e=""){e==="ENOTDIR"?this.parent.#D():e==="ENOENT"&&this.#_()}#F(e=""){let r=this.#u;r|=dP,e==="ENOENT"&&(r|=Cc),(e==="EINVAL"||e==="UNKNOWN")&&(r&=OS),this.#u=r,e==="ENOTDIR"&&this.parent&&this.parent.#D()}#Q(e,r){return this.#V(e,r)||this.#H(e,r)}#H(e,r){let n=v9(e),i=this.newChild(e.name,n,{parent:this}),s=i.#u&Ba;return s!==Jl&&s!==BA&&s!==xa&&(i.#u|=MS),r.unshift(i),r.provisional++,i}#V(e,r){for(let n=r.provisional;n<r.length;n++){let i=r[n];if((this.nocase?fP(e.name):US(e.name))===i.#E)return this.#z(e,i,n,r)}}#z(e,r,n,i){let s=r.name;return r.#u=r.#u&OS|v9(e),s!==e.name&&(r.name=e.name),n!==i.provisional&&(n===i.length-1?i.pop():i.splice(n,1),i.unshift(r)),i.provisional++,r}async lstat(){if((this.#u&Cc)===0)try{return this.#G(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#A(e.code)}}lstatSync(){if((this.#u&Cc)===0)try{return this.#G(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#A(e.code)}}#G(e){let{atime:r,atimeMs:n,birthtime:i,birthtimeMs:s,blksize:a,blocks:c,ctime:l,ctimeMs:u,dev:d,gid:f,ino:h,mode:p,mtime:g,mtimeMs:A,nlink:E,rdev:y,size:C,uid:w}=e;this.#h=r,this.#C=n,this.#b=i,this.#g=s,this.#a=a,this.#f=c,this.#y=l,this.#m=u,this.#r=d,this.#s=f,this.#c=h,this.#n=p,this.#I=g,this.#p=A,this.#t=E,this.#l=y,this.#o=C,this.#i=w;let B=v9(e);this.#u=this.#u&OS|B|hQe,B!==xa&&B!==Jl&&B!==BA&&(this.#u|=MS)}#U=[];#q=!1;#$(e){this.#q=!1;let r=this.#U.slice();this.#U.length=0,r.forEach(n=>n(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let n=this.children();if(this.calledReaddir()){let s=n.slice(0,n.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#U.push(e),this.#q)return;this.#q=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,a)=>{if(s)this.#P(s.code),n.provisional=0;else{for(let c of a)this.#Q(c,n);this.#O(n)}this.#$(n.slice(0,n.provisional))})}#M;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#M)await this.#M;else{let n=o(()=>{},"resolve");this.#M=new Promise(i=>n=i);try{for(let i of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#Q(i,e);this.#O(e)}catch(i){this.#P(i.code),e.provisional=0}this.#M=void 0,n()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let n of this.#e.readdirSync(r,{withFileTypes:!0}))this.#Q(n,e);this.#O(e)}catch(n){this.#P(n.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#u&pQe)return!1;let e=Ba&this.#u;return e===xa||e===Jl||e===BA}shouldWalk(e,r){return(this.#u&Jl)===Jl&&!(this.#u&pQe)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#N)return this.#N;if(!((hP|dP|Cc)&this.#u))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#N=this.resolve(e)}catch{this.#L()}}realpathSync(){if(this.#N)return this.#N;if(!((hP|dP|Cc)&this.#u))try{let e=this.#e.realpathSync(this.fullpath());return this.#N=this.resolve(e)}catch{this.#L()}}[BQe](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),n=[],i=this;for(;i&&i.parent;)r.add(i),i.#S=n.join(this.sep),i.#v=n.join("/"),i=i.parent,n.push("..");for(i=e;i&&i.parent&&!r.has(i);)i.#S=void 0,i.#v=void 0,i=i.parent}};qt.PathBase=Ci;var GS=class t extends Ci{static{o(this,"PathWin32")}sep="\\";splitSep=j1t;constructor(e,r=xa,n,i,s,a,c){super(e,r,n,i,s,a,c)}newChild(e,r=xa,n={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(e){return pP.win32.parse(e).root}getRoot(e){if(e=$1t(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,n]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=n;return this.roots[e]=new zS(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(EQe,"$1\\"),e===r}};qt.PathWin32=GS;var HS=class t extends Ci{static{o(this,"PathPosix")}splitSep="/";sep="/";constructor(e,r=xa,n,i,s,a,c){super(e,r,n,i,s,a,c)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=xa,n={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}};qt.PathPosix=HS;var VS=class{static{o(this,"PathScurryBase")}root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:a=FS}={}){this.#t=yQe(a),(e instanceof URL||e.startsWith("file://"))&&(e=(0,H1t.fileURLToPath)(e));let c=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(c),this.#e=new qS,this.#r=new qS,this.#n=new AP(s);let l=c.substring(this.rootPath.length).split(n);if(l.length===1&&!l[0]&&l.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,d=l.length-1,f=r.sep,h=this.rootPath,p=!1;for(let g of l){let A=d--;u=u.child(g,{relative:new Array(A).fill("..").join(f),relativePosix:new Array(A).fill("..").join("/"),fullpath:h+=(p?"":f)+g}),p=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let a=e[s];if(!(!a||a===".")&&(r=r?`${a}/${r}`:a,this.isAbsolute(a)))break}let n=this.#e.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpath();return this.#e.set(r,i),i}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let a=e[s];if(!(!a||a===".")&&(r=r?`${a}/${r}`:a,this.isAbsolute(a)))break}let n=this.#r.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,i),i}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e,e=this.cwd);let{withFileTypes:n}=r;if(e.canReaddir()){let i=await e.readdir();return n?i:i.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e,e=this.cwd);let{withFileTypes:n=!0}=r;return e.canReaddir()?n?e.readdirSync():e.readdirSync().map(i=>i.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e.withFileTypes,e=this.cwd);let n=await e.readlink();return r?n:n?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e.withFileTypes,e=this.cwd);let n=e.readlinkSync();return r?n:n?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e.withFileTypes,e=this.cwd);let n=await e.realpath();return r?n:n?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e.withFileTypes,e=this.cwd);let n=e.realpathSync();return r?n:n?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=[];(!s||s(e))&&c.push(n?e:e.fullpath());let l=new Set,u=o((f,h)=>{l.add(f),f.readdirCB((p,g)=>{if(p)return h(p);let A=g.length;if(!A)return h();let E=o(()=>{--A===0&&h()},"next");for(let y of g)(!s||s(y))&&c.push(n?y:y.fullpath()),i&&y.isSymbolicLink()?y.realpath().then(C=>C?.isUnknown()?C.lstat():C).then(C=>C?.shouldWalk(l,a)?u(C,E):E()):y.shouldWalk(l,a)?u(y,E):E()},!0)},"walk"),d=e;return new Promise((f,h)=>{u(d,p=>{if(p)return h(p);f(c)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=[];(!s||s(e))&&c.push(n?e:e.fullpath());let l=new Set([e]);for(let u of l){let d=u.readdirSync();for(let f of d){(!s||s(f))&&c.push(n?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(i&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,a)&&l.add(h)}}return c}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r;(!s||s(e))&&(yield n?e:e.fullpath());let c=new Set([e]);for(let l of c){let u=l.readdirSync();for(let d of u){(!s||s(d))&&(yield n?d:d.fullpath());let f=d;if(d.isSymbolicLink()){if(!(i&&(f=d.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(c,a)&&c.add(f)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=new fQe.Minipass({objectMode:!0});(!s||s(e))&&c.write(n?e:e.fullpath());let l=new Set,u=[e],d=0,f=o(()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){d===0&&c.end();return}d++,l.add(p);let g=o((E,y,C=!1)=>{if(E)return c.emit("error",E);if(i&&!C){let w=[];for(let B of y)B.isSymbolicLink()&&w.push(B.realpath().then(Q=>Q?.isUnknown()?Q.lstat():Q));if(w.length){Promise.all(w).then(()=>g(null,y,!0));return}}for(let w of y)w&&(!s||s(w))&&(c.write(n?w:w.fullpath())||(h=!0));d--;for(let w of y){let B=w.realpathCached()||w;B.shouldWalk(l,a)&&u.push(B)}h&&!c.flowing?c.once("drain",f):A||f()},"onReaddir"),A=!0;p.readdirCB(g,!0),A=!1}},"process");return f(),c}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ci||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=new fQe.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&c.write(n?e:e.fullpath());let u=[e],d=0,f=o(()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){d===0&&c.end();return}d++,l.add(p);let g=p.readdirSync();for(let A of g)(!s||s(A))&&(c.write(n?A:A.fullpath())||(h=!0));d--;for(let A of g){let E=A;if(A.isSymbolicLink()){if(!(i&&(E=A.realpathSync())))continue;E.isUnknown()&&E.lstatSync()}E.shouldWalk(l,a)&&u.push(E)}}h&&!c.flowing&&c.once("drain",f)},"process");return f(),c}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[BQe](r)}};qt.PathScurryBase=VS;var zS=class extends VS{static{o(this,"PathScurryWin32")}sep="\\";constructor(e=process.cwd(),r={}){let{nocase:n=!0}=r;super(e,pP.win32,"\\",{...r,nocase:n}),this.nocase=n;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(e){return pP.win32.parse(e).root.toUpperCase()}newRoot(e){return new GS(this.rootPath,Jl,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};qt.PathScurryWin32=zS;var $S=class extends VS{static{o(this,"PathScurryPosix")}sep="/";constructor(e=process.cwd(),r={}){let{nocase:n=!1}=r;super(e,pP.posix,"/",{...r,nocase:n}),this.nocase=n}parseRootPath(e){return"/"}newRoot(e){return new HS(this.rootPath,Jl,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};qt.PathScurryPosix=$S;var mP=class extends $S{static{o(this,"PathScurryDarwin")}constructor(e=process.cwd(),r={}){let{nocase:n=!0}=r;super(e,{...r,nocase:n})}};qt.PathScurryDarwin=mP;qt.Path=process.platform==="win32"?GS:HS;qt.PathScurry=process.platform==="win32"?zS:process.platform==="darwin"?mP:$S});var _9=m(gP=>{"use strict";Object.defineProperty(gP,"__esModule",{value:!0});gP.Pattern=void 0;var J1t=jf(),Y1t=o(t=>t.length>=1,"isPatternList"),K1t=o(t=>t.length>=1,"isGlobList"),N9=class t{static{o(this,"Pattern")}#e;#r;#n;length;#t;#i;#s;#l;#a;#c;#o=!0;constructor(e,r,n,i){if(!Y1t(e))throw new TypeError("empty pattern list");if(!K1t(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,n<0||n>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#r=r,this.#n=n,this.#t=i,this.#n===0){if(this.isUNC()){let[s,a,c,l,...u]=this.#e,[d,f,h,p,...g]=this.#r;u[0]===""&&(u.shift(),g.shift());let A=[s,a,c,l,""].join("/"),E=[d,f,h,p,""].join("/");this.#e=[A,...u],this.#r=[E,...g],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...a]=this.#e,[c,...l]=this.#r;a[0]===""&&(a.shift(),l.shift());let u=s+"/",d=c+"/";this.#e=[u,...a],this.#r=[d,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===J1t.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#s=this.#s||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#i!==void 0?this.#i:this.hasMore()?(this.#i=new t(this.#e,this.#r,this.#n+1,this.#t),this.#i.#c=this.#c,this.#i.#a=this.#a,this.#i.#l=this.#l,this.#i):this.#i=null}isUNC(){let e=this.#e;return this.#a!==void 0?this.#a:this.#a=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#o)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#o?!1:(this.#o=!1,!0)}};gP.Pattern=N9});var DQe=m(ds=>{"use strict";var X1t=ds&&ds.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ds,"__esModule",{value:!0});ds.Minipass=ds.isWritable=ds.isReadable=ds.isStream=void 0;var vQe=typeof process=="object"&&process?process:{stdout:null,stderr:null},O9=require("node:events"),RQe=X1t(require("node:stream")),Z1t=require("node:string_decoder"),ePt=o(t=>!!t&&typeof t=="object"&&(t instanceof SP||t instanceof RQe.default||(0,ds.isReadable)(t)||(0,ds.isWritable)(t)),"isStream");ds.isStream=ePt;var tPt=o(t=>!!t&&typeof t=="object"&&t instanceof O9.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==RQe.default.Writable.prototype.pipe,"isReadable");ds.isReadable=tPt;var rPt=o(t=>!!t&&typeof t=="object"&&t instanceof O9.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");ds.isWritable=rPt;var Ed=Symbol("EOF"),Cd=Symbol("maybeEmitEnd"),Yf=Symbol("emittedEnd"),yP=Symbol("emittingEnd"),jS=Symbol("emittedError"),EP=Symbol("closed"),NQe=Symbol("read"),CP=Symbol("flush"),_Qe=Symbol("flushChunk"),bc=Symbol("encoding"),qE=Symbol("decoder"),ti=Symbol("flowing"),WS=Symbol("paused"),GE=Symbol("resume"),ri=Symbol("buffer"),us=Symbol("pipes"),ni=Symbol("bufferLength"),T9=Symbol("bufferPush"),bP=Symbol("bufferShift"),ki=Symbol("objectMode"),un=Symbol("destroyed"),R9=Symbol("error"),D9=Symbol("emitData"),TQe=Symbol("emitEnd"),Q9=Symbol("emitEnd2"),Yl=Symbol("async"),P9=Symbol("abort"),wP=Symbol("aborted"),JS=Symbol("signal"),xA=Symbol("dataListeners"),No=Symbol("discarded"),YS=o(t=>Promise.resolve().then(t),"defer"),nPt=o(t=>t(),"nodefer"),iPt=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),sPt=o(t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBufferLike"),oPt=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),IP=class{static{o(this,"Pipe")}src;dest;opts;ondrain;constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[GE](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},k9=class extends IP{static{o(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>this.dest.emit("error",i),e.on("error",this.proxyErrors)}},aPt=o(t=>!!t.objectMode,"isObjectModeOptions"),cPt=o(t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer","isEncodingOptions"),SP=class extends O9.EventEmitter{static{o(this,"Minipass")}[ti]=!1;[WS]=!1;[us]=[];[ri]=[];[ki];[bc];[Yl];[qE];[Ed]=!1;[Yf]=!1;[yP]=!1;[EP]=!1;[jS]=null;[ni]=0;[un]=!1;[JS];[wP]=!1;[xA]=0;[No]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");aPt(r)?(this[ki]=!0,this[bc]=null):cPt(r)?(this[bc]=r.encoding,this[ki]=!1):(this[ki]=!1,this[bc]=null),this[Yl]=!!r.async,this[qE]=this[bc]?new Z1t.StringDecoder(this[bc]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:o(()=>this[ri],"get")}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:o(()=>this[us],"get")});let{signal:n}=r;n&&(this[JS]=n,n.aborted?this[P9]():n.addEventListener("abort",()=>this[P9]()))}get bufferLength(){return this[ni]}get encoding(){return this[bc]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[ki]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Yl]}set async(e){this[Yl]=this[Yl]||!!e}[P9](){this[wP]=!0,this.emit("abort",this[JS]?.reason),this.destroy(this[JS]?.reason)}get aborted(){return this[wP]}set aborted(e){}write(e,r,n){if(this[wP])return!1;if(this[Ed])throw new Error("write after end");if(this[un])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Yl]?YS:nPt;if(!this[ki]&&!Buffer.isBuffer(e)){if(oPt(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(sPt(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[ki]?(this[ti]&&this[ni]!==0&&this[CP](!0),this[ti]?this.emit("data",e):this[T9](e),this[ni]!==0&&this.emit("readable"),n&&i(n),this[ti]):e.length?(typeof e=="string"&&!(r===this[bc]&&!this[qE]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[bc]&&(e=this[qE].write(e)),this[ti]&&this[ni]!==0&&this[CP](!0),this[ti]?this.emit("data",e):this[T9](e),this[ni]!==0&&this.emit("readable"),n&&i(n),this[ti]):(this[ni]!==0&&this.emit("readable"),n&&i(n),this[ti])}read(e){if(this[un])return null;if(this[No]=!1,this[ni]===0||e===0||e&&e>this[ni])return this[Cd](),null;this[ki]&&(e=null),this[ri].length>1&&!this[ki]&&(this[ri]=[this[bc]?this[ri].join(""):Buffer.concat(this[ri],this[ni])]);let r=this[NQe](e||null,this[ri][0]);return this[Cd](),r}[NQe](e,r){if(this[ki])this[bP]();else{let n=r;e===n.length||e===null?this[bP]():typeof n=="string"?(this[ri][0]=n.slice(e),r=n.slice(0,e),this[ni]-=e):(this[ri][0]=n.subarray(e),r=n.subarray(0,e),this[ni]-=e)}return this.emit("data",r),!this[ri].length&&!this[Ed]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r="utf8"),e!==void 0&&this.write(e,r),n&&this.once("end",n),this[Ed]=!0,this.writable=!1,(this[ti]||!this[WS])&&this[Cd](),this}[GE](){this[un]||(!this[xA]&&!this[us].length&&(this[No]=!0),this[WS]=!1,this[ti]=!0,this.emit("resume"),this[ri].length?this[CP]():this[Ed]?this[Cd]():this.emit("drain"))}resume(){return this[GE]()}pause(){this[ti]=!1,this[WS]=!0,this[No]=!1}get destroyed(){return this[un]}get flowing(){return this[ti]}get paused(){return this[WS]}[T9](e){this[ki]?this[ni]+=1:this[ni]+=e.length,this[ri].push(e)}[bP](){return this[ki]?this[ni]-=1:this[ni]-=this[ri][0].length,this[ri].shift()}[CP](e=!1){do;while(this[_Qe](this[bP]())&&this[ri].length);!e&&!this[ri].length&&!this[Ed]&&this.emit("drain")}[_Qe](e){return this.emit("data",e),this[ti]}pipe(e,r){if(this[un])return e;this[No]=!1;let n=this[Yf];return r=r||{},e===vQe.stdout||e===vQe.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[us].push(r.proxyErrors?new k9(this,e,r):new IP(this,e,r)),this[Yl]?YS(()=>this[GE]()):this[GE]()),e}unpipe(e){let r=this[us].find(n=>n.dest===e);r&&(this[us].length===1?(this[ti]&&this[xA]===0&&(this[ti]=!1),this[us]=[]):this[us].splice(this[us].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);if(e==="data")this[No]=!1,this[xA]++,!this[us].length&&!this[ti]&&this[GE]();else if(e==="readable"&&this[ni]!==0)super.emit("readable");else if(iPt(e)&&this[Yf])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[jS]){let i=r;this[Yl]?YS(()=>i.call(this,this[jS])):i.call(this,this[jS])}return n}removeListener(e,r){return this.off(e,r)}off(e,r){let n=super.off(e,r);return e==="data"&&(this[xA]=this.listeners("data").length,this[xA]===0&&!this[No]&&!this[us].length&&(this[ti]=!1)),n}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[xA]=0,!this[No]&&!this[us].length&&(this[ti]=!1)),r}get emittedEnd(){return this[Yf]}[Cd](){!this[yP]&&!this[Yf]&&!this[un]&&this[ri].length===0&&this[Ed]&&(this[yP]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[EP]&&this.emit("close"),this[yP]=!1)}emit(e,...r){let n=r[0];if(e!=="error"&&e!=="close"&&e!==un&&this[un])return!1;if(e==="data")return!this[ki]&&!n?!1:this[Yl]?(YS(()=>this[D9](n)),!0):this[D9](n);if(e==="end")return this[TQe]();if(e==="close"){if(this[EP]=!0,!this[Yf]&&!this[un])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[jS]=n,super.emit(R9,n);let s=!this[JS]||this.listeners("error").length?super.emit("error",n):!1;return this[Cd](),s}else if(e==="resume"){let s=super.emit("resume");return this[Cd](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,...r);return this[Cd](),i}[D9](e){for(let n of this[us])n.dest.write(e)===!1&&this.pause();let r=this[No]?!1:super.emit("data",e);return this[Cd](),r}[TQe](){return this[Yf]?!1:(this[Yf]=!0,this.readable=!1,this[Yl]?(YS(()=>this[Q9]()),!0):this[Q9]())}[Q9](){if(this[qE]){let r=this[qE].end();if(r){for(let n of this[us])n.dest.write(r);this[No]||super.emit("data",r)}}for(let r of this[us])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[ki]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[ki]||(e.dataLength+=n.length)}),await r,e}async concat(){if(this[ki])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[bc]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(un,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[No]=!1;let e=!1,r=o(async()=>(this.pause(),e=!0,{value:void 0,done:!0}),"stop");return{next:o(()=>{if(e)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Ed])return r();let s,a,c=o(f=>{this.off("data",l),this.off("end",u),this.off(un,d),r(),a(f)},"onerr"),l=o(f=>{this.off("error",c),this.off("end",u),this.off(un,d),this.pause(),s({value:f,done:!!this[Ed]})},"ondata"),u=o(()=>{this.off("error",c),this.off("data",l),this.off(un,d),r(),s({done:!0,value:void 0})},"onend"),d=o(()=>c(new Error("stream destroyed")),"ondestroy");return new Promise((f,h)=>{a=h,s=f,this.once(un,d),this.once("error",c),this.once("end",u),this.once("data",l)})},"next"),throw:r,return:r,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[No]=!1;let e=!1,r=o(()=>(this.pause(),this.off(R9,r),this.off(un,r),this.off("end",r),e=!0,{done:!0,value:void 0}),"stop"),n=o(()=>{if(e)return r();let i=this.read();return i===null?r():{done:!1,value:i}},"next");return this.once("end",r),this.once(R9,r),this.once(un,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[un])return e?this.emit("error",e):this.emit(un),this;this[un]=!0,this[No]=!0,this[ri].length=0,this[ni]=0;let r=this;return typeof r.close=="function"&&!this[EP]&&r.close(),e?this.emit("error",e):this.emit(un),this}static get isStream(){return ds.isStream}};ds.Minipass=SP});var F9=m(BP=>{"use strict";Object.defineProperty(BP,"__esModule",{value:!0});BP.Ignore=void 0;var QQe=jf(),lPt=_9(),uPt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",L9=class{static{o(this,"Ignore")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:a=uPt}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:r,nocase:n,noext:i,noglobstar:s,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let c of e)this.add(c)}add(e){let r=new QQe.Minimatch(e,this.mmopts);for(let n=0;n<r.set.length;n++){let i=r.set[n],s=r.globParts[n];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let a=new lPt.Pattern(i,s,0,this.platform),c=new QQe.Minimatch(a.globString(),this.mmopts),l=s[s.length-1]==="**",u=a.isAbsolute();u?this.absolute.push(c):this.relative.push(c),l&&(u?this.absoluteChildren.push(c):this.relativeChildren.push(c))}}ignored(e){let r=e.fullpath(),n=`${r}/`,i=e.relative()||".",s=`${i}/`;for(let a of this.relative)if(a.match(i)||a.match(s))return!0;for(let a of this.absolute)if(a.match(r)||a.match(n))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",n=(e.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(n))return!0;for(let i of this.absoluteChildren)if(i.match(r))return!0;return!1}};BP.Ignore=L9});var kQe=m(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.Processor=Kl.SubWalks=Kl.MatchRecord=Kl.HasWalkedCache=void 0;var PQe=jf(),xP=class t{static{o(this,"HasWalkedCache")}store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let n=e.fullpath(),i=this.store.get(n);i?i.add(r.globString()):this.store.set(n,new Set([r.globString()]))}};Kl.HasWalkedCache=xP;var vP=class{static{o(this,"MatchRecord")}store=new Map;add(e,r,n){let i=(r?2:0)|(n?1:0),s=this.store.get(e);this.store.set(e,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};Kl.MatchRecord=vP;var NP=class{static{o(this,"SubWalks")}store=new Map;add(e,r){if(!e.canReaddir())return;let n=this.store.get(e);n?n.find(i=>i.globString()===r.globString())||n.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};Kl.SubWalks=NP;var M9=class t{static{o(this,"Processor")}hasWalkedCache;matches=new vP;subwalks=new NP;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new xP}processPatterns(e,r){this.patterns=r;let n=r.map(i=>[e,i]);for(let[i,s]of n){this.hasWalkedCache.storeWalked(i,s);let a=s.root(),c=s.isAbsolute()&&this.opts.absolute!==!1;if(a){i=i.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let f=s.rest();if(f)s=f;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let l,u,d=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)i=i.resolve(l),s=u,d=!0;if(l=s.pattern(),u=s.rest(),d){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof l=="string"){let f=l===".."||l===""||l===".";this.matches.add(i.resolve(l),c,f);continue}else if(l===PQe.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let f=u?.pattern(),h=u?.rest();if(!u||(f===""||f===".")&&!h)this.matches.add(i,c,f===""||f===".");else if(f===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,c,!0)}}else l instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let n=this.subwalks.get(e),i=this.child();for(let s of r)for(let a of n){let c=a.isAbsolute(),l=a.pattern(),u=a.rest();l===PQe.GLOBSTAR?i.testGlobstar(s,a,u,c):l instanceof RegExp?i.testRegExp(s,l,u,c):i.testString(s,l,u,c)}return i}testGlobstar(e,r,n,i){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,i,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(n&&r.checkFollowGlobstar()?this.subwalks.add(e,n):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),n){let s=n.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,n.rest(),i);else if(s===".."){let a=e.parent||e;this.subwalks.add(a,n)}else s instanceof RegExp&&this.testRegExp(e,s,n.rest(),i)}}testRegExp(e,r,n,i){r.test(e.name)&&(n?this.subwalks.add(e,n):this.matches.add(e,i,!1))}testString(e,r,n,i){e.isNamed(r)&&(n?this.subwalks.add(e,n):this.matches.add(e,i,!1))}};Kl.Processor=M9});var FQe=m(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.GlobStream=Kf.GlobWalker=Kf.GlobUtil=void 0;var dPt=DQe(),OQe=F9(),LQe=kQe(),fPt=o((t,e)=>typeof t=="string"?new OQe.Ignore([t],e):Array.isArray(t)?new OQe.Ignore(t,e):t,"makeIgnore"),KS=class{static{o(this,"GlobUtil")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,n){if(this.patterns=e,this.path=r,this.opts=n,this.#n=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#r=fPt(n.ignore??[],n),!this.includeChildMatches&&typeof this.#r.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#i(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||await e.realpath(),!n)return;e=n}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let a=await s.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||e.realpathSync(),!n)return;e=n}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let a=s.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let n=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let i=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(n){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?a+s+i:"."+i)}}async match(e,r,n){let i=await this.matchCheck(e,n);i&&this.matchFinish(i,r)}matchSync(e,r,n){let i=this.matchCheckSync(e,n);i&&this.matchFinish(i,r)}walkCB(e,r,n){this.signal?.aborted&&n(),this.walkCB2(e,r,new LQe.Processor(this.opts),n)}walkCB2(e,r,n,i){if(this.#i(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(e,r,n,i));return}n.processPatterns(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||(s++,this.match(c,l,u).then(()=>a()));for(let c of n.subwalkTargets()){if(this.maxDepth!==1/0&&c.depth()>=this.maxDepth)continue;s++;let l=c.readdirCached();c.calledReaddir()?this.walkCB3(c,l,n,a):c.readdirCB((u,d)=>this.walkCB3(c,d,n,a),!0)}a()}walkCB3(e,r,n,i){n=n.filterEntries(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||(s++,this.match(c,l,u).then(()=>a()));for(let[c,l]of n.subwalks.entries())s++,this.walkCB2(c,l,n.child(),a);a()}walkCBSync(e,r,n){this.signal?.aborted&&n(),this.walkCB2Sync(e,r,new LQe.Processor(this.opts),n)}walkCB2Sync(e,r,n,i){if(this.#i(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,n,i));return}n.processPatterns(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||this.matchSync(c,l,u);for(let c of n.subwalkTargets()){if(this.maxDepth!==1/0&&c.depth()>=this.maxDepth)continue;s++;let l=c.readdirSync();this.walkCB3Sync(c,l,n,a)}a()}walkCB3Sync(e,r,n,i){n=n.filterEntries(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||this.matchSync(c,l,u);for(let[c,l]of n.subwalks.entries())s++,this.walkCB2Sync(c,l,n.child(),a);a()}};Kf.GlobUtil=KS;var U9=class extends KS{static{o(this,"GlobWalker")}matches=new Set;constructor(e,r,n){super(e,r,n)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};Kf.GlobWalker=U9;var q9=class extends KS{static{o(this,"GlobStream")}results;constructor(e,r,n){super(e,r,n),this.results=new dPt.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};Kf.GlobStream=q9});var H9=m(RP=>{"use strict";Object.defineProperty(RP,"__esModule",{value:!0});RP.Glob=void 0;var hPt=jf(),pPt=require("node:url"),_P=xQe(),APt=_9(),TP=FQe(),mPt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",G9=class{static{o(this,"Glob")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,pPt.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=r.platform||mPt,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?_P.PathScurryWin32:r.platform==="darwin"?_P.PathScurryDarwin:r.platform?_P.PathScurryPosix:_P.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let n=this.platform==="darwin"||this.platform==="win32",i={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new hPt.Minimatch(l,i)),[a,c]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=a.map((l,u)=>{let d=c[u];if(!d)throw new Error("invalid pattern object");return new APt.Pattern(l,d,0,this.platform)})}async walk(){return[...await new TP.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new TP.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new TP.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new TP.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};RP.Glob=G9});var V9=m(DP=>{"use strict";Object.defineProperty(DP,"__esModule",{value:!0});DP.hasMagic=void 0;var gPt=jf(),yPt=o((t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new gPt.Minimatch(r,e).hasMagic())return!0;return!1},"hasMagic");DP.hasMagic=yPt});var GQe=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.glob=bt.sync=bt.iterate=bt.iterateSync=bt.stream=bt.streamSync=bt.Ignore=bt.hasMagic=bt.Glob=bt.unescape=bt.escape=void 0;bt.globStreamSync=XS;bt.globStream=z9;bt.globSync=$9;bt.globIterateSync=ZS;bt.globIterate=j9;var MQe=jf(),vA=H9(),EPt=V9(),qQe=jf();Object.defineProperty(bt,"escape",{enumerable:!0,get:o(function(){return qQe.escape},"get")});Object.defineProperty(bt,"unescape",{enumerable:!0,get:o(function(){return qQe.unescape},"get")});var CPt=H9();Object.defineProperty(bt,"Glob",{enumerable:!0,get:o(function(){return CPt.Glob},"get")});var bPt=V9();Object.defineProperty(bt,"hasMagic",{enumerable:!0,get:o(function(){return bPt.hasMagic},"get")});var wPt=F9();Object.defineProperty(bt,"Ignore",{enumerable:!0,get:o(function(){return wPt.Ignore},"get")});function XS(t,e={}){return new vA.Glob(t,e).streamSync()}o(XS,"globStreamSync");function z9(t,e={}){return new vA.Glob(t,e).stream()}o(z9,"globStream");function $9(t,e={}){return new vA.Glob(t,e).walkSync()}o($9,"globSync");async function UQe(t,e={}){return new vA.Glob(t,e).walk()}o(UQe,"glob_");function ZS(t,e={}){return new vA.Glob(t,e).iterateSync()}o(ZS,"globIterateSync");function j9(t,e={}){return new vA.Glob(t,e).iterate()}o(j9,"globIterate");bt.streamSync=XS;bt.stream=Object.assign(z9,{sync:XS});bt.iterateSync=ZS;bt.iterate=Object.assign(j9,{sync:ZS});bt.sync=Object.assign($9,{stream:XS,iterate:ZS});bt.glob=Object.assign(UQe,{glob:UQe,globSync:$9,sync:bt.sync,globStream:z9,stream:bt.stream,globStreamSync:XS,streamSync:bt.streamSync,globIterate:j9,iterate:bt.iterate,globIterateSync:ZS,iterateSync:bt.iterateSync,Glob:vA.Glob,hasMagic:EPt.hasMagic,escape:MQe.escape,unescape:MQe.unescape});bt.glob.glob=bt.glob});var $Qe=m((GQr,zQe)=>{var VQe=hW(),HE=require("path"),W9=c2e(),IPt=IDe(),SPt=PDe(),BPt=qDe(),xPt=GQe(),NA=zQe.exports={},HQe=/[\/\\]/g,vPt=o(function(t,e){var r=[];return W9(t).forEach(function(n){var i=n.indexOf("!")===0;i&&(n=n.slice(1));var s=e(n);i?r=IPt(r,s):r=SPt(r,s)}),r},"processPatterns");NA.exists=function(){var t=HE.join.apply(HE,arguments);return VQe.existsSync(t)};NA.expand=function(...t){var e=BPt(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var n=vPt(r,function(i){return xPt.sync(i,e)});return e.filter&&(n=n.filter(function(i){i=HE.join(e.cwd||"",i);try{return typeof e.filter=="function"?e.filter(i):VQe.statSync(i)[e.filter]()}catch{return!1}})),n};NA.expandMapping=function(t,e,r){r=Object.assign({rename:o(function(s,a){return HE.join(s||"",a)},"rename")},r);var n=[],i={};return NA.expand(r,t).forEach(function(s){var a=s;r.flatten&&(a=HE.basename(a)),r.ext&&(a=a.replace(/(\.[^\/]*)?$/,r.ext));var c=r.rename(e,a,r);r.cwd&&(s=HE.join(r.cwd,s)),c=c.replace(HQe,"/"),s=s.replace(HQe,"/"),i[c]?i[c].src.push(s):(n.push({src:[s],dest:c}),i[c]=n[n.length-1])}),n};NA.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var n;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=W9(r.src):r.src=[r.src])}).map(function(r){var n=Object.assign({},r);if(delete n.src,delete n.dest,r.expand)return NA.expandMapping(r.src,r.dest,n).map(function(s){var a=Object.assign({},r);return a.orig=Object.assign({},r),a.src=s.src,a.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(c){delete a[c]}),a});var i=Object.assign({},r);return i.orig=Object.assign({},r),"src"in i&&Object.defineProperty(i,"src",{enumerable:!0,get:o(function s(){var a;return"result"in s||(a=r.src,a=Array.isArray(a)?W9(a):[a],s.result=NA.expand(n,a)),s.result},"fn")}),"dest"in i&&(i.dest=r.dest),i}).flatten().value(),e)}});var VE=m((zQr,JQe)=>{var J9=hW(),jQe=require("path"),NPt=$Q(),_Pt=yve(),WQe=LW(),TPt=XNe(),VQr=require("stream").Stream,RPt=wA().PassThrough,_o=JQe.exports={};_o.file=$Qe();_o.collectStream=function(t,e){var r=[],n=0;t.on("error",e),t.on("data",function(i){r.push(i),n+=i.length}),t.on("end",function(){var i=Buffer.alloc(n),s=0;r.forEach(function(a){a.copy(i,s),s+=a.length}),e(null,i)})};_o.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};_o.defaults=function(t,e,r){var n=arguments;return n[0]=n[0]||{},TPt(...n)};_o.isStream=function(t){return NPt(t)};_o.lazyReadStream=function(t){return new _Pt.Readable(function(){return J9.createReadStream(t)})};_o.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):_o.isStream(t)?t.pipe(new RPt):t};_o.sanitizePath=function(t){return WQe(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};_o.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};_o.unixifyPath=function(t){return WQe(t,!1).replace(/^\w+:/,"")};_o.walkdir=function(t,e,r){var n=[];typeof e=="function"&&(r=e,e=t),J9.readdir(t,function(i,s){var a=0,c,l;if(i)return r(i);o((function u(){if(c=s[a++],!c)return r(null,n);l=jQe.join(t,c),J9.stat(l,function(d,f){n.push({path:l,relative:jQe.relative(e,l).replace(/\\/g,"/"),stats:f}),f&&f.isDirectory()?_o.walkdir(l,e,function(h,p){if(h)return r(h);p.forEach(function(g){n.push(g)}),u()}):u()})}),"next")()})}});var ZQe=m((KQe,XQe)=>{var DPt=require("util"),QPt={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function YQe(t,e){Error.captureStackTrace(this,this.constructor),this.message=QPt[t]||t,this.code=t,this.data=e}o(YQe,"ArchiverError");DPt.inherits(YQe,Error);KQe=XQe.exports=YQe});var i1e=m((WQr,n1e)=>{var X9=require("fs"),t1e=cxe(),e1e=uxe(),Y9=require("path"),Xl=VE(),PPt=require("util").inherits,zr=ZQe(),r1e=wA().Transform,K9=process.platform==="win32",Pt=o(function(t,e){if(!(this instanceof Pt))return new Pt(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=Xl.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),r1e.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=e1e.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=e1e.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]},"Archiver");PPt(Pt,r1e);Pt.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};Pt.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof X9.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};Pt.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};Pt.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};Pt.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(n){if(this._task=null,this._state.aborted){this._shutdown();return}if(n){this.emit("error",n),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};Pt.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new zr("NOENDMETHOD"))};Pt.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};Pt.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};Pt.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};Pt.prototype._normalizeEntryData=function(t,e){t=Xl.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=Xl.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?K9?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(K9?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,K9&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=Xl.dateify(t.date),t};Pt.prototype._onModuleError=function(t){this.emit("error",t)};Pt.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};Pt.prototype._onQueueTask=function(t,e){var r=o(()=>{t.data.callback&&t.data.callback(),e()},"fullCallback");if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};Pt.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}X9.lstat(t.filepath,function(r,n){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,n),t&&(n.size&&(this._fsEntriesTotalBytes+=n.size),this._queue.push(t)),setImmediate(e)}.bind(this))};Pt.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};Pt.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};Pt.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=Xl.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=Xl.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=Xl.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=X9.readlinkSync(t.filepath),n=Y9.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Y9.relative(n,Y9.resolve(n,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new zr("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new zr("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new zr("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};Pt.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};Pt.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new zr("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new zr("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new zr("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=Xl.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(Xl.isStream(t))e.sourceType="stream";else return this.emit("error",new zr("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};Pt.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new zr("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new zr("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var n=!1;typeof r=="function"?(n=r,r={}):typeof r!="object"&&(r={});var i={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}o(s,"onGlobEnd");function a(u){this.emit("error",u)}o(a,"onGlobError");function c(u){l.pause();var d=!1,f=Object.assign({},r);f.name=u.relative,f.prefix=e,f.stats=u.stat,f.callback=l.resume.bind(l);try{if(n){if(f=n(f),f===!1)d=!0;else if(typeof f!="object")throw new zr("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(d){l.resume();return}this._append(u.absolute,f)}o(c,"onGlobMatch");var l=t1e(t,i);return l.on("error",a.bind(this)),l.on("match",c.bind(this)),l.on("end",s.bind(this)),this};Pt.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new zr("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new zr("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};Pt.prototype.glob=function(t,e,r){this._pending++,e=Xl.defaults(e,{stat:!0,pattern:t});function n(){this._pending--,this._maybeFinalize()}o(n,"onGlobEnd");function i(c){this.emit("error",c)}o(i,"onGlobError");function s(c){a.pause();var l=Object.assign({},r);l.callback=a.resume.bind(a),l.stats=c.stat,l.name=c.relative,this._append(c.absolute,l)}o(s,"onGlobMatch");var a=t1e(e.cwd||".",e);return a.on("error",i.bind(this)),a.on("match",s.bind(this)),a.on("end",n.bind(this)),this};Pt.prototype.finalize=function(){if(this._state.aborted){var t=new zr("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new zr("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(n,i){var s;r._module.on("end",function(){s||n()}),r._module.on("error",function(a){s=!0,i(a)})})};Pt.prototype.setFormat=function(t){return this._format?(this.emit("error",new zr("FORMATSET")),this):(this._format=t,this)};Pt.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new zr("ABORTED")),this):this._state.module?(this.emit("error",new zr("MODULESET")),this):(this._module=t,this._modulePipe(),this)};Pt.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new zr("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new zr("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new zr("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new zr("SYMLINKNOTSUPPORTED",{filepath:t})),this;var n={};return n.type="symlink",n.name=t.replace(/\\/g,"/"),n.linkname=e.replace(/\\/g,"/"),n.sourceType="buffer",typeof r=="number"&&(n.mode=r),this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this};Pt.prototype.pointer=function(){return this._pointer};Pt.prototype.use=function(t){return this._streams.push(t),this};n1e.exports=Pt});var PP=m((YQr,s1e)=>{var QP=s1e.exports=function(){};QP.prototype.getName=function(){};QP.prototype.getSize=function(){};QP.prototype.getLastModifiedDate=function(){};QP.prototype.isDirectory=function(){}});var kP=m((KQr,o1e)=>{var va=o1e.exports={};va.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var n={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return n.year-1980<<25|n.month+1<<21|n.date<<16|n.hours<<11|n.minutes<<5|n.seconds/2};va.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};va.fromDosTime=function(t){return va.dosToDate(t.readUInt32LE(0))};va.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};va.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};va.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};va.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};va.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};va.toDosTime=function(t){return va.getLongBytes(va.dateToDos(t))}});var Z9=m((XQr,f1e)=>{var a1e=kP(),c1e=8,l1e=1,kPt=4,OPt=2,u1e=64,d1e=2048,bi=f1e.exports=function(){return this instanceof bi?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new bi};bi.prototype.encode=function(){return a1e.getShortBytes((this.descriptor?c1e:0)|(this.utf8?d1e:0)|(this.encryption?l1e:0)|(this.strongEncryption?u1e:0))};bi.prototype.parse=function(t,e){var r=a1e.getShortBytesValue(t,e),n=new bi;return n.useDataDescriptor((r&c1e)!==0),n.useUTF8ForNames((r&d1e)!==0),n.useStrongEncryption((r&u1e)!==0),n.useEncryption((r&l1e)!==0),n.setSlidingDictionarySize((r&OPt)!==0?8192:4096),n.setNumberOfShannonFanoTrees((r&kPt)!==0?3:2),n};bi.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};bi.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};bi.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};bi.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};bi.prototype.useDataDescriptor=function(t){this.descriptor=t};bi.prototype.usesDataDescriptor=function(){return this.descriptor};bi.prototype.useEncryption=function(t){this.encryption=t};bi.prototype.usesEncryption=function(){return this.encryption};bi.prototype.useStrongEncryption=function(t){this.strongEncryption=t};bi.prototype.usesStrongEncryption=function(){return this.strongEncryption};bi.prototype.useUTF8ForNames=function(t){this.utf8=t};bi.prototype.usesUTF8ForNames=function(){return this.utf8}});var p1e=m((ZQr,h1e)=>{h1e.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var eY=m((e1r,A1e)=>{A1e.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var tY=m((t1r,C1e)=>{var LPt=require("util").inherits,FPt=LW(),g1e=PP(),y1e=Z9(),m1e=p1e(),fs=eY(),E1e=kP(),ct=C1e.exports=function(t){if(!(this instanceof ct))return new ct(t);g1e.call(this),this.platform=fs.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new y1e,this.crc=0,this.time=-1,this.minver=fs.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};LPt(ct,g1e);ct.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};ct.prototype.getComment=function(){return this.comment!==null?this.comment:""};ct.prototype.getCompressedSize=function(){return this.csize};ct.prototype.getCrc=function(){return this.crc};ct.prototype.getExternalAttributes=function(){return this.exattr};ct.prototype.getExtra=function(){return this.extra!==null?this.extra:fs.EMPTY};ct.prototype.getGeneralPurposeBit=function(){return this.gpb};ct.prototype.getInternalAttributes=function(){return this.inattr};ct.prototype.getLastModifiedDate=function(){return this.getTime()};ct.prototype.getLocalFileDataExtra=function(){return this.getExtra()};ct.prototype.getMethod=function(){return this.method};ct.prototype.getName=function(){return this.name};ct.prototype.getPlatform=function(){return this.platform};ct.prototype.getSize=function(){return this.size};ct.prototype.getTime=function(){return this.time!==-1?E1e.dosToDate(this.time):-1};ct.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};ct.prototype.getUnixMode=function(){return this.platform!==fs.PLATFORM_UNIX?0:this.getExternalAttributes()>>fs.SHORT_SHIFT&fs.SHORT_MASK};ct.prototype.getVersionNeededToExtract=function(){return this.minver};ct.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};ct.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};ct.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};ct.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};ct.prototype.setExtra=function(t){this.extra=t};ct.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof y1e))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};ct.prototype.setInternalAttributes=function(t){this.inattr=t};ct.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};ct.prototype.setName=function(t,e=!1){t=FPt(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};ct.prototype.setPlatform=function(t){this.platform=t};ct.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};ct.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=E1e.dateToDos(t,e)};ct.prototype.setUnixMode=function(t){t|=this.isDirectory()?fs.S_IFDIR:fs.S_IFREG;var e=0;e|=t<<fs.SHORT_SHIFT|(this.isDirectory()?fs.S_DOS_D:fs.S_DOS_A),this.setExternalAttributes(e),this.mode=t&fs.MODE_MASK,this.platform=fs.PLATFORM_UNIX};ct.prototype.setVersionNeededToExtract=function(t){this.minver=t};ct.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};ct.prototype.isUnixSymlink=function(){return(this.getUnixMode()&m1e.FILE_TYPE_FLAG)===m1e.LINK_FLAG};ct.prototype.isZip64=function(){return this.csize>fs.ZIP64_MAGIC||this.size>fs.ZIP64_MAGIC}});var rY=m((n1r,b1e)=>{var r1r=require("stream").Stream,MPt=wA().PassThrough,UPt=$Q(),qPt=b1e.exports={};qPt.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(UPt(t)&&!t._readableState){var e=new MPt;return t.pipe(e),e}return t}});var iY=m((i1r,w1e)=>{var GPt=require("util").inherits,HPt=$Q(),nY=wA().Transform,VPt=PP(),zPt=rY(),To=w1e.exports=function(t){if(!(this instanceof To))return new To(t);nY.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};GPt(To,nY);To.prototype._appendBuffer=function(t,e,r){};To.prototype._appendStream=function(t,e,r){};To.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};To.prototype._finish=function(t){};To.prototype._normalizeEntry=function(t){};To.prototype._transform=function(t,e,r){r(null,t)};To.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof VPt)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=zPt.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(HPt(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};To.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};To.prototype.getBytesWritten=function(){return this.offset};To.prototype.write=function(t,e){return t&&(this.offset+=t.length),nY.prototype.write.call(this,t,e)}});var OP=m(sY=>{var I1e;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof sY=="object"?t(sY):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(I1e={}):t(I1e={})})(function(t){t.version="1.2.2";function e(){for(var v=0,j=new Array(256),D=0;D!=256;++D)v=D,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,j[D]=v;return typeof Int32Array<"u"?new Int32Array(j):j}o(e,"signed_crc_table");var r=e();function n(v){var j=0,D=0,H=0,V=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(H=0;H!=256;++H)V[H]=v[H];for(H=0;H!=256;++H)for(D=v[H],j=256+H;j<4096;j+=256)D=V[j]=D>>>8^v[D&255];var J=[];for(H=1;H!=16;++H)J[H-1]=typeof Int32Array<"u"?V.subarray(H*256,H*256+256):V.slice(H*256,H*256+256);return J}o(n,"slice_by_16_tables");var i=n(r),s=i[0],a=i[1],c=i[2],l=i[3],u=i[4],d=i[5],f=i[6],h=i[7],p=i[8],g=i[9],A=i[10],E=i[11],y=i[12],C=i[13],w=i[14];function B(v,j){for(var D=j^-1,H=0,V=v.length;H<V;)D=D>>>8^r[(D^v.charCodeAt(H++))&255];return~D}o(B,"crc32_bstr");function Q(v,j){for(var D=j^-1,H=v.length-15,V=0;V<H;)D=w[v[V++]^D&255]^C[v[V++]^D>>8&255]^y[v[V++]^D>>16&255]^E[v[V++]^D>>>24]^A[v[V++]]^g[v[V++]]^p[v[V++]]^h[v[V++]]^f[v[V++]]^d[v[V++]]^u[v[V++]]^l[v[V++]]^c[v[V++]]^a[v[V++]]^s[v[V++]]^r[v[V++]];for(H+=15;V<H;)D=D>>>8^r[(D^v[V++])&255];return~D}o(Q,"crc32_buf");function U(v,j){for(var D=j^-1,H=0,V=v.length,J=0,oe=0;H<V;)J=v.charCodeAt(H++),J<128?D=D>>>8^r[(D^J)&255]:J<2048?(D=D>>>8^r[(D^(192|J>>6&31))&255],D=D>>>8^r[(D^(128|J&63))&255]):J>=55296&&J<57344?(J=(J&1023)+64,oe=v.charCodeAt(H++)&1023,D=D>>>8^r[(D^(240|J>>8&7))&255],D=D>>>8^r[(D^(128|J>>2&63))&255],D=D>>>8^r[(D^(128|oe>>6&15|(J&3)<<4))&255],D=D>>>8^r[(D^(128|oe&63))&255]):(D=D>>>8^r[(D^(224|J>>12&15))&255],D=D>>>8^r[(D^(128|J>>6&63))&255],D=D>>>8^r[(D^(128|J&63))&255]);return~D}o(U,"crc32_str"),t.table=r,t.bstr=B,t.buf=Q,t.str=U})});var B1e=m((a1r,S1e)=>{"use strict";var{Transform:$Pt}=wA(),jPt=OP(),oY=class extends $Pt{static{o(this,"CRC32Stream")}constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,n){e&&(this.checksum=jPt.buf(e,this.checksum)>>>0,this.rawSize+=e.length),n(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};S1e.exports=oY});var v1e=m((l1r,x1e)=>{"use strict";var{DeflateRaw:WPt}=require("zlib"),JPt=OP(),aY=class extends WPt{static{o(this,"DeflateCRC32Stream")}constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,r){return e&&(this.compressedSize+=e.length),super.push(e,r)}_transform(e,r,n){e&&(this.checksum=JPt.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,n)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};x1e.exports=aY});var cY=m((d1r,N1e)=>{"use strict";N1e.exports={CRC32Stream:B1e(),DeflateCRC32Stream:v1e()}});var R1e=m((A1r,T1e)=>{var YPt=require("util").inherits,KPt=OP(),{CRC32Stream:XPt}=cY(),{DeflateCRC32Stream:ZPt}=cY(),_1e=iY(),f1r=tY(),h1r=Z9(),nt=eY(),p1r=rY(),Le=kP(),ii=T1e.exports=function(t){if(!(this instanceof ii))return new ii(t);t=this.options=this._defaults(t),_1e.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};YPt(ii,_1e);ii.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};ii.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(nt.METHOD_STORED);var n=t.getMethod();if(n===nt.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(KPt.buf(e)>>>0)),this._writeLocalFileHeader(t),n===nt.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(n===nt.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+n+" not implemented"));return}};ii.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(nt.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var n=this._smartStream(t,r);e.once("error",function(i){n.emit("error",i),n.end()}),e.pipe(n)};ii.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=nt.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};ii.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};ii.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(nt.METHOD_DEFLATED),t.getMethod()===nt.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(nt.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};ii.prototype._smartStream=function(t,e){var r=t.getMethod()===nt.METHOD_DEFLATED,n=r?new ZPt(this.options.zlib):new XPt,i=null;function s(){var a=n.digest().readUInt32BE(0);t.setCrc(a),t.setSize(n.size()),t.setCompressedSize(n.size(!0)),this._afterAppend(t),e(i,t)}return o(s,"handleStuff"),n.once("end",s.bind(this)),n.once("error",function(a){i=a}),n.pipe(this,{end:!1}),n};ii.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=nt.ZIP64_MAGIC_SHORT,e=nt.ZIP64_MAGIC,r=nt.ZIP64_MAGIC),this.write(Le.getLongBytes(nt.SIG_EOCD)),this.write(nt.SHORT_ZERO),this.write(nt.SHORT_ZERO),this.write(Le.getShortBytes(t)),this.write(Le.getShortBytes(t)),this.write(Le.getLongBytes(e)),this.write(Le.getLongBytes(r));var n=this.getComment(),i=Buffer.byteLength(n);this.write(Le.getShortBytes(i)),this.write(n)};ii.prototype._writeCentralDirectoryZip64=function(){this.write(Le.getLongBytes(nt.SIG_ZIP64_EOCD)),this.write(Le.getEightBytes(44)),this.write(Le.getShortBytes(nt.MIN_VERSION_ZIP64)),this.write(Le.getShortBytes(nt.MIN_VERSION_ZIP64)),this.write(nt.LONG_ZERO),this.write(nt.LONG_ZERO),this.write(Le.getEightBytes(this._entries.length)),this.write(Le.getEightBytes(this._entries.length)),this.write(Le.getEightBytes(this._archive.centralLength)),this.write(Le.getEightBytes(this._archive.centralOffset)),this.write(Le.getLongBytes(nt.SIG_ZIP64_EOCD_LOC)),this.write(nt.LONG_ZERO),this.write(Le.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(Le.getLongBytes(1))};ii.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),n=t._offsets.file,i=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||n>nt.ZIP64_MAGIC){i=nt.ZIP64_MAGIC,s=nt.ZIP64_MAGIC,n=nt.ZIP64_MAGIC,t.setVersionNeededToExtract(nt.MIN_VERSION_ZIP64);var a=Buffer.concat([Le.getShortBytes(nt.ZIP64_EXTRA_ID),Le.getShortBytes(24),Le.getEightBytes(t.getSize()),Le.getEightBytes(t.getCompressedSize()),Le.getEightBytes(t._offsets.file)],28);t.setExtra(a)}this.write(Le.getLongBytes(nt.SIG_CFH)),this.write(Le.getShortBytes(t.getPlatform()<<8|nt.VERSION_MADEBY)),this.write(Le.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(Le.getShortBytes(r)),this.write(Le.getLongBytes(t.getTimeDos())),this.write(Le.getLongBytes(t.getCrc())),this.write(Le.getLongBytes(s)),this.write(Le.getLongBytes(i));var c=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(c=Buffer.from(c),l=Buffer.from(l)),this.write(Le.getShortBytes(c.length)),this.write(Le.getShortBytes(u.length)),this.write(Le.getShortBytes(l.length)),this.write(nt.SHORT_ZERO),this.write(Le.getShortBytes(t.getInternalAttributes())),this.write(Le.getLongBytes(t.getExternalAttributes())),this.write(Le.getLongBytes(n)),this.write(c),this.write(u),this.write(l)};ii.prototype._writeDataDescriptor=function(t){this.write(Le.getLongBytes(nt.SIG_DD)),this.write(Le.getLongBytes(t.getCrc())),t.isZip64()?(this.write(Le.getEightBytes(t.getCompressedSize())),this.write(Le.getEightBytes(t.getSize()))):(this.write(Le.getLongBytes(t.getCompressedSize())),this.write(Le.getLongBytes(t.getSize())))};ii.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),n=t.getName(),i=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(nt.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(n=Buffer.from(n)),t._offsets.file=this.offset,this.write(Le.getLongBytes(nt.SIG_LFH)),this.write(Le.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(Le.getShortBytes(r)),this.write(Le.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(nt.LONG_ZERO),this.write(nt.LONG_ZERO),this.write(nt.LONG_ZERO)):(this.write(Le.getLongBytes(t.getCrc())),this.write(Le.getLongBytes(t.getCompressedSize())),this.write(Le.getLongBytes(t.getSize()))),this.write(Le.getShortBytes(n.length)),this.write(Le.getShortBytes(i.length)),this.write(n),this.write(i),t._offsets.contents=this.offset};ii.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};ii.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>nt.ZIP64_MAGIC_SHORT||this._archive.centralLength>nt.ZIP64_MAGIC||this._archive.centralOffset>nt.ZIP64_MAGIC};ii.prototype.setComment=function(t){this._archive.comment=t}});var lY=m((g1r,D1e)=>{D1e.exports={ArchiveEntry:PP(),ZipArchiveEntry:tY(),ArchiveOutputStream:iY(),ZipArchiveOutputStream:R1e()}});var P1e=m((y1r,Q1e)=>{var ekt=require("util").inherits,dY=lY().ZipArchiveOutputStream,tkt=lY().ZipArchiveEntry,uY=VE(),zE=Q1e.exports=function(t){if(!(this instanceof zE))return new zE(t);t=this.options=t||{},t.zlib=t.zlib||{},dY.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};ekt(zE,dY);zE.prototype._normalizeFileData=function(t){t=uY.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",r=t.type==="symlink";return t.name&&(t.name=uY.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=uY.dateify(t.date),t};zE.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var n=new tkt(e.name);return n.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&n.setName(e.name,!0),e.store&&n.setMethod(0),e.comment.length>0&&n.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),n.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),dY.prototype.entry.call(this,n,t,r)};zE.prototype.finalize=function(){this.finish()}});var O1e=m((E1r,k1e)=>{var rkt=P1e(),nkt=VE(),Xf=o(function(t){if(!(this instanceof Xf))return new Xf(t);t=this.options=nkt.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new rkt(t)},"Zip");Xf.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Xf.prototype.finalize=function(){this.engine.finalize()};Xf.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Xf.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Xf.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};k1e.exports=Xf});var F1e=m((b1r,L1e)=>{L1e.exports=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t)});var U1e=m((w1r,M1e)=>{M1e.exports=typeof process<"u"&&typeof process.nextTick=="function"?process.nextTick.bind(process):F1e()});var G1e=m((S1r,q1e)=>{q1e.exports=class{static{o(this,"FixedFIFO")}constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var fY=m((v1r,V1e)=>{var H1e=G1e();V1e.exports=class{static{o(this,"FastFIFO")}constructor(e){this.hwm=e||16,this.head=new H1e(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new H1e(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var NY=m((_1r,hPe)=>{var{EventEmitter:ikt}=require("events"),GP=new Error("Stream was destroyed"),hY=new Error("Premature close"),J1e=U1e(),Y1e=fY(),$r=(1<<28)-1,QA=1,CY=2,_A=4,eB=8,K1e=$r^QA,skt=$r^CY,oB=16,tB=32,YE=64,Zf=128,aB=256,bY=512,TA=1024,pY=2048,wY=4096,IY=8192,wc=16384,$E=32768,HP=65536,RA=131072,X1e=aB|bY,okt=oB|HP,akt=YE|oB,ckt=wY|Zf,SY=aB|RA,lkt=$r^oB,ukt=$r^YE,dkt=$r^(YE|HP),fkt=$r^HP,hkt=$r^aB,pkt=$r^(Zf|IY),Akt=$r^TA,z1e=$r^X1e,Z1e=$r^$E,mkt=$r^tB,ePe=$r^RA,gkt=$r^SY,eh=1<<18,WE=2<<18,cB=4<<18,DA=8<<18,lB=16<<18,PA=32<<18,AY=64<<18,jE=128<<18,BY=256<<18,JE=512<<18,tPe=$r^(eh|BY),rPe=$r^cB,ykt=$r^JE,Ekt=$r^lB,Ckt=$r^DA,nPe=$r^jE,bkt=$r^WE,rB=oB|eh,iPe=$r^rB,xY=wc|PA,bd=_A|eB|CY,Ro=bd|QA,sPe=bd|xY,wkt=rPe&ukt,vY=jE|$E,Ikt=vY&iPe,oPe=Ro|Ikt,Skt=Ro|TA|wc,$1e=Ro|wc|Zf,Bkt=Ro|TA|Zf,xkt=Ro|wY|Zf|IY,vkt=Ro|oB|TA|wc|HP|RA,Nkt=bd|TA|wc,_kt=tB|Ro|$E|YE,Tkt=Ro|JE|PA,Rkt=DA|lB,aPe=DA|eh,Dkt=DA|lB|Ro|eh,j1e=Ro|eh|DA,Qkt=cB|eh,Pkt=eh|BY,kkt=Ro|JE|aPe|PA,Okt=lB|bd|JE|PA,Lkt=WE|Ro|jE|cB,LP=Symbol.asyncIterator||Symbol("asyncIterator"),FP=class{static{o(this,"WritableState")}constructor(e,{highWaterMark:r=16384,map:n=null,mapWritable:i,byteLength:s,byteLengthWritable:a}={}){this.stream=e,this.queue=new Y1e,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=a||s||fPe,this.map=i||n,this.afterWrite=Ukt.bind(this),this.afterUpdateNextTick=Hkt.bind(this)}get ended(){return(this.stream._duplexState&PA)!==0}push(e){return this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=DA,!0):(this.stream._duplexState|=Rkt,!1)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=Ckt),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|JE)&rPe}autoBatch(e,r){let n=[],i=this.stream;for(n.push(e);(i._duplexState&j1e)===aPe;)n.push(i._writableState.shift());if((i._duplexState&Ro)!==0)return r(null);i._writev(n,r)}update(){let e=this.stream;e._duplexState|=WE;do{for(;(e._duplexState&j1e)===DA;){let r=this.shift();e._duplexState|=Pkt,e._write(r,this.afterWrite)}(e._duplexState&Qkt)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=bkt}updateNonPrimary(){let e=this.stream;if((e._duplexState&kkt)===JE){e._duplexState=(e._duplexState|eh)&ykt,e._final(Mkt.bind(this));return}if((e._duplexState&bd)===_A){(e._duplexState&vY)===0&&(e._duplexState|=rB,e._destroy(cPe.bind(this)));return}(e._duplexState&oPe)===QA&&(e._duplexState=(e._duplexState|rB)&K1e,e._open(lPe.bind(this)))}continueUpdate(){return(this.stream._duplexState&jE)===0?!1:(this.stream._duplexState&=nPe,!0)}updateCallback(){(this.stream._duplexState&Lkt)===cB?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&jE)===0&&(this.stream._duplexState|=jE,(this.stream._duplexState&WE)===0&&J1e(this.afterUpdateNextTick))}},mY=class{static{o(this,"ReadableState")}constructor(e,{highWaterMark:r=16384,map:n=null,mapReadable:i,byteLength:s,byteLengthReadable:a}={}){this.stream=e,this.queue=new Y1e,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=a||s||fPe,this.map=i||n,this.pipeTo=null,this.afterRead=qkt.bind(this),this.afterUpdateNextTick=Gkt.bind(this)}get ended(){return(this.stream._duplexState&wc)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=bY,this.pipeTo=e,this.pipeline=new yY(this.stream,e,r),r&&this.stream.on("error",W1e),sB(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",W1e),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let n=this.pipeline.done.bind(this.pipeline,e),i=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",n),e.on("close",i),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",Fkt.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|TA)&dkt,!1):(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|Zf)&fkt,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=pkt),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let n=0;n<r.length-1;n++){let i=r[n];this.buffered+=this.byteLength(i),this.queue.push(i)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&$1e)===Zf){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=z1e),(e._duplexState&pY)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=RA,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&$1e)===Zf&&(e._duplexState&X1e)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=z1e),(e._duplexState&pY)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=tB;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&vkt)===RA;)e._duplexState|=okt,e._read(this.afterRead),this.drain();(e._duplexState&xkt)===ckt&&(e._duplexState|=IY,e.emit("readable")),(e._duplexState&akt)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=mkt}updateNonPrimary(){let e=this.stream;if((e._duplexState&Bkt)===TA&&(e._duplexState=(e._duplexState|wc)&Akt,e.emit("end"),(e._duplexState&sPe)===xY&&(e._duplexState|=_A),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&bd)===_A){(e._duplexState&vY)===0&&(e._duplexState|=rB,e._destroy(cPe.bind(this)));return}(e._duplexState&oPe)===QA&&(e._duplexState=(e._duplexState|rB)&K1e,e._open(lPe.bind(this)))}continueUpdate(){return(this.stream._duplexState&$E)===0?!1:(this.stream._duplexState&=Z1e,!0)}updateCallback(){(this.stream._duplexState&_kt)===YE?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&$E)===0&&(this.stream._duplexState|=$E,(this.stream._duplexState&tB)===0&&J1e(this.afterUpdateNextTick))}},gY=class{static{o(this,"TransformState")}constructor(e){this.data=null,this.afterTransform=zkt.bind(e),this.afterFinal=null}},yY=class{static{o(this,"Pipeline")}constructor(e,r,n){this.from=e,this.to=r,this.afterPipe=n,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&wc)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&wc)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function Fkt(){this.stream._duplexState|=bY,this.updateCallback()}o(Fkt,"afterDrain");function Mkt(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&bd)===0&&(e._duplexState|=PA,e.emit("finish")),(e._duplexState&sPe)===xY&&(e._duplexState|=_A),e._duplexState&=tPe,(e._duplexState&WE)===0?this.update():this.updateNextTick()}o(Mkt,"afterFinal");function cPe(t){let e=this.stream;!t&&this.error!==GP&&(t=this.error),t&&e.emit("error",t),e._duplexState|=eB,e.emit("close");let r=e._readableState,n=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),n!==null){for(;n.drains!==null&&n.drains.length>0;)n.drains.shift().resolve(!1);n.pipeline!==null&&n.pipeline.done(e,t)}}o(cPe,"afterDestroy");function Ukt(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=tPe,this.drains!==null&&Vkt(this.drains),(e._duplexState&Dkt)===lB&&(e._duplexState&=Ekt,(e._duplexState&AY)===AY&&e.emit("drain")),this.updateCallback()}o(Ukt,"afterWrite");function qkt(t){t&&this.stream.destroy(t),this.stream._duplexState&=lkt,this.readAhead===!1&&(this.stream._duplexState&aB)===0&&(this.stream._duplexState&=ePe),this.updateCallback()}o(qkt,"afterRead");function Gkt(){(this.stream._duplexState&tB)===0&&(this.stream._duplexState&=Z1e,this.update())}o(Gkt,"updateReadNT");function Hkt(){(this.stream._duplexState&WE)===0&&(this.stream._duplexState&=nPe,this.update())}o(Hkt,"updateWriteNT");function Vkt(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}o(Vkt,"tickDrains");function lPe(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&_A)===0&&((e._duplexState&Skt)===0&&(e._duplexState|=YE),(e._duplexState&Tkt)===0&&(e._duplexState|=cB),e.emit("open")),e._duplexState&=iPe,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}o(lPe,"afterOpen");function zkt(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}o(zkt,"afterTransform");function $kt(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=pY|SY,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=wY,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=AY,this._writableState.updateNextTick())}o($kt,"newListener");var nB=class extends ikt{static{o(this,"Stream")}constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",Xkt.bind(this))),this.on("newListener",$kt)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&eB)!==0}get destroying(){return(this._duplexState&bd)!==0}destroy(e){(this._duplexState&bd)===0&&(e||(e=GP),this._duplexState=(this._duplexState|_A)&wkt,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=CY,this._predestroy(),this._duplexState&=skt,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},MP=class t extends nB{static{o(this,"Readable")}constructor(e){super(e),this._duplexState|=QA|PA|RA,this._readableState=new mY(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=ePe),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick())}_read(e){e(null)}pipe(e,r){return this._readableState.updateNextTick(),this._readableState.pipe(e,r),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTick(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTick(),this._readableState.unshift(e)}resume(){return this._duplexState|=SY,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?gkt:hkt,this}static _fromAsyncIterator(e,r){let n,i=new t({...r,read(a){e.next().then(s).then(a.bind(null,null)).catch(a)},predestroy(){n=e.return()},destroy(a){if(!n)return a(null);n.then(a.bind(null,null)).catch(a)}});return i;function s(a){a.done?i.push(null):i.push(a.value)}}static from(e,r){if(Ykt(e))return e;if(e[LP])return this._fromAsyncIterator(e[LP](),r);Array.isArray(e)||(e=e===void 0?[]:[e]);let n=0;return new t({...r,read(i){this.push(n===e.length?null:e[n++]),i(null)}})}static isBackpressured(e){return(e._duplexState&Nkt)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&aB)===0}[LP](){let e=this,r=null,n=null,i=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",a),{[LP](){return this},next(){return new Promise(function(u,d){n=u,i=d;let f=e.read();f!==null?c(f):(e._duplexState&eB)!==0&&c(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){n!==null&&c(e.read())}o(s,"onreadable");function a(){n!==null&&c(null)}o(a,"onclose");function c(u){i!==null&&(r?i(r):u===null&&(e._duplexState&wc)===0?i(GP):n({value:u,done:u===null}),i=n=null)}o(c,"ondata");function l(u){return e.destroy(u),new Promise((d,f)=>{if(e._duplexState&eB)return d({value:void 0,done:!0});e.once("close",function(){u?f(u):d({value:void 0,done:!0})})})}o(l,"destroy")}},UP=class extends nB{static{o(this,"Writable")}constructor(e){super(e),this._duplexState|=QA|wc,this._writableState=new FP(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&Okt)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,i=(Zkt(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&BY?1:0);return i===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:i,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},iB=class extends MP{static{o(this,"Duplex")}constructor(e){super(e),this._duplexState=QA|this._duplexState&RA,this._writableState=new FP(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},qP=class extends iB{static{o(this,"Transform")}constructor(e){super(e),this._transformState=new gY(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(jkt.bind(this))}},EY=class extends qP{static{o(this,"PassThrough")}};function jkt(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}o(jkt,"transformAfterFlush");function Wkt(...t){return new Promise((e,r)=>uPe(...t,n=>{if(n)return r(n);e()}))}o(Wkt,"pipelinePromise");function uPe(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],n=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let i=r[0],s=null,a=null;for(let u=1;u<r.length;u++)s=r[u],sB(i)?i.pipe(s,l):(c(i,!0,u>1,l),i.pipe(s)),i=s;if(n){let u=!1,d=sB(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",f=>{a===null&&(a=f)}),s.on("finish",()=>{u=!0,d||n(a)}),d&&s.on("close",()=>n(a||(u?null:hY)))}return s;function c(u,d,f,h){u.on("error",h),u.on("close",p);function p(){if(d&&u._readableState&&!u._readableState.ended||f&&u._writableState&&!u._writableState.ended)return h(hY)}o(p,"onclose")}function l(u){if(!(!u||a)){a=u;for(let d of r)d.destroy(u)}}}o(uPe,"pipeline");function dPe(t){return!!t._readableState||!!t._writableState}o(dPe,"isStream");function sB(t){return typeof t._duplexState=="number"&&dPe(t)}o(sB,"isStreamx");function Jkt(t){let e=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return e===GP?null:e}o(Jkt,"getStreamError");function Ykt(t){return sB(t)&&t.readable}o(Ykt,"isReadStreamx");function Kkt(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}o(Kkt,"isTypedArray");function fPe(t){return Kkt(t)?t.byteLength:1024}o(fPe,"defaultByteLength");function W1e(){}o(W1e,"noop");function Xkt(){this.destroy(new Error("Stream aborted."))}o(Xkt,"abort");function Zkt(t){return t._writev!==UP.prototype._writev&&t._writev!==iB.prototype._writev}o(Zkt,"isWritev");hPe.exports={pipeline:uPe,pipelinePromise:Wkt,isStream:dPe,isStreamx:sB,getStreamError:Jkt,Stream:nB,Writable:UP,Readable:MP,Duplex:iB,Transform:qP,PassThrough:EY}});var VP=m((R1r,pPe)=>{function eOt(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}o(eOt,"isBuffer");function tOt(t){return Buffer.isEncoding(t)}o(tOt,"isEncoding");function rOt(t,e,r){return Buffer.alloc(t,e,r)}o(rOt,"alloc");function nOt(t){return Buffer.allocUnsafe(t)}o(nOt,"allocUnsafe");function iOt(t){return Buffer.allocUnsafeSlow(t)}o(iOt,"allocUnsafeSlow");function sOt(t,e){return Buffer.byteLength(t,e)}o(sOt,"byteLength");function oOt(t,e){return Buffer.compare(t,e)}o(oOt,"compare");function aOt(t,e){return Buffer.concat(t,e)}o(aOt,"concat");function cOt(t,e,r,n,i){return wn(t).copy(e,r,n,i)}o(cOt,"copy");function lOt(t,e){return wn(t).equals(e)}o(lOt,"equals");function uOt(t,e,r,n,i){return wn(t).fill(e,r,n,i)}o(uOt,"fill");function dOt(t,e,r){return Buffer.from(t,e,r)}o(dOt,"from");function fOt(t,e,r,n){return wn(t).includes(e,r,n)}o(fOt,"includes");function hOt(t,e,r,n){return wn(t).indexOf(e,r,n)}o(hOt,"indexOf");function pOt(t,e,r,n){return wn(t).lastIndexOf(e,r,n)}o(pOt,"lastIndexOf");function AOt(t){return wn(t).swap16()}o(AOt,"swap16");function mOt(t){return wn(t).swap32()}o(mOt,"swap32");function gOt(t){return wn(t).swap64()}o(gOt,"swap64");function wn(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}o(wn,"toBuffer");function yOt(t,e,r,n){return wn(t).toString(e,r,n)}o(yOt,"toString");function EOt(t,e,r,n,i){return wn(t).write(e,r,n,i)}o(EOt,"write");function COt(t,e,r){return wn(t).writeDoubleLE(e,r)}o(COt,"writeDoubleLE");function bOt(t,e,r){return wn(t).writeFloatLE(e,r)}o(bOt,"writeFloatLE");function wOt(t,e,r){return wn(t).writeUInt32LE(e,r)}o(wOt,"writeUInt32LE");function IOt(t,e,r){return wn(t).writeInt32LE(e,r)}o(IOt,"writeInt32LE");function SOt(t,e){return wn(t).readDoubleLE(e)}o(SOt,"readDoubleLE");function BOt(t,e){return wn(t).readFloatLE(e)}o(BOt,"readFloatLE");function xOt(t,e){return wn(t).readUInt32LE(e)}o(xOt,"readUInt32LE");function vOt(t,e){return wn(t).readInt32LE(e)}o(vOt,"readInt32LE");pPe.exports={isBuffer:eOt,isEncoding:tOt,alloc:rOt,allocUnsafe:nOt,allocUnsafeSlow:iOt,byteLength:sOt,compare:oOt,concat:aOt,copy:cOt,equals:lOt,fill:uOt,from:dOt,includes:fOt,indexOf:hOt,lastIndexOf:pOt,swap16:AOt,swap32:mOt,swap64:gOt,toBuffer:wn,toString:yOt,write:EOt,writeDoubleLE:COt,writeFloatLE:bOt,writeUInt32LE:wOt,writeInt32LE:IOt,readDoubleLE:SOt,readFloatLE:BOt,readUInt32LE:xOt,readInt32LE:vOt}});var RY=m(XE=>{var _t=VP(),NOt="0000000000000000000",_Ot="7777777777777777777",zP=48,APe=_t.from([117,115,116,97,114,0]),TOt=_t.from([zP,zP]),ROt=_t.from([117,115,116,97,114,32]),DOt=_t.from([32,0]),QOt=4095,uB=257,TY=263;XE.decodeLongPath=o(function(e,r){return KE(e,0,e.length,r)},"decodeLongPath");XE.encodePax=o(function(e){let r="";e.name&&(r+=_Y(" path="+e.name+`
|
|
`)),e.linkname&&(r+=_Y(" linkpath="+e.linkname+`
|
|
`));let n=e.pax;if(n)for(let i in n)r+=_Y(" "+i+"="+n[i]+`
|
|
`);return _t.from(r)},"encodePax");XE.decodePax=o(function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let i=parseInt(_t.toString(e.subarray(0,n)),10);if(!i)return r;let s=_t.toString(e.subarray(n+1,i-1)),a=s.indexOf("=");if(a===-1)return r;r[s.slice(0,a)]=s.slice(a+1),e=e.subarray(i)}return r},"decodePax");XE.encode=o(function(e){let r=_t.alloc(512),n=e.name,i="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),_t.byteLength(n)!==n.length)return null;for(;_t.byteLength(n)>100;){let s=n.indexOf("/");if(s===-1)return null;i+=i?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return _t.byteLength(n)>100||_t.byteLength(i)>155||e.linkname&&_t.byteLength(e.linkname)>100?null:(_t.write(r,n),_t.write(r,rh(e.mode&QOt,6),100),_t.write(r,rh(e.uid,6),108),_t.write(r,rh(e.gid,6),116),UOt(e.size,r,124),_t.write(r,rh(e.mtime.getTime()/1e3|0,11),136),r[156]=zP+FOt(e.type),e.linkname&&_t.write(r,e.linkname,157),_t.copy(APe,r,uB),_t.copy(TOt,r,TY),e.uname&&_t.write(r,e.uname,265),e.gname&&_t.write(r,e.gname,297),_t.write(r,rh(e.devmajor||0,6),329),_t.write(r,rh(e.devminor||0,6),337),i&&_t.write(r,i,345),_t.write(r,rh(gPe(r),6),148),r)},"encode");XE.decode=o(function(e,r,n){let i=e[156]===0?0:e[156]-zP,s=KE(e,0,100,r),a=th(e,100,8),c=th(e,108,8),l=th(e,116,8),u=th(e,124,12),d=th(e,136,12),f=LOt(i),h=e[157]===0?null:KE(e,157,100,r),p=KE(e,265,32),g=KE(e,297,32),A=th(e,329,8),E=th(e,337,8),y=gPe(e);if(y===256)return null;if(y!==th(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(POt(e))e[345]&&(s=KE(e,345,155,r)+"/"+s);else if(!kOt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return i===0&&s&&s[s.length-1]==="/"&&(i=5),{name:s,mode:a,uid:c,gid:l,size:u,mtime:new Date(1e3*d),type:f,linkname:h,uname:p,gname:g,devmajor:A,devminor:E,pax:null}},"decode");function POt(t){return _t.equals(APe,t.subarray(uB,uB+6))}o(POt,"isUSTAR");function kOt(t){return _t.equals(ROt,t.subarray(uB,uB+6))&&_t.equals(DOt,t.subarray(TY,TY+2))}o(kOt,"isGNU");function OOt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}o(OOt,"clamp");function LOt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}o(LOt,"toType");function FOt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}o(FOt,"toTypeflag");function mPe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}o(mPe,"indexOf");function gPe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}o(gPe,"cksum");function rh(t,e){return t=t.toString(8),t.length>e?_Ot.slice(0,e)+" ":NOt.slice(0,e-t.length)+t+" "}o(rh,"encodeOct");function MOt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}o(MOt,"encodeSizeBin");function UOt(t,e,r){t.toString(8).length>11?MOt(t,e,r):_t.write(e,rh(t,11),r)}o(UOt,"encodeSize");function qOt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let a=t[n];e?r.push(a):r.push(255-a)}let i=0,s=r.length;for(n=0;n<s;n++)i+=r[n]*Math.pow(256,n);return e?i:-1*i}o(qOt,"parse256");function th(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return qOt(t);{for(;e<t.length&&t[e]===32;)e++;let n=OOt(mPe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(_t.toString(t.subarray(e,n)),8)}}o(th,"decodeOct");function KE(t,e,r,n){return _t.toString(t.subarray(e,mPe(t,0,e,e+r)),n)}o(KE,"decodeStr");function _Y(t){let e=_t.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}o(_Y,"addLength")});var wPe=m((k1r,bPe)=>{var{Writable:GOt,Readable:HOt,getStreamError:yPe}=NY(),VOt=fY(),EPe=VP(),ZE=RY(),zOt=EPe.alloc(0),QY=class{static{o(this,"BufferList")}constructor(){this.buffered=0,this.shifted=0,this.queue=new VOt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return zOt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return EPe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let i=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,i}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},PY=class extends HOt{static{o(this,"Source")}constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(yPe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=CPe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},kY=class extends GOt{static{o(this,"Extract")}constructor(e){super(e),e||(e={}),this._buffer=new QY,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=DY,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=ZE.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=ZE.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=ZE.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=ZE.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?ZE.decodePax(e):Object.assign({},this._paxGlobal,ZE.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=CPe(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new PY(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=DY,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(yPe(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,n=null,i=null,s=null,a=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",d),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return f(null)},throw(h){return f(h)}};function c(h){if(!s)return;let p=s;s=null,p(h)}o(c,"consumeCallback");function l(h,p){if(e)return p(e);if(i){h({value:i,done:!1}),i=null;return}r=h,n=p,c(null),a._finished&&r&&(r({value:void 0,done:!0}),r=n=null)}o(l,"onnext");function u(h,p,g){s=g,p.on("error",DY),r?(r({value:p,done:!1}),r=n=null):i=p}o(u,"onentry");function d(){c(e),r&&(e?n(e):r({value:void 0,done:!0}),r=n=null)}o(d,"onclose");function f(h){return a.destroy(h),c(h),new Promise((p,g)=>{if(a.destroyed)return p({value:void 0,done:!0});a.once("close",function(){h?g(h):p({value:void 0,done:!0})})})}o(f,"destroy")}};bPe.exports=o(function(e){return new kY(e)},"extract");function DY(){}o(DY,"noop");function CPe(t){return t&=511,t&&512-t}o(CPe,"overflow")});var SPe=m((L1r,OY)=>{var IPe={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{OY.exports=require("fs").constants||IPe}catch{OY.exports=IPe}});var _Pe=m((F1r,NPe)=>{var{Readable:$Ot,Writable:jOt,getStreamError:BPe}=NY(),kA=VP(),eC=SPe(),$P=RY(),WOt=493,JOt=420,xPe=kA.alloc(1024),FY=class extends jOt{static{o(this,"Sink")}constructor(e,r,n){super({mapWritable:KOt,eagerOpen:!0}),this.written=0,this.header=r,this._callback=n,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?kA.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?kA.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),vPe(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return BPe(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},MY=class extends $Ot{static{o(this,"Pack")}constructor(e){super(e),this._drain=LY,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,n){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(n=r,r=null),n||(n=LY),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=YOt(e.mode)),e.mode||(e.mode=e.type==="directory"?WOt:JOt),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=kA.from(r));let i=new FY(this,e,n);return kA.isBuffer(r)?(e.size=r.byteLength,i.write(r),i.end(),i):(i._isVoid,i)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(xPe),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=$P.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=$P.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push($P.encode(n)),this.push(r),vPe(this,r.byteLength),n.size=e.size,n.type=e.type,this.push($P.encode(n))}_doDrain(){let e=this._drain;this._drain=LY,e()}_predestroy(){let e=BPe(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};NPe.exports=o(function(e){return new MY(e)},"pack");function YOt(t){switch(t&eC.S_IFMT){case eC.S_IFBLK:return"block-device";case eC.S_IFCHR:return"character-device";case eC.S_IFDIR:return"directory";case eC.S_IFIFO:return"fifo";case eC.S_IFLNK:return"symlink"}return"file"}o(YOt,"modeToType");function LY(){}o(LY,"noop");function vPe(t,e){e&=511,e&&t.push(xPe.subarray(0,512-e))}o(vPe,"overflow");function KOt(t){return kA.isBuffer(t)?t:kA.from(t)}o(KOt,"mapWritable")});var TPe=m(UY=>{UY.extract=wPe();UY.pack=_Pe()});var QPe=m((q1r,DPe)=>{var XOt=require("zlib"),ZOt=TPe(),RPe=VE(),wd=o(function(t){if(!(this instanceof wd))return new wd(t);t=this.options=RPe.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=ZOt.pack(t),this.compressor=!1,t.gzip&&(this.compressor=XOt.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))},"Tar");wd.prototype._onCompressorError=function(t){this.engine.emit("error",t)};wd.prototype.append=function(t,e,r){var n=this;e.mtime=e.date;function i(a,c){if(a){r(a);return}n.engine.entry(e,c,function(l){r(l,e)})}if(o(i,"append"),e.sourceType==="buffer")i(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=n.engine.entry(e,function(a){r(a,e)});t.pipe(s)}else e.sourceType==="stream"&&RPe.collectStream(t,i)};wd.prototype.finalize=function(){this.engine.finalize()};wd.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};wd.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};wd.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};DPe.exports=wd});var OPe=m((H1r,kPe)=>{"use strict";function eLt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}o(eLt,"getDefaultExportFromCjs");var tLt=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function PPe(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}o(PPe,"ensureBuffer");function rLt(t){let e=PPe(4);return e.writeInt32BE(t,0),e}o(rLt,"bufferizeInt");function qY(t,e){t=PPe(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var n=0;n<t.length;n++)r=tLt[(r^t[n])&255]^r>>>8;return r^-1}o(qY,"_crc32");function GY(){return rLt(qY.apply(null,arguments))}o(GY,"crc32");GY.signed=function(){return qY.apply(null,arguments)};GY.unsigned=function(){return qY.apply(null,arguments)>>>0};var nLt=GY,iLt=eLt(nLt);kPe.exports=iLt});var UPe=m((z1r,MPe)=>{var sLt=require("util").inherits,LPe=wA().Transform,oLt=OPe(),FPe=VE(),nh=o(function(t){if(!(this instanceof nh))return new nh(t);t=this.options=FPe.defaults(t,{}),LPe.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]},"Json");sLt(nh,LPe);nh.prototype._transform=function(t,e,r){r(null,t)};nh.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};nh.prototype.append=function(t,e,r){var n=this;e.crc32=0;function i(s,a){if(s){r(s);return}e.size=a.length||0,e.crc32=oLt.unsigned(a),n.files.push(e),r(null,e)}o(i,"onend"),e.sourceType==="buffer"?i(null,t):e.sourceType==="stream"&&FPe.collectStream(t,i)};nh.prototype.finalize=function(){this._writeStringified(),this.end()};MPe.exports=nh});var GPe=m((j1r,qPe)=>{var aLt=i1e(),dB={},ih=o(function(t,e){return ih.create(t,e)},"vending");ih.create=function(t,e){if(dB[t]){var r=new aLt(t,e);return r.setFormat(t),r.setModule(new dB[t](e)),r}else throw new Error("create("+t+"): format not registered")};ih.registerFormat=function(t,e){if(dB[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");dB[t]=e};ih.isRegisteredFormat=function(t){return!!dB[t]};ih.registerFormat("zip",O1e());ih.registerFormat("tar",QPe());ih.registerFormat("json",UPe());qPe.exports=ih});var nke=m(YP=>{"use strict";Object.defineProperty(YP,"__esModule",{value:!0});YP.getProxyUrl=gLt;YP.checkBypass=rke;function gLt(t){let e=t.protocol==="https:";if(rke(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 JP(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new JP(`http://${r}`)}else return}o(gLt,"getProxyUrl");function rke(t){if(!t.hostname)return!1;let e=t.hostname;if(yLt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(rke,"checkBypass");function yLt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(yLt,"isLoopbackAddress");var JP=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var ske=m(Ir=>{"use strict";var ELt=Ir&&Ir.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),CLt=Ir&&Ir.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ek=Ir&&Ir.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&ELt(r,e,n[i]);return CLt(r,e),r}})(),dn=Ir&&Ir.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Ir,"__esModule",{value:!0});Ir.HttpClient=Ir.HttpClientResponse=Ir.HttpClientError=Ir.MediaTypes=Ir.Headers=Ir.HttpCodes=void 0;Ir.getProxyUrl=wLt;Ir.isHttps=NLt;var HY=ek(require("http")),ike=ek(require("https")),VY=ek(nke()),KP=ek(pm()),bLt=ef(),Na;(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"})(Na||(Ir.HttpCodes=Na={}));var hs;(function(t){t.Accept="accept",t.ContentType="content-type"})(hs||(Ir.Headers=hs={}));var Id;(function(t){t.ApplicationJson="application/json"})(Id||(Ir.MediaTypes=Id={}));function wLt(t){let e=VY.getProxyUrl(new URL(t));return e?e.href:""}o(wLt,"getProxyUrl");var ILt=[Na.MovedPermanently,Na.ResourceMoved,Na.SeeOther,Na.TemporaryRedirect,Na.PermanentRedirect],SLt=[Na.BadGateway,Na.ServiceUnavailable,Na.GatewayTimeout],BLt=["OPTIONS","GET","DELETE","HEAD"],xLt=10,vLt=5,XP=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}};Ir.HttpClientError=XP;var ZP=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return dn(this,void 0,void 0,function*(){return new Promise(e=>dn(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 dn(this,void 0,void 0,function*(){return new Promise(e=>dn(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 NLt(t){return new URL(t).protocol==="https:"}o(NLt,"isHttps");var zY=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return dn(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return dn(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return dn(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return dn(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return dn(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return dn(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return dn(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return dn(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return dn(this,arguments,void 0,function*(r,n={}){n[hs.Accept]=this._getExistingOrDefaultHeader(n,hs.Accept,Id.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return dn(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[hs.Accept]=this._getExistingOrDefaultHeader(s,hs.Accept,Id.ApplicationJson),s[hs.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Id.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return dn(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[hs.Accept]=this._getExistingOrDefaultHeader(s,hs.Accept,Id.ApplicationJson),s[hs.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Id.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return dn(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[hs.Accept]=this._getExistingOrDefaultHeader(s,hs.Accept,Id.ApplicationJson),s[hs.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Id.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return dn(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&BLt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===Na.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&ILt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!SLt.includes(u.message.statusCode))return u;l+=1,l<c&&(yield u.readBody(),yield this._performExponentialBackoff(l))}while(l<c);return u})}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,r){return dn(this,void 0,void 0,function*(){return new Promise((n,i)=>{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new ZP(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=VY.getProxyUrl(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?ike:HY;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},hB(this.requestOptions.headers),hB(e||{})):hB(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=hB(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=hB(this.requestOptions.headers)[hs.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[hs.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=VY.getProxyUrl(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||HY.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?KP.httpsOverHttps:KP.httpsOverHttp:l=u?KP.httpOverHttps:KP.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new ike.Agent(c):new HY.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new bLt.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return dn(this,void 0,void 0,function*(){e=Math.min(xLt,e);let r=vLt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return dn(this,void 0,void 0,function*(){return new Promise((n,i)=>dn(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===Na.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new XP(d,s);f.result=a.result,i(f)}else n(a)}))})}};Ir.HttpClient=zY;var hB=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var mke=m((DPr,Ake)=>{Ake.exports=Oi;function Oi(t){if(!(this instanceof Oi))return new Oi(t);this.value=t}o(Oi,"Traverse");Oi.prototype.get=function(t){for(var e=this.value,r=0;r<t.length;r++){var n=t[r];if(!Object.hasOwnProperty.call(e,n)){e=void 0;break}e=e[n]}return e};Oi.prototype.set=function(t,e){for(var r=this.value,n=0;n<t.length-1;n++){var i=t[n];Object.hasOwnProperty.call(r,i)||(r[i]={}),r=r[i]}return r[t[n]]=e,e};Oi.prototype.map=function(t){return hke(this.value,t,!0)};Oi.prototype.forEach=function(t){return this.value=hke(this.value,t,!1),this.value};Oi.prototype.reduce=function(t,e){var r=arguments.length===1,n=r?this.value:e;return this.forEach(function(i){(!this.isRoot||!r)&&(n=t.call(this,n,i))}),n};Oi.prototype.deepEqual=function(t){if(arguments.length!==1)throw new Error("deepEqual requires exactly one object to compare against");var e=!0,r=t;return this.forEach(function(n){var i=(function(){e=!1}).bind(this);if(!this.isRoot){if(typeof r!="object")return i();r=r[this.key]}var s=r;this.post(function(){r=s});var a=o(function(f){return Object.prototype.toString.call(f)},"toS");if(this.circular)Oi(t).get(this.circular.path)!==s&&i();else if(typeof s!=typeof n)i();else if(s===null||n===null||s===void 0||n===void 0)s!==n&&i();else if(s.__proto__!==n.__proto__)i();else if(s!==n){if(typeof s=="function")s instanceof RegExp?s.toString()!=n.toString()&&i():s!==n&&i();else if(typeof s=="object")if(a(n)==="[object Arguments]"||a(s)==="[object Arguments]")a(s)!==a(n)&&i();else if(s instanceof Date||n instanceof Date)(!(s instanceof Date)||!(n instanceof Date)||s.getTime()!==n.getTime())&&i();else{var c=Object.keys(s),l=Object.keys(n);if(c.length!==l.length)return i();for(var u=0;u<c.length;u++){var d=c[u];Object.hasOwnProperty.call(n,d)||i()}}}}),e};Oi.prototype.paths=function(){var t=[];return this.forEach(function(e){t.push(this.path)}),t};Oi.prototype.nodes=function(){var t=[];return this.forEach(function(e){t.push(this.node)}),t};Oi.prototype.clone=function(){var t=[],e=[];return o((function r(n){for(var i=0;i<t.length;i++)if(t[i]===n)return e[i];if(typeof n=="object"&&n!==null){var s=pke(n);return t.push(n),e.push(s),Object.keys(n).forEach(function(a){s[a]=r(n[a])}),t.pop(),e.pop(),s}else return n}),"clone")(this.value)};function hke(t,e,r){var n=[],i=[],s=!0;return o((function a(c){var l=r?pke(c):c,u={},d={node:l,node_:c,path:[].concat(n),parent:i.slice(-1)[0],key:n.slice(-1)[0],isRoot:n.length===0,level:n.length,circular:null,update:o(function(g){d.isRoot||(d.parent.node[d.key]=g),d.node=g},"update"),delete:o(function(){delete d.parent.node[d.key]},"delete"),remove:o(function(){Array.isArray(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key]},"remove"),before:o(function(g){u.before=g},"before"),after:o(function(g){u.after=g},"after"),pre:o(function(g){u.pre=g},"pre"),post:o(function(g){u.post=g},"post"),stop:o(function(){s=!1},"stop")};if(!s)return d;if(typeof l=="object"&&l!==null){d.isLeaf=Object.keys(l).length==0;for(var f=0;f<i.length;f++)if(i[f].node_===c){d.circular=i[f];break}}else d.isLeaf=!0;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot;var h=e.call(d,d.node);if(h!==void 0&&d.update&&d.update(h),u.before&&u.before.call(d,d.node),typeof d.node=="object"&&d.node!==null&&!d.circular){i.push(d);var p=Object.keys(d.node);p.forEach(function(g,A){n.push(g),u.pre&&u.pre.call(d,d.node[g],g);var E=a(d.node[g]);r&&Object.hasOwnProperty.call(d.node,g)&&(d.node[g]=E.node),E.isLast=A==p.length-1,E.isFirst=A==0,u.post&&u.post.call(d,E),n.pop()}),i.pop()}return u.after&&u.after.call(d,d.node),d}),"walker")(t).node}o(hke,"walk");Object.keys(Oi.prototype).forEach(function(t){Oi[t]=function(e){var r=[].slice.call(arguments,1),n=Oi(e);return n[t].apply(n,r)}});function pke(t){if(typeof t=="object"&&t!==null){var e;return Array.isArray(t)?e=[]:t instanceof Date?e=new Date(t):t instanceof Boolean?e=new Boolean(t):t instanceof Number?e=new Number(t):t instanceof String?e=new String(t):e=Object.create(Object.getPrototypeOf(t)),Object.keys(t).forEach(function(r){e[r]=t[r]}),e}else return t}o(pke,"copy")});var yke=m((PPr,gke)=>{var QLt=mke(),PLt=require("events").EventEmitter;gke.exports=rC;function rC(t){var e=rC.saw(t,{}),r=t.call(e.handlers,e);return r!==void 0&&(e.handlers=r),e.record(),e.chain()}o(rC,"Chainsaw");rC.light=o(function(e){var r=rC.saw(e,{}),n=e.call(r.handlers,r);return n!==void 0&&(r.handlers=n),r.chain()},"ChainsawLight");rC.saw=function(t,e){var r=new PLt;return r.handlers=e,r.actions=[],r.chain=function(){var n=QLt(r.handlers).map(function(i){if(this.isRoot)return i;var s=this.path;typeof i=="function"&&this.update(function(){return r.actions.push({path:s,args:[].slice.call(arguments)}),n})});return process.nextTick(function(){r.emit("begin"),r.next()}),n},r.pop=function(){return r.actions.shift()},r.next=function(){var n=r.pop();if(!n)r.emit("end");else if(!n.trap){var i=r.handlers;n.path.forEach(function(s){i=i[s]}),i.apply(r.handlers,n.args)}},r.nest=function(n){var i=[].slice.call(arguments,1),s=!0;if(typeof n=="boolean"){var s=n;n=i.shift()}var a=rC.saw(t,{}),c=t.call(a.handlers,a);c!==void 0&&(a.handlers=c),typeof r.step<"u"&&a.record(),n.apply(a.chain(),i),s!==!1&&a.on("end",r.next)},r.record=function(){kLt(r)},["trap","down","jump"].forEach(function(n){r[n]=function(){throw new Error("To use the trap, down and jump features, please call record() first to start recording actions.")}}),r};function kLt(t){t.step=0,t.pop=function(){return t.actions[t.step++]},t.trap=function(e,r){var n=Array.isArray(e)?e:[e];t.actions.push({path:n,step:t.step,cb:r,trap:!0})},t.down=function(e){var r=(Array.isArray(e)?e:[e]).join("/"),n=t.actions.slice(t.step).map(function(s){return s.trap&&s.step<=t.step?!1:s.path.join("/")==r}).indexOf(!0);n>=0?t.step+=n:t.step=t.actions.length;var i=t.actions[t.step-1];i&&i.trap?(t.step=i.step,i.cb()):t.next()},t.jump=function(e){t.step=e,t.next()}}o(kLt,"upgradeChainsaw")});var Cke=m((OPr,Eke)=>{Eke.exports=ps;function ps(t){if(!(this instanceof ps))return new ps(t);this.buffers=t||[],this.length=this.buffers.reduce(function(e,r){return e+r.length},0)}o(ps,"Buffers");ps.prototype.push=function(){for(var t=0;t<arguments.length;t++)if(!Buffer.isBuffer(arguments[t]))throw new TypeError("Tried to push a non-buffer");for(var t=0;t<arguments.length;t++){var e=arguments[t];this.buffers.push(e),this.length+=e.length}return this.length};ps.prototype.unshift=function(){for(var t=0;t<arguments.length;t++)if(!Buffer.isBuffer(arguments[t]))throw new TypeError("Tried to unshift a non-buffer");for(var t=0;t<arguments.length;t++){var e=arguments[t];this.buffers.unshift(e),this.length+=e.length}return this.length};ps.prototype.copy=function(t,e,r,n){return this.slice(r,n).copy(t,e,0,n-r)};ps.prototype.splice=function(t,e){var r=this.buffers,n=t>=0?t:this.length-t,i=[].slice.call(arguments,2);e===void 0?e=this.length-n:e>this.length-n&&(e=this.length-n);for(var t=0;t<i.length;t++)this.length+=i[t].length;for(var s=new ps,a=0,c=0,l=0;l<r.length&&c+r[l].length<n;l++)c+=r[l].length;if(n-c>0){var u=n-c;if(u+e<r[l].length){s.push(r[l].slice(u,u+e));for(var d=r[l],f=new Buffer(u),t=0;t<u;t++)f[t]=d[t];for(var h=new Buffer(d.length-u-e),t=u+e;t<d.length;t++)h[t-e-u]=d[t];if(i.length>0){var p=i.slice();p.unshift(f),p.push(h),r.splice.apply(r,[l,1].concat(p)),l+=p.length,i=[]}else r.splice(l,1,f,h),l+=2}else s.push(r[l].slice(u)),r[l]=r[l].slice(0,u),l++}for(i.length>0&&(r.splice.apply(r,[l,0].concat(i)),l+=i.length);s.length<e;){var g=r[l],A=g.length,E=Math.min(A,e-s.length);E===A?(s.push(g),r.splice(l,1)):(s.push(g.slice(0,E)),r[l]=r[l].slice(E))}return this.length-=s.length,s};ps.prototype.slice=function(t,e){var r=this.buffers;e===void 0&&(e=this.length),t===void 0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=0;i<r.length&&n+r[i].length<=t;i++)n+=r[i].length;for(var s=new Buffer(e-t),a=0,c=i;a<e-t&&c<r.length;c++){var l=r[c].length,u=a===0?t-n:0,d=a+l>=e-t?Math.min(u+(e-t)-a,l):l;r[c].copy(s,a,u,d),a+=d-u}return s};ps.prototype.pos=function(t){if(t<0||t>=this.length)throw new Error("oob");for(var e=t,r=0,n=null;;){if(n=this.buffers[r],e<n.length)return{buf:r,offset:e};e-=n.length,r++}};ps.prototype.get=o(function(e){var r=this.pos(e);return this.buffers[r.buf].get(r.offset)},"get");ps.prototype.set=o(function(e,r){var n=this.pos(e);return this.buffers[n.buf].set(n.offset,r)},"set");ps.prototype.indexOf=function(t,e){if(typeof t=="string")t=new Buffer(t);else if(!(t instanceof Buffer))throw new Error("Invalid type for a search string");if(!t.length)return 0;if(!this.length)return-1;var r=0,n=0,i=0,s,a=0;if(e){var c=this.pos(e);r=c.buf,n=c.offset,a=e}for(;;){for(;n>=this.buffers[r].length;)if(n=0,r++,r>=this.buffers.length)return-1;var l=this.buffers[r][n];if(l==t[i]){if(i==0&&(s={i:r,j:n,pos:a}),i++,i==t.length)return s.pos}else i!=0&&(r=s.i,n=s.j,a=s.pos,i=0);n++,a++}};ps.prototype.toBuffer=function(){return this.slice()};ps.prototype.toString=function(t,e,r){return this.slice(e,r).toString(t)}});var wke=m((FPr,bke)=>{bke.exports=function(t){function e(n,i){var s=r.store,a=n.split(".");a.slice(0,-1).forEach(function(l){s[l]===void 0&&(s[l]={}),s=s[l]});var c=a[a.length-1];return arguments.length==1?s[c]:s[c]=i}o(e,"getset");var r={get:o(function(n){return e(n)},"get"),set:o(function(n,i){return e(n,i)},"set"),store:t||{}};return r}});var Nke=m((LA,vke)=>{var OLt=yke(),Ike=require("events").EventEmitter,LLt=Cke(),tk=wke(),FLt=require("stream").Stream;LA=vke.exports=function(t,e){if(Buffer.isBuffer(t))return LA.parse(t);var r=LA.stream();return t&&t.pipe?t.pipe(r):t&&(t.on(e||"data",function(n){r.write(n)}),t.on("end",function(){r.end()})),r};LA.stream=function(t){if(t)return LA.apply(null,arguments);var e=null;function r(f,h,p){e={bytes:f,skip:p,cb:o(function(g){e=null,h(g)},"cb")},i()}o(r,"getBytes");var n=null;function i(){if(!e){d&&(u=!0);return}if(typeof e=="function")e();else{var f=n+e.bytes;if(c.length>=f){var h;n==null?(h=c.splice(0,f),e.skip||(h=h.slice())):(e.skip||(h=c.slice(n,f)),n=f),e.skip?e.cb():e.cb(h)}}}o(i,"dispatch");function s(f){function h(){u||f.next()}o(h,"next");var p=xke(function(g,A){return function(E){r(g,function(y){l.set(E,A(y)),h()})}});return p.tap=function(g){f.nest(g,l.store)},p.into=function(g,A){l.get(g)||l.set(g,{});var E=l;l=tk(E.get(g)),f.nest(function(){A.apply(this,arguments),this.tap(function(){l=E})},l.store)},p.flush=function(){l.store={},h()},p.loop=function(g){var A=!1;f.nest(!1,o(function E(){this.vars=l.store,g.call(this,function(){A=!0,h()},l.store),this.tap(function(){A?f.next():E.call(this)}.bind(this))},"loop"),l.store)},p.buffer=function(g,A){typeof A=="string"&&(A=l.get(A)),r(A,function(E){l.set(g,E),h()})},p.skip=function(g){typeof g=="string"&&(g=l.get(g)),r(g,function(){h()})},p.scan=o(function(A,E){if(typeof E=="string")E=new Buffer(E);else if(!Buffer.isBuffer(E))throw new Error("search must be a Buffer or a string");var y=0;e=o(function(){var C=c.indexOf(E,n+y),w=C-n-y;C!==-1?(e=null,n!=null?(l.set(A,c.slice(n,n+y+w)),n+=y+w+E.length):(l.set(A,c.slice(0,y+w)),c.splice(0,y+w+E.length)),h(),i()):w=Math.max(c.length-E.length-n-y,0),y+=w},"pending"),i()},"find"),p.peek=function(g){n=0,f.nest(function(){g.call(this,l.store),this.tap(function(){n=null})})},p}o(s,"builder");var a=OLt.light(s);a.writable=!0;var c=LLt();a.write=function(f){c.push(f),i()};var l=tk(),u=!1,d=!1;return a.end=function(){d=!0},a.pipe=FLt.prototype.pipe,Object.getOwnPropertyNames(Ike.prototype).forEach(function(f){a[f]=Ike.prototype[f]}),a};LA.parse=o(function(e){var r=xke(function(s,a){return function(c){if(n+s<=e.length){var l=e.slice(n,n+s);n+=s,i.set(c,a(l))}else i.set(c,null);return r}}),n=0,i=tk();return r.vars=i.store,r.tap=function(s){return s.call(r,i.store),r},r.into=function(s,a){i.get(s)||i.set(s,{});var c=i;return i=tk(c.get(s)),a.call(r,i.store),i=c,r},r.loop=function(s){for(var a=!1,c=o(function(){a=!0},"ender");a===!1;)s.call(r,c,i.store);return r},r.buffer=function(s,a){typeof a=="string"&&(a=i.get(a));var c=e.slice(n,Math.min(e.length,n+a));return n+=a,i.set(s,c),r},r.skip=function(s){return typeof s=="string"&&(s=i.get(s)),n+=s,r},r.scan=function(s,a){if(typeof a=="string")a=new Buffer(a);else if(!Buffer.isBuffer(a))throw new Error("search must be a Buffer or a string");i.set(s,null);for(var c=0;c+n<=e.length-a.length+1;c++){for(var l=0;l<a.length&&e[n+c+l]===a[l];l++);if(l===a.length)break}return i.set(s,e.slice(n,n+c)),n+=c+a.length,r},r.peek=function(s){var a=n;return s.call(r,i.store),n=a,r},r.flush=function(){return i.store={},r},r.eof=function(){return n>=e.length},r},"parse");function Ske(t){for(var e=0,r=0;r<t.length;r++)e+=Math.pow(256,r)*t[r];return e}o(Ske,"decodeLEu");function Bke(t){for(var e=0,r=0;r<t.length;r++)e+=Math.pow(256,t.length-r-1)*t[r];return e}o(Bke,"decodeBEu");function MLt(t){var e=Bke(t);return(t[0]&128)==128&&(e-=Math.pow(256,t.length)),e}o(MLt,"decodeBEs");function ULt(t){var e=Ske(t);return(t[t.length-1]&128)==128&&(e-=Math.pow(256,t.length)),e}o(ULt,"decodeLEs");function xke(t){var e={};return[1,2,4,8].forEach(function(r){var n=r*8;e["word"+n+"le"]=e["word"+n+"lu"]=t(r,Ske),e["word"+n+"ls"]=t(r,ULt),e["word"+n+"be"]=e["word"+n+"bu"]=t(r,Bke),e["word"+n+"bs"]=t(r,MLt)}),e.word8=e.word8u=e.word8be,e.word8s=e.word8bs,e}o(xke,"words")});var Rke=m((qPr,Tke)=>{var _ke=require("stream").Transform,qLt=require("util");function FA(t,e){if(!(this instanceof FA))return new FA;_ke.call(this);var r=typeof t=="object"?t.pattern:t;this.pattern=Buffer.isBuffer(r)?r:Buffer.from(r),this.requiredLength=this.pattern.length,t.requiredExtraSize&&(this.requiredLength+=t.requiredExtraSize),this.data=new Buffer(""),this.bytesSoFar=0,this.matchFn=e}o(FA,"MatcherStream");qLt.inherits(FA,_ke);FA.prototype.checkDataChunk=function(t){var e=this.data.length>=this.requiredLength;if(e){var r=this.data.indexOf(this.pattern,t?1:0);if(r>=0&&r+this.requiredLength>this.data.length){if(r>0){var n=this.data.slice(0,r);this.push(n),this.bytesSoFar+=r,this.data=this.data.slice(r)}return}if(r===-1){var i=this.data.length-this.requiredLength+1,n=this.data.slice(0,i);this.push(n),this.bytesSoFar+=i,this.data=this.data.slice(i);return}if(r>0){var n=this.data.slice(0,r);this.data=this.data.slice(r),this.push(n),this.bytesSoFar+=r}var s=this.matchFn?this.matchFn(this.data,this.bytesSoFar):!0;if(s){this.data=new Buffer("");return}return!0}};FA.prototype._transform=function(t,e,r){this.data=Buffer.concat([this.data,t]);for(var n=!0;this.checkDataChunk(!n);)n=!1;r()};FA.prototype._flush=function(t){if(this.data.length>0)for(var e=!0;this.checkDataChunk(!e);)e=!1;this.data.length>0&&(this.push(this.data),this.data=null),t()};Tke.exports=FA});var Qke=m((HPr,Dke)=>{"use strict";var WY=require("stream"),GLt=require("util").inherits;function pB(){if(!(this instanceof pB))return new pB;WY.PassThrough.call(this),this.path=null,this.type=null,this.isDirectory=!1}o(pB,"Entry");GLt(pB,WY.PassThrough);pB.prototype.autodrain=function(){return this.pipe(new WY.Transform({transform:o(function(t,e,r){r()},"transform")}))};Dke.exports=pB});var YY=m((zPr,kke)=>{"use strict";var oh=Nke(),JY=require("stream"),HLt=require("util"),VLt=require("zlib"),zLt=Rke(),Pke=Qke(),Fe={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99},AB=4294967296,$Lt=67324752,jLt=134695760,WLt=33639248,JLt=101075792,YLt=117853008,KLt=101010256;function wi(t){if(!(this instanceof wi))return new wi(t);JY.Transform.call(this),this.options=t||{},this.data=new Buffer(""),this.state=Fe.STREAM_START,this.skippedBytes=0,this.parsedEntity=null,this.outStreamInfo={}}o(wi,"UnzipStream");HLt.inherits(wi,JY.Transform);wi.prototype.processDataChunk=function(t){var e;switch(this.state){case Fe.STREAM_START:case Fe.START:e=4;break;case Fe.LOCAL_FILE_HEADER:e=26;break;case Fe.LOCAL_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case Fe.DATA_DESCRIPTOR:e=12;break;case Fe.CENTRAL_DIRECTORY_FILE_HEADER:e=42;break;case Fe.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case Fe.CDIR64_END:e=52;break;case Fe.CDIR64_END_DATA_SECTOR:e=this.parsedEntity.centralDirectoryRecordSize-44;break;case Fe.CDIR64_LOCATOR:e=16;break;case Fe.CENTRAL_DIRECTORY_END:e=18;break;case Fe.CENTRAL_DIRECTORY_END_COMMENT:e=this.parsedEntity.commentLength;break;case Fe.FILE_DATA:return 0;case Fe.FILE_DATA_END:return 0;case Fe.TRAILING_JUNK:return this.options.debug&&console.log("found",t.length,"bytes of TRAILING_JUNK"),t.length;default:return t.length}var r=t.length;if(r<e)return 0;switch(this.state){case Fe.STREAM_START:case Fe.START:var n=t.readUInt32LE(0);switch(n){case $Lt:this.state=Fe.LOCAL_FILE_HEADER;break;case WLt:this.state=Fe.CENTRAL_DIRECTORY_FILE_HEADER;break;case JLt:this.state=Fe.CDIR64_END;break;case YLt:this.state=Fe.CDIR64_LOCATOR;break;case KLt:this.state=Fe.CENTRAL_DIRECTORY_END;break;default:var i=this.state===Fe.STREAM_START;if(!i&&(n&65535)!==19280&&this.skippedBytes<26){for(var s=n,a=4,c=1;c<4&&s!==0;c++)if(s=s>>>8,(s&255)===80){a=c;break}return this.skippedBytes+=a,this.options.debug&&console.log("Skipped",this.skippedBytes,"bytes"),a}this.state=Fe.ERROR;var l=i?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var u=t.readUInt32LE(0),d;try{d=t.slice(0,4).toString()}catch{}console.log("Unexpected signature in zip file: 0x"+u.toString(16),'"'+d+'", skipped',this.skippedBytes,"bytes")}return this.emit("error",new Error(l)),t.length}return this.skippedBytes=0,e;case Fe.LOCAL_FILE_HEADER:return this.parsedEntity=this._readFile(t),this.state=Fe.LOCAL_FILE_HEADER_SUFFIX,e;case Fe.LOCAL_FILE_HEADER_SUFFIX:var f=new Pke,h=(this.parsedEntity.flags&2048)!==0;f.path=this._decodeString(t.slice(0,this.parsedEntity.fileNameLength),h);var g=t.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),A=this._readExtraFields(g);if(A&&A.parsed&&(A.parsed.path&&!h&&(f.path=A.parsed.path),Number.isFinite(A.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===AB-1&&(this.parsedEntity.uncompressedSize=A.parsed.uncompressedSize),Number.isFinite(A.parsed.compressedSize)&&this.parsedEntity.compressedSize===AB-1&&(this.parsedEntity.compressedSize=A.parsed.compressedSize)),this.parsedEntity.extra=A.parsed||{},this.options.debug){let B=Object.assign({},this.parsedEntity,{path:f.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:A&&A.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(B,null,2))}return this._prepareOutStream(this.parsedEntity,f),this.emit("entry",f),this.state=Fe.FILE_DATA,e;case Fe.CENTRAL_DIRECTORY_FILE_HEADER:return this.parsedEntity=this._readCentralDirectoryEntry(t),this.state=Fe.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX,e;case Fe.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var h=(this.parsedEntity.flags&2048)!==0,p=this._decodeString(t.slice(0,this.parsedEntity.fileNameLength),h),g=t.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),A=this._readExtraFields(g);A&&A.parsed&&A.parsed.path&&!h&&(p=A.parsed.path),this.parsedEntity.extra=A.parsed;var E=(this.parsedEntity.versionMadeBy&65280)>>8===3,y,C;if(E){y=this.parsedEntity.externalFileAttributes>>>16;var w=y>>>12;C=(w&10)===10}if(this.options.debug){let B=Object.assign({},this.parsedEntity,{path:p,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:y&&"0"+y.toString(8),isSymlink:C,extraFields:A.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(B,null,2))}return this.state=Fe.START,e;case Fe.CDIR64_END:return this.parsedEntity=this._readEndOfCentralDirectory64(t),this.options.debug&&console.log("decoded CDIR64_END_RECORD:",this.parsedEntity),this.state=Fe.CDIR64_END_DATA_SECTOR,e;case Fe.CDIR64_END_DATA_SECTOR:return this.state=Fe.START,e;case Fe.CDIR64_LOCATOR:return this.state=Fe.START,e;case Fe.CENTRAL_DIRECTORY_END:return this.parsedEntity=this._readEndOfCentralDirectory(t),this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity),this.state=Fe.CENTRAL_DIRECTORY_END_COMMENT,e;case Fe.CENTRAL_DIRECTORY_END_COMMENT:return this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",t.slice(0,e).toString()),this.state=Fe.TRAILING_JUNK,e;case Fe.ERROR:return t.length;default:return console.log("didn't handle state #",this.state,"discarding"),t.length}};wi.prototype._prepareOutStream=function(t,e){var r=this,n=t.uncompressedSize===0&&/[\/\\]$/.test(e.path);e.path=e.path.replace(/(?<=^|[/\\]+)[.][.]+(?=[/\\]+|$)/g,"."),e.type=n?"Directory":"File",e.isDirectory=n;var i=!(t.flags&8);i&&(e.size=t.uncompressedSize);var s=t.versionsNeededToExtract<=45;if(this.outStreamInfo={stream:null,limit:i?t.compressedSize:-1,written:0},i)this.outStreamInfo.stream=new JY.PassThrough;else{var a=new Buffer(4);a.writeUInt32LE(jLt,0);var c=t.extra.zip64Mode,l=c?20:12,u={pattern:a,requiredExtraSize:l},d=new zLt(u,function(A,E){var y=r._readDataDescriptor(A,c),C=y.compressedSize===E;if(!c&&!C&&E>=AB)for(var w=E-AB;w>=0&&(C=y.compressedSize===w,!C);)w-=AB;if(C){r.state=Fe.FILE_DATA_END;var B=c?24:16;return r.data.length>0?r.data=Buffer.concat([A.slice(B),r.data]):r.data=A.slice(B),!0}});this.outStreamInfo.stream=d}var f=t.flags&1||t.flags&64;if(f||!s){var h=f?"Encrypted files are not supported!":"Zip version "+Math.floor(t.versionsNeededToExtract/10)+"."+t.versionsNeededToExtract%10+" is not supported";e.skip=!0,setImmediate(()=>{r.emit("error",new Error(h))}),this.outStreamInfo.stream.pipe(new Pke().autodrain());return}var p=t.compressionMethod>0;if(p){var g=VLt.createInflateRaw();g.on("error",function(A){r.state=Fe.ERROR,r.emit("error",A)}),this.outStreamInfo.stream.pipe(g).pipe(e)}else this.outStreamInfo.stream.pipe(e);this._drainAllEntries&&e.autodrain()};wi.prototype._readFile=function(t){var e=oh.parse(t).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return e};wi.prototype._readExtraFields=function(t){var e={},r={parsed:e};this.options.debug&&(r.debug=[]);for(var n=0;n<t.length;){var i=oh.parse(t).skip(n).word16lu("extraId").word16lu("extraSize").vars;n+=4;var s=void 0;switch(i.extraId){case 1:s="Zip64 extended information extra field";var a=oh.parse(t.slice(n,n+i.extraSize)).word64lu("uncompressedSize").word64lu("compressedSize").word64lu("offsetToLocalHeader").word32lu("diskStartNumber").vars;a.uncompressedSize!==null&&(e.uncompressedSize=a.uncompressedSize),a.compressedSize!==null&&(e.compressedSize=a.compressedSize),e.zip64Mode=!0;break;case 10:s="NTFS extra field";break;case 21589:s="extended timestamp";var c=t.readUInt8(n),C=1;i.extraSize>=C+4&&c&1&&(e.mtime=new Date(t.readUInt32LE(n+C)*1e3),C+=4),i.extraSize>=C+4&&c&2&&(e.atime=new Date(t.readUInt32LE(n+C)*1e3),C+=4),i.extraSize>=C+4&&c&4&&(e.ctime=new Date(t.readUInt32LE(n+C)*1e3));break;case 28789:s="Info-ZIP Unicode Path Extra Field";var l=t.readUInt8(n);if(l===1){var C=1,u=t.readUInt32LE(n+C);C+=4;var d=t.slice(n+C);e.path=d.toString()}break;case 13:case 22613:s=i.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var C=0;if(i.extraSize>=8){var f=new Date(t.readUInt32LE(n+C)*1e3);C+=4;var h=new Date(t.readUInt32LE(n+C)*1e3);if(C+=4,e.atime=f,e.mtime=h,i.extraSize>=12){var p=t.readUInt16LE(n+C);C+=2;var g=t.readUInt16LE(n+C);C+=2,e.uid=p,e.gid=g}}break;case 30805:s="Info-ZIP UNIX (type 2)";var C=0;if(i.extraSize>=4){var p=t.readUInt16LE(n+C);C+=2;var g=t.readUInt16LE(n+C);C+=2,e.uid=p,e.gid=g}break;case 30837:s="Info-ZIP New Unix";var C=0,A=t.readUInt8(n);if(C+=1,A===1){var E=t.readUInt8(n+C);C+=1,E<=6&&(e.uid=t.readUIntLE(n+C,E)),C+=E;var y=t.readUInt8(n+C);C+=1,y<=6&&(e.gid=t.readUIntLE(n+C,y))}break;case 30062:s="ASi Unix";var C=0;if(i.extraSize>=14){var w=t.readUInt32LE(n+C);C+=4;var B=t.readUInt16LE(n+C);C+=2;var Q=t.readUInt32LE(n+C);C+=4;var p=t.readUInt16LE(n+C);C+=2;var g=t.readUInt16LE(n+C);if(C+=2,e.mode=B,e.uid=p,e.gid=g,i.extraSize>14){var U=n+C,v=n+i.extraSize-14,j=this._decodeString(t.slice(U,v));e.symlink=j}}break}this.options.debug&&r.debug.push({extraId:"0x"+i.extraId.toString(16),description:s,data:t.slice(n,n+i.extraSize).inspect()}),n+=i.extraSize}return r};wi.prototype._readDataDescriptor=function(t,e){if(e){var r=oh.parse(t).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return r}var r=oh.parse(t).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return r};wi.prototype._readCentralDirectoryEntry=function(t){var e=oh.parse(t).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return e};wi.prototype._readEndOfCentralDirectory64=function(t){var e=oh.parse(t).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return e};wi.prototype._readEndOfCentralDirectory=function(t){var e=oh.parse(t).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return e};var XLt="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0 ";wi.prototype._decodeString=function(t,e){if(e)return t.toString("utf8");if(this.options.decodeString)return this.options.decodeString(t);let r="";for(var n=0;n<t.length;n++)r+=XLt[t[n]];return r};wi.prototype._parseOrOutput=function(t,e){for(var r;(r=this.processDataChunk(this.data))>0&&(this.data=this.data.slice(r),this.data.length!==0););if(this.state===Fe.FILE_DATA){if(this.outStreamInfo.limit>=0){var n=this.outStreamInfo.limit-this.outStreamInfo.written,i;n<this.data.length?(i=this.data.slice(0,n),this.data=this.data.slice(n)):(i=this.data,this.data=new Buffer("")),this.outStreamInfo.written+=i.length,this.outStreamInfo.limit===this.outStreamInfo.written?(this.state=Fe.START,this.outStreamInfo.stream.end(i,t,e)):this.outStreamInfo.stream.write(i,t,e)}else{var i=this.data;this.data=new Buffer(""),this.outStreamInfo.written+=i.length;var s=this.outStreamInfo.stream;s.write(i,t,()=>{if(this.state===Fe.FILE_DATA_END)return this.state=Fe.START,s.end(e);e()})}return}e()};wi.prototype.drainAll=function(){this._drainAllEntries=!0};wi.prototype._transform=function(t,e,r){var n=this;n.data.length>0?n.data=Buffer.concat([n.data,t]):n.data=t;var i=n.data.length,s=o(function(){if(n.data.length>0&&n.data.length<i){i=n.data.length,n._parseOrOutput(e,s);return}r()},"done");n._parseOrOutput(e,s)};wi.prototype._flush=function(t){var e=this;if(e.data.length>0){e._parseOrOutput("buffer",function(){if(e.data.length>0)return setImmediate(function(){e._flush(t)});t()});return}if(e.state===Fe.FILE_DATA)return t(new Error("Stream finished in an invalid state, uncompression failed"));setImmediate(t)};kke.exports=wi});var Lke=m((jPr,Oke)=>{var mB=require("stream").Transform,ZLt=require("util"),eFt=YY();function ah(t){if(!(this instanceof ah))return new ah(t);var e=t||{};mB.call(this,{readableObjectMode:!0}),this.opts=t||{},this.unzipStream=new eFt(this.opts);var r=this;this.unzipStream.on("entry",function(n){r.push(n)}),this.unzipStream.on("error",function(n){r.emit("error",n)})}o(ah,"ParserStream");ZLt.inherits(ah,mB);ah.prototype._transform=function(t,e,r){this.unzipStream.write(t,e,r)};ah.prototype._flush=function(t){var e=this;this.unzipStream.end(function(){process.nextTick(function(){e.emit("close")}),t()})};ah.prototype.on=function(t,e){return t==="entry"?mB.prototype.on.call(this,"data",e):mB.prototype.on.call(this,t,e)};ah.prototype.drainAll=function(){return this.unzipStream.drainAll(),this.pipe(new mB({objectMode:!0,transform:o(function(t,e,r){r()},"transform")}))};Oke.exports=ah});var qke=m((JPr,Uke)=>{var gB=require("path"),Fke=require("fs"),Mke=parseInt("0777",8);Uke.exports=nC.mkdirp=nC.mkdirP=nC;function nC(t,e,r,n){typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var i=e.mode,s=e.fs||Fke;i===void 0&&(i=Mke),n||(n=null);var a=r||function(){};t=gB.resolve(t),s.mkdir(t,i,function(c){if(!c)return n=n||t,a(null,n);switch(c.code){case"ENOENT":if(gB.dirname(t)===t)return a(c);nC(gB.dirname(t),e,function(l,u){l?a(l,u):nC(t,e,a,u)});break;default:s.stat(t,function(l,u){l||!u.isDirectory()?a(c,n):a(null,n)});break}})}o(nC,"mkdirP");nC.sync=o(function t(e,r,n){(!r||typeof r!="object")&&(r={mode:r});var i=r.mode,s=r.fs||Fke;i===void 0&&(i=Mke),n||(n=null),e=gB.resolve(e);try{s.mkdirSync(e,i),n=n||e}catch(c){switch(c.code){case"ENOENT":n=t(gB.dirname(e),r,n),t(e,r,n);break;default:var a;try{a=s.statSync(e)}catch{throw c}if(!a.isDirectory())throw c;break}}return n},"sync")});var zke=m((KPr,Vke)=>{var tFt=require("fs"),Gke=require("path"),rFt=require("util"),nFt=qke(),Hke=require("stream").Transform,iFt=YY();function ch(t){if(!(this instanceof ch))return new ch(t);Hke.call(this),this.opts=t||{},this.unzipStream=new iFt(this.opts),this.unfinishedEntries=0,this.afterFlushWait=!1,this.createdDirectories={};var e=this;this.unzipStream.on("entry",this._processEntry.bind(this)),this.unzipStream.on("error",function(r){e.emit("error",r)})}o(ch,"Extract");rFt.inherits(ch,Hke);ch.prototype._transform=function(t,e,r){this.unzipStream.write(t,e,r)};ch.prototype._flush=function(t){var e=this,r=o(function(){process.nextTick(function(){e.emit("close")}),t()},"allDone");this.unzipStream.end(function(){if(e.unfinishedEntries>0)return e.afterFlushWait=!0,e.on("await-finished",r);r()})};ch.prototype._processEntry=function(t){var e=this,r=Gke.join(this.opts.path,t.path),n=t.isDirectory?r:Gke.dirname(r);this.unfinishedEntries++;var i=o(function(){var s=tFt.createWriteStream(r);s.on("close",function(){e.unfinishedEntries--,e._notifyAwaiter()}),s.on("error",function(a){e.emit("error",a)}),t.pipe(s)},"writeFileFn");if(this.createdDirectories[n]||n===".")return i();nFt(n,function(s){if(s)return e.emit("error",s);if(e.createdDirectories[n]=!0,t.isDirectory){e.unfinishedEntries--,e._notifyAwaiter();return}i()})};ch.prototype._notifyAwaiter=function(){this.afterFlushWait&&this.unfinishedEntries===0&&(this.emit("await-finished"),this.afterFlushWait=!1)};Vke.exports=ch});var $ke=m(KY=>{"use strict";KY.Parse=Lke();KY.Extract=zke()});var nOe=m((ZY,eK)=>{(function(t,e){typeof ZY=="object"&&typeof eK<"u"?eK.exports=e():typeof define=="function"&&define.amd?define(e):t.Bottleneck=e()})(ZY,(function(){"use strict";var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e(be){return be&&be.default||be}o(e,"getCjsExportFromNamespace");var r=o(function(be,k,x={}){var F,q,$;for(F in k)$=k[F],x[F]=(q=be[F])!=null?q:$;return x},"load"),n=o(function(be,k,x={}){var F,q;for(F in be)q=be[F],k[F]!==void 0&&(x[F]=q);return x},"overwrite"),i={load:r,overwrite:n},s;s=class{static{o(this,"DLList")}constructor(k,x){this.incr=k,this.decr=x,this._first=null,this._last=null,this.length=0}push(k){var x;this.length++,typeof this.incr=="function"&&this.incr(),x={value:k,prev:this._last,next:null},this._last!=null?(this._last.next=x,this._last=x):this._first=this._last=x}shift(){var k;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),k=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,k}first(){if(this._first!=null)return this._first.value}getArray(){var k,x,F;for(k=this._first,F=[];k!=null;)F.push((x=k,k=k.next,x.value));return F}forEachShift(k){var x;for(x=this.shift();x!=null;)k(x),x=this.shift()}debug(){var k,x,F,q,$;for(k=this._first,$=[];k!=null;)$.push((x=k,k=k.next,{value:x.value,prev:(F=x.prev)!=null?F.value:void 0,next:(q=x.next)!=null?q.value:void 0}));return $}};var a=s,c;c=class{static{o(this,"Events")}constructor(k){if(this.instance=k,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=(x,F)=>this._addListener(x,"many",F),this.instance.once=(x,F)=>this._addListener(x,"once",F),this.instance.removeAllListeners=(x=null)=>x!=null?delete this._events[x]:this._events={}}_addListener(k,x,F){var q;return(q=this._events)[k]==null&&(q[k]=[]),this._events[k].push({cb:F,status:x}),this.instance}listenerCount(k){return this._events[k]!=null?this._events[k].length:0}async trigger(k,...x){var F,q;try{return k!=="debug"&&this.trigger("debug",`Event triggered: ${k}`,x),this._events[k]==null?void 0:(this._events[k]=this._events[k].filter(function($){return $.status!=="none"}),q=this._events[k].map(async $=>{var X,me;if($.status!=="none"){$.status==="once"&&($.status="none");try{return me=typeof $.cb=="function"?$.cb(...x):void 0,typeof me?.then=="function"?await me:me}catch(It){return X=It,this.trigger("error",X),null}}}),(await Promise.all(q)).find(function($){return $!=null}))}catch($){return F=$,this.trigger("error",F),null}}};var l=c,u,d,f;u=a,d=l,f=class{static{o(this,"Queues")}constructor(k){var x;this.Events=new d(this),this._length=0,this._lists=(function(){var F,q,$;for($=[],x=F=1,q=k;1<=q?F<=q:F>=q;x=1<=q?++F:--F)$.push(new u((()=>this.incr()),(()=>this.decr())));return $}).call(this)}incr(){if(this._length++===0)return this.Events.trigger("leftzero")}decr(){if(--this._length===0)return this.Events.trigger("zero")}push(k){return this._lists[k.options.priority].push(k)}queued(k){return k!=null?this._lists[k].length:this._length}shiftAll(k){return this._lists.forEach(function(x){return x.forEachShift(k)})}getFirst(k=this._lists){var x,F,q;for(x=0,F=k.length;x<F;x++)if(q=k[x],q.length>0)return q;return[]}shiftLastFrom(k){return this.getFirst(this._lists.slice(k).reverse()).shift()}};var h=f,p;p=class extends Error{static{o(this,"BottleneckError")}};var g=p,A,E,y,C,w;C=10,E=5,w=i,A=g,y=class{static{o(this,"Job")}constructor(k,x,F,q,$,X,me,It){this.task=k,this.args=x,this.rejectOnDrop=$,this.Events=X,this._states=me,this.Promise=It,this.options=w.load(F,q),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===q.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((pn,Kt)=>{this._resolve=pn,this._reject=Kt}),this.retryCount=0}_sanitizePriority(k){var x;return x=~~k!==k?E:k,x<0?0:x>C-1?C-1:x}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:k,message:x="This job has been dropped by Bottleneck"}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(k??new A(x)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(k){var x;if(x=this._states.jobStatus(this.options.id),!(x===k||k==="DONE"&&x===null))throw new A(`Invalid job status ${x}, expected ${k}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(k,x){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:k,blocked:x})}doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(k,x,F,q){var $,X,me;this.retryCount===0?(this._assertStatus("RUNNING"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),X={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger("executing",X);try{if(me=await(k!=null?k.schedule(this.options,this.task,...this.args):this.task(...this.args)),x())return this.doDone(X),await q(this.options,X),this._assertStatus("DONE"),this._resolve(me)}catch(It){return $=It,this._onFailure($,X,x,F,q)}}doExpire(k,x,F){var q,$;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),$={args:this.args,options:this.options,retryCount:this.retryCount},q=new A(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(q,$,k,x,F)}async _onFailure(k,x,F,q,$){var X,me;if(F())return X=await this.Events.trigger("failed",k,x),X!=null?(me=~~X,this.Events.trigger("retry",`Retrying ${this.options.id} after ${me} ms`,x),this.retryCount++,q(me)):(this.doDone(x),await $(this.options,x),this._assertStatus("DONE"),this._reject(k))}doDone(k){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",k)}};var B=y,Q,U,v;v=i,Q=g,U=class{static{o(this,"LocalDatastore")}constructor(k,x,F){this.instance=k,this.storeOptions=x,this.clientId=this.instance._randomIndex(),v.load(F,F,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var k;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(k=this.heartbeat=setInterval(()=>{var x,F,q,$,X;if($=Date.now(),this.storeOptions.reservoirRefreshInterval!=null&&$>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=$,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&$>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:x,reservoirIncreaseMaximum:q,reservoir:X}=this.storeOptions,this._lastReservoirIncrease=$,F=q!=null?Math.min(x,q-X):x,F>0))return this.storeOptions.reservoir+=F,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref=="function"?k.unref():void 0:clearInterval(this.heartbeat)}async __publish__(k){return await this.yieldLoop(),this.instance.Events.trigger("message",k.toString())}async __disconnect__(k){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(k=0){return new this.Promise(function(x,F){return setTimeout(x,k)})}computePenalty(){var k;return(k=this.storeOptions.penalty)!=null?k:15*this.storeOptions.minTime||5e3}async __updateSettings__(k){return await this.yieldLoop(),v.overwrite(k,k,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(k){return await this.yieldLoop(),this._nextRequest+this.timeout<k}computeCapacity(){var k,x;return{maxConcurrent:k,reservoir:x}=this.storeOptions,k!=null&&x!=null?Math.min(k-this._running,x):k!=null?k-this._running:x??null}conditionsCheck(k){var x;return x=this.computeCapacity(),x==null||k<=x}async __incrementReservoir__(k){var x;return await this.yieldLoop(),x=this.storeOptions.reservoir+=k,this.instance._drainAll(this.computeCapacity()),x}async __currentReservoir__(){return await this.yieldLoop(),this.storeOptions.reservoir}isBlocked(k){return this._unblockTime>=k}check(k,x){return this.conditionsCheck(k)&&this._nextRequest-x<=0}async __check__(k){var x;return await this.yieldLoop(),x=Date.now(),this.check(k,x)}async __register__(k,x,F){var q,$;return await this.yieldLoop(),q=Date.now(),this.conditionsCheck(x)?(this._running+=x,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=x),$=Math.max(this._nextRequest-q,0),this._nextRequest=q+$+this.storeOptions.minTime,{success:!0,wait:$,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(k,x){var F,q,$;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&x>this.storeOptions.maxConcurrent)throw new Q(`Impossible to add a job having a weight of ${x} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return q=Date.now(),$=this.storeOptions.highWater!=null&&k===this.storeOptions.highWater&&!this.check(x,q),F=this.strategyIsBlock()&&($||this.isBlocked(q)),F&&(this._unblockTime=q+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:$,blocked:F,strategy:this.storeOptions.strategy}}async __free__(k,x){return await this.yieldLoop(),this._running-=x,this._done+=x,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var j=U,D,H;D=g,H=class{static{o(this,"States")}constructor(k){this.status=k,this._jobs={},this.counts=this.status.map(function(){return 0})}next(k){var x,F;if(x=this._jobs[k],F=x+1,x!=null&&F<this.status.length)return this.counts[x]--,this.counts[F]++,this._jobs[k]++;if(x!=null)return this.counts[x]--,delete this._jobs[k]}start(k){var x;return x=0,this._jobs[k]=x,this.counts[x]++}remove(k){var x;return x=this._jobs[k],x!=null&&(this.counts[x]--,delete this._jobs[k]),x!=null}jobStatus(k){var x;return(x=this.status[this._jobs[k]])!=null?x:null}statusJobs(k){var x,F,q,$,X;if(k!=null){if(F=this.status.indexOf(k),F<0)throw new D(`status must be one of ${this.status.join(", ")}`);q=this._jobs,$=[];for(x in q)X=q[x],X===F&&$.push(x);return $}else return Object.keys(this._jobs)}statusCounts(){return this.counts.reduce(((k,x,F)=>(k[this.status[F]]=x,k)),{})}};var V=H,J,oe;J=a,oe=class{static{o(this,"Sync")}constructor(k,x){this.schedule=this.schedule.bind(this),this.name=k,this.Promise=x,this._running=0,this._queue=new J}isEmpty(){return this._queue.length===0}async _tryToRun(){var k,x,F,q,$,X,me;if(this._running<1&&this._queue.length>0)return this._running++,{task:me,args:k,resolve:$,reject:q}=this._queue.shift(),x=await(async function(){try{return X=await me(...k),function(){return $(X)}}catch(It){return F=It,function(){return q(F)}}})(),this._running--,this._tryToRun(),x()}schedule(k,...x){var F,q,$;return $=q=null,F=new this.Promise(function(X,me){return $=X,q=me}),this._queue.push({task:k,args:x,resolve:$,reject:q}),this._tryToRun(),F}};var ae=oe,Ce="2.19.5",K={version:Ce},z=Object.freeze({version:Ce,default:K}),Se=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$2"),xe=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$3"),lt=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$4"),Rt,fn,hn,oi,hr,Wr;Wr=i,Rt=l,oi=Se,hn=xe,hr=lt,fn=(function(){class be{static{o(this,"Group")}constructor(x={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=x,Wr.load(this.limiterOptions,this.defaults,this),this.Events=new Rt(this),this.instances={},this.Bottleneck=Fa,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new oi(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new hn(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(x=""){var F;return(F=this.instances[x])!=null?F:(()=>{var q;return q=this.instances[x]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${x}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",q,x),q})()}async deleteKey(x=""){var F,q;return q=this.instances[x],this.connection&&(F=await this.connection.__runCommand__(["del",...hr.allKeys(`${this.id}-${x}`)])),q!=null&&(delete this.instances[x],await q.disconnect()),q!=null||F>0}limiters(){var x,F,q,$;F=this.instances,q=[];for(x in F)$=F[x],q.push({key:x,limiter:$});return q}keys(){return Object.keys(this.instances)}async clusterKeys(){var x,F,q,$,X,me,It,pn,Kt;if(this.connection==null)return this.Promise.resolve(this.keys());for(me=[],x=null,Kt=`b_${this.id}-`.length,F=9;x!==0;)for([pn,q]=await this.connection.__runCommand__(["scan",x??0,"match",`b_${this.id}-*_settings`,"count",1e4]),x=~~pn,$=0,It=q.length;$<It;$++)X=q[$],me.push(X.slice(Kt,-F));return me}_startAutoCleanup(){var x;return clearInterval(this.interval),typeof(x=this.interval=setInterval(async()=>{var F,q,$,X,me,It;me=Date.now(),$=this.instances,X=[];for(q in $){It=$[q];try{await It._store.__groupCheck__(me)?X.push(this.deleteKey(q)):X.push(void 0)}catch(pn){F=pn,X.push(It.Events.trigger("error",F))}}return X},this.timeout/2)).unref=="function"?x.unref():void 0}updateSettings(x={}){if(Wr.overwrite(x,this.defaults,this),Wr.overwrite(x,x,this.limiterOptions),x.timeout!=null)return this._startAutoCleanup()}disconnect(x=!0){var F;if(!this.sharedConnection)return(F=this.connection)!=null?F.disconnect(x):void 0}}return be.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:"group-key"},be}).call(t);var vh=fn,pu,vc,ms;ms=i,vc=l,pu=(function(){class be{static{o(this,"Batcher")}constructor(x={}){this.options=x,ms.load(this.options,this.defaults,this),this.Events=new vc(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((x,F)=>this._resolve=x)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(x){var F;return this._arr.push(x),F=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),F}}return be.prototype.defaults={maxTime:null,maxSize:null,Promise},be}).call(t);var La=pu,Pd=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$4$1"),kd=e(z),Au,XB,jC,WC,ZB,am,ex,JC,cm,lm,Ws,tx=[].splice;am=10,XB=5,Ws=i,ex=h,WC=B,ZB=j,JC=Pd,jC=l,cm=V,lm=ae,Au=(function(){class be{static{o(this,"Bottleneck")}constructor(x={},...F){var q,$;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(x,F),Ws.load(x,this.instanceDefaults,this),this._queues=new ex(am),this._scheduled={},this._states=new cm(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new jC(this),this._submitLock=new lm("submit",this.Promise),this._registerLock=new lm("register",this.Promise),$=Ws.load(x,this.storeDefaults,{}),this._store=(function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return q=Ws.load(x,this.redisStoreDefaults,{}),new JC(this,$,q);if(this.datastore==="local")return q=Ws.load(x,this.localStoreDefaults,{}),new ZB(this,$,q);throw new be.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on("leftzero",()=>{var X;return(X=this._store.heartbeat)!=null&&typeof X.ref=="function"?X.ref():void 0}),this._queues.on("zero",()=>{var X;return(X=this._store.heartbeat)!=null&&typeof X.unref=="function"?X.unref():void 0})}_validateOptions(x,F){if(!(x!=null&&typeof x=="object"&&F.length===0))throw new be.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(x){return this._store.__publish__(x)}disconnect(x=!0){return this._store.__disconnect__(x)}chain(x){return this._limiter=x,this}queued(x){return this._queues.queued(x)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(x){return this._states.jobStatus(x)}jobs(x){return this._states.statusJobs(x)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(x=1){return this._store.__check__(x)}_clearGlobalState(x){return this._scheduled[x]!=null?(clearTimeout(this._scheduled[x].expiration),delete this._scheduled[x],!0):!1}async _free(x,F,q,$){var X,me;try{if({running:me}=await this._store.__free__(x,q.weight),this.Events.trigger("debug",`Freed ${q.id}`,$),me===0&&this.empty())return this.Events.trigger("idle")}catch(It){return X=It,this.Events.trigger("error",X)}}_run(x,F,q){var $,X,me;return F.doRun(),$=this._clearGlobalState.bind(this,x),me=this._run.bind(this,x,F),X=this._free.bind(this,x,F),this._scheduled[x]={timeout:setTimeout(()=>F.doExecute(this._limiter,$,me,X),q),expiration:F.options.expiration!=null?setTimeout(function(){return F.doExpire($,me,X)},q+F.options.expiration):void 0,job:F}}_drainOne(x){return this._registerLock.schedule(()=>{var F,q,$,X,me;return this.queued()===0?this.Promise.resolve(null):(me=this._queues.getFirst(),{options:X,args:F}=$=me.first(),x!=null&&X.weight>x?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${X.id}`,{args:F,options:X}),q=this._randomIndex(),this._store.__register__(q,X.weight,X.expiration).then(({success:It,wait:pn,reservoir:Kt})=>{var Nh;return this.Events.trigger("debug",`Drained ${X.id}`,{success:It,args:F,options:X}),It?(me.shift(),Nh=this.empty(),Nh&&this.Events.trigger("empty"),Kt===0&&this.Events.trigger("depleted",Nh),this._run(q,$,pn),this.Promise.resolve(X.weight)):this.Promise.resolve(null)})))})}_drainAll(x,F=0){return this._drainOne(x).then(q=>{var $;return q!=null?($=x!=null?x-q:x,this._drainAll($,F+q)):this.Promise.resolve(F)}).catch(q=>this.Events.trigger("error",q))}_dropAllQueued(x){return this._queues.shiftAll(function(F){return F.doDrop({message:x})})}stop(x={}){var F,q;return x=Ws.load(x,this.stopDefaults),q=o($=>{var X;return X=o(()=>{var me;return me=this._states.counts,me[0]+me[1]+me[2]+me[3]===$},"finished"),new this.Promise((me,It)=>X()?me():this.on("done",()=>{if(X())return this.removeAllListeners("done"),me()}))},"waitForExecuting"),F=x.dropWaitingJobs?(this._run=function($,X){return X.doDrop({message:x.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var $,X,me;X=this._scheduled;for($ in X)me=X[$],this.jobStatus(me.job.options.id)==="RUNNING"&&(clearTimeout(me.timeout),clearTimeout(me.expiration),me.job.doDrop({message:x.dropErrorMessage}));return this._dropAllQueued(x.dropErrorMessage),q(0)}))):this.schedule({priority:am-1,weight:0},()=>q(1)),this._receive=function($){return $._reject(new be.prototype.BottleneckError(x.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new be.prototype.BottleneckError("stop() has already been called")),F}async _addToQueue(x){var F,q,$,X,me,It,pn;({args:F,options:X}=x);try{({reachedHWM:me,blocked:q,strategy:pn}=await this._store.__submit__(this.queued(),X.weight))}catch(Kt){return $=Kt,this.Events.trigger("debug",`Could not queue ${X.id}`,{args:F,options:X,error:$}),x.doDrop({error:$}),!1}return q?(x.doDrop(),!0):me&&(It=pn===be.prototype.strategy.LEAK?this._queues.shiftLastFrom(X.priority):pn===be.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(X.priority+1):pn===be.prototype.strategy.OVERFLOW?x:void 0,It?.doDrop(),It==null||pn===be.prototype.strategy.OVERFLOW)?(It==null&&x.doDrop(),me):(x.doQueue(me,q),this._queues.push(x),await this._drainAll(),me)}_receive(x){return this._states.jobStatus(x.options.id)!=null?(x._reject(new be.prototype.BottleneckError(`A job with the same id already exists (id=${x.options.id})`)),!1):(x.doReceive(),this._submitLock.schedule(this._addToQueue,x))}submit(...x){var F,q,$,X,me,It,pn;return typeof x[0]=="function"?(me=x,[q,...x]=me,[F]=tx.call(x,-1),X=Ws.load({},this.jobDefaults)):(It=x,[X,q,...x]=It,[F]=tx.call(x,-1),X=Ws.load(X,this.jobDefaults)),pn=o((...Kt)=>new this.Promise(function(Nh,um){return q(...Kt,function(...rx){return(rx[0]!=null?um:Nh)(rx)})}),"task"),$=new WC(pn,x,X,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),$.promise.then(function(Kt){return typeof F=="function"?F(...Kt):void 0}).catch(function(Kt){return Array.isArray(Kt)?typeof F=="function"?F(...Kt):void 0:typeof F=="function"?F(Kt):void 0}),this._receive($)}schedule(...x){var F,q,$;return typeof x[0]=="function"?([$,...x]=x,q={}):[q,$,...x]=x,F=new WC($,x,q,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(F),F.promise}wrap(x){var F,q;return F=this.schedule.bind(this),q=o(function(...$){return F(x.bind(this),...$)},"wrapped"),q.withOptions=function($,...X){return F($,x,...X)},q}async updateSettings(x={}){return await this._store.__updateSettings__(Ws.overwrite(x,this.storeDefaults)),Ws.overwrite(x,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(x=0){return this._store.__incrementReservoir__(x)}}return be.default=be,be.Events=jC,be.version=be.prototype.version=kd.version,be.strategy=be.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},be.BottleneckError=be.prototype.BottleneckError=g,be.Group=be.prototype.Group=vh,be.RedisConnection=be.prototype.RedisConnection=Se,be.IORedisConnection=be.prototype.IORedisConnection=xe,be.Batcher=be.prototype.Batcher=La,be.prototype.jobDefaults={priority:XB,weight:1,expiration:null,id:"<no-id>"},be.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:be.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},be.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},be.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},be.prototype.instanceDefaults={datastore:"local",connection:null,id:"<no-id>",rejectOnDrop:!0,trackDoneStatus:!1,Promise},be.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},be}).call(t);var Fa=Au,YC=Fa;return YC}))});var mOe=m((ak,EB)=>{(function(t){var e=typeof ak=="object"&&ak,r=typeof EB=="object"&&EB&&EB.exports==e&&EB,n=typeof global=="object"&&global;(n.global===n||n.window===n)&&(t=n);var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,a=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,c=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,l={"\xAD":"shy","\u200C":"zwnj","\u200D":"zwj","\u200E":"lrm","\u2063":"ic","\u2062":"it","\u2061":"af","\u200F":"rlm","\u200B":"ZeroWidthSpace","\u2060":"NoBreak","\u0311":"DownBreve","\u20DB":"tdot","\u20DC":"DotDot"," ":"Tab","\n":"NewLine","\u2008":"puncsp","\u205F":"MediumSpace","\u2009":"thinsp","\u200A":"hairsp","\u2004":"emsp13","\u2002":"ensp","\u2005":"emsp14","\u2003":"emsp","\u2007":"numsp","\xA0":"nbsp","\u205F\u200A":"ThickSpace","\u203E":"oline",_:"lowbar","\u2010":"dash","\u2013":"ndash","\u2014":"mdash","\u2015":"horbar",",":"comma",";":"semi","\u204F":"bsemi",":":"colon","\u2A74":"Colone","!":"excl","\xA1":"iexcl","?":"quest","\xBF":"iquest",".":"period","\u2025":"nldr","\u2026":"mldr","\xB7":"middot","'":"apos","\u2018":"lsquo","\u2019":"rsquo","\u201A":"sbquo","\u2039":"lsaquo","\u203A":"rsaquo",'"':"quot","\u201C":"ldquo","\u201D":"rdquo","\u201E":"bdquo","\xAB":"laquo","\xBB":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","\u2308":"lceil","\u2309":"rceil","\u230A":"lfloor","\u230B":"rfloor","\u2985":"lopar","\u2986":"ropar","\u298B":"lbrke","\u298C":"rbrke","\u298D":"lbrkslu","\u298E":"rbrksld","\u298F":"lbrksld","\u2990":"rbrkslu","\u2991":"langd","\u2992":"rangd","\u2993":"lparlt","\u2994":"rpargt","\u2995":"gtlPar","\u2996":"ltrPar","\u27E6":"lobrk","\u27E7":"robrk","\u27E8":"lang","\u27E9":"rang","\u27EA":"Lang","\u27EB":"Rang","\u27EC":"loang","\u27ED":"roang","\u2772":"lbbrk","\u2773":"rbbrk","\u2016":"Vert","\xA7":"sect","\xB6":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","\u2030":"permil","\u2031":"pertenk","\u2020":"dagger","\u2021":"Dagger","\u2022":"bull","\u2043":"hybull","\u2032":"prime","\u2033":"Prime","\u2034":"tprime","\u2057":"qprime","\u2035":"bprime","\u2041":"caret","`":"grave","\xB4":"acute","\u02DC":"tilde","^":"Hat","\xAF":"macr","\u02D8":"breve","\u02D9":"dot","\xA8":"die","\u02DA":"ring","\u02DD":"dblac","\xB8":"cedil","\u02DB":"ogon","\u02C6":"circ","\u02C7":"caron","\xB0":"deg","\xA9":"copy","\xAE":"reg","\u2117":"copysr","\u2118":"wp","\u211E":"rx","\u2127":"mho","\u2129":"iiota","\u2190":"larr","\u219A":"nlarr","\u2192":"rarr","\u219B":"nrarr","\u2191":"uarr","\u2193":"darr","\u2194":"harr","\u21AE":"nharr","\u2195":"varr","\u2196":"nwarr","\u2197":"nearr","\u2198":"searr","\u2199":"swarr","\u219D":"rarrw","\u219D\u0338":"nrarrw","\u219E":"Larr","\u219F":"Uarr","\u21A0":"Rarr","\u21A1":"Darr","\u21A2":"larrtl","\u21A3":"rarrtl","\u21A4":"mapstoleft","\u21A5":"mapstoup","\u21A6":"map","\u21A7":"mapstodown","\u21A9":"larrhk","\u21AA":"rarrhk","\u21AB":"larrlp","\u21AC":"rarrlp","\u21AD":"harrw","\u21B0":"lsh","\u21B1":"rsh","\u21B2":"ldsh","\u21B3":"rdsh","\u21B5":"crarr","\u21B6":"cularr","\u21B7":"curarr","\u21BA":"olarr","\u21BB":"orarr","\u21BC":"lharu","\u21BD":"lhard","\u21BE":"uharr","\u21BF":"uharl","\u21C0":"rharu","\u21C1":"rhard","\u21C2":"dharr","\u21C3":"dharl","\u21C4":"rlarr","\u21C5":"udarr","\u21C6":"lrarr","\u21C7":"llarr","\u21C8":"uuarr","\u21C9":"rrarr","\u21CA":"ddarr","\u21CB":"lrhar","\u21CC":"rlhar","\u21D0":"lArr","\u21CD":"nlArr","\u21D1":"uArr","\u21D2":"rArr","\u21CF":"nrArr","\u21D3":"dArr","\u21D4":"iff","\u21CE":"nhArr","\u21D5":"vArr","\u21D6":"nwArr","\u21D7":"neArr","\u21D8":"seArr","\u21D9":"swArr","\u21DA":"lAarr","\u21DB":"rAarr","\u21DD":"zigrarr","\u21E4":"larrb","\u21E5":"rarrb","\u21F5":"duarr","\u21FD":"loarr","\u21FE":"roarr","\u21FF":"hoarr","\u2200":"forall","\u2201":"comp","\u2202":"part","\u2202\u0338":"npart","\u2203":"exist","\u2204":"nexist","\u2205":"empty","\u2207":"Del","\u2208":"in","\u2209":"notin","\u220B":"ni","\u220C":"notni","\u03F6":"bepsi","\u220F":"prod","\u2210":"coprod","\u2211":"sum","+":"plus","\xB1":"pm","\xF7":"div","\xD7":"times","<":"lt","\u226E":"nlt","<\u20D2":"nvlt","=":"equals","\u2260":"ne","=\u20E5":"bne","\u2A75":"Equal",">":"gt","\u226F":"ngt",">\u20D2":"nvgt","\xAC":"not","|":"vert","\xA6":"brvbar","\u2212":"minus","\u2213":"mp","\u2214":"plusdo","\u2044":"frasl","\u2216":"setmn","\u2217":"lowast","\u2218":"compfn","\u221A":"Sqrt","\u221D":"prop","\u221E":"infin","\u221F":"angrt","\u2220":"ang","\u2220\u20D2":"nang","\u2221":"angmsd","\u2222":"angsph","\u2223":"mid","\u2224":"nmid","\u2225":"par","\u2226":"npar","\u2227":"and","\u2228":"or","\u2229":"cap","\u2229\uFE00":"caps","\u222A":"cup","\u222A\uFE00":"cups","\u222B":"int","\u222C":"Int","\u222D":"tint","\u2A0C":"qint","\u222E":"oint","\u222F":"Conint","\u2230":"Cconint","\u2231":"cwint","\u2232":"cwconint","\u2233":"awconint","\u2234":"there4","\u2235":"becaus","\u2236":"ratio","\u2237":"Colon","\u2238":"minusd","\u223A":"mDDot","\u223B":"homtht","\u223C":"sim","\u2241":"nsim","\u223C\u20D2":"nvsim","\u223D":"bsim","\u223D\u0331":"race","\u223E":"ac","\u223E\u0333":"acE","\u223F":"acd","\u2240":"wr","\u2242":"esim","\u2242\u0338":"nesim","\u2243":"sime","\u2244":"nsime","\u2245":"cong","\u2247":"ncong","\u2246":"simne","\u2248":"ap","\u2249":"nap","\u224A":"ape","\u224B":"apid","\u224B\u0338":"napid","\u224C":"bcong","\u224D":"CupCap","\u226D":"NotCupCap","\u224D\u20D2":"nvap","\u224E":"bump","\u224E\u0338":"nbump","\u224F":"bumpe","\u224F\u0338":"nbumpe","\u2250":"doteq","\u2250\u0338":"nedot","\u2251":"eDot","\u2252":"efDot","\u2253":"erDot","\u2254":"colone","\u2255":"ecolon","\u2256":"ecir","\u2257":"cire","\u2259":"wedgeq","\u225A":"veeeq","\u225C":"trie","\u225F":"equest","\u2261":"equiv","\u2262":"nequiv","\u2261\u20E5":"bnequiv","\u2264":"le","\u2270":"nle","\u2264\u20D2":"nvle","\u2265":"ge","\u2271":"nge","\u2265\u20D2":"nvge","\u2266":"lE","\u2266\u0338":"nlE","\u2267":"gE","\u2267\u0338":"ngE","\u2268\uFE00":"lvnE","\u2268":"lnE","\u2269":"gnE","\u2269\uFE00":"gvnE","\u226A":"ll","\u226A\u0338":"nLtv","\u226A\u20D2":"nLt","\u226B":"gg","\u226B\u0338":"nGtv","\u226B\u20D2":"nGt","\u226C":"twixt","\u2272":"lsim","\u2274":"nlsim","\u2273":"gsim","\u2275":"ngsim","\u2276":"lg","\u2278":"ntlg","\u2277":"gl","\u2279":"ntgl","\u227A":"pr","\u2280":"npr","\u227B":"sc","\u2281":"nsc","\u227C":"prcue","\u22E0":"nprcue","\u227D":"sccue","\u22E1":"nsccue","\u227E":"prsim","\u227F":"scsim","\u227F\u0338":"NotSucceedsTilde","\u2282":"sub","\u2284":"nsub","\u2282\u20D2":"vnsub","\u2283":"sup","\u2285":"nsup","\u2283\u20D2":"vnsup","\u2286":"sube","\u2288":"nsube","\u2287":"supe","\u2289":"nsupe","\u228A\uFE00":"vsubne","\u228A":"subne","\u228B\uFE00":"vsupne","\u228B":"supne","\u228D":"cupdot","\u228E":"uplus","\u228F":"sqsub","\u228F\u0338":"NotSquareSubset","\u2290":"sqsup","\u2290\u0338":"NotSquareSuperset","\u2291":"sqsube","\u22E2":"nsqsube","\u2292":"sqsupe","\u22E3":"nsqsupe","\u2293":"sqcap","\u2293\uFE00":"sqcaps","\u2294":"sqcup","\u2294\uFE00":"sqcups","\u2295":"oplus","\u2296":"ominus","\u2297":"otimes","\u2298":"osol","\u2299":"odot","\u229A":"ocir","\u229B":"oast","\u229D":"odash","\u229E":"plusb","\u229F":"minusb","\u22A0":"timesb","\u22A1":"sdotb","\u22A2":"vdash","\u22AC":"nvdash","\u22A3":"dashv","\u22A4":"top","\u22A5":"bot","\u22A7":"models","\u22A8":"vDash","\u22AD":"nvDash","\u22A9":"Vdash","\u22AE":"nVdash","\u22AA":"Vvdash","\u22AB":"VDash","\u22AF":"nVDash","\u22B0":"prurel","\u22B2":"vltri","\u22EA":"nltri","\u22B3":"vrtri","\u22EB":"nrtri","\u22B4":"ltrie","\u22EC":"nltrie","\u22B4\u20D2":"nvltrie","\u22B5":"rtrie","\u22ED":"nrtrie","\u22B5\u20D2":"nvrtrie","\u22B6":"origof","\u22B7":"imof","\u22B8":"mumap","\u22B9":"hercon","\u22BA":"intcal","\u22BB":"veebar","\u22BD":"barvee","\u22BE":"angrtvb","\u22BF":"lrtri","\u22C0":"Wedge","\u22C1":"Vee","\u22C2":"xcap","\u22C3":"xcup","\u22C4":"diam","\u22C5":"sdot","\u22C6":"Star","\u22C7":"divonx","\u22C8":"bowtie","\u22C9":"ltimes","\u22CA":"rtimes","\u22CB":"lthree","\u22CC":"rthree","\u22CD":"bsime","\u22CE":"cuvee","\u22CF":"cuwed","\u22D0":"Sub","\u22D1":"Sup","\u22D2":"Cap","\u22D3":"Cup","\u22D4":"fork","\u22D5":"epar","\u22D6":"ltdot","\u22D7":"gtdot","\u22D8":"Ll","\u22D8\u0338":"nLl","\u22D9":"Gg","\u22D9\u0338":"nGg","\u22DA\uFE00":"lesg","\u22DA":"leg","\u22DB":"gel","\u22DB\uFE00":"gesl","\u22DE":"cuepr","\u22DF":"cuesc","\u22E6":"lnsim","\u22E7":"gnsim","\u22E8":"prnsim","\u22E9":"scnsim","\u22EE":"vellip","\u22EF":"ctdot","\u22F0":"utdot","\u22F1":"dtdot","\u22F2":"disin","\u22F3":"isinsv","\u22F4":"isins","\u22F5":"isindot","\u22F5\u0338":"notindot","\u22F6":"notinvc","\u22F7":"notinvb","\u22F9":"isinE","\u22F9\u0338":"notinE","\u22FA":"nisd","\u22FB":"xnis","\u22FC":"nis","\u22FD":"notnivc","\u22FE":"notnivb","\u2305":"barwed","\u2306":"Barwed","\u230C":"drcrop","\u230D":"dlcrop","\u230E":"urcrop","\u230F":"ulcrop","\u2310":"bnot","\u2312":"profline","\u2313":"profsurf","\u2315":"telrec","\u2316":"target","\u231C":"ulcorn","\u231D":"urcorn","\u231E":"dlcorn","\u231F":"drcorn","\u2322":"frown","\u2323":"smile","\u232D":"cylcty","\u232E":"profalar","\u2336":"topbot","\u233D":"ovbar","\u233F":"solbar","\u237C":"angzarr","\u23B0":"lmoust","\u23B1":"rmoust","\u23B4":"tbrk","\u23B5":"bbrk","\u23B6":"bbrktbrk","\u23DC":"OverParenthesis","\u23DD":"UnderParenthesis","\u23DE":"OverBrace","\u23DF":"UnderBrace","\u23E2":"trpezium","\u23E7":"elinters","\u2423":"blank","\u2500":"boxh","\u2502":"boxv","\u250C":"boxdr","\u2510":"boxdl","\u2514":"boxur","\u2518":"boxul","\u251C":"boxvr","\u2524":"boxvl","\u252C":"boxhd","\u2534":"boxhu","\u253C":"boxvh","\u2550":"boxH","\u2551":"boxV","\u2552":"boxdR","\u2553":"boxDr","\u2554":"boxDR","\u2555":"boxdL","\u2556":"boxDl","\u2557":"boxDL","\u2558":"boxuR","\u2559":"boxUr","\u255A":"boxUR","\u255B":"boxuL","\u255C":"boxUl","\u255D":"boxUL","\u255E":"boxvR","\u255F":"boxVr","\u2560":"boxVR","\u2561":"boxvL","\u2562":"boxVl","\u2563":"boxVL","\u2564":"boxHd","\u2565":"boxhD","\u2566":"boxHD","\u2567":"boxHu","\u2568":"boxhU","\u2569":"boxHU","\u256A":"boxvH","\u256B":"boxVh","\u256C":"boxVH","\u2580":"uhblk","\u2584":"lhblk","\u2588":"block","\u2591":"blk14","\u2592":"blk12","\u2593":"blk34","\u25A1":"squ","\u25AA":"squf","\u25AB":"EmptyVerySmallSquare","\u25AD":"rect","\u25AE":"marker","\u25B1":"fltns","\u25B3":"xutri","\u25B4":"utrif","\u25B5":"utri","\u25B8":"rtrif","\u25B9":"rtri","\u25BD":"xdtri","\u25BE":"dtrif","\u25BF":"dtri","\u25C2":"ltrif","\u25C3":"ltri","\u25CA":"loz","\u25CB":"cir","\u25EC":"tridot","\u25EF":"xcirc","\u25F8":"ultri","\u25F9":"urtri","\u25FA":"lltri","\u25FB":"EmptySmallSquare","\u25FC":"FilledSmallSquare","\u2605":"starf","\u2606":"star","\u260E":"phone","\u2640":"female","\u2642":"male","\u2660":"spades","\u2663":"clubs","\u2665":"hearts","\u2666":"diams","\u266A":"sung","\u2713":"check","\u2717":"cross","\u2720":"malt","\u2736":"sext","\u2758":"VerticalSeparator","\u27C8":"bsolhsub","\u27C9":"suphsol","\u27F5":"xlarr","\u27F6":"xrarr","\u27F7":"xharr","\u27F8":"xlArr","\u27F9":"xrArr","\u27FA":"xhArr","\u27FC":"xmap","\u27FF":"dzigrarr","\u2902":"nvlArr","\u2903":"nvrArr","\u2904":"nvHarr","\u2905":"Map","\u290C":"lbarr","\u290D":"rbarr","\u290E":"lBarr","\u290F":"rBarr","\u2910":"RBarr","\u2911":"DDotrahd","\u2912":"UpArrowBar","\u2913":"DownArrowBar","\u2916":"Rarrtl","\u2919":"latail","\u291A":"ratail","\u291B":"lAtail","\u291C":"rAtail","\u291D":"larrfs","\u291E":"rarrfs","\u291F":"larrbfs","\u2920":"rarrbfs","\u2923":"nwarhk","\u2924":"nearhk","\u2925":"searhk","\u2926":"swarhk","\u2927":"nwnear","\u2928":"toea","\u2929":"tosa","\u292A":"swnwar","\u2933":"rarrc","\u2933\u0338":"nrarrc","\u2935":"cudarrr","\u2936":"ldca","\u2937":"rdca","\u2938":"cudarrl","\u2939":"larrpl","\u293C":"curarrm","\u293D":"cularrp","\u2945":"rarrpl","\u2948":"harrcir","\u2949":"Uarrocir","\u294A":"lurdshar","\u294B":"ldrushar","\u294E":"LeftRightVector","\u294F":"RightUpDownVector","\u2950":"DownLeftRightVector","\u2951":"LeftUpDownVector","\u2952":"LeftVectorBar","\u2953":"RightVectorBar","\u2954":"RightUpVectorBar","\u2955":"RightDownVectorBar","\u2956":"DownLeftVectorBar","\u2957":"DownRightVectorBar","\u2958":"LeftUpVectorBar","\u2959":"LeftDownVectorBar","\u295A":"LeftTeeVector","\u295B":"RightTeeVector","\u295C":"RightUpTeeVector","\u295D":"RightDownTeeVector","\u295E":"DownLeftTeeVector","\u295F":"DownRightTeeVector","\u2960":"LeftUpTeeVector","\u2961":"LeftDownTeeVector","\u2962":"lHar","\u2963":"uHar","\u2964":"rHar","\u2965":"dHar","\u2966":"luruhar","\u2967":"ldrdhar","\u2968":"ruluhar","\u2969":"rdldhar","\u296A":"lharul","\u296B":"llhard","\u296C":"rharul","\u296D":"lrhard","\u296E":"udhar","\u296F":"duhar","\u2970":"RoundImplies","\u2971":"erarr","\u2972":"simrarr","\u2973":"larrsim","\u2974":"rarrsim","\u2975":"rarrap","\u2976":"ltlarr","\u2978":"gtrarr","\u2979":"subrarr","\u297B":"suplarr","\u297C":"lfisht","\u297D":"rfisht","\u297E":"ufisht","\u297F":"dfisht","\u299A":"vzigzag","\u299C":"vangrt","\u299D":"angrtvbd","\u29A4":"ange","\u29A5":"range","\u29A6":"dwangle","\u29A7":"uwangle","\u29A8":"angmsdaa","\u29A9":"angmsdab","\u29AA":"angmsdac","\u29AB":"angmsdad","\u29AC":"angmsdae","\u29AD":"angmsdaf","\u29AE":"angmsdag","\u29AF":"angmsdah","\u29B0":"bemptyv","\u29B1":"demptyv","\u29B2":"cemptyv","\u29B3":"raemptyv","\u29B4":"laemptyv","\u29B5":"ohbar","\u29B6":"omid","\u29B7":"opar","\u29B9":"operp","\u29BB":"olcross","\u29BC":"odsold","\u29BE":"olcir","\u29BF":"ofcir","\u29C0":"olt","\u29C1":"ogt","\u29C2":"cirscir","\u29C3":"cirE","\u29C4":"solb","\u29C5":"bsolb","\u29C9":"boxbox","\u29CD":"trisb","\u29CE":"rtriltri","\u29CF":"LeftTriangleBar","\u29CF\u0338":"NotLeftTriangleBar","\u29D0":"RightTriangleBar","\u29D0\u0338":"NotRightTriangleBar","\u29DC":"iinfin","\u29DD":"infintie","\u29DE":"nvinfin","\u29E3":"eparsl","\u29E4":"smeparsl","\u29E5":"eqvparsl","\u29EB":"lozf","\u29F4":"RuleDelayed","\u29F6":"dsol","\u2A00":"xodot","\u2A01":"xoplus","\u2A02":"xotime","\u2A04":"xuplus","\u2A06":"xsqcup","\u2A0D":"fpartint","\u2A10":"cirfnint","\u2A11":"awint","\u2A12":"rppolint","\u2A13":"scpolint","\u2A14":"npolint","\u2A15":"pointint","\u2A16":"quatint","\u2A17":"intlarhk","\u2A22":"pluscir","\u2A23":"plusacir","\u2A24":"simplus","\u2A25":"plusdu","\u2A26":"plussim","\u2A27":"plustwo","\u2A29":"mcomma","\u2A2A":"minusdu","\u2A2D":"loplus","\u2A2E":"roplus","\u2A2F":"Cross","\u2A30":"timesd","\u2A31":"timesbar","\u2A33":"smashp","\u2A34":"lotimes","\u2A35":"rotimes","\u2A36":"otimesas","\u2A37":"Otimes","\u2A38":"odiv","\u2A39":"triplus","\u2A3A":"triminus","\u2A3B":"tritime","\u2A3C":"iprod","\u2A3F":"amalg","\u2A40":"capdot","\u2A42":"ncup","\u2A43":"ncap","\u2A44":"capand","\u2A45":"cupor","\u2A46":"cupcap","\u2A47":"capcup","\u2A48":"cupbrcap","\u2A49":"capbrcup","\u2A4A":"cupcup","\u2A4B":"capcap","\u2A4C":"ccups","\u2A4D":"ccaps","\u2A50":"ccupssm","\u2A53":"And","\u2A54":"Or","\u2A55":"andand","\u2A56":"oror","\u2A57":"orslope","\u2A58":"andslope","\u2A5A":"andv","\u2A5B":"orv","\u2A5C":"andd","\u2A5D":"ord","\u2A5F":"wedbar","\u2A66":"sdote","\u2A6A":"simdot","\u2A6D":"congdot","\u2A6D\u0338":"ncongdot","\u2A6E":"easter","\u2A6F":"apacir","\u2A70":"apE","\u2A70\u0338":"napE","\u2A71":"eplus","\u2A72":"pluse","\u2A73":"Esim","\u2A77":"eDDot","\u2A78":"equivDD","\u2A79":"ltcir","\u2A7A":"gtcir","\u2A7B":"ltquest","\u2A7C":"gtquest","\u2A7D":"les","\u2A7D\u0338":"nles","\u2A7E":"ges","\u2A7E\u0338":"nges","\u2A7F":"lesdot","\u2A80":"gesdot","\u2A81":"lesdoto","\u2A82":"gesdoto","\u2A83":"lesdotor","\u2A84":"gesdotol","\u2A85":"lap","\u2A86":"gap","\u2A87":"lne","\u2A88":"gne","\u2A89":"lnap","\u2A8A":"gnap","\u2A8B":"lEg","\u2A8C":"gEl","\u2A8D":"lsime","\u2A8E":"gsime","\u2A8F":"lsimg","\u2A90":"gsiml","\u2A91":"lgE","\u2A92":"glE","\u2A93":"lesges","\u2A94":"gesles","\u2A95":"els","\u2A96":"egs","\u2A97":"elsdot","\u2A98":"egsdot","\u2A99":"el","\u2A9A":"eg","\u2A9D":"siml","\u2A9E":"simg","\u2A9F":"simlE","\u2AA0":"simgE","\u2AA1":"LessLess","\u2AA1\u0338":"NotNestedLessLess","\u2AA2":"GreaterGreater","\u2AA2\u0338":"NotNestedGreaterGreater","\u2AA4":"glj","\u2AA5":"gla","\u2AA6":"ltcc","\u2AA7":"gtcc","\u2AA8":"lescc","\u2AA9":"gescc","\u2AAA":"smt","\u2AAB":"lat","\u2AAC":"smte","\u2AAC\uFE00":"smtes","\u2AAD":"late","\u2AAD\uFE00":"lates","\u2AAE":"bumpE","\u2AAF":"pre","\u2AAF\u0338":"npre","\u2AB0":"sce","\u2AB0\u0338":"nsce","\u2AB3":"prE","\u2AB4":"scE","\u2AB5":"prnE","\u2AB6":"scnE","\u2AB7":"prap","\u2AB8":"scap","\u2AB9":"prnap","\u2ABA":"scnap","\u2ABB":"Pr","\u2ABC":"Sc","\u2ABD":"subdot","\u2ABE":"supdot","\u2ABF":"subplus","\u2AC0":"supplus","\u2AC1":"submult","\u2AC2":"supmult","\u2AC3":"subedot","\u2AC4":"supedot","\u2AC5":"subE","\u2AC5\u0338":"nsubE","\u2AC6":"supE","\u2AC6\u0338":"nsupE","\u2AC7":"subsim","\u2AC8":"supsim","\u2ACB\uFE00":"vsubnE","\u2ACB":"subnE","\u2ACC\uFE00":"vsupnE","\u2ACC":"supnE","\u2ACF":"csub","\u2AD0":"csup","\u2AD1":"csube","\u2AD2":"csupe","\u2AD3":"subsup","\u2AD4":"supsub","\u2AD5":"subsub","\u2AD6":"supsup","\u2AD7":"suphsub","\u2AD8":"supdsub","\u2AD9":"forkv","\u2ADA":"topfork","\u2ADB":"mlcp","\u2AE4":"Dashv","\u2AE6":"Vdashl","\u2AE7":"Barv","\u2AE8":"vBar","\u2AE9":"vBarv","\u2AEB":"Vbar","\u2AEC":"Not","\u2AED":"bNot","\u2AEE":"rnmid","\u2AEF":"cirmid","\u2AF0":"midcir","\u2AF1":"topcir","\u2AF2":"nhpar","\u2AF3":"parsim","\u2AFD":"parsl","\u2AFD\u20E5":"nparsl","\u266D":"flat","\u266E":"natur","\u266F":"sharp","\xA4":"curren","\xA2":"cent",$:"dollar","\xA3":"pound","\xA5":"yen","\u20AC":"euro","\xB9":"sup1","\xBD":"half","\u2153":"frac13","\xBC":"frac14","\u2155":"frac15","\u2159":"frac16","\u215B":"frac18","\xB2":"sup2","\u2154":"frac23","\u2156":"frac25","\xB3":"sup3","\xBE":"frac34","\u2157":"frac35","\u215C":"frac38","\u2158":"frac45","\u215A":"frac56","\u215D":"frac58","\u215E":"frac78","\u{1D4B6}":"ascr","\u{1D552}":"aopf","\u{1D51E}":"afr","\u{1D538}":"Aopf","\u{1D504}":"Afr","\u{1D49C}":"Ascr",\u00AA:"ordf",\u00E1:"aacute",\u00C1:"Aacute",\u00E0:"agrave",\u00C0:"Agrave",\u0103:"abreve",\u0102:"Abreve",\u00E2:"acirc",\u00C2:"Acirc",\u00E5:"aring",\u00C5:"angst",\u00E4:"auml",\u00C4:"Auml",\u00E3:"atilde",\u00C3:"Atilde",\u0105:"aogon",\u0104:"Aogon",\u0101:"amacr",\u0100:"Amacr",\u00E6:"aelig",\u00C6:"AElig","\u{1D4B7}":"bscr","\u{1D553}":"bopf","\u{1D51F}":"bfr","\u{1D539}":"Bopf",\u212C:"Bscr","\u{1D505}":"Bfr","\u{1D520}":"cfr","\u{1D4B8}":"cscr","\u{1D554}":"copf",\u212D:"Cfr","\u{1D49E}":"Cscr",\u2102:"Copf",\u0107:"cacute",\u0106:"Cacute",\u0109:"ccirc",\u0108:"Ccirc",\u010D:"ccaron",\u010C:"Ccaron",\u010B:"cdot",\u010A:"Cdot",\u00E7:"ccedil",\u00C7:"Ccedil","\u2105":"incare","\u{1D521}":"dfr","\u2146":"dd","\u{1D555}":"dopf","\u{1D4B9}":"dscr","\u{1D49F}":"Dscr","\u{1D507}":"Dfr","\u2145":"DD","\u{1D53B}":"Dopf",\u010F:"dcaron",\u010E:"Dcaron",\u0111:"dstrok",\u0110:"Dstrok",\u00F0:"eth",\u00D0:"ETH","\u2147":"ee",\u212F:"escr","\u{1D522}":"efr","\u{1D556}":"eopf",\u2130:"Escr","\u{1D508}":"Efr","\u{1D53C}":"Eopf",\u00E9:"eacute",\u00C9:"Eacute",\u00E8:"egrave",\u00C8:"Egrave",\u00EA:"ecirc",\u00CA:"Ecirc",\u011B:"ecaron",\u011A:"Ecaron",\u00EB:"euml",\u00CB:"Euml",\u0117:"edot",\u0116:"Edot",\u0119:"eogon",\u0118:"Eogon",\u0113:"emacr",\u0112:"Emacr","\u{1D523}":"ffr","\u{1D557}":"fopf","\u{1D4BB}":"fscr","\u{1D509}":"Ffr","\u{1D53D}":"Fopf",\u2131:"Fscr",\uFB00:"fflig",\uFB03:"ffilig",\uFB04:"ffllig",\uFB01:"filig",fj:"fjlig",\uFB02:"fllig",\u0192:"fnof",\u210A:"gscr","\u{1D558}":"gopf","\u{1D524}":"gfr","\u{1D4A2}":"Gscr","\u{1D53E}":"Gopf","\u{1D50A}":"Gfr",\u01F5:"gacute",\u011F:"gbreve",\u011E:"Gbreve",\u011D:"gcirc",\u011C:"Gcirc",\u0121:"gdot",\u0120:"Gdot",\u0122:"Gcedil","\u{1D525}":"hfr",\u210E:"planckh","\u{1D4BD}":"hscr","\u{1D559}":"hopf",\u210B:"Hscr",\u210C:"Hfr",\u210D:"Hopf",\u0125:"hcirc",\u0124:"Hcirc",\u210F:"hbar",\u0127:"hstrok",\u0126:"Hstrok","\u{1D55A}":"iopf","\u{1D526}":"ifr","\u{1D4BE}":"iscr","\u2148":"ii","\u{1D540}":"Iopf",\u2110:"Iscr",\u2111:"Im",\u00ED:"iacute",\u00CD:"Iacute",\u00EC:"igrave",\u00CC:"Igrave",\u00EE:"icirc",\u00CE:"Icirc",\u00EF:"iuml",\u00CF:"Iuml",\u0129:"itilde",\u0128:"Itilde",\u0130:"Idot",\u012F:"iogon",\u012E:"Iogon",\u012B:"imacr",\u012A:"Imacr",\u0133:"ijlig",\u0132:"IJlig",\u0131:"imath","\u{1D4BF}":"jscr","\u{1D55B}":"jopf","\u{1D527}":"jfr","\u{1D4A5}":"Jscr","\u{1D50D}":"Jfr","\u{1D541}":"Jopf",\u0135:"jcirc",\u0134:"Jcirc","\u0237":"jmath","\u{1D55C}":"kopf","\u{1D4C0}":"kscr","\u{1D528}":"kfr","\u{1D4A6}":"Kscr","\u{1D542}":"Kopf","\u{1D50E}":"Kfr",\u0137:"kcedil",\u0136:"Kcedil","\u{1D529}":"lfr","\u{1D4C1}":"lscr",\u2113:"ell","\u{1D55D}":"lopf",\u2112:"Lscr","\u{1D50F}":"Lfr","\u{1D543}":"Lopf",\u013A:"lacute",\u0139:"Lacute",\u013E:"lcaron",\u013D:"Lcaron",\u013C:"lcedil",\u013B:"Lcedil",\u0142:"lstrok",\u0141:"Lstrok",\u0140:"lmidot",\u013F:"Lmidot","\u{1D52A}":"mfr","\u{1D55E}":"mopf","\u{1D4C2}":"mscr","\u{1D510}":"Mfr","\u{1D544}":"Mopf",\u2133:"Mscr","\u{1D52B}":"nfr","\u{1D55F}":"nopf","\u{1D4C3}":"nscr",\u2115:"Nopf","\u{1D4A9}":"Nscr","\u{1D511}":"Nfr",\u0144:"nacute",\u0143:"Nacute",\u0148:"ncaron",\u0147:"Ncaron",\u00F1:"ntilde",\u00D1:"Ntilde",\u0146:"ncedil",\u0145:"Ncedil","\u2116":"numero",\u014B:"eng",\u014A:"ENG","\u{1D560}":"oopf","\u{1D52C}":"ofr",\u2134:"oscr","\u{1D4AA}":"Oscr","\u{1D512}":"Ofr","\u{1D546}":"Oopf",\u00BA:"ordm",\u00F3:"oacute",\u00D3:"Oacute",\u00F2:"ograve",\u00D2:"Ograve",\u00F4:"ocirc",\u00D4:"Ocirc",\u00F6:"ouml",\u00D6:"Ouml",\u0151:"odblac",\u0150:"Odblac",\u00F5:"otilde",\u00D5:"Otilde",\u00F8:"oslash",\u00D8:"Oslash",\u014D:"omacr",\u014C:"Omacr",\u0153:"oelig",\u0152:"OElig","\u{1D52D}":"pfr","\u{1D4C5}":"pscr","\u{1D561}":"popf",\u2119:"Popf","\u{1D513}":"Pfr","\u{1D4AB}":"Pscr","\u{1D562}":"qopf","\u{1D52E}":"qfr","\u{1D4C6}":"qscr","\u{1D4AC}":"Qscr","\u{1D514}":"Qfr",\u211A:"Qopf",\u0138:"kgreen","\u{1D52F}":"rfr","\u{1D563}":"ropf","\u{1D4C7}":"rscr",\u211B:"Rscr",\u211C:"Re",\u211D:"Ropf",\u0155:"racute",\u0154:"Racute",\u0159:"rcaron",\u0158:"Rcaron",\u0157:"rcedil",\u0156:"Rcedil","\u{1D564}":"sopf","\u{1D4C8}":"sscr","\u{1D530}":"sfr","\u{1D54A}":"Sopf","\u{1D516}":"Sfr","\u{1D4AE}":"Sscr","\u24C8":"oS",\u015B:"sacute",\u015A:"Sacute",\u015D:"scirc",\u015C:"Scirc",\u0161:"scaron",\u0160:"Scaron",\u015F:"scedil",\u015E:"Scedil",\u00DF:"szlig","\u{1D531}":"tfr","\u{1D4C9}":"tscr","\u{1D565}":"topf","\u{1D4AF}":"Tscr","\u{1D517}":"Tfr","\u{1D54B}":"Topf",\u0165:"tcaron",\u0164:"Tcaron",\u0163:"tcedil",\u0162:"Tcedil","\u2122":"trade",\u0167:"tstrok",\u0166:"Tstrok","\u{1D4CA}":"uscr","\u{1D566}":"uopf","\u{1D532}":"ufr","\u{1D54C}":"Uopf","\u{1D518}":"Ufr","\u{1D4B0}":"Uscr",\u00FA:"uacute",\u00DA:"Uacute",\u00F9:"ugrave",\u00D9:"Ugrave",\u016D:"ubreve",\u016C:"Ubreve",\u00FB:"ucirc",\u00DB:"Ucirc",\u016F:"uring",\u016E:"Uring",\u00FC:"uuml",\u00DC:"Uuml",\u0171:"udblac",\u0170:"Udblac",\u0169:"utilde",\u0168:"Utilde",\u0173:"uogon",\u0172:"Uogon",\u016B:"umacr",\u016A:"Umacr","\u{1D533}":"vfr","\u{1D567}":"vopf","\u{1D4CB}":"vscr","\u{1D519}":"Vfr","\u{1D54D}":"Vopf","\u{1D4B1}":"Vscr","\u{1D568}":"wopf","\u{1D4CC}":"wscr","\u{1D534}":"wfr","\u{1D4B2}":"Wscr","\u{1D54E}":"Wopf","\u{1D51A}":"Wfr",\u0175:"wcirc",\u0174:"Wcirc","\u{1D535}":"xfr","\u{1D4CD}":"xscr","\u{1D569}":"xopf","\u{1D54F}":"Xopf","\u{1D51B}":"Xfr","\u{1D4B3}":"Xscr","\u{1D536}":"yfr","\u{1D4CE}":"yscr","\u{1D56A}":"yopf","\u{1D4B4}":"Yscr","\u{1D51C}":"Yfr","\u{1D550}":"Yopf",\u00FD:"yacute",\u00DD:"Yacute",\u0177:"ycirc",\u0176:"Ycirc",\u00FF:"yuml",\u0178:"Yuml","\u{1D4CF}":"zscr","\u{1D537}":"zfr","\u{1D56B}":"zopf",\u2128:"Zfr",\u2124:"Zopf","\u{1D4B5}":"Zscr",\u017A:"zacute",\u0179:"Zacute",\u017E:"zcaron",\u017D:"Zcaron",\u017C:"zdot",\u017B:"Zdot",\u01B5:"imped",\u00FE:"thorn",\u00DE:"THORN",\u0149:"napos",\u03B1:"alpha",\u0391:"Alpha",\u03B2:"beta",\u0392:"Beta",\u03B3:"gamma",\u0393:"Gamma",\u03B4:"delta",\u0394:"Delta",\u03B5:"epsi","\u03F5":"epsiv",\u0395:"Epsilon",\u03DD:"gammad",\u03DC:"Gammad",\u03B6:"zeta",\u0396:"Zeta",\u03B7:"eta",\u0397:"Eta",\u03B8:"theta",\u03D1:"thetav",\u0398:"Theta",\u03B9:"iota",\u0399:"Iota",\u03BA:"kappa",\u03F0:"kappav",\u039A:"Kappa",\u03BB:"lambda",\u039B:"Lambda",\u03BC:"mu",\u00B5:"micro",\u039C:"Mu",\u03BD:"nu",\u039D:"Nu",\u03BE:"xi",\u039E:"Xi",\u03BF:"omicron",\u039F:"Omicron",\u03C0:"pi",\u03D6:"piv",\u03A0:"Pi",\u03C1:"rho",\u03F1:"rhov",\u03A1:"Rho",\u03C3:"sigma",\u03A3:"Sigma",\u03C2:"sigmaf",\u03C4:"tau",\u03A4:"Tau",\u03C5:"upsi",\u03A5:"Upsilon",\u03D2:"Upsi",\u03C6:"phi",\u03D5:"phiv",\u03A6:"Phi",\u03C7:"chi",\u03A7:"Chi",\u03C8:"psi",\u03A8:"Psi",\u03C9:"omega",\u03A9:"ohm",\u0430:"acy",\u0410:"Acy",\u0431:"bcy",\u0411:"Bcy",\u0432:"vcy",\u0412:"Vcy",\u0433:"gcy",\u0413:"Gcy",\u0453:"gjcy",\u0403:"GJcy",\u0434:"dcy",\u0414:"Dcy",\u0452:"djcy",\u0402:"DJcy",\u0435:"iecy",\u0415:"IEcy",\u0451:"iocy",\u0401:"IOcy",\u0454:"jukcy",\u0404:"Jukcy",\u0436:"zhcy",\u0416:"ZHcy",\u0437:"zcy",\u0417:"Zcy",\u0455:"dscy",\u0405:"DScy",\u0438:"icy",\u0418:"Icy",\u0456:"iukcy",\u0406:"Iukcy",\u0457:"yicy",\u0407:"YIcy",\u0439:"jcy",\u0419:"Jcy",\u0458:"jsercy",\u0408:"Jsercy",\u043A:"kcy",\u041A:"Kcy",\u045C:"kjcy",\u040C:"KJcy",\u043B:"lcy",\u041B:"Lcy",\u0459:"ljcy",\u0409:"LJcy",\u043C:"mcy",\u041C:"Mcy",\u043D:"ncy",\u041D:"Ncy",\u045A:"njcy",\u040A:"NJcy",\u043E:"ocy",\u041E:"Ocy",\u043F:"pcy",\u041F:"Pcy",\u0440:"rcy",\u0420:"Rcy",\u0441:"scy",\u0421:"Scy",\u0442:"tcy",\u0422:"Tcy",\u045B:"tshcy",\u040B:"TSHcy",\u0443:"ucy",\u0423:"Ucy",\u045E:"ubrcy",\u040E:"Ubrcy",\u0444:"fcy",\u0424:"Fcy",\u0445:"khcy",\u0425:"KHcy",\u0446:"tscy",\u0426:"TScy",\u0447:"chcy",\u0427:"CHcy",\u045F:"dzcy",\u040F:"DZcy",\u0448:"shcy",\u0428:"SHcy",\u0449:"shchcy",\u0429:"SHCHcy",\u044A:"hardcy",\u042A:"HARDcy",\u044B:"ycy",\u042B:"Ycy",\u044C:"softcy",\u042C:"SOFTcy",\u044D:"ecy",\u042D:"Ecy",\u044E:"yucy",\u042E:"YUcy",\u044F:"yacy",\u042F:"YAcy",\u2135:"aleph",\u2136:"beth",\u2137:"gimel",\u2138:"daleth"},u=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},f=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,h=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,g={aacute:"\xE1",Aacute:"\xC1",abreve:"\u0103",Abreve:"\u0102",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",acirc:"\xE2",Acirc:"\xC2",acute:"\xB4",acy:"\u0430",Acy:"\u0410",aelig:"\xE6",AElig:"\xC6",af:"\u2061",afr:"\u{1D51E}",Afr:"\u{1D504}",agrave:"\xE0",Agrave:"\xC0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",Alpha:"\u0391",amacr:"\u0101",Amacr:"\u0100",amalg:"\u2A3F",amp:"&",AMP:"&",and:"\u2227",And:"\u2A53",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",Aogon:"\u0104",aopf:"\u{1D552}",Aopf:"\u{1D538}",ap:"\u2248",apacir:"\u2A6F",ape:"\u224A",apE:"\u2A70",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",Aring:"\xC5",ascr:"\u{1D4B6}",Ascr:"\u{1D49C}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",Atilde:"\xC3",auml:"\xE4",Auml:"\xC4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",Bcy:"\u0411",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",beta:"\u03B2",Beta:"\u0392",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",Bfr:"\u{1D505}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bNot:"\u2AED",bopf:"\u{1D553}",Bopf:"\u{1D539}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxhD:"\u2565",boxHd:"\u2564",boxHD:"\u2566",boxhu:"\u2534",boxhU:"\u2568",boxHu:"\u2567",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpe:"\u224F",bumpE:"\u2AAE",bumpeq:"\u224F",Bumpeq:"\u224E",cacute:"\u0107",Cacute:"\u0106",cap:"\u2229",Cap:"\u22D2",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",ccaron:"\u010D",Ccaron:"\u010C",ccedil:"\xE7",Ccedil:"\xC7",ccirc:"\u0109",Ccirc:"\u0108",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",Cdot:"\u010A",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",chcy:"\u0447",CHcy:"\u0427",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",Chi:"\u03A7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cire:"\u2257",cirE:"\u29C3",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",colone:"\u2254",Colone:"\u2A74",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",cscr:"\u{1D4B8}",Cscr:"\u{1D49E}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",Cup:"\u22D3",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",dArr:"\u21D3",Darr:"\u21A1",dash:"\u2010",dashv:"\u22A3",Dashv:"\u2AE4",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",Dcaron:"\u010E",dcy:"\u0434",Dcy:"\u0414",dd:"\u2146",DD:"\u2145",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",delta:"\u03B4",Delta:"\u0394",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",Dfr:"\u{1D507}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",DJcy:"\u0402",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",Dopf:"\u{1D53B}",dot:"\u02D9",Dot:"\xA8",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",downarrow:"\u2193",Downarrow:"\u21D3",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",Dscr:"\u{1D49F}",dscy:"\u0455",DScy:"\u0405",dsol:"\u29F6",dstrok:"\u0111",Dstrok:"\u0110",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",DZcy:"\u040F",dzigrarr:"\u27FF",eacute:"\xE9",Eacute:"\xC9",easter:"\u2A6E",ecaron:"\u011B",Ecaron:"\u011A",ecir:"\u2256",ecirc:"\xEA",Ecirc:"\xCA",ecolon:"\u2255",ecy:"\u044D",Ecy:"\u042D",eDDot:"\u2A77",edot:"\u0117",eDot:"\u2251",Edot:"\u0116",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",Efr:"\u{1D508}",eg:"\u2A9A",egrave:"\xE8",Egrave:"\xC8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",Emacr:"\u0112",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",eng:"\u014B",ENG:"\u014A",ensp:"\u2002",eogon:"\u0119",Eogon:"\u0118",eopf:"\u{1D556}",Eopf:"\u{1D53C}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",Epsilon:"\u0395",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",esim:"\u2242",Esim:"\u2A73",eta:"\u03B7",Eta:"\u0397",eth:"\xF0",ETH:"\xD0",euml:"\xEB",Euml:"\xCB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",Fcy:"\u0424",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",Ffr:"\u{1D509}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",Fopf:"\u{1D53D}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",gamma:"\u03B3",Gamma:"\u0393",gammad:"\u03DD",Gammad:"\u03DC",gap:"\u2A86",gbreve:"\u011F",Gbreve:"\u011E",Gcedil:"\u0122",gcirc:"\u011D",Gcirc:"\u011C",gcy:"\u0433",Gcy:"\u0413",gdot:"\u0121",Gdot:"\u0120",ge:"\u2265",gE:"\u2267",gel:"\u22DB",gEl:"\u2A8C",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",Gfr:"\u{1D50A}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",GJcy:"\u0403",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",Gopf:"\u{1D53E}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",gscr:"\u210A",Gscr:"\u{1D4A2}",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",Gt:"\u226B",GT:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",HARDcy:"\u042A",harr:"\u2194",hArr:"\u21D4",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",hcirc:"\u0125",Hcirc:"\u0124",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",hstrok:"\u0127",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",Iacute:"\xCD",ic:"\u2063",icirc:"\xEE",Icirc:"\xCE",icy:"\u0438",Icy:"\u0418",Idot:"\u0130",iecy:"\u0435",IEcy:"\u0415",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",igrave:"\xEC",Igrave:"\xCC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",IJlig:"\u0132",Im:"\u2111",imacr:"\u012B",Imacr:"\u012A",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",Int:"\u222C",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",iocy:"\u0451",IOcy:"\u0401",iogon:"\u012F",Iogon:"\u012E",iopf:"\u{1D55A}",Iopf:"\u{1D540}",iota:"\u03B9",Iota:"\u0399",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",Itilde:"\u0128",iukcy:"\u0456",Iukcy:"\u0406",iuml:"\xEF",Iuml:"\xCF",jcirc:"\u0135",Jcirc:"\u0134",jcy:"\u0439",Jcy:"\u0419",jfr:"\u{1D527}",Jfr:"\u{1D50D}",jmath:"\u0237",jopf:"\u{1D55B}",Jopf:"\u{1D541}",jscr:"\u{1D4BF}",Jscr:"\u{1D4A5}",jsercy:"\u0458",Jsercy:"\u0408",jukcy:"\u0454",Jukcy:"\u0404",kappa:"\u03BA",Kappa:"\u039A",kappav:"\u03F0",kcedil:"\u0137",Kcedil:"\u0136",kcy:"\u043A",Kcy:"\u041A",kfr:"\u{1D528}",Kfr:"\u{1D50E}",kgreen:"\u0138",khcy:"\u0445",KHcy:"\u0425",kjcy:"\u045C",KJcy:"\u040C",kopf:"\u{1D55C}",Kopf:"\u{1D542}",kscr:"\u{1D4C0}",Kscr:"\u{1D4A6}",lAarr:"\u21DA",lacute:"\u013A",Lacute:"\u0139",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",Lambda:"\u039B",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larr:"\u2190",lArr:"\u21D0",Larr:"\u219E",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",lAtail:"\u291B",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",Lcaron:"\u013D",lcedil:"\u013C",Lcedil:"\u013B",lceil:"\u2308",lcub:"{",lcy:"\u043B",Lcy:"\u041B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",leftarrow:"\u2190",Leftarrow:"\u21D0",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",Leftrightarrow:"\u21D4",LeftRightArrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",leg:"\u22DA",lEg:"\u2A8B",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",Lfr:"\u{1D50F}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",LJcy:"\u0409",ll:"\u226A",Ll:"\u22D8",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",Lmidot:"\u013F",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",Longleftarrow:"\u27F8",LongLeftArrow:"\u27F5",longleftrightarrow:"\u27F7",Longleftrightarrow:"\u27FA",LongLeftRightArrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",Longrightarrow:"\u27F9",LongRightArrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",Lopf:"\u{1D543}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",Lstrok:"\u0141",lt:"<",Lt:"\u226A",LT:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",Map:"\u2905",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",Mcy:"\u041C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",mfr:"\u{1D52A}",Mfr:"\u{1D510}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",Mopf:"\u{1D544}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",mu:"\u03BC",Mu:"\u039C",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",nacute:"\u0144",Nacute:"\u0143",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",Ncaron:"\u0147",ncedil:"\u0146",Ncedil:"\u0145",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",Ncy:"\u041D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",pcy:"\u043F",Pcy:"\u041F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",Pfr:"\u{1D513}",phi:"\u03C6",Phi:"\u03A6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",Pi:"\u03A0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",pr:"\u227A",Pr:"\u2ABB",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prE:"\u2AB3",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",Pscr:"\u{1D4AB}",psi:"\u03C8",Psi:"\u03A8",puncsp:"\u2008",qfr:"\u{1D52E}",Qfr:"\u{1D514}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",qscr:"\u{1D4C6}",Qscr:"\u{1D4AC}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",racute:"\u0155",Racute:"\u0154",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rArr:"\u21D2",Rarr:"\u21A0",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",Rarrtl:"\u2916",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",Rcaron:"\u0158",rcedil:"\u0157",Rcedil:"\u0156",rceil:"\u2309",rcub:"}",rcy:"\u0440",Rcy:"\u0420",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",Rho:"\u03A1",rhov:"\u03F1",RightAngleBracket:"\u27E9",rightarrow:"\u2192",Rightarrow:"\u21D2",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",Sacute:"\u015A",sbquo:"\u201A",sc:"\u227B",Sc:"\u2ABC",scap:"\u2AB8",scaron:"\u0161",Scaron:"\u0160",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",scedil:"\u015F",Scedil:"\u015E",scirc:"\u015D",Scirc:"\u015C",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",Scy:"\u0421",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",Sfr:"\u{1D516}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",SHCHcy:"\u0429",shcy:"\u0448",SHcy:"\u0428",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",sigma:"\u03C3",Sigma:"\u03A3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",SOFTcy:"\u042C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",Sopf:"\u{1D54A}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",Sscr:"\u{1D4AE}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",Star:"\u22C6",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",sube:"\u2286",subE:"\u2AC5",subedot:"\u2AC3",submult:"\u2AC1",subne:"\u228A",subnE:"\u2ACB",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup:"\u2283",Sup:"\u22D1",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supE:"\u2AC6",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supne:"\u228B",supnE:"\u2ACC",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",tau:"\u03C4",Tau:"\u03A4",tbrk:"\u23B4",tcaron:"\u0165",Tcaron:"\u0164",tcedil:"\u0163",Tcedil:"\u0162",tcy:"\u0442",Tcy:"\u0422",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",Tfr:"\u{1D517}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",theta:"\u03B8",Theta:"\u0398",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",THORN:"\xDE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",Topf:"\u{1D54B}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",Tscr:"\u{1D4AF}",tscy:"\u0446",TScy:"\u0426",tshcy:"\u045B",TSHcy:"\u040B",tstrok:"\u0167",Tstrok:"\u0166",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uacute:"\xFA",Uacute:"\xDA",uarr:"\u2191",uArr:"\u21D1",Uarr:"\u219F",Uarrocir:"\u2949",ubrcy:"\u045E",Ubrcy:"\u040E",ubreve:"\u016D",Ubreve:"\u016C",ucirc:"\xFB",Ucirc:"\xDB",ucy:"\u0443",Ucy:"\u0423",udarr:"\u21C5",udblac:"\u0171",Udblac:"\u0170",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",Ufr:"\u{1D518}",ugrave:"\xF9",Ugrave:"\xD9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",Umacr:"\u016A",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",uogon:"\u0173",Uogon:"\u0172",uopf:"\u{1D566}",Uopf:"\u{1D54C}",uparrow:"\u2191",Uparrow:"\u21D1",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",Updownarrow:"\u21D5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",upsilon:"\u03C5",Upsilon:"\u03A5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",Uring:"\u016E",urtri:"\u25F9",uscr:"\u{1D4CA}",Uscr:"\u{1D4B0}",utdot:"\u22F0",utilde:"\u0169",Utilde:"\u0168",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",Uuml:"\xDC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",vcy:"\u0432",Vcy:"\u0412",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",vee:"\u2228",Vee:"\u22C1",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",vfr:"\u{1D533}",Vfr:"\u{1D519}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",Vopf:"\u{1D54D}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",Vscr:"\u{1D4B1}",vsubne:"\u228A\uFE00",vsubnE:"\u2ACB\uFE00",vsupne:"\u228B\uFE00",vsupnE:"\u2ACC\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",wcirc:"\u0175",Wcirc:"\u0174",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",Wfr:"\u{1D51A}",wopf:"\u{1D568}",Wopf:"\u{1D54E}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",Wscr:"\u{1D4B2}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",Xfr:"\u{1D51B}",xharr:"\u27F7",xhArr:"\u27FA",xi:"\u03BE",Xi:"\u039E",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",Xopf:"\u{1D54F}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",xscr:"\u{1D4CD}",Xscr:"\u{1D4B3}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",Yacute:"\xDD",yacy:"\u044F",YAcy:"\u042F",ycirc:"\u0177",Ycirc:"\u0176",ycy:"\u044B",Ycy:"\u042B",yen:"\xA5",yfr:"\u{1D536}",Yfr:"\u{1D51C}",yicy:"\u0457",YIcy:"\u0407",yopf:"\u{1D56A}",Yopf:"\u{1D550}",yscr:"\u{1D4CE}",Yscr:"\u{1D4B4}",yucy:"\u044E",YUcy:"\u042E",yuml:"\xFF",Yuml:"\u0178",zacute:"\u017A",Zacute:"\u0179",zcaron:"\u017E",Zcaron:"\u017D",zcy:"\u0437",Zcy:"\u0417",zdot:"\u017C",Zdot:"\u017B",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",zeta:"\u03B6",Zeta:"\u0396",zfr:"\u{1D537}",Zfr:"\u2128",zhcy:"\u0436",ZHcy:"\u0416",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",zscr:"\u{1D4CF}",Zscr:"\u{1D4B5}",zwj:"\u200D",zwnj:"\u200C"},A={aacute:"\xE1",Aacute:"\xC1",acirc:"\xE2",Acirc:"\xC2",acute:"\xB4",aelig:"\xE6",AElig:"\xC6",agrave:"\xE0",Agrave:"\xC0",amp:"&",AMP:"&",aring:"\xE5",Aring:"\xC5",atilde:"\xE3",Atilde:"\xC3",auml:"\xE4",Auml:"\xC4",brvbar:"\xA6",ccedil:"\xE7",Ccedil:"\xC7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",Eacute:"\xC9",ecirc:"\xEA",Ecirc:"\xCA",egrave:"\xE8",Egrave:"\xC8",eth:"\xF0",ETH:"\xD0",euml:"\xEB",Euml:"\xCB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",iacute:"\xED",Iacute:"\xCD",icirc:"\xEE",Icirc:"\xCE",iexcl:"\xA1",igrave:"\xEC",Igrave:"\xCC",iquest:"\xBF",iuml:"\xEF",Iuml:"\xCF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",Ntilde:"\xD1",oacute:"\xF3",Oacute:"\xD3",ocirc:"\xF4",Ocirc:"\xD4",ograve:"\xF2",Ograve:"\xD2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",Oslash:"\xD8",otilde:"\xF5",Otilde:"\xD5",ouml:"\xF6",Ouml:"\xD6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",THORN:"\xDE",times:"\xD7",uacute:"\xFA",Uacute:"\xDA",ucirc:"\xFB",Ucirc:"\xDB",ugrave:"\xF9",Ugrave:"\xD9",uml:"\xA8",uuml:"\xFC",Uuml:"\xDC",yacute:"\xFD",Yacute:"\xDD",yen:"\xA5",yuml:"\xFF"},E={0:"\uFFFD",128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"},y=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],C=String.fromCharCode,w={},B=w.hasOwnProperty,Q=o(function(z,Se){return B.call(z,Se)},"has"),U=o(function(z,Se){for(var xe=-1,lt=z.length;++xe<lt;)if(z[xe]==Se)return!0;return!1},"contains"),v=o(function(z,Se){if(!z)return Se;var xe={},lt;for(lt in Se)xe[lt]=Q(z,lt)?z[lt]:Se[lt];return xe},"merge"),j=o(function(z,Se){var xe="";return z>=55296&&z<=57343||z>1114111?(Se&&V("character reference outside the permissible Unicode range"),"\uFFFD"):Q(E,z)?(Se&&V("disallowed character reference"),E[z]):(Se&&U(y,z)&&V("disallowed character reference"),z>65535&&(z-=65536,xe+=C(z>>>10&1023|55296),z=56320|z&1023),xe+=C(z),xe)},"codePointToSymbol"),D=o(function(z){return"&#x"+z.toString(16).toUpperCase()+";"},"hexEscape"),H=o(function(z){return"&#"+z+";"},"decEscape"),V=o(function(z){throw Error("Parse error: "+z)},"parseError"),J=o(function(z,Se){Se=v(Se,J.options);var xe=Se.strict;xe&&h.test(z)&&V("forbidden code point");var lt=Se.encodeEverything,Rt=Se.useNamedReferences,fn=Se.allowUnsafeSymbols,hn=Se.decimal?H:D,oi=o(function(hr){return hn(hr.charCodeAt(0))},"escapeBmpSymbol");return lt?(z=z.replace(s,function(hr){return Rt&&Q(l,hr)?"&"+l[hr]+";":oi(hr)}),Rt&&(z=z.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),Rt&&(z=z.replace(c,function(hr){return"&"+l[hr]+";"}))):Rt?(fn||(z=z.replace(u,function(hr){return"&"+l[hr]+";"})),z=z.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒"),z=z.replace(c,function(hr){return"&"+l[hr]+";"})):fn||(z=z.replace(u,oi)),z.replace(i,function(hr){var Wr=hr.charCodeAt(0),vh=hr.charCodeAt(1),pu=(Wr-55296)*1024+vh-56320+65536;return hn(pu)}).replace(a,oi)},"encode");J.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var oe=o(function(z,Se){Se=v(Se,oe.options);var xe=Se.strict;return xe&&f.test(z)&&V("malformed character reference"),z.replace(p,function(lt,Rt,fn,hn,oi,hr,Wr,vh,pu){var vc,ms,La,Pd,kd,Au;return Rt?(kd=Rt,g[kd]):fn?(kd=fn,Au=hn,Au&&Se.isAttributeValue?(xe&&Au=="="&&V("`&` did not start a character reference"),lt):(xe&&V("named character reference was not terminated by a semicolon"),A[kd]+(Au||""))):oi?(La=oi,ms=hr,xe&&!ms&&V("character reference was not terminated by a semicolon"),vc=parseInt(La,10),j(vc,xe)):Wr?(Pd=Wr,ms=vh,xe&&!ms&&V("character reference was not terminated by a semicolon"),vc=parseInt(Pd,16),j(vc,xe)):(xe&&V("named character reference was not terminated by a semicolon"),lt)})},"decode");oe.options={isAttributeValue:!1,strict:!1};var ae=o(function(z){return z.replace(u,function(Se){return d[Se]})},"escape"),Ce={version:"1.2.0",encode:J,decode:oe,escape:ae,unescape:oe};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd)define(function(){return Ce});else if(e&&!e.nodeType)if(r)r.exports=Ce;else for(var K in Ce)Q(Ce,K)&&(e[K]=Ce[K]);else t.he=Ce})(ak)});var yk=m(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.Signature=uh.Envelope=void 0;uh.Envelope={fromJSON(t){return{payload:gk(t.payload)?Buffer.from(JOe(t.payload)):Buffer.alloc(0),payloadType:gk(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>uh.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=YOe(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>uh.Signature.toJSON(r))),e}};uh.Signature={fromJSON(t){return{sig:gk(t.sig)?Buffer.from(JOe(t.sig)):Buffer.alloc(0),keyid:gk(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=YOe(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function JOe(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(JOe,"bytesFromBase64");function YOe(t){return globalThis.Buffer.from(t).toString("base64")}o(YOe,"base64FromBytes");function gk(t){return t!=null}o(gk,"isSet")});var XOe=m(Ek=>{"use strict";Object.defineProperty(Ek,"__esModule",{value:!0});Ek.Timestamp=void 0;Ek.Timestamp={fromJSON(t){return{seconds:KOe(t.seconds)?globalThis.String(t.seconds):"0",nanos:KOe(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function KOe(t){return t!=null}o(KOe,"isSet")});var Bd=m(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.TimeRange=Ge.X509CertificateChain=Ge.SubjectAlternativeName=Ge.X509Certificate=Ge.DistinguishedName=Ge.ObjectIdentifierValuePair=Ge.ObjectIdentifier=Ge.PublicKeyIdentifier=Ge.PublicKey=Ge.RFC3161SignedTimestamp=Ge.LogId=Ge.MessageSignature=Ge.HashOutput=Ge.SubjectAlternativeNameType=Ge.PublicKeyDetails=Ge.HashAlgorithm=void 0;Ge.hashAlgorithmFromJSON=eLe;Ge.hashAlgorithmToJSON=tLe;Ge.publicKeyDetailsFromJSON=rLe;Ge.publicKeyDetailsToJSON=nLe;Ge.subjectAlternativeNameTypeFromJSON=iLe;Ge.subjectAlternativeNameTypeToJSON=sLe;var DUt=XOe(),Gs;(function(t){t[t.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",t[t.SHA2_256=1]="SHA2_256",t[t.SHA2_384=2]="SHA2_384",t[t.SHA2_512=3]="SHA2_512",t[t.SHA3_256=4]="SHA3_256",t[t.SHA3_384=5]="SHA3_384"})(Gs||(Ge.HashAlgorithm=Gs={}));function eLe(t){switch(t){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return Gs.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return Gs.SHA2_256;case 2:case"SHA2_384":return Gs.SHA2_384;case 3:case"SHA2_512":return Gs.SHA2_512;case 4:case"SHA3_256":return Gs.SHA3_256;case 5:case"SHA3_384":return Gs.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(eLe,"hashAlgorithmFromJSON");function tLe(t){switch(t){case Gs.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case Gs.SHA2_256:return"SHA2_256";case Gs.SHA2_384:return"SHA2_384";case Gs.SHA2_512:return"SHA2_512";case Gs.SHA3_256:return"SHA3_256";case Gs.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(tLe,"hashAlgorithmToJSON");var qe;(function(t){t[t.PUBLIC_KEY_DETAILS_UNSPECIFIED=0]="PUBLIC_KEY_DETAILS_UNSPECIFIED",t[t.PKCS1_RSA_PKCS1V5=1]="PKCS1_RSA_PKCS1V5",t[t.PKCS1_RSA_PSS=2]="PKCS1_RSA_PSS",t[t.PKIX_RSA_PKCS1V5=3]="PKIX_RSA_PKCS1V5",t[t.PKIX_RSA_PSS=4]="PKIX_RSA_PSS",t[t.PKIX_RSA_PKCS1V15_2048_SHA256=9]="PKIX_RSA_PKCS1V15_2048_SHA256",t[t.PKIX_RSA_PKCS1V15_3072_SHA256=10]="PKIX_RSA_PKCS1V15_3072_SHA256",t[t.PKIX_RSA_PKCS1V15_4096_SHA256=11]="PKIX_RSA_PKCS1V15_4096_SHA256",t[t.PKIX_RSA_PSS_2048_SHA256=16]="PKIX_RSA_PSS_2048_SHA256",t[t.PKIX_RSA_PSS_3072_SHA256=17]="PKIX_RSA_PSS_3072_SHA256",t[t.PKIX_RSA_PSS_4096_SHA256=18]="PKIX_RSA_PSS_4096_SHA256",t[t.PKIX_ECDSA_P256_HMAC_SHA_256=6]="PKIX_ECDSA_P256_HMAC_SHA_256",t[t.PKIX_ECDSA_P256_SHA_256=5]="PKIX_ECDSA_P256_SHA_256",t[t.PKIX_ECDSA_P384_SHA_384=12]="PKIX_ECDSA_P384_SHA_384",t[t.PKIX_ECDSA_P521_SHA_512=13]="PKIX_ECDSA_P521_SHA_512",t[t.PKIX_ED25519=7]="PKIX_ED25519",t[t.PKIX_ED25519_PH=8]="PKIX_ED25519_PH",t[t.PKIX_ECDSA_P384_SHA_256=19]="PKIX_ECDSA_P384_SHA_256",t[t.PKIX_ECDSA_P521_SHA_256=20]="PKIX_ECDSA_P521_SHA_256",t[t.LMS_SHA256=14]="LMS_SHA256",t[t.LMOTS_SHA256=15]="LMOTS_SHA256",t[t.ML_DSA_65=21]="ML_DSA_65",t[t.ML_DSA_87=22]="ML_DSA_87"})(qe||(Ge.PublicKeyDetails=qe={}));function rLe(t){switch(t){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return qe.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return qe.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return qe.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return qe.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return qe.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return qe.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return qe.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return qe.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return qe.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return qe.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return qe.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return qe.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return qe.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return qe.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return qe.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return qe.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return qe.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return qe.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return qe.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return qe.LMS_SHA256;case 15:case"LMOTS_SHA256":return qe.LMOTS_SHA256;case 21:case"ML_DSA_65":return qe.ML_DSA_65;case 22:case"ML_DSA_87":return qe.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(rLe,"publicKeyDetailsFromJSON");function nLe(t){switch(t){case qe.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case qe.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case qe.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case qe.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case qe.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case qe.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case qe.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case qe.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case qe.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case qe.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case qe.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case qe.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case qe.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case qe.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case qe.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case qe.PKIX_ED25519:return"PKIX_ED25519";case qe.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case qe.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case qe.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case qe.LMS_SHA256:return"LMS_SHA256";case qe.LMOTS_SHA256:return"LMOTS_SHA256";case qe.ML_DSA_65:return"ML_DSA_65";case qe.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(nLe,"publicKeyDetailsToJSON");var Zl;(function(t){t[t.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED=0]="SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED",t[t.EMAIL=1]="EMAIL",t[t.URI=2]="URI",t[t.OTHER_NAME=3]="OTHER_NAME"})(Zl||(Ge.SubjectAlternativeNameType=Zl={}));function iLe(t){switch(t){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return Zl.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return Zl.EMAIL;case 2:case"URI":return Zl.URI;case 3:case"OTHER_NAME":return Zl.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(iLe,"subjectAlternativeNameTypeFromJSON");function sLe(t){switch(t){case Zl.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case Zl.EMAIL:return"EMAIL";case Zl.URI:return"URI";case Zl.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(sLe,"subjectAlternativeNameTypeToJSON");Ge.HashOutput={fromJSON(t){return{algorithm:In(t.algorithm)?eLe(t.algorithm):0,digest:In(t.digest)?Buffer.from(HA(t.digest)):Buffer.alloc(0)}},toJSON(t){let e={};return t.algorithm!==0&&(e.algorithm=tLe(t.algorithm)),t.digest.length!==0&&(e.digest=VA(t.digest)),e}};Ge.MessageSignature={fromJSON(t){return{messageDigest:In(t.messageDigest)?Ge.HashOutput.fromJSON(t.messageDigest):void 0,signature:In(t.signature)?Buffer.from(HA(t.signature)):Buffer.alloc(0)}},toJSON(t){let e={};return t.messageDigest!==void 0&&(e.messageDigest=Ge.HashOutput.toJSON(t.messageDigest)),t.signature.length!==0&&(e.signature=VA(t.signature)),e}};Ge.LogId={fromJSON(t){return{keyId:In(t.keyId)?Buffer.from(HA(t.keyId)):Buffer.alloc(0)}},toJSON(t){let e={};return t.keyId.length!==0&&(e.keyId=VA(t.keyId)),e}};Ge.RFC3161SignedTimestamp={fromJSON(t){return{signedTimestamp:In(t.signedTimestamp)?Buffer.from(HA(t.signedTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedTimestamp.length!==0&&(e.signedTimestamp=VA(t.signedTimestamp)),e}};Ge.PublicKey={fromJSON(t){return{rawBytes:In(t.rawBytes)?Buffer.from(HA(t.rawBytes)):void 0,keyDetails:In(t.keyDetails)?rLe(t.keyDetails):0,validFor:In(t.validFor)?Ge.TimeRange.fromJSON(t.validFor):void 0}},toJSON(t){let e={};return t.rawBytes!==void 0&&(e.rawBytes=VA(t.rawBytes)),t.keyDetails!==0&&(e.keyDetails=nLe(t.keyDetails)),t.validFor!==void 0&&(e.validFor=Ge.TimeRange.toJSON(t.validFor)),e}};Ge.PublicKeyIdentifier={fromJSON(t){return{hint:In(t.hint)?globalThis.String(t.hint):""}},toJSON(t){let e={};return t.hint!==""&&(e.hint=t.hint),e}};Ge.ObjectIdentifier={fromJSON(t){return{id:globalThis.Array.isArray(t?.id)?t.id.map(e=>globalThis.Number(e)):[]}},toJSON(t){let e={};return t.id?.length&&(e.id=t.id.map(r=>Math.round(r))),e}};Ge.ObjectIdentifierValuePair={fromJSON(t){return{oid:In(t.oid)?Ge.ObjectIdentifier.fromJSON(t.oid):void 0,value:In(t.value)?Buffer.from(HA(t.value)):Buffer.alloc(0)}},toJSON(t){let e={};return t.oid!==void 0&&(e.oid=Ge.ObjectIdentifier.toJSON(t.oid)),t.value.length!==0&&(e.value=VA(t.value)),e}};Ge.DistinguishedName={fromJSON(t){return{organization:In(t.organization)?globalThis.String(t.organization):"",commonName:In(t.commonName)?globalThis.String(t.commonName):""}},toJSON(t){let e={};return t.organization!==""&&(e.organization=t.organization),t.commonName!==""&&(e.commonName=t.commonName),e}};Ge.X509Certificate={fromJSON(t){return{rawBytes:In(t.rawBytes)?Buffer.from(HA(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=VA(t.rawBytes)),e}};Ge.SubjectAlternativeName={fromJSON(t){return{type:In(t.type)?iLe(t.type):0,identity:In(t.regexp)?{$case:"regexp",regexp:globalThis.String(t.regexp)}:In(t.value)?{$case:"value",value:globalThis.String(t.value)}:void 0}},toJSON(t){let e={};return t.type!==0&&(e.type=sLe(t.type)),t.identity?.$case==="regexp"?e.regexp=t.identity.regexp:t.identity?.$case==="value"&&(e.value=t.identity.value),e}};Ge.X509CertificateChain={fromJSON(t){return{certificates:globalThis.Array.isArray(t?.certificates)?t.certificates.map(e=>Ge.X509Certificate.fromJSON(e)):[]}},toJSON(t){let e={};return t.certificates?.length&&(e.certificates=t.certificates.map(r=>Ge.X509Certificate.toJSON(r))),e}};Ge.TimeRange={fromJSON(t){return{start:In(t.start)?ZOe(t.start):void 0,end:In(t.end)?ZOe(t.end):void 0}},toJSON(t){let e={};return t.start!==void 0&&(e.start=t.start.toISOString()),t.end!==void 0&&(e.end=t.end.toISOString()),e}};function HA(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(HA,"bytesFromBase64");function VA(t){return globalThis.Buffer.from(t).toString("base64")}o(VA,"base64FromBytes");function QUt(t){let e=(globalThis.Number(t.seconds)||0)*1e3;return e+=(t.nanos||0)/1e6,new globalThis.Date(e)}o(QUt,"fromTimestamp");function ZOe(t){return t instanceof globalThis.Date?t:typeof t=="string"?new globalThis.Date(t):QUt(DUt.Timestamp.fromJSON(t))}o(ZOe,"fromJsonTimestamp");function In(t){return t!=null}o(In,"isSet")});var wK=m(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.TransparencyLogEntry=Sn.InclusionPromise=Sn.InclusionProof=Sn.Checkpoint=Sn.KindVersion=void 0;var oLe=Bd();Sn.KindVersion={fromJSON(t){return{kind:As(t.kind)?globalThis.String(t.kind):"",version:As(t.version)?globalThis.String(t.version):""}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.version!==""&&(e.version=t.version),e}};Sn.Checkpoint={fromJSON(t){return{envelope:As(t.envelope)?globalThis.String(t.envelope):""}},toJSON(t){let e={};return t.envelope!==""&&(e.envelope=t.envelope),e}};Sn.InclusionProof={fromJSON(t){return{logIndex:As(t.logIndex)?globalThis.String(t.logIndex):"0",rootHash:As(t.rootHash)?Buffer.from(Ck(t.rootHash)):Buffer.alloc(0),treeSize:As(t.treeSize)?globalThis.String(t.treeSize):"0",hashes:globalThis.Array.isArray(t?.hashes)?t.hashes.map(e=>Buffer.from(Ck(e))):[],checkpoint:As(t.checkpoint)?Sn.Checkpoint.fromJSON(t.checkpoint):void 0}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.rootHash.length!==0&&(e.rootHash=bk(t.rootHash)),t.treeSize!=="0"&&(e.treeSize=t.treeSize),t.hashes?.length&&(e.hashes=t.hashes.map(r=>bk(r))),t.checkpoint!==void 0&&(e.checkpoint=Sn.Checkpoint.toJSON(t.checkpoint)),e}};Sn.InclusionPromise={fromJSON(t){return{signedEntryTimestamp:As(t.signedEntryTimestamp)?Buffer.from(Ck(t.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedEntryTimestamp.length!==0&&(e.signedEntryTimestamp=bk(t.signedEntryTimestamp)),e}};Sn.TransparencyLogEntry={fromJSON(t){return{logIndex:As(t.logIndex)?globalThis.String(t.logIndex):"0",logId:As(t.logId)?oLe.LogId.fromJSON(t.logId):void 0,kindVersion:As(t.kindVersion)?Sn.KindVersion.fromJSON(t.kindVersion):void 0,integratedTime:As(t.integratedTime)?globalThis.String(t.integratedTime):"0",inclusionPromise:As(t.inclusionPromise)?Sn.InclusionPromise.fromJSON(t.inclusionPromise):void 0,inclusionProof:As(t.inclusionProof)?Sn.InclusionProof.fromJSON(t.inclusionProof):void 0,canonicalizedBody:As(t.canonicalizedBody)?Buffer.from(Ck(t.canonicalizedBody)):Buffer.alloc(0)}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.logId!==void 0&&(e.logId=oLe.LogId.toJSON(t.logId)),t.kindVersion!==void 0&&(e.kindVersion=Sn.KindVersion.toJSON(t.kindVersion)),t.integratedTime!=="0"&&(e.integratedTime=t.integratedTime),t.inclusionPromise!==void 0&&(e.inclusionPromise=Sn.InclusionPromise.toJSON(t.inclusionPromise)),t.inclusionProof!==void 0&&(e.inclusionProof=Sn.InclusionProof.toJSON(t.inclusionProof)),t.canonicalizedBody.length!==0&&(e.canonicalizedBody=bk(t.canonicalizedBody)),e}};function Ck(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(Ck,"bytesFromBase64");function bk(t){return globalThis.Buffer.from(t).toString("base64")}o(bk,"base64FromBytes");function As(t){return t!=null}o(As,"isSet")});var IK=m(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.Bundle=_a.VerificationMaterial=_a.TimestampVerificationData=void 0;var aLe=yk(),eu=Bd(),cLe=wK();_a.TimestampVerificationData={fromJSON(t){return{rfc3161Timestamps:globalThis.Array.isArray(t?.rfc3161Timestamps)?t.rfc3161Timestamps.map(e=>eu.RFC3161SignedTimestamp.fromJSON(e)):[]}},toJSON(t){let e={};return t.rfc3161Timestamps?.length&&(e.rfc3161Timestamps=t.rfc3161Timestamps.map(r=>eu.RFC3161SignedTimestamp.toJSON(r))),e}};_a.VerificationMaterial={fromJSON(t){return{content:dh(t.publicKey)?{$case:"publicKey",publicKey:eu.PublicKeyIdentifier.fromJSON(t.publicKey)}:dh(t.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:eu.X509CertificateChain.fromJSON(t.x509CertificateChain)}:dh(t.certificate)?{$case:"certificate",certificate:eu.X509Certificate.fromJSON(t.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(t?.tlogEntries)?t.tlogEntries.map(e=>cLe.TransparencyLogEntry.fromJSON(e)):[],timestampVerificationData:dh(t.timestampVerificationData)?_a.TimestampVerificationData.fromJSON(t.timestampVerificationData):void 0}},toJSON(t){let e={};return t.content?.$case==="publicKey"?e.publicKey=eu.PublicKeyIdentifier.toJSON(t.content.publicKey):t.content?.$case==="x509CertificateChain"?e.x509CertificateChain=eu.X509CertificateChain.toJSON(t.content.x509CertificateChain):t.content?.$case==="certificate"&&(e.certificate=eu.X509Certificate.toJSON(t.content.certificate)),t.tlogEntries?.length&&(e.tlogEntries=t.tlogEntries.map(r=>cLe.TransparencyLogEntry.toJSON(r))),t.timestampVerificationData!==void 0&&(e.timestampVerificationData=_a.TimestampVerificationData.toJSON(t.timestampVerificationData)),e}};_a.Bundle={fromJSON(t){return{mediaType:dh(t.mediaType)?globalThis.String(t.mediaType):"",verificationMaterial:dh(t.verificationMaterial)?_a.VerificationMaterial.fromJSON(t.verificationMaterial):void 0,content:dh(t.messageSignature)?{$case:"messageSignature",messageSignature:eu.MessageSignature.fromJSON(t.messageSignature)}:dh(t.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:aLe.Envelope.fromJSON(t.dsseEnvelope)}:void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.verificationMaterial!==void 0&&(e.verificationMaterial=_a.VerificationMaterial.toJSON(t.verificationMaterial)),t.content?.$case==="messageSignature"?e.messageSignature=eu.MessageSignature.toJSON(t.content.messageSignature):t.content?.$case==="dsseEnvelope"&&(e.dsseEnvelope=aLe.Envelope.toJSON(t.content.dsseEnvelope)),e}};function dh(t){return t!=null}o(dh,"isSet")});var SK=m(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.ClientTrustConfig=ze.ServiceConfiguration=ze.Service=ze.SigningConfig=ze.TrustedRoot=ze.CertificateAuthority=ze.TransparencyLogInstance=ze.ServiceSelector=void 0;ze.serviceSelectorFromJSON=lLe;ze.serviceSelectorToJSON=uLe;var Fi=Bd(),tu;(function(t){t[t.SERVICE_SELECTOR_UNDEFINED=0]="SERVICE_SELECTOR_UNDEFINED",t[t.ALL=1]="ALL",t[t.ANY=2]="ANY",t[t.EXACT=3]="EXACT"})(tu||(ze.ServiceSelector=tu={}));function lLe(t){switch(t){case 0:case"SERVICE_SELECTOR_UNDEFINED":return tu.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return tu.ALL;case 2:case"ANY":return tu.ANY;case 3:case"EXACT":return tu.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(lLe,"serviceSelectorFromJSON");function uLe(t){switch(t){case tu.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case tu.ALL:return"ALL";case tu.ANY:return"ANY";case tu.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(uLe,"serviceSelectorToJSON");ze.TransparencyLogInstance={fromJSON(t){return{baseUrl:Sr(t.baseUrl)?globalThis.String(t.baseUrl):"",hashAlgorithm:Sr(t.hashAlgorithm)?(0,Fi.hashAlgorithmFromJSON)(t.hashAlgorithm):0,publicKey:Sr(t.publicKey)?Fi.PublicKey.fromJSON(t.publicKey):void 0,logId:Sr(t.logId)?Fi.LogId.fromJSON(t.logId):void 0,checkpointKeyId:Sr(t.checkpointKeyId)?Fi.LogId.fromJSON(t.checkpointKeyId):void 0,operator:Sr(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.baseUrl!==""&&(e.baseUrl=t.baseUrl),t.hashAlgorithm!==0&&(e.hashAlgorithm=(0,Fi.hashAlgorithmToJSON)(t.hashAlgorithm)),t.publicKey!==void 0&&(e.publicKey=Fi.PublicKey.toJSON(t.publicKey)),t.logId!==void 0&&(e.logId=Fi.LogId.toJSON(t.logId)),t.checkpointKeyId!==void 0&&(e.checkpointKeyId=Fi.LogId.toJSON(t.checkpointKeyId)),t.operator!==""&&(e.operator=t.operator),e}};ze.CertificateAuthority={fromJSON(t){return{subject:Sr(t.subject)?Fi.DistinguishedName.fromJSON(t.subject):void 0,uri:Sr(t.uri)?globalThis.String(t.uri):"",certChain:Sr(t.certChain)?Fi.X509CertificateChain.fromJSON(t.certChain):void 0,validFor:Sr(t.validFor)?Fi.TimeRange.fromJSON(t.validFor):void 0,operator:Sr(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.subject!==void 0&&(e.subject=Fi.DistinguishedName.toJSON(t.subject)),t.uri!==""&&(e.uri=t.uri),t.certChain!==void 0&&(e.certChain=Fi.X509CertificateChain.toJSON(t.certChain)),t.validFor!==void 0&&(e.validFor=Fi.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};ze.TrustedRoot={fromJSON(t){return{mediaType:Sr(t.mediaType)?globalThis.String(t.mediaType):"",tlogs:globalThis.Array.isArray(t?.tlogs)?t.tlogs.map(e=>ze.TransparencyLogInstance.fromJSON(e)):[],certificateAuthorities:globalThis.Array.isArray(t?.certificateAuthorities)?t.certificateAuthorities.map(e=>ze.CertificateAuthority.fromJSON(e)):[],ctlogs:globalThis.Array.isArray(t?.ctlogs)?t.ctlogs.map(e=>ze.TransparencyLogInstance.fromJSON(e)):[],timestampAuthorities:globalThis.Array.isArray(t?.timestampAuthorities)?t.timestampAuthorities.map(e=>ze.CertificateAuthority.fromJSON(e)):[]}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.tlogs?.length&&(e.tlogs=t.tlogs.map(r=>ze.TransparencyLogInstance.toJSON(r))),t.certificateAuthorities?.length&&(e.certificateAuthorities=t.certificateAuthorities.map(r=>ze.CertificateAuthority.toJSON(r))),t.ctlogs?.length&&(e.ctlogs=t.ctlogs.map(r=>ze.TransparencyLogInstance.toJSON(r))),t.timestampAuthorities?.length&&(e.timestampAuthorities=t.timestampAuthorities.map(r=>ze.CertificateAuthority.toJSON(r))),e}};ze.SigningConfig={fromJSON(t){return{mediaType:Sr(t.mediaType)?globalThis.String(t.mediaType):"",caUrls:globalThis.Array.isArray(t?.caUrls)?t.caUrls.map(e=>ze.Service.fromJSON(e)):[],oidcUrls:globalThis.Array.isArray(t?.oidcUrls)?t.oidcUrls.map(e=>ze.Service.fromJSON(e)):[],rekorTlogUrls:globalThis.Array.isArray(t?.rekorTlogUrls)?t.rekorTlogUrls.map(e=>ze.Service.fromJSON(e)):[],rekorTlogConfig:Sr(t.rekorTlogConfig)?ze.ServiceConfiguration.fromJSON(t.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(t?.tsaUrls)?t.tsaUrls.map(e=>ze.Service.fromJSON(e)):[],tsaConfig:Sr(t.tsaConfig)?ze.ServiceConfiguration.fromJSON(t.tsaConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.caUrls?.length&&(e.caUrls=t.caUrls.map(r=>ze.Service.toJSON(r))),t.oidcUrls?.length&&(e.oidcUrls=t.oidcUrls.map(r=>ze.Service.toJSON(r))),t.rekorTlogUrls?.length&&(e.rekorTlogUrls=t.rekorTlogUrls.map(r=>ze.Service.toJSON(r))),t.rekorTlogConfig!==void 0&&(e.rekorTlogConfig=ze.ServiceConfiguration.toJSON(t.rekorTlogConfig)),t.tsaUrls?.length&&(e.tsaUrls=t.tsaUrls.map(r=>ze.Service.toJSON(r))),t.tsaConfig!==void 0&&(e.tsaConfig=ze.ServiceConfiguration.toJSON(t.tsaConfig)),e}};ze.Service={fromJSON(t){return{url:Sr(t.url)?globalThis.String(t.url):"",majorApiVersion:Sr(t.majorApiVersion)?globalThis.Number(t.majorApiVersion):0,validFor:Sr(t.validFor)?Fi.TimeRange.fromJSON(t.validFor):void 0,operator:Sr(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.url!==""&&(e.url=t.url),t.majorApiVersion!==0&&(e.majorApiVersion=Math.round(t.majorApiVersion)),t.validFor!==void 0&&(e.validFor=Fi.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};ze.ServiceConfiguration={fromJSON(t){return{selector:Sr(t.selector)?lLe(t.selector):0,count:Sr(t.count)?globalThis.Number(t.count):0}},toJSON(t){let e={};return t.selector!==0&&(e.selector=uLe(t.selector)),t.count!==0&&(e.count=Math.round(t.count)),e}};ze.ClientTrustConfig={fromJSON(t){return{mediaType:Sr(t.mediaType)?globalThis.String(t.mediaType):"",trustedRoot:Sr(t.trustedRoot)?ze.TrustedRoot.fromJSON(t.trustedRoot):void 0,signingConfig:Sr(t.signingConfig)?ze.SigningConfig.fromJSON(t.signingConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.trustedRoot!==void 0&&(e.trustedRoot=ze.TrustedRoot.toJSON(t.trustedRoot)),t.signingConfig!==void 0&&(e.signingConfig=ze.SigningConfig.toJSON(t.signingConfig)),e}};function Sr(t){return t!=null}o(Sr,"isSet")});var hLe=m($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.Input=$e.Artifact=$e.ArtifactVerificationOptions_ObserverTimestampOptions=$e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=$e.ArtifactVerificationOptions_TimestampAuthorityOptions=$e.ArtifactVerificationOptions_CtlogOptions=$e.ArtifactVerificationOptions_TlogOptions=$e.ArtifactVerificationOptions=$e.PublicKeyIdentities=$e.CertificateIdentities=$e.CertificateIdentity=void 0;var dLe=IK(),fh=Bd(),fLe=SK();$e.CertificateIdentity={fromJSON(t){return{issuer:Yt(t.issuer)?globalThis.String(t.issuer):"",san:Yt(t.san)?fh.SubjectAlternativeName.fromJSON(t.san):void 0,oids:globalThis.Array.isArray(t?.oids)?t.oids.map(e=>fh.ObjectIdentifierValuePair.fromJSON(e)):[]}},toJSON(t){let e={};return t.issuer!==""&&(e.issuer=t.issuer),t.san!==void 0&&(e.san=fh.SubjectAlternativeName.toJSON(t.san)),t.oids?.length&&(e.oids=t.oids.map(r=>fh.ObjectIdentifierValuePair.toJSON(r))),e}};$e.CertificateIdentities={fromJSON(t){return{identities:globalThis.Array.isArray(t?.identities)?t.identities.map(e=>$e.CertificateIdentity.fromJSON(e)):[]}},toJSON(t){let e={};return t.identities?.length&&(e.identities=t.identities.map(r=>$e.CertificateIdentity.toJSON(r))),e}};$e.PublicKeyIdentities={fromJSON(t){return{publicKeys:globalThis.Array.isArray(t?.publicKeys)?t.publicKeys.map(e=>fh.PublicKey.fromJSON(e)):[]}},toJSON(t){let e={};return t.publicKeys?.length&&(e.publicKeys=t.publicKeys.map(r=>fh.PublicKey.toJSON(r))),e}};$e.ArtifactVerificationOptions={fromJSON(t){return{signers:Yt(t.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:$e.CertificateIdentities.fromJSON(t.certificateIdentities)}:Yt(t.publicKeys)?{$case:"publicKeys",publicKeys:$e.PublicKeyIdentities.fromJSON(t.publicKeys)}:void 0,tlogOptions:Yt(t.tlogOptions)?$e.ArtifactVerificationOptions_TlogOptions.fromJSON(t.tlogOptions):void 0,ctlogOptions:Yt(t.ctlogOptions)?$e.ArtifactVerificationOptions_CtlogOptions.fromJSON(t.ctlogOptions):void 0,tsaOptions:Yt(t.tsaOptions)?$e.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(t.tsaOptions):void 0,integratedTsOptions:Yt(t.integratedTsOptions)?$e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(t.integratedTsOptions):void 0,observerOptions:Yt(t.observerOptions)?$e.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(t.observerOptions):void 0}},toJSON(t){let e={};return t.signers?.$case==="certificateIdentities"?e.certificateIdentities=$e.CertificateIdentities.toJSON(t.signers.certificateIdentities):t.signers?.$case==="publicKeys"&&(e.publicKeys=$e.PublicKeyIdentities.toJSON(t.signers.publicKeys)),t.tlogOptions!==void 0&&(e.tlogOptions=$e.ArtifactVerificationOptions_TlogOptions.toJSON(t.tlogOptions)),t.ctlogOptions!==void 0&&(e.ctlogOptions=$e.ArtifactVerificationOptions_CtlogOptions.toJSON(t.ctlogOptions)),t.tsaOptions!==void 0&&(e.tsaOptions=$e.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(t.tsaOptions)),t.integratedTsOptions!==void 0&&(e.integratedTsOptions=$e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(t.integratedTsOptions)),t.observerOptions!==void 0&&(e.observerOptions=$e.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(t.observerOptions)),e}};$e.ArtifactVerificationOptions_TlogOptions={fromJSON(t){return{threshold:Yt(t.threshold)?globalThis.Number(t.threshold):0,performOnlineVerification:Yt(t.performOnlineVerification)?globalThis.Boolean(t.performOnlineVerification):!1,disable:Yt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.performOnlineVerification!==!1&&(e.performOnlineVerification=t.performOnlineVerification),t.disable!==!1&&(e.disable=t.disable),e}};$e.ArtifactVerificationOptions_CtlogOptions={fromJSON(t){return{threshold:Yt(t.threshold)?globalThis.Number(t.threshold):0,disable:Yt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};$e.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(t){return{threshold:Yt(t.threshold)?globalThis.Number(t.threshold):0,disable:Yt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};$e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(t){return{threshold:Yt(t.threshold)?globalThis.Number(t.threshold):0,disable:Yt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};$e.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(t){return{threshold:Yt(t.threshold)?globalThis.Number(t.threshold):0,disable:Yt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};$e.Artifact={fromJSON(t){return{data:Yt(t.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(t.artifactUri)}:Yt(t.artifact)?{$case:"artifact",artifact:Buffer.from(PUt(t.artifact))}:Yt(t.artifactDigest)?{$case:"artifactDigest",artifactDigest:fh.HashOutput.fromJSON(t.artifactDigest)}:void 0}},toJSON(t){let e={};return t.data?.$case==="artifactUri"?e.artifactUri=t.data.artifactUri:t.data?.$case==="artifact"?e.artifact=kUt(t.data.artifact):t.data?.$case==="artifactDigest"&&(e.artifactDigest=fh.HashOutput.toJSON(t.data.artifactDigest)),e}};$e.Input={fromJSON(t){return{artifactTrustRoot:Yt(t.artifactTrustRoot)?fLe.TrustedRoot.fromJSON(t.artifactTrustRoot):void 0,artifactVerificationOptions:Yt(t.artifactVerificationOptions)?$e.ArtifactVerificationOptions.fromJSON(t.artifactVerificationOptions):void 0,bundle:Yt(t.bundle)?dLe.Bundle.fromJSON(t.bundle):void 0,artifact:Yt(t.artifact)?$e.Artifact.fromJSON(t.artifact):void 0}},toJSON(t){let e={};return t.artifactTrustRoot!==void 0&&(e.artifactTrustRoot=fLe.TrustedRoot.toJSON(t.artifactTrustRoot)),t.artifactVerificationOptions!==void 0&&(e.artifactVerificationOptions=$e.ArtifactVerificationOptions.toJSON(t.artifactVerificationOptions)),t.bundle!==void 0&&(e.bundle=dLe.Bundle.toJSON(t.bundle)),t.artifact!==void 0&&(e.artifact=$e.Artifact.toJSON(t.artifact)),e}};function PUt(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(PUt,"bytesFromBase64");function kUt(t){return globalThis.Buffer.from(t).toString("base64")}o(kUt,"base64FromBytes");function Yt(t){return t!=null}o(Yt,"isSet")});var uC=m(Ta=>{"use strict";var OUt=Ta&&Ta.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),lC=Ta&&Ta.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&OUt(e,t,r)};Object.defineProperty(Ta,"__esModule",{value:!0});lC(yk(),Ta);lC(IK(),Ta);lC(Bd(),Ta);lC(wK(),Ta);lC(SK(),Ta);lC(hLe(),Ta)});var wk=m(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.BUNDLE_V03_MEDIA_TYPE=Hs.BUNDLE_V03_LEGACY_MEDIA_TYPE=Hs.BUNDLE_V02_MEDIA_TYPE=Hs.BUNDLE_V01_MEDIA_TYPE=void 0;Hs.isBundleWithCertificateChain=LUt;Hs.isBundleWithPublicKey=FUt;Hs.isBundleWithMessageSignature=MUt;Hs.isBundleWithDsseEnvelope=UUt;Hs.BUNDLE_V01_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.1";Hs.BUNDLE_V02_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.2";Hs.BUNDLE_V03_LEGACY_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.3";Hs.BUNDLE_V03_MEDIA_TYPE="application/vnd.dev.sigstore.bundle.v0.3+json";function LUt(t){return t.verificationMaterial.content.$case==="x509CertificateChain"}o(LUt,"isBundleWithCertificateChain");function FUt(t){return t.verificationMaterial.content.$case==="publicKey"}o(FUt,"isBundleWithPublicKey");function MUt(t){return t.content.$case==="messageSignature"}o(MUt,"isBundleWithMessageSignature");function UUt(t){return t.content.$case==="dsseEnvelope"}o(UUt,"isBundleWithDsseEnvelope")});var ALe=m(Sk=>{"use strict";Object.defineProperty(Sk,"__esModule",{value:!0});Sk.toMessageSignatureBundle=GUt;Sk.toDSSEBundle=HUt;var qUt=uC(),Ik=wk();function GUt(t){return{mediaType:t.certificateChain?Ik.BUNDLE_V02_MEDIA_TYPE:Ik.BUNDLE_V03_MEDIA_TYPE,content:{$case:"messageSignature",messageSignature:{messageDigest:{algorithm:qUt.HashAlgorithm.SHA2_256,digest:t.digest},signature:t.signature}},verificationMaterial:pLe(t)}}o(GUt,"toMessageSignatureBundle");function HUt(t){return{mediaType:t.certificateChain?Ik.BUNDLE_V02_MEDIA_TYPE:Ik.BUNDLE_V03_MEDIA_TYPE,content:{$case:"dsseEnvelope",dsseEnvelope:VUt(t)},verificationMaterial:pLe(t)}}o(HUt,"toDSSEBundle");function VUt(t){return{payloadType:t.artifactType,payload:t.artifact,signatures:[zUt(t)]}}o(VUt,"toEnvelope");function zUt(t){return{keyid:t.keyHint||"",sig:t.signature}}o(zUt,"toSignature");function pLe(t){return{content:$Ut(t),tlogEntries:[],timestampVerificationData:{rfc3161Timestamps:[]}}}o(pLe,"toVerificationMaterial");function $Ut(t){return t.certificate?t.certificateChain?{$case:"x509CertificateChain",x509CertificateChain:{certificates:[{rawBytes:t.certificate}]}}:{$case:"certificate",certificate:{rawBytes:t.certificate}}:{$case:"publicKey",publicKey:{hint:t.keyHint||""}}}o($Ut,"toKeyContent")});var xK=m(Bk=>{"use strict";Object.defineProperty(Bk,"__esModule",{value:!0});Bk.ValidationError=void 0;var BK=class extends Error{static{o(this,"ValidationError")}fields;constructor(e,r){super(e),this.fields=r}};Bk.ValidationError=BK});var vK=m(zA=>{"use strict";Object.defineProperty(zA,"__esModule",{value:!0});zA.assertBundle=jUt;zA.assertBundleV01=mLe;zA.isBundleV01=WUt;zA.assertBundleV02=JUt;zA.assertBundleLatest=YUt;var xk=xK();function jUt(t){let e=vk(t);if(e.length>0)throw new xk.ValidationError("invalid bundle",e)}o(jUt,"assertBundle");function mLe(t){let e=[];if(e.push(...vk(t)),e.push(...KUt(t)),e.length>0)throw new xk.ValidationError("invalid v0.1 bundle",e)}o(mLe,"assertBundleV01");function WUt(t){try{return mLe(t),!0}catch{return!1}}o(WUt,"isBundleV01");function JUt(t){let e=[];if(e.push(...vk(t)),e.push(...gLe(t)),e.length>0)throw new xk.ValidationError("invalid v0.2 bundle",e)}o(JUt,"assertBundleV02");function YUt(t){let e=[];if(e.push(...vk(t)),e.push(...gLe(t)),e.push(...XUt(t)),e.length>0)throw new xk.ValidationError("invalid bundle",e)}o(YUt,"assertBundleLatest");function vk(t){let e=[];if((t.mediaType===void 0||!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\+json;version=\d\.\d/)&&!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\.v\d\.\d\+json/))&&e.push("mediaType"),t.content===void 0)e.push("content");else switch(t.content.$case){case"messageSignature":t.content.messageSignature.messageDigest===void 0?e.push("content.messageSignature.messageDigest"):t.content.messageSignature.messageDigest.digest.length===0&&e.push("content.messageSignature.messageDigest.digest"),t.content.messageSignature.signature.length===0&&e.push("content.messageSignature.signature");break;case"dsseEnvelope":t.content.dsseEnvelope.payload.length===0&&e.push("content.dsseEnvelope.payload"),t.content.dsseEnvelope.signatures.length!==1?e.push("content.dsseEnvelope.signatures"):t.content.dsseEnvelope.signatures[0].sig.length===0&&e.push("content.dsseEnvelope.signatures[0].sig");break}if(t.verificationMaterial===void 0)e.push("verificationMaterial");else{if(t.verificationMaterial.content===void 0)e.push("verificationMaterial.content");else switch(t.verificationMaterial.content.$case){case"x509CertificateChain":t.verificationMaterial.content.x509CertificateChain.certificates.length===0&&e.push("verificationMaterial.content.x509CertificateChain.certificates"),t.verificationMaterial.content.x509CertificateChain.certificates.forEach((r,n)=>{r.rawBytes.length===0&&e.push(`verificationMaterial.content.x509CertificateChain.certificates[${n}].rawBytes`)});break;case"certificate":t.verificationMaterial.content.certificate.rawBytes.length===0&&e.push("verificationMaterial.content.certificate.rawBytes");break}t.verificationMaterial.tlogEntries===void 0?e.push("verificationMaterial.tlogEntries"):t.verificationMaterial.tlogEntries.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.logId===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].logId`),r.kindVersion===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].kindVersion`)})}return e}o(vk,"validateBundleBase");function KUt(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.inclusionPromise===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].inclusionPromise`)}),e}o(KUt,"validateInclusionPromise");function gLe(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.inclusionProof===void 0?e.push(`verificationMaterial.tlogEntries[${n}].inclusionProof`):r.inclusionProof.checkpoint===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].inclusionProof.checkpoint`)}),e}o(gLe,"validateInclusionProof");function XUt(t){let e=[];return t.verificationMaterial?.content?.$case==="x509CertificateChain"&&e.push("verificationMaterial.content.$case"),e}o(XUt,"validateNoCertificateChain")});var ELe=m(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.envelopeToJSON=ru.envelopeFromJSON=ru.bundleToJSON=ru.bundleFromJSON=void 0;var Nk=uC(),yLe=wk(),NK=vK(),ZUt=o(t=>{let e=Nk.Bundle.fromJSON(t);switch(e.mediaType){case yLe.BUNDLE_V01_MEDIA_TYPE:(0,NK.assertBundleV01)(e);break;case yLe.BUNDLE_V02_MEDIA_TYPE:(0,NK.assertBundleV02)(e);break;default:(0,NK.assertBundleLatest)(e);break}return e},"bundleFromJSON");ru.bundleFromJSON=ZUt;var eqt=o(t=>Nk.Bundle.toJSON(t),"bundleToJSON");ru.bundleToJSON=eqt;var tqt=o(t=>Nk.Envelope.fromJSON(t),"envelopeFromJSON");ru.envelopeFromJSON=tqt;var rqt=o(t=>Nk.Envelope.toJSON(t),"envelopeToJSON");ru.envelopeToJSON=rqt});var _K=m(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.isBundleV01=et.assertBundleV02=et.assertBundleV01=et.assertBundleLatest=et.assertBundle=et.envelopeToJSON=et.envelopeFromJSON=et.bundleToJSON=et.bundleFromJSON=et.ValidationError=et.isBundleWithPublicKey=et.isBundleWithMessageSignature=et.isBundleWithDsseEnvelope=et.isBundleWithCertificateChain=et.BUNDLE_V03_MEDIA_TYPE=et.BUNDLE_V03_LEGACY_MEDIA_TYPE=et.BUNDLE_V02_MEDIA_TYPE=et.BUNDLE_V01_MEDIA_TYPE=et.toMessageSignatureBundle=et.toDSSEBundle=void 0;var CLe=ALe();Object.defineProperty(et,"toDSSEBundle",{enumerable:!0,get:o(function(){return CLe.toDSSEBundle},"get")});Object.defineProperty(et,"toMessageSignatureBundle",{enumerable:!0,get:o(function(){return CLe.toMessageSignatureBundle},"get")});var hh=wk();Object.defineProperty(et,"BUNDLE_V01_MEDIA_TYPE",{enumerable:!0,get:o(function(){return hh.BUNDLE_V01_MEDIA_TYPE},"get")});Object.defineProperty(et,"BUNDLE_V02_MEDIA_TYPE",{enumerable:!0,get:o(function(){return hh.BUNDLE_V02_MEDIA_TYPE},"get")});Object.defineProperty(et,"BUNDLE_V03_LEGACY_MEDIA_TYPE",{enumerable:!0,get:o(function(){return hh.BUNDLE_V03_LEGACY_MEDIA_TYPE},"get")});Object.defineProperty(et,"BUNDLE_V03_MEDIA_TYPE",{enumerable:!0,get:o(function(){return hh.BUNDLE_V03_MEDIA_TYPE},"get")});Object.defineProperty(et,"isBundleWithCertificateChain",{enumerable:!0,get:o(function(){return hh.isBundleWithCertificateChain},"get")});Object.defineProperty(et,"isBundleWithDsseEnvelope",{enumerable:!0,get:o(function(){return hh.isBundleWithDsseEnvelope},"get")});Object.defineProperty(et,"isBundleWithMessageSignature",{enumerable:!0,get:o(function(){return hh.isBundleWithMessageSignature},"get")});Object.defineProperty(et,"isBundleWithPublicKey",{enumerable:!0,get:o(function(){return hh.isBundleWithPublicKey},"get")});var nqt=xK();Object.defineProperty(et,"ValidationError",{enumerable:!0,get:o(function(){return nqt.ValidationError},"get")});var _k=ELe();Object.defineProperty(et,"bundleFromJSON",{enumerable:!0,get:o(function(){return _k.bundleFromJSON},"get")});Object.defineProperty(et,"bundleToJSON",{enumerable:!0,get:o(function(){return _k.bundleToJSON},"get")});Object.defineProperty(et,"envelopeFromJSON",{enumerable:!0,get:o(function(){return _k.envelopeFromJSON},"get")});Object.defineProperty(et,"envelopeToJSON",{enumerable:!0,get:o(function(){return _k.envelopeToJSON},"get")});var wB=vK();Object.defineProperty(et,"assertBundle",{enumerable:!0,get:o(function(){return wB.assertBundle},"get")});Object.defineProperty(et,"assertBundleLatest",{enumerable:!0,get:o(function(){return wB.assertBundleLatest},"get")});Object.defineProperty(et,"assertBundleV01",{enumerable:!0,get:o(function(){return wB.assertBundleV01},"get")});Object.defineProperty(et,"assertBundleV02",{enumerable:!0,get:o(function(){return wB.assertBundleV02},"get")});Object.defineProperty(et,"isBundleV01",{enumerable:!0,get:o(function(){return wB.isBundleV01},"get")})});var wLe=m(IB=>{"use strict";var bLe=IB&&IB.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(IB,"__esModule",{value:!0});IB.appDataPath=sqt;var iqt=bLe(require("os")),dC=bLe(require("path"));function sqt(t){let e=iqt.default.homedir();switch(process.platform){case"darwin":{let r=dC.default.join(e,"Library","Application Support");return dC.default.join(r,t)}case"win32":{let r=process.env.LOCALAPPDATA||dC.default.join(e,"AppData","Local");return dC.default.join(r,t,"Data")}default:{let r=process.env.XDG_DATA_HOME||dC.default.join(e,".local","share");return dC.default.join(r,t)}}}o(sqt,"appDataPath")});var nu=m(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.UnsupportedAlgorithmError=Vs.CryptoError=Vs.LengthOrHashMismatchError=Vs.UnsignedMetadataError=Vs.RepositoryError=Vs.ValueError=void 0;var TK=class extends Error{static{o(this,"ValueError")}};Vs.ValueError=TK;var SB=class extends Error{static{o(this,"RepositoryError")}};Vs.RepositoryError=SB;var RK=class extends SB{static{o(this,"UnsignedMetadataError")}};Vs.UnsignedMetadataError=RK;var DK=class extends SB{static{o(this,"LengthOrHashMismatchError")}};Vs.LengthOrHashMismatchError=DK;var Tk=class extends Error{static{o(this,"CryptoError")}};Vs.CryptoError=Tk;var QK=class extends Tk{static{o(this,"UnsupportedAlgorithmError")}};Vs.UnsupportedAlgorithmError=QK});var SLe=m(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.isDefined=oqt;ph.isObject=ILe;ph.isStringArray=aqt;ph.isObjectArray=cqt;ph.isStringRecord=lqt;ph.isObjectRecord=uqt;function oqt(t){return t!==void 0}o(oqt,"isDefined");function ILe(t){return typeof t=="object"&&t!==null}o(ILe,"isObject");function aqt(t){return Array.isArray(t)&&t.every(e=>typeof e=="string")}o(aqt,"isStringArray");function cqt(t){return Array.isArray(t)&&t.every(ILe)}o(cqt,"isObjectArray");function lqt(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(e=>typeof e=="string")&&Object.values(t).every(e=>typeof e=="string")}o(lqt,"isStringRecord");function uqt(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(e=>typeof e=="string")&&Object.values(t).every(e=>typeof e=="object"&&e!==null)}o(uqt,"isObjectRecord")});var kK=m((aFr,xLe)=>{function PK(t){let e=[];if(typeof t=="string")e.push(BLe(t));else if(typeof t=="boolean")e.push(JSON.stringify(t));else if(Number.isInteger(t))e.push(JSON.stringify(t));else if(t===null)e.push(JSON.stringify(t));else if(Array.isArray(t)){e.push("[");let r=!0;t.forEach(n=>{r||e.push(","),r=!1,e.push(PK(n))}),e.push("]")}else if(typeof t=="object"){e.push("{");let r=!0;Object.keys(t).sort().forEach(n=>{r||e.push(","),r=!1,e.push(BLe(n)),e.push(":"),e.push(PK(t[n]))}),e.push("}")}else throw new TypeError("cannot encode "+t.toString());return e.join("")}o(PK,"canonicalize");function BLe(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}o(BLe,"canonicalizeString");xLe.exports={canonicalize:PK}});var vLe=m(fC=>{"use strict";var dqt=fC&&fC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fC,"__esModule",{value:!0});fC.verifySignature=void 0;var fqt=kK(),hqt=dqt(require("crypto")),pqt=o((t,e,r)=>{let n=Buffer.from((0,fqt.canonicalize)(t));return hqt.default.verify(void 0,n,e,Buffer.from(r,"hex"))},"verifySignature");fC.verifySignature=pqt});var Ic=m(Ra=>{"use strict";var Aqt=Ra&&Ra.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),mqt=Ra&&Ra.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NLe=Ra&&Ra.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&Aqt(r,e,n[i]);return mqt(r,e),r}})();Object.defineProperty(Ra,"__esModule",{value:!0});Ra.crypto=Ra.guard=void 0;Ra.guard=NLe(SLe());Ra.crypto=NLe(vLe())});var $A=m(xd=>{"use strict";var gqt=xd&&xd.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xd,"__esModule",{value:!0});xd.Signed=xd.MetadataKind=void 0;xd.isMetadataKind=Eqt;var yqt=gqt(require("util")),BB=nu(),OK=Ic(),_Le=["1","0","31"],LK;(function(t){t.Root="root",t.Timestamp="timestamp",t.Snapshot="snapshot",t.Targets="targets"})(LK||(xd.MetadataKind=LK={}));function Eqt(t){return typeof t=="string"&&Object.values(LK).includes(t)}o(Eqt,"isMetadataKind");var FK=class t{static{o(this,"Signed")}specVersion;expires;version;unrecognizedFields;constructor(e){this.specVersion=e.specVersion||_Le.join(".");let r=this.specVersion.split(".");if(!(r.length===2||r.length===3)||!r.every(n=>Cqt(n)))throw new BB.ValueError("Failed to parse specVersion");if(r[0]!=_Le[0])throw new BB.ValueError("Unsupported specVersion");this.expires=e.expires,this.version=e.version,this.unrecognizedFields=e.unrecognizedFields||{}}equals(e){return e instanceof t?this.specVersion===e.specVersion&&this.expires===e.expires&&this.version===e.version&&yqt.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}isExpired(e){return e||(e=new Date),e>=new Date(this.expires)}static commonFieldsFromJSON(e){let{spec_version:r,expires:n,version:i,...s}=e;if(OK.guard.isDefined(r)){if(typeof r!="string")throw new TypeError("spec_version must be a string")}else throw new BB.ValueError("spec_version is not defined");if(OK.guard.isDefined(n)){if(typeof n!="string")throw new TypeError("expires must be a string")}else throw new BB.ValueError("expires is not defined");if(OK.guard.isDefined(i)){if(typeof i!="number")throw new TypeError("version must be a number")}else throw new BB.ValueError("version is not defined");return{specVersion:r,expires:n,version:i,unrecognizedFields:s}}};xd.Signed=FK;function Cqt(t){return!isNaN(Number(t))}o(Cqt,"isNumeric")});var xB=m(mh=>{"use strict";var TLe=mh&&mh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mh,"__esModule",{value:!0});mh.TargetFile=mh.MetaFile=void 0;var RLe=TLe(require("crypto")),Dk=TLe(require("util")),Ah=nu(),Rk=Ic(),MK=class t{static{o(this,"MetaFile")}version;length;hashes;unrecognizedFields;constructor(e){if(e.version<=0)throw new Ah.ValueError("Metafile version must be at least 1");e.length!==void 0&&DLe(e.length),this.version=e.version,this.length=e.length,this.hashes=e.hashes,this.unrecognizedFields=e.unrecognizedFields||{}}equals(e){return e instanceof t?this.version===e.version&&this.length===e.length&&Dk.default.isDeepStrictEqual(this.hashes,e.hashes)&&Dk.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}verify(e){if(this.length!==void 0&&e.length!==this.length)throw new Ah.LengthOrHashMismatchError(`Expected length ${this.length} but got ${e.length}`);this.hashes&&Object.entries(this.hashes).forEach(([r,n])=>{let i;try{i=RLe.default.createHash(r)}catch{throw new Ah.LengthOrHashMismatchError(`Hash algorithm ${r} not supported`)}let s=i.update(e).digest("hex");if(s!==n)throw new Ah.LengthOrHashMismatchError(`Expected hash ${n} but got ${s}`)})}toJSON(){let e={version:this.version,...this.unrecognizedFields};return this.length!==void 0&&(e.length=this.length),this.hashes&&(e.hashes=this.hashes),e}static fromJSON(e){let{version:r,length:n,hashes:i,...s}=e;if(typeof r!="number")throw new TypeError("version must be a number");if(Rk.guard.isDefined(n)&&typeof n!="number")throw new TypeError("length must be a number");if(Rk.guard.isDefined(i)&&!Rk.guard.isStringRecord(i))throw new TypeError("hashes must be string keys and values");return new t({version:r,length:n,hashes:i,unrecognizedFields:s})}};mh.MetaFile=MK;var UK=class t{static{o(this,"TargetFile")}length;path;hashes;unrecognizedFields;constructor(e){DLe(e.length),this.length=e.length,this.path=e.path,this.hashes=e.hashes,this.unrecognizedFields=e.unrecognizedFields||{}}get custom(){let e=this.unrecognizedFields.custom;return!e||Array.isArray(e)||typeof e!="object"?{}:e}equals(e){return e instanceof t?this.length===e.length&&this.path===e.path&&Dk.default.isDeepStrictEqual(this.hashes,e.hashes)&&Dk.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}async verify(e){let r=0,n=Object.keys(this.hashes).reduce((i,s)=>{try{i[s]=RLe.default.createHash(s)}catch{throw new Ah.LengthOrHashMismatchError(`Hash algorithm ${s} not supported`)}return i},{});for await(let i of e)r+=i.length,Object.values(n).forEach(s=>{s.update(i)});if(r!==this.length)throw new Ah.LengthOrHashMismatchError(`Expected length ${this.length} but got ${r}`);Object.entries(n).forEach(([i,s])=>{let a=this.hashes[i],c=s.digest("hex");if(c!==a)throw new Ah.LengthOrHashMismatchError(`Expected hash ${a} but got ${c}`)})}toJSON(){return{length:this.length,hashes:this.hashes,...this.unrecognizedFields}}static fromJSON(e,r){let{length:n,hashes:i,...s}=r;if(typeof n!="number")throw new TypeError("length must be a number");if(!Rk.guard.isStringRecord(i))throw new TypeError("hashes must have string keys and values");return new t({length:n,path:e,hashes:i,unrecognizedFields:s})}};mh.TargetFile=UK;function DLe(t){if(t<0)throw new Ah.ValueError("Length must be at least 0")}o(DLe,"validateLength")});var QLe=m(qK=>{"use strict";Object.defineProperty(qK,"__esModule",{value:!0});qK.encodeOIDString=wqt;var bqt=6;function wqt(t){let e=t.split("."),r=parseInt(e[0],10)*40+parseInt(e[1],10),n=[];e.slice(2).forEach(s=>{let a=Iqt(parseInt(s,10));n.push(...a)});let i=Buffer.from([r,...n]);return Buffer.from([bqt,i.length,...i])}o(wqt,"encodeOIDString");function Iqt(t){let e=[],r=0;for(;t>0;)e.unshift(t&127|r),t>>=7,r=128;return e}o(Iqt,"encodeVariableLengthInteger")});var LLe=m(NB=>{"use strict";var Sqt=NB&&NB.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(NB,"__esModule",{value:!0});NB.getPublicKey=Nqt;var hC=Sqt(require("crypto")),vB=nu(),GK=QLe(),Qk=48,PLe=3,kLe=0,Bqt="1.3.101.112",xqt="1.2.840.10045.2.1",vqt="1.2.840.10045.3.1.7",HK="-----BEGIN PUBLIC KEY-----";function Nqt(t){switch(t.keyType){case"rsa":return _qt(t);case"ed25519":return Tqt(t);case"ecdsa":case"ecdsa-sha2-nistp256":case"ecdsa-sha2-nistp384":return Rqt(t);default:throw new vB.UnsupportedAlgorithmError(`Unsupported key type: ${t.keyType}`)}}o(Nqt,"getPublicKey");function _qt(t){if(!t.keyVal.startsWith(HK))throw new vB.CryptoError("Invalid key format");let e=hC.default.createPublicKey(t.keyVal);if(t.scheme==="rsassa-pss-sha256")return{key:e,padding:hC.default.constants.RSA_PKCS1_PSS_PADDING};throw new vB.UnsupportedAlgorithmError(`Unsupported RSA scheme: ${t.scheme}`)}o(_qt,"getRSAPublicKey");function Tqt(t){let e;if(t.keyVal.startsWith(HK))e=hC.default.createPublicKey(t.keyVal);else{if(!OLe(t.keyVal))throw new vB.CryptoError("Invalid key format");e=hC.default.createPublicKey({key:Dqt.hexToDER(t.keyVal),format:"der",type:"spki"})}return{key:e}}o(Tqt,"getED25519PublicKey");function Rqt(t){let e;if(t.keyVal.startsWith(HK))e=hC.default.createPublicKey(t.keyVal);else{if(!OLe(t.keyVal))throw new vB.CryptoError("Invalid key format");e=hC.default.createPublicKey({key:Qqt.hexToDER(t.keyVal),format:"der",type:"spki"})}return{key:e}}o(Rqt,"getECDCSAPublicKey");var Dqt={hexToDER:o(t=>{let e=Buffer.from(t,"hex"),r=(0,GK.encodeOIDString)(Bqt),n=Buffer.concat([Buffer.concat([Buffer.from([Qk]),Buffer.from([r.length]),r]),Buffer.concat([Buffer.from([PLe]),Buffer.from([e.length+1]),Buffer.from([kLe]),e])]);return Buffer.concat([Buffer.from([Qk]),Buffer.from([n.length]),n])},"hexToDER")},Qqt={hexToDER:o(t=>{let e=Buffer.from(t,"hex"),r=Buffer.concat([Buffer.from([PLe]),Buffer.from([e.length+1]),Buffer.from([kLe]),e]),n=Buffer.concat([(0,GK.encodeOIDString)(xqt),(0,GK.encodeOIDString)(vqt)]),i=Buffer.concat([Buffer.from([Qk]),Buffer.from([n.length]),n]);return Buffer.concat([Buffer.from([Qk]),Buffer.from([i.length+r.length]),i,r])},"hexToDER")},OLe=o(t=>/^[0-9a-fA-F]+$/.test(t),"isHex")});var Pk=m(pC=>{"use strict";var Pqt=pC&&pC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pC,"__esModule",{value:!0});pC.Key=void 0;var FLe=Pqt(require("util")),_B=nu(),MLe=Ic(),kqt=LLe(),VK=class t{static{o(this,"Key")}keyID;keyType;scheme;keyVal;unrecognizedFields;constructor(e){let{keyID:r,keyType:n,scheme:i,keyVal:s,unrecognizedFields:a}=e;this.keyID=r,this.keyType=n,this.scheme=i,this.keyVal=s,this.unrecognizedFields=a||{}}verifySignature(e){let r=e.signatures[this.keyID];if(!r)throw new _B.UnsignedMetadataError("no signature for key found in metadata");if(!this.keyVal.public)throw new _B.UnsignedMetadataError("no public key found");let n=(0,kqt.getPublicKey)({keyType:this.keyType,scheme:this.scheme,keyVal:this.keyVal.public}),i=e.signed.toJSON();try{if(!MLe.crypto.verifySignature(i,n,r.sig))throw new _B.UnsignedMetadataError(`failed to verify ${this.keyID} signature`)}catch(s){throw s instanceof _B.UnsignedMetadataError?s:new _B.UnsignedMetadataError(`failed to verify ${this.keyID} signature`)}}equals(e){return e instanceof t?this.keyID===e.keyID&&this.keyType===e.keyType&&this.scheme===e.scheme&&FLe.default.isDeepStrictEqual(this.keyVal,e.keyVal)&&FLe.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keytype:this.keyType,scheme:this.scheme,keyval:this.keyVal,...this.unrecognizedFields}}static fromJSON(e,r){let{keytype:n,scheme:i,keyval:s,...a}=r;if(typeof n!="string")throw new TypeError("keytype must be a string");if(typeof i!="string")throw new TypeError("scheme must be a string");if(!MLe.guard.isStringRecord(s))throw new TypeError("keyval must be a string record");return new t({keyID:e,keyType:n,scheme:i,keyVal:s,unrecognizedFields:a})}};pC.Key=VK});var qLe=m(jA=>{"use strict";Object.defineProperty(jA,"__esModule",{value:!0});jA.range=jA.balanced=void 0;var Oqt=o((t,e,r)=>{let n=t instanceof RegExp?ULe(t,r):t,i=e instanceof RegExp?ULe(e,r):e,s=n!==null&&i!=null&&(0,jA.range)(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},"balanced");jA.balanced=Oqt;var ULe=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),Lqt=o((t,e,r)=>{let n,i,s,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;d>=0&&!c;){if(d===l)n.push(d),l=r.indexOf(t,d+1);else if(n.length===1){let f=n.pop();f!==void 0&&(c=[f,u])}else i=n.pop(),i!==void 0&&i<s&&(s=i,a=u),u=r.indexOf(e,d+1);d=l<u&&l>=0?l:u}n.length&&a!==void 0&&(c=[s,a])}return c},"range");jA.range=Lqt});var WLe=m(AC=>{"use strict";Object.defineProperty(AC,"__esModule",{value:!0});AC.EXPANSION_MAX=void 0;AC.expand=Yqt;var GLe=qLe(),HLe="\0SLASH"+Math.random()+"\0",VLe="\0OPEN"+Math.random()+"\0",$K="\0CLOSE"+Math.random()+"\0",zLe="\0COMMA"+Math.random()+"\0",$Le="\0PERIOD"+Math.random()+"\0",Fqt=new RegExp(HLe,"g"),Mqt=new RegExp(VLe,"g"),Uqt=new RegExp($K,"g"),qqt=new RegExp(zLe,"g"),Gqt=new RegExp($Le,"g"),Hqt=/\\\\/g,Vqt=/\\{/g,zqt=/\\}/g,$qt=/\\,/g,jqt=/\\\./g;AC.EXPANSION_MAX=1e5;function zK(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(zK,"numeric");function Wqt(t){return t.replace(Hqt,HLe).replace(Vqt,VLe).replace(zqt,$K).replace($qt,zLe).replace(jqt,$Le)}o(Wqt,"escapeBraces");function Jqt(t){return t.replace(Fqt,"\\").replace(Mqt,"{").replace(Uqt,"}").replace(qqt,",").replace(Gqt,".")}o(Jqt,"unescapeBraces");function jLe(t){if(!t)return[""];let e=[],r=(0,GLe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:n,body:i,post:s}=r,a=n.split(",");a[a.length-1]+="{"+i+"}";let c=jLe(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(jLe,"parseCommaParts");function Yqt(t,e={}){if(!t)return[];let{max:r=AC.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),TB(Wqt(t),r,!0).map(Jqt)}o(Yqt,"expand");function Kqt(t){return"{"+t+"}"}o(Kqt,"embrace");function Xqt(t){return/^-?0\d/.test(t)}o(Xqt,"isPadded");function Zqt(t,e){return t<=e}o(Zqt,"lte");function e3t(t,e){return t>=e}o(e3t,"gte");function TB(t,e,r){let n=[],i=(0,GLe.balanced)("{","}",t);if(!i)return[t];let s=i.pre,a=i.post.length?TB(i.post,e,!1):[""];if(/\$$/.test(i.pre))for(let c=0;c<a.length&&c<e;c++){let l=s+"{"+i.body+"}"+a[c];n.push(l)}else{let c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),u=c||l,d=i.body.indexOf(",")>=0;if(!u&&!d)return i.post.match(/,(?!,).*\}/)?(t=i.pre+"{"+i.body+$K+i.post,TB(t,e,!0)):[t];let f;if(u)f=i.body.split(/\.\./);else if(f=jLe(i.body),f.length===1&&f[0]!==void 0&&(f=TB(f[0],e,!1).map(Kqt),f.length===1))return a.map(p=>i.pre+f[0]+p);let h;if(u&&f[0]!==void 0&&f[1]!==void 0){let p=zK(f[0]),g=zK(f[1]),A=Math.max(f[0].length,f[1].length),E=f.length===3&&f[2]!==void 0?Math.max(Math.abs(zK(f[2])),1):1,y=Zqt;g<p&&(E*=-1,y=e3t);let w=f.some(Xqt);h=[];for(let B=p;y(B,g)&&h.length<e;B+=E){let Q;if(l)Q=String.fromCharCode(B),Q==="\\"&&(Q="");else if(Q=String(B),w){let U=A-Q.length;if(U>0){let v=new Array(U+1).join("0");B<0?Q="-"+v+Q.slice(1):Q=v+Q}}h.push(Q)}}else{h=[];for(let p=0;p<f.length;p++)h.push.apply(h,TB(f[p],e,!1))}for(let p=0;p<h.length;p++)for(let g=0;g<a.length&&n.length<e;g++){let A=s+h[p]+a[g];(!r||u||A)&&n.push(A)}}return n}o(TB,"expand_")});var JLe=m(kk=>{"use strict";Object.defineProperty(kk,"__esModule",{value:!0});kk.assertValidPattern=void 0;var t3t=1024*64,r3t=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>t3t)throw new TypeError("pattern is too long")},"assertValidPattern");kk.assertValidPattern=r3t});var KLe=m(Ok=>{"use strict";Object.defineProperty(Ok,"__esModule",{value:!0});Ok.parseClass=void 0;var n3t={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},RB=o(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),i3t=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),YLe=o(t=>t.join(""),"rangesToString"),s3t=o((t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,a=!1,c=!1,l=!1,u=!1,d=r,f="";e:for(;s<t.length;){let A=t.charAt(s);if((A==="!"||A==="^")&&s===r+1){u=!0,s++;continue}if(A==="]"&&a&&!l){d=s+1;break}if(a=!0,A==="\\"&&!l){l=!0,s++;continue}if(A==="["&&!l){for(let[E,[y,C,w]]of Object.entries(n3t))if(t.startsWith(E,s)){if(f)return["$.",!1,t.length-r,!0];s+=E.length,w?i.push(y):n.push(y),c=c||C;continue e}}if(l=!1,f){A>f?n.push(RB(f)+"-"+RB(A)):A===f&&n.push(RB(A)),f="",s++;continue}if(t.startsWith("-]",s+1)){n.push(RB(A+"-")),s+=2;continue}if(t.startsWith("-",s+1)){f=A,s+=2;continue}n.push(RB(A)),s++}if(d<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,t.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!u){let A=n[0].length===2?n[0].slice(-1):n[0];return[i3t(A),!1,d-r,!1]}let h="["+(u?"^":"")+YLe(n)+"]",p="["+(u?"":"^")+YLe(i)+"]";return[n.length&&i.length?"("+h+"|"+p+")":n.length?h:p,c,d-r,!0]},"parseClass");Ok.parseClass=s3t});var Fk=m(Lk=>{"use strict";Object.defineProperty(Lk,"__esModule",{value:!0});Lk.unescape=void 0;var o3t=o((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!0}={})=>r?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),"unescape");Lk.unescape=o3t});var JK=m(Gk=>{"use strict";var zs;Object.defineProperty(Gk,"__esModule",{value:!0});Gk.AST=void 0;var a3t=KLe(),Mk=Fk(),c3t=new Set(["!","?","+","*","@"]),jK=o(t=>c3t.has(t),"isExtglobType"),XLe=o(t=>jK(t.type),"isExtglobAST"),l3t=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),u3t=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),d3t=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),ZLe=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),f3t="(?!(?:^|/)\\.\\.?(?:$|/))",Uk="(?!\\.)",h3t=new Set(["[","."]),p3t=new Set(["..","."]),A3t=new Set("().*{}+?[]^$\\!"),m3t=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),WK="[^/]",eFe=WK+"*?",tFe=WK+"+?",g3t=0,qk=class{static{o(this,"AST")}type;#e;#r;#n=!1;#t=[];#i;#s;#l;#a=!1;#c;#o;#f=!1;id=++g3t;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#t.length,parts:this.#t}}constructor(e,r,n={}){this.type=e,e&&(this.#r=!0),this.#i=r,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#l=this.#e===this?[]:this.#e.#l,e==="!"&&!this.#e.#a&&this.#l.push(this),this.#s=this.#i?this.#i.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#o=this.#t.map(e=>String(e)).join("")}#C(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let r=e,n=r.#i;for(;n;){for(let i=r.#s+1;!n.type&&i<n.#t.length;i++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#t[i])}r=n,n=r.#i}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof zs&&r.#i===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#s===0)return!0;let e=this.#i;for(let r=0;r<this.#s;r++){let n=e.#t[r];if(!(n instanceof zs&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type==="!")return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#t.length:0;return this.#s===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new zs(this.type,e);for(let n of this.#t)r.copyIn(n);return r}static#p(e,r,n,i,s){let a=i.maxExtglobRecursion??2,c=!1,l=!1,u=-1,d=!1;if(r.type===null){let A=n,E="";for(;A<e.length;){let y=e.charAt(A++);if(c||y==="\\"){c=!c,E+=y;continue}if(l){A===u+1?(y==="^"||y==="!")&&(d=!0):y==="]"&&!(A===u+2&&d)&&(l=!1),E+=y;continue}else if(y==="["){l=!0,u=A,d=!1,E+=y;continue}if(!i.noext&&jK(y)&&e.charAt(A)==="("&&s<=a){r.push(E),E="";let w=new zs(y,r);A=zs.#p(e,w,A,i,s+1),r.push(w);continue}E+=y}return r.push(E),A}let f=n+1,h=new zs(null,r),p=[],g="";for(;f<e.length;){let A=e.charAt(f++);if(c||A==="\\"){c=!c,g+=A;continue}if(l){f===u+1?(A==="^"||A==="!")&&(d=!0):A==="]"&&!(f===u+2&&d)&&(l=!1),g+=A;continue}else if(A==="["){l=!0,u=f,d=!1,g+=A;continue}if(!i.noext&&jK(A)&&e.charAt(f)==="("&&(s<=a||r&&r.#h(A))){let y=r&&r.#h(A)?0:1;h.push(g),g="";let C=new zs(A,h);h.push(C),f=zs.#p(e,C,f,i,s+y);continue}if(A==="|"){h.push(g),g="",p.push(h),h=new zs(null,r);continue}if(A===")")return g===""&&r.#t.length===0&&(r.#f=!0),h.push(g),g="",r.push(...p,h),f;g+=A}return r.type=null,r.#r=void 0,r.#t=[e.substring(n-1)],f}#m(e){return this.#g(e,u3t)}#g(e,r=l3t){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let n=e.#t[0];return!n||typeof n!="object"||n.type===null?!1:this.#h(n.type,r)}#h(e,r=d3t){return!!r.get(this.type)?.includes(e)}#I(e,r){let n=e.#t[0],i=new zs(null,n,this.options);i.#t.push(""),n.push(i),this.#y(e,r)}#y(e,r){let n=e.#t[0];this.#t.splice(r,1,...n.#t);for(let i of n.#t)typeof i=="object"&&(i.#i=this);this.#o=void 0}#b(e){return!!ZLe.get(this.type)?.has(e)}#E(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#b(r.type)}#B(e){let r=ZLe.get(this.type),n=e.#t[0],i=r?.get(n.type);if(!i)return!1;this.#t=n.#t;for(let s of this.#t)typeof s=="object"&&(s.#i=this);this.type=i,this.#o=void 0,this.#f=!1}static fromGlob(e,r={}){let n=new zs(null,void 0,r);return zs.#p(e,n,0,r,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#r||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let c=(this.#c.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:e})}get options(){return this.#c}toRegExpSource(e){let r=e??!!this.#c.dot;if(this.#e===this&&(this.#d(),this.#C()),!XLe(this)){let l=this.isStart()&&this.isEnd()&&!this.#t.some(p=>typeof p!="string"),u=this.#t.map(p=>{let[g,A,E,y]=typeof p=="string"?zs.#S(p,this.#r,l):p.toRegExpSource(e);return this.#r=this.#r||E,this.#n=this.#n||y,g}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&p3t.has(this.#t[0]))){let g=h3t,A=r&&g.has(u.charAt(0))||u.startsWith("\\.")&&g.has(u.charAt(2))||u.startsWith("\\.\\.")&&g.has(u.charAt(4)),E=!r&&!e&&g.has(u.charAt(0));d=A?f3t:E?Uk:""}let f="";return this.isEnd()&&this.#e.#a&&this.#i?.type==="!"&&(f="(?:$|\\/)"),[d+u+f,(0,Mk.unescape)(u),this.#r=!!this.#r,this.#n]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#w(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,Mk.unescape)(this.toString()),!1,!1]}let a=!n||e||r||!Uk?"":this.#w(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let c="";if(this.type==="!"&&this.#f)c=(this.isStart()&&!r?Uk:"")+tFe;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?Uk:"")+eFe+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=i+s+l}return[c,(0,Mk.unescape)(s),this.#r=!!this.#r,this.#n]}#d(){if(XLe(this)){let e=0,r=!1;do{r=!0;for(let n=0;n<this.#t.length;n++){let i=this.#t[n];typeof i=="object"&&(i.#d(),this.#g(i)?(r=!1,this.#y(i,n)):this.#m(i)?(r=!1,this.#I(i,n)):this.#E(i)&&(r=!1,this.#B(i)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#d();this.#o=void 0}#w(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,a]=r.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(e,r,n=!1){let i=!1,s="",a=!1,c=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(i){i=!1,s+=(A3t.has(u)?"\\":"")+u;continue}if(u==="*"){if(c)continue;c=!0,s+=n&&/^[*]+$/.test(e)?tFe:eFe,r=!0;continue}else c=!1;if(u==="\\"){l===e.length-1?s+="\\\\":i=!0;continue}if(u==="["){let[d,f,h,p]=(0,a3t.parseClass)(e,l);if(h){s+=d,a=a||f,l+=h-1,r=r||p;continue}}if(u==="?"){s+=WK,r=!0;continue}s+=m3t(u)}return[s,(0,Mk.unescape)(e),!!r,a]}};Gk.AST=qk;zs=qk});var YK=m(Hk=>{"use strict";Object.defineProperty(Hk,"__esModule",{value:!0});Hk.escape=void 0;var y3t=o((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!1}={})=>r?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");Hk.escape=y3t});var cFe=m(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.unescape=Ae.escape=Ae.AST=Ae.Minimatch=Ae.match=Ae.makeRe=Ae.braceExpand=Ae.defaults=Ae.filter=Ae.GLOBSTAR=Ae.sep=Ae.minimatch=void 0;var E3t=WLe(),Vk=JLe(),iFe=JK(),C3t=YK(),b3t=Fk(),w3t=o((t,e,r={})=>((0,Vk.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new WA(e,r).match(t)),"minimatch");Ae.minimatch=w3t;var I3t=/^\*+([^+@!?*[(]*)$/,S3t=o(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),B3t=o(t=>e=>e.endsWith(t),"starDotExtTestDot"),x3t=o(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),v3t=o(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),N3t=/^\*+\.\*+$/,_3t=o(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),T3t=o(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),R3t=/^\.\*+$/,D3t=o(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),Q3t=/^\*+$/,P3t=o(t=>t.length!==0&&!t.startsWith("."),"starTest"),k3t=o(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),O3t=/^\?+([^+@!?*[(]*)?$/,L3t=o(([t,e=""])=>{let r=sFe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),F3t=o(([t,e=""])=>{let r=oFe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),M3t=o(([t,e=""])=>{let r=oFe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),U3t=o(([t,e=""])=>{let r=sFe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),sFe=o(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),oFe=o(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),aFe=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",rFe={win32:{sep:"\\"},posix:{sep:"/"}};Ae.sep=aFe==="win32"?rFe.win32.sep:rFe.posix.sep;Ae.minimatch.sep=Ae.sep;Ae.GLOBSTAR=Symbol("globstar **");Ae.minimatch.GLOBSTAR=Ae.GLOBSTAR;var q3t="[^/]",G3t=q3t+"*?",H3t="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",V3t="(?:(?!(?:\\/|^)\\.).)*?",z3t=o((t,e={})=>r=>(0,Ae.minimatch)(r,t,e),"filter");Ae.filter=z3t;Ae.minimatch.filter=Ae.filter;var Da=o((t,e={})=>Object.assign({},t,e),"ext"),$3t=o(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Ae.minimatch;let e=Ae.minimatch;return Object.assign(o((n,i,s={})=>e(n,i,Da(t,s)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s={}){super(i,Da(t,s))}static defaults(i){return e.defaults(Da(t,i)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(i,s,a={}){super(i,s,Da(t,a))}static fromGlob(i,s={}){return e.AST.fromGlob(i,Da(t,s))}},unescape:o((n,i={})=>e.unescape(n,Da(t,i)),"unescape"),escape:o((n,i={})=>e.escape(n,Da(t,i)),"escape"),filter:o((n,i={})=>e.filter(n,Da(t,i)),"filter"),defaults:o(n=>e.defaults(Da(t,n)),"defaults"),makeRe:o((n,i={})=>e.makeRe(n,Da(t,i)),"makeRe"),braceExpand:o((n,i={})=>e.braceExpand(n,Da(t,i)),"braceExpand"),match:o((n,i,s={})=>e.match(n,i,Da(t,s)),"match"),sep:e.sep,GLOBSTAR:Ae.GLOBSTAR})},"defaults");Ae.defaults=$3t;Ae.minimatch.defaults=Ae.defaults;var j3t=o((t,e={})=>((0,Vk.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,E3t.expand)(t,{max:e.braceExpandMax})),"braceExpand");Ae.braceExpand=j3t;Ae.minimatch.braceExpand=Ae.braceExpand;var W3t=o((t,e={})=>new WA(t,e).makeRe(),"makeRe");Ae.makeRe=W3t;Ae.minimatch.makeRe=Ae.makeRe;var J3t=o((t,e,r={})=>{let n=new WA(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t},"match");Ae.match=J3t;Ae.minimatch.match=Ae.match;var nFe=/[?*]|[+@!]\(.*?\)|\[|\]/,Y3t=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),WA=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,Vk.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||aFe,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!nFe.test(s[2]))&&!nFe.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(d=>this.parse(d))];if(u)return[s[0],...s.slice(1).map(d=>this.parse(d))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let a=this.set[s];a[0]===""&&a[1]===""&&this.globParts[s][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n of e)for(let i=0;i<n.length;i++)n[i]==="**"&&(n[i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let i=e[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(r=!0,e.splice(n-1,2),n-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let n of e){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let a=i;for(;n[a+1]==="**";)a++;a>i&&n.splice(i+1,a-i);let c=n[i+1],l=n[i+2],u=n[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let d=n.slice(0);d[i]="**",e.push(d),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let c=n[a];a===1&&c===""&&n[0]===""||(c==="."||c==="")&&(r=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let a=n[s-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;let l=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...l),n.length===0&&n.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let n=r+1;n<e.length;n++){let i=this.partsMatch(e[r],e[n],!this.preserveMultipleSlashes);if(i){e[r]=[],e[n]=i;break}}return e.filter(r=>r.length)}partsMatch(e,r,n=!1){let i=0,s=0,a=[],c="";for(;i<e.length&&s<r.length;)if(e[i]===r[s])a.push(c==="b"?r[s]:e[i]),i++,s++;else if(n&&e[i]==="**"&&r[s]===e[i+1])a.push(e[i]),i++;else if(n&&r[s]==="**"&&e[i]===r[s+1])a.push(r[s]),s++;else if(e[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",a.push(e[i]),i++,s++}else if(r[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(c==="a")return!1;c="b",a.push(r[s]),i++,s++}else return!1;return e.length===r.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,n=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=e.slice(n)),this.negate=r}matchOne(e,r,n=!1){let i=0,s=0;if(this.isWindows){let c=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!c&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),d=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),f=l?3:c?0:void 0,h=d?3:u?0:void 0;if(typeof f=="number"&&typeof h=="number"){let[p,g]=[e[f],r[h]];p.toLowerCase()===g.toLowerCase()&&(r[h]=p,s=h,i=f)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(Ae.GLOBSTAR)?this.#e(e,r,n,i,s):this.#n(e,r,n,i,s)}#e(e,r,n,i,s){let a=r.indexOf(Ae.GLOBSTAR,s),c=r.lastIndexOf(Ae.GLOBSTAR),[l,u,d]=n?[r.slice(s,a),r.slice(a+1),[]]:[r.slice(s,a),r.slice(a+1,c),r.slice(c+1)];if(l.length){let C=e.slice(i,i+l.length);if(!this.#n(C,l,n,0,0))return!1;i+=l.length,s+=l.length}let f=0;if(d.length){if(d.length+i>e.length)return!1;let C=e.length-d.length;if(this.#n(e,d,n,C,0))f=d.length;else{if(e[e.length-1]!==""||i+d.length===e.length||(C--,!this.#n(e,d,n,C,0)))return!1;f=d.length+1}}if(!u.length){let C=!!f;for(let w=i;w<e.length-f;w++){let B=String(e[w]);if(C=!0,B==="."||B===".."||!this.options.dot&&B.startsWith("."))return!1}return n||C}let h=[[[],0]],p=h[0],g=0,A=[0];for(let C of u)C===Ae.GLOBSTAR?(A.push(g),p=[[],0],h.push(p)):(p[0].push(C),g++);let E=h.length-1,y=e.length-f;for(let C of h)C[1]=y-(A[E--]+C[0].length);return!!this.#r(e,h,i,0,n,0,!!f)}#r(e,r,n,i,s,a,c){let l=r[i];if(!l){for(let f=n;f<e.length;f++){c=!0;let h=e[f];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return c}let[u,d]=l;for(;n<=d;){if(this.#n(e.slice(0,n+u.length),u,s,n,0)&&a<this.maxGlobstarRecursion){let p=this.#r(e,r,n+u.length,i+1,s,a+1,c);if(p!==!1)return p}let h=e[n];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;n++}return s||null}#n(e,r,n,i,s){let a,c,l,u;for(a=i,c=s,u=e.length,l=r.length;a<u&&c<l;a++,c++){this.debug("matchOne loop");let d=r[c],f=e[a];if(this.debug(r,d,f),d===!1||d===Ae.GLOBSTAR)return!1;let h;if(typeof d=="string"?(h=f===d,this.debug("string match",d,f,h)):(h=d.test(f),this.debug("pattern match",d,f,h)),!h)return!1}if(a===u&&c===l)return!0;if(a===u)return n;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,Ae.braceExpand)(this.pattern,this.options)}parse(e){(0,Vk.assertValidPattern)(e);let r=this.options;if(e==="**")return Ae.GLOBSTAR;if(e==="")return"";let n,i=null;(n=e.match(Q3t))?i=r.dot?k3t:P3t:(n=e.match(I3t))?i=(r.nocase?r.dot?v3t:x3t:r.dot?B3t:S3t)(n[1]):(n=e.match(O3t))?i=(r.nocase?r.dot?F3t:L3t:r.dot?M3t:U3t)(n):(n=e.match(N3t))?i=r.dot?T3t:_3t:(n=e.match(R3t))&&(i=D3t);let s=iFe.AST.fromGlob(e,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?G3t:r.dot?H3t:V3t,i=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))i.add(h);return typeof f=="string"?Y3t(f):f===Ae.GLOBSTAR?Ae.GLOBSTAR:f._src});u.forEach((f,h)=>{let p=u[h+1],g=u[h-1];f!==Ae.GLOBSTAR||g===Ae.GLOBSTAR||(g===void 0?p!==void 0&&p!==Ae.GLOBSTAR?u[h+1]="(?:\\/|"+n+"\\/)?"+p:u[h]=n:p===void 0?u[h-1]=g+"(?:\\/|\\/"+n+")?":p!==Ae.GLOBSTAR&&(u[h-1]=g+"(?:\\/|\\/"+n+"\\/)"+p,u[h+1]=Ae.GLOBSTAR))});let d=u.filter(f=>f!==Ae.GLOBSTAR);if(this.partial&&d.length>=1){let f=[];for(let h=1;h<=d.length;h++)f.push(d.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return d.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c of s){let l=i;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Ae.minimatch.defaults(e).Minimatch}};Ae.Minimatch=WA;var K3t=JK();Object.defineProperty(Ae,"AST",{enumerable:!0,get:o(function(){return K3t.AST},"get")});var X3t=YK();Object.defineProperty(Ae,"escape",{enumerable:!0,get:o(function(){return X3t.escape},"get")});var Z3t=Fk();Object.defineProperty(Ae,"unescape",{enumerable:!0,get:o(function(){return Z3t.unescape},"get")});Ae.minimatch.AST=iFe.AST;Ae.minimatch.Minimatch=WA;Ae.minimatch.escape=C3t.escape;Ae.minimatch.unescape=b3t.unescape});var ZK=m(Qa=>{"use strict";var lFe=Qa&&Qa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qa,"__esModule",{value:!0});Qa.SuccinctRoles=Qa.DelegatedRole=Qa.Role=Qa.TOP_LEVEL_ROLE_NAMES=void 0;var uFe=lFe(require("crypto")),eGt=cFe(),zk=lFe(require("util")),$k=nu(),JA=Ic();Qa.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var DB=class t{static{o(this,"Role")}keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:n,unrecognizedFields:i}=e;if(tGt(r))throw new $k.ValueError("duplicate key IDs found");if(n<1)throw new $k.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=n,this.unrecognizedFields=i||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&zk.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&zk.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:n,...i}=e;if(!JA.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof n!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:n,unrecognizedFields:i})}};Qa.Role=DB;function tGt(t){return new Set(t).size!==t.length}o(tGt,"hasDuplicates");var KK=class t extends DB{static{o(this,"DelegatedRole")}name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:n,paths:i,pathHashPrefixes:s}=e;if(this.name=r,this.terminating=n,e.paths&&e.pathHashPrefixes)throw new $k.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=i,this.pathHashPrefixes=s}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&zk.default.isDeepStrictEqual(this.paths,e.paths)&&zk.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>nGt(e,r));if(this.pathHashPrefixes){let n=uFe.default.createHash("sha256").update(e).digest("hex");return this.pathHashPrefixes.some(i=>n.startsWith(i))}return!1}toJSON(){let e={...super.toJSON(),name:this.name,terminating:this.terminating};return this.paths&&(e.paths=this.paths),this.pathHashPrefixes&&(e.path_hash_prefixes=this.pathHashPrefixes),e}static fromJSON(e){let{keyids:r,threshold:n,name:i,terminating:s,paths:a,path_hash_prefixes:c,...l}=e;if(!JA.guard.isStringArray(r))throw new TypeError("keyids must be an array of strings");if(typeof n!="number")throw new TypeError("threshold must be a number");if(typeof i!="string")throw new TypeError("name must be a string");if(typeof s!="boolean")throw new TypeError("terminating must be a boolean");if(JA.guard.isDefined(a)&&!JA.guard.isStringArray(a))throw new TypeError("paths must be an array of strings");if(JA.guard.isDefined(c)&&!JA.guard.isStringArray(c))throw new TypeError("path_hash_prefixes must be an array of strings");return new t({keyIDs:r,threshold:n,name:i,terminating:s,paths:a,pathHashPrefixes:c,unrecognizedFields:l})}};Qa.DelegatedRole=KK;var rGt=o((t,e)=>t.map((r,n)=>[r,e[n]]),"zip");function nGt(t,e){let r=t.split("/"),n=e.split("/");return n.length!=r.length?!1:rGt(r,n).every(([i,s])=>(0,eGt.minimatch)(i,s))}o(nGt,"isTargetInPathPattern");var XK=class t extends DB{static{o(this,"SuccinctRoles")}bitLength;namePrefix;numberOfBins;suffixLen;constructor(e){super(e);let{bitLength:r,namePrefix:n}=e;if(r<=0||r>32)throw new $k.ValueError("bitLength must be between 1 and 32");this.bitLength=r,this.namePrefix=n,this.numberOfBins=Math.pow(2,r),this.suffixLen=(this.numberOfBins-1).toString(16).length}equals(e){return e instanceof t?super.equals(e)&&this.bitLength===e.bitLength&&this.namePrefix===e.namePrefix:!1}getRoleForTarget(e){let i=uFe.default.createHash("sha256").update(e).digest().subarray(0,4),s=32-this.bitLength,c=(i.readUInt32BE()>>>s).toString(16).padStart(this.suffixLen,"0");return`${this.namePrefix}-${c}`}*getRoles(){for(let e=0;e<this.numberOfBins;e++){let r=e.toString(16).padStart(this.suffixLen,"0");yield`${this.namePrefix}-${r}`}}isDelegatedRole(e){let r=this.namePrefix+"-";if(!e.startsWith(r))return!1;let n=e.slice(r.length,e.length);if(n.length!=this.suffixLen||!n.match(/^[0-9a-fA-F]+$/))return!1;let i=parseInt(n,16);return 0<=i&&i<this.numberOfBins}toJSON(){return{...super.toJSON(),bit_length:this.bitLength,name_prefix:this.namePrefix}}static fromJSON(e){let{keyids:r,threshold:n,bit_length:i,name_prefix:s,...a}=e;if(!JA.guard.isStringArray(r))throw new TypeError("keyids must be an array of strings");if(typeof n!="number")throw new TypeError("threshold must be a number");if(typeof i!="number")throw new TypeError("bit_length must be a number");if(typeof s!="string")throw new TypeError("name_prefix must be a string");return new t({keyIDs:r,threshold:n,bitLength:i,namePrefix:s,unrecognizedFields:a})}};Qa.SuccinctRoles=XK});var r7=m(mC=>{"use strict";var iGt=mC&&mC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mC,"__esModule",{value:!0});mC.Root=void 0;var dFe=iGt(require("util")),e7=$A(),fFe=nu(),sGt=Pk(),jk=ZK(),Wk=Ic(),t7=class t extends e7.Signed{static{o(this,"Root")}type=e7.MetadataKind.Root;keys;roles;consistentSnapshot;constructor(e){if(super(e),this.keys=e.keys||{},this.consistentSnapshot=e.consistentSnapshot??!0,!e.roles)this.roles=jk.TOP_LEVEL_ROLE_NAMES.reduce((r,n)=>({...r,[n]:new jk.Role({keyIDs:[],threshold:1})}),{});else{let r=new Set(Object.keys(e.roles));if(!jk.TOP_LEVEL_ROLE_NAMES.every(n=>r.has(n)))throw new fFe.ValueError("missing top-level role");this.roles=e.roles}}addKey(e,r){if(!this.roles[r])throw new fFe.ValueError(`role ${r} does not exist`);this.roles[r].keyIDs.includes(e.keyID)||this.roles[r].keyIDs.push(e.keyID),this.keys[e.keyID]=e}equals(e){return e instanceof t?super.equals(e)&&this.consistentSnapshot===e.consistentSnapshot&&dFe.default.isDeepStrictEqual(this.keys,e.keys)&&dFe.default.isDeepStrictEqual(this.roles,e.roles):!1}toJSON(){return{_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,keys:oGt(this.keys),roles:aGt(this.roles),consistent_snapshot:this.consistentSnapshot,...this.unrecognizedFields}}static fromJSON(e){let{unrecognizedFields:r,...n}=e7.Signed.commonFieldsFromJSON(e),{keys:i,roles:s,consistent_snapshot:a,...c}=r;if(typeof a!="boolean")throw new TypeError("consistent_snapshot must be a boolean");return new t({...n,keys:cGt(i),roles:lGt(s),consistentSnapshot:a,unrecognizedFields:c})}};mC.Root=t7;function oGt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(oGt,"keysToJSON");function aGt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(aGt,"rolesToJSON");function cGt(t){let e;if(Wk.guard.isDefined(t)){if(!Wk.guard.isObjectRecord(t))throw new TypeError("keys must be an object");e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:sGt.Key.fromJSON(n,i)}),{})}return e}o(cGt,"keysFromJSON");function lGt(t){let e;if(Wk.guard.isDefined(t)){if(!Wk.guard.isObjectRecord(t))throw new TypeError("roles must be an object");e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:jk.Role.fromJSON(i)}),{})}return e}o(lGt,"rolesFromJSON")});var i7=m(Jk=>{"use strict";Object.defineProperty(Jk,"__esModule",{value:!0});Jk.Signature=void 0;var n7=class t{static{o(this,"Signature")}keyID;sig;constructor(e){let{keyID:r,sig:n}=e;this.keyID=r,this.sig=n}toJSON(){return{keyid:this.keyID,sig:this.sig}}static fromJSON(e){let{keyid:r,sig:n}=e;if(typeof r!="string")throw new TypeError("keyid must be a string");if(typeof n!="string")throw new TypeError("sig must be a string");return new t({keyID:r,sig:n})}};Jk.Signature=n7});var a7=m(gC=>{"use strict";var uGt=gC&&gC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gC,"__esModule",{value:!0});gC.Snapshot=void 0;var dGt=uGt(require("util")),s7=$A(),pFe=xB(),hFe=Ic(),o7=class t extends s7.Signed{static{o(this,"Snapshot")}type=s7.MetadataKind.Snapshot;meta;constructor(e){super(e),this.meta=e.meta||{"targets.json":new pFe.MetaFile({version:1})}}equals(e){return e instanceof t?super.equals(e)&&dGt.default.isDeepStrictEqual(this.meta,e.meta):!1}toJSON(){return{_type:this.type,meta:fGt(this.meta),spec_version:this.specVersion,version:this.version,expires:this.expires,...this.unrecognizedFields}}static fromJSON(e){let{unrecognizedFields:r,...n}=s7.Signed.commonFieldsFromJSON(e),{meta:i,...s}=r;return new t({...n,meta:hGt(i),unrecognizedFields:s})}};gC.Snapshot=o7;function fGt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(fGt,"metaToJSON");function hGt(t){let e;if(hFe.guard.isDefined(t))if(hFe.guard.isObjectRecord(t))e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:pFe.MetaFile.fromJSON(i)}),{});else throw new TypeError("meta field is malformed");return e}o(hGt,"metaFromJSON")});var AFe=m(yC=>{"use strict";var pGt=yC&&yC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yC,"__esModule",{value:!0});yC.Delegations=void 0;var Yk=pGt(require("util")),AGt=nu(),mGt=Pk(),c7=ZK(),Kk=Ic(),l7=class t{static{o(this,"Delegations")}keys;roles;unrecognizedFields;succinctRoles;constructor(e){if(this.keys=e.keys,this.unrecognizedFields=e.unrecognizedFields||{},e.roles&&Object.keys(e.roles).some(r=>c7.TOP_LEVEL_ROLE_NAMES.includes(r)))throw new AGt.ValueError("Delegated role name conflicts with top-level role name");this.succinctRoles=e.succinctRoles,this.roles=e.roles}equals(e){return e instanceof t?Yk.default.isDeepStrictEqual(this.keys,e.keys)&&Yk.default.isDeepStrictEqual(this.roles,e.roles)&&Yk.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields)&&Yk.default.isDeepStrictEqual(this.succinctRoles,e.succinctRoles):!1}*rolesForTarget(e){if(this.roles)for(let r of Object.values(this.roles))r.isDelegatedPath(e)&&(yield{role:r.name,terminating:r.terminating});else this.succinctRoles&&(yield{role:this.succinctRoles.getRoleForTarget(e),terminating:!0})}toJSON(){let e={keys:gGt(this.keys),...this.unrecognizedFields};return this.roles?e.roles=yGt(this.roles):this.succinctRoles&&(e.succinct_roles=this.succinctRoles.toJSON()),e}static fromJSON(e){let{keys:r,roles:n,succinct_roles:i,...s}=e,a;return Kk.guard.isObject(i)&&(a=c7.SuccinctRoles.fromJSON(i)),new t({keys:EGt(r),roles:CGt(n),unrecognizedFields:s,succinctRoles:a})}};yC.Delegations=l7;function gGt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(gGt,"keysToJSON");function yGt(t){return Object.values(t).map(e=>e.toJSON())}o(yGt,"rolesToJSON");function EGt(t){if(!Kk.guard.isObjectRecord(t))throw new TypeError("keys is malformed");return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:mGt.Key.fromJSON(r,n)}),{})}o(EGt,"keysFromJSON");function CGt(t){let e;if(Kk.guard.isDefined(t)){if(!Kk.guard.isObjectArray(t))throw new TypeError("roles is malformed");e=t.reduce((r,n)=>{let i=c7.DelegatedRole.fromJSON(n);return{...r,[i.name]:i}},{})}return e}o(CGt,"rolesFromJSON")});var f7=m(EC=>{"use strict";var bGt=EC&&EC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(EC,"__esModule",{value:!0});EC.Targets=void 0;var mFe=bGt(require("util")),u7=$A(),wGt=AFe(),IGt=xB(),Xk=Ic(),d7=class t extends u7.Signed{static{o(this,"Targets")}type=u7.MetadataKind.Targets;targets;delegations;constructor(e){super(e),this.targets=e.targets||{},this.delegations=e.delegations}addTarget(e){this.targets[e.path]=e}equals(e){return e instanceof t?super.equals(e)&&mFe.default.isDeepStrictEqual(this.targets,e.targets)&&mFe.default.isDeepStrictEqual(this.delegations,e.delegations):!1}toJSON(){let e={_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,targets:SGt(this.targets),...this.unrecognizedFields};return this.delegations&&(e.delegations=this.delegations.toJSON()),e}static fromJSON(e){let{unrecognizedFields:r,...n}=u7.Signed.commonFieldsFromJSON(e),{targets:i,delegations:s,...a}=r;return new t({...n,targets:BGt(i),delegations:xGt(s),unrecognizedFields:a})}};EC.Targets=d7;function SGt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(SGt,"targetsToJSON");function BGt(t){let e;if(Xk.guard.isDefined(t))if(Xk.guard.isObjectRecord(t))e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:IGt.TargetFile.fromJSON(n,i)}),{});else throw new TypeError("targets must be an object");return e}o(BGt,"targetsFromJSON");function xGt(t){let e;if(Xk.guard.isDefined(t))if(Xk.guard.isObject(t))e=wGt.Delegations.fromJSON(t);else throw new TypeError("delegations must be an object");return e}o(xGt,"delegationsFromJSON")});var m7=m(Zk=>{"use strict";Object.defineProperty(Zk,"__esModule",{value:!0});Zk.Timestamp=void 0;var h7=$A(),gFe=xB(),p7=Ic(),A7=class t extends h7.Signed{static{o(this,"Timestamp")}type=h7.MetadataKind.Timestamp;snapshotMeta;constructor(e){super(e),this.snapshotMeta=e.snapshotMeta||new gFe.MetaFile({version:1})}equals(e){return e instanceof t?super.equals(e)&&this.snapshotMeta.equals(e.snapshotMeta):!1}toJSON(){return{_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,meta:{"snapshot.json":this.snapshotMeta.toJSON()},...this.unrecognizedFields}}static fromJSON(e){let{unrecognizedFields:r,...n}=h7.Signed.commonFieldsFromJSON(e),{meta:i,...s}=r;return new t({...n,snapshotMeta:vGt(i),unrecognizedFields:s})}};Zk.Timestamp=A7;function vGt(t){let e;if(p7.guard.isDefined(t)){let r=t["snapshot.json"];if(!p7.guard.isDefined(r)||!p7.guard.isObject(r))throw new TypeError("missing snapshot.json in meta");e=gFe.MetaFile.fromJSON(r)}return e}o(vGt,"snapshotMetaFromJSON")});var EFe=m(bC=>{"use strict";var NGt=bC&&bC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bC,"__esModule",{value:!0});bC.Metadata=void 0;var _Gt=kK(),yFe=NGt(require("util")),CC=$A(),QB=nu(),TGt=r7(),RGt=i7(),DGt=a7(),QGt=f7(),PGt=m7(),g7=Ic(),y7=class t{static{o(this,"Metadata")}signed;signatures;unrecognizedFields;constructor(e,r,n){this.signed=e,this.signatures=r||{},this.unrecognizedFields=n||{}}sign(e,r=!0){let n=Buffer.from((0,_Gt.canonicalize)(this.signed.toJSON())),i=e(n);r||(this.signatures={}),this.signatures[i.keyID]=i}verifyDelegate(e,r){let n,i={};switch(this.signed.type){case CC.MetadataKind.Root:i=this.signed.keys,n=this.signed.roles[e];break;case CC.MetadataKind.Targets:if(!this.signed.delegations)throw new QB.ValueError(`No delegations found for ${e}`);i=this.signed.delegations.keys,this.signed.delegations.roles?n=this.signed.delegations.roles[e]:this.signed.delegations.succinctRoles&&this.signed.delegations.succinctRoles.isDelegatedRole(e)&&(n=this.signed.delegations.succinctRoles);break;default:throw new TypeError("invalid metadata type")}if(!n)throw new QB.ValueError(`no delegation found for ${e}`);let s=new Set;if(n.keyIDs.forEach(a=>{let c=i[a];if(c)try{c.verifySignature(r),s.add(c.keyID)}catch{}}),s.size<n.threshold)throw new QB.UnsignedMetadataError(`${e} was signed by ${s.size}/${n.threshold} keys`)}equals(e){return e instanceof t?this.signed.equals(e.signed)&&yFe.default.isDeepStrictEqual(this.signatures,e.signatures)&&yFe.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{signatures:Object.values(this.signatures).map(r=>r.toJSON()),signed:this.signed.toJSON(),...this.unrecognizedFields}}static fromJSON(e,r){let{signed:n,signatures:i,...s}=r;if(!g7.guard.isDefined(n)||!g7.guard.isObject(n))throw new TypeError("signed is not defined");if(e!==n._type)throw new QB.ValueError(`expected '${e}', got ${n._type}`);if(!g7.guard.isObjectArray(i))throw new TypeError("signatures is not an array");let a;switch(e){case CC.MetadataKind.Root:a=TGt.Root.fromJSON(n);break;case CC.MetadataKind.Timestamp:a=PGt.Timestamp.fromJSON(n);break;case CC.MetadataKind.Snapshot:a=DGt.Snapshot.fromJSON(n);break;case CC.MetadataKind.Targets:a=QGt.Targets.fromJSON(n);break;default:throw new TypeError("invalid metadata type")}let c={};return i.forEach(l=>{let u=RGt.Signature.fromJSON(l);if(c[u.keyID])throw new QB.ValueError(`multiple signatures found for keyid: ${u.keyID}`);c[u.keyID]=u}),new t(a,c,s)}};bC.Metadata=y7});var eO=m(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.Timestamp=Br.Targets=Br.Snapshot=Br.Signature=Br.Root=Br.Metadata=Br.Key=Br.TargetFile=Br.MetaFile=Br.ValueError=Br.MetadataKind=void 0;var kGt=$A();Object.defineProperty(Br,"MetadataKind",{enumerable:!0,get:o(function(){return kGt.MetadataKind},"get")});var OGt=nu();Object.defineProperty(Br,"ValueError",{enumerable:!0,get:o(function(){return OGt.ValueError},"get")});var CFe=xB();Object.defineProperty(Br,"MetaFile",{enumerable:!0,get:o(function(){return CFe.MetaFile},"get")});Object.defineProperty(Br,"TargetFile",{enumerable:!0,get:o(function(){return CFe.TargetFile},"get")});var LGt=Pk();Object.defineProperty(Br,"Key",{enumerable:!0,get:o(function(){return LGt.Key},"get")});var FGt=EFe();Object.defineProperty(Br,"Metadata",{enumerable:!0,get:o(function(){return FGt.Metadata},"get")});var MGt=r7();Object.defineProperty(Br,"Root",{enumerable:!0,get:o(function(){return MGt.Root},"get")});var UGt=i7();Object.defineProperty(Br,"Signature",{enumerable:!0,get:o(function(){return UGt.Signature},"get")});var qGt=a7();Object.defineProperty(Br,"Snapshot",{enumerable:!0,get:o(function(){return qGt.Snapshot},"get")});var GGt=f7();Object.defineProperty(Br,"Targets",{enumerable:!0,get:o(function(){return GGt.Targets},"get")});var HGt=m7();Object.defineProperty(Br,"Timestamp",{enumerable:!0,get:o(function(){return HGt.Timestamp},"get")})});var wFe=m((sMr,bFe)=>{var wC=1e3,IC=wC*60,SC=IC*60,YA=SC*24,VGt=YA*7,zGt=YA*365.25;bFe.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return $Gt(t);if(r==="number"&&isFinite(t))return e.long?WGt(t):jGt(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function $Gt(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*zGt;case"weeks":case"week":case"w":return r*VGt;case"days":case"day":case"d":return r*YA;case"hours":case"hour":case"hrs":case"hr":case"h":return r*SC;case"minutes":case"minute":case"mins":case"min":case"m":return r*IC;case"seconds":case"second":case"secs":case"sec":case"s":return r*wC;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}o($Gt,"parse");function jGt(t){var e=Math.abs(t);return e>=YA?Math.round(t/YA)+"d":e>=SC?Math.round(t/SC)+"h":e>=IC?Math.round(t/IC)+"m":e>=wC?Math.round(t/wC)+"s":t+"ms"}o(jGt,"fmtShort");function WGt(t){var e=Math.abs(t);return e>=YA?tO(t,e,YA,"day"):e>=SC?tO(t,e,SC,"hour"):e>=IC?tO(t,e,IC,"minute"):e>=wC?tO(t,e,wC,"second"):t+" ms"}o(WGt,"fmtLong");function tO(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}o(tO,"plural")});var E7=m((aMr,IFe)=>{function JGt(t){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=i,r.enabled=c,r.humanize=wFe(),r.destroy=u,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let f=0;for(let h=0;h<d.length;h++)f=(f<<5)-f+d.charCodeAt(h),f|=0;return r.colors[Math.abs(f)%r.colors.length]}o(e,"selectColor"),r.selectColor=e;function r(d){let f,h=null,p,g;function A(...E){if(!A.enabled)return;let y=A,C=Number(new Date),w=C-(f||C);y.diff=w,y.prev=f,y.curr=C,f=C,E[0]=r.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let B=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(U,v)=>{if(U==="%%")return"%";B++;let j=r.formatters[v];if(typeof j=="function"){let D=E[B];U=j.call(y,D),E.splice(B,1),B--}return U}),r.formatArgs.call(y,E),(y.log||r.log).apply(y,E)}return o(A,"debug"),A.namespace=d,A.useColors=r.useColors(),A.color=r.selectColor(d),A.extend=n,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:o(()=>h!==null?h:(p!==r.namespaces&&(p=r.namespaces,g=r.enabled(d)),g),"get"),set:o(E=>{h=E},"set")}),typeof r.init=="function"&&r.init(A),A}o(r,"createDebug");function n(d,f){let h=r(this.namespace+(typeof f>"u"?":":f)+d);return h.log=this.log,h}o(n,"extend");function i(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let f=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of f)h[0]==="-"?r.skips.push(h.slice(1)):r.names.push(h)}o(i,"enable");function s(d,f){let h=0,p=0,g=-1,A=0;for(;h<d.length;)if(p<f.length&&(f[p]===d[h]||f[p]==="*"))f[p]==="*"?(g=p,A=h,p++):(h++,p++);else if(g!==-1)p=g+1,A++,h=A;else return!1;for(;p<f.length&&f[p]==="*";)p++;return p===f.length}o(s,"matchesTemplate");function a(){let d=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),d}o(a,"disable");function c(d){for(let f of r.skips)if(s(d,f))return!1;for(let f of r.names)if(s(d,f))return!0;return!1}o(c,"enabled");function l(d){return d instanceof Error?d.stack||d.message:d}o(l,"coerce");function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o(u,"destroy"),r.enable(r.load()),r}o(JGt,"setup");IFe.exports=JGt});var SFe=m(($s,rO)=>{$s.formatArgs=KGt;$s.save=XGt;$s.load=ZGt;$s.useColors=YGt;$s.storage=eHt();$s.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`."))}})();$s.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 YGt(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}o(YGt,"useColors");function KGt(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+rO.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}o(KGt,"formatArgs");$s.log=console.debug||console.log||(()=>{});function XGt(t){try{t?$s.storage.setItem("debug",t):$s.storage.removeItem("debug")}catch{}}o(XGt,"save");function ZGt(){let t;try{t=$s.storage.getItem("debug")||$s.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}o(ZGt,"load");function eHt(){try{return localStorage}catch{}}o(eHt,"localstorage");rO.exports=E7()($s);var{formatters:tHt}=rO.exports;tHt.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var xFe=m((si,iO)=>{var rHt=require("tty"),nO=require("util");si.init=lHt;si.log=oHt;si.formatArgs=iHt;si.save=aHt;si.load=cHt;si.useColors=nHt;si.destroy=nO.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");si.colors=[6,2,3,4,5,1];try{let t=K3();t&&(t.stderr||t).level>=2&&(si.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{}si.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function nHt(){return"colors"in si.inspectOpts?!!si.inspectOpts.colors:rHt.isatty(process.stderr.fd)}o(nHt,"useColors");function iHt(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
|
|
`).join(`
|
|
`+s),t.push(i+"m+"+iO.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=sHt()+e+" "+t[0]}o(iHt,"formatArgs");function sHt(){return si.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(sHt,"getDate");function oHt(...t){return process.stderr.write(nO.formatWithOptions(si.inspectOpts,...t)+`
|
|
`)}o(oHt,"log");function aHt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(aHt,"save");function cHt(){return process.env.DEBUG}o(cHt,"load");function lHt(t){t.inspectOpts={};let e=Object.keys(si.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=si.inspectOpts[e[r]]}o(lHt,"init");iO.exports=E7()(si);var{formatters:BFe}=iO.exports;BFe.o=function(t){return this.inspectOpts.colors=this.useColors,nO.inspect(t,this.inspectOpts).split(`
|
|
`).map(e=>e.trim()).join(" ")};BFe.O=function(t){return this.inspectOpts.colors=this.useColors,nO.inspect(t,this.inspectOpts)}});var b7=m((dMr,C7)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?C7.exports=SFe():C7.exports=xFe()});var oO=m(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.DownloadHTTPError=jr.DownloadLengthMismatchError=jr.DownloadError=jr.ExpiredMetadataError=jr.EqualVersionError=jr.BadVersionError=jr.RepositoryError=jr.PersistError=jr.RuntimeError=jr.ValueError=void 0;var w7=class extends Error{static{o(this,"ValueError")}};jr.ValueError=w7;var I7=class extends Error{static{o(this,"RuntimeError")}};jr.RuntimeError=I7;var S7=class extends Error{static{o(this,"PersistError")}};jr.PersistError=S7;var PB=class extends Error{static{o(this,"RepositoryError")}};jr.RepositoryError=PB;var sO=class extends PB{static{o(this,"BadVersionError")}};jr.BadVersionError=sO;var B7=class extends sO{static{o(this,"EqualVersionError")}};jr.EqualVersionError=B7;var x7=class extends PB{static{o(this,"ExpiredMetadataError")}};jr.ExpiredMetadataError=x7;var kB=class extends Error{static{o(this,"DownloadError")}};jr.DownloadError=kB;var v7=class extends kB{static{o(this,"DownloadLengthMismatchError")}};jr.DownloadLengthMismatchError=v7;var N7=class extends kB{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};jr.DownloadHTTPError=N7});var NFe=m(BC=>{"use strict";var T7=BC&&BC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(BC,"__esModule",{value:!0});BC.withTempFile=void 0;var _7=T7(require("fs/promises")),uHt=T7(require("os")),vFe=T7(require("path")),dHt=o(async t=>fHt(async e=>t(vFe.default.join(e,"tempfile"))),"withTempFile");BC.withTempFile=dHt;var fHt=o(async t=>{let e=await _7.default.realpath(uHt.default.tmpdir()),r=await _7.default.mkdtemp(e+vFe.default.sep);try{return await t(r)}finally{await _7.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var TFe=m((mMr,_Fe)=>{var R7=class{static{o(this,"RetryOperation")}#e=1;#r=null;#n=[];#t=null;#i;#s=null;#l;#a;#c=null;#o;constructor(e,r={}){this.#l=[...e],this.#a=[...e],this.#o=r.unref,this.#i=r.maxRetryTime||1/0,r.forever&&(this.#r=[...this.#a])}get timeouts(){return[...this.#a]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let i=0;i<this.#n.length;i++){let s=this.#n[i],{message:a}=s;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#a=[...this.#l]}stop(){this.#c&&clearTimeout(this.#c),this.#a=[],this.#r=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#i)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#a.shift();if(r===void 0)if(this.#r)this.#n.pop(),r=this.#r.at(-1);else return!1;return this.#c=setTimeout(()=>{this.#e++,this.#t(this.#e)},r),this.#o&&this.#c.unref(),!0}attempt(e){this.#t=e,this.#s=new Date().getTime(),this.#t(this.#e)}};_Fe.exports={RetryOperation:R7}});var QFe=m((yMr,DFe)=>{var{RetryOperation:hHt}=TFe(),RFe=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),pHt=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),AHt=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(i.retries){for(let s=0;s<i.retries;s++)r.push(RFe(s,i));r.sort((s,a)=>s-a)}else e.forever&&r.push(RFe(0,i))}let n=new hHt(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(i,s){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return i(c)}catch(c){if(!pHt(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"promiseRetry");DFe.exports={promiseRetry:AHt}});var P7=m(gh=>{"use strict";var Q7=gh&&gh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gh,"__esModule",{value:!0});gh.DefaultFetcher=gh.BaseFetcher=void 0;var mHt=Q7(b7()),PFe=Q7(require("fs")),gHt=Q7(require("util")),kFe=oO(),yHt=NFe(),EHt=QFe(),CHt=(0,mHt.default)("tuf:fetch"),bHt="User-Agent",aO=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,yHt.withTempFile)(async i=>{let s=await this.fetch(e),a=0,c=PFe.default.createWriteStream(i),l=s.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new kFe.DownloadLengthMismatchError("Max length reached");await wHt(c,Buffer.from(d))}}finally{l.releaseLock(),await gHt.default.promisify(c.close).bind(c)()}return n(i)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let i=PFe.default.createReadStream(n),s=[];for await(let a of i)s.push(a);return Buffer.concat(s)})}};gh.BaseFetcher=aO;var D7=class extends aO{static{o(this,"DefaultFetcher")}userAgent;timeout;retry;constructor(e={}){if(super(),this.userAgent=e.userAgent,this.timeout=e.timeout,e.retry===!0)this.retry={forever:!0};else if(e.retry===!1||e.retry===void 0)this.retry=void 0;else if(typeof e.retry=="number"){if(e.retry<0)throw new Error("Retry count must be non-negative number");this.retry={retries:e.retry}}else this.retry=e.retry}async fetch(e){let r=this.retry!==void 0;return(0,EHt.promiseRetry)(async(n,i)=>{CHt("GET %s (attempt %d)",e,i);let s;try{s=await fetch(e,{headers:{[bHt]:this.userAgent||""},signal:this.timeout?AbortSignal.timeout(this.timeout):void 0})}catch(a){let c=a instanceof Error?a:new Error(String(a));if(r)return n(c);throw c}if(!s.ok||!s.body){let a=new kFe.DownloadHTTPError("Failed to download",s.status);if(r&&s.status>=500&&s.status<600)return n(a);throw a}return s.body},this.retry)}};gh.DefaultFetcher=D7;var wHt=o(async(t,e)=>new Promise((r,n)=>{t.write(e,i=>{i&&n(i),r(!0)})}),"writeBufferToStream")});var OFe=m((wMr,IHt)=>{IHt.exports={name:"tuf-js",version:"6.0.0",description:"JavaScript implementation of The Update Framework (TUF)",main:"dist/index.js",types:"dist/index.d.ts",scripts:{build:"tsc --build tsconfig.build.json",clean:"rm -rf dist && rm tsconfig.build.tsbuildinfo",test:"jest"},repository:{type:"git",url:"git+https://github.com/theupdateframework/tuf-js.git"},files:["dist"],keywords:["tuf","security","update"],author:"bdehamer@github.com",license:"MIT",bugs:{url:"https://github.com/theupdateframework/tuf-js/issues"},homepage:"https://github.com/theupdateframework/tuf-js/tree/main/packages/client#readme",devDependencies:{"@tufjs/repo-mock":"5.0.0","@types/debug":"^4.1.13","@types/retry":"^0.12.5"},dependencies:{"@gar/promise-retry":"^1.0.3","@tufjs/models":"5.0.0",debug:"^4.4.3"},engines:{node:"^22.22.2 || ^24.15.0 || >=26.0.0"}}});var LFe=m(cO=>{"use strict";Object.defineProperty(cO,"__esModule",{value:!0});cO.defaultConfig=void 0;cO.defaultConfig={maxRootRotations:256,maxDelegations:32,rootMaxLength:512e3,timestampMaxLength:16384,snapshotMaxLength:2e6,targetsMaxLength:5e6,prefixTargetsWithHash:!0,fetchTimeout:1e5,fetchRetries:void 0,fetchRetry:2,userAgent:""}});var FFe=m(lO=>{"use strict";Object.defineProperty(lO,"__esModule",{value:!0});lO.TrustedMetadataStore=void 0;var Bn=eO(),Rr=oO(),k7=class{static{o(this,"TrustedMetadataStore")}trustedSet={};referenceTime;constructor(e){this.referenceTime=new Date,this.loadTrustedRoot(e)}get root(){if(!this.trustedSet.root)throw new ReferenceError("No trusted root metadata");return this.trustedSet.root}get timestamp(){return this.trustedSet.timestamp}get snapshot(){return this.trustedSet.snapshot}get targets(){return this.trustedSet.targets}getRole(e){return this.trustedSet[e]}updateRoot(e){let r=JSON.parse(e.toString("utf8")),n=Bn.Metadata.fromJSON(Bn.MetadataKind.Root,r);if(n.signed.type!=Bn.MetadataKind.Root)throw new Rr.RepositoryError(`Expected 'root', got ${n.signed.type}`);if(this.root.verifyDelegate(Bn.MetadataKind.Root,n),n.signed.version!=this.root.signed.version+1)throw new Rr.BadVersionError(`Expected version ${this.root.signed.version+1}, got ${n.signed.version}`);return n.verifyDelegate(Bn.MetadataKind.Root,n),this.trustedSet.root=n,n}updateTimestamp(e){if(this.snapshot)throw new Rr.RuntimeError("Cannot update timestamp after snapshot");if(this.root.signed.isExpired(this.referenceTime))throw new Rr.ExpiredMetadataError("Final root.json is expired");let r=JSON.parse(e.toString("utf8")),n=Bn.Metadata.fromJSON(Bn.MetadataKind.Timestamp,r);if(n.signed.type!=Bn.MetadataKind.Timestamp)throw new Rr.RepositoryError(`Expected 'timestamp', got ${n.signed.type}`);if(this.root.verifyDelegate(Bn.MetadataKind.Timestamp,n),this.timestamp){if(n.signed.version<this.timestamp.signed.version)throw new Rr.BadVersionError(`New timestamp version ${n.signed.version} is less than current version ${this.timestamp.signed.version}`);if(n.signed.version===this.timestamp.signed.version)throw new Rr.EqualVersionError(`New timestamp version ${n.signed.version} is equal to current version ${this.timestamp.signed.version}`);let i=this.timestamp.signed.snapshotMeta,s=n.signed.snapshotMeta;if(s.version<i.version)throw new Rr.BadVersionError(`New snapshot version ${s.version} is less than current version ${i.version}`)}return this.trustedSet.timestamp=n,this.checkFinalTimestamp(),n}updateSnapshot(e,r=!1){if(!this.timestamp)throw new Rr.RuntimeError("Cannot update snapshot before timestamp");if(this.targets)throw new Rr.RuntimeError("Cannot update snapshot after targets");this.checkFinalTimestamp();let n=this.timestamp.signed.snapshotMeta;r||n.verify(e);let i=JSON.parse(e.toString("utf8")),s=Bn.Metadata.fromJSON(Bn.MetadataKind.Snapshot,i);if(s.signed.type!=Bn.MetadataKind.Snapshot)throw new Rr.RepositoryError(`Expected 'snapshot', got ${s.signed.type}`);return this.root.verifyDelegate(Bn.MetadataKind.Snapshot,s),this.snapshot&&Object.entries(this.snapshot.signed.meta).forEach(([a,c])=>{let l=s.signed.meta[a];if(!l)throw new Rr.RepositoryError(`Missing file ${a} in new snapshot`);if(l.version<c.version)throw new Rr.BadVersionError(`New version ${l.version} of ${a} is less than current version ${c.version}`)}),this.trustedSet.snapshot=s,this.checkFinalSnapsnot(),s}updateDelegatedTargets(e,r,n){if(!this.snapshot)throw new Rr.RuntimeError("Cannot update delegated targets before snapshot");this.checkFinalSnapsnot();let i=this.trustedSet[n];if(!i)throw new Rr.RuntimeError(`No trusted ${n} metadata`);let s=this.snapshot.signed.meta?.[`${r}.json`];if(!s)throw new Rr.RepositoryError(`Missing ${r}.json in snapshot`);s.verify(e);let a=JSON.parse(e.toString("utf8")),c=Bn.Metadata.fromJSON(Bn.MetadataKind.Targets,a);if(c.signed.type!=Bn.MetadataKind.Targets)throw new Rr.RepositoryError(`Expected 'targets', got ${c.signed.type}`);i.verifyDelegate(r,c);let l=c.signed.version;if(l!=s.version)throw new Rr.BadVersionError(`Version ${l} of ${r} does not match snapshot version ${s.version}`);if(c.signed.isExpired(this.referenceTime))throw new Rr.ExpiredMetadataError(`${r}.json is expired`);this.trustedSet[r]=c}loadTrustedRoot(e){let r=JSON.parse(e.toString("utf8")),n=Bn.Metadata.fromJSON(Bn.MetadataKind.Root,r);if(n.signed.type!=Bn.MetadataKind.Root)throw new Rr.RepositoryError(`Expected 'root', got ${n.signed.type}`);n.verifyDelegate(Bn.MetadataKind.Root,n),this.trustedSet.root=n}checkFinalTimestamp(){if(!this.timestamp)throw new ReferenceError("No trusted timestamp metadata");if(this.timestamp.signed.isExpired(this.referenceTime))throw new Rr.ExpiredMetadataError("Final timestamp.json is expired")}checkFinalSnapsnot(){if(!this.snapshot)throw new ReferenceError("No trusted snapshot metadata");if(!this.timestamp)throw new ReferenceError("No trusted timestamp metadata");if(this.snapshot.signed.isExpired(this.referenceTime))throw new Rr.ExpiredMetadataError("snapshot.json is expired");let e=this.timestamp.signed.snapshotMeta;if(this.snapshot.signed.version!==e.version)throw new Rr.BadVersionError("Snapshot version doesn't match timestamp")}};lO.TrustedMetadataStore=k7});var MFe=m(O7=>{"use strict";Object.defineProperty(O7,"__esModule",{value:!0});O7.join=BHt;var SHt=require("url");function BHt(t,e){return new SHt.URL(xHt(t)+vHt(e)).toString()}o(BHt,"join");function xHt(t){return t.endsWith("/")?t:t+"/"}o(xHt,"ensureTrailingSlash");function vHt(t){return t.startsWith("/")?t.slice(1):t}o(vHt,"removeLeadingSlash")});var qFe=m(Pa=>{"use strict";var NHt=Pa&&Pa.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),_Ht=Pa&&Pa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),M7=Pa&&Pa.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&NHt(r,e,n[i]);return _Ht(r,e),r}})(),THt=Pa&&Pa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pa,"__esModule",{value:!0});Pa.Updater=void 0;var iu=eO(),RHt=THt(b7()),xC=M7(require("fs")),uO=M7(require("path")),UFe=OFe(),DHt=LFe(),KA=oO(),QHt=P7(),PHt=FFe(),OB=M7(MFe()),L7=(0,RHt.default)("tuf:cache"),F7=class{static{o(this,"Updater")}dir;metadataBaseUrl;targetDir;targetBaseUrl;forceCache;trustedSet;config;fetcher;constructor(e){let{metadataDir:r,metadataBaseUrl:n,targetDir:i,targetBaseUrl:s,fetcher:a,config:c}=e;this.dir=r,this.metadataBaseUrl=n,this.targetDir=i,this.targetBaseUrl=s,this.forceCache=e.forceCache??!1;let l=this.loadLocalMetadata(iu.MetadataKind.Root);this.trustedSet=new PHt.TrustedMetadataStore(l),this.config={...DHt.defaultConfig,...c};let u=c?.userAgent?`${c.userAgent} tuf-js/${UFe.version}`:`tuf-js/${UFe.version}`;this.fetcher=a||new QHt.DefaultFetcher({userAgent:u,timeout:this.config.fetchTimeout,retry:this.config.fetchRetries??this.config.fetchRetry})}async refresh(){if(this.forceCache)try{await this.loadTimestamp({checkRemote:!1})}catch{await this.loadRoot(),await this.loadTimestamp()}else await this.loadRoot(),await this.loadTimestamp();await this.loadSnapshot(),await this.loadTargets(iu.MetadataKind.Targets,iu.MetadataKind.Root)}async getTargetInfo(e){return this.trustedSet.targets||await this.refresh(),this.preorderDepthFirstWalk(e)}async downloadTarget(e,r,n){let i=r||this.generateTargetPath(e);if(!n){if(!this.targetBaseUrl)throw new KA.ValueError("Target base URL not set");n=this.targetBaseUrl}let s=e.path;if(this.trustedSet.root.signed.consistentSnapshot&&this.config.prefixTargetsWithHash){let l=Object.values(e.hashes),{dir:u,base:d}=uO.parse(s),f=`${l[0]}.${d}`;s=u?`${u}/${f}`:f}let c=OB.join(n,s);return await this.fetcher.downloadFile(c,e.length,async l=>{await e.verify(xC.createReadStream(l)),L7("WRITE %s",i),xC.copyFileSync(l,i)}),i}async findCachedTarget(e,r){r||(r=this.generateTargetPath(e));try{if(xC.existsSync(r))return await e.verify(xC.createReadStream(r)),r}catch{return}}loadLocalMetadata(e){let r=uO.join(this.dir,`${e}.json`);return L7("READ %s",r),xC.readFileSync(r)}async loadRoot(){let r=this.trustedSet.root.signed.version+1,n=r+this.config.maxRootRotations;for(let i=r;i<n;i++){let s=OB.join(this.metadataBaseUrl,`${i}.root.json`);try{let a=await this.fetcher.downloadBytes(s,this.config.rootMaxLength);this.trustedSet.updateRoot(a),this.persistMetadata(iu.MetadataKind.Root,a)}catch(a){if(a instanceof KA.DownloadHTTPError&&[403,404].includes(a.statusCode))break;throw a}}}async loadTimestamp({checkRemote:e}={checkRemote:!0}){try{let i=this.loadLocalMetadata(iu.MetadataKind.Timestamp);if(this.trustedSet.updateTimestamp(i),!e)return}catch{}let r=OB.join(this.metadataBaseUrl,"timestamp.json"),n=await this.fetcher.downloadBytes(r,this.config.timestampMaxLength);try{this.trustedSet.updateTimestamp(n)}catch(i){if(i instanceof KA.EqualVersionError)return;throw i}this.persistMetadata(iu.MetadataKind.Timestamp,n)}async loadSnapshot(){try{let e=this.loadLocalMetadata(iu.MetadataKind.Snapshot);this.trustedSet.updateSnapshot(e,!0)}catch(e){if(!this.trustedSet.timestamp)throw new ReferenceError("No timestamp metadata",{cause:e});let r=this.trustedSet.timestamp.signed.snapshotMeta,n=r.length||this.config.snapshotMaxLength,i=this.trustedSet.root.signed.consistentSnapshot?r.version:void 0,s=OB.join(this.metadataBaseUrl,i?`${i}.snapshot.json`:"snapshot.json");try{let a=await this.fetcher.downloadBytes(s,n);this.trustedSet.updateSnapshot(a),this.persistMetadata(iu.MetadataKind.Snapshot,a)}catch(a){throw new KA.RuntimeError(`Unable to load snapshot metadata error ${a}`)}}}async loadTargets(e,r){if(this.trustedSet.getRole(e))return this.trustedSet.getRole(e);try{let n=this.loadLocalMetadata(e);this.trustedSet.updateDelegatedTargets(n,e,r)}catch(n){if(!this.trustedSet.snapshot)throw new ReferenceError("No snapshot metadata",{cause:n});let i=this.trustedSet.snapshot.signed.meta[`${e}.json`],s=i.length||this.config.targetsMaxLength,a=this.trustedSet.root.signed.consistentSnapshot?i.version:void 0,c=encodeURIComponent(e),l=OB.join(this.metadataBaseUrl,a?`${a}.${c}.json`:`${c}.json`);try{let u=await this.fetcher.downloadBytes(l,s);this.trustedSet.updateDelegatedTargets(u,e,r),this.persistMetadata(e,u)}catch(u){throw new KA.RuntimeError(`Unable to load targets error ${u}`)}}return this.trustedSet.getRole(e)}async preorderDepthFirstWalk(e){let r=[{roleName:iu.MetadataKind.Targets,parentRoleName:iu.MetadataKind.Root}],n=new Set;for(;n.size<=this.config.maxDelegations&&r.length>0;){let{roleName:i,parentRoleName:s}=r.pop();if(n.has(i))continue;let a=(await this.loadTargets(i,s))?.signed;if(!a)continue;let c=a.targets?.[e];if(c)return c;if(n.add(i),a.delegations){let l=[],u=a.delegations.rolesForTarget(e);for(let{role:d,terminating:f}of u)if(l.push({roleName:d,parentRoleName:i}),f){r.splice(0);break}l.reverse(),r.push(...l)}}}generateTargetPath(e){if(!this.targetDir)throw new KA.ValueError("Target directory not set");let r=encodeURIComponent(e.path);return uO.join(this.targetDir,r)}persistMetadata(e,r){let n=encodeURIComponent(e);try{let i=uO.join(this.dir,`${n}.json`);L7("WRITE %s",i),xC.writeFileSync(i,r.toString("utf8"))}catch(i){throw new KA.PersistError(`Failed to persist metadata ${n} error: ${i}`)}}};Pa.Updater=F7});var GFe=m(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.Updater=yh.BaseFetcher=yh.TargetFile=void 0;var kHt=eO();Object.defineProperty(yh,"TargetFile",{enumerable:!0,get:o(function(){return kHt.TargetFile},"get")});var OHt=P7();Object.defineProperty(yh,"BaseFetcher",{enumerable:!0,get:o(function(){return OHt.BaseFetcher},"get")});var LHt=qFe();Object.defineProperty(yh,"Updater",{enumerable:!0,get:o(function(){return LHt.Updater},"get")})});var HFe=m((DMr,FHt)=>{FHt.exports={name:"@sigstore/tuf",version:"5.0.0",description:"Client for the Sigstore TUF repository",main:"dist/index.js",types:"dist/index.d.ts",scripts:{clean:"shx rm -rf dist *.tsbuildinfo",build:"tsc --build",test:"jest"},files:["dist","seeds.json"],author:"bdehamer@github.com",license:"Apache-2.0",repository:{type:"git",url:"git+https://github.com/sigstore/sigstore-js.git"},bugs:{url:"https://github.com/sigstore/sigstore-js/issues"},homepage:"https://github.com/sigstore/sigstore-js/tree/main/packages/tuf#readme",publishConfig:{provenance:!0},devDependencies:{"@sigstore/jest":"^0.0.0","@tufjs/repo-mock":"^5.0.0","@types/make-fetch-happen":"^10.0.4"},dependencies:{"@sigstore/protobuf-specs":"^0.5.0","tuf-js":"^6.0.0"},engines:{node:"^22.22.2 || ^24.15.0 || >=26.0.0"}}});var q7=m(dO=>{"use strict";Object.defineProperty(dO,"__esModule",{value:!0});dO.TUFError=void 0;var U7=class extends Error{static{o(this,"TUFError")}code;cause;constructor({code:e,message:r,cause:n}){super(r),this.code=e,this.cause=n,this.name=this.constructor.name}};dO.TUFError=U7});var VFe=m(LB=>{"use strict";var MHt=LB&&LB.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(LB,"__esModule",{value:!0});LB.readTarget=qHt;var UHt=MHt(require("fs")),fO=q7();async function qHt(t,e){let r=await GHt(t,e);return new Promise((n,i)=>{UHt.default.readFile(r,"utf-8",(s,a)=>{s?i(new fO.TUFError({code:"TUF_READ_TARGET_ERROR",message:`error reading target ${r}`,cause:s})):n(a)})})}o(qHt,"readTarget");async function GHt(t,e){let r;try{r=await t.getTargetInfo(e)}catch(i){throw new fO.TUFError({code:"TUF_REFRESH_METADATA_ERROR",message:"error refreshing TUF metadata",cause:i})}if(!r)throw new fO.TUFError({code:"TUF_FIND_TARGET_ERROR",message:`target ${e} not found`});let n=await t.findCachedTarget(r);if(!n)try{n=await t.downloadTarget(r)}catch(i){throw new fO.TUFError({code:"TUF_DOWNLOAD_TARGET_ERROR",message:`error downloading target ${n}`,cause:i})}return n}o(GHt,"getTargetPath")});var zFe=m((LMr,HHt)=>{HHt.exports={"https://tuf-repo-cdn.sigstore.dev":{"root.json":"ewogInNpZ25hdHVyZXMiOiBbCiAgewogICAia2V5aWQiOiAiZTcxYTU0ZDU0MzgzNWJhODZhZGFkOTQ2MDM3OWM3NjQxZmI4NzI2ZDE2NGVhNzY2ODAxYTFjNTIyYWJhN2VhMiIsCiAgICJzaWciOiAiMzA0NTAyMjEwMGVhMmYzNzRmNDA5ODEwZTJkYjk1MDc0OWQ5Y2ZlZDA5YTE1YjZhNWUyNWYzZDVmZmQwNzk5NDU5ZDdiZWUxNjcwMjIwMjhkM2FjZGRlNmRiZDUwMzRjZmFkMjIyZDMxYjQxMDkwZWUyMTg5NGUyYzQ2Y2I4OTc0MTk4YWIwMzc3ZGI0NCIKICB9LAogIHsKICAgImtleWlkIjogIjIyZjRjYWVjNmQ4ZTZmOTU1NWFmNjZiM2Q0YzNjYjA2YTNiYjIzZmRjN2UzOWM5MTZjNjFmNDYyZTZmNTJiMDYiLAogICAic2lnIjogIjMwNDQwMjIwN2ViYjI0ZTMyMzdlNDcwNjkxZDc4NzU5MDNhNzc1NGQwZWYyYWU3ZTdiNTAyNGE3ODg4YzlhMzhhNTJkZWVjZDAyMjA2ZWQ1YWQxYzZmNGZhYjQ2OTk1ODQzYWI2YjIzZjk0MjBjNWE0Y2Y2Y2UxY2IyY2IyYTZmYzJlODdlMmVmM2UxIgogIH0sCiAgewogICAia2V5aWQiOiAiNjE2NDM4MzgxMjViNDQwYjQwZGI2OTQyZjVjYjVhMzFjMGRjMDQzNjgzMTZlYjJhYWE1OGI5NTkwNGE1ODIyMiIsCiAgICJzaWciOiAiMzA0NjAyMjEwMDg5ZDlkZmQ4ZTEwNmNjOTU4MDg4YTRkYTNjOGNmNzI1NGFiNmY2NWE5NjQ3ZDM3YWRhNzMwZWY0NzYzYzUxNjMwMjIxMDBkODgyZWU3NDQ2MTViZTc5ODYxZTIxNGUxZWViOWUxZWRkZjZhMWUyMDNhMjAxYjRjNWQwM2Y1MjI0ZDcxZDE2IgogIH0sCiAgewogICAia2V5aWQiOiAiYTY4N2U1YmY0ZmFiODJiMGVlNThkNDZlMDVjOTUzNTE0NWEyYzlhZmI0NThmNDNkNDJiNDVjYTBmZGNlMmE3MCIsCiAgICJzaWciOiAiMzA0NTAyMjEwMDg4YmQ0Yjg4ZTgzZjU4NmNlNTY4ZDI3ZDA0MjE0YzRhYjNmZDE4OTQxNzhlZjAxNTMwM2Q1NmFmYTkzOTIwNTMwMjIwNTUzOGViYWI5Mzg3NmFiYjkwNzVhZDc3MTE0YmZmMjhhMGQ3OWE3Y2MyMjliNTM0YTBjNWNlZDU1MjZiNDhlNyIKICB9LAogIHsKICAgImtleWlkIjogIjE4M2U2NGYzNzY3MGRjMTNjYTBkMjg5OTVhMzA1M2YzNzQwOTU0ZGRjZTQ0MzIxYTQxZTQ2NTM0Y2Y0NGU2MzIiLAogICAic2lnIjogIjMwNDUwMjIxMDBmMzViMDdlOTM4ZDQ5NDljYWY4MmU2OWU4NmNjOWRiM2I2OWI2ZGJjNjc0MGMxZjM0M2QwNjg5M2Y5OTZmYmViMDIyMDAxZTg0N2Q4MTYyNTlhOTZhNDllNDI3NzlhMjM1MGRhYjk3YjcxYzhhZTdlMjZiMjM4MGM2ZmE3ZjU4MTMxYjMiCiAgfQogXSwKICJzaWduZWQiOiB7CiAgIl90eXBlIjogInJvb3QiLAogICJjb25zaXN0ZW50X3NuYXBzaG90IjogdHJ1ZSwKICAiZXhwaXJlcyI6ICIyMDI2LTExLTIwVDEzOjU4OjE4WiIsCiAgImtleXMiOiB7CiAgICIwYzg3NDMyYzNiZjA5ZmQ5OTE4OWZkYzMyZmE1ZWFlZGY0ZTRhNWZhYzdiYWI3M2ZhMDRhMmUwZmM2NGFmNmY1IjogewogICAgImtleWlkX2hhc2hfYWxnb3JpdGhtcyI6IFsKICAgICAic2hhMjU2IiwKICAgICAic2hhNTEyIgogICAgXSwKICAgICJrZXl0eXBlIjogImVjZHNhIiwKICAgICJrZXl2YWwiOiB7CiAgICAgInB1YmxpYyI6ICItLS0tLUJFR0lOIFBVQkxJQyBLRVktLS0tLVxuTUZrd0V3WUhLb1pJemowQ0FRWUlLb1pJemowREFRY0RRZ0FFV1JpR3I1K2orM0o1U3NIK1p0cjVuRTJIMndPN1xuQlYrbk8zczkzZ0xjYTE4cVRPekhZMW9XeUFHRHlrTVNzR1RVQlN0OUQrQW4wS2ZLc0QybWZTTTQyUT09XG4tLS0tLUVORCBQVUJMSUMgS0VZLS0tLS1cbiIKICAgIH0sCiAgICAic2NoZW1lIjogImVjZHNhLXNoYTItbmlzdHAyNTYiLAogICAgIngtdHVmLW9uLWNpLW9ubGluZS11cmkiOiAiZ2Nwa21zOnByb2plY3RzL3NpZ3N0b3JlLXJvb3Qtc2lnbmluZy9sb2NhdGlvbnMvZ2xvYmFsL2tleVJpbmdzL3Jvb3QvY3J5cHRvS2V5cy90aW1lc3RhbXAvY3J5cHRvS2V5VmVyc2lvbnMvMSIKICAgfSwKICAgIjE4M2U2NGYzNzY3MGRjMTNjYTBkMjg5OTVhMzA1M2YzNzQwOTU0ZGRjZTQ0MzIxYTQxZTQ2NTM0Y2Y0NGU2MzIiOiB7CiAgICAia2V5dHlwZSI6ICJlY2RzYSIsCiAgICAia2V5dmFsIjogewogICAgICJwdWJsaWMiOiAiLS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS1cbk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRU14cFBPSkNJWjVvdEc0MTA2ZkdKc2VFUWkzVjlcbnBrTVlRNHV5VjlUajFNN1dIWEl5TEcramtmdnVHMGdsUTFKWmJSWlpCVjNnQVI0c29qZEdISVNlb3c9PVxuLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tXG4iCiAgICB9LAogICAgInNjaGVtZSI6ICJlY2RzYS1zaGEyLW5pc3RwMjU2IiwKICAgICJ4LXR1Zi1vbi1jaS1rZXlvd25lciI6ICJAbGFuY2UiCiAgIH0sCiAgICIyMmY0Y2FlYzZkOGU2Zjk1NTVhZjY2YjNkNGMzY2IwNmEzYmIyM2ZkYzdlMzljOTE2YzYxZjQ2MmU2ZjUyYjA2IjogewogICAgImtleWlkX2hhc2hfYWxnb3JpdGhtcyI6IFsKICAgICAic2hhMjU2IiwKICAgICAic2hhNTEyIgogICAgXSwKICAgICJrZXl0eXBlIjogImVjZHNhIiwKICAgICJrZXl2YWwiOiB7CiAgICAgInB1YmxpYyI6ICItLS0tLUJFR0lOIFBVQkxJQyBLRVktLS0tLVxuTUZrd0V3WUhLb1pJemowQ0FRWUlLb1pJemowREFRY0RRZ0FFekJ6Vk9tSENQb2pNVkxTSTM2NFdpaVY4TlByRFxuNklnUnhWbGlza3ovdit5M0pFUjVtY1ZHY09ObGlEY1dNQzVKMmxmSG1qUE5QaGI0SDd4bThMemZTQT09XG4tLS0tLUVORCBQVUJMSUMgS0VZLS0tLS1cbiIKICAgIH0sCiAgICAic2NoZW1lIjogImVjZHNhLXNoYTItbmlzdHAyNTYiLAogICAgIngtdHVmLW9uLWNpLWtleW93bmVyIjogIkBzYW50aWFnb3RvcnJlcyIKICAgfSwKICAgIjYxNjQzODM4MTI1YjQ0MGI0MGRiNjk0MmY1Y2I1YTMxYzBkYzA0MzY4MzE2ZWIyYWFhNThiOTU5MDRhNTgyMjIiOiB7CiAgICAia2V5aWRfaGFzaF9hbGdvcml0aG1zIjogWwogICAgICJzaGEyNTYiLAogICAgICJzaGE1MTIiCiAgICBdLAogICAgImtleXR5cGUiOiAiZWNkc2EiLAogICAgImtleXZhbCI6IHsKICAgICAicHVibGljIjogIi0tLS0tQkVHSU4gUFVCTElDIEtFWS0tLS0tXG5NRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUVpbmlrU3NBUW1Za05lSDVlWXEvQ25JekxhYWNPXG54bFNhYXdRRE93cUt5L3RDcXhxNXh4UFNKYzIxSzRXSWhzOUd5T2tLZnp1ZVkzR0lMemNNSlo0Y1d3PT1cbi0tLS0tRU5EIFBVQkxJQyBLRVktLS0tLVxuIgogICAgfSwKICAgICJzY2hlbWUiOiAiZWNkc2Etc2hhMi1uaXN0cDI1NiIsCiAgICAieC10dWYtb24tY2kta2V5b3duZXIiOiAiQGJvYmNhbGxhd2F5IgogICB9LAogICAiYTY4N2U1YmY0ZmFiODJiMGVlNThkNDZlMDVjOTUzNTE0NWEyYzlhZmI0NThmNDNkNDJiNDVjYTBmZGNlMmE3MCI6IHsKICAgICJrZXlpZF9oYXNoX2FsZ29yaXRobXMiOiBbCiAgICAgInNoYTI1NiIsCiAgICAgInNoYTUxMiIKICAgIF0sCiAgICAia2V5dHlwZSI6ICJlY2RzYSIsCiAgICAia2V5dmFsIjogewogICAgICJwdWJsaWMiOiAiLS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS1cbk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRTBnaHJoOTJMdzFZcjNpZEdWNVdxQ3RNREI4Q3hcbitEOGhkQzR3MlpMTklwbFZSb1ZHTHNrWWEzZ2hlTXlPamlKOGtQaTE1YVEyLy83UCtvajdVdkpQR3c9PVxuLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tXG4iCiAgICB9LAogICAgInNjaGVtZSI6ICJlY2RzYS1zaGEyLW5pc3RwMjU2IiwKICAgICJ4LXR1Zi1vbi1jaS1rZXlvd25lciI6ICJAam9zaHVhZ2wiCiAgIH0sCiAgICJlNzFhNTRkNTQzODM1YmE4NmFkYWQ5NDYwMzc5Yzc2NDFmYjg3MjZkMTY0ZWE3NjY4MDFhMWM1MjJhYmE3ZWEyIjogewogICAgImtleWlkX2hhc2hfYWxnb3JpdGhtcyI6IFsKICAgICAic2hhMjU2IiwKICAgICAic2hhNTEyIgogICAgXSwKICAgICJrZXl0eXBlIjogImVjZHNhIiwKICAgICJrZXl2YWwiOiB7CiAgICAgInB1YmxpYyI6ICItLS0tLUJFR0lOIFBVQkxJQyBLRVktLS0tLVxuTUZrd0V3WUhLb1pJemowQ0FRWUlLb1pJemowREFRY0RRZ0FFRVhzejNTWlhGYjhqTVY0Mmo2cEpseWpialI4S1xuTjNCd29jZXhxNkxNSWI1cXNXS09RdkxOMTZOVWVmTGM0SHN3T291bVJzVlZhYWpTcFFTNmZvYmtSdz09XG4tLS0tLUVORCBQVUJMSUMgS0VZLS0tLS1cbiIKICAgIH0sCiAgICAic2NoZW1lIjogImVjZHNhLXNoYTItbmlzdHAyNTYiLAogICAgIngtdHVmLW9uLWNpLWtleW93bmVyIjogIkBtbm02NzgiCiAgIH0KICB9LAogICJyb2xlcyI6IHsKICAgInJvb3QiOiB7CiAgICAia2V5aWRzIjogWwogICAgICJlNzFhNTRkNTQzODM1YmE4NmFkYWQ5NDYwMzc5Yzc2NDFmYjg3MjZkMTY0ZWE3NjY4MDFhMWM1MjJhYmE3ZWEyIiwKICAgICAiMjJmNGNhZWM2ZDhlNmY5NTU1YWY2NmIzZDRjM2NiMDZhM2JiMjNmZGM3ZTM5YzkxNmM2MWY0NjJlNmY1MmIwNiIsCiAgICAgIjYxNjQzODM4MTI1YjQ0MGI0MGRiNjk0MmY1Y2I1YTMxYzBkYzA0MzY4MzE2ZWIyYWFhNThiOTU5MDRhNTgyMjIiLAogICAgICJhNjg3ZTViZjRmYWI4MmIwZWU1OGQ0NmUwNWM5NTM1MTQ1YTJjOWFmYjQ1OGY0M2Q0MmI0NWNhMGZkY2UyYTcwIiwKICAgICAiMTgzZTY0ZjM3NjcwZGMxM2NhMGQyODk5NWEzMDUzZjM3NDA5NTRkZGNlNDQzMjFhNDFlNDY1MzRjZjQ0ZTYzMiIKICAgIF0sCiAgICAidGhyZXNob2xkIjogMwogICB9LAogICAic25hcHNob3QiOiB7CiAgICAia2V5aWRzIjogWwogICAgICIwYzg3NDMyYzNiZjA5ZmQ5OTE4OWZkYzMyZmE1ZWFlZGY0ZTRhNWZhYzdiYWI3M2ZhMDRhMmUwZmM2NGFmNmY1IgogICAgXSwKICAgICJ0aHJlc2hvbGQiOiAxLAogICAgIngtdHVmLW9uLWNpLWV4cGlyeS1wZXJpb2QiOiAzNjUwLAogICAgIngtdHVmLW9uLWNpLXNpZ25pbmctcGVyaW9kIjogMzY1CiAgIH0sCiAgICJ0YXJnZXRzIjogewogICAgImtleWlkcyI6IFsKICAgICAiZTcxYTU0ZDU0MzgzNWJhODZhZGFkOTQ2MDM3OWM3NjQxZmI4NzI2ZDE2NGVhNzY2ODAxYTFjNTIyYWJhN2VhMiIsCiAgICAgIjIyZjRjYWVjNmQ4ZTZmOTU1NWFmNjZiM2Q0YzNjYjA2YTNiYjIzZmRjN2UzOWM5MTZjNjFmNDYyZTZmNTJiMDYiLAogICAgICI2MTY0MzgzODEyNWI0NDBiNDBkYjY5NDJmNWNiNWEzMWMwZGMwNDM2ODMxNmViMmFhYTU4Yjk1OTA0YTU4MjIyIiwKICAgICAiYTY4N2U1YmY0ZmFiODJiMGVlNThkNDZlMDVjOTUzNTE0NWEyYzlhZmI0NThmNDNkNDJiNDVjYTBmZGNlMmE3MCIsCiAgICAgIjE4M2U2NGYzNzY3MGRjMTNjYTBkMjg5OTVhMzA1M2YzNzQwOTU0ZGRjZTQ0MzIxYTQxZTQ2NTM0Y2Y0NGU2MzIiCiAgICBdLAogICAgInRocmVzaG9sZCI6IDMKICAgfSwKICAgInRpbWVzdGFtcCI6IHsKICAgICJrZXlpZHMiOiBbCiAgICAgIjBjODc0MzJjM2JmMDlmZDk5MTg5ZmRjMzJmYTVlYWVkZjRlNGE1ZmFjN2JhYjczZmEwNGEyZTBmYzY0YWY2ZjUiCiAgICBdLAogICAgInRocmVzaG9sZCI6IDEsCiAgICAieC10dWYtb24tY2ktZXhwaXJ5LXBlcmlvZCI6IDcsCiAgICAieC10dWYtb24tY2ktc2lnbmluZy1wZXJpb2QiOiA2CiAgIH0KICB9LAogICJzcGVjX3ZlcnNpb24iOiAiMS4wIiwKICAidmVyc2lvbiI6IDE1LAogICJ4LXR1Zi1vbi1jaS1leHBpcnktcGVyaW9kIjogMTk3LAogICJ4LXR1Zi1vbi1jaS1zaWduaW5nLXBlcmlvZCI6IDQ2CiB9Cn0=",targets:{"trusted_root.json":"ewogICJtZWRpYVR5cGUiOiAiYXBwbGljYXRpb24vdm5kLmRldi5zaWdzdG9yZS50cnVzdGVkcm9vdCtqc29uO3ZlcnNpb249MC4xIiwKICAidGxvZ3MiOiBbCiAgICB7CiAgICAgICJiYXNlVXJsIjogImh0dHBzOi8vcmVrb3Iuc2lnc3RvcmUuZGV2IiwKICAgICAgImhhc2hBbGdvcml0aG0iOiAiU0hBMl8yNTYiLAogICAgICAicHVibGljS2V5IjogewogICAgICAgICJyYXdCeXRlcyI6ICJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUUyRzJZKzJ0YWJkVFY1QmNHaUJJeDBhOWZBRndya0JibUxTR3RrczRMM3FYNnlZWTB6dWZCbmhDOFVyL2l5NTVHaFdQLzlBL2JZMkxoQzMwTTkrUll0dz09IiwKICAgICAgICAia2V5RGV0YWlscyI6ICJQS0lYX0VDRFNBX1AyNTZfU0hBXzI1NiIsCiAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgInN0YXJ0IjogIjIwMjEtMDEtMTJUMTE6NTM6MjdaIgogICAgICAgIH0KICAgICAgfSwKICAgICAgImxvZ0lkIjogewogICAgICAgICJrZXlJZCI6ICJ3Tkk5YXRRR2x6K1ZXZk82TFJ5Z0g0UVVmWS84VzRSRndpVDVpNVdSZ0IwPSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgImJhc2VVcmwiOiAiaHR0cHM6Ly9sb2cyMDI1LTEucmVrb3Iuc2lnc3RvcmUuZGV2IiwKICAgICAgImhhc2hBbGdvcml0aG0iOiAiU0hBMl8yNTYiLAogICAgICAicHVibGljS2V5IjogewogICAgICAgICJyYXdCeXRlcyI6ICJNQ293QlFZREsyVndBeUVBdDhybHAxa25Hd2pmYmNYQVlQWUFrbjBYaUx6MXg4TzR0MFlrRWhpZTI0ND0iLAogICAgICAgICJrZXlEZXRhaWxzIjogIlBLSVhfRUQyNTUxOSIsCiAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgInN0YXJ0IjogIjIwMjUtMDktMjNUMDA6MDA6MDBaIgogICAgICAgIH0KICAgICAgfSwKICAgICAgImxvZ0lkIjogewogICAgICAgICJrZXlJZCI6ICJ6eEdaRlZ2ZDBGRW1qUjhXckZ3TWRjQUo5dnRhWS9RWGY0NFkxd1VlUDZBPSIKICAgICAgfQogICAgfQogIF0sCiAgImNlcnRpZmljYXRlQXV0aG9yaXRpZXMiOiBbCiAgICB7CiAgICAgICJzdWJqZWN0IjogewogICAgICAgICJvcmdhbml6YXRpb24iOiAic2lnc3RvcmUuZGV2IiwKICAgICAgICAiY29tbW9uTmFtZSI6ICJzaWdzdG9yZSIKICAgICAgfSwKICAgICAgInVyaSI6ICJodHRwczovL2Z1bGNpby5zaWdzdG9yZS5kZXYiLAogICAgICAiY2VydENoYWluIjogewogICAgICAgICJjZXJ0aWZpY2F0ZXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyYXdCeXRlcyI6ICJNSUlCK0RDQ0FYNmdBd0lCQWdJVE5Wa0Rab0Npb2ZQRHN5N2RmbTZnZUxidWh6QUtCZ2dxaGtqT1BRUURBekFxTVJVd0V3WURWUVFLRXd4emFXZHpkRzl5WlM1a1pYWXhFVEFQQmdOVkJBTVRDSE5wWjNOMGIzSmxNQjRYRFRJeE1ETXdOekF6TWpBeU9Wb1hEVE14TURJeU16QXpNakF5T1Zvd0tqRVZNQk1HQTFVRUNoTU1jMmxuYzNSdmNtVXVaR1YyTVJFd0R3WURWUVFERXdoemFXZHpkRzl5WlRCMk1CQUdCeXFHU000OUFnRUdCU3VCQkFBaUEySUFCTFN5QTdJaTVrK3BOTzhaRVdZMHlsZW1XRG93T2tOYTNrTCtHWkU1WjVHV2VoTDkvQTliUk5BM1JicnNaNWkwSmNhc3RhUkw3U3A1ZnAvakQ1ZHhxYy9VZFRWbmx2UzE2YW4rMllmc3dlL1F1TG9sUlVDcmNPRTIrMmlBNSt0emQ2Tm1NR1F3RGdZRFZSMFBBUUgvQkFRREFnRUdNQklHQTFVZEV3RUIvd1FJTUFZQkFmOENBUUV3SFFZRFZSME9CQllFRk1qRkhRQkJtaVFwTWxFazZ3MnVTdTFLQnRQc01COEdBMVVkSXdRWU1CYUFGTWpGSFFCQm1pUXBNbEVrNncydVN1MUtCdFBzTUFvR0NDcUdTTTQ5QkFNREEyZ0FNR1VDTUg4bGlXSmZNdWk2dlhYQmhqRGdZNE13c2xtTi9USnhWZS84M1dyRm9td21OZjA1NnkxWDQ4RjljNG0zYTNvelhBSXhBS2pSYXk1L2FqL2pzS0tHSWttUWF0akk4dXVwSHIvK0N4RnZhSldtcFlxTmtMREdSVSs5b3J6aDVoSTJScmN1YVE9PSIKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0sCiAgICAgICJ2YWxpZEZvciI6IHsKICAgICAgICAic3RhcnQiOiAiMjAyMS0wMy0wN1QwMzoyMDoyOVoiLAogICAgICAgICJlbmQiOiAiMjAyMi0xMi0zMVQyMzo1OTo1OS45OTlaIgogICAgICB9CiAgICB9LAogICAgewogICAgICAic3ViamVjdCI6IHsKICAgICAgICAib3JnYW5pemF0aW9uIjogInNpZ3N0b3JlLmRldiIsCiAgICAgICAgImNvbW1vbk5hbWUiOiAic2lnc3RvcmUiCiAgICAgIH0sCiAgICAgICJ1cmkiOiAiaHR0cHM6Ly9mdWxjaW8uc2lnc3RvcmUuZGV2IiwKICAgICAgImNlcnRDaGFpbiI6IHsKICAgICAgICAiY2VydGlmaWNhdGVzIjogWwogICAgICAgICAgewogICAgICAgICAgICAicmF3Qnl0ZXMiOiAiTUlJQ0dqQ0NBYUdnQXdJQkFnSVVBTG5WaVZmblUwYnJKYXNtUmtIcm4vVW5mYVF3Q2dZSUtvWkl6ajBFQXdNd0tqRVZNQk1HQTFVRUNoTU1jMmxuYzNSdmNtVXVaR1YyTVJFd0R3WURWUVFERXdoemFXZHpkRzl5WlRBZUZ3MHlNakEwTVRNeU1EQTJNVFZhRncwek1URXdNRFV4TXpVMk5UaGFNRGN4RlRBVEJnTlZCQW9UREhOcFozTjBiM0psTG1SbGRqRWVNQndHQTFVRUF4TVZjMmxuYzNSdmNtVXRhVzUwWlhKdFpXUnBZWFJsTUhZd0VBWUhLb1pJemowQ0FRWUZLNEVFQUNJRFlnQUU4UlZTL3lzSCtOT3Z1RFp5UEladGlsZ1VGOU5sYXJZcEFkOUhQMXZCQkgxVTVDVjc3TFNTN3MwWmlING5FN0h2N3B0UzZMdnZSL1NUazc5OExWZ016TGxKNEhlSWZGM3RIU2FleExjWXBTQVNyMWtTME4vUmdCSnovOWpXQ2lYbm8zc3dlVEFPQmdOVkhROEJBZjhFQkFNQ0FRWXdFd1lEVlIwbEJBd3dDZ1lJS3dZQkJRVUhBd013RWdZRFZSMFRBUUgvQkFnd0JnRUIvd0lCQURBZEJnTlZIUTRFRmdRVTM5UHB6MVlrRVpiNXFOanBLRldpeGk0WVpEOHdId1lEVlIwakJCZ3dGb0FVV01BZVg1RkZwV2FwZXN5UW9aTWkwQ3JGeGZvd0NnWUlLb1pJemowRUF3TURad0F3WkFJd1BDc1FLNERZaVpZRFBJYURpNUhGS25meFh4NkFTU1ZtRVJmc3luWUJpWDJYNlNKUm5aVTg0LzlEWmRuRnZ2eG1BakJPdDZRcEJsYzRKLzBEeHZrVENxcGNsdnppTDZCQ0NQbmpkbElCM1B1M0J4c1BteWdVWTdJaTJ6YmRDZGxpaW93PSIKICAgICAgICAgIH0sCiAgICAgICAgICB7CiAgICAgICAgICAgICJyYXdCeXRlcyI6ICJNSUlCOXpDQ0FYeWdBd0lCQWdJVUFMWk5BUEZkeEhQd2plRGxvRHd5WUNoQU8vNHdDZ1lJS29aSXpqMEVBd013S2pFVk1CTUdBMVVFQ2hNTWMybG5jM1J2Y21VdVpHVjJNUkV3RHdZRFZRUURFd2h6YVdkemRHOXlaVEFlRncweU1URXdNRGN4TXpVMk5UbGFGdzB6TVRFd01EVXhNelUyTlRoYU1Db3hGVEFUQmdOVkJBb1RESE5wWjNOMGIzSmxMbVJsZGpFUk1BOEdBMVVFQXhNSWMybG5jM1J2Y21Vd2RqQVFCZ2NxaGtqT1BRSUJCZ1VyZ1FRQUlnTmlBQVQ3WGVGVDRyYjNQUUd3UzRJYWp0TGszL09sbnBnYW5nYUJjbFlwc1lCcjVpKzR5bkIwN2NlYjNMUDBPSU9aZHhleFg2OWM1aVZ1eUpSUStIejA1eWkrVUYzdUJXQWxIcGlTNXNoMCtIMkdIRTdTWHJrMUVDNW0xVHIxOUw5Z2c5MmpZekJoTUE0R0ExVWREd0VCL3dRRUF3SUJCakFQQmdOVkhSTUJBZjhFQlRBREFRSC9NQjBHQTFVZERnUVdCQlJZd0I1ZmtVV2xacWw2ekpDaGt5TFFLc1hGK2pBZkJnTlZIU01FR0RBV2dCUll3QjVma1VXbFpxbDZ6SkNoa3lMUUtzWEYrakFLQmdncWhrak9QUVFEQXdOcEFEQm1BakVBajFuSGVYWnArMTNOV0JOYStFRHNEUDhHMVdXZzF0Q01XUC9XSFBxcGFWbzBqaHN3ZU5GWmdTczBlRTd3WUk0cUFqRUEyV0I5b3Q5OHNJa29GM3ZaWWRkMy9WdFdCNWI5VE5NZWE3SXgvc3RKNVRmY0xMZUFCTEU0Qk5KT3NRNHZuQkhKIgogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfSwKICAgICAgInZhbGlkRm9yIjogewogICAgICAgICJzdGFydCI6ICIyMDIyLTA0LTEzVDIwOjA2OjE1WiIKICAgICAgfQogICAgfQogIF0sCiAgImN0bG9ncyI6IFsKICAgIHsKICAgICAgImJhc2VVcmwiOiAiaHR0cHM6Ly9jdGZlLnNpZ3N0b3JlLmRldi90ZXN0IiwKICAgICAgImhhc2hBbGdvcml0aG0iOiAiU0hBMl8yNTYiLAogICAgICAicHVibGljS2V5IjogewogICAgICAgICJyYXdCeXRlcyI6ICJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUViZndSK1JKdWRYc2NnUkJScEtYMVhGRHkzUHl1ZER4ei9TZm5SaTFmVDhla3BmQmQyTzF1b3o3anIzWjhuS3p4QTY5RVVRK2VGQ0ZJM3pldWJQV1U3dz09IiwKICAgICAgICAia2V5RGV0YWlscyI6ICJQS0lYX0VDRFNBX1AyNTZfU0hBXzI1NiIsCiAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgInN0YXJ0IjogIjIwMjEtMDMtMTRUMDA6MDA6MDBaIiwKICAgICAgICAgICJlbmQiOiAiMjAyMi0xMC0zMVQyMzo1OTo1OS45OTlaIgogICAgICAgIH0KICAgICAgfSwKICAgICAgImxvZ0lkIjogewogICAgICAgICJrZXlJZCI6ICJDR0NTOENoUy8yaEYwZEZySjRTY1JXY1lyQlk5d3pqU2JlYThJZ1kyYjNJPSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgImJhc2VVcmwiOiAiaHR0cHM6Ly9jdGZlLnNpZ3N0b3JlLmRldi8yMDIyIiwKICAgICAgImhhc2hBbGdvcml0aG0iOiAiU0hBMl8yNTYiLAogICAgICAicHVibGljS2V5IjogewogICAgICAgICJyYXdCeXRlcyI6ICJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUVpUFNsRmkwQ21GVGZFakNVcUY5SHVDRWNZWE5LQWFZYWxJSm1CWjh5eWV6UGpUcWh4cktCcE1uYW9jVnRMSkJJMWVNM3VYblF6UUdBSmRKNGdzOUZ5dz09IiwKICAgICAgICAia2V5RGV0YWlscyI6ICJQS0lYX0VDRFNBX1AyNTZfU0hBXzI1NiIsCiAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgInN0YXJ0IjogIjIwMjItMTAtMjBUMDA6MDA6MDBaIgogICAgICAgIH0KICAgICAgfSwKICAgICAgImxvZ0lkIjogewogICAgICAgICJrZXlJZCI6ICIzVDB3YXNiSEVUSmpHUjRjbVdjM0FxSktYcmplUEszL2g0cHlnQzhwN280PSIKICAgICAgfQogICAgfQogIF0sCiAgInRpbWVzdGFtcEF1dGhvcml0aWVzIjogWwogICAgewogICAgICAic3ViamVjdCI6IHsKICAgICAgICAib3JnYW5pemF0aW9uIjogInNpZ3N0b3JlLmRldiIsCiAgICAgICAgImNvbW1vbk5hbWUiOiAic2lnc3RvcmUtdHNhLXNlbGZzaWduZWQiCiAgICAgIH0sCiAgICAgICJ1cmkiOiAiaHR0cHM6Ly90aW1lc3RhbXAuc2lnc3RvcmUuZGV2L2FwaS92MS90aW1lc3RhbXAiLAogICAgICAiY2VydENoYWluIjogewogICAgICAgICJjZXJ0aWZpY2F0ZXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyYXdCeXRlcyI6ICJNSUlDRURDQ0FaYWdBd0lCQWdJVU9oTlVMd3lRWWU2OHdVTXZ5NHFPaXlvaml3d3dDZ1lJS29aSXpqMEVBd013T1RFVk1CTUdBMVVFQ2hNTWMybG5jM1J2Y21VdVpHVjJNU0F3SGdZRFZRUURFeGR6YVdkemRHOXlaUzEwYzJFdGMyVnNabk5wWjI1bFpEQWVGdzB5TlRBME1EZ3dOalU1TkROYUZ3MHpOVEEwTURZd05qVTVORE5hTUM0eEZUQVRCZ05WQkFvVERITnBaM04wYjNKbExtUmxkakVWTUJNR0ExVUVBeE1NYzJsbmMzUnZjbVV0ZEhOaE1IWXdFQVlIS29aSXpqMENBUVlGSzRFRUFDSURZZ0FFNHJhMlo4aEtOaWcyVDlrRmpDQVRvR0czMGpreStXUXYzQnpMK21LdmgxU0tOUi9Vd3V3c2ZOQ2c0c3J5b1lBZDhFNmlzb3ZWQTNNNGFvTmRtOVFEaTUwWjhuVEV5dnFnZkRQdFRJd1hJdGZpVy9BRmYxVjd1d2tia0FvajB4eGNvMm93YURBT0JnTlZIUThCQWY4RUJBTUNCNEF3SFFZRFZSME9CQllFRkluOWVVT0h6OUJsUnNNQ1JzY3NjMXQ5dE9zRE1COEdBMVVkSXdRWU1CYUFGSmpzQWU5L3UxSC8xSlVlYjRxSW1GTUhpYzYvTUJZR0ExVWRKUUVCL3dRTU1Bb0dDQ3NHQVFVRkJ3TUlNQW9HQ0NxR1NNNDlCQU1EQTJnQU1HVUNNRHRwc1YvNkthTzBxeUYvVU1zWDJhU1VYS1FGZG9HVHB0UUdjMGZ0cTFjc3VsSFBHRzZkc215TU5kM0pCK0czRVFJeEFPYWp2QmNqcEptS2I0TnYrMlRhb2o4VWM1K2I2aWg2RlhDQ0tyYVNxdXBlMDd6cXN3TWNYSlRlMWNFeHZIdnZsdz09IgogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgInJhd0J5dGVzIjogIk1JSUI5ekNDQVh5Z0F3SUJBZ0lVVjdmMEdMRE9vRXpJaDhMWFNXODBPSmlVcDE0d0NnWUlLb1pJemowRUF3TXdPVEVWTUJNR0ExVUVDaE1NYzJsbmMzUnZjbVV1WkdWMk1TQXdIZ1lEVlFRREV4ZHphV2R6ZEc5eVpTMTBjMkV0YzJWc1puTnBaMjVsWkRBZUZ3MHlOVEEwTURnd05qVTVORE5hRncwek5UQTBNRFl3TmpVNU5ETmFNRGt4RlRBVEJnTlZCQW9UREhOcFozTjBiM0psTG1SbGRqRWdNQjRHQTFVRUF4TVhjMmxuYzNSdmNtVXRkSE5oTFhObGJHWnphV2R1WldRd2RqQVFCZ2NxaGtqT1BRSUJCZ1VyZ1FRQUlnTmlBQVFVUU50ZlJUL291M1lBVGE2d0Iva0tUZTcwY2ZKd3lSSUJvdk1udDhSY0pwaC9DT0U4MnV5UzZGbXBwTExMMVZCUEdjUGZwUVBZSk5Yeld3aThpY3doS1E2Vy9RZTJoM29lYkJiMkZIcHdOSkRxbytUTWFDL3RkZmt2L0VsSkI3MmpSVEJETUE0R0ExVWREd0VCL3dRRUF3SUJCakFTQmdOVkhSTUJBZjhFQ0RBR0FRSC9BZ0VBTUIwR0ExVWREZ1FXQkJTWTdBSHZmN3RSLzlTVkhtK0tpSmhUQjRuT3Z6QUtCZ2dxaGtqT1BRUURBd05wQURCbUFqRUF3R0VHcmZHWlIxY2VuMVI4L0RUVk1JOTQzTHNzWm1KUnREcC9pN1NmR0htR1JQNmdSYnVqOXZPSzNiNjdaMFFRQWpFQXVUMkg2NzNMUUVhSFRjeVFTWnJrcDRtWDdXd2ttRitzVmJrWVk1bVhOK1JNSDEzS1VFSEhPcUFTYWVtWVdLL0UiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9LAogICAgICAidmFsaWRGb3IiOiB7CiAgICAgICAgInN0YXJ0IjogIjIwMjUtMDctMDRUMDA6MDA6MDBaIgogICAgICB9CiAgICB9CiAgXQp9Cg==","registry.npmjs.org%2Fkeys.json":"ewogICAgImtleXMiOiBbCiAgICAgICAgewogICAgICAgICAgICAia2V5SWQiOiAiU0hBMjU2OmpsM2J3c3d1ODBQampva0NnaDBvMnc1YzJVNExoUUFFNTdnajljejFrekEiLAogICAgICAgICAgICAia2V5VXNhZ2UiOiAibnBtOnNpZ25hdHVyZXMiLAogICAgICAgICAgICAicHVibGljS2V5IjogewogICAgICAgICAgICAgICAgInJhd0J5dGVzIjogIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRTFPbGIzek1BRkZ4WEtIaUlrUU81Y0ozWWhsNWk2VVBwK0lodXRlQkpidUhjQTVVb2dLbzBFV3RsV3dXNktTYUtvVE5FWUw3SmxDUWlWbmtoQmt0VWdnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIxOTk5LTAxLTAxVDAwOjAwOjAwLjAwMFoiLAogICAgICAgICAgICAgICAgICAgICJlbmQiOiAiMjAyNS0wMS0yOVQwMDowMDowMC4wMDBaIgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAgICJrZXlJZCI6ICJTSEEyNTY6amwzYndzd3U4MFBqam9rQ2doMG8ydzVjMlU0TGhRQUU1N2dqOWN6MWt6QSIsCiAgICAgICAgICAgICJrZXlVc2FnZSI6ICJucG06YXR0ZXN0YXRpb25zIiwKICAgICAgICAgICAgInB1YmxpY0tleSI6IHsKICAgICAgICAgICAgICAgICJyYXdCeXRlcyI6ICJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUUxT2xiM3pNQUZGeFhLSGlJa1FPNWNKM1lobDVpNlVQcCtJaHV0ZUJKYnVIY0E1VW9nS28wRVd0bFd3VzZLU2FLb1RORVlMN0psQ1FpVm5raEJrdFVnZz09IiwKICAgICAgICAgICAgICAgICJrZXlEZXRhaWxzIjogIlBLSVhfRUNEU0FfUDI1Nl9TSEFfMjU2IiwKICAgICAgICAgICAgICAgICJ2YWxpZEZvciI6IHsKICAgICAgICAgICAgICAgICAgICAic3RhcnQiOiAiMjAyMi0xMi0wMVQwMDowMDowMC4wMDBaIiwKICAgICAgICAgICAgICAgICAgICAiZW5kIjogIjIwMjUtMDEtMjlUMDA6MDA6MDAuMDAwWiIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgewogICAgICAgICAgICAia2V5SWQiOiAiU0hBMjU2OkRoUTh3UjVBUEJ2RkhMRi8rVGMrQVl2UE9kVHBjSURxT2h4c0JIUndDN1UiLAogICAgICAgICAgICAia2V5VXNhZ2UiOiAibnBtOnNpZ25hdHVyZXMiLAogICAgICAgICAgICAicHVibGljS2V5IjogewogICAgICAgICAgICAgICAgInJhd0J5dGVzIjogIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRVk2WWE3VysrN2FVUHp2TVRyZXpINlljeDNjK0hPS1lDY05HeWJKWlNDSnEvZmQ3UWE4dXVBS3RkSWtVUXRRaUVLRVJoQW1FNWxNTUpoUDhPa0RPYTJnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIyMDI1LTAxLTEzVDAwOjAwOjAwLjAwMFoiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgIHsKICAgICAgICAgICAgImtleUlkIjogIlNIQTI1NjpEaFE4d1I1QVBCdkZITEYvK1RjK0FZdlBPZFRwY0lEcU9oeHNCSFJ3QzdVIiwKICAgICAgICAgICAgImtleVVzYWdlIjogIm5wbTphdHRlc3RhdGlvbnMiLAogICAgICAgICAgICAicHVibGljS2V5IjogewogICAgICAgICAgICAgICAgInJhd0J5dGVzIjogIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRVk2WWE3VysrN2FVUHp2TVRyZXpINlljeDNjK0hPS1lDY05HeWJKWlNDSnEvZmQ3UWE4dXVBS3RkSWtVUXRRaUVLRVJoQW1FNWxNTUpoUDhPa0RPYTJnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIyMDI1LTAxLTEzVDAwOjAwOjAwLjAwMFoiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICBdCn0K"}}}});var WFe=m(vC=>{"use strict";var jFe=vC&&vC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vC,"__esModule",{value:!0});vC.TUFClient=void 0;var Eh=jFe(require("fs")),FB=jFe(require("path")),VHt=GFe(),zHt=V7(),$Fe=HFe(),$Ht=VFe(),H7="targets",G7=class{static{o(this,"TUFClient")}updater;constructor(e){let r=new URL(e.mirrorURL),n=encodeURIComponent(r.host+r.pathname.replace(/\/$/,"")),i=FB.default.join(e.cachePath,n);jHt(i),WHt({cachePath:i,mirrorURL:e.mirrorURL,tufRootPath:e.rootPath,forceInit:e.forceInit}),this.updater=JHt({mirrorURL:e.mirrorURL,cachePath:i,forceCache:e.forceCache,retry:e.retry,timeout:e.timeout})}async refresh(){return this.updater.refresh()}getTarget(e){return(0,$Ht.readTarget)(this.updater,e)}};vC.TUFClient=G7;function jHt(t){let e=FB.default.join(t,H7);Eh.default.existsSync(t)||Eh.default.mkdirSync(t,{recursive:!0}),Eh.default.existsSync(e)||Eh.default.mkdirSync(e)}o(jHt,"initTufCache");function WHt({cachePath:t,mirrorURL:e,tufRootPath:r,forceInit:n}){let i=FB.default.join(t,"root.json");if(!Eh.default.existsSync(i)||n)if(r)Eh.default.copyFileSync(r,i);else{let a=zFe()[e];if(!a)throw new zHt.TUFError({code:"TUF_INIT_CACHE_ERROR",message:`No root.json found for mirror: ${e}`});Eh.default.writeFileSync(i,Buffer.from(a["root.json"],"base64")),Object.entries(a.targets).forEach(([c,l])=>{Eh.default.writeFileSync(FB.default.join(t,H7,c),Buffer.from(l,"base64"))})}}o(WHt,"seedCache");function JHt(t){let e={fetchTimeout:t.timeout,fetchRetry:t.retry,userAgent:`${encodeURIComponent($Fe.name)}/${$Fe.version}`};return new VHt.Updater({metadataBaseUrl:t.mirrorURL,targetBaseUrl:`${t.mirrorURL}/targets`,metadataDir:t.cachePath,targetDir:FB.default.join(t.cachePath,H7),forceCache:t.forceCache,config:e})}o(JHt,"initClient")});var V7=m(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.TUFError=vd.DEFAULT_MIRROR_URL=void 0;vd.getTrustedRoot=nVt;vd.initTUF=iVt;var YHt=uC(),KHt=wLe(),XHt=WFe();vd.DEFAULT_MIRROR_URL="https://tuf-repo-cdn.sigstore.dev";var ZHt="sigstore-js",eVt={retries:2},tVt=5e3,rVt="trusted_root.json";async function nVt(t={}){let r=await JFe(t).getTarget(rVt);return YHt.TrustedRoot.fromJSON(JSON.parse(r))}o(nVt,"getTrustedRoot");async function iVt(t={}){let e=JFe(t);return e.refresh().then(()=>e)}o(iVt,"initTUF");function JFe(t){return new XHt.TUFClient({cachePath:t.cachePath||(0,KHt.appDataPath)(ZHt),rootPath:t.rootPath,mirrorURL:t.mirrorURL||vd.DEFAULT_MIRROR_URL,retry:t.retry??eVt,timeout:t.timeout??tVt,forceCache:t.forceCache??!1,forceInit:t.forceInit??t.force??!1})}o(JFe,"createClient");var sVt=q7();Object.defineProperty(vd,"TUFError",{enumerable:!0,get:o(function(){return sVt.TUFError},"get")})});var MB=m(hO=>{"use strict";Object.defineProperty(hO,"__esModule",{value:!0});hO.ByteStream=void 0;var z7=class extends Error{static{o(this,"StreamError")}},$7=class t{static{o(this,"ByteStream")}static BLOCK_SIZE=1024;buf;view;start=0;constructor(e){e?(this.buf=e,this.view=Buffer.from(e)):(this.buf=Buffer.alloc(0),this.view=Buffer.from(this.buf))}get buffer(){return this.view.subarray(0,this.start)}get length(){return this.view.byteLength}get position(){return this.start}seek(e){this.start=e}slice(e,r){let n=e+r;if(n>this.length)throw new z7("request past end of buffer");return this.view.subarray(e,n)}appendChar(e){this.ensureCapacity(1),this.view[this.start]=e,this.start+=1}appendUint16(e){this.ensureCapacity(2);let r=new Uint16Array([e]),n=new Uint8Array(r.buffer);this.view[this.start]=n[1],this.view[this.start+1]=n[0],this.start+=2}appendUint24(e){this.ensureCapacity(3);let r=new Uint32Array([e]),n=new Uint8Array(r.buffer);this.view[this.start]=n[2],this.view[this.start+1]=n[1],this.view[this.start+2]=n[0],this.start+=3}appendView(e){this.ensureCapacity(e.length),this.view.set(e,this.start),this.start+=e.length}getBlock(e){if(e<=0)return Buffer.alloc(0);if(this.start+e>this.view.length)throw new Error("request past end of buffer");let r=this.view.subarray(this.start,this.start+e);return this.start+=e,r}getUint8(){return this.getBlock(1)[0]}getUint16(){let e=this.getBlock(2);return e[0]<<8|e[1]}ensureCapacity(e){if(this.start+e>this.view.byteLength){let r=t.BLOCK_SIZE+(e>t.BLOCK_SIZE?e:0);this.realloc(this.view.byteLength+r)}}realloc(e){let r=Buffer.alloc(e),n=Buffer.from(r);n.set(this.view),this.buf=r,this.view=n}};hO.ByteStream=$7});var UB=m(NC=>{"use strict";Object.defineProperty(NC,"__esModule",{value:!0});NC.ASN1TypeError=NC.ASN1ParseError=void 0;var j7=class extends Error{static{o(this,"ASN1ParseError")}};NC.ASN1ParseError=j7;var W7=class extends Error{static{o(this,"ASN1TypeError")}};NC.ASN1TypeError=W7});var YFe=m(AO=>{"use strict";Object.defineProperty(AO,"__esModule",{value:!0});AO.decodeLength=oVt;AO.encodeLength=aVt;var pO=UB();function oVt(t){let e=t.getUint8();if((e&128)===0)return e;let r=e&127;if(r>6)throw new pO.ASN1ParseError("length exceeds 6 byte limit");let n=0;for(let i=0;i<r;i++){let s=t.getUint8();if(i===0&&s===0)throw new pO.ASN1ParseError("non-minimal length encoding");n=n*256+s}if(n===0)throw new pO.ASN1ParseError("indefinite length encoding not supported");if(n<128)throw new pO.ASN1ParseError("non-minimal length encoding");return n}o(oVt,"decodeLength");function aVt(t){if(t<128)return Buffer.from([t]);let e=BigInt(t),r=[];for(;e>0n;)r.unshift(Number(e&255n)),e=e>>8n;return Buffer.from([128|r.length,...r])}o(aVt,"encodeLength")});var XFe=m(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.parseInteger=uVt;Ch.parseStringASCII=KFe;Ch.parseTime=dVt;Ch.parseOID=fVt;Ch.parseBoolean=hVt;Ch.parseBitString=pVt;var J7=UB(),cVt=/^(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3})?Z$/,lVt=/^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3})?Z$/;function uVt(t){let e=0,r=t.length,n=t[e],i=n>127,s=i?255:0;for(;n==s&&++e<r;)n=t[e];if(r-e===0)return BigInt(i?-1:0);n=i?n-256:n;let c=BigInt(n);for(let l=e+1;l<r;++l)c=c*BigInt(256)+BigInt(t[l]);return c}o(uVt,"parseInteger");function KFe(t){return t.toString("ascii")}o(KFe,"parseStringASCII");function dVt(t,e){let r=KFe(t),n=e?cVt.exec(r):lVt.exec(r);if(!n)throw new Error("invalid time");if(e){let i=Number(n[1]);i+=i>=50?1900:2e3,n[1]=i.toString()}return new Date(`${n[1]}-${n[2]}-${n[3]}T${n[4]}:${n[5]}:${n[6]}Z`)}o(dVt,"parseTime");function fVt(t){let e=0,r=t.length,n=t[e++],i=Math.floor(n/40),s=n%40,a=`${i}.${s}`,c=0n;for(;e<r;++e)n=t[e],c=(c<<7n)+BigInt(n&127),(n&128)===0&&(a+=`.${c}`,c=0n);return a}o(fVt,"parseOID");function hVt(t){if(t.length!==1)throw new J7.ASN1ParseError("invalid boolean");switch(t[0]){case 0:return!1;case 255:return!0;default:throw new J7.ASN1ParseError("invalid boolean")}}o(hVt,"parseBoolean");function pVt(t){let e=t[0];if(e>7)throw new J7.ASN1ParseError("invalid bit string");let r=1,n=t.length,i=[];for(let s=r;s<n;++s){let a=t[s],c=s===n-1?e:0;for(let l=7;l>=c;--l)i.push(a>>l&1)}return i}o(pVt,"parseBitString")});var eMe=m(mO=>{"use strict";Object.defineProperty(mO,"__esModule",{value:!0});mO.ASN1Tag=void 0;var ZFe=UB(),XA={BOOLEAN:1,INTEGER:2,BIT_STRING:3,OCTET_STRING:4,OBJECT_IDENTIFIER:6,SEQUENCE:16,SET:17,PRINTABLE_STRING:19,UTC_TIME:23,GENERALIZED_TIME:24},Y7={UNIVERSAL:0,APPLICATION:1,CONTEXT_SPECIFIC:2,PRIVATE:3},K7=class{static{o(this,"ASN1Tag")}number;constructed;class;constructor(e){if(this.number=e&31,this.constructed=(e&32)===32,this.class=e>>6,this.number===31)throw new ZFe.ASN1ParseError("long form tags not supported");if(this.class===Y7.UNIVERSAL&&this.number===0)throw new ZFe.ASN1ParseError("unsupported tag 0x00")}isUniversal(){return this.class===Y7.UNIVERSAL}isContextSpecific(e){let r=this.class===Y7.CONTEXT_SPECIFIC;return e!==void 0?r&&this.number===e:r}isBoolean(){return this.isUniversal()&&this.number===XA.BOOLEAN}isInteger(){return this.isUniversal()&&this.number===XA.INTEGER}isBitString(){return this.isUniversal()&&this.number===XA.BIT_STRING}isOctetString(){return this.isUniversal()&&this.number===XA.OCTET_STRING}isOID(){return this.isUniversal()&&this.number===XA.OBJECT_IDENTIFIER}isUTCTime(){return this.isUniversal()&&this.number===XA.UTC_TIME}isGeneralizedTime(){return this.isUniversal()&&this.number===XA.GENERALIZED_TIME}toDER(){return this.number|(this.constructed?32:0)|this.class<<6}};mO.ASN1Tag=K7});var iMe=m(yO=>{"use strict";Object.defineProperty(yO,"__esModule",{value:!0});yO.ASN1Obj=void 0;var X7=MB(),Nd=UB(),rMe=YFe(),_C=XFe(),AVt=eMe(),gO=class{static{o(this,"ASN1Obj")}tag;subs;value;constructor(e,r,n){this.tag=e,this.value=r,this.subs=n}static parseBuffer(e){let r=new X7.ByteStream(e),n=nMe(r);if(r.position!==r.length)throw new Nd.ASN1ParseError("invalid trailing data");return n}toDER(){let e=new X7.ByteStream;if(this.subs.length>0)for(let i of this.subs)e.appendView(i.toDER());else e.appendView(this.value);let r=e.buffer,n=new X7.ByteStream;return n.appendChar(this.tag.toDER()),n.appendView((0,rMe.encodeLength)(r.length)),n.appendView(r),n.buffer}toBoolean(){if(!this.tag.isBoolean())throw new Nd.ASN1TypeError("not a boolean");return(0,_C.parseBoolean)(this.value)}toInteger(){if(!this.tag.isInteger())throw new Nd.ASN1TypeError("not an integer");return(0,_C.parseInteger)(this.value)}toOID(){if(!this.tag.isOID())throw new Nd.ASN1TypeError("not an OID");return(0,_C.parseOID)(this.value)}toDate(){switch(!0){case this.tag.isUTCTime():return(0,_C.parseTime)(this.value,!0);case this.tag.isGeneralizedTime():return(0,_C.parseTime)(this.value,!1);default:throw new Nd.ASN1TypeError("not a date")}}toBitString(){if(!this.tag.isBitString())throw new Nd.ASN1TypeError("not a bit string");return(0,_C.parseBitString)(this.value)}};yO.ASN1Obj=gO;var mVt=100;function nMe(t,e=0){if(e>mVt)throw new Nd.ASN1ParseError("maximum nesting depth exceeded");let r=new AVt.ASN1Tag(t.getUint8()),n=(0,rMe.decodeLength)(t),i=t.slice(t.position,n),s=t.position,a=[];if(r.constructed)a=tMe(t,n,e);else if(r.isOctetString())try{a=tMe(t,n,e)}catch{}return a.length===0&&t.seek(s+n),new gO(r,i,a)}o(nMe,"parseStream");function tMe(t,e,r){let n=t.position+e;if(n>t.length)throw new Nd.ASN1ParseError("invalid length");let i=[];for(;t.position<n;)i.push(nMe(t,r+1));if(t.position!==n)throw new Nd.ASN1ParseError("invalid length");return i}o(tMe,"collectSubs")});var CO=m(EO=>{"use strict";Object.defineProperty(EO,"__esModule",{value:!0});EO.ASN1Obj=void 0;var gVt=iMe();Object.defineProperty(EO,"ASN1Obj",{enumerable:!0,get:o(function(){return gVt.ASN1Obj},"get")})});var RC=m(bh=>{"use strict";var yVt=bh&&bh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bh,"__esModule",{value:!0});bh.createPublicKey=EVt;bh.digest=CVt;bh.verify=bVt;bh.bufferEqual=wVt;var TC=yVt(require("crypto"));function EVt(t,e="spki"){return typeof t=="string"?t.startsWith("-----")?TC.default.createPublicKey(t):TC.default.createPublicKey({key:Buffer.from(t,"base64"),format:"der",type:e}):TC.default.createPublicKey({key:t,format:"der",type:e})}o(EVt,"createPublicKey");function CVt(t,...e){let r=TC.default.createHash(t);for(let n of e)r.update(n);return r.digest()}o(CVt,"digest");function bVt(t,e,r,n){try{return TC.default.verify(n,t,e,r)}catch{return!1}}o(bVt,"verify");function wVt(t,e){try{return TC.default.timingSafeEqual(t,e)}catch{return!1}}o(wVt,"bufferEqual")});var sMe=m(Z7=>{"use strict";Object.defineProperty(Z7,"__esModule",{value:!0});Z7.preAuthEncoding=SVt;var IVt="DSSEv1";function SVt(t,e){let r=Buffer.from(t,"utf-8");return Buffer.concat([Buffer.from(`${IVt} ${r.length} `,"ascii"),r,Buffer.from(` ${e.length} `,"ascii"),e])}o(SVt,"preAuthEncoding")});var cMe=m(bO=>{"use strict";Object.defineProperty(bO,"__esModule",{value:!0});bO.base64Encode=BVt;bO.base64Decode=xVt;var oMe="base64",aMe="utf-8";function BVt(t){return Buffer.from(t,aMe).toString(oMe)}o(BVt,"base64Encode");function xVt(t){return Buffer.from(t,oMe).toString(aMe)}o(xVt,"base64Decode")});var lMe=m(tX=>{"use strict";Object.defineProperty(tX,"__esModule",{value:!0});tX.canonicalize=eX;function eX(t){let e="";if(t===null||typeof t!="object"||t.toJSON!=null)e+=JSON.stringify(t);else if(Array.isArray(t)){e+="[";let r=!0;t.forEach(n=>{r||(e+=","),r=!1,e+=eX(n)}),e+="]"}else{e+="{";let r=!0;Object.keys(t).sort().forEach(n=>{r||(e+=","),r=!1,e+=JSON.stringify(n),e+=":",e+=eX(t[n])}),e+="}"}return e}o(eX,"canonicalize")});var rX=m(wO=>{"use strict";Object.defineProperty(wO,"__esModule",{value:!0});wO.toDER=_Vt;wO.fromDER=TVt;var vVt=/-----BEGIN (.*)-----/,NVt=/-----END (.*)-----/;function _Vt(t){let e="";return t.split(`
|
|
`).forEach(r=>{r.match(vVt)||r.match(NVt)||(e+=r)}),Buffer.from(e,"base64")}o(_Vt,"toDER");function TVt(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
|
|
`).concat(`
|
|
`)}o(TVt,"fromDER")});var IO=m(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});wh.SHA2_HASH_ALGOS=wh.RSA_SIGNATURE_ALGOS=wh.ECDSA_SIGNATURE_ALGOS=void 0;wh.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};wh.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};wh.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var iX=m(SO=>{"use strict";Object.defineProperty(SO,"__esModule",{value:!0});SO.RFC3161TimestampVerificationError=void 0;var nX=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};SO.RFC3161TimestampVerificationError=nX});var dMe=m(su=>{"use strict";var RVt=su&&su.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),DVt=su&&su.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),QVt=su&&su.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&RVt(r,e,n[i]);return DVt(r,e),r}})();Object.defineProperty(su,"__esModule",{value:!0});su.TSTInfo=void 0;var uMe=QVt(RC()),PVt=IO(),kVt=iX(),sX=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return PVt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=uMe.digest(this.messageImprintHashAlgorithm,e);if(!uMe.bufferEqual(r,this.messageImprintHashedMessage))throw new kVt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};su.TSTInfo=sX});var hMe=m(ou=>{"use strict";var OVt=ou&&ou.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),LVt=ou&&ou.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FVt=ou&&ou.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&OVt(r,e,n[i]);return LVt(r,e),r}})();Object.defineProperty(ou,"__esModule",{value:!0});ou.RFC3161Timestamp=void 0;var MVt=CO(),oX=FVt(RC()),fMe=IO(),qB=iX(),UVt=dMe(),qVt="1.2.840.113549.1.7.2",GVt="1.2.840.113549.1.9.16.1.4",HVt="1.2.840.113549.1.9.4",aX=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=MVt.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return fMe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return fMe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new UVt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new qB.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==qVt)throw new qB.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==GVt)throw new qB.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=oX.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!oX.bufferEqual(e,r))throw new qB.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toDER();if(r[0]=49,!oX.verify(r,e,this.signatureValue,this.signatureAlgorithm))throw new qB.RFC3161TimestampVerificationError("signature verification failed")}get pkiStatusInfoObj(){return this.root.subs[0]}get timeStampTokenObj(){return this.root.subs[1]}get contentTypeObj(){return this.timeStampTokenObj.subs[0]}get signedDataObj(){return this.timeStampTokenObj.subs.find(r=>r.tag.isContextSpecific(0)).subs[0]}get encapContentInfoObj(){return this.signedDataObj.subs[2]}get signerInfosObj(){let e=this.signedDataObj;return e.subs[e.subs.length-1]}get signerInfoObj(){return this.signerInfosObj.subs[0]}get eContentTypeObj(){return this.encapContentInfoObj.subs[0]}get eContentObj(){return this.encapContentInfoObj.subs[1]}get signedAttrsObj(){return this.signerInfoObj.subs.find(r=>r.tag.isContextSpecific(0))}get messageDigestAttributeObj(){return this.signedAttrsObj.subs.find(r=>r.subs[0].tag.isOID()&&r.subs[0].toOID()===HVt)}get signerSidObj(){return this.signerInfoObj.subs[1]}get signerDigestAlgorithmObj(){return this.signerInfoObj.subs[2]}get signatureAlgorithmObj(){return this.signerInfoObj.subs[4]}get signatureValueObj(){return this.signerInfoObj.subs[5]}};ou.RFC3161Timestamp=aX});var pMe=m(BO=>{"use strict";Object.defineProperty(BO,"__esModule",{value:!0});BO.RFC3161Timestamp=void 0;var VVt=hMe();Object.defineProperty(BO,"RFC3161Timestamp",{enumerable:!0,get:o(function(){return VVt.RFC3161Timestamp},"get")})});var mMe=m(au=>{"use strict";var zVt=au&&au.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$Vt=au&&au.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jVt=au&&au.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&zVt(r,e,n[i]);return $Vt(r,e),r}})();Object.defineProperty(au,"__esModule",{value:!0});au.SignedCertificateTimestamp=void 0;var WVt=jVt(RC()),AMe=MB(),cX=class t{static{o(this,"SignedCertificateTimestamp")}version;logID;timestamp;extensions;hashAlgorithm;signatureAlgorithm;signature;constructor(e){this.version=e.version,this.logID=e.logID,this.timestamp=e.timestamp,this.extensions=e.extensions,this.hashAlgorithm=e.hashAlgorithm,this.signatureAlgorithm=e.signatureAlgorithm,this.signature=e.signature}get datetime(){return new Date(Number(this.timestamp.readBigInt64BE()))}get algorithm(){switch(this.hashAlgorithm){case 0:return"none";case 1:return"md5";case 2:return"sha1";case 3:return"sha224";case 4:return"sha256";case 5:return"sha384";case 6:return"sha512";default:return"unknown"}}verify(e,r){let n=new AMe.ByteStream;return n.appendChar(this.version),n.appendChar(0),n.appendView(this.timestamp),n.appendUint16(1),n.appendView(e),n.appendUint16(this.extensions.byteLength),this.extensions.byteLength>0&&n.appendView(this.extensions),WVt.verify(n.buffer,r,this.signature,this.algorithm)}static parse(e){let r=new AMe.ByteStream(e),n=r.getUint8(),i=r.getBlock(32),s=r.getBlock(8),a=r.getUint16(),c=r.getBlock(a),l=r.getUint8(),u=r.getUint8(),d=r.getUint16(),f=r.getBlock(d);if(r.position!==e.length)throw new Error("SCT buffer length mismatch");return new t({version:n,logID:i,timestamp:s,extensions:c,hashAlgorithm:l,signatureAlgorithm:u,signature:f})}};au.SignedCertificateTimestamp=cX});var AX=m(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.X509SCTExtension=Mi.X509SubjectKeyIDExtension=Mi.X509AuthorityKeyIDExtension=Mi.X509SubjectAlternativeNameExtension=Mi.X509KeyUsageExtension=Mi.X509BasicConstraintsExtension=Mi.X509Extension=void 0;var JVt=MB(),YVt=mMe(),_d=class{static{o(this,"X509Extension")}root;constructor(e){this.root=e}get oid(){return this.root.subs[0].toOID()}get critical(){return this.root.subs.length===3?this.root.subs[1].toBoolean():!1}get value(){return this.extnValueObj.value}get valueObj(){return this.extnValueObj}get extnValueObj(){return this.root.subs[this.root.subs.length-1]}};Mi.X509Extension=_d;var lX=class extends _d{static{o(this,"X509BasicConstraintsExtension")}get isCA(){return this.sequence.subs[0]?.toBoolean()??!1}get pathLenConstraint(){return this.sequence.subs.length>1?this.sequence.subs[1].toInteger():void 0}get sequence(){return this.extnValueObj.subs[0]}};Mi.X509BasicConstraintsExtension=lX;var uX=class extends _d{static{o(this,"X509KeyUsageExtension")}get digitalSignature(){return this.bitString[0]===1}get keyCertSign(){return this.bitString[5]===1}get crlSign(){return this.bitString[6]===1}get bitString(){return this.extnValueObj.subs[0].toBitString()}};Mi.X509KeyUsageExtension=uX;var dX=class extends _d{static{o(this,"X509SubjectAlternativeNameExtension")}get rfc822Name(){return this.findGeneralName(1)?.value.toString("ascii")}get uri(){return this.findGeneralName(6)?.value.toString("ascii")}otherName(e){let r=this.findGeneralName(0);return r===void 0||r.subs[0].toOID()!==e?void 0:r.subs[1].subs[0].value.toString("ascii")}findGeneralName(e){return this.generalNames.find(r=>r.tag.isContextSpecific(e))}get generalNames(){return this.extnValueObj.subs[0].subs}};Mi.X509SubjectAlternativeNameExtension=dX;var fX=class extends _d{static{o(this,"X509AuthorityKeyIDExtension")}get keyIdentifier(){return this.findSequenceMember(0)?.value}findSequenceMember(e){return this.sequence.subs.find(r=>r.tag.isContextSpecific(e))}get sequence(){return this.extnValueObj.subs[0]}};Mi.X509AuthorityKeyIDExtension=fX;var hX=class extends _d{static{o(this,"X509SubjectKeyIDExtension")}get keyIdentifier(){return this.extnValueObj.subs[0].value}};Mi.X509SubjectKeyIDExtension=hX;var pX=class extends _d{static{o(this,"X509SCTExtension")}constructor(e){super(e)}get signedCertificateTimestamps(){let e=this.extnValueObj.subs[0].value,r=new JVt.ByteStream(e),n=r.getUint16()+2,i=[];for(;r.position<n;){let s=r.getUint16(),a=r.getBlock(s);i.push(YVt.SignedCertificateTimestamp.parse(a))}if(r.position!==n)throw new Error("SCT list length does not match actual length");return i}};Mi.X509SCTExtension=pX});var EMe=m(Do=>{"use strict";var KVt=Do&&Do.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),XVt=Do&&Do.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yMe=Do&&Do.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&KVt(r,e,n[i]);return XVt(r,e),r}})();Object.defineProperty(Do,"__esModule",{value:!0});Do.X509Certificate=Do.EXTENSION_OID_SCT=void 0;var ZVt=CO(),gMe=yMe(RC()),mX=IO(),e4t=yMe(rX()),ZA=AX(),t4t="2.5.29.14",r4t="2.5.29.15",n4t="2.5.29.17",i4t="2.5.29.19",s4t="2.5.29.35";Do.EXTENSION_OID_SCT="1.3.6.1.4.1.11129.2.4.2";var gX=class t{static{o(this,"X509Certificate")}root;constructor(e){this.root=e}static parse(e){let r=typeof e=="string"?e4t.toDER(e):e,n=ZVt.ASN1Obj.parseBuffer(r);return new t(n)}get tbsCertificate(){return this.tbsCertificateObj}get version(){return`v${(this.versionObj.subs[0].toInteger()+BigInt(1)).toString()}`}get serialNumber(){return this.serialNumberObj.value}get notBefore(){return this.validityObj.subs[0].toDate()}get notAfter(){return this.validityObj.subs[1].toDate()}get issuer(){return this.issuerObj.value}get subject(){return this.subjectObj.value}get publicKey(){return this.subjectPublicKeyInfoObj.toDER()}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return mX.RSA_SIGNATURE_ALGOS[e]?mX.RSA_SIGNATURE_ALGOS[e]:mX.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value.subarray(1)}get subjectAltName(){let e=this.extSubjectAltName;return e?.uri||e?.rfc822Name}get extensions(){return this.extensionsObj?.subs[0]?.subs||[]}get extKeyUsage(){let e=this.findExtension(r4t);return e?new ZA.X509KeyUsageExtension(e):void 0}get extBasicConstraints(){let e=this.findExtension(i4t);return e?new ZA.X509BasicConstraintsExtension(e):void 0}get extSubjectAltName(){let e=this.findExtension(n4t);return e?new ZA.X509SubjectAlternativeNameExtension(e):void 0}get extAuthorityKeyID(){let e=this.findExtension(s4t);return e?new ZA.X509AuthorityKeyIDExtension(e):void 0}get extSubjectKeyID(){let e=this.findExtension(t4t);return e?new ZA.X509SubjectKeyIDExtension(e):void 0}get extSCT(){let e=this.findExtension(Do.EXTENSION_OID_SCT);return e?new ZA.X509SCTExtension(e):void 0}get isCA(){let e=this.extBasicConstraints?.isCA||!1;return this.extKeyUsage?e&&this.extKeyUsage.keyCertSign:e}extension(e){let r=this.findExtension(e);return r?new ZA.X509Extension(r):void 0}verify(e){let r=e?.publicKey||this.publicKey,n=gMe.createPublicKey(r);return gMe.verify(this.tbsCertificate.toDER(),n,this.signatureValue,this.signatureAlgorithm)}validForDate(e){return this.notBefore<=e&&e<=this.notAfter}equals(e){return this.root.toDER().equals(e.root.toDER())}clone(){let e=this.root.toDER(),r=Buffer.alloc(e.length);return e.copy(r),t.parse(r)}findExtension(e){return this.extensions.find(r=>r.subs[0].toOID()===e)}get tbsCertificateObj(){return this.root.subs[0]}get signatureAlgorithmObj(){return this.root.subs[1]}get signatureValueObj(){return this.root.subs[2]}get versionObj(){return this.tbsCertificateObj.subs[0]}get serialNumberObj(){return this.tbsCertificateObj.subs[1]}get issuerObj(){return this.tbsCertificateObj.subs[3]}get validityObj(){return this.tbsCertificateObj.subs[4]}get subjectObj(){return this.tbsCertificateObj.subs[5]}get subjectPublicKeyInfoObj(){return this.tbsCertificateObj.subs[6]}get extensionsObj(){return this.tbsCertificateObj.subs.find(e=>e.tag.isContextSpecific(3))}};Do.X509Certificate=gX});var bMe=m(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.X509SCTExtension=Ih.X509Certificate=Ih.EXTENSION_OID_SCT=void 0;var CMe=EMe();Object.defineProperty(Ih,"EXTENSION_OID_SCT",{enumerable:!0,get:o(function(){return CMe.EXTENSION_OID_SCT},"get")});Object.defineProperty(Ih,"X509Certificate",{enumerable:!0,get:o(function(){return CMe.X509Certificate},"get")});var o4t=AX();Object.defineProperty(Ih,"X509SCTExtension",{enumerable:!0,get:o(function(){return o4t.X509SCTExtension},"get")})});var Sc=m(Gt=>{"use strict";var a4t=Gt&&Gt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),c4t=Gt&&Gt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),GB=Gt&&Gt.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&a4t(r,e,n[i]);return c4t(r,e),r}})();Object.defineProperty(Gt,"__esModule",{value:!0});Gt.X509SCTExtension=Gt.X509Certificate=Gt.EXTENSION_OID_SCT=Gt.ByteStream=Gt.RFC3161Timestamp=Gt.pem=Gt.json=Gt.encoding=Gt.dsse=Gt.crypto=Gt.ASN1Obj=void 0;var l4t=CO();Object.defineProperty(Gt,"ASN1Obj",{enumerable:!0,get:o(function(){return l4t.ASN1Obj},"get")});Gt.crypto=GB(RC());Gt.dsse=GB(sMe());Gt.encoding=GB(cMe());Gt.json=GB(lMe());Gt.pem=GB(rX());var u4t=pMe();Object.defineProperty(Gt,"RFC3161Timestamp",{enumerable:!0,get:o(function(){return u4t.RFC3161Timestamp},"get")});var d4t=MB();Object.defineProperty(Gt,"ByteStream",{enumerable:!0,get:o(function(){return d4t.ByteStream},"get")});var yX=bMe();Object.defineProperty(Gt,"EXTENSION_OID_SCT",{enumerable:!0,get:o(function(){return yX.EXTENSION_OID_SCT},"get")});Object.defineProperty(Gt,"X509Certificate",{enumerable:!0,get:o(function(){return yX.X509Certificate},"get")});Object.defineProperty(Gt,"X509SCTExtension",{enumerable:!0,get:o(function(){return yX.X509SCTExtension},"get")})});var wMe=m(xO=>{"use strict";Object.defineProperty(xO,"__esModule",{value:!0});xO.DSSESignatureContent=void 0;var em=Sc(),EX=class{static{o(this,"DSSESignatureContent")}env;constructor(e){this.env=e}compareDigest(e){return em.crypto.bufferEqual(e,em.crypto.digest("sha256",this.env.payload))}compareSignedDigest(e){return em.crypto.bufferEqual(e,em.crypto.digest("sha256",this.preAuthEncoding))}compareSignature(e){return em.crypto.bufferEqual(e,this.signature)}verifySignature(e){return em.crypto.verify(this.preAuthEncoding,e,this.signature)}get signature(){return this.env.signatures.length>0?this.env.signatures[0].sig:Buffer.from("")}get preAuthEncoding(){return em.dsse.preAuthEncoding(this.env.payloadType,this.env.payload)}};xO.DSSESignatureContent=EX});var IMe=m(vO=>{"use strict";Object.defineProperty(vO,"__esModule",{value:!0});vO.MessageSignatureContent=void 0;var CX=Sc(),DC=uC(),f4t={[DC.HashAlgorithm.HASH_ALGORITHM_UNSPECIFIED]:"sha256",[DC.HashAlgorithm.SHA2_256]:"sha256",[DC.HashAlgorithm.SHA2_384]:"sha384",[DC.HashAlgorithm.SHA2_512]:"sha512",[DC.HashAlgorithm.SHA3_256]:"sha3-256",[DC.HashAlgorithm.SHA3_384]:"sha3-384"},bX=class{static{o(this,"MessageSignatureContent")}signature;messageDigest;artifact;hashAlgorithm;constructor(e,r){this.signature=e.signature,this.messageDigest=e.messageDigest.digest,this.artifact=r,this.hashAlgorithm=f4t[e.messageDigest.algorithm]??"sha256"}compareSignature(e){return CX.crypto.bufferEqual(e,this.signature)}compareDigest(e){return CX.crypto.bufferEqual(e,this.messageDigest)}compareSignedDigest(e){return this.compareDigest(e)}verifySignature(e){return CX.crypto.verify(this.artifact,e,this.signature,this.hashAlgorithm)}};vO.MessageSignatureContent=bX});var BMe=m(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0});NO.toSignedEntity=A4t;NO.signatureContent=SMe;var wX=Sc(),h4t=wMe(),p4t=IMe();function A4t(t,e){let{tlogEntries:r,timestampVerificationData:n}=t.verificationMaterial,i=[];for(let s of r)s.integratedTime&&s.integratedTime!=="0"&&i.push({$case:"transparency-log",tlogEntry:s});for(let s of n?.rfc3161Timestamps??[])i.push({$case:"timestamp-authority",timestamp:wX.RFC3161Timestamp.parse(Buffer.from(s.signedTimestamp))});return{signature:SMe(t,e),key:m4t(t),tlogEntries:r,timestamps:i}}o(A4t,"toSignedEntity");function SMe(t,e){switch(t.content.$case){case"dsseEnvelope":return new h4t.DSSESignatureContent(t.content.dsseEnvelope);case"messageSignature":return new p4t.MessageSignatureContent(t.content.messageSignature,e)}}o(SMe,"signatureContent");function m4t(t){switch(t.verificationMaterial.content.$case){case"publicKey":return{$case:"public-key",hint:t.verificationMaterial.content.publicKey.hint};case"x509CertificateChain":return{$case:"certificate",certificate:wX.X509Certificate.parse(Buffer.from(t.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes))};case"certificate":return{$case:"certificate",certificate:wX.X509Certificate.parse(Buffer.from(t.verificationMaterial.content.certificate.rawBytes))}}}o(m4t,"key")});var Ui=m(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});QC.PolicyError=QC.VerificationError=void 0;var _O=class extends Error{static{o(this,"BaseError")}code;cause;constructor({code:e,message:r,cause:n}){super(r),this.code=e,this.cause=n,this.name=this.constructor.name}},IX=class extends _O{static{o(this,"VerificationError")}};QC.VerificationError=IX;var SX=class extends _O{static{o(this,"PolicyError")}};QC.PolicyError=SX});var xMe=m(TO=>{"use strict";Object.defineProperty(TO,"__esModule",{value:!0});TO.filterCertAuthorities=g4t;TO.filterTLogAuthorities=y4t;function g4t(t,e){return t.filter(r=>r.validFor.start<=e&&r.validFor.end>=e)}o(g4t,"filterCertAuthorities");function y4t(t,e){return t.filter(r=>e.logID&&!r.logID.equals(e.logID)?!1:r.validFor.start<=e.targetDate&&e.targetDate<=r.validFor.end)}o(y4t,"filterTLogAuthorities")});var PC=m(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});tm.filterTLogAuthorities=tm.filterCertAuthorities=void 0;tm.toTrustMaterial=C4t;var BX=Sc(),HB=uC(),E4t=Ui(),xX=new Date(0),vX=new Date(864e13),_Me=xMe();Object.defineProperty(tm,"filterCertAuthorities",{enumerable:!0,get:o(function(){return _Me.filterCertAuthorities},"get")});Object.defineProperty(tm,"filterTLogAuthorities",{enumerable:!0,get:o(function(){return _Me.filterTLogAuthorities},"get")});function C4t(t,e){let r=typeof e=="function"?e:b4t(e);return{certificateAuthorities:t.certificateAuthorities.map(NMe),timestampAuthorities:t.timestampAuthorities.map(NMe),tlogs:t.tlogs.map(vMe),ctlogs:t.ctlogs.map(vMe),publicKey:r}}o(C4t,"toTrustMaterial");function vMe(t){let e=t.publicKey.keyDetails,r=e===HB.PublicKeyDetails.PKCS1_RSA_PKCS1V5||e===HB.PublicKeyDetails.PKIX_RSA_PKCS1V5||e===HB.PublicKeyDetails.PKIX_RSA_PKCS1V15_2048_SHA256||e===HB.PublicKeyDetails.PKIX_RSA_PKCS1V15_3072_SHA256||e===HB.PublicKeyDetails.PKIX_RSA_PKCS1V15_4096_SHA256?"pkcs1":"spki";return{baseURL:t.baseUrl,logID:t.checkpointKeyId?t.checkpointKeyId.keyId:t.logId.keyId,publicKey:BX.crypto.createPublicKey(t.publicKey.rawBytes,r),validFor:{start:t.publicKey.validFor?.start||xX,end:t.publicKey.validFor?.end||vX}}}o(vMe,"createTLogAuthority");function NMe(t){return{certChain:t.certChain.certificates.map(e=>BX.X509Certificate.parse(Buffer.from(e.rawBytes))),validFor:{start:t.validFor?.start||xX,end:t.validFor?.end||vX}}}o(NMe,"createCertAuthority");function b4t(t){return e=>{let r=(t||{})[e];if(!r)throw new E4t.VerificationError({code:"PUBLIC_KEY_ERROR",message:`key not found: ${e}`});return{publicKey:BX.crypto.createPublicKey(r.rawBytes),validFor:o(n=>(r.validFor?.start||xX)<=n&&(r.validFor?.end||vX)>=n,"validFor")}}}o(b4t,"keyLocator")});var NX=m(VB=>{"use strict";Object.defineProperty(VB,"__esModule",{value:!0});VB.CertificateChainVerifier=void 0;VB.verifyCertificateChain=I4t;var Sh=Ui(),w4t=PC();function I4t(t,e,r){let n=(0,w4t.filterCertAuthorities)(r,t),i;for(let s of n)try{return new RO({trustedCerts:s.certChain,untrustedCert:e,timestamp:t}).verify()}catch(a){i=a}throw new Sh.VerificationError({code:"CERTIFICATE_ERROR",message:"Failed to verify certificate chain",cause:i})}o(I4t,"verifyCertificateChain");var RO=class{static{o(this,"CertificateChainVerifier")}untrustedCert;trustedCerts;localCerts;timestamp;constructor(e){this.untrustedCert=e.untrustedCert,this.trustedCerts=e.trustedCerts,this.localCerts=S4t([...e.trustedCerts,e.untrustedCert]),this.timestamp=e.timestamp}verify(){let e=this.sort();if(this.checkPath(e),!e.every(n=>n.validForDate(this.timestamp)))throw new Sh.VerificationError({code:"CERTIFICATE_ERROR",message:"certificate is not valid or expired at the specified date"});return e}sort(){let e=this.untrustedCert,r=this.buildPaths(e);if(r=r.filter(i=>i.some(s=>this.trustedCerts.includes(s))),r.length===0)throw new Sh.VerificationError({code:"CERTIFICATE_ERROR",message:"no trusted certificate path found"});let n=r.reduce((i,s)=>i.length<s.length?i:s);return[e,...n].slice(0,-1)}buildPaths(e){let r=[],n=this.findIssuer(e);if(n.length===0)throw new Sh.VerificationError({code:"CERTIFICATE_ERROR",message:"no valid certificate path found"});for(let i=0;i<n.length;i++){let s=n[i];if(s.equals(e)){r.push([e]);continue}let a=this.buildPaths(s);for(let c=0;c<a.length;c++)r.push([s,...a[c]])}return r}findIssuer(e){let r=[],n;return e.subject.equals(e.issuer)&&e.verify()?[e]:(e.extAuthorityKeyID&&(n=e.extAuthorityKeyID.keyIdentifier),this.localCerts.forEach(i=>{if(n&&i.extSubjectKeyID){i.extSubjectKeyID.keyIdentifier.equals(n)&&r.push(i);return}i.subject.equals(e.issuer)&&r.push(i)}),r=r.filter(i=>{try{return e.verify(i)}catch{return!1}}),r)}checkPath(e){if(e.length<1)throw new Sh.VerificationError({code:"CERTIFICATE_ERROR",message:"certificate chain must contain at least one certificate"});if(!e.slice(1).every(n=>n.isCA))throw new Sh.VerificationError({code:"CERTIFICATE_ERROR",message:"intermediate certificate is not a CA"});for(let n=e.length-2;n>=0;n--)if(!e[n].issuer.equals(e[n+1].subject))throw new Sh.VerificationError({code:"CERTIFICATE_ERROR",message:"incorrect certificate name chaining"});for(let n=0;n<e.length;n++){let i=e[n];if(i.extBasicConstraints?.isCA){let s=i.extBasicConstraints.pathLenConstraint;if(s!==void 0&&s<n-1)throw new Sh.VerificationError({code:"CERTIFICATE_ERROR",message:"path length constraint exceeded"})}}}};VB.CertificateChainVerifier=RO;function S4t(t){for(let e=0;e<t.length;e++)for(let r=e+1;r<t.length;r++)t[e].equals(t[r])&&(t.splice(r,1),r--);return t}o(S4t,"dedupeCertificates")});var TMe=m(_X=>{"use strict";Object.defineProperty(_X,"__esModule",{value:!0});_X.verifySCTs=v4t;var DO=Sc(),B4t=Ui(),x4t=PC();function v4t(t,e,r){let n,i=t.clone();for(let l=0;l<i.extensions.length;l++){let u=i.extensions[l];if(u.subs[0].toOID()===DO.EXTENSION_OID_SCT){n=new DO.X509SCTExtension(u),i.extensions.splice(l,1);break}}if(!n)return[];if(n.signedCertificateTimestamps.length===0)return[];let s=new DO.ByteStream,a=DO.crypto.digest("sha256",e.publicKey);s.appendView(a);let c=i.tbsCertificate.toDER();return s.appendUint24(c.length),s.appendView(c),n.signedCertificateTimestamps.map(l=>{if(!(0,x4t.filterTLogAuthorities)(r,{logID:l.logID,targetDate:l.datetime}).some(f=>l.verify(s.buffer,f.publicKey)))throw new B4t.VerificationError({code:"CERTIFICATE_ERROR",message:"SCT verification failed"});return l.logID})}o(v4t,"verifySCTs")});var RMe=m(QO=>{"use strict";Object.defineProperty(QO,"__esModule",{value:!0});QO.verifyPublicKey=P4t;QO.verifyCertificate=k4t;var N4t=Sc(),_4t=Ui(),T4t=NX(),R4t=TMe(),D4t="1.3.6.1.4.1.57264.1.1",Q4t="1.3.6.1.4.1.57264.1.8";function P4t(t,e,r){let n=r.publicKey(t);return e.forEach(i=>{if(!n.validFor(i))throw new _4t.VerificationError({code:"PUBLIC_KEY_ERROR",message:`Public key is not valid for timestamp: ${i.toISOString()}`})}),{key:n.publicKey}}o(P4t,"verifyPublicKey");function k4t(t,e,r){let n=[];return e.forEach(i=>{n=(0,T4t.verifyCertificateChain)(i,t,r.certificateAuthorities)}),{scts:(0,R4t.verifySCTs)(n[0],n[1],r.ctlogs),signer:O4t(n[0])}}o(k4t,"verifyCertificate");function O4t(t){let e,r=t.extension(Q4t);r?e=r.valueObj.subs?.[0]?.value.toString("ascii"):e=t.extension(D4t)?.value.toString("ascii");let n=t.extensions.map(s=>({oid:{id:s.subs[0].toOID().split(".").map(Number)},value:s.subs[s.subs.length-1].value})),i={extensions:{issuer:e},subjectAlternativeName:t.subjectAltName,oids:n};return{key:N4t.crypto.createPublicKey(t.publicKey),identity:i}}o(O4t,"getSigner")});var DMe=m(zB=>{"use strict";Object.defineProperty(zB,"__esModule",{value:!0});zB.verifySubjectAlternativeName=L4t;zB.verifyExtensions=F4t;zB.verifyOIDs=M4t;var TX=Ui();function L4t(t,e){if(e===void 0||!e.match(t))throw new TX.PolicyError({code:"UNTRUSTED_SIGNER_ERROR",message:`certificate identity error - expected ${t}, got ${e}`})}o(L4t,"verifySubjectAlternativeName");function F4t(t,e={}){let r;for(r in t)if(e[r]!==t[r])throw new TX.PolicyError({code:"UNTRUSTED_SIGNER_ERROR",message:`invalid certificate extension - expected ${r}=${t[r]}, got ${r}=${e[r]}`})}o(F4t,"verifyExtensions");function M4t(t,e=[]){for(let r of t)if(!e.find(i=>U4t(r.oid?.id,i.oid?.id)&&r.value.equals(i.value))){let i=r.oid?.id.join(".")??"<unknown>";throw new TX.PolicyError({code:"UNTRUSTED_SIGNER_ERROR",message:`invalid certificate extension - missing OID ${i}`})}}o(M4t,"verifyOIDs");function U4t(t,e){return t===void 0||e===void 0?!1:t.length===e.length&&t.every((r,n)=>r===e[n])}o(U4t,"oidEquals")});var PMe=m(DX=>{"use strict";Object.defineProperty(DX,"__esModule",{value:!0});DX.verifyRFC3161Timestamp=H4t;var RX=Sc(),QMe=Ui(),q4t=NX(),G4t=PC();function H4t(t,e,r){let n=t.signingTime;if(r=(0,G4t.filterCertAuthorities)(r,n),r=z4t(r,{serialNumber:t.signerSerialNumber,issuer:t.signerIssuer}),!r.some(s=>{try{return V4t(t,e,s),!0}catch{return!1}}))throw new QMe.VerificationError({code:"TIMESTAMP_ERROR",message:"timestamp could not be verified"})}o(H4t,"verifyRFC3161Timestamp");function V4t(t,e,r){let[n,...i]=r.certChain,s=RX.crypto.createPublicKey(n.publicKey),a=t.signingTime;try{new q4t.CertificateChainVerifier({untrustedCert:n,trustedCerts:i,timestamp:a}).verify()}catch{throw new QMe.VerificationError({code:"TIMESTAMP_ERROR",message:"invalid certificate chain"})}t.verify(e,s)}o(V4t,"verifyTimestampForCA");function z4t(t,e){return t.filter(r=>r.certChain.length>0&&RX.crypto.bufferEqual(r.certChain[0].serialNumber,e.serialNumber)&&RX.crypto.bufferEqual(r.certChain[0].issuer,e.issuer))}o(z4t,"filterCAsBySerialAndIssuer")});var kMe=m(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0});PO.getTSATimestamp=j4t;PO.getTLogTimestamp=W4t;var $4t=PMe();function j4t(t,e,r){return(0,$4t.verifyRFC3161Timestamp)(t,e,r),{type:"timestamp-authority",logID:t.signerSerialNumber,timestamp:t.signingTime}}o(j4t,"getTSATimestamp");function W4t(t){if(t.inclusionPromise)return{type:"transparency-log",logID:t.logId.keyId,timestamp:new Date(Number(t.integratedTime)*1e3)}}o(W4t,"getTLogTimestamp")});var OO=m(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.Signature=ka.Verifier=ka.PublicKey=void 0;var kO=Bd();ka.PublicKey={fromJSON(t){return{rawBytes:kC(t.rawBytes)?Buffer.from(OMe(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=LMe(t.rawBytes)),e}};ka.Verifier={fromJSON(t){return{verifier:kC(t.publicKey)?{$case:"publicKey",publicKey:ka.PublicKey.fromJSON(t.publicKey)}:kC(t.x509Certificate)?{$case:"x509Certificate",x509Certificate:kO.X509Certificate.fromJSON(t.x509Certificate)}:void 0,keyDetails:kC(t.keyDetails)?(0,kO.publicKeyDetailsFromJSON)(t.keyDetails):0}},toJSON(t){let e={};return t.verifier?.$case==="publicKey"?e.publicKey=ka.PublicKey.toJSON(t.verifier.publicKey):t.verifier?.$case==="x509Certificate"&&(e.x509Certificate=kO.X509Certificate.toJSON(t.verifier.x509Certificate)),t.keyDetails!==0&&(e.keyDetails=(0,kO.publicKeyDetailsToJSON)(t.keyDetails)),e}};ka.Signature={fromJSON(t){return{content:kC(t.content)?Buffer.from(OMe(t.content)):Buffer.alloc(0),verifier:kC(t.verifier)?ka.Verifier.fromJSON(t.verifier):void 0}},toJSON(t){let e={};return t.content.length!==0&&(e.content=LMe(t.content)),t.verifier!==void 0&&(e.verifier=ka.Verifier.toJSON(t.verifier)),e}};function OMe(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(OMe,"bytesFromBase64");function LMe(t){return globalThis.Buffer.from(t).toString("base64")}o(LMe,"base64FromBytes");function kC(t){return t!=null}o(kC,"isSet")});var QX=m(OC=>{"use strict";Object.defineProperty(OC,"__esModule",{value:!0});OC.DSSELogEntryV002=OC.DSSERequestV002=void 0;var FMe=yk(),MMe=Bd(),LO=OO();OC.DSSERequestV002={fromJSON(t){return{envelope:UMe(t.envelope)?FMe.Envelope.fromJSON(t.envelope):void 0,verifiers:globalThis.Array.isArray(t?.verifiers)?t.verifiers.map(e=>LO.Verifier.fromJSON(e)):[]}},toJSON(t){let e={};return t.envelope!==void 0&&(e.envelope=FMe.Envelope.toJSON(t.envelope)),t.verifiers?.length&&(e.verifiers=t.verifiers.map(r=>LO.Verifier.toJSON(r))),e}};OC.DSSELogEntryV002={fromJSON(t){return{payloadHash:UMe(t.payloadHash)?MMe.HashOutput.fromJSON(t.payloadHash):void 0,signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>LO.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payloadHash!==void 0&&(e.payloadHash=MMe.HashOutput.toJSON(t.payloadHash)),t.signatures?.length&&(e.signatures=t.signatures.map(r=>LO.Signature.toJSON(r))),e}};function UMe(t){return t!=null}o(UMe,"isSet")});var PX=m(LC=>{"use strict";Object.defineProperty(LC,"__esModule",{value:!0});LC.HashedRekordLogEntryV002=LC.HashedRekordRequestV002=void 0;var qMe=Bd(),FO=OO();LC.HashedRekordRequestV002={fromJSON(t){return{digest:MO(t.digest)?Buffer.from(J4t(t.digest)):Buffer.alloc(0),signature:MO(t.signature)?FO.Signature.fromJSON(t.signature):void 0}},toJSON(t){let e={};return t.digest.length!==0&&(e.digest=Y4t(t.digest)),t.signature!==void 0&&(e.signature=FO.Signature.toJSON(t.signature)),e}};LC.HashedRekordLogEntryV002={fromJSON(t){return{data:MO(t.data)?qMe.HashOutput.fromJSON(t.data):void 0,signature:MO(t.signature)?FO.Signature.fromJSON(t.signature):void 0}},toJSON(t){let e={};return t.data!==void 0&&(e.data=qMe.HashOutput.toJSON(t.data)),t.signature!==void 0&&(e.signature=FO.Signature.toJSON(t.signature)),e}};function J4t(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(J4t,"bytesFromBase64");function Y4t(t){return globalThis.Buffer.from(t).toString("base64")}o(Y4t,"base64FromBytes");function MO(t){return t!=null}o(MO,"isSet")});var GMe=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.CreateEntryRequest=cu.Spec=cu.Entry=void 0;var UO=QX(),qO=PX();cu.Entry={fromJSON(t){return{kind:rm(t.kind)?globalThis.String(t.kind):"",apiVersion:rm(t.apiVersion)?globalThis.String(t.apiVersion):"",spec:rm(t.spec)?cu.Spec.fromJSON(t.spec):void 0}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.apiVersion!==""&&(e.apiVersion=t.apiVersion),t.spec!==void 0&&(e.spec=cu.Spec.toJSON(t.spec)),e}};cu.Spec={fromJSON(t){return{spec:rm(t.hashedRekordV002)?{$case:"hashedRekordV002",hashedRekordV002:qO.HashedRekordLogEntryV002.fromJSON(t.hashedRekordV002)}:rm(t.dsseV002)?{$case:"dsseV002",dsseV002:UO.DSSELogEntryV002.fromJSON(t.dsseV002)}:void 0}},toJSON(t){let e={};return t.spec?.$case==="hashedRekordV002"?e.hashedRekordV002=qO.HashedRekordLogEntryV002.toJSON(t.spec.hashedRekordV002):t.spec?.$case==="dsseV002"&&(e.dsseV002=UO.DSSELogEntryV002.toJSON(t.spec.dsseV002)),e}};cu.CreateEntryRequest={fromJSON(t){return{spec:rm(t.hashedRekordRequestV002)?{$case:"hashedRekordRequestV002",hashedRekordRequestV002:qO.HashedRekordRequestV002.fromJSON(t.hashedRekordRequestV002)}:rm(t.dsseRequestV002)?{$case:"dsseRequestV002",dsseRequestV002:UO.DSSERequestV002.fromJSON(t.dsseRequestV002)}:void 0}},toJSON(t){let e={};return t.spec?.$case==="hashedRekordRequestV002"?e.hashedRekordRequestV002=qO.HashedRekordRequestV002.toJSON(t.spec.hashedRekordRequestV002):t.spec?.$case==="dsseRequestV002"&&(e.dsseRequestV002=UO.DSSERequestV002.toJSON(t.spec.dsseRequestV002)),e}};function rm(t){return t!=null}o(rm,"isSet")});var HMe=m(lu=>{"use strict";var K4t=lu&&lu.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),GO=lu&&lu.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&K4t(e,t,r)};Object.defineProperty(lu,"__esModule",{value:!0});GO(QX(),lu);GO(GMe(),lu);GO(PX(),lu);GO(OO(),lu)});var VMe=m(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.DSSE_API_VERSION_V1=void 0;nm.verifyDSSETLogBody=X4t;nm.verifyDSSETLogBodyV2=Z4t;var Td=Ui();nm.DSSE_API_VERSION_V1="0.0.1";function X4t(t,e){if(t.apiVersion===nm.DSSE_API_VERSION_V1)return e5t(t,e);throw new Td.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported dsse version: ${t.apiVersion}`})}o(X4t,"verifyDSSETLogBody");function Z4t(t,e){let r=t.spec?.spec;if(!r)throw new Td.VerificationError({code:"TLOG_BODY_ERROR",message:"missing dsse spec"});if(r.$case==="dsseV002")return t5t(r.dsseV002,e);throw new Td.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported version: ${r.$case}`})}o(Z4t,"verifyDSSETLogBodyV2");function e5t(t,e){if(t.spec.signatures?.length!==1)throw new Td.VerificationError({code:"TLOG_BODY_ERROR",message:"signature count mismatch"});let r=t.spec.signatures[0].signature;if(!e.compareSignature(Buffer.from(r,"base64")))throw new Td.VerificationError({code:"TLOG_BODY_ERROR",message:"tlog entry signature mismatch"});let n=t.spec.payloadHash?.value||"";if(!e.compareDigest(Buffer.from(n,"hex")))throw new Td.VerificationError({code:"TLOG_BODY_ERROR",message:"DSSE payload hash mismatch"})}o(e5t,"verifyDSSE001TLogBody");function t5t(t,e){if(t.signatures?.length!==1)throw new Td.VerificationError({code:"TLOG_BODY_ERROR",message:"signature count mismatch"});let r=t.signatures[0].content;if(!e.compareSignature(r))throw new Td.VerificationError({code:"TLOG_BODY_ERROR",message:"tlog entry signature mismatch"});let n=t.payloadHash?.digest||Buffer.from("");if(!e.compareDigest(n))throw new Td.VerificationError({code:"TLOG_BODY_ERROR",message:"DSSE payload hash mismatch"})}o(t5t,"verifyDSSE002TLogBody")});var zMe=m(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.HASHEDREKORD_API_VERSION_V1=void 0;sm.verifyHashedRekordTLogBody=r5t;sm.verifyHashedRekordTLogBodyV2=n5t;var im=Ui();sm.HASHEDREKORD_API_VERSION_V1="0.0.1";function r5t(t,e){if(t.apiVersion===sm.HASHEDREKORD_API_VERSION_V1)return i5t(t,e);throw new im.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported hashedrekord version: ${t.apiVersion}`})}o(r5t,"verifyHashedRekordTLogBody");function n5t(t,e){let r=t.spec?.spec;if(!r)throw new im.VerificationError({code:"TLOG_BODY_ERROR",message:"missing dsse spec"});if(r.$case==="hashedRekordV002")return s5t(r.hashedRekordV002,e);throw new im.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported version: ${r.$case}`})}o(n5t,"verifyHashedRekordTLogBodyV2");function i5t(t,e){let r=t.spec.signature.content||"";if(!e.compareSignature(Buffer.from(r,"base64")))throw new im.VerificationError({code:"TLOG_BODY_ERROR",message:"signature mismatch"});let n=t.spec.data.hash?.value||"";if(!e.compareSignedDigest(Buffer.from(n,"hex")))throw new im.VerificationError({code:"TLOG_BODY_ERROR",message:"digest mismatch"})}o(i5t,"verifyHashedrekord001TLogBody");function s5t(t,e){let r=t.signature?.content||Buffer.from("");if(!e.compareSignature(r))throw new im.VerificationError({code:"TLOG_BODY_ERROR",message:"signature mismatch"});let n=t.data?.digest||Buffer.from("");if(!e.compareSignedDigest(n))throw new im.VerificationError({code:"TLOG_BODY_ERROR",message:"digest mismatch"})}o(s5t,"verifyHashedrekord002TLogBody")});var $Me=m(kX=>{"use strict";Object.defineProperty(kX,"__esModule",{value:!0});kX.verifyIntotoTLogBody=o5t;var HO=Ui();function o5t(t,e){if(t.apiVersion==="0.0.2")return a5t(t,e);throw new HO.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported intoto version: ${t.apiVersion}`})}o(o5t,"verifyIntotoTLogBody");function a5t(t,e){if(t.spec.content.envelope.signatures?.length!==1)throw new HO.VerificationError({code:"TLOG_BODY_ERROR",message:"signature count mismatch"});let r=c5t(t.spec.content.envelope.signatures[0].sig);if(!e.compareSignature(Buffer.from(r,"base64")))throw new HO.VerificationError({code:"TLOG_BODY_ERROR",message:"tlog entry signature mismatch"});let n=t.spec.content.payloadHash?.value||"";if(!e.compareDigest(Buffer.from(n,"hex")))throw new HO.VerificationError({code:"TLOG_BODY_ERROR",message:"DSSE payload hash mismatch"})}o(a5t,"verifyIntoto002TLogBody");function c5t(t){return Buffer.from(t,"base64").toString("utf-8")}o(c5t,"base64Decode")});var WMe=m($B=>{"use strict";Object.defineProperty($B,"__esModule",{value:!0});$B.LogCheckpoint=void 0;$B.verifyCheckpoint=u5t;var jMe=Sc(),FC=Ui(),OX=`
|
|
|
|
`,l5t=/\u2014 (\S+) (\S+)\n/g;function u5t(t,e){let r=t.inclusionProof,n=LX.fromString(r.checkpoint.envelope),i=VO.fromString(n.note);if(!d5t(n,e))throw new FC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(u5t,"verifyCheckpoint");function d5t(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let i=e.find(s=>jMe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return i?jMe.crypto.verify(r,i.publicKey,n.signature):!1})}o(d5t,"verifySignedNote");var LX=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(OX))throw new FC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(OX),n=e.slice(0,r+1),s=e.slice(r+OX.length).matchAll(l5t),a=Array.from(s,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new FC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new FC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},VO=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,i){this.origin=e,this.logSize=r,this.logHash=n,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
|
|
`);if(r.length<3)throw new FC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],i;try{i=BigInt(r[1])}catch{throw new FC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,i,s,a)}};$B.LogCheckpoint=VO});var JMe=m(UX=>{"use strict";Object.defineProperty(UX,"__esModule",{value:!0});UX.verifyMerkleInclusion=p5t;var MX=Sc(),zO=Ui(),f5t=Buffer.from([0]),h5t=Buffer.from([1]);function p5t(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new zO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let i=BigInt(e.logSize);if(n<0n||n>=i)throw new zO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=A5t(n,i);if(r.hashes.length!==s+a)throw new zO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),l=r.hashes.slice(s),u=b5t(t.canonicalizedBody),d=g5t(m5t(u,c,n),l);if(!MX.crypto.bufferEqual(d,e.logHash))throw new zO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(p5t,"verifyMerkleInclusion");function A5t(t,e){let r=y5t(t,e),n=E5t(t>>BigInt(r));return{inner:r,border:n}}o(A5t,"decompInclProof");function m5t(t,e,r){return e.reduce((n,i,s)=>r>>BigInt(s)&BigInt(1)?FX(i,n):FX(n,i),t)}o(m5t,"chainInner");function g5t(t,e){return e.reduce((r,n)=>FX(n,r),t)}o(g5t,"chainBorderRight");function y5t(t,e){return C5t(t^e-BigInt(1))}o(y5t,"innerProofSize");function E5t(t){return t.toString(2).split("1").length-1}o(E5t,"onesCount");function C5t(t){return t===0n?0:t.toString(2).length}o(C5t,"bitLength");function FX(t,e){return MX.crypto.digest("sha256",h5t,t,e)}o(FX,"hashChildren");function b5t(t){return MX.crypto.digest("sha256",f5t,t)}o(b5t,"hashLeaf")});var KMe=m(qX=>{"use strict";Object.defineProperty(qX,"__esModule",{value:!0});qX.verifyTLogSET=S5t;var YMe=Sc(),w5t=Ui(),I5t=PC();function S5t(t,e){if(!(0,I5t.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let s=B5t(t),a=Buffer.from(YMe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return YMe.crypto.verify(a,i.publicKey,c)}))throw new w5t.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(S5t,"verifyTLogSET");function B5t(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(B5t,"toVerificationPayload")});var ZMe=m(jO=>{"use strict";Object.defineProperty(jO,"__esModule",{value:!0});jO.verifyTLogBody=T5t;jO.verifyTLogInclusion=R5t;var XMe=HMe(),$O=Ui(),GX=VMe(),HX=zMe(),x5t=$Me(),v5t=WMe(),N5t=JMe(),_5t=KMe();function T5t(t,e){let{kind:r,version:n}=t.kindVersion,i;try{i=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new $O.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==i.kind||n!==i.apiVersion)throw new $O.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(n==GX.DSSE_API_VERSION_V1)return(0,GX.verifyDSSETLogBody)(i,e);{let s=XMe.Entry.fromJSON(i);return(0,GX.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,x5t.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(n==HX.HASHEDREKORD_API_VERSION_V1)return(0,HX.verifyHashedRekordTLogBody)(i,e);{let s=XMe.Entry.fromJSON(i);return(0,HX.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new $O.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(T5t,"verifyTLogBody");function R5t(t,e){let r=!1;if(D5t(t)&&((0,_5t.verifyTLogSET)(t,e),r=!0),Q5t(t)){let n=(0,v5t.verifyCheckpoint)(t,e);(0,N5t.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new $O.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(R5t,"verifyTLogInclusion");function D5t(t){return t.inclusionPromise!==void 0}o(D5t,"isTLogEntryWithInclusionPromise");function Q5t(t){return t.inclusionProof!==void 0}o(Q5t,"isTLogEntryWithInclusionProof")});var nUe=m(WO=>{"use strict";Object.defineProperty(WO,"__esModule",{value:!0});WO.Verifier=void 0;var P5t=require("util"),om=Ui(),eUe=RMe(),VX=DMe(),tUe=kMe(),rUe=ZMe(),$X=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let n=this.verifyTimestamps(e),i=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,i),r&&this.verifyPolicy(r,i.identity||{}),i}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"timestamp-authority":r.push((0,tUe.getTSATimestamp)(n.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let i=(0,tUe.getTLogTimestamp)(n.tlogEntry);i&&r.push(i);break}}if(zX(r))throw new om.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.length<this.options.timestampThreshold)throw new om.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r.length}`});return r.map(n=>n.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,eUe.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let n=(0,eUe.verifyCertificate)(e.certificate,r,this.trustMaterial);if(zX(n.scts))throw new om.VerificationError({code:"CERTIFICATE_ERROR",message:"duplicate SCT"});if(n.scts.length<this.options.ctlogThreshold)throw new om.VerificationError({code:"CERTIFICATE_ERROR",message:`expected ${this.options.ctlogThreshold} SCTs, got ${n.scts.length}`});return n.signer}}}verifyTLogs({signature:e,tlogEntries:r}){let n=[];if(r.forEach(i=>{(0,rUe.verifyTLogInclusion)(i,this.trustMaterial.tlogs),(0,rUe.verifyTLogBody)(i,e),n.push({logID:i.logId.keyId,logIndex:i.logIndex})}),zX(n))throw new om.VerificationError({code:"TLOG_ERROR",message:"duplicate tlog entry"});if(n.length<this.options.tlogThreshold)throw new om.VerificationError({code:"TLOG_ERROR",message:`expected ${this.options.tlogThreshold} tlog entries, got ${n.length}`})}verifySignature(e,r){if(!e.signature.verifySignature(r.key))throw new om.VerificationError({code:"SIGNATURE_ERROR",message:"signature verification failed"})}verifyPolicy(e,r){e.subjectAlternativeName&&(0,VX.verifySubjectAlternativeName)(e.subjectAlternativeName,r.subjectAlternativeName),e.extensions&&(0,VX.verifyExtensions)(e.extensions,r.extensions),e.oids&&(0,VX.verifyOIDs)(e.oids,r.oids)}};WO.Verifier=$X;function zX(t){for(let e=0;e<t.length;e++)for(let r=e+1;r<t.length;r++)if((0,P5t.isDeepStrictEqual)(t[e],t[r]))return!0;return!1}o(zX,"containsDupes")});var sUe=m(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.Verifier=Oa.toTrustMaterial=Oa.VerificationError=Oa.PolicyError=Oa.toSignedEntity=void 0;var k5t=BMe();Object.defineProperty(Oa,"toSignedEntity",{enumerable:!0,get:o(function(){return k5t.toSignedEntity},"get")});var iUe=Ui();Object.defineProperty(Oa,"PolicyError",{enumerable:!0,get:o(function(){return iUe.PolicyError},"get")});Object.defineProperty(Oa,"VerificationError",{enumerable:!0,get:o(function(){return iUe.VerificationError},"get")});var O5t=PC();Object.defineProperty(Oa,"toTrustMaterial",{enumerable:!0,get:o(function(){return O5t.toTrustMaterial},"get")});var L5t=nUe();Object.defineProperty(Oa,"Verifier",{enumerable:!0,get:o(function(){return L5t.Verifier},"get")})});var TUe=N(require("fs"),1),RUe=N(require("path"),1);var LZ=N(require("os"),1);function mu(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(mu,"toCommandValue");function yL(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(yL,"toCommandProperties");function gu(t,e,r){let n=new EL(t,e,r);process.stdout.write(n.toString()+LZ.EOL)}o(gu,"issueCommand");function CL(t,e=""){gu(t,{},e)}o(CL,"issue");var OZ="::",EL=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=OZ+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${yqe(i)}`)}}return e+=`${OZ}${gqe(this.message)}`,e}};function gqe(t){return mu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(gqe,"escapeData");function yqe(t){return mu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(yqe,"escapeProperty");var FZ=N(require("crypto"),1),Bx=N(require("fs"),1),Sx=N(require("os"),1);function xx(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Bx.existsSync(r))throw new Error(`Missing file at path: ${r}`);Bx.appendFileSync(r,`${mu(e)}${Sx.EOL}`,{encoding:"utf8"})}o(xx,"issueFileCommand");function bL(t,e){let r=`ghadelimiter_${FZ.randomUUID()}`,n=mu(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}${Sx.EOL}${n}${Sx.EOL}${r}`}o(bL,"prepareKeyValueMessage");var dq=N(require("os"),1),Lce=N(require("path"),1);var i0=N(require("http"),1),KU=N(require("https"),1);function wL(t){let e=t.protocol==="https:";if(Eqe(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 vx(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new vx(`http://${r}`)}else return}o(wL,"getProxyUrl");function Eqe(t){if(!t.hostname)return!1;let e=t.hostname;if(Cqe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(Eqe,"checkBypass");function Cqe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Cqe,"isLoopbackAddress");var vx=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var tf=N(pm(),1),mce=N(ef(),1);var Kr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Hn;(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"})(Hn||(Hn={}));var Vi;(function(t){t.Accept="accept",t.ContentType="content-type"})(Vi||(Vi={}));var Qu;(function(t){t.ApplicationJson="application/json"})(Qu||(Qu={}));var kJe=[Hn.MovedPermanently,Hn.ResourceMoved,Hn.SeeOther,Hn.TemporaryRedirect,Hn.PermanentRedirect],OJe=[Hn.BadGateway,Hn.ServiceUnavailable,Hn.GatewayTimeout],LJe=["OPTIONS","GET","DELETE","HEAD"],FJe=10,MJe=5,JU=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},YU=class{static{o(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 qo=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return 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,i){return Kr(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return Kr(this,arguments,void 0,function*(r,n={}){n[Vi.Accept]=this._getExistingOrDefaultHeader(n,Vi.Accept,Qu.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return Kr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Vi.Accept]=this._getExistingOrDefaultHeader(s,Vi.Accept,Qu.ApplicationJson),s[Vi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Qu.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Kr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Vi.Accept]=this._getExistingOrDefaultHeader(s,Vi.Accept,Qu.ApplicationJson),s[Vi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Qu.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Kr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Vi.Accept]=this._getExistingOrDefaultHeader(s,Vi.Accept,Qu.ApplicationJson),s[Vi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Qu.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return Kr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&LJe.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===Hn.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&kJe.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!OJe.includes(u.message.statusCode))return u;l+=1,l<c&&(yield u.readBody(),yield this._performExponentialBackoff(l))}while(l<c);return u})}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,r){return Kr(this,void 0,void 0,function*(){return new Promise((n,i)=>{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new YU(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=wL(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?KU:i0;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},n0(this.requestOptions.headers),n0(e||{})):n0(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=n0(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=n0(this.requestOptions.headers)[Vi.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Vi.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=wL(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||i0.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?tf.httpsOverHttps:tf.httpsOverHttp:l=u?tf.httpOverHttps:tf.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new KU.Agent(c):new i0.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new mce.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return Kr(this,void 0,void 0,function*(){e=Math.min(FJe,e);let r=MJe*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,i)=>Kr(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===Hn.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new JU(d,s);f.result=a.result,i(f)}else n(a)}))})}},n0=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var UJe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};var rf=class{static{o(this,"BearerCredentialHandler")}constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return UJe(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var Ece=require("os"),s0=require("fs");var XU=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:qJe,appendFile:GJe,writeFile:HJe}=s0.promises,yce="GITHUB_STEP_SUMMARY";var ZU=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return XU(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[yce];if(!e)throw new Error(`Unable to find environment variable for $${yce}. Check if your runtime environment supports job summaries.`);try{yield qJe(e,s0.constants.R_OK|s0.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return XU(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?HJe:GJe)(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(Ece.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},VJe=new ZU;var eq=VJe;var lq=N(require("os"),1);var cq=require("string_decoder");var a0=N(require("os"),1),aq=N(require("events"),1),Dce=N(require("child_process"),1),Qce=N(require("path"),1);var vce=require("assert"),so=N(require("path"),1);var o0=N(require("fs"),1),nf=N(require("path"),1);var tq=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{chmod:rq,copyFile:bce,lstat:wN,mkdir:wce,open:G8t,readdir:nq,rename:zJe,rm:Ice,rmdir:H8t,stat:np,symlink:Sce,unlink:iq}=o0.promises,Mc=process.platform==="win32";function Bce(t){return tq(this,void 0,void 0,function*(){let e=yield o0.promises.readlink(t);return Mc&&!e.endsWith("\\")?`${e}\\`:e})}o(Bce,"readlink");var V8t=o0.constants.O_RDONLY;function dg(t){return tq(this,void 0,void 0,function*(){try{yield np(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}o(dg,"exists");function IN(t){if(t=$Je(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return Mc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}o(IN,"isRooted");function sq(t,e){return tq(this,void 0,void 0,function*(){let r;try{r=yield np(t)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${i}`)}if(r&&r.isFile()){if(Mc){let i=nf.extname(t).toUpperCase();if(e.some(s=>s.toUpperCase()===i))return t}else if(Cce(r))return t}let n=t;for(let i of e){t=n+i,r=void 0;try{r=yield np(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(Mc){try{let s=nf.dirname(t),a=nf.basename(t).toUpperCase();for(let c of yield nq(s))if(a===c.toUpperCase()){t=nf.join(s,c);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${s}`)}return t}else if(Cce(r))return t}}return""})}o(sq,"tryGetExecutablePath");function $Je(t){return t=t||"",Mc?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}o($Je,"normalizeSeparators");function Cce(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}o(Cce,"isUnixExecutable");var ip=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Nce(t,e){return ip(this,arguments,void 0,function*(r,n,i={}){let{force:s,recursive:a,copySourceDirectory:c}=WJe(i),l=(yield dg(n))?yield np(n):null;if(l&&l.isFile()&&!s)return;let u=l&&l.isDirectory()&&c?so.join(n,so.basename(r)):n;if(!(yield dg(r)))throw new Error(`no such file or directory: ${r}`);if((yield np(r)).isDirectory())if(a)yield _ce(r,u,0,s);else throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`);else{if(so.relative(r,u)==="")throw new Error(`'${u}' and '${r}' are the same file`);yield Tce(r,u,s)}})}o(Nce,"cp");function fg(t){return ip(this,void 0,void 0,function*(){if(Mc&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Ice(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}o(fg,"rmRF");function Pu(t){return ip(this,void 0,void 0,function*(){(0,vce.ok)(t,"a path argument must be provided"),yield wce(t,{recursive:!0})})}o(Pu,"mkdirP");function ci(t,e){return ip(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield ci(t,!1);if(!n)throw Mc?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 jJe(t);return r&&r.length>0?r[0]:""})}o(ci,"which");function jJe(t){return ip(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(Mc&&process.env.PATHEXT)for(let i of process.env.PATHEXT.split(so.delimiter))i&&e.push(i);if(IN(t)){let i=yield sq(t,e);return i?[i]:[]}if(t.includes(so.sep))return[];let r=[];if(process.env.PATH)for(let i of process.env.PATH.split(so.delimiter))i&&r.push(i);let n=[];for(let i of r){let s=yield sq(so.join(i,t),e);s&&n.push(s)}return n})}o(jJe,"findInPath");function WJe(t){let e=t.force==null?!0:t.force,r=!!t.recursive,n=t.copySourceDirectory==null?!0:!!t.copySourceDirectory;return{force:e,recursive:r,copySourceDirectory:n}}o(WJe,"readCopyOptions");function _ce(t,e,r,n){return ip(this,void 0,void 0,function*(){if(r>=255)return;r++,yield Pu(e);let i=yield nq(t);for(let s of i){let a=`${t}/${s}`,c=`${e}/${s}`;(yield wN(a)).isDirectory()?yield _ce(a,c,r,n):yield Tce(a,c,n)}yield rq(e,(yield np(t)).mode)})}o(_ce,"cpDirRecursive");function Tce(t,e,r){return ip(this,void 0,void 0,function*(){if((yield wN(t)).isSymbolicLink()){try{yield wN(e),yield iq(e)}catch(i){i.code==="EPERM"&&(yield rq(e,"0666"),yield iq(e))}let n=yield Bce(t);yield Sce(n,e,Mc?"junction":null)}else(!(yield dg(e))||r)&&(yield bce(t,e))})}o(Tce,"copyFile");var Pce=require("timers");var Rce=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},SN=process.platform==="win32",BN=class extends aq.EventEmitter{static{o(this,"ToolRunner")}constructor(e,r,n){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=r||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,r){let n=this._getSpawnFileName(),i=this._getSpawnArgs(e),s=r?"":"[command]";if(SN)if(this._isCmdFile()){s+=n;for(let a of i)s+=` ${a}`}else if(e.windowsVerbatimArguments){s+=`"${n}"`;for(let a of i)s+=` ${a}`}else{s+=this._windowsQuoteCmdArg(n);for(let a of i)s+=` ${this._windowsQuoteCmdArg(a)}`}else{s+=n;for(let a of i)s+=` ${a}`}return s}_processLineBuffer(e,r,n){try{let i=r+e.toString(),s=i.indexOf(a0.EOL);for(;s>-1;){let a=i.substring(0,s);n(a),i=i.substring(s+a0.EOL.length),s=i.indexOf(a0.EOL)}return i}catch(i){return this._debug(`error processing line. Failed with error ${i}`),""}}_getSpawnFileName(){return SN&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(SN&&this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)r+=" ",r+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return r+='"',[r]}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let r=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],n=!1;for(let a of e)if(r.some(c=>c===a)){n=!0;break}if(!n)return e;let i='"',s=!0;for(let a=e.length;a>0;a--)i+=e[a-1],s&&e[a-1]==="\\"?i+="\\":e[a-1]==='"'?(s=!0,i+='"'):s=!1;return i+='"',i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let r='"',n=!0;for(let i=e.length;i>0;i--)r+=e[i-1],n&&e[i-1]==="\\"?r+="\\":e[i-1]==='"'?(n=!0,r+="\\"):n=!1;return r+='"',r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};let r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return r.outStream=e.outStream||process.stdout,r.errStream=e.errStream||process.stderr,r}_getSpawnOptions(e,r){e=e||{};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${r}"`),n}exec(){return Rce(this,void 0,void 0,function*(){return!IN(this.toolPath)&&(this.toolPath.includes("/")||SN&&this.toolPath.includes("\\"))&&(this.toolPath=Qce.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield ci(this.toolPath,!0),new Promise((e,r)=>Rce(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)+a0.EOL);let i=new oq(n,this.toolPath);if(i.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield dg(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let s=this._getSpawnFileName(),a=Dce.spawn(s,this._getSpawnArgs(n),this._getSpawnOptions(this.options,s)),c="";a.stdout&&a.stdout.on("data",u=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(u),!n.silent&&n.outStream&&n.outStream.write(u),c=this._processLineBuffer(u,c,d=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(d)})});let l="";if(a.stderr&&a.stderr.on("data",u=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(u),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(u),l=this._processLineBuffer(u,l,d=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(d)})}),a.on("error",u=>{i.processError=u.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),a.on("exit",u=>{i.processExitCode=u,i.processExited=!0,this._debug(`Exit code ${u} received from tool '${this.toolPath}'`),i.CheckComplete()}),a.on("close",u=>{i.processExitCode=u,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on("done",(u,d)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),u?r(u):e(d)}),this.options.input){if(!a.stdin)throw new Error("child process missing stdin");a.stdin.end(this.options.input)}}))})}};function kce(t){let e=[],r=!1,n=!1,i="";function s(a){n&&a!=='"'&&(i+="\\"),i+=a,n=!1}o(s,"append");for(let a=0;a<t.length;a++){let c=t.charAt(a);if(c==='"'){n?s(c):r=!r;continue}if(c==="\\"&&n){s(c);continue}if(c==="\\"&&r){n=!0;continue}if(c===" "&&!r){i.length>0&&(e.push(i),i="");continue}s(c)}return i.length>0&&e.push(i.trim()),e}o(kce,"argStringToArray");var oq=class t extends aq.EventEmitter{static{o(this,"ExecState")}constructor(e,r){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!r)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=r,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=(0,Pce.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 Oce=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function oo(t,e,r){return Oce(this,void 0,void 0,function*(){let n=kce(t);if(n.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return e=n.slice(1).concat(e||[]),new BN(i,e,r).exec()})}o(oo,"exec");function pg(t,e,r){return Oce(this,void 0,void 0,function*(){var n,i;let s="",a="",c=new cq.StringDecoder("utf8"),l=new cq.StringDecoder("utf8"),u=(n=r?.listeners)===null||n===void 0?void 0:n.stdout,d=(i=r?.listeners)===null||i===void 0?void 0:i.stderr,f=o(A=>{a+=l.write(A),d&&d(A)},"stdErrListener"),h=o(A=>{s+=c.write(A),u&&u(A)},"stdOutListener"),p=Object.assign(Object.assign({},r?.listeners),{stdout:h,stderr:f}),g=yield oo(t,e,Object.assign(Object.assign({},r),{listeners:p}));return s+=c.end(),a+=l.end(),{exitCode:g,stdout:s,stderr:a}})}o(pg,"getExecOutput");var Y8t=lq.default.platform(),K8t=lq.default.arch();var KJe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},uq;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(uq||(uq={}));function Fc(t){gu("add-mask",{},t)}o(Fc,"setSecret");function Uc(t){process.env.GITHUB_PATH||""?xx("PATH",t):gu("add-path",{},t),process.env.PATH=`${t}${Lce.delimiter}${process.env.PATH}`}o(Uc,"addPath");function li(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}o(li,"getInput");function sp(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],i=li(t,e);if(r.includes(i))return!0;if(n.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
|
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(sp,"getBooleanInput");function xN(t,e){if(process.env.GITHUB_OUTPUT||"")return xx("OUTPUT",bL(t,e));process.stdout.write(dq.EOL),gu("set-output",{name:t},mu(e))}o(xN,"setOutput");function vN(t){process.exitCode=uq.Failure,mg(t)}o(vN,"setFailed");function op(){return process.env.RUNNER_DEBUG==="1"}o(op,"isDebug");function R(t){gu("debug",{},t)}o(R,"debug");function mg(t,e={}){gu("error",yL(e),t instanceof Error?t.toString():t)}o(mg,"error");function ut(t,e={}){gu("warning",yL(e),t instanceof Error?t.toString():t)}o(ut,"warning");function O(t){process.stdout.write(t+dq.EOL)}o(O,"info");function XJe(t){CL("group",t)}o(XJe,"startGroup");function ZJe(){CL("endgroup")}o(ZJe,"endGroup");function Qr(t,e){return KJe(this,void 0,void 0,function*(){XJe(t);let r;try{r=yield e()}finally{ZJe()}return r})}o(Qr,"group");function Ja(t,e){if(process.env.GITHUB_STATE||"")return xx("STATE",bL(t,e));gu("save-state",{name:t},mu(e))}o(Ja,"saveState");function Fce(t){return process.env[`STATE_${t}`]||""}o(Fce,"getState");var Zw=N(require("fs"),1),B$=N(require("os"),1),x$=N(require("path"),1);var Uce=N(require("os"),1);function c0(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(c0,"toCommandValue");function qce(t,e,r){let n=new fq(t,e,r);process.stdout.write(n.toString()+Uce.EOL)}o(qce,"issueCommand");var Mce="::",fq=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Mce+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${t9e(i)}`)}}return e+=`${Mce}${e9e(this.message)}`,e}};function e9e(t){return c0(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(e9e,"escapeData");function t9e(t){return c0(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(t9e,"escapeProperty");var zce=N(require("os"),1);var Hce=require("os"),l0=require("fs");var hq=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:r9e,appendFile:n9e,writeFile:i9e}=l0.promises,Gce="GITHUB_STEP_SUMMARY";var pq=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return hq(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Gce];if(!e)throw new Error(`Unable to find environment variable for $${Gce}. Check if your runtime environment supports job summaries.`);try{yield r9e(e,l0.constants.R_OK|l0.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return hq(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?i9e:n9e)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return hq(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(Hce.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},x6t=new pq;var Aq=N(require("os"),1);var R6t=Aq.default.platform(),D6t=Aq.default.arch();var Vce;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Vce||(Vce={}));function mq(){return process.env.RUNNER_DEBUG==="1"}o(mq,"isDebug");function Zt(t){qce("debug",{},t)}o(Zt,"debug");function gq(t){process.stdout.write(t+zce.EOL)}o(gq,"info");var Mq=N(require("crypto"),1),vi=N(require("fs"),1);var t7e=N(Lq(),1);var GN=N(require("os"),1),Ya=N(require("path"),1);var Vo=N(Lq(),1),Oue=N(require("stream"),1),Lue=N(require("util"),1),Uq=require("assert");var kue=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},UN=class{static{o(this,"RetryHelper")}constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return kue(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(s){if(r&&!r(s))throw s;gq(s.message)}let i=this.getSleepAmount();gq(`Waiting ${i} seconds before trying again`),yield this.sleep(i),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return kue(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Gc=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},qN=class extends Error{static{o(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Fue=process.platform==="win32",OJt=process.platform==="darwin",n7e="actions/tool-cache";function zo(t,e,r,n){return Gc(this,void 0,void 0,function*(){e=e||Ya.join(zue(),Mq.randomUUID()),yield Pu(Ya.dirname(e)),Zt(`Downloading ${t}`),Zt(`Destination ${e}`);let i=3,s=Fq("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),a=Fq("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new UN(i,s,a).execute(()=>Gc(this,void 0,void 0,function*(){return yield i7e(t,e||"",r,n)}),l=>!(l instanceof qN&&l.httpStatusCode&&l.httpStatusCode<500&&l.httpStatusCode!==408&&l.httpStatusCode!==429))})}o(zo,"downloadTool");function i7e(t,e,r,n){return Gc(this,void 0,void 0,function*(){if(vi.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let i=new qo(n7e,[],{allowRetries:!1});r&&(Zt("set auth"),n===void 0&&(n={}),n.authorization=r);let s=yield i.get(t,n);if(s.message.statusCode!==200){let d=new qN(s.message.statusCode);throw Zt(`Failed to download from "${t}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`),d}let a=Lue.promisify(Oue.pipeline),l=Fq("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>s.message)(),u=!1;try{return yield a(l,vi.createWriteStream(e)),Zt("download complete"),u=!0,e}finally{if(!u){Zt("download failed");try{yield fg(e)}catch(d){Zt(`Failed to delete '${e}'. ${d.message}`)}}}})}o(i7e,"downloadToolAttempt");function Mue(t,e){return Gc(this,arguments,void 0,function*(r,n,i="xz"){if(!r)throw new Error("parameter 'file' is required");n=yield Hue(n),Zt("Checking tar --version");let s="";yield oo("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(d=>s+=d.toString(),"stdout"),stderr:o(d=>s+=d.toString(),"stderr")}}),Zt(s.trim());let a=s.toUpperCase().includes("GNU TAR"),c;i instanceof Array?c=i:c=[i],mq()&&!i.includes("v")&&c.push("-v");let l=n,u=r;return Fue&&a&&(c.push("--force-local"),l=n.replace(/\\/g,"/"),u=r.replace(/\\/g,"/")),a&&(c.push("--warning=no-unknown-keyword"),c.push("--overwrite")),c.push("-C",l,"-f",u),yield oo("tar",c),n})}o(Mue,"extractTar");function Uue(t,e){return Gc(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield Hue(e),Fue?yield s7e(t,e):yield o7e(t,e),e})}o(Uue,"extractZip");function s7e(t,e){return Gc(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield ci("pwsh",!1);if(i){let a=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`].join(" ")];Zt(`Using pwsh at path: ${i}`),yield oo(`"${i}"`,a)}else{let a=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`].join(" ")],c=yield ci("powershell",!0);Zt(`Using powershell at path: ${c}`),yield oo(`"${c}"`,a)}})}o(s7e,"extractZipWin");function o7e(t,e){return Gc(this,void 0,void 0,function*(){let r=yield ci("unzip",!0),n=[t];mq()||n.unshift("-q"),n.unshift("-o"),yield oo(`"${r}"`,n,{cwd:e})})}o(o7e,"extractZipNix");function que(t,e,r,n){return Gc(this,void 0,void 0,function*(){if(r=Vo.clean(r)||r,n=n||GN.arch(),Zt(`Caching tool ${e} ${r} ${n}`),Zt(`source dir: ${t}`),!vi.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let i=yield c7e(e,r,n);for(let s of vi.readdirSync(t)){let a=Ya.join(t,s);yield Nce(a,i,{recursive:!0})}return l7e(e,r,n),i})}o(que,"cacheDir");function Gue(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||GN.arch(),!Vue(e)){let i=a7e(t,r);e=u7e(i,e)}let n="";if(e){e=Vo.clean(e)||"";let i=Ya.join(HN(),t,e,r);Zt(`checking cache: ${i}`),vi.existsSync(i)&&vi.existsSync(`${i}.complete`)?(Zt(`Found tool in cache ${t} ${e} ${r}`),n=i):Zt("not found")}return n}o(Gue,"find");function a7e(t,e){let r=[];e=e||GN.arch();let n=Ya.join(HN(),t);if(vi.existsSync(n)){let i=vi.readdirSync(n);for(let s of i)if(Vue(s)){let a=Ya.join(n,s,e||"");vi.existsSync(a)&&vi.existsSync(`${a}.complete`)&&r.push(s)}}return r}o(a7e,"findAllVersions");function Hue(t){return Gc(this,void 0,void 0,function*(){return t||(t=Ya.join(zue(),Mq.randomUUID())),yield Pu(t),t})}o(Hue,"_createExtractFolder");function c7e(t,e,r){return Gc(this,void 0,void 0,function*(){let n=Ya.join(HN(),t,Vo.clean(e)||e,r||"");Zt(`destination ${n}`);let i=`${n}.complete`;return yield fg(n),yield fg(i),yield Pu(n),n})}o(c7e,"_createToolPath");function l7e(t,e,r){let i=`${Ya.join(HN(),t,Vo.clean(e)||e,r||"")}.complete`;vi.writeFileSync(i,""),Zt("finished caching tool")}o(l7e,"_completeToolPath");function Vue(t){let e=Vo.clean(t)||"";Zt(`isExplicit: ${e}`);let r=Vo.valid(e)!=null;return Zt(`explicit? ${r}`),r}o(Vue,"isExplicitVersion");function u7e(t,e){let r="";Zt(`evaluating ${t.length} versions`),t=t.sort((n,i)=>Vo.gt(n,i)?1:-1);for(let n=t.length-1;n>=0;n--){let i=t[n];if(Vo.satisfies(i,e)){r=i;break}}return r?Zt(`matched: ${r}`):Zt("match not found"),r}o(u7e,"evaluateVersions");function HN(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,Uq.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}o(HN,"_getCacheDirectory");function zue(){let t=process.env.RUNNER_TEMP||"";return(0,Uq.ok)(t,"Expected RUNNER_TEMP to be defined"),t}o(zue,"_getTempDirectory");function Fq(t,e){let r=global[t];return r!==void 0?r:e}o(Fq,"_getGlobal");var Xw=N(require("path"),1);var jue=N(require("os"),1);function g0(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(g0,"toCommandValue");function Wue(t,e,r){let n=new qq(t,e,r);process.stdout.write(n.toString()+jue.EOL)}o(Wue,"issueCommand");var $ue="::",qq=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=$ue+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${f7e(i)}`)}}return e+=`${$ue}${d7e(this.message)}`,e}};function d7e(t){return g0(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(d7e,"escapeData");function f7e(t){return g0(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(f7e,"escapeProperty");var Yue=require("os"),y0=require("fs");var Gq=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:h7e,appendFile:p7e,writeFile:A7e}=y0.promises,Jue="GITHUB_STEP_SUMMARY";var Hq=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Gq(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Jue];if(!e)throw new Error(`Unable to find environment variable for $${Jue}. Check if your runtime environment supports job summaries.`);try{yield h7e(e,y0.constants.R_OK|y0.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return Gq(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?A7e:p7e)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Gq(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(Yue.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},XJt=new Hq;var Vq=N(require("os"),1);var n9t=Vq.default.platform(),i9t=Vq.default.arch();var Kue;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Kue||(Kue={}));function $o(t){Wue("debug",{},t)}o($o,"debug");var wg=N(require("fs"),1);function $q(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,$o(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,$o(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,$o(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,$o(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,$o(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}o($q,"getOptions");var jN=N(require("path"),1);var Eg=N(require("path"),1),sf=N(require("assert"),1);var of=process.platform==="win32";function Ou(t){if(t=ku(t),of&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Eg.dirname(t);return of&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ku(e)),e}o(Ou,"dirname");function VN(t,e){if((0,sf.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,sf.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),E0(e))return e;if(of){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,sf.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(Ka(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,sf.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,sf.default)(E0(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||of&&t.endsWith("\\")||(t+=Eg.sep),t+e}o(VN,"ensureAbsoluteRoot");function E0(t){return(0,sf.default)(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Ka(t),of?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}o(E0,"hasAbsoluteRoot");function C0(t){return(0,sf.default)(t,"isRooted parameter 'itemPath' must not be empty"),t=Ka(t),of?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}o(C0,"hasRoot");function Ka(t){return t=t||"",of?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}o(Ka,"normalizeSeparators");function ku(t){return t?(t=Ka(t),!t.endsWith(Eg.sep)||t===Eg.sep||of&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}o(ku,"safeTrimTrailingSeparator");var Xa;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Xa||(Xa={}));var Xue=process.platform==="win32";function Wq(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let i=Xue?n.searchPath.toUpperCase():n.searchPath;e[i]="candidate"}let r=[];for(let n of t){let i=Xue?n.searchPath.toUpperCase():n.searchPath;if(e[i]==="included")continue;let s=!1,a=i,c=Ou(a);for(;c!==a;){if(e[c]){s=!0;break}a=c,c=Ou(a)}s||(r.push(n.searchPath),e[i]="included")}return r}o(Wq,"getSearchPaths");function Zue(t,e){let r=Xa.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}o(Zue,"match");function ede(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}o(ede,"partialMatch");var Ede=N(require("os"),1),bg=N(require("path"),1);var lf=N(require("assert"),1);var Jq=o((t,e,r)=>{let n=t instanceof RegExp?tde(t,r):t,i=e instanceof RegExp?tde(e,r):e,s=n!==null&&i!=null&&E7e(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},"balanced"),tde=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),E7e=o((t,e,r)=>{let n,i,s,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;d>=0&&!c;){if(d===l)n.push(d),l=r.indexOf(t,d+1);else if(n.length===1){let f=n.pop();f!==void 0&&(c=[f,u])}else i=n.pop(),i!==void 0&&i<s&&(s=i,a=u),u=r.indexOf(e,d+1);d=l<u&&l>=0?l:u}n.length&&a!==void 0&&(c=[s,a])}return c},"range");var rde="\0SLASH"+Math.random()+"\0",nde="\0OPEN"+Math.random()+"\0",Zq="\0CLOSE"+Math.random()+"\0",ide="\0COMMA"+Math.random()+"\0",sde="\0PERIOD"+Math.random()+"\0",C7e=new RegExp(rde,"g"),b7e=new RegExp(nde,"g"),w7e=new RegExp(Zq,"g"),I7e=new RegExp(ide,"g"),S7e=new RegExp(sde,"g"),B7e=/\\\\/g,x7e=/\\{/g,v7e=/\\}/g,N7e=/\\,/g,_7e=/\\\./g,T7e=1e5,R7e=4e6,D7e=1e3,Q7e=1e3;function Yq(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(Yq,"numeric");function P7e(t){return t.replace(B7e,rde).replace(x7e,nde).replace(v7e,Zq).replace(N7e,ide).replace(_7e,sde)}o(P7e,"escapeBraces");function k7e(t){return t.replace(C7e,"\\").replace(b7e,"{").replace(w7e,"}").replace(I7e,",").replace(S7e,".")}o(k7e,"unescapeBraces");function Kq(t,e){for(let r=0;r<e.length;r++)t.push(e[r])}o(Kq,"pushAll");function O7e(t){let e=[],r="";for(;;){let n=Jq("{","}",t);if(!n){let l=t.split(",");return l[0]=r+l[0],Kq(e,l),e}let{pre:i,body:s,post:a}=n,c=i.split(",");if(c[0]=r+c[0],c[c.length-1]+="{"+s+"}",!a.length)return Kq(e,c),e;r=c.pop(),Kq(e,c),t=a}}o(O7e,"parseCommaParts");function ode(t,e={}){if(!t)return[];let{max:r=T7e,maxLength:n=R7e,maxDepth:i=D7e,maxRewrites:s=Q7e}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),Xq(P7e(t),r,n,i,0,s,!0).map(k7e)}o(ode,"expand");function L7e(t){return"{"+t+"}"}o(L7e,"embrace");function F7e(t){return/^-?0\d/.test(t)}o(F7e,"isPadded");function M7e(t,e){return t<=e}o(M7e,"lte");function U7e(t,e){return t>=e}o(U7e,"gte");function b0(t,e,r,n,i,s){let a=[],c=0;for(let l=0;l<t.length;l++)for(let u=0;u<r.length;u++){if(a.length>=n)return a;let d=t[l]+e+r[u];if(!(s&&!d)){if(c+d.length>i)return a;a.push(d),c+=d.length}}return a}o(b0,"combine");function q7e(t,e,r,n){let i=t.split(/\.\./),s=[];if(i[0]===void 0||i[1]===void 0)return s;let a=Yq(i[0]),c=Yq(i[1]),l=Math.max(i[0].length,i[1].length),u=i.length===3&&i[2]!==void 0?Math.max(Math.abs(Yq(i[2])),1):1,d=M7e;c<a&&(u*=-1,d=U7e);let h=i.some(F7e),p=0;for(let g=a;d(g,c)&&s.length<r;g+=u){let A;if(e)A=String.fromCharCode(g),A==="\\"&&(A="");else if(A=String(g),h){let E=l-A.length;if(E>0){let y=new Array(E+1).join("0");g<0?A="-"+y+A.slice(1):A=y+A}}if(p+A.length>n)break;s.push(A),p+=A.length}return s}o(q7e,"expandSequence");function Xq(t,e,r,n,i,s,a){if(i>n)return[t];let c=[""],l=0,u=!1,d=!0;for(;;){let f=Jq("{","}",t);if(!f)return b0(c,t,[""],e,r,u);let h=f.pre;if(/\$$/.test(h)){if(c=b0(c,h+"{"+f.body+"}",[""],e,r,u&&!f.post.length),d=!1,!f.post.length)break;t=f.post;continue}let p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(f.body),g=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(f.body),A=p||g,E=f.body.indexOf(",")>=0;if(!A&&!E){if(l<s&&f.post.match(/,(?!,).*\}/)){l++,t=f.pre+"{"+f.body+Zq+f.post,a=!0;continue}return b0(c,h+"{"+f.body+"}"+f.post,[""],e,r,u)}d&&(u=a&&!A,d=!1);let y;if(A)y=q7e(f.body,g,e,r);else{let C=O7e(f.body);if(C.length===1&&C[0]!==void 0&&(C=Xq(C[0],e,r,n,i+1,s,!1).map(L7e),C.length===1)){if(c=b0(c,h+C[0],[""],e,r,u&&!f.post.length),!f.post.length)break;t=f.post;continue}let w=u&&!f.post.length&&!h;for(let Q=0;w&&Q<c.length;Q++)c[Q]&&(w=!1);y=[];let B=0;e:for(let Q=0;Q<C.length;Q++){let U=Xq(C[Q],e,r,n,i+1,s,!1);for(let v=0;v<U.length;v++){let j=U[v];if(!(w&&!j)){if(y.length>=e||B+j.length>r)break e;y.push(j),B+=j.length}}}}if(c=b0(c,h,y,e,r,u&&!f.post.length),!f.post.length)break;t=f.post}return c}o(Xq,"expand_");var w0=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},"assertValidPattern");var G7e={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},I0=o(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),H7e=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),ade=o(t=>t.join(""),"rangesToString"),cde=o((t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,a=!1,c=!1,l=!1,u=!1,d=r,f="";e:for(;s<t.length;){let A=t.charAt(s);if((A==="!"||A==="^")&&s===r+1){u=!0,s++;continue}if(A==="]"&&a&&!l){d=s+1;break}if(a=!0,A==="\\"&&!l){l=!0,s++;continue}if(A==="["&&!l){for(let[E,[y,C,w]]of Object.entries(G7e))if(t.startsWith(E,s)){if(f)return["$.",!1,t.length-r,!0];s+=E.length,w?i.push(y):n.push(y),c=c||C;continue e}}if(l=!1,f){A>f?n.push(I0(f)+"-"+I0(A)):A===f&&n.push(I0(A)),f="",s++;continue}if(t.startsWith("-]",s+1)){n.push(I0(A+"-")),s+=2;continue}if(t.startsWith("-",s+1)){f=A,s+=2;continue}n.push(I0(A)),s++}if(d<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,t.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!u){let A=n[0].length===2?n[0].slice(-1):n[0];return[H7e(A),!1,d-r,!1]}let h="["+(u?"^":"")+ade(n)+"]",p="["+(u?"":"^")+ade(i)+"]";return[n.length&&i.length?"("+h+"|"+p+")":n.length?h:p,c,d-r,!0]},"parseClass");var af=o((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!0}={})=>r?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),"unescape");var Is,V7e=new Set(["!","?","+","*","@"]),e3=o(t=>V7e.has(t),"isExtglobType"),lde=o(t=>e3(t.type),"isExtglobAST"),z7e=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),$7e=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),j7e=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),ude=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),W7e="(?!(?:^|/)\\.\\.?(?:$|/))",zN="(?!\\.)",J7e=new Set(["[","."]),Y7e=new Set(["..","."]),K7e=new Set("().*{}+?[]^$\\!"),X7e=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),t3="[^/]",dde=t3+"*?",fde=t3+"+?",Z7e=0,cp=class{static{o(this,"AST")}type;#e;#r;#n=!1;#t=[];#i;#s;#l;#a=!1;#c;#o;#f=!1;id=++Z7e;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#t.length,parts:this.#t}}constructor(e,r,n={}){this.type=e,e&&(this.#r=!0),this.#i=r,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#l=this.#e===this?[]:this.#e.#l,e==="!"&&!this.#e.#a&&this.#l.push(this),this.#s=this.#i?this.#i.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#o=this.#t.map(e=>String(e)).join("")}#C(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let r=e,n=r.#i;for(;n;){for(let i=r.#s+1;!n.type&&i<n.#t.length;i++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#t[i])}r=n,n=r.#i}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof Is&&r.#i===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#s===0)return!0;let e=this.#i;for(let r=0;r<this.#s;r++){let n=e.#t[r];if(!(n instanceof Is&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type==="!")return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#t.length:0;return this.#s===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new Is(this.type,e);for(let n of this.#t)r.copyIn(n);return r}static#p(e,r,n,i,s){let a=i.maxExtglobRecursion??2,c=!1,l=!1,u=-1,d=!1;if(r.type===null){let A=n,E="";for(;A<e.length;){let y=e.charAt(A++);if(c||y==="\\"){c=!c,E+=y;continue}if(l){A===u+1?(y==="^"||y==="!")&&(d=!0):y==="]"&&!(A===u+2&&d)&&(l=!1),E+=y;continue}else if(y==="["){l=!0,u=A,d=!1,E+=y;continue}if(!i.noext&&e3(y)&&e.charAt(A)==="("&&s<=a){r.push(E),E="";let w=new Is(y,r);A=Is.#p(e,w,A,i,s+1),r.push(w);continue}E+=y}return r.push(E),A}let f=n+1,h=new Is(null,r),p=[],g="";for(;f<e.length;){let A=e.charAt(f++);if(c||A==="\\"){c=!c,g+=A;continue}if(l){f===u+1?(A==="^"||A==="!")&&(d=!0):A==="]"&&!(f===u+2&&d)&&(l=!1),g+=A;continue}else if(A==="["){l=!0,u=f,d=!1,g+=A;continue}if(!i.noext&&e3(A)&&e.charAt(f)==="("&&(s<=a||r&&r.#h(A))){let y=r&&r.#h(A)?0:1;h.push(g),g="";let C=new Is(A,h);h.push(C),f=Is.#p(e,C,f,i,s+y);continue}if(A==="|"){h.push(g),g="",p.push(h),h=new Is(null,r);continue}if(A===")")return g===""&&r.#t.length===0&&(r.#f=!0),h.push(g),g="",r.push(...p,h),f;g+=A}return r.type=null,r.#r=void 0,r.#t=[e.substring(n-1)],f}#m(e){return this.#g(e,$7e)}#g(e,r=z7e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let n=e.#t[0];return!n||typeof n!="object"||n.type===null?!1:this.#h(n.type,r)}#h(e,r=j7e){return!!r.get(this.type)?.includes(e)}#I(e,r){let n=e.#t[0],i=new Is(null,n,this.options);i.#t.push(""),n.push(i),this.#y(e,r)}#y(e,r){let n=e.#t[0];this.#t.splice(r,1,...n.#t);for(let i of n.#t)typeof i=="object"&&(i.#i=this);this.#o=void 0}#b(e){return!!ude.get(this.type)?.has(e)}#E(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#b(r.type)}#B(e){let r=ude.get(this.type),n=e.#t[0],i=r?.get(n.type);if(!i)return!1;this.#t=n.#t;for(let s of this.#t)typeof s=="object"&&(s.#i=this);this.type=i,this.#o=void 0,this.#f=!1}static fromGlob(e,r={}){let n=new Is(null,void 0,r);return Is.#p(e,n,0,r,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#r||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let c=(this.#c.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:e})}get options(){return this.#c}toRegExpSource(e){let r=e??!!this.#c.dot;if(this.#e===this&&(this.#d(),this.#C()),!lde(this)){let l=this.isStart()&&this.isEnd()&&!this.#t.some(p=>typeof p!="string"),u=this.#t.map(p=>{let[g,A,E,y]=typeof p=="string"?Is.#S(p,this.#r,l):p.toRegExpSource(e);return this.#r=this.#r||E,this.#n=this.#n||y,g}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&Y7e.has(this.#t[0]))){let g=J7e,A=r&&g.has(u.charAt(0))||u.startsWith("\\.")&&g.has(u.charAt(2))||u.startsWith("\\.\\.")&&g.has(u.charAt(4)),E=!r&&!e&&g.has(u.charAt(0));d=A?W7e:E?zN:""}let f="";return this.isEnd()&&this.#e.#a&&this.#i?.type==="!"&&(f="(?:$|\\/)"),[d+u+f,af(u),this.#r=!!this.#r,this.#n]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#w(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,af(this.toString()),!1,!1]}let a=!n||e||r||!zN?"":this.#w(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let c="";if(this.type==="!"&&this.#f)c=(this.isStart()&&!r?zN:"")+fde;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?zN:"")+dde+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=i+s+l}return[c,af(s),this.#r=!!this.#r,this.#n]}#d(){if(lde(this)){let e=0,r=!1;do{r=!0;for(let n=0;n<this.#t.length;n++){let i=this.#t[n];typeof i=="object"&&(i.#d(),this.#g(i)?(r=!1,this.#y(i,n)):this.#m(i)?(r=!1,this.#I(i,n)):this.#E(i)&&(r=!1,this.#B(i)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#d();this.#o=void 0}#w(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,a]=r.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(e,r,n=!1){let i=!1,s="",a=!1,c=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(i){i=!1,s+=(K7e.has(u)?"\\":"")+u;continue}if(u==="*"){if(c)continue;c=!0,s+=n&&/^[*]+$/.test(e)?fde:dde,r=!0;continue}else c=!1;if(u==="\\"){l===e.length-1?s+="\\\\":i=!0;continue}if(u==="["){let[d,f,h,p]=cde(e,l);if(h){s+=d,a=a||f,l+=h-1,r=r||p;continue}}if(u==="?"){s+=t3,r=!0;continue}s+=X7e(u)}return[s,af(e),!!r,a]}};Is=cp;var r3=o((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!1}={})=>r?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");var ji=o((t,e,r={})=>(w0(e),!r.nocomment&&e.charAt(0)==="#"?!1:new cf(e,r).match(t)),"minimatch"),eXe=/^\*+([^+@!?*[(]*)$/,tXe=o(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),rXe=o(t=>e=>e.endsWith(t),"starDotExtTestDot"),nXe=o(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),iXe=o(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),sXe=/^\*+\.\*+$/,oXe=o(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),aXe=o(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),cXe=/^\.\*+$/,lXe=o(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),uXe=/^\*+$/,dXe=o(t=>t.length!==0&&!t.startsWith("."),"starTest"),fXe=o(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),hXe=/^\?+([^+@!?*[(]*)?$/,pXe=o(([t,e=""])=>{let r=Ade([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),AXe=o(([t,e=""])=>{let r=mde([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),mXe=o(([t,e=""])=>{let r=mde([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),gXe=o(([t,e=""])=>{let r=Ade([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),Ade=o(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),mde=o(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),gde=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",hde={win32:{sep:"\\"},posix:{sep:"/"}},yXe=gde==="win32"?hde.win32.sep:hde.posix.sep;ji.sep=yXe;var Ni=Symbol("globstar **");ji.GLOBSTAR=Ni;var EXe="[^/]",CXe=EXe+"*?",bXe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wXe="(?:(?!(?:\\/|^)\\.).)*?",IXe=o((t,e={})=>r=>ji(r,t,e),"filter");ji.filter=IXe;var jo=o((t,e={})=>Object.assign({},t,e),"ext"),SXe=o(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ji;let e=ji;return Object.assign(o((n,i,s={})=>e(n,i,jo(t,s)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s={}){super(i,jo(t,s))}static defaults(i){return e.defaults(jo(t,i)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(i,s,a={}){super(i,s,jo(t,a))}static fromGlob(i,s={}){return e.AST.fromGlob(i,jo(t,s))}},unescape:o((n,i={})=>e.unescape(n,jo(t,i)),"unescape"),escape:o((n,i={})=>e.escape(n,jo(t,i)),"escape"),filter:o((n,i={})=>e.filter(n,jo(t,i)),"filter"),defaults:o(n=>e.defaults(jo(t,n)),"defaults"),makeRe:o((n,i={})=>e.makeRe(n,jo(t,i)),"makeRe"),braceExpand:o((n,i={})=>e.braceExpand(n,jo(t,i)),"braceExpand"),match:o((n,i,s={})=>e.match(n,i,jo(t,s)),"match"),sep:e.sep,GLOBSTAR:Ni})},"defaults");ji.defaults=SXe;var yde=o((t,e={})=>(w0(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:ode(t,{max:e.braceExpandMax})),"braceExpand");ji.braceExpand=yde;var BXe=o((t,e={})=>new cf(t,e).makeRe(),"makeRe");ji.makeRe=BXe;var xXe=o((t,e,r={})=>{let n=new cf(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t},"match");ji.match=xXe;var pde=/[?*]|[+@!]\(.*?\)|\[|\]/,vXe=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),cf=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){w0(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||gde,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!pde.test(s[2]))&&!pde.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(d=>this.parse(d))];if(u)return[s[0],...s.slice(1).map(d=>this.parse(d))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let a=this.set[s];a[0]===""&&a[1]===""&&this.globParts[s][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n of e)for(let i=0;i<n.length;i++)n[i]==="**"&&(n[i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let i=e[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(r=!0,e.splice(n-1,2),n-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let n of e){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let a=i;for(;n[a+1]==="**";)a++;a>i&&n.splice(i+1,a-i);let c=n[i+1],l=n[i+2],u=n[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let d=n.slice(0);d[i]="**",e.push(d),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let c=n[a];a===1&&c===""&&n[0]===""||(c==="."||c==="")&&(r=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let a=n[s-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;let l=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...l),n.length===0&&n.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let n=r+1;n<e.length;n++){let i=this.partsMatch(e[r],e[n],!this.preserveMultipleSlashes);if(i){e[r]=[],e[n]=i;break}}return e.filter(r=>r.length)}partsMatch(e,r,n=!1){let i=0,s=0,a=[],c="";for(;i<e.length&&s<r.length;)if(e[i]===r[s])a.push(c==="b"?r[s]:e[i]),i++,s++;else if(n&&e[i]==="**"&&r[s]===e[i+1])a.push(e[i]),i++;else if(n&&r[s]==="**"&&e[i]===r[s+1])a.push(r[s]),s++;else if(e[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",a.push(e[i]),i++,s++}else if(r[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(c==="a")return!1;c="b",a.push(r[s]),i++,s++}else return!1;return e.length===r.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,n=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=e.slice(n)),this.negate=r}matchOne(e,r,n=!1){let i=0,s=0;if(this.isWindows){let c=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!c&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),d=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),f=l?3:c?0:void 0,h=d?3:u?0:void 0;if(typeof f=="number"&&typeof h=="number"){let[p,g]=[e[f],r[h]];p.toLowerCase()===g.toLowerCase()&&(r[h]=p,s=h,i=f)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(Ni)?this.#e(e,r,n,i,s):this.#n(e,r,n,i,s)}#e(e,r,n,i,s){let a=r.indexOf(Ni,s),c=r.lastIndexOf(Ni),[l,u,d]=n?[r.slice(s,a),r.slice(a+1),[]]:[r.slice(s,a),r.slice(a+1,c),r.slice(c+1)];if(l.length){let C=e.slice(i,i+l.length);if(!this.#n(C,l,n,0,0))return!1;i+=l.length,s+=l.length}let f=0;if(d.length){if(d.length+i>e.length)return!1;let C=e.length-d.length;if(this.#n(e,d,n,C,0))f=d.length;else{if(e[e.length-1]!==""||i+d.length===e.length||(C--,!this.#n(e,d,n,C,0)))return!1;f=d.length+1}}if(!u.length){let C=!!f;for(let w=i;w<e.length-f;w++){let B=String(e[w]);if(C=!0,B==="."||B===".."||!this.options.dot&&B.startsWith("."))return!1}return n||C}let h=[[[],0]],p=h[0],g=0,A=[0];for(let C of u)C===Ni?(A.push(g),p=[[],0],h.push(p)):(p[0].push(C),g++);let E=h.length-1,y=e.length-f;for(let C of h)C[1]=y-(A[E--]+C[0].length);return!!this.#r(e,h,i,0,n,0,!!f)}#r(e,r,n,i,s,a,c){let l=r[i];if(!l){for(let f=n;f<e.length;f++){c=!0;let h=e[f];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return c}let[u,d]=l;for(;n<=d;){if(this.#n(e.slice(0,n+u.length),u,s,n,0)&&a<this.maxGlobstarRecursion){let p=this.#r(e,r,n+u.length,i+1,s,a+1,c);if(p!==!1)return p}let h=e[n];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;n++}return s||null}#n(e,r,n,i,s){let a,c,l,u;for(a=i,c=s,u=e.length,l=r.length;a<u&&c<l;a++,c++){this.debug("matchOne loop");let d=r[c],f=e[a];if(this.debug(r,d,f),d===!1||d===Ni)return!1;let h;if(typeof d=="string"?(h=f===d,this.debug("string match",d,f,h)):(h=d.test(f),this.debug("pattern match",d,f,h)),!h)return!1}if(a===u&&c===l)return!0;if(a===u)return n;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return yde(this.pattern,this.options)}parse(e){w0(e);let r=this.options;if(e==="**")return Ni;if(e==="")return"";let n,i=null;(n=e.match(uXe))?i=r.dot?fXe:dXe:(n=e.match(eXe))?i=(r.nocase?r.dot?iXe:nXe:r.dot?rXe:tXe)(n[1]):(n=e.match(hXe))?i=(r.nocase?r.dot?AXe:pXe:r.dot?mXe:gXe)(n):(n=e.match(sXe))?i=r.dot?aXe:oXe:(n=e.match(cXe))&&(i=lXe);let s=cp.fromGlob(e,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?CXe:r.dot?bXe:wXe,i=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))i.add(h);return typeof f=="string"?vXe(f):f===Ni?Ni:f._src});u.forEach((f,h)=>{let p=u[h+1],g=u[h-1];f!==Ni||g===Ni||(g===void 0?p!==void 0&&p!==Ni?u[h+1]="(?:\\/|"+n+"\\/)?"+p:u[h]=n:p===void 0?u[h-1]=g+"(?:\\/|\\/"+n+")?":p!==Ni&&(u[h-1]=g+"(?:\\/|\\/"+n+"\\/)"+p,u[h+1]=Ni))});let d=u.filter(f=>f!==Ni);if(this.partial&&d.length>=1){let f=[];for(let h=1;h<=d.length;h++)f.push(d.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return d.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c of s){let l=i;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return ji.defaults(e).Minimatch}};ji.AST=cp;ji.Minimatch=cf;ji.escape=r3;ji.unescape=af;var lp=N(require("path"),1);var Cg=N(require("assert"),1);var NXe=process.platform==="win32",up=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if((0,Cg.default)(e,"Parameter 'itemPath' must not be empty"),e=ku(e),!C0(e))this.segments=e.split(lp.sep);else{let r=e,n=Ou(r);for(;n!==r;){let i=lp.basename(r);this.segments.unshift(i),r=n,n=Ou(r)}this.segments.unshift(r)}else{(0,Cg.default)(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];(0,Cg.default)(n,"Parameter 'itemPath' must not contain any empty segments"),n=Ka(e[r]),r===0&&C0(n)?(n=ku(n),(0,Cg.default)(n===Ou(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):((0,Cg.default)(!n.includes(lp.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(lp.sep)||NXe&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=lp.sep,e+=this.segments[n];return e}};var Lu=process.platform==="win32",S0=class t{static{o(this,"Pattern")}constructor(e,r=!1,n,i){this.negate=!1;let s;if(typeof e=="string")s=e.trim();else{n=n||[],(0,lf.default)(n.length,"Parameter 'segments' must not empty");let u=t.getLiteral(n[0]);(0,lf.default)(u&&E0(u),"Parameter 'segments' first element must be a root path"),s=new up(n).toString().trim(),e&&(s=`!${s}`)}for(;s.startsWith("!");)this.negate=!this.negate,s=s.substr(1).trim();s=t.fixupPattern(s,i),this.segments=new up(s).segments,this.trailingSeparator=Ka(s).endsWith(bg.sep),s=ku(s);let a=!1,c=this.segments.map(u=>t.getLiteral(u)).filter(u=>!a&&!(a=u===""));this.searchPath=new up(c).toString(),this.rootRegExp=new RegExp(t.regExpEscape(c[0]),Lu?"i":""),this.isImplicitPattern=r;let l={dot:!0,nobrace:!0,nocase:Lu,nocomment:!0,noext:!0,nonegate:!0};s=Lu?s.replace(/\\/g,"/"):s,this.minimatch=new cf(s,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Ka(e),!e.endsWith(bg.sep)&&this.isImplicitPattern===!1&&(e=`${e}${bg.sep}`)):e=ku(e),this.minimatch.match(e)?this.trailingSeparator?Xa.Directory:Xa.All:Xa.None}partialMatch(e){return e=ku(e),Ou(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Lu?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Lu?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){(0,lf.default)(e,"pattern cannot be empty");let n=new up(e).segments.map(i=>t.getLiteral(i));if((0,lf.default)(n.every((i,s)=>(i!=="."||s===0)&&i!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),(0,lf.default)(!C0(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Ka(e),e==="."||e.startsWith(`.${bg.sep}`))e=t.globEscape(process.cwd())+e.substr(1);else if(e==="~"||e.startsWith(`~${bg.sep}`))r=r||Ede.homedir(),(0,lf.default)(r,"Unable to determine HOME directory"),(0,lf.default)(E0(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),e=t.globEscape(r)+e.substr(1);else if(Lu&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let i=VN("C:\\dummy-root",e.substr(0,2));e.length>2&&!i.endsWith("\\")&&(i+="\\"),e=t.globEscape(i)+e.substr(2)}else if(Lu&&(e==="\\"||e.match(/^\\[^\\]/))){let i=VN("C:\\dummy-root","\\");i.endsWith("\\")||(i+="\\"),e=t.globEscape(i)+e.substr(1)}else e=VN(t.globEscape(process.cwd()),e);return Ka(e)}static getLiteral(e){let r="";for(let n=0;n<e.length;n++){let i=e[n];if(i==="\\"&&!Lu&&n+1<e.length){r+=e[++n];continue}else{if(i==="*"||i==="?")return"";if(i==="["&&n+1<e.length){let s="",a=-1;for(let c=n+1;c<e.length;c++){let l=e[c];if(l==="\\"&&!Lu&&c+1<e.length){s+=e[++c];continue}else if(l==="]"){a=c;break}else s+=l}if(a>=0){if(s.length>1)return"";if(s){r+=s,n=a;continue}}}}r+=i}return r}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}};var B0=class{static{o(this,"SearchState")}constructor(e,r){this.path=e,this.level=r}};var n3=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},_Xe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,l){a=t[s](a),i(c,l,a.done,a.value)})}}function i(s,a,c,l){Promise.resolve(l).then(function(u){s({value:u,done:c})},a)}},uf=function(t){return this instanceof uf?(this.v=t,this):new uf(t)},TXe=function(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(p){return function(g){return Promise.resolve(g).then(p,f)}}function c(p,g){n[p]&&(i[p]=function(A){return new Promise(function(E,y){s.push([p,A,E,y])>1||l(p,A)})},g&&(i[p]=g(i[p])))}function l(p,g){try{u(n[p](g))}catch(A){h(s[0][3],A)}}function u(p){p.value instanceof uf?Promise.resolve(p.value.v).then(d,f):h(s[0][2],p)}function d(p){l("next",p)}function f(p){l("throw",p)}function h(p,g){p(g),s.shift(),s.length&&l(s[0][0],s[0][1])}},RXe=process.platform==="win32",$N=class t{static{o(this,"DefaultGlobber")}constructor(e){this.patterns=[],this.searchPaths=[],this.options=$q(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return n3(this,void 0,void 0,function*(){var e,r,n,i;let s=[];try{for(var a=!0,c=_Xe(this.globGenerator()),l;l=yield c.next(),e=l.done,!e;a=!0){i=l.value,a=!1;let u=i;s.push(u)}}catch(u){r={error:u}}finally{try{!a&&!e&&(n=c.return)&&(yield n.call(c))}finally{if(r)throw r.error}}return s})}globGenerator(){return TXe(this,arguments,o(function*(){let r=$q(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 S0(a.negate,!0,a.segments.concat("**")));let i=[];for(let a of Wq(n)){$o(`Search path '${a}'`);try{yield uf(wg.promises.lstat(a))}catch(c){if(c.code==="ENOENT")continue;throw c}i.unshift(new B0(a,1))}let s=[];for(;i.length;){let a=i.pop(),c=Zue(n,a.path),l=!!c||ede(n,a.path);if(!c&&!l)continue;let u=yield uf(t.stat(a,r,s));if(u&&!(r.excludeHiddenFiles&&jN.basename(a.path).match(/^\./)))if(u.isDirectory()){if(c&Xa.Directory&&r.matchDirectories)yield yield uf(a.path);else if(!l)continue;let d=a.level+1,f=(yield uf(wg.promises.readdir(a.path))).map(h=>new B0(jN.join(a.path,h),d));i.push(...f.reverse())}else c&Xa.File&&(yield yield uf(a.path))}},"globGenerator_1"))}static create(e,r){return n3(this,void 0,void 0,function*(){let n=new t(r);RXe&&(e=e.replace(/\r\n/g,`
|
|
`),e=e.replace(/\r/g,`
|
|
`));let i=e.split(`
|
|
`).map(s=>s.trim());for(let s of i)!s||s.startsWith("#")||n.patterns.push(new S0(s));return n.searchPaths.push(...Wq(n.patterns)),n})}static stat(e,r,n){return n3(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield wg.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){$o(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else i=yield wg.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let s=yield wg.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){$o(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return i})}};var DXe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Cde(t,e){return DXe(this,void 0,void 0,function*(){return yield $N.create(t,e)})}o(Cde,"create");var l_=N(require("crypto"),1),xg=N(require("fs"),1),dp=N(require("path"),1),hhe=N(dhe(),1),phe=N(require("util"),1);var R0;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(R0||(R0={}));var Ji;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ji||(Ji={}));var ao;(function(t){t.GNU="gnu",t.BSD="bsd"})(ao||(ao={}));var o_=2,a_=5e3,S3=5e3,B3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,fhe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,D0="cache.tar",x3="manifest.txt",i7t=10*Math.pow(1024,3),c_="cache read denied:";var Bg=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Htt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,l){a=t[s](a),i(c,l,a.done,a.value)})}}function i(s,a,c,l){Promise.resolve(l).then(function(u){s({value:u,done:c})},a)}},Vtt="1.0";function fp(){return Bg(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=dp.join(n,"actions","temp")}let r=dp.join(e,l_.randomUUID());return yield Pu(r),r})}o(fp,"createTempDirectory");function Vc(t){return xg.statSync(t).size}o(Vc,"getArchiveFileSizeInBytes");function v3(t){return Bg(this,void 0,void 0,function*(){var e,r,n,i,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),l=yield Cde(t.join(`
|
|
`),{implicitDescendants:!1});try{for(var u=!0,d=Htt(l.globGenerator()),f;f=yield d.next(),e=f.done,!e;u=!0){i=f.value,u=!1;let p=dp.relative(c,i).replace(new RegExp(`\\${dp.sep}`,"g"),"/");R(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(v3,"resolvePaths");function Q0(t){return Bg(this,void 0,void 0,function*(){return phe.promisify(xg.unlink)(t)})}o(Q0,"unlinkFile");function Ahe(t){return Bg(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),R(`Checking ${e} ${r.join(" ")}`);try{yield oo(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(i=>n+=i.toString(),"stdout"),stderr:o(i=>n+=i.toString(),"stderr")}})}catch(i){R(i.message)}return n=n.trim(),R(n),n})}o(Ahe,"getVersion");function P0(){return Bg(this,void 0,void 0,function*(){let t=yield Ahe("zstd",["--quiet"]),e=hhe.clean(t);return R(`zstd version: ${e}`),t===""?Ji.Gzip:Ji.ZstdWithoutLong})}o(P0,"getCompressionMethod");function ff(t){return t===Ji.Gzip?R0.Gzip:R0.Zstd}o(ff,"getCacheFileName");function mhe(){return Bg(this,void 0,void 0,function*(){return xg.existsSync(B3)?B3:(yield Ahe("tar")).toLowerCase().includes("gnu tar")?ci("tar"):""})}o(mhe,"getGnuTarPathOnWindows");function N3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(N3,"assertDefined");function vg(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Vtt),l_.createHash("sha256").update(n.join("|")).digest("hex")}o(vg,"getCacheVersion");function ghe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(ghe,"getRuntimeToken");var O0=N(require("http"),1),R3=N(require("https"),1);function _3(t){let e=t.protocol==="https:";if(ztt(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 d_(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new d_(`http://${r}`)}else return}o(_3,"getProxyUrl");function ztt(t){if(!t.hostname)return!1;let e=t.hostname;if($tt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(ztt,"checkBypass");function $tt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o($tt,"isLoopbackAddress");var d_=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var hf=N(pm(),1),yhe=N(ef(),1);var Xr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Pr;(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"})(Pr||(Pr={}));var Yi;(function(t){t.Accept="accept",t.ContentType="content-type"})(Yi||(Yi={}));var Fu;(function(t){t.ApplicationJson="application/json"})(Fu||(Fu={}));var Wtt=[Pr.MovedPermanently,Pr.ResourceMoved,Pr.SeeOther,Pr.TemporaryRedirect,Pr.PermanentRedirect],Jtt=[Pr.BadGateway,Pr.ServiceUnavailable,Pr.GatewayTimeout],Ytt=["OPTIONS","GET","DELETE","HEAD"],Ktt=10,Xtt=5,zc=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},T3=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Xr(this,void 0,void 0,function*(){return new Promise(e=>Xr(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 Xr(this,void 0,void 0,function*(){return new Promise(e=>Xr(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 Mu=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Xr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Xr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Xr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Xr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Xr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Xr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Xr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return Xr(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return Xr(this,arguments,void 0,function*(r,n={}){n[Yi.Accept]=this._getExistingOrDefaultHeader(n,Yi.Accept,Fu.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return Xr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Yi.Accept]=this._getExistingOrDefaultHeader(s,Yi.Accept,Fu.ApplicationJson),s[Yi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Fu.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Xr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Yi.Accept]=this._getExistingOrDefaultHeader(s,Yi.Accept,Fu.ApplicationJson),s[Yi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Fu.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Xr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Yi.Accept]=this._getExistingOrDefaultHeader(s,Yi.Accept,Fu.ApplicationJson),s[Yi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Fu.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return Xr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&Ytt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===Pr.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&Wtt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!Jtt.includes(u.message.statusCode))return u;l+=1,l<c&&(yield u.readBody(),yield this._performExponentialBackoff(l))}while(l<c);return u})}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,r){return Xr(this,void 0,void 0,function*(){return new Promise((n,i)=>{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new T3(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=_3(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?R3:O0;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},k0(this.requestOptions.headers),k0(e||{})):k0(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=k0(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=k0(this.requestOptions.headers)[Yi.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Yi.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=_3(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||O0.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?hf.httpsOverHttps:hf.httpsOverHttp:l=u?hf.httpOverHttps:hf.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new R3.Agent(c):new O0.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new yhe.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return Xr(this,void 0,void 0,function*(){e=Math.min(Ktt,e);let r=Xtt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Xr(this,void 0,void 0,function*(){return new Promise((n,i)=>Xr(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===Pr.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new zc(d,s);f.result=a.result,i(f)}else n(a)}))})}},k0=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var Ztt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};var Ng=class{static{o(this,"BearerCredentialHandler")}constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Ztt(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var iy=N(require("fs"),1),Wye=require("url");var $c=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};var Ehe=require("node:os"),Che=N(require("node:util"),1),bhe=N(require("node:process"),1);function whe(t,...e){bhe.default.stderr.write(`${Che.default.format(t,...e)}${Ehe.EOL}`)}o(whe,"log");var Ihe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Bhe,D3=[],Q3=[],f_=[];Ihe&&P3(Ihe);var xhe=Object.assign(t=>vhe(t),{enable:P3,enabled:k3,disable:ert,log:whe});function P3(t){Bhe=t,D3=[],Q3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?Q3.push(r.substring(1)):D3.push(r);for(let r of f_)r.enabled=k3(r.namespace)}o(P3,"enable");function k3(t){if(t.endsWith("*"))return!0;for(let e of Q3)if(She(t,e))return!1;for(let e of D3)if(She(t,e))return!0;return!1}o(k3,"enabled");function She(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],p="";for(let g of e)g==="*"&&p==="*"||(p=g,h.push(g));r=h.join("")}let n=0,i=0,s=r.length,a=t.length,c=-1,l=-1;for(;n<a&&i<s;)if(r[i]==="*"){if(c=i,i++,i===s)return!0;for(;t[n]!==r[i];)if(n++,n===a)return!1;l=n,n++,i++;continue}else if(r[i]===t[n])i++,n++;else if(c>=0){if(i=c+1,n=l+1,n===a)return!1;for(;t[n]!==r[i];)if(n++,n===a)return!1;l=n,n++,i++;continue}else return!1;let u=n===t.length,d=i===r.length,f=i===r.length-1&&r[i]==="*";return u&&(d||f)}o(She,"namespaceMatches");function ert(){let t=Bhe||"";return P3(""),t}o(ert,"disable");function vhe(t){let e=Object.assign(r,{enabled:k3(t),destroy:trt,log:xhe.log,namespace:t,extend:rrt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),f_.push(e),e}o(vhe,"createDebugger");function trt(){let t=f_.indexOf(this);return t>=0?(f_.splice(t,1),!0):!1}o(trt,"destroy");function rrt(t){let e=vhe(`${this.namespace}:${t}`);return e.log=this.log,e}o(rrt,"extend");var _g=xhe;var O3=["verbose","info","warning","error"],Nhe={verbose:400,info:300,warning:200,error:100};function _he(t,e){e.log=(...r)=>{t.log(...r)}}o(_he,"patchLogMethod");function The(t){return O3.includes(t)}o(The,"isTypeSpecRuntimeLogLevel");function h_(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,i=_g(t.namespace);i.log=(...d)=>{_g.log(...d)};function s(d){if(d&&!The(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${O3.join(",")}`);n=d;let f=[];for(let h of e)a(h)&&f.push(h.namespace);_g.enable(f.join(","))}o(s,"contextSetLogLevel"),r&&(The(r)?s(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${O3.join(", ")}.`));function a(d){return!!(n&&Nhe[d.level]<=Nhe[n])}o(a,"shouldEnable");function c(d,f){let h=Object.assign(d.extend(f),{level:f});if(_he(d,h),a(h)){let p=_g.disable();_g.enable(p+","+h.namespace)}return e.add(h),h}o(c,"createLogger");function l(){return n}o(l,"contextGetLogLevel");function u(d){let f=i.extend(d);return _he(i,f),{error:c(f,"error"),warning:c(f,"warning"),info:c(f,"info"),verbose:c(f,"verbose")}}return o(u,"contextCreateClientLogger"),{setLogLevel:s,getLogLevel:l,createClientLogger:u,logger:i}}o(h_,"createLoggerContext");var Rhe=h_({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),nrt=Rhe.logger;function L0(t){return Rhe.createClientLogger(t)}o(L0,"createClientLogger");function p_(t){return t.toLowerCase()}o(p_,"normalizeName");function*irt(t){for(let e of t.values())yield[e.name,e.value]}o(irt,"headerIterator");var L3=class{static{o(this,"HttpHeadersImpl")}_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(p_(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(p_(e))?.value}has(e){return this._headersMap.has(p_(e))}delete(e){this._headersMap.delete(p_(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]=n.value;else for(let[n,i]of this._headersMap)r[n]=i.value;return r}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return irt(this._headersMap)}};function co(t){return new L3(t)}o(co,"createHttpHeaders");function hp(){return crypto.randomUUID()}o(hp,"randomUUID");var F3=class{static{o(this,"PipelineRequestImpl")}url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??co(),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||hp(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function A_(t){return new F3(t)}o(A_,"createPipelineRequest");var Dhe=new Set(["Deserialize","Serialize","Retry","Sign"]),M3=class t{static{o(this,"HttpPipeline")}_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,r={}){if(r.phase&&r.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(r.phase&&!Dhe.has(r.phase))throw new Error(`Invalid phase name: ${r.phase}`);if(r.afterPhase&&!Dhe.has(r.afterPhase))throw new Error(`Invalid afterPhase name: ${r.afterPhase}`);this._policies.push({policy:e,options:r}),this._orderedPolicies=void 0}removePolicy(e){let r=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(r.push(n.policy),!1):!0),this._orderedPolicies=void 0,r}sendRequest(e,r){return this.getOrderedPolicies().reduceRight((s,a)=>c=>a.sendRequest(c,s),s=>e.sendRequest(s))(r)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new t(this._policies)}static create(){return new t}orderPolicies(){let e=[],r=new Map;function n(g){return{name:g,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}o(n,"createPhase");let i=n("Serialize"),s=n("None"),a=n("Deserialize"),c=n("Retry"),l=n("Sign"),u=[i,s,a,c,l];function d(g){return g==="Retry"?c:g==="Serialize"?i:g==="Deserialize"?a:g==="Sign"?l:s}o(d,"getPhase");for(let g of this._policies){let A=g.policy,E=g.options,y=A.name;if(r.has(y))throw new Error("Duplicate policy names not allowed in pipeline");let C={policy:A,dependsOn:new Set,dependants:new Set};E.afterPhase&&(C.afterPhase=d(E.afterPhase),C.afterPhase.hasAfterPolicies=!0),r.set(y,C),d(E.phase).policies.add(C)}for(let g of this._policies){let{policy:A,options:E}=g,y=A.name,C=r.get(y);if(!C)throw new Error(`Missing node for policy ${y}`);if(E.afterPolicies)for(let w of E.afterPolicies){let B=r.get(w);B&&(C.dependsOn.add(B),B.dependants.add(C))}if(E.beforePolicies)for(let w of E.beforePolicies){let B=r.get(w);B&&(B.dependsOn.add(C),C.dependants.add(B))}}function f(g){g.hasRun=!0;for(let A of g.policies)if(!(A.afterPhase&&(!A.afterPhase.hasRun||A.afterPhase.policies.size))&&A.dependsOn.size===0){e.push(A.policy);for(let E of A.dependants)E.dependsOn.delete(A);r.delete(A.policy.name),g.policies.delete(A)}}o(f,"walkPhase");function h(){for(let g of u){if(f(g),g.policies.size>0&&g!==s){s.hasRun||f(s);return}g.hasAfterPolicies&&f(s)}}o(h,"walkPhases");let p=0;for(;r.size>0;){p++;let g=e.length;if(h(),e.length<=g&&p>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}};function m_(){return M3.create()}o(m_,"createEmptyPipeline");function Tg(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}o(Tg,"isObject");function pp(t){if(Tg(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}o(pp,"isError");var Qhe=require("node:util"),Phe=Qhe.inspect.custom;var U3="REDACTED",srt=["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"],ort=["api-version"],Za=class{static{o(this,"Sanitizer")}allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:r=[]}={}){e=srt.concat(e),r=ort.concat(r),this.allowedHeaderNames=new Set(e.map(n=>n.toLowerCase())),this.allowedQueryParameters=new Set(r.map(n=>n.toLowerCase()))}sanitize(e){let r=new Set;return JSON.stringify(e,(n,i)=>{if(i instanceof Error)return{...i,name:i.name,message:i.message};if(n==="headers")return this.sanitizeHeaders(i);if(n==="url")return this.sanitizeUrl(i);if(n==="query")return this.sanitizeQuery(i);if(n==="body")return;if(n==="response")return;if(n==="operationSpec")return;if(Array.isArray(i)||Tg(i)){if(r.has(i))return"[Circular]";r.add(i)}return i},2)}sanitizeUrl(e){if(typeof e!="string"||e===null||e==="")return e;let r=new URL(e);if(!r.search)return e;for(let[n]of r.searchParams)this.allowedQueryParameters.has(n.toLowerCase())||r.searchParams.set(n,U3);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]=U3;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]=U3;return r}};var art=new Za,Ki=class t extends Error{static{o(this,"RestError")}static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,r={}){super(e),this.name="RestError",this.code=r.code,this.statusCode=r.statusCode,Object.defineProperty(this,"request",{value:r.request,enumerable:!1}),Object.defineProperty(this,"response",{value:r.response,enumerable:!1});let n=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,Phe,{value:o(()=>`RestError: ${this.message}
|
|
${art.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function g_(t){return t instanceof Ki?!0:pp(t)&&t.name==="RestError"}o(g_,"isRestError");function Ss(t,e){return Buffer.from(t,e)}o(Ss,"stringToUint8Array");var y_=N(require("node:http"),1),E_=N(require("node:https"),1),q3=N(require("node:zlib"),1),Ohe=require("node:stream");var Yo=L0("ts-http-runtime");var crt={};function F0(t){return t&&typeof t.pipe=="function"}o(F0,"isReadableStream");function khe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(khe,"isStreamComplete");function Lhe(t){return t&&typeof t.byteLength=="number"}o(Lhe,"isArrayBuffer");var C_=class extends Ohe.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(i){n(i)}}constructor(e){super(),this.progressCallback=e}},G3=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new $c("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let i;e.timeout>0&&(i=setTimeout(()=>{let u=new Za;Yo.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=frt(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let g=e.onUploadProgress,A=new C_(g);A.on("error",E=>{Yo.error("Error in upload progress",E)}),F0(c)?c.pipe(A):A.end(c),c=A}let u=await this.makeRequest(e,r,c);i!==void 0&&clearTimeout(i);let d=lrt(u),h={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),h;l=a?urt(u,d):u;let p=e.onDownloadProgress;if(p){let g=new C_(p);g.on("error",A=>{Yo.error("Error in download progress",A)}),l.pipe(g),l=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=l:h.bodyAsText=await drt(l),h}finally{if(e.abortSignal&&n){let u=Promise.resolve();F0(c)&&(u=khe(c));let d=Promise.resolve();F0(l)&&(d=khe(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(f=>{Yo.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,n){let i=new URL(e.url),s=i.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=s?y_.default.request(c,l):E_.default.request(c,l);d.once("error",f=>{u(new Ki(f.message,{code:f.code??Ki.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new $c("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(f),u(f)}),n&&F0(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):Lhe(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Yo.error("Unrecognized body type",n),u(new Ki("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?y_.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new y_.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return E_.default.globalAgent;let i=e.tlsSettings??crt,s=this.cachedHttpsAgents.get(i);return s&&s.options.keepAlive===!n||(Yo.info("No cached TLS Agent exist, creating a new Agent"),s=new E_.default.Agent({keepAlive:!n,...i}),this.cachedHttpsAgents.set(i,s)),s}}};function lrt(t){let e=co();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(lrt,"getResponseHeaders");function urt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=q3.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=q3.default.createInflate();return t.pipe(n),n}return t}o(urt,"getDecodedResponseStream");function drt(t){return new Promise((e,r)=>{let n=[];t.on("data",i=>{Buffer.isBuffer(i)?n.push(i):n.push(Buffer.from(i))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",i=>{i&&i?.name==="AbortError"?r(i):r(new Ki(`Error reading response as text: ${i.message}`,{code:Ki.PARSE_ERROR}))})})}o(drt,"streamToText");function frt(t){return t?Buffer.isBuffer(t)?t.length:F0(t)?null:Lhe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}o(frt,"getBodyLength");function Fhe(){return new G3}o(Fhe,"createNodeHttpClient");function b_(){return Fhe()}o(b_,"createDefaultHttpClient");var H3="logPolicy";function w_(t={}){let e=t.logger??Yo.info,r=new Za({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:H3,async sendRequest(n,i){if(!e.enabled)return i(n);e(`Request: ${r.sanitize(n)}`);let s=await i(n);return e(`Response status code: ${s.status}`),e(`Headers: ${r.sanitize(s.headers)}`),s}}}o(w_,"logPolicy");var I_="redirectPolicy",Mhe=["GET","HEAD"];function S_(t={}){let{maxRetries:e=20}=t;return{name:I_,async sendRequest(r,n){let i=await n(r);return Uhe(n,i,e)}}}o(S_,"redirectPolicy");async function Uhe(t,e,r,n=0){let{request:i,status:s,headers:a}=e,c=a.get("location");if(c&&(s===300||s===301&&Mhe.includes(i.method)||s===302&&Mhe.includes(i.method)||s===303&&i.method==="POST"||s===307)&&n<r){let l=new URL(c,i.url);i.url=l.toString(),s===303&&(i.method="GET",i.headers.delete("Content-Length"),delete i.body),i.headers.delete("Authorization");let u=await t(i);return Uhe(t,u,r,n+1)}return e}o(Uhe,"handleRedirect");function qhe(){return"User-Agent"}o(qhe,"getHeaderName");function Ghe(){return qhe()}o(Ghe,"getUserAgentHeaderName");var SXt=Ghe();var B_="decompressResponsePolicy";function x_(){return{name:B_,async sendRequest(t,e){return t.method!=="HEAD"&&t.headers.set("Accept-Encoding","gzip,deflate"),e(t)}}}o(x_,"decompressResponsePolicy");function M0(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}o(M0,"getRandomIntegerInclusive");function v_(t,e){let r=e.retryDelayInMs*Math.pow(2,t),n=Math.min(e.maxRetryDelayInMs,r);return{retryAfterInMs:n/2+M0(0,n/2)}}o(v_,"calculateRetryDelay");var hrt="The operation was aborted.";function Hhe(t,e,r){return new Promise((n,i)=>{let s,a,c=o(()=>i(new $c(r?.abortErrorMsg?r?.abortErrorMsg:hrt)),"rejectOnAbort"),l=o(()=>{r?.abortSignal&&a&&r.abortSignal.removeEventListener("abort",a)},"removeListeners");if(a=o(()=>(s&&clearTimeout(s),l(),c()),"onAborted"),r?.abortSignal&&r.abortSignal.aborted)return c();s=setTimeout(()=>{l(),n(e)},t),r?.abortSignal&&r.abortSignal.addEventListener("abort",a)})}o(Hhe,"delay");function Vhe(t,e){let r=t.headers.get(e);if(!r)return;let n=Number(r);if(!Number.isNaN(n))return n}o(Vhe,"parseHeaderValueAsNumber");var V3="Retry-After",prt=["retry-after-ms","x-ms-retry-after-ms",V3];function zhe(t){if(t&&[429,503].includes(t.status))try{for(let i of prt){let s=Vhe(t,i);if(s===0||s)return s*(i===V3?1e3:1)}let e=t.headers.get(V3);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}o(zhe,"getRetryAfterInMs");function $he(t){return Number.isFinite(zhe(t))}o($he,"isThrottlingRetryResponse");function z3(){return{name:"throttlingRetryStrategy",retry({response:t}){let e=zhe(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}o(z3,"throttlingRetryStrategy");var Art=1e3,mrt=1e3*64;function N_(t={}){let e=t.retryDelayInMs??Art,r=t.maxRetryDelayInMs??mrt;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:i,responseError:s}){let a=yrt(s),c=a&&t.ignoreSystemErrors,l=grt(i),u=l&&t.ignoreHttpStatusCodes;return i&&($he(i)||!l)||u||c?{skipStrategy:!0}:s&&!a&&!l?{errorToThrow:s}:v_(n,{retryDelayInMs:e,maxRetryDelayInMs:r})}}}o(N_,"exponentialRetryStrategy");function grt(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}o(grt,"isExponentialRetryResponse");function yrt(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}o(yrt,"isSystemError");var Ert=L0("ts-http-runtime retryPolicy"),Crt="retryPolicy";function mp(t,e={maxRetries:3}){let r=e.logger||Ert;return{name:Crt,async sendRequest(n,i){let s,a,c=-1;e:for(;;){c+=1,s=void 0,a=void 0;try{r.info(`Retry ${c}: Attempting to send request`,n.requestId),s=await i(n),r.info(`Retry ${c}: Received a response from request`,n.requestId)}catch(l){if(r.error(`Retry ${c}: Received an error from request`,n.requestId),a=l,!l||a.name!=="RestError")throw l;s=a.response}if(n.abortSignal?.aborted)throw r.error(`Retry ${c}: Request aborted.`),new $c;if(c>=(e.maxRetries??3)){if(r.info(`Retry ${c}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),a)throw a;if(s)return s;throw new Error("Maximum retries reached with no response or error to throw")}r.info(`Retry ${c}: Processing ${t.length} retry strategies.`);t:for(let l of t){let u=l.logger||r;u.info(`Retry ${c}: Processing retry strategy ${l.name}.`);let d=l.retry({retryCount:c,response:s,responseError:a});if(d.skipStrategy){u.info(`Retry ${c}: Skipped.`);continue t}let{errorToThrow:f,retryAfterInMs:h,redirectTo:p}=d;if(f)throw u.error(`Retry ${c}: Retry strategy ${l.name} throws error:`,f),f;if(h||h===0){u.info(`Retry ${c}: Retry strategy ${l.name} retries after ${h}`),await Hhe(h,void 0,{abortSignal:n.abortSignal});continue e}if(p){u.info(`Retry ${c}: Retry strategy ${l.name} redirects to ${p}`),n.url=p;continue e}}if(a)throw r.info("None of the retry strategies could work with the received error. Throwing it."),a;if(s)return r.info("None of the retry strategies could work with the received response. Returning it."),s}}}}o(mp,"retryPolicy");var $3="defaultRetryPolicy";function __(t={}){return{name:$3,sendRequest:mp([z3(),N_(t)],{maxRetries:t.maxRetries??3}).sendRequest}}o(__,"defaultRetryPolicy");var jhe=typeof window<"u"&&typeof window.document<"u",Whe=typeof self=="object"&&typeof self?.importScripts=="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),Jhe=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",Yhe=typeof Bun<"u"&&typeof Bun.version<"u",gp=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.node;var Khe=typeof navigator<"u"&&navigator?.product==="ReactNative";var j3="formDataPolicy";function brt(t){let e={};for(let[r,n]of t.entries())e[r]??=[],e[r].push(n);return e}o(brt,"formDataToFormDataMap");function T_(){return{name:j3,async sendRequest(t,e){if(gp&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=brt(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=wrt(t.formData):await Irt(t.formData,t),t.formData=void 0}return e(t)}}}o(T_,"formDataPolicy");function wrt(t){let e=new URLSearchParams;for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let i of n)e.append(r,i.toString());else e.append(r,n.toString());return e.toString()}o(wrt,"wwwFormUrlEncode");async function Irt(t,e){let r=e.headers.get("Content-Type");if(r&&!r.startsWith("multipart/form-data"))return;e.headers.set("Content-Type",r??"multipart/form-data");let n=[];for(let[i,s]of Object.entries(t))for(let a of Array.isArray(s)?s:[s])if(typeof a=="string")n.push({headers:co({"Content-Disposition":`form-data; name="${i}"`}),body:Ss(a,"utf-8")});else{if(a==null||typeof a!="object")throw new Error(`Unexpected value for key ${i}: ${a}. Value should be serialized to string first.`);{let c=a.name||"blob",l=co();l.set("Content-Disposition",`form-data; name="${i}"; filename="${c}"`),l.set("Content-Type",a.type||"application/octet-stream"),n.push({headers:l,body:a})}}e.multipartBody={parts:n}}o(Irt,"prepareFormData");var kpe=N(bpe(),1),Ope=N(Rpe(),1);var Dnt="HTTPS_PROXY",Qnt="HTTP_PROXY",Pnt="ALL_PROXY",knt="NO_PROXY",tG="proxyPolicy",Dpe=[],Lpe=!1,Ont=new Map;function U_(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}o(U_,"getEnvironmentValue");function Fpe(){if(!process)return;let t=U_(Dnt),e=U_(Pnt),r=U_(Qnt);return t||e||r}o(Fpe,"loadEnvironmentProxyValue");function Lnt(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let i=!1;for(let s of e)s[0]==="."?(n.endsWith(s)||n.length===s.length-1&&n===s.slice(1))&&(i=!0):n===s&&(i=!0);return r?.set(n,i),i}o(Lnt,"isBypassed");function Fnt(){let t=U_(knt);return Lpe=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(Fnt,"loadNoProxy");function rG(t){if(!t&&(t=Fpe(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}o(rG,"getDefaultProxySettings");function Mnt(){let t=Fpe();return t?new URL(t):void 0}o(Mnt,"getDefaultProxySettingsInternal");function Qpe(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}o(Qpe,"getUrlFromProxySettings");function Ppe(t,e,r){if(t.agent)return;let i=new URL(t.url).protocol!=="https:";t.tlsSettings&&Yo.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let s=t.headers.toJSON();i?(e.httpProxyAgent||(e.httpProxyAgent=new Ope.HttpProxyAgent(r,{headers:s})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new kpe.HttpsProxyAgent(r,{headers:s})),t.agent=e.httpsProxyAgent)}o(Ppe,"setProxyAgentOnRequest");function q_(t,e){Lpe||Dpe.push(...Fnt());let r=t?Qpe(t):Mnt(),n={};return{name:tG,async sendRequest(i,s){return!i.proxySettings&&r&&!Lnt(i.url,e?.customNoProxyList??Dpe,e?.customNoProxyList?void 0:Ont)?Ppe(i,n,r):i.proxySettings&&Ppe(i,n,Qpe(i.proxySettings)),s(i)}}}o(q_,"proxyPolicy");var nG="agentPolicy";function G_(t){return{name:nG,sendRequest:o(async(e,r)=>(e.agent||(e.agent=t),r(e)),"sendRequest")}}o(G_,"agentPolicy");var iG="tlsPolicy";function H_(t){return{name:iG,sendRequest:o(async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e)),"sendRequest")}}o(H_,"tlsPolicy");function V_(t){return typeof t.stream=="function"}o(V_,"isBlob");var z_=require("stream");async function*Mpe(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}o(Mpe,"streamAsyncIterator");function Unt(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=Mpe.bind(t)),t.values||(t.values=Mpe.bind(t))}o(Unt,"makeAsyncIterable");function Upe(t){return t instanceof ReadableStream?(Unt(t),z_.Readable.fromWeb(t)):t}o(Upe,"ensureNodeStream");function qnt(t){return t instanceof Uint8Array?z_.Readable.from(Buffer.from(t)):V_(t)?Upe(t.stream()):Upe(t)}o(qnt,"toStream");async function qpe(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(qnt);return z_.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}o(qpe,"concat");function Gnt(){return`----AzSDKFormBoundary${hp()}`}o(Gnt,"generateBoundary");function Hnt(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r
|
|
`;return e}o(Hnt,"encodeHeaders");function Vnt(t){return t instanceof Uint8Array?t.byteLength:V_(t)?t.size===-1?void 0:t.size:void 0}o(Vnt,"getLength");function znt(t){let e=0;for(let r of t){let n=Vnt(r);if(n===void 0)return;e+=n}return e}o(znt,"getTotalLength");async function $nt(t,e,r){let n=[Ss(`--${r}`,"utf-8"),...e.flatMap(s=>[Ss(`\r
|
|
`,"utf-8"),Ss(Hnt(s.headers),"utf-8"),Ss(`\r
|
|
`,"utf-8"),s.body,Ss(`\r
|
|
--${r}`,"utf-8")]),Ss(`--\r
|
|
\r
|
|
`,"utf-8")],i=znt(n);i&&t.headers.set("Content-Length",i),t.body=await qpe(n)}o($nt,"buildRequestBody");var q0="multipartPolicy",jnt=70,Wnt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Jnt(t){if(t.length>jnt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Wnt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(Jnt,"assertValidBoundary");function $_(){return{name:q0,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",i=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=i;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?Jnt(r):r=Gnt(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await $nt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o($_,"multipartPolicy");function j_(){return m_()}o(j_,"createEmptyPipeline");var Gpe=h_({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),rrr=Gpe.logger;function Jc(t){return Gpe.createClientLogger(t)}o(Jc,"createClientLogger");var Yc=Jc("core-rest-pipeline");function aG(t={}){return w_({logger:Yc.info,...t})}o(aG,"logPolicy");var cG=I_;function lG(t={}){return S_(t)}o(lG,"redirectPolicy");var W_=N(require("node:os"),1),J_=N(require("node:process"),1);function Hpe(){return"User-Agent"}o(Hpe,"getHeaderName");async function Vpe(t){if(J_.default&&J_.default.versions){let e=`${W_.default.type()} ${W_.default.release()}; ${W_.default.arch()}`,r=J_.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(Vpe,"setPlatformSpecificData");var Y_="1.22.2";function nit(t){let e=[];for(let[r,n]of t){let i=n?`${r}/${n}`:r;e.push(i)}return e.join(" ")}o(nit,"getUserAgentString");function zpe(){return Hpe()}o(zpe,"getUserAgentHeaderName");async function K_(t){let e=new Map;e.set("core-rest-pipeline",Y_),await Vpe(e);let r=nit(e);return t?`${t} ${r}`:r}o(K_,"getUserAgentValue");var $pe=zpe(),jpe="userAgentPolicy";function uG(t={}){let e=K_(t.userAgentPrefix);return{name:jpe,async sendRequest(r,n){return r.headers.has($pe)||r.headers.set($pe,await e),n(r)}}}o(uG,"userAgentPolicy");var ho=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function dG(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,a)=>{function c(){a(new ho(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),s(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(dG,"createAbortablePromise");var cit="The delay was aborted.";function G0(t,e){let r,{abortSignal:n,abortErrorMsg:i}=e??{};return dG(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??cit})}o(G0,"delay");function Af(t){if(pp(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Af,"getErrorMessage");function Wpe(t){return pp(t)}o(Wpe,"isError");function Og(){return hp()}o(Og,"randomUUID");var Lt=gp;var Jpe=Symbol("rawContent");function hG(t){return typeof t[Jpe]=="function"}o(hG,"hasRawContent");function Ype(t){return hG(t)?t[Jpe]():t}o(Ype,"getRawContent");var X_=q0;function pG(){let t=$_();return{name:X_,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)hG(n.body)&&(n.body=Ype(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(pG,"multipartPolicy");var AG=B_;function mG(){return x_()}o(mG,"decompressResponsePolicy");function gG(t={}){return __(t)}o(gG,"defaultRetryPolicy");function yG(){return T_()}o(yG,"formDataPolicy");function mf(t){return rG(t)}o(mf,"getDefaultProxySettings");function EG(t,e){return q_(t,e)}o(EG,"proxyPolicy");var Kpe="setClientRequestIdPolicy";function CG(t="x-ms-client-request-id"){return{name:Kpe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(CG,"setClientRequestIdPolicy");function bG(t){return G_(t)}o(bG,"agentPolicy");function wG(t){return H_(t)}o(wG,"tlsPolicy");var Lg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Xpe(t={}){let e=new IG(t.parentContext);return t.span&&(e=e.setValue(Lg.span,t.span)),t.namespace&&(e=e.setValue(Lg.namespace,t.namespace)),e}o(Xpe,"createTracingContext");var IG=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var eAe=N(Zpe(),1),eT=eAe.state;function lit(){return{end:o(()=>{},"end"),isRecording:o(()=>!1,"isRecording"),recordException:o(()=>{},"recordException"),setAttribute:o(()=>{},"setAttribute"),setStatus:o(()=>{},"setStatus"),addEvent:o(()=>{},"addEvent")}}o(lit,"createDefaultTracingSpan");function uit(){return{createRequestHeaders:o(()=>({}),"createRequestHeaders"),parseTraceparentHeader:o(()=>{},"parseTraceparentHeader"),startSpan:o((t,e)=>({span:lit(),tracingContext:Xpe({parentContext:e.tracingContext})}),"startSpan"),withContext(t,e,...r){return e(...r)}}}o(uit,"createDefaultInstrumenter");function H0(){return eT.instrumenterImplementation||(eT.instrumenterImplementation=uit()),eT.instrumenterImplementation}o(H0,"getInstrumenter");function V0(t){let{namespace:e,packageName:r,packageVersion:n}=t;function i(u,d,f){let h=H0().startSpan(u,{...f,packageName:r,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext}),p=h.tracingContext,g=h.span;p.getValue(Lg.namespace)||(p=p.setValue(Lg.namespace,e)),g.setAttribute("az.namespace",p.getValue(Lg.namespace));let A=Object.assign({},d,{tracingOptions:{...d?.tracingOptions,tracingContext:p}});return{span:g,updatedOptions:A}}o(i,"startSpan");async function s(u,d,f,h){let{span:p,updatedOptions:g}=i(u,d,h);try{let A=await a(g.tracingOptions.tracingContext,()=>Promise.resolve(f(g,p)));return p.setStatus({status:"success"}),A}catch(A){throw p.setStatus({status:"error",error:A}),A}finally{p.end()}}o(s,"withSpan");function a(u,d,...f){return H0().withContext(u,d,...f)}o(a,"withContext");function c(u){return H0().parseTraceparentHeader(u)}o(c,"parseTraceparentHeader");function l(u){return H0().createRequestHeaders(u)}return o(l,"createRequestHeaders"),{startSpan:i,withSpan:s,withContext:a,parseTraceparentHeader:c,createRequestHeaders:l}}o(V0,"createTracingClient");var Uu=Ki;function Ep(t){return g_(t)}o(Ep,"isRestError");var tAe="tracingPolicy";function SG(t={}){let e=K_(t.userAgentPrefix),r=new Za({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),n=dit();return{name:tAe,async sendRequest(i,s){if(!n)return s(i);let a=await e,c={"http.url":r.sanitizeUrl(i.url),"http.method":i.method,"http.user_agent":a,requestId:i.requestId};a&&(c["http.user_agent"]=a);let{span:l,tracingContext:u}=fit(n,i,c)??{};if(!l||!u)return s(i);try{let d=await n.withContext(u,s,i);return pit(l,d),d}catch(d){throw hit(l,d),d}}}}o(SG,"tracingPolicy");function dit(){try{return V0({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:Y_})}catch(t){Yc.warning(`Error when creating the TracingClient: ${Af(t)}`);return}}o(dit,"tryCreateTracingClient");function fit(t,e,r){try{let{span:n,updatedOptions:i}=t.startSpan(`HTTP ${e.method}`,{tracingOptions:e.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return}let s=t.createRequestHeaders(i.tracingOptions.tracingContext);for(let[a,c]of Object.entries(s))e.headers.set(a,c);return{span:n,tracingContext:i.tracingOptions.tracingContext}}catch(n){Yc.warning(`Skipping creating a tracing span due to an error: ${Af(n)}`);return}}o(fit,"tryCreateSpan");function hit(t,e){try{t.setStatus({status:"error",error:Wpe(e)?e:void 0}),Ep(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(r){Yc.warning(`Skipping tracing span processing due to an error: ${Af(r)}`)}}o(hit,"tryProcessError");function pit(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){Yc.warning(`Skipping tracing span processing due to an error: ${Af(r)}`)}}o(pit,"tryProcessResponse");function tT(t){if(t instanceof AbortSignal)return{abortSignal:t};if(t.aborted)return{abortSignal:AbortSignal.abort(t.reason)};let e=new AbortController,r=!0;function n(){r&&(t.removeEventListener("abort",i),r=!1)}o(n,"cleanup");function i(){e.abort(t.reason),n()}return o(i,"listener"),t.addEventListener("abort",i),{abortSignal:e.signal,cleanup:n}}o(tT,"wrapAbortSignalLike");var Ait="wrapAbortSignalLikePolicy";function rAe(){return{name:Ait,sendRequest:o(async(t,e)=>{if(!t.abortSignal)return e(t);let{abortSignal:r,cleanup:n}=tT(t.abortSignal);t.abortSignal=r;try{return await e(t)}finally{n?.()}},"sendRequest")}}o(rAe,"wrapAbortSignalLikePolicy");function BG(t){let e=j_();return Lt&&(t.agent&&e.addPolicy(bG(t.agent)),t.tlsOptions&&e.addPolicy(wG(t.tlsOptions)),e.addPolicy(EG(t.proxyOptions)),e.addPolicy(mG())),e.addPolicy(rAe()),e.addPolicy(yG(),{beforePolicies:[X_]}),e.addPolicy(uG(t.userAgentOptions)),e.addPolicy(CG(t.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(pG(),{afterPhase:"Deserialize"}),e.addPolicy(gG(t.retryOptions),{phase:"Retry"}),e.addPolicy(SG({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),Lt&&e.addPolicy(lG(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(aG(t.loggingOptions),{afterPhase:"Sign"}),e}o(BG,"createPipelineFromOptions");function z0(){let t=b_();return{async sendRequest(e){let{abortSignal:r,cleanup:n}=e.abortSignal?tT(e.abortSignal):{};try{return e.abortSignal=r,await t.sendRequest(e)}finally{n?.()}}}}o(z0,"createDefaultHttpClient");function qu(t){return co(t)}o(qu,"createHttpHeaders");function $0(t){return A_(t)}o($0,"createPipelineRequest");var Dsr=Jc("core-rest-pipeline retryPolicy");var mit={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function git(t,e,r){async function n(){if(Date.now()<r)try{return await t()}catch{return null}else{let s=await t();if(s===null)throw new Error("Failed to refresh access token.");return s}}o(n,"tryGetAccessToken");let i=await n();for(;i===null;)await G0(e),i=await n();return i}o(git,"beginRefresh");function xG(t,e){let r=null,n=null,i,s={...mit,...e},a={get isRefreshing(){return r!==null},get shouldRefresh(){return a.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-s.refreshWindowInMs<Date.now()},get mustRefresh(){return n===null||n.expiresOnTimestamp-s.forcedRefreshWindowInMs<Date.now()}};function c(l,u){return a.isRefreshing||(r=git(o(()=>t.getToken(l,u),"tryGetAccessToken"),s.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then(f=>(r=null,n=f,i=u.tenantId,n)).catch(f=>{throw r=null,n=null,i=void 0,f})),r}return o(c,"refresh"),async(l,u)=>{let d=!!u.claims,f=i!==u.tenantId;return d&&(n=null),f||d||a.mustRefresh?c(l,u):(a.shouldRefresh&&c(l,u),n)}}o(xG,"createTokenCycler");var oAe="bearerTokenAuthenticationPolicy";async function rT(t,e){try{return[await e(t),void 0]}catch(r){if(Ep(r)&&r.response)return[r.response,r];throw r}}o(rT,"trySendRequest");async function yit(t){let{scopes:e,getAccessToken:r,request:n}=t,i={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:!0},s=await r(e,i);s&&t.request.headers.set("Authorization",`Bearer ${s.token}`)}o(yit,"defaultAuthorizeRequest");function nAe(t){return t.status===401&&t.headers.has("WWW-Authenticate")}o(nAe,"isChallengeResponse");async function iAe(t,e){let{scopes:r}=t,n=await t.getAccessToken(r,{enableCae:!0,claims:e});return n?(t.request.headers.set("Authorization",`${n.tokenType??"Bearer"} ${n.token}`),!0):!1}o(iAe,"authorizeRequestOnCaeChallenge");function Fg(t){let{credential:e,scopes:r,challengeCallbacks:n}=t,i=t.logger||Yc,s={authorizeRequest:n?.authorizeRequest?.bind(n)??yit,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)},a=e?xG(e):()=>Promise.resolve(null);return{name:oAe,async sendRequest(c,l){if(!c.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");await s.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:c,getAccessToken:a,logger:i});let u,d,f;if([u,d]=await rT(c,l),nAe(u)){let h=sAe(u.headers.get("WWW-Authenticate"));if(h){let p;try{p=atob(h)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${h}`),u}f=await iAe({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:i},p),f&&([u,d]=await rT(c,l))}else if(s.authorizeRequestOnChallenge&&(f=await s.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:c,response:u,getAccessToken:a,logger:i}),f&&([u,d]=await rT(c,l)),nAe(u)&&(h=sAe(u.headers.get("WWW-Authenticate")),h))){let p;try{p=atob(h)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${h}`),u}f=await iAe({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:i},p),f&&([u,d]=await rT(c,l))}}if(d)throw d;return u}}}o(Fg,"bearerTokenAuthenticationPolicy");function Eit(t){let e=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,r=/(\w+)="([^"]*)"/g,n=[],i;for(;(i=e.exec(t))!==null;){let s=i[1],a=i[2],c={},l;for(;(l=r.exec(a))!==null;)c[l[1]]=l[2];n.push({scheme:s,params:c})}return n}o(Eit,"parseChallenges");function sAe(t){return t?Eit(t).find(r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims")?.params.claims:void 0}o(sAe,"getCaeChallengeClaims");function po(t){let e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}o(po,"isTokenCredential");var vG="DisableKeepAlivePolicy";function aAe(){return{name:vG,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}o(aAe,"createDisableKeepAlivePolicy");function cAe(t){return t.getOrderedPolicies().some(e=>e.name===vG)}o(cAe,"pipelineContainsDisableKeepAlivePolicy");function NG(t){return(t instanceof Buffer?t:Buffer.from(t.buffer)).toString("base64")}o(NG,"encodeByteArray");function _G(t){return Buffer.from(t,"base64")}o(_G,"decodeString");function bit(t,e){return e!=="Composite"&&e!=="Dictionary"&&(typeof t=="string"||typeof t=="number"||typeof t=="boolean"||e?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||t===void 0||t===null)}o(bit,"isPrimitiveBody");var wit=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function lAe(t){return wit.test(t)}o(lAe,"isDuration");var Iit=/^[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 uAe(t){return Iit.test(t)}o(uAe,"isValidUuid");function Sit(t){let e={...t.headers,...t.body};return t.hasNullableType&&Object.getOwnPropertyNames(e).length===0?t.shouldWrapBody?{body:null}:null:t.shouldWrapBody?{...t.headers,body:t.body}:e}o(Sit,"handleNullableResponseAndWrappableBody");function TG(t,e){let r=t.parsedHeaders;if(t.request.method==="HEAD")return{...r,body:t.parsedBody};let n=e&&e.bodyMapper,i=!!n?.nullable,s=n?.type.name;if(s==="Stream")return{...r,blobBody:t.blobBody,readableStreamBody:t.readableStreamBody};let a=s==="Composite"&&n.type.modelProperties||{},c=Object.keys(a).some(l=>a[l].serializedName==="");if(s==="Sequence"||c){let l=t.parsedBody??[];for(let u of Object.keys(a))a[u].serializedName&&(l[u]=t.parsedBody?.[u]);if(r)for(let u of Object.keys(r))l[u]=r[u];return i&&!t.parsedBody&&!r&&Object.getOwnPropertyNames(a).length===0?null:l}return Sit({body:t.parsedBody,headers:r,hasNullableType:i,shouldWrapBody:bit(t.parsedBody,s)})}o(TG,"flattenResponse");var RG=class{static{o(this,"SerializerImpl")}modelMappers;isXML;constructor(e={},r=!1){this.modelMappers=e,this.isXML=r}validateConstraints(e,r,n){let i=o((s,a)=>{throw new Error(`"${n}" with value "${r}" should satisfy the constraint "${s}": ${a}.`)},"failValidation");if(e.constraints&&r!==void 0&&r!==null){let{ExclusiveMaximum:s,ExclusiveMinimum:a,InclusiveMaximum:c,InclusiveMinimum:l,MaxItems:u,MaxLength:d,MinItems:f,MinLength:h,MultipleOf:p,Pattern:g,UniqueItems:A}=e.constraints;if(s!==void 0&&r>=s&&i("ExclusiveMaximum",s),a!==void 0&&r<=a&&i("ExclusiveMinimum",a),c!==void 0&&r>c&&i("InclusiveMaximum",c),l!==void 0&&r<l&&i("InclusiveMinimum",l),u!==void 0&&r.length>u&&i("MaxItems",u),d!==void 0&&r.length>d&&i("MaxLength",d),f!==void 0&&r.length<f&&i("MinItems",f),h!==void 0&&r.length<h&&i("MinLength",h),p!==void 0&&r%p!==0&&i("MultipleOf",p),g){let E=typeof g=="string"?new RegExp(g):g;(typeof r!="string"||r.match(E)===null)&&i("Pattern",g)}A&&r.some((E,y,C)=>C.indexOf(E)!==y)&&i("UniqueItems",A)}}serialize(e,r,n,i={xml:{}}){let s={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??!1,xmlCharKey:i.xml.xmlCharKey??"_"}},a={},c=e.type.name;n||(n=e.serializedName),c.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(r=e.defaultValue);let{required:l,nullable:u}=e;if(l&&u&&r===void 0)throw new Error(`${n} cannot be undefined.`);if(l&&!u&&r==null)throw new Error(`${n} cannot be null or undefined.`);if(!l&&u===!1&&r===null)throw new Error(`${n} cannot be null.`);return r==null||c.match(/^any$/i)!==null?a=r:c.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null?a=Tit(c,n,r):c.match(/^Enum$/i)!==null?a=Rit(n,e.type.allowedValues,r):c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?a=Pit(c,r,n):c.match(/^ByteArray$/i)!==null?a=Dit(n,r):c.match(/^Base64Url$/i)!==null?a=Qit(n,r):c.match(/^Sequence$/i)!==null?a=kit(this,e,r,n,!!this.isXML,s):c.match(/^Dictionary$/i)!==null?a=Oit(this,e,r,n,!!this.isXML,s):c.match(/^Composite$/i)!==null&&(a=Fit(this,e,r,n,!!this.isXML,s)),a}deserialize(e,r,n,i={xml:{}}){let s={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??!1,xmlCharKey:i.xml.xmlCharKey??"_"},ignoreUnknownProperties:i.ignoreUnknownProperties??!1};if(r==null)return this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped&&(r=[]),e.defaultValue!==void 0&&(r=e.defaultValue),r;let a,c=e.type.name;if(n||(n=e.serializedName),c.match(/^Composite$/i)!==null)a=Uit(this,e,r,n,s);else{if(this.isXML){let l=s.xml.xmlCharKey;r["$"]!==void 0&&r[l]!==void 0&&(r=r[l])}c.match(/^Number$/i)!==null?(a=parseFloat(r),isNaN(a)&&(a=r)):c.match(/^Boolean$/i)!==null?r==="true"?a=!0:r==="false"?a=!1:a=r:c.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null?a=r:c.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null?a=new Date(r):c.match(/^UnixTime$/i)!==null?a=_it(r):c.match(/^ByteArray$/i)!==null?a=_G(r):c.match(/^Base64Url$/i)!==null?a=vit(r):c.match(/^Sequence$/i)!==null?a=Git(this,e,r,n,s):c.match(/^Dictionary$/i)!==null&&(a=qit(this,e,r,n,s))}return e.isConstant&&(a=e.defaultValue),a}};function Ao(t={},e=!1){return new RG(t,e)}o(Ao,"createSerializer");function Bit(t,e){let r=t.length;for(;r-1>=0&&t[r-1]===e;)--r;return t.substr(0,r)}o(Bit,"trimEnd");function xit(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=NG(t);return Bit(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}o(xit,"bufferToBase64Url");function vit(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,"/"),_G(t)}}o(vit,"base64UrlToByteArray");function DG(t){let e=[],r="";if(t){let n=t.split(".");for(let i of n)i.charAt(i.length-1)==="\\"?r+=i.substr(0,i.length-1)+".":(r+=i,e.push(r),r="")}return e}o(DG,"splitSerializeName");function Nit(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}o(Nit,"dateToUnixTime");function _it(t){if(t)return new Date(t*1e3)}o(_it,"unixTimeToDate");function Tit(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"&&uAe(r)))throw new Error(`${e} with value "${r}" must be of type string and a valid uuid.`)}else if(t.match(/^Boolean$/i)!==null){if(typeof r!="boolean")throw new Error(`${e} with value ${r} must be of type boolean.`)}else if(t.match(/^Stream$/i)!==null){let n=typeof r;if(n!=="string"&&typeof r.pipe!="function"&&typeof r.tee!="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob=="function"||typeof Blob=="object")&&r instanceof Blob)&&n!=="function")throw new Error(`${e} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return r}o(Tit,"serializeBasicTypes");function Rit(t,e,r){if(!e)throw new Error(`Please provide a set of allowedValues to validate ${t} as an Enum Type.`);if(!e.some(i=>typeof i.valueOf()=="string"?i.toLowerCase()===r.toLowerCase():i===r))throw new Error(`${r} is not a valid value for ${t}. The valid values are: ${JSON.stringify(e)}.`);return r}o(Rit,"serializeEnumType");function Dit(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=NG(e)}return e}o(Dit,"serializeByteArrayType");function Qit(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=xit(e)}return e}o(Qit,"serializeBase64UrlType");function Pit(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=Nit(e)}else if(t.match(/^TimeSpan$/i)!==null&&!lAe(e))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}o(Pit,"serializeDateTypes");function kit(t,e,r,n,i,s){if(!Array.isArray(r))throw new Error(`${n} must be of type Array.`);let a=e.type.element;if(!a||typeof a!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}.`);a.type.name==="Composite"&&a.type.className&&(a=t.modelMappers[a.type.className]??a);let c=[];for(let l=0;l<r.length;l++){let u=t.serialize(a,r[l],n,s);if(i&&a.xmlNamespace){let d=a.xmlNamespacePrefix?`xmlns:${a.xmlNamespacePrefix}`:"xmlns";a.type.name==="Composite"?(c[l]={...u},c[l]["$"]={[d]:a.xmlNamespace}):(c[l]={},c[l][s.xml.xmlCharKey]=u,c[l]["$"]={[d]:a.xmlNamespace})}else c[l]=u}return c}o(kit,"serializeSequenceType");function Oit(t,e,r,n,i,s){if(typeof r!="object")throw new Error(`${n} must be of type object.`);let a=e.type.value;if(!a||typeof a!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}.`);let c={};for(let l of Object.keys(r)){let u=t.serialize(a,r[l],n,s);c[l]=pAe(a,u,i,s)}if(i&&e.xmlNamespace){let l=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns",u=c;return u["$"]={[l]:e.xmlNamespace},u}return c}o(Oit,"serializeDictionaryType");function Lit(t,e,r){let n=e.type.additionalProperties;return!n&&e.type.className?fAe(t,e,r)?.type.additionalProperties:n}o(Lit,"resolveAdditionalProperties");function fAe(t,e,r){let n=e.type.className;if(!n)throw new Error(`Class name for model "${r}" is not provided in the mapper "${JSON.stringify(e,void 0,2)}".`);return t.modelMappers[n]}o(fAe,"resolveReferencedMapper");function hAe(t,e,r){let n=e.type.modelProperties;if(!n){let i=fAe(t,e,r);if(!i)throw new Error(`mapper() cannot be null or undefined for model "${e.type.className}".`);if(n=i?.type.modelProperties,!n)throw new Error(`modelProperties cannot be null or undefined in the mapper "${JSON.stringify(i)}" of type "${e.type.className}" for object "${r}".`)}return n}o(hAe,"resolveModelProperties");function Fit(t,e,r,n,i,s){if(nT(t,e)&&(e=AAe(t,e,r,"clientName")),r!=null){let a={},c=hAe(t,e,n);for(let u of Object.keys(c)){let d=c[u];if(d.readOnly)continue;let f,h=a;if(t.isXML)d.xmlIsWrapped?f=d.xmlName:f=d.xmlElementName||d.xmlName;else{let p=DG(d.serializedName);f=p.pop();for(let g of p){let A=h[g];A==null&&(r[u]!==void 0&&r[u]!==null||d.defaultValue!==void 0)&&(h[g]={}),h=h[g]}}if(h!=null){if(i&&e.xmlNamespace){let y=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";h["$"]={...h["$"],[y]:e.xmlNamespace}}let p=d.serializedName!==""?n+"."+d.serializedName:n,g=r[u],A=nT(t,e);A&&A.clientName===u&&g==null&&(g=e.serializedName);let E=t.serialize(d,g,p,s);if(E!==void 0&&f!==void 0&&f!==null){let y=pAe(d,E,i,s);i&&d.xmlIsAttribute?(h["$"]=h["$"]||{},h["$"][f]=E):i&&d.xmlIsWrapped?h[f]={[d.xmlElementName]:y}:h[f]=y}}}let l=Lit(t,e,n);if(l){let u=Object.keys(c);for(let d in r)u.every(h=>h!==d)&&(a[d]=t.serialize(l,r[d],n+'["'+d+'"]',s))}return a}return r}o(Fit,"serializeCompositeType");function pAe(t,e,r,n){if(!r||!t.xmlNamespace)return e;let s={[t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns"]:t.xmlNamespace};if(["Composite"].includes(t.type.name)){if(e["$"])return e;{let c={...e};return c["$"]=s,c}}let a={};return a[n.xml.xmlCharKey]=e,a["$"]=s,a}o(pAe,"getXmlObjectValue");function Mit(t,e){return["$",e.xml.xmlCharKey].includes(t)}o(Mit,"isSpecialXmlProperty");function Uit(t,e,r,n,i){let s=i.xml.xmlCharKey??"_";nT(t,e)&&(e=AAe(t,e,r,"serializedName"));let a=hAe(t,e,n),c={},l=[];for(let d of Object.keys(a)){let f=a[d],h=DG(a[d].serializedName);l.push(h[0]);let{serializedName:p,xmlName:g,xmlElementName:A}=f,E=n;p!==""&&p!==void 0&&(E=n+"."+p);let y=f.headerCollectionPrefix;if(y){let C={};for(let w of Object.keys(r))w.startsWith(y)&&(C[w.substring(y.length)]=t.deserialize(f.type.value,r[w],E,i)),l.push(w);c[d]=C}else if(t.isXML)if(f.xmlIsAttribute&&r["$"])c[d]=t.deserialize(f,r["$"][g],E,i);else if(f.xmlIsMsText)r[s]!==void 0?c[d]=r[s]:typeof r=="string"&&(c[d]=r);else{let C=A||g||p;if(f.xmlIsWrapped){let B=r[g]?.[A]??[];c[d]=t.deserialize(f,B,E,i),l.push(g)}else{let w=r[C];c[d]=t.deserialize(f,w,E,i),l.push(C)}}else{let C,w=r,B=0;for(let v of h){if(!w)break;B++,w=w[v]}w===null&&B<h.length&&(w=void 0),C=w;let Q=e.type.polymorphicDiscriminator;Q&&d===Q.clientName&&C==null&&(C=e.serializedName);let U;if(Array.isArray(r[d])&&a[d].serializedName===""){C=r[d];let v=t.deserialize(f,C,E,i);for(let[j,D]of Object.entries(c))Object.prototype.hasOwnProperty.call(v,j)||(v[j]=D);c=v}else(C!==void 0||f.defaultValue!==void 0)&&(U=t.deserialize(f,C,E,i),c[d]=U)}}let u=e.type.additionalProperties;if(u){let d=o(f=>{for(let h in a)if(DG(a[h].serializedName)[0]===f)return!1;return!0},"isAdditionalProperty");for(let f in r)d(f)&&(c[f]=t.deserialize(u,r[f],n+'["'+f+'"]',i))}else if(r&&!i.ignoreUnknownProperties)for(let d of Object.keys(r))c[d]===void 0&&!l.includes(d)&&!Mit(d,i)&&(c[d]=r[d]);return c}o(Uit,"deserializeCompositeType");function qit(t,e,r,n,i){let s=e.type.value;if(!s||typeof s!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}`);if(r){let a={};for(let c of Object.keys(r))a[c]=t.deserialize(s,r[c],n,i);return a}return r}o(qit,"deserializeDictionaryType");function Git(t,e,r,n,i){let s=e.type.element;if(!s||typeof s!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}`);if(r){Array.isArray(r)||(r=[r]),s.type.name==="Composite"&&s.type.className&&(s=t.modelMappers[s.type.className]??s);let a=[];for(let c=0;c<r.length;c++)a[c]=t.deserialize(s,r[c],`${n}[${c}]`,i);return a}return r}o(Git,"deserializeSequenceType");function Hit(t,e,r){let n=[r];for(;n.length;){let i=n.shift(),s=e===i?e:i+"."+e;if(Object.prototype.hasOwnProperty.call(t,s))return t[s];for(let[a,c]of Object.entries(t))a.startsWith(i+".")&&c.type.uberParent===i&&c.type.className&&n.push(c.type.className)}}o(Hit,"getIndexDiscriminator");function AAe(t,e,r,n){let i=nT(t,e);if(i){let s=i[n];if(s){n==="serializedName"&&(s=s.replace(/\\/gi,""));let a=r[s],c=e.type.uberParent??e.type.className;if(typeof a=="string"&&c){let l=Hit(t.modelMappers.discriminators,a,c);l&&(e=l)}}}return e}o(AAe,"getPolymorphicMapper");function nT(t,e){return e.type.polymorphicDiscriminator||dAe(t,e.type.uberParent)||dAe(t,e.type.className)}o(nT,"getPolymorphicDiscriminatorRecursively");function dAe(t,e){return e&&t.modelMappers[e]&&t.modelMappers[e].type.polymorphicDiscriminator}o(dAe,"getPolymorphicDiscriminatorSafely");var Kc={Base64Url:"Base64Url",Boolean:"Boolean",ByteArray:"ByteArray",Composite:"Composite",Date:"Date",DateTime:"DateTime",DateTimeRfc1123:"DateTimeRfc1123",Dictionary:"Dictionary",Enum:"Enum",Number:"Number",Object:"Object",Sequence:"Sequence",String:"String",Stream:"Stream",TimeSpan:"TimeSpan",UnixTime:"UnixTime"};var gAe=N(mAe(),1),QG=gAe.state;function yf(t,e,r){let n=e.parameterPath,i=e.mapper,s;if(typeof n=="string"&&(n=[n]),Array.isArray(n)){if(n.length>0)if(i.isConstant)s=i.defaultValue;else{let a=yAe(t,n);!a.propertyFound&&r&&(a=yAe(r,n));let c=!1;a.propertyFound||(c=i.required||n[0]==="options"&&n.length===2),s=c?i.defaultValue:a.propertyValue}}else{i.required&&(s={});for(let a in n){let c=i.type.modelProperties[a],l=n[a],u=yf(t,{parameterPath:l,mapper:c},r);u!==void 0&&(s||(s={}),s[a]=u)}}return s}o(yf,"getOperationArgumentValueFromParameter");function yAe(t,e){let r={propertyFound:!1},n=0;for(;n<e.length;++n){let i=e[n];if(t&&i in t)t=t[i];else break}return n===e.length&&(r.propertyValue=t,r.propertyFound=!0),r}o(yAe,"getPropertyFromParameterPath");var EAe=Symbol.for("@azure/core-client original request");function Vit(t){return EAe in t}o(Vit,"hasOriginalRequest");function Gu(t){if(Vit(t))return Gu(t[EAe]);let e=QG.operationRequestMap.get(t);return e||(e={},QG.operationRequestMap.set(t,e)),e}o(Gu,"getOperationRequestInfo");var zit=["application/json","text/json"],$it=["application/xml","application/atom+xml"],CAe="deserializationPolicy";function PG(t={}){let e=t.expectedContentTypes?.json??zit,r=t.expectedContentTypes?.xml??$it,n=t.parseXML,i=t.serializerOptions,s={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??"_"}};return{name:CAe,async sendRequest(a,c){let l=await c(a);return Jit(e,r,l,s,n)}}}o(PG,"deserializationPolicy");function jit(t){let e,r=t.request,n=Gu(r),i=n?.operationSpec;return i&&(n?.operationResponseGetter?e=n?.operationResponseGetter(i,t):e=i.responses[t.status]),e}o(jit,"getOperationResponseMap");function Wit(t){let e=t.request,n=Gu(e)?.shouldDeserialize,i;return n===void 0?i=!0:typeof n=="boolean"?i=n:i=n(t),i}o(Wit,"shouldDeserializeResponse");async function Jit(t,e,r,n,i){let s=await Xit(t,e,r,n,i);if(!Wit(s))return s;let c=Gu(s.request)?.operationSpec;if(!c||!c.responses)return s;let l=jit(s),{error:u,shouldReturnResponse:d}=Kit(s,c,l,n);if(u)throw u;if(d)return s;if(l){if(l.bodyMapper){let f=s.parsedBody;c.isXML&&l.bodyMapper.type.name===Kc.Sequence&&(f=typeof f=="object"?f[l.bodyMapper.xmlElementName]:[]);try{s.parsedBody=c.serializer.deserialize(l.bodyMapper,f,"operationRes.parsedBody",n)}catch(h){throw new Uu(`Error ${h} occurred in deserializing the responseBody - ${s.bodyAsText}`,{statusCode:s.status,request:s.request,response:s})}}else c.httpMethod==="HEAD"&&(s.parsedBody=r.status>=200&&r.status<300);l.headersMapper&&(s.parsedHeaders=c.serializer.deserialize(l.headersMapper,s.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:!0}))}return s}o(Jit,"deserializeResponseBody");function Yit(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(Yit,"isOperationSpecEmpty");function Kit(t,e,r,n){let i=200<=t.status&&t.status<300;if(Yit(e)?i:!!r)if(r){if(!r.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=r??e.responses.default,c=t.request.streamResponseStatusCodes?.has(t.status)?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new Uu(c,{statusCode:t.status,request:t.request,response:t});if(!a&&!(t.parsedBody?.error?.code&&t.parsedBody?.error?.message))throw l;let u=a?.bodyMapper,d=a?.headersMapper;try{if(t.parsedBody){let f=t.parsedBody,h;if(u){let g=f;if(e.isXML&&u.type.name===Kc.Sequence){g=[];let A=u.xmlElementName;typeof f=="object"&&A&&(g=f[A])}h=e.serializer.deserialize(u,g,"error.response.parsedBody",n)}let p=f.error||h||f;l.code=p.code,p.message&&(l.message=p.message),u&&(l.response.parsedBody=h)}t.headers&&d&&(l.response.parsedHeaders=e.serializer.deserialize(d,t.headers.toJSON(),"operationRes.parsedHeaders"))}catch(f){l.message=`Error "${f.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}o(Kit,"handleErrorResponse");async function Xit(t,e,r,n,i){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){let s=r.bodyAsText,a=r.headers.get("Content-Type")||"",c=a?a.split(";").map(l=>l.toLowerCase()):[];try{if(c.length===0||c.some(l=>t.indexOf(l)!==-1))return r.parsedBody=JSON.parse(s),r;if(c.some(l=>e.indexOf(l)!==-1)){if(!i)throw new Error("Parsing XML not supported.");let l=await i(s,n.xml);return r.parsedBody=l,r}}catch(l){let u=`Error "${l}" occurred while parsing the response body - ${r.bodyAsText}.`,d=l.code||Uu.PARSE_ERROR;throw new Uu(u,{code:d,statusCode:r.status,request:r.request,response:r})}}return r}o(Xit,"parse");function bAe(t){let e=new Set;for(let r in t.responses){let n=t.responses[r];n.bodyMapper&&n.bodyMapper.type.name===Kc.Stream&&e.add(Number(r))}return e}o(bAe,"getStreamingResponseStatusCodes");function Xc(t){let{parameterPath:e,mapper:r}=t,n;return typeof e=="string"?n=e:Array.isArray(e)?n=e.join("."):n=r.serializedName,n}o(Xc,"getPathStringFromParameter");var wAe="serializationPolicy";function sT(t={}){let e=t.stringifyXML;return{name:wAe,async sendRequest(r,n){let i=Gu(r),s=i?.operationSpec,a=i?.operationArguments;return s&&a&&(Zit(r,a,s),est(r,a,s,e)),n(r)}}}o(sT,"serializationPolicy");function Zit(t,e,r){if(r.headerParameters)for(let i of r.headerParameters){let s=yf(e,i);if(s!=null||i.mapper.required){s=r.serializer.serialize(i.mapper,s,Xc(i));let a=i.mapper.headerCollectionPrefix;if(a)for(let c of Object.keys(s))t.headers.set(a+c,s[c]);else t.headers.set(i.mapper.serializedName||Xc(i),s)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let i of Object.keys(n))t.headers.set(i,n[i])}o(Zit,"serializeHeaders");function est(t,e,r,n=function(){throw new Error("XML serialization unsupported!")}){let i=e.options?.serializerOptions,s={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??"_"}},a=s.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){t.body=yf(e,r.requestBody);let c=r.requestBody.mapper,{required:l,serializedName:u,xmlName:d,xmlElementName:f,xmlNamespace:h,xmlNamespacePrefix:p,nullable:g}=c,A=c.type.name;try{if(t.body!==void 0&&t.body!==null||g&&t.body===null||l){let E=Xc(r.requestBody);t.body=r.serializer.serialize(c,t.body,E,s);let y=A===Kc.Stream;if(r.isXML){let C=p?`xmlns:${p}`:"xmlns",w=tst(h,C,A,t.body,s);A===Kc.Sequence?t.body=n(rst(w,f||d||u,C,h),{rootName:d||u,xmlCharKey:a}):y||(t.body=n(w,{rootName:d||u,xmlCharKey:a}))}else{if(A===Kc.String&&(r.contentType?.match("text/plain")||r.mediaType==="text"))return;y||(t.body=JSON.stringify(t.body))}}}catch(E){throw new Error(`Error "${E.message}" occurred in serializing the payload - ${JSON.stringify(u,void 0," ")}.`)}}else if(r.formDataParameters&&r.formDataParameters.length>0){t.formData={};for(let c of r.formDataParameters){let l=yf(e,c);if(l!=null){let u=c.mapper.serializedName||Xc(c);t.formData[u]=r.serializer.serialize(c.mapper,l,Xc(c),s)}}}}o(est,"serializeRequestBody");function tst(t,e,r,n,i){if(t&&!["Composite","Sequence","Dictionary"].includes(r)){let s={};return s[i.xml.xmlCharKey]=n,s["$"]={[e]:t},s}return n}o(tst,"getXmlValueWithNamespace");function rst(t,e,r,n){if(Array.isArray(t)||(t=[t]),!r||!n)return{[e]:t};let i={[e]:t};return i["$"]={[r]:n},i}o(rst,"prepareXMLRootList");function j0(t={}){let e=BG(t??{});return t.credentialOptions&&e.addPolicy(Fg({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(sT(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(PG(t.deserializationOptions),{phase:"Deserialize"}),e}o(j0,"createClientPipeline");var kG;function IAe(){return kG||(kG=z0()),kG}o(IAe,"getCachedDefaultHttpClient");var nst={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function BAe(t,e,r,n){let i=ist(e,r,n),s=!1,a=SAe(t,i);if(e.path){let u=SAe(e.path,i);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),sst(u)?(a=u,s=!0):a=ost(a,u)}let{queryParams:c,sequenceParams:l}=ast(e,r,n);return a=lst(a,c,l,s),a}o(BAe,"getRequestUrl");function SAe(t,e){let r=t;for(let[n,i]of e)r=r.split(n).join(i);return r}o(SAe,"replaceAll");function ist(t,e,r){let n=new Map;if(t.urlParameters?.length)for(let i of t.urlParameters){let s=yf(e,i,r),a=Xc(i);s=t.serializer.serialize(i.mapper,s,a),i.skipEncoding||(s=encodeURIComponent(s)),n.set(`{${i.mapper.serializedName||a}}`,s)}return n}o(ist,"calculateUrlReplacements");function sst(t){return t.includes("://")}o(sst,"isAbsoluteUrl");function ost(t,e){if(!e)return t;let r=new URL(t),n=r.pathname;n.endsWith("/")||(n=`${n}/`),e.startsWith("/")&&(e=e.substring(1));let i=e.indexOf("?");if(i!==-1){let s=e.substring(0,i),a=e.substring(i+1);n=n+s,a&&(r.search=r.search?`${r.search}&${a}`:a)}else n=n+e;return r.pathname=n,r.toString()}o(ost,"appendPath");function ast(t,e,r){let n=new Map,i=new Set;if(t.queryParameters?.length)for(let s of t.queryParameters){s.mapper.type.name==="Sequence"&&s.mapper.serializedName&&i.add(s.mapper.serializedName);let a=yf(e,s,r);if(a!=null||s.mapper.required){a=t.serializer.serialize(s.mapper,a,Xc(s));let c=s.collectionFormat?nst[s.collectionFormat]:"";if(Array.isArray(a)&&(a=a.map(l=>l??"")),s.collectionFormat==="Multi"&&a.length===0)continue;Array.isArray(a)&&(s.collectionFormat==="SSV"||s.collectionFormat==="TSV")&&(a=a.join(c)),s.skipEncoding||(Array.isArray(a)?a=a.map(l=>encodeURIComponent(l)):a=encodeURIComponent(a)),Array.isArray(a)&&(s.collectionFormat==="CSV"||s.collectionFormat==="Pipes")&&(a=a.join(c)),n.set(s.mapper.serializedName||Xc(s),a)}}return{queryParams:n,sequenceParams:i}}o(ast,"calculateQueryParameters");function cst(t){let e=new Map;if(!t||t[0]!=="?")return e;t=t.slice(1);let r=t.split("&");for(let n of r){let[i,s]=n.split("=",2),a=e.get(i);a?Array.isArray(a)?a.push(s):e.set(i,[a,s]):e.set(i,s)}return e}o(cst,"simpleParseQueryParams");function lst(t,e,r,n=!1){if(e.size===0)return t;let i=new URL(t),s=cst(i.search);for(let[c,l]of e){let u=s.get(c);if(Array.isArray(u))if(Array.isArray(l)){u.push(...l);let d=new Set(u);s.set(c,Array.from(d))}else u.push(l);else u?(Array.isArray(l)?l.unshift(u):r.has(c)&&s.set(c,[u,l]),n||s.set(c,l)):s.set(c,l)}let a=[];for(let[c,l]of s)if(typeof l=="string")a.push(`${c}=${l}`);else if(Array.isArray(l))for(let u of l)a.push(`${c}=${u}`);else a.push(`${c}=${l}`);return i.search=a.length?`?${a.join("&")}`:"",i.toString()}o(lst,"appendQueryParams");var OG=Jc("core-client");var W0=class{static{o(this,"ServiceClient")}_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&OG.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||IAe(),this.pipeline=e.pipeline||ust(e),e.additionalPolicies?.length)for(let{policy:r,position:n}of e.additionalPolicies){let i=n==="perRetry"?"Sign":void 0;this.pipeline.addPolicy(r,{afterPhase:i})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,r){let n=r.baseUrl||this._endpoint;if(!n)throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.");let i=BAe(n,r,e,this),s=$0({url:i});s.method=r.httpMethod;let a=Gu(s);a.operationSpec=r,a.operationArguments=e;let c=r.contentType||this._requestContentType;c&&r.requestBody&&s.headers.set("Content-Type",c);let l=e.options;if(l){let u=l.requestOptions;u&&(u.timeout&&(s.timeout=u.timeout),u.onUploadProgress&&(s.onUploadProgress=u.onUploadProgress),u.onDownloadProgress&&(s.onDownloadProgress=u.onDownloadProgress),u.shouldDeserialize!==void 0&&(a.shouldDeserialize=u.shouldDeserialize),u.allowInsecureConnection&&(s.allowInsecureConnection=!0)),l.abortSignal&&(s.abortSignal=l.abortSignal),l.tracingOptions&&(s.tracingOptions=l.tracingOptions)}this._allowInsecureConnection&&(s.allowInsecureConnection=!0),s.streamResponseStatusCodes===void 0&&(s.streamResponseStatusCodes=bAe(r));try{let u=await this.sendRequest(s),d=TG(u,r.responses[u.status]);return l?.onResponse&&l.onResponse(u,d),d}catch(u){if(typeof u=="object"&&u?.response){let d=u.response,f=TG(d,r.responses[u.statusCode]||r.responses.default);u.details=f,l?.onResponse&&l.onResponse(d,f,u)}throw u}}};function ust(t){let e=dst(t),r=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return j0({...t,credentialOptions:r})}o(ust,"createDefaultPipeline");function dst(t){if(t.credentialScopes)return t.credentialScopes;if(t.endpoint)return`${t.endpoint}/.default`;if(t.baseUri)return`${t.baseUri}/.default`;if(t.credential&&!t.credentialScopes)throw new Error("When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy")}o(dst,"getCredentialScopes");var xAe={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function fst(t){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(t)}o(fst,"isUuid");var oT=o(async t=>{let e=gst(t.request),r=Ast(t.response);if(r){let n=mst(r),i=pst(t,n),s=hst(n);if(!s)return!1;let a=await t.getAccessToken(i,{...e,tenantId:s});return a?(t.request.headers.set(xAe.HeaderConstants.AUTHORIZATION,`${a.tokenType??"Bearer"} ${a.token}`),!0):!1}return!1},"authorizeRequestOnTenantChallenge");function hst(t){let n=new URL(t.authorization_uri).pathname.split("/")[1];if(n&&fst(n))return n}o(hst,"extractTenantId");function pst(t,e){if(!e.resource_id)return t.scopes;let r=new URL(e.resource_id);r.pathname=xAe.DefaultScope;let n=r.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}o(pst,"buildScopes");function Ast(t){let e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}o(Ast,"getChallenge");function mst(t){return`${t.slice(7).trim()} `.split(" ").filter(i=>i).map(i=>(([s,a])=>({[s]:a}))(i.trim().split("="))).reduce((i,s)=>({...i,...s}),{})}o(mst,"parseChallenge");function gst(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}o(gst,"requestToOptions");var vAe=Symbol("Original PipelineRequest"),yst=Symbol.for("@azure/core-client original request");function Y0(t,e={}){let n=t[vAe],i=qu(t.headers.toJson({preserveCase:!0}));if(n)return n.headers=i,n;{let s=$0({url:t.url,method:t.method,headers:i,withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,disableKeepAlive:!!t.keepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides});return e.originalRequest&&(s[yst]=e.originalRequest),s}}o(Y0,"toPipelineRequest");function Cp(t,e){let r=e?.originalRequest??t,n={url:t.url,method:t.method,headers:K0(t.headers),withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.headers.get("x-ms-client-request-id")||t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,keepAlive:!!t.disableKeepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};return e?.createProxy?new Proxy(n,{get(i,s,a){return s===vAe?t:s==="clone"?()=>Cp(Y0(n,{originalRequest:r}),{createProxy:!0,originalRequest:r}):Reflect.get(i,s,a)},set(i,s,a,c){return s==="keepAlive"&&(t.disableKeepAlive=!a),typeof s=="string"&&["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"].includes(s)&&(t[s]=a),Reflect.set(i,s,a,c)}}):n}o(Cp,"toWebResourceLike");function K0(t){return new LG(t.toJSON({preserveCase:!0}))}o(K0,"toHttpHeadersLike");function J0(t){return t.toLowerCase()}o(J0,"getHeaderKey");var LG=class t{static{o(this,"HttpHeaders")}_headersMap;constructor(e){if(this._headersMap={},e)for(let r in e)this.set(r,e[r])}set(e,r){this._headersMap[J0(e)]={name:e,value:r.toString()}}get(e){let r=this._headersMap[J0(e)];return r?r.value:void 0}contains(e){return!!this._headersMap[J0(e)]}remove(e){let r=this.contains(e);return delete this._headersMap[J0(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<r.length;++n)e.push(r[n].name);return e}headerValues(){let e=[],r=this.headersArray();for(let n=0;n<r.length;++n)e.push(r[n].value);return e}toJson(e={}){let r={};if(e.preserveCase)for(let n in this._headersMap){let i=this._headersMap[n];r[i.name]=i.value}else for(let n in this._headersMap){let i=this._headersMap[n];r[J0(i.name)]=i.value}return r}toString(){return JSON.stringify(this.toJson({preserveCase:!0}))}clone(){let e={};for(let r in this._headersMap){let n=this._headersMap[r];e[n.name]=n.value}return new t(e)}};var NAe=Symbol("Original FullOperationResponse");function aT(t,e){let r=Cp(t.request),n=K0(t.headers);return e?.createProxy?new Proxy(t,{get(i,s,a){return s==="headers"?n:s==="request"?r:s===NAe?t:Reflect.get(i,s,a)},set(i,s,a,c){return s==="headers"?n=a:s==="request"&&(r=a),Reflect.set(i,s,a,c)}}):{...t,request:r,headers:n}}o(aT,"toCompatResponse");function cT(t){let r=t[NAe],n=qu(t.headers.toJson({preserveCase:!0}));return r?(r.headers=n,r):{...t,headers:n,request:Y0(t.request)}}o(cT,"toPipelineResponse");var X0=class extends W0{static{o(this,"ExtendedServiceClient")}constructor(e){super(e),e.keepAliveOptions?.enable===!1&&!cAe(this.pipeline)&&this.pipeline.addPolicy(aAe()),e.redirectOptions?.handleRedirects===!1&&this.pipeline.removePolicy({name:cG})}async sendOperationRequest(e,r){let n=e?.options?.onResponse,i;function s(c,l,u){i=c,n&&n(c,l,u)}o(s,"onResponse"),e.options={...e.options,onResponse:s};let a=await super.sendOperationRequest(e,r);return i&&Object.defineProperty(a,"_response",{value:aT(i)}),a}};var FG;(function(t){t[t.ERROR=1]="ERROR",t[t.INFO=3]="INFO",t[t.OFF=0]="OFF",t[t.WARNING=2]="WARNING"})(FG||(FG={}));var Est={log(t,e){},shouldLog(t){return!1}},_Ae="RequestPolicyFactoryPolicy";function MG(t){let e=t.slice().reverse();return{name:_Ae,async sendRequest(r,n){let i={async sendRequest(c){let l=await n(Y0(c));return aT(l,{createProxy:!0})}};for(let c of e)i=c.create(i,Est);let s=Cp(r,{createProxy:!0}),a=await i.sendRequest(s);return cT(a)}}}o(MG,"createRequestPolicyFactoryPolicy");function UG(t){return{sendRequest:o(async e=>{let r=await t.sendRequest(Cp(e,{createProxy:!0}));return cT(r)},"sendRequest")}}o(UG,"convertHttpClient");var TAe=":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",bst=TAe+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",wst="["+TAe+"]["+bst+"]*",Ist=new RegExp("^"+wst+"$");function lT(t,e){let r=[],n=e.exec(t);for(;n;){let i=[];i.startIndex=e.lastIndex-n[0].length;let s=n.length;for(let a=0;a<s;a++)i.push(n[a]);r.push(i),n=e.exec(t)}return r}o(lT,"getAllMatches");var qG=o(function(t){let e=Ist.exec(t);return!(e===null||typeof e>"u")},"isName");function RAe(t){return typeof t<"u"}o(RAe,"isExist");var Z0=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],uT=["__proto__","constructor","prototype"];var Sst={allowBooleanAttributes:!1,unpairedTags:[]};function dT(t,e){e=Object.assign({},Sst,e);let r=[],n=!1,i=!1;t[0]==="\uFEFF"&&(t=t.substr(1));for(let s=0;s<t.length;s++)if(t[s]==="<"&&t[s+1]==="?"){if(s+=2,s=QAe(t,s),s.err)return s}else if(t[s]==="<"){let a=s;if(s++,t[s]==="!"){s=PAe(t,s);continue}else{let c=!1;t[s]==="/"&&(c=!0,s++);let l="";for(;s<t.length&&t[s]!==">"&&t[s]!==" "&&t[s]!==" "&&t[s]!==`
|
|
`&&t[s]!=="\r";s++)l+=t[s];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),s--),!Dst(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",Zr("InvalidTag",f,Xi(t,s))}let u=vst(t,s);if(u===!1)return Zr("InvalidAttr","Attributes for '"+l+"' have open quote.",Xi(t,s));let d=u.value;if(s=u.index,d[d.length-1]==="/"){let f=s-d.length;d=d.substring(0,d.length-1);let h=kAe(d,e);if(h===!0)n=!0;else return Zr(h.err.code,h.err.msg,Xi(t,f+h.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Zr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Xi(t,a));if(r.length===0)return Zr("InvalidTag","Closing tag '"+l+"' has not been opened.",Xi(t,a));{let f=r.pop();if(l!==f.tagName){let h=Xi(t,f.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+l+"'.",Xi(t,a))}r.length==0&&(i=!0)}}else return Zr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Xi(t,s));else{let f=kAe(d,e);if(f!==!0)return Zr(f.err.code,f.err.msg,Xi(t,s-d.length+f.err.line));if(i===!0)return Zr("InvalidXml","Multiple possible root nodes found.",Xi(t,s));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=PAe(t,s);continue}else if(t[s+1]==="?"){if(s=QAe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let f=Tst(t,s);if(f==-1)return Zr("InvalidChar","char '&' is not expected.",Xi(t,s));s=f}else if(i===!0&&!DAe(t[s]))return Zr("InvalidXml","Extra text at the end",Xi(t,s));t[s]==="<"&&s--}}else{if(DAe(t[s]))continue;return Zr("InvalidChar","char '"+t[s]+"' is not expected.",Xi(t,s))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Xi(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}o(dT,"validate");function DAe(t){return t===" "||t===" "||t===`
|
|
`||t==="\r"}o(DAe,"isWhiteSpace");function QAe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",Xi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(QAe,"readPI");function PAe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){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<t.length;e++)if(t[e]==="<")r++;else if(t[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<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(PAe,"readCommentAndCDATA");var Bst='"',xst="'";function vst(t,e){let r="",n="",i=!1;for(;e<t.length;e++){if(t[e]===Bst||t[e]===xst)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){i=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:i}}o(vst,"readAttributeStr");var Nst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function kAe(t,e){let r=lT(t,Nst),n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return Zr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",ew(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",ew(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",ew(r[i]));let s=r[i][2];if(!Rst(s))return Zr("InvalidAttr","Attribute '"+s+"' is an invalid name.",ew(r[i]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return Zr("InvalidAttr","Attribute '"+s+"' is repeated.",ew(r[i]))}return!0}o(kAe,"validateAttributeString");function _st(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(_st,"validateNumberAmpersand");function Tst(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,_st(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(Tst,"validateAmpersand");function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Zr,"getErrorObject");function Rst(t){return qG(t)}o(Rst,"validateAttrName");function Dst(t){return qG(t)}o(Dst,"validateTagName");function Xi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Xi,"getLineNumberForPosition");function ew(t){return t.startIndex+t[1].length}o(ew,"getPositionFromMatch");var OAe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",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"},LAe={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"},FAe={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"},MAe={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"},UAe={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"},qAe={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:"<"},GAe={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"},HAe={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"},VAe={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"},zAe={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"},fT={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"},$Ae={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"},jAe={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"},Qst={...OAe,...LAe,...FAe,...MAe,...UAe,...qAe,...GAe,...HAe,...VAe,...zAe,...fT,...$Ae,...jAe},tw={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},GG={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 Pst=new Set("!?\\\\/[]$%{}^&*()<>|+");function WAe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Pst.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}o(WAe,"validateEntityName");function HG(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let i=r[n];if(typeof i=="string")e[n]=i;else if(i&&typeof i=="object"&&i.val!==void 0){let s=i.val;typeof s=="string"&&(e[n]=s)}}return e}o(HG,"mergeEntityMaps");var bp="external",hT="base",VG="all";function kst(t){return!t||t===bp?new Set([bp]):t===VG?new Set([VG]):t===hT?new Set([hT]):Array.isArray(t)?new Set(t):new Set([bp])}o(kst,"parseLimitTiers");var vs=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Ost=new Set([9,10,13]);function Lst(t){if(!t)return{xmlVersion:1,onLevel:vs.allow,nullLevel:vs.remove};let e=t.xmlVersion===1.1?1.1:1,r=vs[t.onNCR]??vs.allow,n=vs[t.nullNCR]??vs.remove,i=Math.max(n,vs.remove);return{xmlVersion:e,onLevel:r,nullLevel:i}}o(Lst,"parseNCRConfig");var Ug=class{static{o(this,"EntityDecoder")}constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=kst(this._limit.applyLimitsTo??bp),this._numericAllowed=e.numericAllowed??!0,this._baseMap=HG(tw,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=Lst(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))WAe(r);this._externalMap=HG(e)}addExternalEntity(e,r){WAe(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=HG(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!="string"||e.length===0)return e;let r=e,n=[],i=e.length,s=0,a=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;a<i;){if(e.charCodeAt(a)!==38){a++;continue}let f=a+1;for(;f<i&&e.charCodeAt(f)!==59&&f-a<=32;)f++;if(f>=i||e.charCodeAt(f)!==59){a++;continue}let h=e.slice(a+1,f);if(h.length===0){a++;continue}let p,g;if(this._removeSet.has(h))p="",g===void 0&&(g=bp);else if(this._leaveSet.has(h)){a++;continue}else if(h.charCodeAt(0)===35){let A=this._resolveNCR(h);if(A===void 0){a++;continue}p=A,g=hT}else{let A=this._resolveName(h);p=A?.value,g=A?.tier}if(p===void 0){a++;continue}if(a>s&&n.push(e.slice(s,a)),n.push(p),s=f+1,a=s,u&&this._tierCounts(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 A=p.length-(h.length+2);if(A>0&&(this._expandedLength+=A,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}s<i&&n.push(e.slice(s));let d=n.length===0?e:n.join("");return this._postCheck(d,r)}_tierCounts(e){return this._limitTiers.has(VG)?!0:this._limitTiers.has(e)}_resolveName(e){if(e in this._inputMap)return{value:this._inputMap[e],tier:bp};if(e in this._externalMap)return{value:this._externalMap[e],tier:bp};if(e in this._baseMap)return{value:this._baseMap[e],tier:hT}}_classifyNCR(e){return e===0?this._ncrNullLevel:e>=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!Ost.has(e)?vs.remove:-1}_applyNCRAction(e,r,n){switch(e){case vs.allow:return String.fromCodePoint(n);case vs.remove:return"";case vs.leave:return;case vs.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${r}; (U+${n.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let r=e.charCodeAt(1),n;if(r===120||r===88?n=parseInt(e.slice(2),16):n=parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let i=this._classifyNCR(n);if(!this._numericAllowed&&i<vs.remove)return;let s=i===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,i);return this._applyNCRAction(s,e,n)}};var JAe=o(t=>Z0.includes(t)?"__"+t:t,"defaultOnDangerousProperty"),Fst={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:o(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:o(function(t,e,r){return t},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:JAe};function Mst(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Z0.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(uT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}o(Mst,"validatePropertyName");function YAe(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"}:YAe(!0)}o(YAe,"normalizeProcessEntities");var KAe=o(function(t){let e=Object.assign({},Fst,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:i}of r)n&&Mst(n,i);return e.onDangerousProperty===null&&(e.onDangerousProperty=JAe),e.processEntities=YAe(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 pT;typeof Symbol!="function"?pT="@@xmlMetadata":pT=Symbol("XML Node Metadata");var Ns=class{static{o(this,"XmlNode")}constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][pT]={startIndex:r})}static getMetaDataSymbol(){return pT}};var XAe=":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",Ust=XAe+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040",ZAe=":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}",qst=ZAe+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",eme=o((t,e,r="")=>{let n=t.replace(":",""),i=e.replace(":",""),s=`[${n}][${i}]*`;return{name:new RegExp(`^[${t}][${e}]*$`,r),ncName:new RegExp(`^${s}$`,r),qName:new RegExp(`^${s}(?::${s})?$`,r),nmToken:new RegExp(`^[${e}]+$`,r),nmTokens:new RegExp(`^[${e}]+(?:\\s+[${e}]+)*$`,r)}},"buildRegexes"),Gst=eme(XAe,Ust),Hst=eme(ZAe,qst,"u"),Vst=o((t="1.0")=>t==="1.1"?Hst:Gst,"getRegexes");var wp=o((t,{xmlVersion:e="1.0"}={})=>Vst(e).qName.test(t),"qName");var nw=class{static{o(this,"DocTypeReader")}constructor(e,r){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=r||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,r){let n=Object.create(null),i=0;if(e[r+3]==="O"&&e[r+4]==="C"&&e[r+5]==="T"&&e[r+6]==="Y"&&e[r+7]==="P"&&e[r+8]==="E"){r=r+9;let s=1,a=!1,c=!1,l="";for(;r<e.length;r++)if(e[r]==="<"&&!c){if(a&&Ip(e,"!ENTITY",r)){r+=7;let u,d;if([u,d,r]=this.readEntityExp(e,r+1,this.suppressValidationErr),d.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&i>=this.options.maxEntityCount)throw new Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[u]=d,i++}}else if(a&&Ip(e,"!ELEMENT",r)){r+=8;let{index:u}=this.readElementExp(e,r+1);r=u}else if(a&&Ip(e,"!ATTLIST",r))r+=8;else if(a&&Ip(e,"!NOTATION",r)){r+=9;let{index:u}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=u}else if(Ip(e,"!--",r))c=!0;else throw new Error("Invalid DOCTYPE");s++,l=""}else if(e[r]===">"){if(c?e[r-1]==="-"&&e[r-2]==="-"&&(c=!1,s--):s--,s===0)break}else e[r]==="["?a=!0:l+=e[r];if(s!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:r}}readEntityExp(e,r){r=_s(e,r);let n=r;for(;r<e.length&&!/\s/.test(e[r])&&e[r]!=='"'&&e[r]!=="'";)r++;let i=e.substring(n,r);if(rw(i,{xmlVersion:this.xmlVersion}),r=_s(e,r),!this.suppressValidationErr){if(e.substring(r,r+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(e[r]==="%")throw new Error("Parameter entities are not supported")}let s="";if([r,s]=this.readIdentifierVal(e,r,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&s.length>this.options.maxEntitySize)throw new Error(`Entity "${i}" size (${s.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return r--,[i,s,r]}readNotationExp(e,r){r=_s(e,r);let n=r;for(;r<e.length&&!/\s/.test(e[r]);)r++;let i=e.substring(n,r);!this.suppressValidationErr&&rw(i,{xmlVersion:this.xmlVersion}),r=_s(e,r);let s=e.substring(r,r+6).toUpperCase();if(!this.suppressValidationErr&&s!=="SYSTEM"&&s!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${s}"`);r+=s.length,r=_s(e,r);let a=null,c=null;if(s==="PUBLIC")[r,a]=this.readIdentifierVal(e,r,"publicIdentifier"),r=_s(e,r),(e[r]==='"'||e[r]==="'")&&([r,c]=this.readIdentifierVal(e,r,"systemIdentifier"));else if(s==="SYSTEM"&&([r,c]=this.readIdentifierVal(e,r,"systemIdentifier"),!this.suppressValidationErr&&!c))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:a,systemIdentifier:c,index:--r}}readIdentifierVal(e,r,n){let i="",s=e[r];if(s!=='"'&&s!=="'")throw new Error(`Expected quoted string, found "${s}"`);r++;let a=r;for(;r<e.length&&e[r]!==s;)r++;if(i=e.substring(a,r),e[r]!==s)throw new Error(`Unterminated ${n} value`);return r++,[r,i]}readElementExp(e,r){r=_s(e,r);let n=r;for(;r<e.length&&!/\s/.test(e[r]);)r++;let i=e.substring(n,r);if(!this.suppressValidationErr&&!wp(i,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid element name: "${i}"`);r=_s(e,r);let s="";if(e[r]==="E"&&Ip(e,"MPTY",r))r+=4;else if(e[r]==="A"&&Ip(e,"NY",r))r+=2;else if(e[r]==="("){r++;let a=r;for(;r<e.length&&e[r]!==")";)r++;if(s=e.substring(a,r),e[r]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[r]}"`);return{elementName:i,contentModel:s.trim(),index:r}}readAttlistExp(e,r){r=_s(e,r);let n=r;for(;r<e.length&&!/\s/.test(e[r]);)r++;let i=e.substring(n,r);for(rw(i,{xmlVersion:this.xmlVersion}),r=_s(e,r),n=r;r<e.length&&!/\s/.test(e[r]);)r++;let s=e.substring(n,r);if(!rw(s,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid attribute name: "${s}"`);r=_s(e,r);let a="";if(e.substring(r,r+8).toUpperCase()==="NOTATION"){if(a="NOTATION",r+=8,r=_s(e,r),e[r]!=="(")throw new Error(`Expected '(', found "${e[r]}"`);r++;let l=[];for(;r<e.length&&e[r]!==")";){let u=r;for(;r<e.length&&e[r]!=="|"&&e[r]!==")";)r++;let d=e.substring(u,r);if(d=d.trim(),!rw(d,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid notation name: "${d}"`);l.push(d),e[r]==="|"&&(r++,r=_s(e,r))}if(e[r]!==")")throw new Error("Unterminated list of notations");r++,a+=" ("+l.join("|")+")"}else{let l=r;for(;r<e.length&&!/\s/.test(e[r]);)r++;a+=e.substring(l,r);let u=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!u.includes(a.toUpperCase()))throw new Error(`Invalid attribute type: "${a}"`)}r=_s(e,r);let c="";return e.substring(r,r+8).toUpperCase()==="#REQUIRED"?(c="#REQUIRED",r+=8):e.substring(r,r+7).toUpperCase()==="#IMPLIED"?(c="#IMPLIED",r+=7):[r,c]=this.readIdentifierVal(e,r,"ATTLIST"),{elementName:i,attributeName:s,attributeType:a,defaultValue:c,index:r}}},_s=o((t,e)=>{for(;e<t.length&&/\s/.test(t[e]);)e++;return e},"skipWhitespace");function Ip(t,e,r){for(let n=0;n<e.length;n++)if(e[n]!==t[r+n+1])return!1;return!0}o(Ip,"hasSeq");function rw(t,e){if(wp(t,{xmlVersion:e}))return t;throw new Error(`Invalid entity name ${t}`)}o(rw,"validateEntityName");var zst=/^[-+]?0x[a-fA-F0-9]+$/,$st=/^0b[01]+$/,jst=/^0o[0-7]+$/,Wst=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,Jst={hex:!0,binary:!1,octal:!1,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"};function $G(t,e={}){if(e=Object.assign({},Jst,e),!t||typeof t!="string")return t;let r=t.trim();if(r.length===0)return t;if(e.skipLike!==void 0&&e.skipLike.test(r))return t;if(r==="0")return 0;if(e.hex&&zst.test(r))return zG(r,16);if(e.binary&&$st.test(r))return zG(r,2);if(e.octal&&jst.test(r))return zG(r,8);if(isFinite(r)){if(r.includes("e")||r.includes("E"))return Kst(t,r,e);{let n=Wst.exec(r);if(n){let i=n[1]||"",s=n[2],a=Xst(n[3]),c=i?t[s.length+1]===".":t[s.length]===".";if(!e.leadingZeros&&(s.length>1||s.length===1&&!c))return t;{let l=Number(r),u=String(l);if(l===0)return l;if(u.search(/[eE]/)!==-1)return e.eNotation?l:t;if(r.indexOf(".")!==-1)return u==="0"||u===a||u===`${i}${a}`?l:t;let d=s?a:r;return s?d===u||i+d===u?l:t:d===u||d===i+u?l:t}}else return t}}else return Zst(t,Number(r),e)}o($G,"toNumber");var Yst=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function Kst(t,e,r){if(!r.eNotation)return t;let n=e.match(Yst);if(n){let i=n[1]||"",s=n[3].indexOf("e")===-1?"E":"e",a=n[2],c=i?t[a.length+1]===s:t[a.length]===s;return a.length>1&&c?t:a.length===1&&(n[3].startsWith(`.${s}`)||n[3][0]===s)?Number(e):a.length>0?r.leadingZeros&&!c?(e=(n[1]||"")+n[3],Number(e)):t:Number(e)}else return t}o(Kst,"resolveEnotation");function Xst(t){return t&&t.indexOf(".")!==-1&&(t=t.replace(/0+$/,""),t==="."?t="0":t[0]==="."?t="0"+t:t[t.length-1]==="."&&(t=t.substring(0,t.length-1))),t}o(Xst,"trimZeros");function zG(t,e){let r=t.trim();if((e===2||e===8)&&(t=r.substring(2)),parseInt)return parseInt(t,e);if(Number.parseInt)return Number.parseInt(t,e);if(window&&window.parseInt)return window.parseInt(t,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}o(zG,"parse_int");function Zst(t,e,r){let n=e===1/0;switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return e;case"string":return n?"Infinity":"-Infinity";default:return t}}o(Zst,"handleInfinity");function jG(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(jG,"getIgnoreAttributesFn");var mo=class{static{o(this,"Expression")}constructor(e,r={},n){this.pattern=e,this.separator=r.separator||".",this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(i=>i.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(i=>i.attrName!==void 0),this._hasPositionSelector=this.segments.some(i=>i.position!==void 0)}_parse(e){let r=[],n=0,i="";for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(i.trim()&&(r.push(this._parseSegment(i.trim())),i=""),r.push({type:"deep-wildcard"}),n+=2):(i.trim()&&r.push(this._parseSegment(i.trim())),i="",n++):(i+=e[n],n++);return i.trim()&&r.push(this._parseSegment(i.trim())),r}_parseSegment(e){let r={type:"tag"},n=null,i=e,s=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(s&&(i=s[1]+s[3],s[2])){let d=s[2].slice(1,-1);d&&(n=d)}let a,c=i;if(i.includes("::")){let d=i.indexOf("::");if(a=i.substring(0,d).trim(),c=i.substring(d+2).trim(),!a)throw new Error(`Invalid namespace in pattern: ${e}`)}let l,u=null;if(c.includes(":")){let d=c.lastIndexOf(":"),f=c.substring(0,d).trim(),h=c.substring(d+1).trim();["first","last","odd","even"].includes(h)||/^nth\(\d+\)$/.test(h)?(l=f,u=h):l=c}else l=c;if(!l)throw new Error(`Invalid segment pattern: ${e}`);if(r.tag=l,a&&(r.namespace=a),n)if(n.includes("=")){let d=n.indexOf("=");r.attrName=n.substring(0,d).trim(),r.attrValue=n.substring(d+1).trim()}else r.attrName=n.trim();if(u){let d=u.match(/^nth\((\d+)\)$/);d?(r.position="nth",r.positionValue=parseInt(d[1],10)):r.position=u}return r}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}};var qg=class{static{o(this,"ExpressionSet")}constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw new TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard())return this._deepWildcards.push(e),this;let r=e.length,i=e.segments[e.segments.length-1]?.tag;if(!i||i==="*")this._wildcardByDepth.has(r)||this._wildcardByDepth.set(r,[]),this._wildcardByDepth.get(r).push(e);else{let s=`${r}:${i}`;this._byDepthAndTag.has(s)||this._byDepthAndTag.set(s,[]),this._byDepthAndTag.get(s).push(e)}return this}addAll(e){for(let r of e)this.add(r);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return this.findMatch(e)!==null}findMatch(e){let r=e.getDepth(),n=e.getCurrentTag(),i=`${r}:${n}`,s=this._byDepthAndTag.get(i);if(s){for(let c=0;c<s.length;c++)if(e.matches(s[c]))return s[c]}let a=this._wildcardByDepth.get(r);if(a){for(let c=0;c<a.length;c++)if(e.matches(a[c]))return a[c]}for(let c=0;c<this._deepWildcards.length;c++)if(e.matches(this._deepWildcards[c]))return this._deepWildcards[c];return null}};var WG=class{static{o(this,"MatcherView")}constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){let e=this._matcher.path;return e.length>0?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)}},Zc=class{static{o(this,"Matcher")}constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new WG(this)}push(e,r=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let i=this.path.length;this.siblingStacks[i]||(this.siblingStacks[i]=new Map);let s=this.siblingStacks[i],a=n?`${n}:${e}`:e,c=s.get(a)||0,l=0;for(let d of s.values())l+=d;s.set(a,c+1);let u={tag:e,position:l,counter:c};n!=null&&(u.namespace=n),r!=null&&(u.values=r),this.path.push(u)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let r=this.path[this.path.length-1];e!=null&&(r.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let r=this.path[this.path.length-1];return r.values!==void 0&&e in r.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,r=!0){let n=e||this.separator;if(n===this.separator&&r===!0){if(this._pathStringCache!==null)return this._pathStringCache;let s=this.path.map(a=>a.namespace?`${a.namespace}:${a.tag}`:a.tag).join(n);return this._pathStringCache=s,s}return this.path.map(s=>r&&s.namespace?`${s.namespace}:${s.tag}`:s.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let r=e.segments;return r.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(r):this._matchSimple(r)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let r=0;r<e.length;r++)if(!this._matchSegment(e[r],this.path[r],r===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let r=this.path.length-1,n=e.length-1;for(;n>=0&&r>=0;){let i=e[n];if(i.type==="deep-wildcard"){if(n--,n<0)return!0;let s=e[n],a=!1;for(let c=r;c>=0;c--)if(this._matchSegment(s,this.path[c],c===this.path.length-1)){r=c-1,n--,a=!0;break}if(!a)return!1}else{if(!this._matchSegment(i,this.path[r],r===this.path.length-1))return!1;r--,n--}}return n<0}_matchSegment(e,r,n){if(e.tag!=="*"&&e.tag!==r.tag||e.namespace!==void 0&&e.namespace!=="*"&&e.namespace!==r.namespace||e.attrName!==void 0&&(!n||!r.values||!(e.attrName in r.values)||e.attrValue!==void 0&&String(r.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let i=r.counter??0;if(e.position==="first"&&i!==0)return!1;if(e.position==="odd"&&i%2!==1)return!1;if(e.position==="even"&&i%2!==0)return!1;if(e.position==="nth"&&i!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(r=>({...r})),this.siblingStacks=e.siblingStacks.map(r=>new Map(r))}readOnly(){return this._view}};function eot(t,e){if(!t)return{};let r=e.attributesGroupName?t[e.attributesGroupName]:t;if(!r)return{};let n={};for(let i in r)if(i.startsWith(e.attributeNamePrefix)){let s=i.substring(e.attributeNamePrefix.length);n[s]=r[i]}else n[i]=r[i];return n}o(eot,"extractRawAttributes");function tot(t){if(!t||typeof t!="string")return;let e=t.indexOf(":");if(e!==-1&&e>0){let r=t.substring(0,e);if(r!=="xmlns")return r}}o(tot,"extractNamespace");var iw=class{static{o(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=oot,this.parseTextData=rot,this.resolveNameSpace=not,this.buildAttributesMap=sot,this.isItStopNode=uot,this.replaceEntitiesValue=cot,this.readStopNodeData=hot,this.saveTextToParentTag=lot,this.addChild=aot,this.ignoreAttributesFn=jG(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...tw};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...GG,...fT}),this.entityDecoder=new Ug({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 Zc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new qg;let i=this.options.stopNodes;if(i&&i.length>0){for(let s=0;s<i.length;s++){let a=i[s];typeof a=="string"?this.stopNodeExpressionsSet.add(new mo(a)):a instanceof mo&&this.stopNodeExpressionsSet.add(a)}this.stopNodeExpressionsSet.seal()}}};function rot(t,e,r,n,i,s,a){let c=this.options;if(t!==void 0&&(c.trimValues&&!n&&(t=t.trim()),t.length>0)){a||(t=this.replaceEntitiesValue(t,e,r));let l=c.jPath?r.toString():r,u=c.tagValueProcessor(e,t,l,i,s);return u==null?t:typeof u!=typeof t||u!==t?u:c.trimValues||t.trim()===t?KG(t,c.parseTagValue,c.numberParseOptions):t}}o(rot,"parseTextData");function not(t){if(this.options.removeNSPrefix){let e=t.split(":"),r=t.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(t=r+e[1])}return t}o(not,"resolveNameSpace");var iot=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function sot(t,e,r,n=!1){let i=this.options;if(n===!0||i.ignoreAttributes!==!0&&typeof t=="string"){let s=lT(t,iot),a=s.length,c={},l=new Array(a),u=!1,d={};for(let p=0;p<a;p++){let g=this.resolveNameSpace(s[p][1]),A=s[p][4];if(g.length&&A!==void 0){let E=A;i.trimValues&&(E=E.trim()),E=this.replaceEntitiesValue(E,r,this.readonlyMatcher),l[p]=E,d[g]=E,u=!0}}u&&typeof e=="object"&&e.updateCurrent&&e.updateCurrent(d);let f=i.jPath?e.toString():this.readonlyMatcher,h=!1;for(let p=0;p<a;p++){let g=this.resolveNameSpace(s[p][1]);if(this.ignoreAttributesFn(g,f))continue;let A=i.attributeNamePrefix+g;if(g.length)if(i.transformAttributeName&&(A=i.transformAttributeName(A)),A=tme(A,i),s[p][4]!==void 0){let E=l[p],y=i.attributeValueProcessor(g,E,f);y==null?c[A]=E:typeof y!=typeof E||y!==E?c[A]=y:c[A]=KG(E,i.parseAttributeValue,i.numberParseOptions),h=!0}else i.allowBooleanAttributes&&(c[A]=!0,h=!0)}if(!h)return;if(i.attributesGroupName&&!i.preserveOrder){let p={};return p[i.attributesGroupName]=c,p}return c}}o(sot,"buildAttributesMap");var oot=o(function(t){t=t.replace(/\r\n?/g,`
|
|
`);let e=new Ns("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,s=new nw(i.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=Gg(t,">",c,"Closing Tag is not closed."),f=t.substring(c+2,d).trim();if(i.removeNSPrefix){let p=f.indexOf(":");p!==-1&&(f=f.substr(p+1))}f=JG(i.transformTagName,f,"",i).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&i.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);h&&i.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=YG(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),s.setXmlVersion(Number(h)||1)}if(!(i.ignoreDeclaration&&d.tagName==="?xml"||i.ignorePiTags)){let h=new Ns(d.tagName);h.add(i.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&i.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(r,h,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=Gg(t,"-->",c+4,"Comment is not closed.");if(i.commentPropName){let f=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:f}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=s.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=Gg(t,"]]>",c,"CDATA is not closed.")-2,f=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let h=this.parseTextData(f,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:f}]):r.add(i.textNodeName,h),c=d+2}else{let d=YG(t,c,i.removeNSPrefix);if(!d){let U=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${U}"`)}let f=d.tagName,h=d.rawTagName,p=d.tagExp,g=d.attrExpPresent,A=d.closeIndex;if({tagName:f,tagExp:p}=JG(i.transformTagName,f,p,i),i.strictReservedNames&&(f===i.commentPropName||f===i.cdataPropName||f===i.textNodeName||f===i.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),p=f):p=p.substr(0,p.length-1),g=f!==p);let C=null,w={},B;B=tot(h),f!==e.tagname&&this.matcher.push(f,{},B),f!==p&&g&&(C=this.buildAttributesMap(p,this.matcher,f),C&&(w=eot(C,i))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let Q=c;if(this.isCurrentNodeStopNode){let U="";if(y)c=d.closeIndex;else if(i.unpairedTagsSet.has(f))c=d.closeIndex;else{let j=this.readStopNodeData(t,h,A+1);if(!j)throw new Error(`Unexpected end of ${h}`);c=j.i,U=j.tagContent}let v=new Ns(f);C&&(v[":@"]=C),v.add(i.textNodeName,U),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,v,this.readonlyMatcher,Q)}else{if(y){({tagName:f,tagExp:p}=JG(i.transformTagName,f,p,i));let U=new Ns(f);C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(f)){let U=new Ns(f);C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let U=new Ns(f);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,Q),r=U}n="",c=A}}}else n+=t[c];return e.child},"parseXml");function aot(t,e,r,n){this.options.captureMetaData||(n=void 0);let i=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,i,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}o(aot,"addChild");function cot(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let i=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,i)))return t}if(n.tagFilter){let i=this.options.jPath?r.toString():r;if(!n.tagFilter(e,i))return t}return this.entityDecoder.decode(t)}o(cot,"replaceEntitiesValue");function lot(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(lot,"saveTextToParentTag");function uot(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}o(uot,"isItStopNode");function dot(t,e,r=">"){let n=0,i=t.length,s=r.charCodeAt(0),a=r.length>1?r.charCodeAt(1):-1,c="",l=e;for(let u=e;u<i;u++){let d=t.charCodeAt(u);if(n)d===n&&(n=0);else if(d===34||d===39)n=d;else if(d===s)if(a!==-1){if(t.charCodeAt(u+1)===a)return c+=t.substring(l,u),{data:c,index:u}}else return c+=t.substring(l,u),{data:c,index:u};else d===9&&!n&&(c+=t.substring(l,u)+" ",l=u+1)}}o(dot,"tagExpWithClosingIndex");function Gg(t,e,r,n){let i=t.indexOf(e,r);if(i===-1)throw new Error(n);return i+e.length-1}o(Gg,"findClosingIndex");function fot(t,e,r,n){let i=t.indexOf(e,r);if(i===-1)throw new Error(n);return i}o(fot,"findClosingChar");function YG(t,e,r,n=">"){let i=dot(t,e+1,n);if(!i)return;let s=i.data,a=i.index,c=s.search(/\s/),l=s,u=!0;c!==-1&&(l=s.substring(0,c),s=s.substring(c+1).trimStart());let d=l;if(r){let f=l.indexOf(":");f!==-1&&(l=l.substr(f+1),u=l!==i.data.substr(f+1))}return{tagName:l,tagExp:s,closeIndex:a,attrExpPresent:u,rawTagName:d}}o(YG,"readTagExp");function hot(t,e,r){let n=r,i=1,s=t.length;for(;r<s;r++)if(t[r]==="<"){let a=t.charCodeAt(r+1);if(a===47){let c=fot(t,">",r,`${e} is not closed`);if(t.substring(r+2,c).trim()===e&&(i--,i===0))return{tagContent:t.substring(n,r),i:c};r=c}else if(a===63)r=Gg(t,"?>",r+1,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===45&&t.charCodeAt(r+3)===45)r=Gg(t,"-->",r+3,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===91)r=Gg(t,"]]>",r,"StopNode is not closed.")-2;else{let c=YG(t,r,!1);c&&((c&&c.tagName)===e&&c.tagExp[c.tagExp.length-1]!=="/"&&i++,r=c.closeIndex)}}}o(hot,"readStopNodeData");function KG(t,e,r){if(e&&typeof t=="string"){let n=t.trim();return n==="true"?!0:n==="false"?!1:$G(t,r)}else return RAe(t)?t:""}o(KG,"parseValue");function JG(t,e,r,n){if(t){let i=t(e);r===e&&(r=i),e=i}return e=tme(e,n),{tagName:e,tagExp:r}}o(JG,"transformTagName");function tme(t,e){if(uT.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return Z0.includes(t)?e.onDangerousProperty(t):t}o(tme,"sanitizeName");var XG=Ns.getMetaDataSymbol();function pot(t,e){if(!t||typeof t!="object")return{};if(!e)return t;let r={};for(let n in t)if(n.startsWith(e)){let i=n.substring(e.length);r[i]=t[n]}else r[n]=t[n];return r}o(pot,"stripAttributePrefix");function ZG(t,e,r,n){return rme(t,e,r,n)}o(ZG,"prettify");function rme(t,e,r,n){let i,s={};for(let a=0;a<t.length;a++){let c=t[a],l=Aot(c);if(l!==void 0&&l!==e.textNodeName){let u=pot(c[":@"]||{},e.attributeNamePrefix);r.push(l,u)}if(l===e.textNodeName)i===void 0?i=c[l]:i+=""+c[l];else{if(l===void 0)continue;if(c[l]){let u=rme(c[l],e,r,n),d=got(u,e);if(Object.keys(u).length===0&&e.alwaysCreateTextNode&&(u[e.textNodeName]=""),c[":@"]?mot(u,c[":@"],n,e):Object.keys(u).length===1&&u[e.textNodeName]!==void 0&&!e.alwaysCreateTextNode?u=u[e.textNodeName]:Object.keys(u).length===0&&(e.alwaysCreateTextNode?u[e.textNodeName]="":u=""),c[XG]!==void 0&&typeof u=="object"&&u!==null&&(u[XG]=c[XG]),s[l]!==void 0&&Object.prototype.hasOwnProperty.call(s,l))Array.isArray(s[l])||(s[l]=[s[l]]),s[l].push(u);else{let f=e.jPath?n.toString():n;e.isArray(l,f,d)?s[l]=[u]:s[l]=u}l!==void 0&&l!==e.textNodeName&&r.pop()}}}return typeof i=="string"?i.length>0&&(s[e.textNodeName]=i):i!==void 0&&(s[e.textNodeName]=i),s}o(rme,"compress");function Aot(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(n!==":@")return n}}o(Aot,"propName");function mot(t,e,r,n){if(e){let i=Object.keys(e),s=i.length;for(let a=0;a<s;a++){let c=i[a],l=c.startsWith(n.attributeNamePrefix)?c.substring(n.attributeNamePrefix.length):c,u=n.jPath?r.toString()+"."+l:r;n.isArray(c,u,!0,!0)?t[c]=[e[c]]:t[c]=e[c]}}}o(mot,"assignAttributes");function got(t,e){let{textNodeName:r}=e,n=Object.keys(t).length;return!!(n===0||n===1&&(t[r]||typeof t[r]=="boolean"||t[r]===0))}o(got,"isLeafTag");var Hg=class{static{o(this,"XMLParser")}constructor(e){this.externalEntities={},this.options=KAe(e)}parse(e,r){if(typeof e!="string"&&e.toString)e=e.toString();else if(typeof e!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(r){r===!0&&(r={});let s=dT(e,r);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}let n=new iw(this.options,this.externalEntities),i=n.parseXml(e);return this.options.preserveOrder||i===void 0?i:ZG(i,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,r){if(r.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(e.indexOf("&")!==-1||e.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(r==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=r}static getMetaDataSymbol(){return Ns.getMetaDataSymbol()}};function AT(t){return String(t).replace(/--/g,"- -").replace(/--/g,"- -").replace(/-$/,"- ")}o(AT,"safeComment");function mT(t){return String(t).replace(/\]\]>/g,"]]]]><![CDATA[>")}o(mT,"safeCdata");function Ef(t){return String(t).replace(/"/g,""").replace(/'/g,"'")}o(Ef,"escapeAttribute");var yot=`
|
|
`;function Eot(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(rH(r)==="?xml"){let i=r[":@"];if(i){let s=e.attributeNamePrefix+"version";if(i[s])return i[s]}}return"1.0"}o(Eot,"detectXmlVersionFromArray");function ime(t,e,r,n,i){return!r.sanitizeName||wp(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(ime,"resolveTagName");function tH(t,e){let r="";e.format&&(r=yot);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new mo(c)):c instanceof mo&&n.push(c)}let i=Eot(t,e),s=new Zc;return sme(t,e,r,s,n,i)}o(tH,"toXml");function sme(t,e,r,n,i,s){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=eH(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=rH(u);if(d===void 0)continue;let h=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:ime(d,!1,e,n,s),p=Cot(u[":@"],e);n.push(h,p);let g=wot(n,i);if(h===e.textNodeName){let w=u[d];g||(w=e.tagValueProcessor(h,w),w=eH(w,e)),c&&(a+=r),a+=w,c=!1,n.pop();continue}else if(h===e.cdataPropName){c&&(a+=r);let w=u[d][0][e.textNodeName],B=mT(w);a+=`<![CDATA[${B}]]>`,c=!1,n.pop();continue}else if(h===e.commentPropName){let w=u[d][0][e.textNodeName],B=AT(w);a+=r+`<!--${B}-->`,c=!0,n.pop();continue}else if(h[0]==="?"){let w=nme(u[":@"],e,g,n,s);a+=(h==="?xml"?"":r)+`<${h}${w}?>`,c=!0,n.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let E=nme(u[":@"],e,g,n,s),y=r+`<${h}${E}`,C;g?C=ome(u[d],e):C=sme(u[d],e,A,n,i,s),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=y+"/>":C&&C.endsWith(">")?a+=y+`>${C}${r}</${h}>`:(a+=y+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${h}>`),c=!0,n.pop()}return a}o(sme,"arrToStr");function Cot(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[s]=Ef(t[i]),n=!0}return n?r:null}o(Cot,"extractAttributeValues");function ome(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let i=t[n],s=rH(i);if(s===e.textNodeName)r+=i[s];else if(s===e.cdataPropName)r+=i[s][0][e.textNodeName];else if(s===e.commentPropName)r+=i[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=bot(i[":@"],e),c=ome(i[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}o(ome,"getRawContent");function bot(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=t[n];i===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Ef(i)}"`}return r}o(bot,"attr_to_str_raw");function rH(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(rH,"propName");function nme(t,e,r,n,i){let s="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:ime(c,!0,e,n,i),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=eH(u,e)),u===!0&&e.suppressBooleanAttributes?s+=` ${l}`:s+=` ${l}="${Ef(u)}"`}return s}o(nme,"attr_to_str");function wot(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(wot,"checkStopNode");function eH(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(eH,"replaceEntitiesValue");function nH(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(nH,"getIgnoreAttributesFn");var Iot={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Ts(t){if(this.options=Object.assign({},Iot,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.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new mo(r)):r instanceof mo&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=nH(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=vot),this.processTextOrObjNode=Bot,this.options.format?(this.indentate=xot,this.tagEndChar=`>
|
|
`,this.newLine=`
|
|
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Ts,"Builder");function Sot(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(Sot,"detectXmlVersionFromObj");function iH(t,e,r,n,i){return!r.sanitizeName||wp(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(iH,"resolveTagName");Ts.prototype.build=function(t){if(this.options.preserveOrder)return tH(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Zc,r=Sot(t,this.options);return this.j2x(t,0,e,r).val}};Ts.prototype.j2x=function(t,e,r,n){let i="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:iH(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(s+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?s+="":d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)s+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let f=this.isAttribute(l);if(f&&!this.ignoreAttributesFn(f,a)){let h=iH(f,!0,this.options,r,n);i+=this.buildAttrPairStr(h,""+t[l],c)}else if(!f)if(l===this.options.textNodeName){let h=this.options.tagValueProcessor(l,""+t[l]);s+=this.replaceEntitiesValue(h)}else{r.push(d);let h=this.checkStopNode(r);if(r.pop(),h){let p=""+t[l];p===""?s+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:s+=this.indentate(e)+"<"+d+">"+p+"</"+d+this.tagEndChar}else s+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let f=t[l].length,h="",p="";for(let g=0;g<f;g++){let A=t[l][g];if(!(typeof A>"u"))if(A===null)d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(d);let E=this.j2x(A,e+1,r,n);r.pop(),h+=E.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(p+=E.attrStr)}else h+=this.processTextOrObjNode(A,d,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(d,A);E=this.replaceEntitiesValue(E),h+=E}else{r.push(d);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+A;y===""?h+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:h+=this.indentate(e)+"<"+d+">"+y+"</"+d+this.tagEndChar}else h+=this.buildTextValNode(A,d,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,d,p,e)),s+=h}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let f=Object.keys(t[l]),h=f.length;for(let p=0;p<h;p++){let g=iH(f[p],!0,this.options,r,n);i+=this.buildAttrPairStr(g,""+t[l][f[p]],c)}}else s+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:i,val:s}};Ts.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Ef(e)+'"'};function Bot(t,e,r,n,i){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,i);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(Bot,"processTextOrObjNode");Ts.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let s=i.startsWith(this.options.attributeNamePrefix)?i.substring(this.options.attributeNamePrefix.length):i;e[s]=Ef(n[i]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=this.isAttribute(n);i&&(e[i]=Ef(t[n]),r=!0)}return r?e:null};Ts.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let i of n)if(typeof i=="string"||typeof i=="number")e+=`<${r}>${i}</${r}>`;else if(typeof i=="object"&&i!==null){let s=this.buildRawContent(i),a=this.buildAttributesForStopNode(i);s===""?e+=`<${r}${a}/>`:e+=`<${r}${a}>${s}</${r}>`}}else if(typeof n=="object"&&n!==null){let i=this.buildRawContent(n),s=this.buildAttributesForStopNode(n);i===""?e+=`<${r}${s}/>`:e+=`<${r}${s}>${i}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};Ts.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n,s=r[n];s===!0&&this.options.suppressBooleanAttributes?e+=" "+i:e+=" "+i+'="'+s+'"'}}else for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=this.isAttribute(r);if(n){let i=t[r];i===!0&&this.options.suppressBooleanAttributes?e+=" "+n:e+=" "+n+'="'+i+'"'}}return e};Ts.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let i="</"+e+this.tagEndChar,s="";return e[0]==="?"&&(s="?",i=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+r+s+">"+t+i:this.options.commentPropName!==!1&&e===this.options.commentPropName&&s.length===0?this.indentate(n)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+r+s+this.tagEndChar+t+this.indentate(n)+i}};Ts.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};Ts.prototype.checkStopNode=function(t){if(!this.stopNodeExpressions||this.stopNodeExpressions.length===0)return!1;for(let e=0;e<this.stopNodeExpressions.length;e++)if(t.matches(this.stopNodeExpressions[e]))return!0;return!1};Ts.prototype.buildTextValNode=function(t,e,r,n,i){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName){let s=mT(t);return this.indentate(n)+`<![CDATA[${s}]]>`+this.newLine}else if(this.options.commentPropName!==!1&&e===this.options.commentPropName){let s=AT(t);return this.indentate(n)+`<!--${s}-->`+this.newLine}else{if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),s===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+s+"</"+e+this.tagEndChar}}};Ts.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function xot(t){return this.options.indentBy.repeat(t)}o(xot,"indentate");function vot(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}o(vot,"isAttribute");var sH=Ts;var ame={validate:dT};function ume(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}o(ume,"getCommonOptions");function Not(t={}){var e,r;return Object.assign(Object.assign({},ume(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}o(Not,"getSerializerOptions");function _ot(t={}){return Object.assign(Object.assign({},ume(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}o(_ot,"getParserOptions");function gT(t,e={}){let r=Not(e),n=new sH(r),i={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${n.build(i)}`.replace(/\n/g,"")}o(gT,"stringifyXML");async function oH(t,e={}){if(!t)throw new Error("Document is empty");let r=ame.validate(t);if(r!==!0)throw r;let i=new Hg(_ot(e)).parse(t);if(i["?xml"]&&delete i["?xml"],!e.includeRoot)for(let s of Object.keys(i)){let a=i[s];return typeof a=="object"?Object.assign({},a):a}return i}o(oH,"parseXML");var yT=Jc("storage-blob");var hme=require("events");var dme=require("node:stream");var ET=class extends dme.Readable{static{o(this,"BuffersStream")}buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,r,n){super(n),this.buffers=e,this.byteLength=r,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let i=0;for(let s of this.buffers)i+=s.byteLength;if(i<this.byteLength)throw new Error("Data size shouldn't be larger than the total length of buffers.")}_read(e){this.pushedBytesLength>=this.byteLength&&this.push(null),e||(e=this.readableHighWaterMark);let r=[],n=0;for(;n<e&&this.pushedBytesLength<this.byteLength;){let i=this.byteLength-this.pushedBytesLength,s=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer,a=Math.min(s,i);if(a>e-n){let c=this.byteOffsetInCurrentBuffer+e-n;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=c,n=e;break}else{let c=this.byteOffsetInCurrentBuffer+a;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),a===s?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=c,this.pushedBytesLength+=a,n+=a}}r.length>1?this.push(Buffer.concat(r)):r.length===1&&this.push(r[0])}};var fme=N(require("node:buffer"),1);var CT=fme.default.constants.MAX_LENGTH,bT=class{static{o(this,"PooledBuffer")}buffers=[];capacity;_size;get size(){return this._size}constructor(e,r,n){this.capacity=e,this._size=0;let i=Math.ceil(e/CT);for(let s=0;s<i;s++){let a=s===i-1?e%CT:CT;a===0&&(a=CT),this.buffers.push(Buffer.allocUnsafe(a))}r&&this.fill(r,n)}fill(e,r){this._size=Math.min(this.capacity,r);let n=0,i=0,s=0,a=0,c=0;for(;c<this._size;){let l=e[n],u=this.buffers[i],d=l.copy(u,s,a);c+=d,a+=d,s+=d,a===l.length&&(n++,a=0),s===u.length&&(i++,s=0)}e.splice(0,n),e.length>0&&(e[0]=e[0].slice(a))}getReadableStream(){return new ET(this.buffers,this.size)}};var wT=class{static{o(this,"BufferScheduler")}bufferSize;maxBuffers;readable;outgoingHandler;emitter=new hme.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,r,n,i,s,a){if(r<=0)throw new RangeError(`bufferSize must be larger than 0, current is ${r}`);if(n<=0)throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(s<=0)throw new RangeError(`concurrency must be larger than 0, current is ${s}`);this.bufferSize=r,this.maxBuffers=n,this.readable=e,this.outgoingHandler=i,this.concurrency=s,this.encoding=a}async do(){return new Promise((e,r)=>{this.readable.on("data",n=>{n=typeof n=="string"?Buffer.from(n,this.encoding):n,this.appendUnresolvedData(n),this.resolveData()||this.readable.pause()}),this.readable.on("error",n=>{this.emitter.emit("error",n)}),this.readable.on("end",()=>{this.isStreamEnd=!0,this.emitter.emit("checkEnd")}),this.emitter.on("error",n=>{this.isError=!0,this.readable.pause(),r(n)}),this.emitter.on("checkEnd",()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLength<this.bufferSize){let n=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler(()=>n.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 bT(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.maxBuffers)e=this.shiftBufferFromUnresolvedDataArray(),this.numBuffers++;else return!1;this.outgoing.push(e),this.triggerOutgoingHandlers()}return!0}async triggerOutgoingHandlers(){let e;do{if(this.executingOutgoingHandlers>=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 aH;function cH(){return aH||(aH=z0()),aH}o(cH,"getCachedDefaultHttpClient");var el=class{static{o(this,"BaseRequestPolicy")}_nextPolicy;_options;constructor(e,r){this._nextPolicy=e,this._options=r}shouldLog(e){return this._options.shouldLog(e)}log(e,r){this._options.log(e,r)}};var Hu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},Ve={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 Cf(t,e,r){let n=new URL(t),i=encodeURIComponent(e),s=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==i&&c.push(l)}return s&&c.push(`${i}=${s}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}o(Cf,"setURLParameter");function IT(t,e){let r=new URL(t);return r.hostname=e,r.toString()}o(IT,"setURLHost");function ST(t){try{return new URL(t).pathname}catch{return}}o(ST,"getURLPath");function BT(t){let e=new URL(t).search;if(!e)return{};e=e.trim(),e=e.startsWith("?")?e.substring(1):e;let r=e.split("&");r=r.filter(i=>{let s=i.indexOf("="),a=i.lastIndexOf("=");return s>0&&s===a&&a<i.length-1});let n={};for(let i of r){let s=i.split("="),a=s[0],c=s[1];n[a]=c}return n}o(BT,"getURLQueries");async function xT(t,e,r){return new Promise((n,i)=>{let s,a=o(()=>{s!==void 0&&clearTimeout(s),i(r)},"abortHandler");s=setTimeout(o(()=>{e!==void 0&&e.removeEventListener("abort",a),n()},"resolveHandler"),t),e!==void 0&&e.addEventListener("abort",a)})}o(xT,"delay");var sw=class extends el{static{o(this,"StorageBrowserPolicy")}constructor(e,r){super(e,r)}async sendRequest(e){return Lt?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=Cf(e.url,Hu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(Ve.COOKIE),e.headers.remove(Ve.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}};var ow=class{static{o(this,"StorageBrowserPolicyFactory")}create(e,r){return new sw(e,r)}};var Sp=class extends el{static{o(this,"CredentialPolicy")}sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var aw=class extends Sp{static{o(this,"AnonymousCredentialPolicy")}constructor(e,r){super(e,r)}};var Bp=class{static{o(this,"Credential")}create(e,r){throw new Error("Method should be implemented in children classes.")}};var yr=class extends Bp{static{o(this,"AnonymousCredential")}create(e,r){return new aw(e,r)}};var pme=require("node:crypto");var Tot=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]),Rot=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]),Dot=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 vT(t,e){return Qot(t,e)?-1:1}o(vT,"compareHeader");function Qot(t,e){let r=[Tot,Rot,Dot],n=0,i=0,s=0;for(;n<r.length;){if(n===r.length-1&&i!==s)return i>s;let a=i<t.length?r[n][t[i].charCodeAt(0)]:1,c=s<e.length?r[n][e[s].charCodeAt(0)]:1;if(a===1&&c===1)i=0,s=0,++n;else if(a===c)++i,++s;else if(a===0)++i;else if(c===0)++s;else return a<c}return!1}o(Qot,"isLessThan");var cw=class extends Sp{static{o(this,"StorageSharedKeyCredentialPolicy")}factory;constructor(e,r,n){super(e,r),this.factory=n}signRequest(e){e.headers.set(Ve.X_MS_DATE,new Date().toUTCString()),e.body&&(typeof e.body=="string"||e.body!==void 0)&&e.body.length>0&&e.headers.set(Ve.CONTENT_LENGTH,Buffer.byteLength(e.body));let r=[e.method.toUpperCase(),this.getHeaderValueToSign(e,Ve.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,Ve.CONTENT_ENCODING),this.getHeaderValueToSign(e,Ve.CONTENT_LENGTH),this.getHeaderValueToSign(e,Ve.CONTENT_MD5),this.getHeaderValueToSign(e,Ve.CONTENT_TYPE),this.getHeaderValueToSign(e,Ve.DATE),this.getHeaderValueToSign(e,Ve.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,Ve.IF_MATCH),this.getHeaderValueToSign(e,Ve.IF_NONE_MATCH),this.getHeaderValueToSign(e,Ve.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,Ve.RANGE)].join(`
|
|
`)+`
|
|
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Ve.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Ve.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(Ve.PREFIX_FOR_STORAGE));r.sort((i,s)=>vT(i.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((i,s,a)=>!(s>0&&i.name.toLowerCase()===a[s-1].name.toLowerCase()));let n="";return r.forEach(i=>{n+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
|
|
`}),n}getCanonicalizedResourceString(e){let r=ST(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let i=BT(e.url),s={};if(i){let a=[];for(let c in i)if(Object.prototype.hasOwnProperty.call(i,c)){let l=c.toLowerCase();s[l]=i[c],a.push(l)}a.sort();for(let c of a)n+=`
|
|
${c}:${decodeURIComponent(s[c])}`}return n}};var kr=class extends Bp{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new cw(e,r,this)}computeHMACSHA256(e){return(0,pme.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Nn=Jc("storage-common");var ea;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ea||(ea={}));var bf={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ea.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Pot=new ho("The operation was aborted."),lw=class extends el{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=bf){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:bf.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):bf.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:bf.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:bf.maxRetryDelayInMs):bf.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:bf.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:bf.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let i=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(i.url=IT(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Cf(i.url,Hu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Nn.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(i),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(Nn.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,i){if(r>=this.retryOptions.maxTries)return Nn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let a of s)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)return Nn.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||i){let a=n?n.status:i?i.statusCode:0;if(!e&&a===404)return Nn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Nn.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Ve.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(Nn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case ea.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ea.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return Nn.info(`RetryPolicy: Delay for ${i}ms`),xT(i,n,Pot)}};var uw=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new lw(e,r,this.retryOptions)}};var kot="storageBrowserPolicy";function Ame(){return{name:kot,async sendRequest(t,e){return Lt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Cf(t.url,Hu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ve.COOKIE),t.headers.delete(Ve.CONTENT_LENGTH)),e(t)}}}o(Ame,"storageBrowserPolicy");var Oot="StorageCorrectContentLengthPolicy";function mme(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ve.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:Oot,async sendRequest(e,r){return t(e),r(e)}}}o(mme,"storageCorrectContentLengthPolicy");var Lot="storageRetryPolicy",Vg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ea.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Fot=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Mot=new ho("The operation was aborted.");function gme(t={}){let e=t.retryPolicyType??Vg.retryPolicyType,r=t.maxTries??Vg.maxTries,n=t.retryDelayInMs??Vg.retryDelayInMs,i=t.maxRetryDelayInMs??Vg.maxRetryDelayInMs,s=t.secondaryHost??Vg.secondaryHost,a=t.tryTimeoutInMs??Vg.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:f,error:h}){if(d>=r)return Nn.info(`RetryPolicy: Attempt(s) ${d} >= maxTries ${r}, no further try.`),!1;if(h){for(let p of Fot)if(h.name.toUpperCase().includes(p)||h.message.toUpperCase().includes(p)||h.code&&h.code.toString().toUpperCase()===p)return Nn.info(`RetryPolicy: Network error ${p} found, will retry.`),!0;if(h?.code==="PARSE_ERROR"&&h?.message.startsWith('Error "Error: Unclosed root tag'))return Nn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(f||h){let p=f?.status??h?.statusCode??0;if(!u&&p===404)return Nn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(p===503||p===500)return Nn.info(`RetryPolicy: Will retry for status code ${p}.`),!0}if(f&&f?.status>=400){let p=f.headers.get(Ve.X_MS_CopySourceErrorCode);if(p!==void 0)switch(p){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return!1}o(c,"shouldRetry");function l(u,d){let f=0;if(u)switch(e){case ea.EXPONENTIAL:f=Math.min((Math.pow(2,d-1)-1)*n,i);break;case ea.FIXED:f=n;break}else f=Math.random()*1e3;return Nn.info(`RetryPolicy: Delay for ${f}ms`),f}return o(l,"calculateDelay"),{name:Lot,async sendRequest(u,d){a&&(u.url=Cf(u.url,Hu.Parameters.TIMEOUT,String(Math.floor(a/1e3))));let f=u.url,h=s?IT(u.url,s):void 0,p=!1,g=1,A=!0,E,y;for(;A;){let C=p||!h||!["GET","HEAD","OPTIONS"].includes(u.method)||g%2===1;u.url=C?f:h,E=void 0,y=void 0;try{Nn.info(`RetryPolicy: =====> Try=${g} ${C?"Primary":"Secondary"}`),E=await d(u),p=p||!C&&E.status===404}catch(w){if(Ep(w))Nn.error(`RetryPolicy: Caught error, message: ${w.message}, code: ${w.code}`),y=w;else throw Nn.error(`RetryPolicy: Caught error, message: ${Af(w)}`),w}A=c({isPrimaryRetry:C,attempt:g,response:E,error:y}),A&&await xT(l(C,g),u.abortSignal,Mot),g++}if(E)return E;throw y??new Uu("RetryPolicy failed without known error.")}}}o(gme,"storageRetryPolicy");var yme=require("node:crypto");var Uot="storageSharedKeyCredentialPolicy";function lH(t){function e(s){s.headers.set(Ve.X_MS_DATE,new Date().toUTCString()),s.body&&(typeof s.body=="string"||Buffer.isBuffer(s.body))&&s.body.length>0&&s.headers.set(Ve.CONTENT_LENGTH,Buffer.byteLength(s.body));let a=[s.method.toUpperCase(),r(s,Ve.CONTENT_LANGUAGE),r(s,Ve.CONTENT_ENCODING),r(s,Ve.CONTENT_LENGTH),r(s,Ve.CONTENT_MD5),r(s,Ve.CONTENT_TYPE),r(s,Ve.DATE),r(s,Ve.IF_MODIFIED_SINCE),r(s,Ve.IF_MATCH),r(s,Ve.IF_NONE_MATCH),r(s,Ve.IF_UNMODIFIED_SINCE),r(s,Ve.RANGE)].join(`
|
|
`)+`
|
|
`+n(s)+i(s),c=(0,yme.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(Ve.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===Ve.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(s){let a=[];for(let[l,u]of s.headers)l.toLowerCase().startsWith(Ve.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>vT(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
|
|
`}),c}o(n,"getCanonicalizedHeadersString");function i(s){let a=ST(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=BT(s.url),u={};if(l){let d=[];for(let f in l)if(Object.prototype.hasOwnProperty.call(l,f)){let h=f.toLowerCase();u[h]=l[f],d.push(h)}d.sort();for(let f of d)c+=`
|
|
${f}:${decodeURIComponent(u[f])}`}return c}return o(i,"getCanonicalizedResourceString"),{name:Uot,async sendRequest(s,a){return e(s),a(s)}}}o(lH,"storageSharedKeyCredentialPolicy");var qot="storageRequestFailureDetailsParserPolicy";function Eme(){return{name:qot,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
|
|
`),r}}}}o(Eme,"storageRequestFailureDetailsParserPolicy");var Cme=require("node:crypto");var NT=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Cme.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var _T="12.31.0",TT="2026-02-06";var RT="https://storage.azure.com/.default",Vu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var ec="",uH="*",Got=1*1024*1024;var Hot=4*Got;var bme="AES256",wme="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Ime=["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"],Sme=["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"],Bme="BlobUsesCustomerSpecifiedEncryption",xme="BlobDoesNotUseCustomerSpecifiedEncryption",vme=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function zu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(zu,"isPipelineLike");var dw=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new yr);let r=new dw([],e);return r._credential=t,r}o(en,"newPipeline");function Vot(t){let e=[zot,Nme,$ot,jot,Wot,Jot,Kot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(i=>i(n)));if(r.length){let n=r.some(i=>Yot(i));return{wrappedPolicies:MG(r),afterRetry:n}}}}o(Vot,"processDownlevelPipeline");function dH(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?UG(e):cH(),t._coreHttpClient=n);let i=t._corePipeline;if(!i){let s=`azsdk-js-azure-storage-blob/${_T}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;i=j0({...r,loggingOptions:{additionalAllowedHeaderNames:Ime,additionalAllowedQueryParameters:Sme,logger:yT.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:gT,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:oH,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:AG}),i.addPolicy(mme()),i.addPolicy(gme(r.retryOptions),{phase:"Retry"}),i.addPolicy(Eme()),i.addPolicy(Ame());let c=Vot(t);c&&i.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=fH(t);po(l)?i.addPolicy(Fg({credential:l,scopes:r.audience??RT,challengeCallbacks:{authorizeRequestOnChallenge:oT}}),{phase:"Sign"}):l instanceof kr&&i.addPolicy(lH({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),t._corePipeline=i}return{...r,allowInsecureConnection:!0,httpClient:n,pipeline:i}}o(dH,"getCoreClientOptions");function fH(t){if(t._credential)return t._credential;let e=new yr;for(let r of t.factories)if(po(r.credential))e=r.credential;else if(Nme(r))return r;return e}o(fH,"getCredentialFromPipeline");function Nme(t){return t instanceof kr?!0:t.constructor.name==="StorageSharedKeyCredential"}o(Nme,"isStorageSharedKeyCredential");function zot(t){return t instanceof yr?!0:t.constructor.name==="AnonymousCredential"}o(zot,"isAnonymousCredential");function $ot(t){return po(t.credential)}o($ot,"isCoreHttpBearerTokenFactory");function jot(t){return t instanceof ow?!0:t.constructor.name==="StorageBrowserPolicyFactory"}o(jot,"isStorageBrowserPolicyFactory");function Wot(t){return t instanceof uw?!0:t.constructor.name==="StorageRetryPolicyFactory"}o(Wot,"isStorageRetryPolicyFactory");function Jot(t){return t.constructor.name==="TelemetryPolicyFactory"}o(Jot,"isStorageTelemetryPolicyFactory");function Yot(t){return t.constructor.name==="InjectorPolicyFactory"}o(Yot,"isInjectorPolicyFactory");function Kot(t){let e=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"],r={sendRequest:o(async a=>({request:a,headers:a.headers.clone(),status:500}),"sendRequest")},n={log(a,c){},shouldLog(a){return!1}},s=t.create(r,n).constructor.name;return e.some(a=>s.startsWith(a))}o(Kot,"isCoreHttpPolicyFactory");var _me;(function(t){t.AES256="AES256"})(_me||(_me={}));var Tme;(function(t){t.Backup="backup"})(Tme||(Tme={}));var Rme;(function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"})(Rme||(Rme={}));var Dme;(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"})(Dme||(Dme={}));var go={};Aqe(go,{AccessPolicy:()=>lat,AppendBlobAppendBlockExceptionHeaders:()=>D4,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>P4,AppendBlobAppendBlockFromUrlHeaders:()=>Q4,AppendBlobAppendBlockHeaders:()=>R4,AppendBlobCreateExceptionHeaders:()=>T4,AppendBlobCreateHeaders:()=>_4,AppendBlobSealExceptionHeaders:()=>O4,AppendBlobSealHeaders:()=>k4,ArrowConfiguration:()=>Iat,ArrowField:()=>Sat,BlobAbortCopyFromURLExceptionHeaders:()=>r4,BlobAbortCopyFromURLHeaders:()=>t4,BlobAcquireLeaseExceptionHeaders:()=>UV,BlobAcquireLeaseHeaders:()=>MV,BlobBreakLeaseExceptionHeaders:()=>WV,BlobBreakLeaseHeaders:()=>jV,BlobChangeLeaseExceptionHeaders:()=>$V,BlobChangeLeaseHeaders:()=>zV,BlobCopyFromURLExceptionHeaders:()=>e4,BlobCopyFromURLHeaders:()=>ZV,BlobCreateSnapshotExceptionHeaders:()=>YV,BlobCreateSnapshotHeaders:()=>JV,BlobDeleteExceptionHeaders:()=>SV,BlobDeleteHeaders:()=>IV,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>PV,BlobDeleteImmutabilityPolicyHeaders:()=>QV,BlobDownloadExceptionHeaders:()=>CV,BlobDownloadHeaders:()=>QT,BlobFlatListSegment:()=>uat,BlobGetAccountInfoExceptionHeaders:()=>s4,BlobGetAccountInfoHeaders:()=>i4,BlobGetPropertiesExceptionHeaders:()=>wV,BlobGetPropertiesHeaders:()=>bV,BlobGetTagsExceptionHeaders:()=>c4,BlobGetTagsHeaders:()=>a4,BlobHierarchyListSegment:()=>pat,BlobItemInternal:()=>dat,BlobName:()=>fat,BlobPrefix:()=>Aat,BlobPropertiesInternal:()=>hat,BlobQueryExceptionHeaders:()=>o4,BlobQueryHeaders:()=>kT,BlobReleaseLeaseExceptionHeaders:()=>GV,BlobReleaseLeaseHeaders:()=>qV,BlobRenewLeaseExceptionHeaders:()=>VV,BlobRenewLeaseHeaders:()=>HV,BlobServiceProperties:()=>fw,BlobServiceStatistics:()=>hH,BlobSetExpiryExceptionHeaders:()=>NV,BlobSetExpiryHeaders:()=>vV,BlobSetHttpHeadersExceptionHeaders:()=>TV,BlobSetHttpHeadersHeaders:()=>_V,BlobSetImmutabilityPolicyExceptionHeaders:()=>DV,BlobSetImmutabilityPolicyHeaders:()=>RV,BlobSetLegalHoldExceptionHeaders:()=>OV,BlobSetLegalHoldHeaders:()=>kV,BlobSetMetadataExceptionHeaders:()=>FV,BlobSetMetadataHeaders:()=>LV,BlobSetTagsExceptionHeaders:()=>u4,BlobSetTagsHeaders:()=>l4,BlobSetTierExceptionHeaders:()=>n4,BlobSetTierHeaders:()=>PT,BlobStartCopyFromURLExceptionHeaders:()=>XV,BlobStartCopyFromURLHeaders:()=>KV,BlobTag:()=>aat,BlobTags:()=>pw,BlobUndeleteExceptionHeaders:()=>xV,BlobUndeleteHeaders:()=>BV,Block:()=>mat,BlockBlobCommitBlockListExceptionHeaders:()=>$4,BlockBlobCommitBlockListHeaders:()=>z4,BlockBlobGetBlockListExceptionHeaders:()=>W4,BlockBlobGetBlockListHeaders:()=>j4,BlockBlobPutBlobFromUrlExceptionHeaders:()=>U4,BlockBlobPutBlobFromUrlHeaders:()=>M4,BlockBlobStageBlockExceptionHeaders:()=>G4,BlockBlobStageBlockFromURLExceptionHeaders:()=>V4,BlockBlobStageBlockFromURLHeaders:()=>H4,BlockBlobStageBlockHeaders:()=>q4,BlockBlobUploadExceptionHeaders:()=>F4,BlockBlobUploadHeaders:()=>L4,BlockList:()=>CH,BlockLookupList:()=>EH,ClearRange:()=>yat,ContainerAcquireLeaseExceptionHeaders:()=>sV,ContainerAcquireLeaseHeaders:()=>iV,ContainerBreakLeaseExceptionHeaders:()=>dV,ContainerBreakLeaseHeaders:()=>uV,ContainerChangeLeaseExceptionHeaders:()=>hV,ContainerChangeLeaseHeaders:()=>fV,ContainerCreateExceptionHeaders:()=>MH,ContainerCreateHeaders:()=>FH,ContainerDeleteExceptionHeaders:()=>HH,ContainerDeleteHeaders:()=>GH,ContainerFilterBlobsExceptionHeaders:()=>nV,ContainerFilterBlobsHeaders:()=>rV,ContainerGetAccessPolicyExceptionHeaders:()=>jH,ContainerGetAccessPolicyHeaders:()=>$H,ContainerGetAccountInfoExceptionHeaders:()=>EV,ContainerGetAccountInfoHeaders:()=>yV,ContainerGetPropertiesExceptionHeaders:()=>qH,ContainerGetPropertiesHeaders:()=>UH,ContainerItem:()=>iat,ContainerListBlobFlatSegmentExceptionHeaders:()=>AV,ContainerListBlobFlatSegmentHeaders:()=>pV,ContainerListBlobHierarchySegmentExceptionHeaders:()=>gV,ContainerListBlobHierarchySegmentHeaders:()=>mV,ContainerProperties:()=>sat,ContainerReleaseLeaseExceptionHeaders:()=>aV,ContainerReleaseLeaseHeaders:()=>oV,ContainerRenameExceptionHeaders:()=>ZH,ContainerRenameHeaders:()=>XH,ContainerRenewLeaseExceptionHeaders:()=>lV,ContainerRenewLeaseHeaders:()=>cV,ContainerRestoreExceptionHeaders:()=>KH,ContainerRestoreHeaders:()=>YH,ContainerSetAccessPolicyExceptionHeaders:()=>JH,ContainerSetAccessPolicyHeaders:()=>WH,ContainerSetMetadataExceptionHeaders:()=>zH,ContainerSetMetadataHeaders:()=>VH,ContainerSubmitBatchExceptionHeaders:()=>tV,ContainerSubmitBatchHeaders:()=>eV,CorsRule:()=>tat,DelimitedTextConfiguration:()=>bat,FilterBlobItem:()=>oat,FilterBlobSegment:()=>hw,GeoReplication:()=>nat,JsonTextConfiguration:()=>wat,KeyInfo:()=>AH,ListBlobsFlatSegmentResponse:()=>gH,ListBlobsHierarchySegmentResponse:()=>yH,ListContainersSegmentResponse:()=>pH,Logging:()=>Xot,Metrics:()=>eat,PageBlobClearPagesExceptionHeaders:()=>m4,PageBlobClearPagesHeaders:()=>A4,PageBlobCopyIncrementalExceptionHeaders:()=>N4,PageBlobCopyIncrementalHeaders:()=>v4,PageBlobCreateExceptionHeaders:()=>f4,PageBlobCreateHeaders:()=>d4,PageBlobGetPageRangesDiffExceptionHeaders:()=>w4,PageBlobGetPageRangesDiffHeaders:()=>b4,PageBlobGetPageRangesExceptionHeaders:()=>C4,PageBlobGetPageRangesHeaders:()=>E4,PageBlobResizeExceptionHeaders:()=>S4,PageBlobResizeHeaders:()=>I4,PageBlobUpdateSequenceNumberExceptionHeaders:()=>x4,PageBlobUpdateSequenceNumberHeaders:()=>B4,PageBlobUploadPagesExceptionHeaders:()=>p4,PageBlobUploadPagesFromURLExceptionHeaders:()=>y4,PageBlobUploadPagesFromURLHeaders:()=>g4,PageBlobUploadPagesHeaders:()=>h4,PageList:()=>DT,PageRange:()=>gat,QueryFormat:()=>Cat,QueryRequest:()=>bH,QuerySerialization:()=>Eat,RetentionPolicy:()=>Zot,ServiceFilterBlobsExceptionHeaders:()=>LH,ServiceFilterBlobsHeaders:()=>OH,ServiceGetAccountInfoExceptionHeaders:()=>QH,ServiceGetAccountInfoHeaders:()=>DH,ServiceGetPropertiesExceptionHeaders:()=>BH,ServiceGetPropertiesHeaders:()=>SH,ServiceGetStatisticsExceptionHeaders:()=>vH,ServiceGetStatisticsHeaders:()=>xH,ServiceGetUserDelegationKeyExceptionHeaders:()=>RH,ServiceGetUserDelegationKeyHeaders:()=>TH,ServiceListContainersSegmentExceptionHeaders:()=>_H,ServiceListContainersSegmentHeaders:()=>NH,ServiceSetPropertiesExceptionHeaders:()=>IH,ServiceSetPropertiesHeaders:()=>wH,ServiceSubmitBatchExceptionHeaders:()=>kH,ServiceSubmitBatchHeaders:()=>PH,SignedIdentifier:()=>cat,StaticWebsite:()=>rat,StorageError:()=>ee,UserDelegationKey:()=>mH});var fw={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"}}}}},Xot={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"}}}}},Zot={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"}}}}},eat={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"}}}}},tat={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"}}}}},rat={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"}}}}},ee={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"}}}}},hH={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},nat={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"}}}}},pH={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"}}}}},iat={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"}}}}}}},sat={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"}}}}},AH={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"}}}}},mH={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"}}}}},hw={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"}}}}},oat={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"}}}}},pw={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"}}}}}}},aat={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"}}}}},cat={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"}}}}},lat={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"}}}}},gH={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"}}}}},uat={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"}}}}}}},dat={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"}}}}},fat={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"}}}}},hat={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"}}}}},yH={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"}}}}},pat={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"}}}}}}},Aat={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},EH={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"}}}}}}},CH={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"}}}}}}},mat={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"}}}}},DT={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"}}}}},gat={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"}}}}},yat={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"}}}}},bH={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"}}}}},Eat={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},Cat={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"}}}}}}},bat={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"}}}}},wat={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},Iat={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"}}}}}}},Sat={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"}}}}},wH={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"}}}}},IH={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SH={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"}}}}},BH={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xH={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"}}}}},vH={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},NH={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"}}}}},_H={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TH={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"}}}}},RH={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},DH={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"}}}}},QH={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PH={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"}}}}},kH={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},OH={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"}}}}},LH={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},FH={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"}}}}},MH={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},UH={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"}}}}},qH={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GH={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"}}}}},HH={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VH={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"}}}}},zH={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$H={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"}}}}},jH={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},WH={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"}}}}},JH={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},YH={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"}}}}},KH={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},XH={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"}}}}},ZH={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eV={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"}}}}},tV={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rV={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"}}}}},nV={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iV={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"}}}}},sV={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oV={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"}}}}},aV={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cV={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"}}}}},lV={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uV={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"}}}}},dV={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fV={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"}}}}},hV={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pV={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"}}}}},AV={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},mV={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"}}}}},gV={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yV={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"}}}}},EV={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QT={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"}}}}},CV={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bV={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"}}}}},wV={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IV={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"}}}}},SV={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BV={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"}}}}},xV={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vV={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"}}}}},NV={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_V={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"}}}}},TV={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},RV={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"]}}}}},DV={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QV={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"}}}}},PV={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kV={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"}}}}},OV={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LV={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"}}}}},FV={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MV={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"}}}}},UV={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qV={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"}}}}},GV={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HV={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"}}}}},VV={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zV={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"}}}}},$V={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jV={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"}}}}},WV={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JV={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"}}}}},YV={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KV={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"}}}}},XV={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"}}}}},ZV={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"}}}}},e4={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"}}}}},t4={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"}}}}},r4={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PT={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"}}}}},n4={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},i4={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"}}}}},s4={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kT={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"}}}}},o4={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},a4={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"}}}}},c4={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},l4={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"}}}}},u4={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},d4={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"}}}}},f4={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},h4={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"}}}}},p4={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},A4={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"}}}}},m4={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},g4={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"}}}}},y4={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"}}}}},E4={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"}}}}},C4={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},b4={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"}}}}},w4={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},I4={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"}}}}},S4={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},B4={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"}}}}},x4={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},v4={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"}}}}},N4={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_4={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"}}}}},T4={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},R4={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"}}}}},D4={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Q4={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"}}}}},P4={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"}}}}},k4={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"}}}}},O4={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},L4={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"}}}}},F4={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},M4={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"}}}}},U4={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"}}}}},q4={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"}}}}},G4={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},H4={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"}}}}},V4={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"}}}}},z4={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"}}}}},$4={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},j4={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"}}}}},W4={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var tl={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},Qme={parameterPath:"blobServiceProperties",mapper:fw},ta={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},re={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},Aw={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},ra={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ne={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},ie={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},se={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}},ge={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},Pme={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},mw={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},gw={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},rl={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},nl={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},kme={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},Ome={parameterPath:"keyInfo",mapper:AH},Lme={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},zg={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},OT={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},LT={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},zn={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},FT={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},MT={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},UT={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},$n={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},_i={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},J4={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},Fme={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},Mme={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},rt={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},Je={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},Ye={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},qT={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Y4={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ume={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},GT={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},qme={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},Gme={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"}}},Vme={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},zme={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},na={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},HT={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},VT={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},zT={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},$T={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},wf={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},jT={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},WT={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},JT={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},YT={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},KT={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},K4={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"},X4={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},$me={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},Zi={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},il={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},xp={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},jme={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},Wme={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},Or={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},Lr={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},Fr={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},vt={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},Nt={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},dt={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},Jme={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},Yme={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},Kme={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Xme={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},Zme={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},sl={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},ol={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},al={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},cl={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},ll={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},ul={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},Z4={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},tc={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},rc={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},ege={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},tge={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},yn={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},rge={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},$u={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"]}}},e5={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},dl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},fl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},hl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},pl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},XT={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},vp={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},nc={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},nge={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},Al={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},ige={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},ju={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},Wu={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},ZT={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},Ju={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},sge={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},oge={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},age={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},cge={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},lge={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"]}}},uge={parameterPath:["options","queryRequest"],mapper:bH},dge={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},t5={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},r5={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},n5={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},i5={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},s5={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},fge={parameterPath:["options","tags"],mapper:pw},ia={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},ml={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},hge={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},o5={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},a5={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},Np={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},_p={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},Tp={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},eR={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},c5={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},tR={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},rR={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},nR={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},pge={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},$g={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},Age={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},jg={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},mge={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},l5={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},gge={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},yge={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},Ege={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},Cge={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},bge={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},u5={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},d5={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},iR={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},sR={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},wge={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},f5={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},Ige={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},h5={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},p5={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},Sge={parameterPath:"blocks",mapper:EH},A5={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Bge={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var oR=class{static{o(this,"ServiceImpl")}client;constructor(e){this.client=e}setProperties(e,r){return this.client.sendOperationRequest({blobServiceProperties:e,options:r},Bat)}getProperties(e){return this.client.sendOperationRequest({options:e},xat)}getStatistics(e){return this.client.sendOperationRequest({options:e},vat)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},Nat)}getUserDelegationKey(e,r){return this.client.sendOperationRequest({keyInfo:e,options:r},_at)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Tat)}submitBatch(e,r,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:i},Rat)}filterBlobs(e){return this.client.sendOperationRequest({options:e},Dat)}},If=Ao(go,!0),Bat={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:wH},default:{bodyMapper:ee,headersMapper:IH}},requestBody:Qme,queryParameters:[Aw,ra,ne],urlParameters:[re],headerParameters:[tl,ta,ie,se],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:If},xat={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:fw,headersMapper:SH},default:{bodyMapper:ee,headersMapper:BH}},queryParameters:[Aw,ra,ne],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:If},vat={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:hH,headersMapper:xH},default:{bodyMapper:ee,headersMapper:vH}},queryParameters:[Aw,ne,Pme],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:If},Nat={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:pH,headersMapper:NH},default:{bodyMapper:ee,headersMapper:_H}},queryParameters:[ne,mw,gw,rl,nl,kme],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:If},_at={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:mH,headersMapper:TH},default:{bodyMapper:ee,headersMapper:RH}},requestBody:Ome,queryParameters:[Aw,ne,Lme],urlParameters:[re],headerParameters:[tl,ta,ie,se],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:If},Tat={path:"/",httpMethod:"GET",responses:{200:{headersMapper:DH},default:{bodyMapper:ee,headersMapper:QH}},queryParameters:[ra,ne,zg],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:If},Rat={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:PH},default:{bodyMapper:ee,headersMapper:kH}},requestBody:OT,queryParameters:[ne,LT],urlParameters:[re],headerParameters:[ta,ie,se,zn,FT],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:If},Dat={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:hw,headersMapper:OH},default:{bodyMapper:ee,headersMapper:LH}},queryParameters:[ne,rl,nl,MT,UT],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:If};var aR=class{static{o(this,"ContainerImpl")}client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},Qat)}getProperties(e){return this.client.sendOperationRequest({options:e},Pat)}delete(e){return this.client.sendOperationRequest({options:e},kat)}setMetadata(e){return this.client.sendOperationRequest({options:e},Oat)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},Lat)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},Fat)}restore(e){return this.client.sendOperationRequest({options:e},Mat)}rename(e,r){return this.client.sendOperationRequest({sourceContainerName:e,options:r},Uat)}submitBatch(e,r,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:i},qat)}filterBlobs(e){return this.client.sendOperationRequest({options:e},Gat)}acquireLease(e){return this.client.sendOperationRequest({options:e},Hat)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},Vat)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},zat)}breakLease(e){return this.client.sendOperationRequest({options:e},$at)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},jat)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},Wat)}listBlobHierarchySegment(e,r){return this.client.sendOperationRequest({delimiter:e,options:r},Jat)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Yat)}},jn=Ao(go,!0),Qat={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:FH},default:{bodyMapper:ee,headersMapper:MH}},queryParameters:[ne,$n],urlParameters:[re],headerParameters:[ie,se,ge,_i,J4,Fme,Mme],isXML:!0,serializer:jn},Pat={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:UH},default:{bodyMapper:ee,headersMapper:qH}},queryParameters:[ne,$n],urlParameters:[re],headerParameters:[ie,se,ge,rt],isXML:!0,serializer:jn},kat={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:GH},default:{bodyMapper:ee,headersMapper:HH}},queryParameters:[ne,$n],urlParameters:[re],headerParameters:[ie,se,ge,rt,Je,Ye],isXML:!0,serializer:jn},Oat={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:VH},default:{bodyMapper:ee,headersMapper:zH}},queryParameters:[ne,$n,qT],urlParameters:[re],headerParameters:[ie,se,ge,_i,rt,Je],isXML:!0,serializer:jn},Lat={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:$H},default:{bodyMapper:ee,headersMapper:jH}},queryParameters:[ne,$n,Y4],urlParameters:[re],headerParameters:[ie,se,ge,rt],isXML:!0,serializer:jn},Fat={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:WH},default:{bodyMapper:ee,headersMapper:JH}},requestBody:Ume,queryParameters:[ne,$n,Y4],urlParameters:[re],headerParameters:[tl,ta,ie,se,J4,rt,Je,Ye],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:jn},Mat={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:YH},default:{bodyMapper:ee,headersMapper:KH}},queryParameters:[ne,$n,GT],urlParameters:[re],headerParameters:[ie,se,ge,qme,Gme],isXML:!0,serializer:jn},Uat={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:XH},default:{bodyMapper:ee,headersMapper:ZH}},queryParameters:[ne,$n,Hme],urlParameters:[re],headerParameters:[ie,se,ge,Vme,zme],isXML:!0,serializer:jn},qat={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:eV},default:{bodyMapper:ee,headersMapper:tV}},requestBody:OT,queryParameters:[ne,LT,$n],urlParameters:[re],headerParameters:[ta,ie,se,zn,FT],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:jn},Gat={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:hw,headersMapper:rV},default:{bodyMapper:ee,headersMapper:nV}},queryParameters:[ne,rl,nl,MT,UT,$n],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:jn},Hat={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:iV},default:{bodyMapper:ee,headersMapper:sV}},queryParameters:[ne,$n,na],urlParameters:[re],headerParameters:[ie,se,ge,Je,Ye,HT,VT,zT],isXML:!0,serializer:jn},Vat={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:oV},default:{bodyMapper:ee,headersMapper:aV}},queryParameters:[ne,$n,na],urlParameters:[re],headerParameters:[ie,se,ge,Je,Ye,$T,wf],isXML:!0,serializer:jn},zat={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:cV},default:{bodyMapper:ee,headersMapper:lV}},queryParameters:[ne,$n,na],urlParameters:[re],headerParameters:[ie,se,ge,Je,Ye,wf,jT],isXML:!0,serializer:jn},$at={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:uV},default:{bodyMapper:ee,headersMapper:dV}},queryParameters:[ne,$n,na],urlParameters:[re],headerParameters:[ie,se,ge,Je,Ye,WT,JT],isXML:!0,serializer:jn},jat={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:fV},default:{bodyMapper:ee,headersMapper:hV}},queryParameters:[ne,$n,na],urlParameters:[re],headerParameters:[ie,se,ge,Je,Ye,wf,YT,KT],isXML:!0,serializer:jn},Wat={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:gH,headersMapper:pV},default:{bodyMapper:ee,headersMapper:AV}},queryParameters:[ne,mw,gw,rl,nl,$n,K4,X4],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:jn},Jat={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:yH,headersMapper:mV},default:{bodyMapper:ee,headersMapper:gV}},queryParameters:[ne,mw,gw,rl,nl,$n,K4,X4,$me],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:jn},Yat={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:yV},default:{bodyMapper:ee,headersMapper:EV}},queryParameters:[ra,ne,zg],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:jn};var cR=class{static{o(this,"BlobImpl")}client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},Kat)}getProperties(e){return this.client.sendOperationRequest({options:e},Xat)}delete(e){return this.client.sendOperationRequest({options:e},Zat)}undelete(e){return this.client.sendOperationRequest({options:e},ect)}setExpiry(e,r){return this.client.sendOperationRequest({expiryOptions:e,options:r},tct)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},rct)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},nct)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},ict)}setLegalHold(e,r){return this.client.sendOperationRequest({legalHold:e,options:r},sct)}setMetadata(e){return this.client.sendOperationRequest({options:e},oct)}acquireLease(e){return this.client.sendOperationRequest({options:e},act)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},cct)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},lct)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},uct)}breakLease(e){return this.client.sendOperationRequest({options:e},dct)}createSnapshot(e){return this.client.sendOperationRequest({options:e},fct)}startCopyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},hct)}copyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},pct)}abortCopyFromURL(e,r){return this.client.sendOperationRequest({copyId:e,options:r},Act)}setTier(e,r){return this.client.sendOperationRequest({tier:e,options:r},mct)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},gct)}query(e){return this.client.sendOperationRequest({options:e},yct)}getTags(e){return this.client.sendOperationRequest({options:e},Ect)}setTags(e){return this.client.sendOperationRequest({options:e},Cct)}},Er=Ao(go,!0),Kat={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:QT},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:QT},default:{bodyMapper:ee,headersMapper:CV}},queryParameters:[ne,Zi,il],urlParameters:[re],headerParameters:[ie,se,ge,rt,Je,Ye,xp,jme,Wme,Or,Lr,Fr,vt,Nt,dt],isXML:!0,serializer:Er},Xat={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:bV},default:{bodyMapper:ee,headersMapper:wV}},queryParameters:[ne,Zi,il],urlParameters:[re],headerParameters:[ie,se,ge,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt],isXML:!0,serializer:Er},Zat={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:IV},default:{bodyMapper:ee,headersMapper:SV}},queryParameters:[ne,Zi,il,Yme],urlParameters:[re],headerParameters:[ie,se,ge,rt,Je,Ye,vt,Nt,dt,Jme],isXML:!0,serializer:Er},ect={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:BV},default:{bodyMapper:ee,headersMapper:xV}},queryParameters:[ne,GT],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:Er},tct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vV},default:{bodyMapper:ee,headersMapper:NV}},queryParameters:[ne,Kme],urlParameters:[re],headerParameters:[ie,se,ge,Xme,Zme],isXML:!0,serializer:Er},rct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_V},default:{bodyMapper:ee,headersMapper:TV}},queryParameters:[ra,ne],urlParameters:[re],headerParameters:[ie,se,ge,rt,Je,Ye,vt,Nt,dt,sl,ol,al,cl,ll,ul],isXML:!0,serializer:Er},nct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:RV},default:{bodyMapper:ee,headersMapper:DV}},queryParameters:[ne,Zi,il,Z4],urlParameters:[re],headerParameters:[ie,se,ge,Ye,tc,rc],isXML:!0,serializer:Er},ict={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:QV},default:{bodyMapper:ee,headersMapper:PV}},queryParameters:[ne,Zi,il,Z4],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:Er},sct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:kV},default:{bodyMapper:ee,headersMapper:OV}},queryParameters:[ne,Zi,il,ege],urlParameters:[re],headerParameters:[ie,se,ge,tge],isXML:!0,serializer:Er},oct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:LV},default:{bodyMapper:ee,headersMapper:FV}},queryParameters:[ne,qT],urlParameters:[re],headerParameters:[ie,se,ge,_i,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt,yn],isXML:!0,serializer:Er},act={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:MV},default:{bodyMapper:ee,headersMapper:UV}},queryParameters:[ne,na],urlParameters:[re],headerParameters:[ie,se,ge,Je,Ye,HT,VT,zT,vt,Nt,dt],isXML:!0,serializer:Er},cct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:qV},default:{bodyMapper:ee,headersMapper:GV}},queryParameters:[ne,na],urlParameters:[re],headerParameters:[ie,se,ge,Je,Ye,$T,wf,vt,Nt,dt],isXML:!0,serializer:Er},lct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:HV},default:{bodyMapper:ee,headersMapper:VV}},queryParameters:[ne,na],urlParameters:[re],headerParameters:[ie,se,ge,Je,Ye,wf,jT,vt,Nt,dt],isXML:!0,serializer:Er},uct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:zV},default:{bodyMapper:ee,headersMapper:$V}},queryParameters:[ne,na],urlParameters:[re],headerParameters:[ie,se,ge,Je,Ye,wf,YT,KT,vt,Nt,dt],isXML:!0,serializer:Er},dct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:jV},default:{bodyMapper:ee,headersMapper:WV}},queryParameters:[ne,na],urlParameters:[re],headerParameters:[ie,se,ge,Je,Ye,WT,JT,vt,Nt,dt],isXML:!0,serializer:Er},fct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:JV},default:{bodyMapper:ee,headersMapper:YV}},queryParameters:[ne,rge],urlParameters:[re],headerParameters:[ie,se,ge,_i,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt,yn],isXML:!0,serializer:Er},hct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:KV},default:{bodyMapper:ee,headersMapper:XV}},queryParameters:[ne],urlParameters:[re],headerParameters:[ie,se,ge,_i,rt,Je,Ye,vt,Nt,dt,tc,rc,$u,e5,dl,fl,hl,pl,XT,vp,nc,nge,Al],isXML:!0,serializer:Er},pct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:ZV},default:{bodyMapper:ee,headersMapper:e4}},queryParameters:[ne],urlParameters:[re],headerParameters:[ie,se,ge,_i,rt,Je,Ye,vt,Nt,dt,tc,rc,yn,$u,dl,fl,hl,pl,vp,nc,Al,ige,ju,Wu,ZT,Ju],isXML:!0,serializer:Er},Act={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:t4},default:{bodyMapper:ee,headersMapper:r4}},queryParameters:[ne,sge,age],urlParameters:[re],headerParameters:[ie,se,ge,rt,oge],isXML:!0,serializer:Er},mct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:PT},202:{headersMapper:PT},default:{bodyMapper:ee,headersMapper:n4}},queryParameters:[ne,Zi,il,cge],urlParameters:[re],headerParameters:[ie,se,ge,rt,dt,e5,lge],isXML:!0,serializer:Er},gct={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:i4},default:{bodyMapper:ee,headersMapper:s4}},queryParameters:[ra,ne,zg],urlParameters:[re],headerParameters:[ie,se,ge],isXML:!0,serializer:Er},yct={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:kT},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:kT},default:{bodyMapper:ee,headersMapper:o4}},requestBody:uge,queryParameters:[ne,Zi,dge],urlParameters:[re],headerParameters:[tl,ta,ie,se,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Er},Ect={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:pw,headersMapper:a4},default:{bodyMapper:ee,headersMapper:c4}},queryParameters:[ne,Zi,il,t5],urlParameters:[re],headerParameters:[ie,se,ge,rt,dt,r5,n5,i5,s5],isXML:!0,serializer:Er},Cct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:l4},default:{bodyMapper:ee,headersMapper:u4}},requestBody:fge,queryParameters:[ne,il,t5],urlParameters:[re],headerParameters:[tl,ta,ie,se,rt,dt,r5,n5,i5,s5,ia,ml],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Er};var lR=class{static{o(this,"PageBlobImpl")}client;constructor(e){this.client=e}create(e,r,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:r,options:n},bct)}uploadPages(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},wct)}clearPages(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},Ict)}uploadPagesFromURL(e,r,n,i,s){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:r,contentLength:n,range:i,options:s},Sct)}getPageRanges(e){return this.client.sendOperationRequest({options:e},Bct)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},xct)}resize(e,r){return this.client.sendOperationRequest({blobContentLength:e,options:r},vct)}updateSequenceNumber(e,r){return this.client.sendOperationRequest({sequenceNumberAction:e,options:r},Nct)}copyIncremental(e,r){return this.client.sendOperationRequest({copySource:e,options:r},_ct)}},Yu=Ao(go,!0),bct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d4},default:{bodyMapper:ee,headersMapper:f4}},queryParameters:[ne],urlParameters:[re],headerParameters:[ie,se,ge,zn,_i,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt,sl,ol,al,cl,ll,ul,tc,rc,yn,$u,nc,Al,hge,o5,a5],isXML:!0,serializer:Yu},wct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:h4},default:{bodyMapper:ee,headersMapper:p4}},requestBody:_p,queryParameters:[ne,eR],urlParameters:[re],headerParameters:[ie,se,zn,rt,Je,Ye,xp,Or,Lr,Fr,vt,Nt,dt,yn,ia,ml,Np,Tp,c5,tR,rR,nR],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Yu},Ict={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:A4},default:{bodyMapper:ee,headersMapper:m4}},queryParameters:[ne,eR],urlParameters:[re],headerParameters:[ie,se,ge,zn,rt,Je,Ye,xp,Or,Lr,Fr,vt,Nt,dt,yn,tR,rR,nR,pge],isXML:!0,serializer:Yu},Sct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:g4},default:{bodyMapper:ee,headersMapper:y4}},queryParameters:[ne,eR],urlParameters:[re],headerParameters:[ie,se,ge,zn,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt,yn,dl,fl,hl,pl,ju,Wu,Ju,c5,tR,rR,nR,$g,Age,jg,mge],isXML:!0,serializer:Yu},Bct={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:DT,headersMapper:E4},default:{bodyMapper:ee,headersMapper:C4}},queryParameters:[ne,rl,nl,Zi,l5],urlParameters:[re],headerParameters:[ie,se,ge,rt,Je,Ye,xp,vt,Nt,dt],isXML:!0,serializer:Yu},xct={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:DT,headersMapper:b4},default:{bodyMapper:ee,headersMapper:w4}},queryParameters:[ne,rl,nl,Zi,l5,gge],urlParameters:[re],headerParameters:[ie,se,ge,rt,Je,Ye,xp,vt,Nt,dt,yge],isXML:!0,serializer:Yu},vct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:I4},default:{bodyMapper:ee,headersMapper:S4}},queryParameters:[ra,ne],urlParameters:[re],headerParameters:[ie,se,ge,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt,yn,o5],isXML:!0,serializer:Yu},Nct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:B4},default:{bodyMapper:ee,headersMapper:x4}},queryParameters:[ra,ne],urlParameters:[re],headerParameters:[ie,se,ge,rt,Je,Ye,vt,Nt,dt,a5,Ege],isXML:!0,serializer:Yu},_ct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:v4},default:{bodyMapper:ee,headersMapper:N4}},queryParameters:[ne,Cge],urlParameters:[re],headerParameters:[ie,se,ge,Je,Ye,vt,Nt,dt,vp],isXML:!0,serializer:Yu};var uR=class{static{o(this,"AppendBlobImpl")}client;constructor(e){this.client=e}create(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},Tct)}appendBlock(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},Rct)}appendBlockFromUrl(e,r,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:r,options:n},Dct)}seal(e){return this.client.sendOperationRequest({options:e},Qct)}},dR=Ao(go,!0),Tct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_4},default:{bodyMapper:ee,headersMapper:T4}},queryParameters:[ne],urlParameters:[re],headerParameters:[ie,se,ge,zn,_i,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt,sl,ol,al,cl,ll,ul,tc,rc,yn,nc,Al,bge],isXML:!0,serializer:dR},Rct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:R4},default:{bodyMapper:ee,headersMapper:D4}},requestBody:_p,queryParameters:[ne,u5],urlParameters:[re],headerParameters:[ie,se,zn,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt,yn,ia,ml,Np,Tp,d5,iR],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:dR},Dct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Q4},default:{bodyMapper:ee,headersMapper:P4}},queryParameters:[ne,u5],urlParameters:[re],headerParameters:[ie,se,ge,zn,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt,yn,dl,fl,hl,pl,ju,Wu,Ju,ia,$g,jg,d5,iR,sR],isXML:!0,serializer:dR},Qct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:k4},default:{bodyMapper:ee,headersMapper:O4}},queryParameters:[ne,wge],urlParameters:[re],headerParameters:[ie,se,ge,rt,Je,Ye,vt,Nt,iR],isXML:!0,serializer:dR};var fR=class{static{o(this,"BlockBlobImpl")}client;constructor(e){this.client=e}upload(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},Pct)}putBlobFromUrl(e,r,n){return this.client.sendOperationRequest({contentLength:e,copySource:r,options:n},kct)}stageBlock(e,r,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:r,body:n,options:i},Oct)}stageBlockFromURL(e,r,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:r,sourceUrl:n,options:i},Lct)}commitBlockList(e,r){return this.client.sendOperationRequest({blocks:e,options:r},Fct)}getBlockList(e,r){return this.client.sendOperationRequest({listType:e,options:r},Mct)}},Jg=Ao(go,!0),Pct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:L4},default:{bodyMapper:ee,headersMapper:F4}},requestBody:_p,queryParameters:[ne],urlParameters:[re],headerParameters:[ie,se,zn,_i,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt,sl,ol,al,cl,ll,ul,tc,rc,yn,$u,nc,Al,ia,ml,Np,Tp,f5],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Jg},kct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:M4},default:{bodyMapper:ee,headersMapper:U4}},queryParameters:[ne],urlParameters:[re],headerParameters:[ie,se,ge,zn,_i,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt,sl,ol,al,cl,ll,ul,yn,$u,dl,fl,hl,pl,XT,vp,nc,ju,Wu,ZT,Ju,ia,f5,Ige],isXML:!0,serializer:Jg},Oct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:q4},default:{bodyMapper:ee,headersMapper:G4}},requestBody:_p,queryParameters:[ne,h5,p5],urlParameters:[re],headerParameters:[ie,se,zn,rt,Or,Lr,Fr,yn,ia,ml,Np,Tp],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Jg},Lct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:H4},default:{bodyMapper:ee,headersMapper:V4}},queryParameters:[ne,h5,p5],urlParameters:[re],headerParameters:[ie,se,ge,zn,rt,Or,Lr,Fr,yn,dl,fl,hl,pl,ju,Wu,Ju,$g,jg,sR],isXML:!0,serializer:Jg},Fct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:z4},default:{bodyMapper:ee,headersMapper:$4}},requestBody:Sge,queryParameters:[ne,A5],urlParameters:[re],headerParameters:[tl,ta,ie,se,_i,rt,Je,Ye,Or,Lr,Fr,vt,Nt,dt,sl,ol,al,cl,ll,ul,tc,rc,yn,$u,nc,Al,ia,ml],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Jg},Mct={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:CH,headersMapper:j4},default:{bodyMapper:ee,headersMapper:W4}},queryParameters:[ne,Zi,A5,Bge],urlParameters:[re],headerParameters:[ie,se,ge,rt,dt],isXML:!0,serializer:Jg};var yw=class extends X0{static{o(this,"StorageClient")}url;version;constructor(e,r){if(e===void 0)throw new Error("'url' cannot be null");r||(r={});let n={requestContentType:"application/json; charset=utf-8"},i="azsdk-js-azure-storage-blob/12.30.0",s=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`,a={...n,...r,userAgentOptions:{userAgentPrefix:s},endpoint:r.endpoint??r.baseUri??"{url}"};super(a),this.url=e,this.version=r.version||"2026-02-06",this.service=new oR(this),this.container=new aR(this),this.blob=new cR(this),this.pageBlob=new lR(this),this.appendBlob=new uR(this),this.blockBlob=new fR(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var Ew=class extends yw{static{o(this,"StorageContextClient")}async sendOperationRequest(e,r){let n={...r};return(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}")&&(n.path=""),super.sendOperationRequest(e,n)}};function vge(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=qct(r),e.pathname=r,e.toString()}o(vge,"escapeURLPath");function Uct(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let r=t.split(";");for(let n of r)n.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=n.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}o(Uct,"getProxyUriFromDevConnString");function Rp(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}o(Rp,"getValueInConnString");function Dp(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=Uct(t),t=wme);let r=Rp(t,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let n="",i="",s=Buffer.from("accountKey","base64"),a="";if(i=Rp(t,"AccountName"),s=Buffer.from(Rp(t,"AccountKey"),"base64"),!r){n=Rp(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=Rp(t,"EndpointSuffix"),!a)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${n}://${i}.blob.${a}`}if(i){if(s.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:r,accountName:i,accountKey:s,proxyUri:e}}else{let n=Rp(t,"SharedAccessSignature"),i=Rp(t,"AccountName");if(i||(i=E5(r)),r){if(!n)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return n.startsWith("?")&&(n=n.substring(1)),{kind:"SASConnString",url:r,accountName:i,accountSas:n}}}o(Dp,"extractConnectionStringParts");function qct(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(qct,"escape");function _n(t,e){let r=new URL(t),n=r.pathname;return n=n?n.endsWith("/")?`${n}${e}`:`${n}/${e}`:e,r.pathname=n,r.toString()}o(_n,"appendToURLPath");function Yg(t,e,r){let n=new URL(t),i=encodeURIComponent(e),s=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==i&&c.push(l)}return s&&c.push(`${i}=${s}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}o(Yg,"setURLParameter");function m5(t,e){return new URL(t).searchParams.get(e)??void 0}o(m5,"getURLParameter");function Nge(t){try{let e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}o(Nge,"getURLScheme");function Cw(t,e){let r=new URL(t),n=r.search;return n?n+="&"+e:n=e,r.search=n,r.toString()}o(Cw,"appendToURLQuery");function Ft(t,e=!0){let r=t.toISOString();return e?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}o(Ft,"truncatedISO8061Date");function Gct(t){return Lt?Buffer.from(t).toString("base64"):btoa(t)}o(Gct,"base64encode");function g5(t,e){t.length>42&&(t=t.slice(0,42));let s=t+Hct(e.toString(),48-t.length,"0");return Gct(s)}o(g5,"generateBlockID");function Hct(t,e,r=" "){return String.prototype.padStart?t.padStart(e,r):(r=r||" ",t.length>e?t:(e=e-t.length,e>r.length&&(r+=r.repeat(e/r.length)),r.slice(0,e)+t))}o(Hct,"padStart");function y5(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}o(y5,"iEqual");function E5(t){let e=new URL(t),r;try{return e.hostname.split(".")[1]==="blob"?r=e.hostname.split(".")[0]:hR(e)?r=e.pathname.split("/")[1]:r="",r}catch{throw new Error("Unable to extract accountName with provided information.")}}o(E5,"getAccountNameFromUrl");function hR(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&&vme.includes(t.port)}o(hR,"isIpEndpointStyle");function Sf(t){if(t===void 0)return;let e=[];for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`)}return e.join("&")}o(Sf,"toBlobTagsString");function _ge(t){if(t===void 0)return;let e={blobTagSet:[]};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.blobTagSet.push({key:r,value:n})}return e}o(_ge,"toBlobTags");function pR(t){if(t===void 0)return;let e={};for(let r of t.blobTagSet)e[r.key]=r.value;return e}o(pR,"toTags");function C5(t){if(t!==void 0)switch(t.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:t.columnSeparator||",",fieldQuote:t.fieldQuote||"",recordSeparator:t.recordSeparator,escapeChar:t.escapeCharacter||"",headersPresent:t.hasHeaders||!1}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:t.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:t.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}o(C5,"toQuerySerialization");function AR(t){if(!t||"policy-id"in t)return;let e=[];for(let r in t){let n=r.split("_"),i="or-";n[0].startsWith(i)&&(n[0]=n[0].substring(i.length));let s={ruleId:n[1],replicationStatus:t[r]},a=e.findIndex(c=>c.policyId===n[0]);a>-1?e[a].rules.push(s):e.push({policyId:n[0],rules:[s]})}return e}o(AR,"parseObjectReplicationRecord");function Kg(t){return t?t.scheme+" "+t.value:void 0}o(Kg,"httpAuthorizationToString");function*b5(t){let e=[],r=[];t.pageRange&&(e=t.pageRange),t.clearRange&&(r=t.clearRange);let n=0,i=0;for(;n<e.length&&i<r.length;)e[n].start<r[i].start?(yield{start:e[n].start,end:e[n].end,isClear:!1},++n):(yield{start:r[i].start,end:r[i].end,isClear:!0},++i);for(;n<e.length;++n)yield{start:e[n].start,end:e[n].end,isClear:!1};for(;i<r.length;++i)yield{start:r[i].start,end:r[i].end,isClear:!0}}o(b5,"ExtractPageRangeInfoItems");function Ne(t){if("_response"in t)return t;throw new TypeError(`Unexpected response object ${t}`)}o(Ne,"assertResponse");var Xg=class{static{o(this,"StorageClient")}url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,r){this.url=vge(e),this.accountName=E5(e),this.pipeline=r,this.storageClientContext=new Ew(this.url,dH(r)),this.isHttps=y5(Nge(this.url)||"","https"),this.credential=fH(r);let n=this.storageClientContext;n.requestContentType=void 0}};var Ee=V0({packageName:"@azure/storage-blob",packageVersion:_T,namespace:"Microsoft.Storage"});var gl=class t{static{o(this,"BlobSASPermissions")}static parse(e){let r=new t;for(let n of e)switch(n){case"r":r.read=!0;break;case"a":r.add=!0;break;case"c":r.create=!0;break;case"w":r.write=!0;break;case"d":r.delete=!0;break;case"x":r.deleteVersion=!0;break;case"t":r.tag=!0;break;case"m":r.move=!0;break;case"e":r.execute=!0;break;case"i":r.setImmutabilityPolicy=!0;break;case"y":r.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${n}`)}return r}static from(e){let r=new t;return e.read&&(r.read=!0),e.add&&(r.add=!0),e.create&&(r.create=!0),e.write&&(r.write=!0),e.delete&&(r.delete=!0),e.deleteVersion&&(r.deleteVersion=!0),e.tag&&(r.tag=!0),e.move&&(r.move=!0),e.execute&&(r.execute=!0),e.setImmutabilityPolicy&&(r.setImmutabilityPolicy=!0),e.permanentDelete&&(r.permanentDelete=!0),r}read=!1;add=!1;create=!1;write=!1;delete=!1;deleteVersion=!1;tag=!1;move=!1;execute=!1;setImmutabilityPolicy=!1;permanentDelete=!1;toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}};var yl=class t{static{o(this,"ContainerSASPermissions")}static parse(e){let r=new t;for(let n of e)switch(n){case"r":r.read=!0;break;case"a":r.add=!0;break;case"c":r.create=!0;break;case"w":r.write=!0;break;case"d":r.delete=!0;break;case"l":r.list=!0;break;case"t":r.tag=!0;break;case"x":r.deleteVersion=!0;break;case"m":r.move=!0;break;case"e":r.execute=!0;break;case"i":r.setImmutabilityPolicy=!0;break;case"y":r.permanentDelete=!0;break;case"f":r.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${n}`)}return r}static from(e){let r=new t;return e.read&&(r.read=!0),e.add&&(r.add=!0),e.create&&(r.create=!0),e.write&&(r.write=!0),e.delete&&(r.delete=!0),e.list&&(r.list=!0),e.deleteVersion&&(r.deleteVersion=!0),e.tag&&(r.tag=!0),e.move&&(r.move=!0),e.execute&&(r.execute=!0),e.setImmutabilityPolicy&&(r.setImmutabilityPolicy=!0),e.permanentDelete&&(r.permanentDelete=!0),e.filterByTags&&(r.filterByTags=!0),r}read=!1;add=!1;create=!1;write=!1;delete=!1;deleteVersion=!1;list=!1;tag=!1;move=!1;execute=!1;setImmutabilityPolicy=!1;permanentDelete=!1;filterByTags=!1;toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}};function ic(t){return t.end?`${t.start}-${t.end}`:t.start}o(ic,"ipRangeToString");var Tge;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Tge||(Tge={}));var sc=class{static{o(this,"SASQueryParameters")}version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;delegatedUserObjectId;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner)return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}constructor(e,r,n,i,s,a,c,l,u,d,f,h,p,g,A,E,y,C,w,B,Q){this.version=e,this.signature=r,n!==void 0&&typeof n!="string"?(this.permissions=n.permissions,this.services=n.services,this.resourceTypes=n.resourceTypes,this.protocol=n.protocol,this.startsOn=n.startsOn,this.expiresOn=n.expiresOn,this.ipRangeInner=n.ipRange,this.identifier=n.identifier,this.delegatedUserObjectId=n.delegatedUserObjectId,this.encryptionScope=n.encryptionScope,this.resource=n.resource,this.cacheControl=n.cacheControl,this.contentDisposition=n.contentDisposition,this.contentEncoding=n.contentEncoding,this.contentLanguage=n.contentLanguage,this.contentType=n.contentType,n.userDelegationKey&&(this.signedOid=n.userDelegationKey.signedObjectId,this.signedTenantId=n.userDelegationKey.signedTenantId,this.signedStartsOn=n.userDelegationKey.signedStartsOn,this.signedExpiresOn=n.userDelegationKey.signedExpiresOn,this.signedService=n.userDelegationKey.signedService,this.signedVersion=n.userDelegationKey.signedVersion,this.preauthorizedAgentObjectId=n.preauthorizedAgentObjectId,this.correlationId=n.correlationId)):(this.services=i,this.resourceTypes=s,this.expiresOn=l,this.permissions=n,this.protocol=a,this.startsOn=c,this.ipRangeInner=u,this.delegatedUserObjectId=Q,this.encryptionScope=B,this.identifier=d,this.resource=f,this.cacheControl=h,this.contentDisposition=p,this.contentEncoding=g,this.contentLanguage=A,this.contentType=E,y&&(this.signedOid=y.signedObjectId,this.signedTenantId=y.signedTenantId,this.signedStartsOn=y.signedStartsOn,this.signedExpiresOn=y.signedExpiresOn,this.signedService=y.signedService,this.signedVersion=y.signedVersion,this.preauthorizedAgentObjectId=C,this.correlationId=w))}toString(){let e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid","sduoid"],r=[];for(let n of e)switch(n){case"sv":this.tryAppendQueryParameter(r,n,this.version);break;case"ss":this.tryAppendQueryParameter(r,n,this.services);break;case"srt":this.tryAppendQueryParameter(r,n,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(r,n,this.protocol);break;case"st":this.tryAppendQueryParameter(r,n,this.startsOn?Ft(this.startsOn,!1):void 0);break;case"se":this.tryAppendQueryParameter(r,n,this.expiresOn?Ft(this.expiresOn,!1):void 0);break;case"sip":this.tryAppendQueryParameter(r,n,this.ipRange?ic(this.ipRange):void 0);break;case"si":this.tryAppendQueryParameter(r,n,this.identifier);break;case"ses":this.tryAppendQueryParameter(r,n,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(r,n,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(r,n,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(r,n,this.signedStartsOn?Ft(this.signedStartsOn,!1):void 0);break;case"ske":this.tryAppendQueryParameter(r,n,this.signedExpiresOn?Ft(this.signedExpiresOn,!1):void 0);break;case"sks":this.tryAppendQueryParameter(r,n,this.signedService);break;case"skv":this.tryAppendQueryParameter(r,n,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(r,n,this.resource);break;case"sp":this.tryAppendQueryParameter(r,n,this.permissions);break;case"sig":this.tryAppendQueryParameter(r,n,this.signature);break;case"rscc":this.tryAppendQueryParameter(r,n,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(r,n,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(r,n,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(r,n,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(r,n,this.contentType);break;case"saoid":this.tryAppendQueryParameter(r,n,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(r,n,this.correlationId);break;case"sduoid":this.tryAppendQueryParameter(r,n,this.delegatedUserObjectId);break}return r.join("&")}tryAppendQueryParameter(e,r,n){n&&(r=encodeURIComponent(r),n=encodeURIComponent(n),r.length>0&&n.length>0&&e.push(`${r}=${n}`))}};function bw(t,e,r){return ww(t,e,r).sasQueryParameters}o(bw,"generateBlobSASQueryParameters");function ww(t,e,r){let n=t.version?t.version:TT,i=e instanceof kr?e:void 0,s;if(i===void 0&&r!==void 0&&(s=new NT(r,e)),i===void 0&&s===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return i!==void 0?$ct(t,i):n>="2025-07-05"?Yct(t,s):Jct(t,s);if(n>="2018-11-09")return i!==void 0?zct(t,i):n>="2020-02-10"?Wct(t,s):jct(t,s);if(n>="2015-04-05"){if(i!==void 0)return Vct(t,i);throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}throw new RangeError("'version' must be >= '2015-04-05'.")}o(ww,"generateBlobSASQueryParametersInternal");function Vct(t,e){if(t=Pp(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=gl.parse(t.permissions.toString()).toString():n=yl.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ft(t.startsOn,!1):"",t.expiresOn?Ft(t.expiresOn,!1):"",Qp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ic(t.ipRange):"",t.protocol?t.protocol:"",t.version,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
|
`),s=e.computeHMACSHA256(i);return{sasQueryParameters:new sc(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(Vct,"generateBlobSASQueryParameters20150405");function zct(t,e){if(t=Pp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=gl.parse(t.permissions.toString()).toString():i=yl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Ft(t.startsOn,!1):"",t.expiresOn?Ft(t.expiresOn,!1):"",Qp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ic(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
|
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new sc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(zct,"generateBlobSASQueryParameters20181109");function $ct(t,e){if(t=Pp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=gl.parse(t.permissions.toString()).toString():i=yl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Ft(t.startsOn,!1):"",t.expiresOn?Ft(t.expiresOn,!1):"",Qp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ic(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
|
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new sc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}o($ct,"generateBlobSASQueryParameters20201206");function jct(t,e){if(t=Pp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=gl.parse(t.permissions.toString()).toString():i=yl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Ft(t.startsOn,!1):"",t.expiresOn?Ft(t.expiresOn,!1):"",Qp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ic(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
|
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new sc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}o(jct,"generateBlobSASQueryParametersUDK20181109");function Wct(t,e){if(t=Pp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=gl.parse(t.permissions.toString()).toString():i=yl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Ft(t.startsOn,!1):"",t.expiresOn?Ft(t.expiresOn,!1):"",Qp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ic(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
|
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new sc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}o(Wct,"generateBlobSASQueryParametersUDK20200210");function Jct(t,e){if(t=Pp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=gl.parse(t.permissions.toString()).toString():i=yl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Ft(t.startsOn,!1):"",t.expiresOn?Ft(t.expiresOn,!1):"",Qp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ic(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
|
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new sc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}o(Jct,"generateBlobSASQueryParametersUDK20201206");function Yct(t,e){if(t=Pp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=gl.parse(t.permissions.toString()).toString():i=yl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Ft(t.startsOn,!1):"",t.expiresOn?Ft(t.expiresOn,!1):"",Qp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ic(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
|
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new sc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}o(Yct,"generateBlobSASQueryParametersUDK20250705");function Qp(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Qp,"getCanonicalName");function Pp(t){let e=t.version?t.version:TT;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Pp,"SASSignatureValuesSanityCheckAndAutofill");var Iw=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Og()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ec||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ec||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 Ee.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ne(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!==ec||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ec||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 Ee.withSpan("BlobLeaseClient-changeLease",r,async n=>{let i=Ne(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==ec||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ec||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 Ee.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ne(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!==ec||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ec||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 Ee.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!==ec||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ec||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 Ee.withSpan("BlobLeaseClient-breakLease",r,async n=>{let i={abortSignal:r.abortSignal,breakPeriod:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions};return Ne(await this._containerOrBlobOperation.breakLease(i))})}};var Rge=require("node:stream");var mR=class extends Rge.Readable{static{o(this,"RetriableReadableStream")}start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,r,n,i,s={}){super({highWaterMark:s.highWaterMark}),this.getter=r,this.source=e,this.start=n,this.offset=n,this.end=n+i-1,this.maxRetryRequests=s.maxRetryRequests&&s.maxRetryRequests>=0?s.maxRetryRequests:0,this.onProgress=s.onProgress,this.options=s,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler),this.source.on("end",this.sourceErrorOrEndHandler),this.source.on("error",this.sourceErrorOrEndHandler),this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler),this.source.removeListener("end",this.sourceErrorOrEndHandler),this.source.removeListener("error",this.sourceErrorOrEndHandler),this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=o(e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()},"sourceDataHandler");sourceAbortedHandler=o(()=>{let e=new ho("The operation was aborted.");this.destroy(e)},"sourceAbortedHandler");sourceErrorOrEndHandler=o(e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries<this.maxRetryRequests?(this.retries+=1,this.getter(this.offset).then(r=>{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 gR=class{static{o(this,"BlobDownloadResponse")}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return Lt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r,n,i,s={}){this.originalResponse=e,this.blobDownloadStream=new mR(this.originalResponse.readableStreamBody,r,n,i,s)}};var Lge=require("node:stream");var w5=new Uint8Array([79,98,106,1]),Dge="avro.codec",Qge="avro.schema";var xr=class t{static{o(this,"AvroParser")}static async readFixedBytes(e,r,n={}){let i=await e.read(r,{abortSignal:n.abortSignal});if(i.length!==r)throw new Error("Hit stream end.");return i}static async readByte(e,r={}){return(await t.readFixedBytes(e,1,r))[0]}static async readZigZagLong(e,r={}){let n=0,i=0,s,a,c;do s=await t.readByte(e,r),a=s&128,n|=(s&127)<<i,i+=7;while(a&&i<28);if(a){n=n,c=268435456;do s=await t.readByte(e,r),n+=(s&127)*c,c*=128;while(s&128);let l=(n%2?-(n+1):n)/2;if(l<Number.MIN_SAFE_INTEGER||l>Number.MAX_SAFE_INTEGER)throw new Error("Integer overflow.");return l}return n>>1^-(n&1)}static async readLong(e,r={}){return t.readZigZagLong(e,r)}static async readInt(e,r={}){return t.readZigZagLong(e,r)}static async readNull(){return null}static async readBoolean(e,r={}){let n=await t.readByte(e,r);if(n===1)return!0;if(n===0)return!1;throw new Error("Byte was not a boolean.")}static async readFloat(e,r={}){let n=await t.readFixedBytes(e,4,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat32(0,!0)}static async readDouble(e,r={}){let n=await t.readFixedBytes(e,8,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat64(0,!0)}static async readBytes(e,r={}){let n=await t.readLong(e,r);if(n<0)throw new Error("Bytes size was negative.");return e.read(n,{abortSignal:r.abortSignal})}static async readString(e,r={}){let n=await t.readBytes(e,r);return new TextDecoder().decode(n)}static async readMapPair(e,r,n={}){let i=await t.readString(e,n),s=await r(e,n);return{key:i,value:s}}static async readMap(e,r,n={}){let i=o((c,l={})=>t.readMapPair(c,r,l),"readPairMethod"),s=await t.readArray(e,i,n),a={};for(let c of s)a[c.key]=c.value;return a}static async readArray(e,r,n={}){let i=[];for(let s=await t.readLong(e,n);s!==0;s=await t.readLong(e,n))for(s<0&&(await t.readLong(e,n),s=-s);s--;){let a=await r(e,n);i.push(a)}return i}},kp;(function(t){t.RECORD="record",t.ENUM="enum",t.ARRAY="array",t.MAP="map",t.UNION="union",t.FIXED="fixed"})(kp||(kp={}));var Wn;(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"})(Wn||(Wn={}));var Ku=class t{static{o(this,"AvroType")}static fromSchema(e){return typeof e=="string"?t.fromStringSchema(e):Array.isArray(e)?t.fromArraySchema(e):t.fromObjectSchema(e)}static fromStringSchema(e){switch(e){case Wn.NULL:case Wn.BOOLEAN:case Wn.INT:case Wn.LONG:case Wn.FLOAT:case Wn.DOUBLE:case Wn.BYTES:case Wn.STRING:return new I5(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new B5(e.map(t.fromSchema))}static fromObjectSchema(e){let r=e.type;try{return t.fromStringSchema(r)}catch{}switch(r){case kp.RECORD:if(e.aliases)throw new Error(`aliases currently is not supported, schema: ${e}`);if(!e.name)throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`);let n={};if(!e.fields)throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`);for(let i of e.fields)n[i.name]=t.fromSchema(i.type);return new v5(n,e.name);case kp.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 S5(e.symbols);case kp.MAP:if(!e.values)throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new x5(t.fromSchema(e.values));case kp.ARRAY:case kp.FIXED:default:throw new Error(`Unexpected Avro type ${r} in ${e}`)}}},I5=class extends Ku{static{o(this,"AvroPrimitiveType")}_primitive;constructor(e){super(),this._primitive=e}read(e,r={}){switch(this._primitive){case Wn.NULL:return xr.readNull();case Wn.BOOLEAN:return xr.readBoolean(e,r);case Wn.INT:return xr.readInt(e,r);case Wn.LONG:return xr.readLong(e,r);case Wn.FLOAT:return xr.readFloat(e,r);case Wn.DOUBLE:return xr.readDouble(e,r);case Wn.BYTES:return xr.readBytes(e,r);case Wn.STRING:return xr.readString(e,r);default:throw new Error("Unknown Avro Primitive")}}},S5=class extends Ku{static{o(this,"AvroEnumType")}_symbols;constructor(e){super(),this._symbols=e}async read(e,r={}){let n=await xr.readInt(e,r);return this._symbols[n]}},B5=class extends Ku{static{o(this,"AvroUnionType")}_types;constructor(e){super(),this._types=e}async read(e,r={}){let n=await xr.readInt(e,r);return this._types[n].read(e,r)}},x5=class extends Ku{static{o(this,"AvroMapType")}_itemType;constructor(e){super(),this._itemType=e}read(e,r={}){let n=o((i,s)=>this._itemType.read(i,s),"readItemMethod");return xr.readMap(e,n,r)}},v5=class extends Ku{static{o(this,"AvroRecordType")}_name;_fields;constructor(e,r){super(),this._fields=e,this._name=r}async read(e,r={}){let n={};n.$schema=this._name;for(let i in this._fields)Object.prototype.hasOwnProperty.call(this._fields,i)&&(n[i]=await this._fields[i].read(e,r));return n}};function N5(t,e){if(t===e)return!0;if(t==null||e==null||t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0}o(N5,"arraysEqual");var Sw=class{static{o(this,"AvroReader")}_dataStream;_headerStream;_syncMarker;_metadata;_itemType;_itemsRemainingInBlock;_initialBlockOffset;_blockOffset;get blockOffset(){return this._blockOffset}_objectIndex;get objectIndex(){return this._objectIndex}_initialized;constructor(e,r,n,i){this._dataStream=e,this._headerStream=r||e,this._initialized=!1,this._blockOffset=n||0,this._objectIndex=i||0,this._initialBlockOffset=n||0}async initialize(e={}){let r=await xr.readFixedBytes(this._headerStream,w5.length,{abortSignal:e.abortSignal});if(!N5(r,w5))throw new Error("Stream is not an Avro file.");this._metadata=await xr.readMap(this._headerStream,xr.readString,{abortSignal:e.abortSignal});let n=this._metadata[Dge];if(!(n==null||n==="null"))throw new Error("Codecs are not supported");this._syncMarker=await xr.readFixedBytes(this._headerStream,16,{abortSignal:e.abortSignal});let i=JSON.parse(this._metadata[Qge]);if(this._itemType=Ku.fromSchema(i),this._blockOffset===0&&(this._blockOffset=this._initialBlockOffset+this._dataStream.position),this._itemsRemainingInBlock=await xr.readLong(this._dataStream,{abortSignal:e.abortSignal}),await xr.readLong(this._dataStream,{abortSignal:e.abortSignal}),this._initialized=!0,this._objectIndex&&this._objectIndex>0)for(let s=0;s<this._objectIndex;s++)await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal}),this._itemsRemainingInBlock--}hasNext(){return!this._initialized||this._itemsRemainingInBlock>0}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 xr.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!N5(this._syncMarker,n))throw new Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=await xr.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await xr.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield r}}};var Bw=class{static{o(this,"AvroReadable")}};var Oge=require("buffer");var kge=new ho("Reading from the avro stream was aborted."),xw=class extends Bw{static{o(this,"AvroReadableFromStream")}_position;_readable;toUint8Array(e){return typeof e=="string"?Oge.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 kge;if(e<0)throw new Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw new Error("Stream no longer readable.");let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((i,s)=>{let a=o(()=>{this._readable.removeListener("readable",c),this._readable.removeListener("error",l),this._readable.removeListener("end",l),this._readable.removeListener("close",l),r.abortSignal&&r.abortSignal.removeEventListener("abort",u)},"cleanUp"),c=o(()=>{let d=this._readable.read(e);d&&(this._position+=d.length,a(),i(this.toUint8Array(d)))},"readableCallback"),l=o(()=>{a(),s()},"rejectCallback"),u=o(()=>{a(),s(kge)},"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 yR=class extends Lge.Readable{static{o(this,"BlobQuickQueryStream")}source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,r={}){super(),this.source=e,this.onProgress=r.onProgress,this.onError=r.onError,this.avroReader=new Sw(new xw(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:r.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit("error",e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let r=e.value,n=r.$schema;if(typeof n!="string")throw Error("Missing schema in avro record.");switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{let i=r.data;if(!(i instanceof Uint8Array))throw Error("Invalid data in avro result record.");this.push(Buffer.from(i))||(this.avroPaused=!0)}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{let i=r.bytesScanned;if(typeof i!="number")throw Error("Invalid bytesScanned in avro progress record.");this.onProgress&&this.onProgress({loadedBytes:i})}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){let i=r.totalBytes;if(typeof i!="number")throw Error("Invalid totalBytes in avro end record.");this.onProgress({loadedBytes:i})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){let i=r.fatal;if(typeof i!="boolean")throw Error("Invalid fatal in avro error record.");let s=r.name;if(typeof s!="string")throw Error("Invalid name in avro error record.");let a=r.description;if(typeof a!="string")throw Error("Invalid description in avro error record.");let c=r.position;if(typeof c!="number")throw Error("Invalid position in avro error record.");this.onError({position:c,name:s,isFatal:i,description:a})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}};var ER=class{static{o(this,"BlobQueryResponse")}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return Lt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r={}){this.originalResponse=e,this.blobDownloadStream=new yR(this.originalResponse.readableStreamBody,r)}};var _5;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(_5||(_5={}));var T5;(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"})(T5||(T5={}));function Bf(t){if(t!==void 0)return t}o(Bf,"toAccessTier");function Tn(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=bme)}o(Tn,"ensureCpkIfSpecified");var R5;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(R5||(R5={}));function CR(t){let e=(t._response.parsedBody.pageRange||[]).map(n=>({offset:n.start,count:n.end-n.start})),r=(t._response.parsedBody.clearRange||[]).map(n=>({offset:n.start,count:n.end-n.start}));return{...t,pageRange:e,clearRange:r,_response:{...t._response,parsedBody:{pageRange:e,clearRange:r}}}}o(CR,"rangeResponseFromModel");var wye=N(bye(),1);var TR=class extends wye.Poller{static{o(this,"BlobBeginCopyFromUrlPoller")}intervalInMs;constructor(e){let{blobClient:r,copySource:n,intervalInMs:i=15e3,onProgress:s,resumeFrom:a,startCopyFromURLOptions:c}=e,l;a&&(l=JSON.parse(a).state);let u=Tw({...l,blobClient:r,copySource:n,startCopyFromURLOptions:c});super(u),typeof s=="function"&&this.onProgress(s),this.intervalInMs=i}delay(){return G0(this.intervalInMs)}},jlt=o(async function(e={}){let r=this.state,{copyId:n}=r;return r.isCompleted?Tw(r):n?(await r.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),r.isCancelled=!0,Tw(r)):(r.isCancelled=!0,Tw(r))},"cancel"),Wlt=o(async function(e={}){let r=this.state,{blobClient:n,copySource:i,startCopyFromURLOptions:s}=r;if(r.isStarted){if(!r.isCompleted)try{let a=await r.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:c,copyProgress:l}=a,u=r.copyProgress;l&&(r.copyProgress=l),c==="pending"&&l!==u&&typeof e.fireProgress=="function"?e.fireProgress(r):c==="success"?(r.result=a,r.isCompleted=!0):c==="failed"&&(r.error=new Error(`Blob copy failed with reason: "${a.copyStatusDescription||"unknown"}"`),r.isCompleted=!0)}catch(a){r.error=a,r.isCompleted=!0}}else{r.isStarted=!0;let a=await n.startCopyFromURL(i,s);r.copyId=a.copyId,a.copyStatus==="success"&&(r.result=a,r.isCompleted=!0)}return Tw(r)},"update"),Jlt=o(function(){return JSON.stringify({state:this.state},(e,r)=>{if(e!=="blobClient")return r})},"toString");function Tw(t){return{state:{...t},cancel:jlt,toString:Jlt,update:Wlt}}o(Tw,"makeBlobBeginCopyFromURLPollOperation");function Rs(t){if(t.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(t.count&&t.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return t.count?`bytes=${t.offset}-${t.offset+t.count-1}`:`bytes=${t.offset}-`}o(Rs,"rangeToString");var Iye=require("events");var Rw;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})(Rw||(Rw={}));var Dw=class{static{o(this,"Batch")}concurrency;actives=0;completed=0;offset=0;operations=[];state=Rw.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new Iye.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=Rw.Error,r(n)})}))}nextOperation(){return this.offset<this.operations.length?this.operations[this.offset++]:null}parallelExecute(){if(this.state!==Rw.Error){if(this.completed>=this.operations.length){this.emitter.emit("finish");return}for(;this.actives<this.concurrency;){let e=this.nextOperation();if(e)e();else return}}}};var RR=N(require("node:fs"),1),Sye=N(require("node:util"),1);async function Bye(t,e,r,n,i){let s=0,a=n-r;return new Promise((c,l)=>{let u=setTimeout(()=>l(new Error("The operation cannot be completed in timeout.")),1e5);t.on("readable",()=>{if(s>=a){clearTimeout(u),c();return}let d=t.read();if(!d)return;typeof d=="string"&&(d=Buffer.from(d,i));let f=s+d.length>a?a-s:d.length;e.fill(d.slice(0,f),r+s,r+s+f),s+=f}),t.on("end",()=>{clearTimeout(u),s<a&&l(new Error(`Stream drains before getting enough data needed. Data read: ${s}, data need: ${a}`)),c()}),t.on("error",d=>{clearTimeout(u),l(d)})})}o(Bye,"streamToBuffer");async function xye(t,e){return new Promise((r,n)=>{let i=RR.default.createWriteStream(e);t.on("error",s=>{n(s)}),i.on("error",s=>{n(s)}),i.on("close",r),t.pipe(i)})}o(xye,"readStreamToLocalFile");var vye=Sye.default.promisify(RR.default.stat),Nye=RR.default.createReadStream;var oc=class t extends Xg{static{o(this,"BlobClient")}blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,r,n,i){i=i||{};let s,a;if(zu(r))a=e,s=r;else if(Lt&&r instanceof kr||r instanceof yr||po(r))a=e,i=n,s=en(r,i);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(i=n),s=en(new yr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Dp(e);if(u.kind==="AccountConnString")if(Lt){let d=new kr(u.accountName,u.accountKey);a=_n(_n(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=mf(u.proxyUri)),s=en(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=_n(_n(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=en(new yr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=m5(this.url,Vu.Parameters.SNAPSHOT),this._versionId=m5(this.url,Vu.Parameters.VERSIONID)}withSnapshot(e){return new t(Yg(this.url,Vu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new t(Yg(this.url,Vu.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new QR(this.url,this.pipeline)}getBlockBlobClient(){return new ty(this.url,this.pipeline)}getPageBlobClient(){return new PR(this.url,this.pipeline)}async download(e=0,r,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},Tn(n.customerProvidedKey,this.isHttps),Ee.withSpan("BlobClient-download",n,async i=>{let s=Ne(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:Lt?void 0:n.onProgress},range:e===0&&!r?void 0:Rs({offset:e,count:r}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:i.tracingOptions})),a={...s,_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:AR(s.objectReplicationRules)};if(!Lt)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),s.contentLength===void 0)throw new RangeError("File download response doesn't contain valid content length header");if(!s.etag)throw new RangeError("File download response doesn't contain valid etag header");return new gR(a,async c=>{let l={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||s.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Rs({count:e+s.contentLength-c,offset:c}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...l})).readableStreamBody},e,s.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return Ee.withSpan("BlobClient-exists",e,async r=>{try{return Tn(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===Bme||n.details.errorCode===xme))return!0;throw n}})}async getProperties(e={}){return e.conditions=e.conditions||{},Tn(e.customerProvidedKey,this.isHttps),Ee.withSpan("BlobClient-getProperties",e,async r=>{let n=Ne(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:AR(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},Ee.withSpan("BlobClient-delete",e,async r=>Ne(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 Ee.withSpan("BlobClient-deleteIfExists",e,async r=>{try{let n=Ne(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 Ee.withSpan("BlobClient-undelete",e,async r=>Ne(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setHTTPHeaders(e,r={}){return r.conditions=r.conditions||{},Tn(r.customerProvidedKey,this.isHttps),Ee.withSpan("BlobClient-setHTTPHeaders",r,async n=>Ne(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||{},Tn(r.customerProvidedKey,this.isHttps),Ee.withSpan("BlobClient-setMetadata",r,async n=>Ne(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 Ee.withSpan("BlobClient-setTags",r,async n=>Ne(await this.blobContext.setTags({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},blobModifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions,tags:_ge(e)})))}async getTags(e={}){return Ee.withSpan("BlobClient-getTags",e,async r=>{let n=Ne(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:pR({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new Iw(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},Tn(e.customerProvidedKey,this.isHttps),Ee.withSpan("BlobClient-createSnapshot",e,async r=>Ne(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:r.tracingOptions})))}async beginCopyFromURL(e,r={}){let n={abortCopyFromURL:o((...s)=>this.abortCopyFromURL(...s),"abortCopyFromURL"),getProperties:o((...s)=>this.getProperties(...s),"getProperties"),startCopyFromURL:o((...s)=>this.startCopyFromURL(...s),"startCopyFromURL")},i=new TR({blobClient:n,copySource:e,intervalInMs:r.intervalInMs,onProgress:r.onProgress,resumeFrom:r.resumeFrom,startCopyFromURLOptions:r});return await i.poll(),i}async abortCopyFromURL(e,r={}){return Ee.withSpan("BlobClient-abortCopyFromURL",r,async n=>Ne(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||{},Ee.withSpan("BlobClient-syncCopyFromURL",r,async n=>Ne(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:Kg(r.sourceAuthorization),tier:Bf(r.tier),blobTagsString:Sf(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 Ee.withSpan("BlobClient-setAccessTier",r,async n=>Ne(await this.blobContext.setTier(Bf(e),{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},rehydratePriority:r.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,r,n,i={}){let s,a=0,c=0,l=i;e instanceof Buffer?(s=e,a=r||0,c=typeof n=="number"?n:0):(a=typeof e=="number"?e:0,c=typeof r=="number"?r:0,l=n||{});let u=l.blockSize??0;if(u<0)throw new RangeError("blockSize option must be >= 0");if(u===0&&(u=4194304),a<0)throw new RangeError("offset option must be >= 0");if(c&&c<=0)throw new RangeError("count option must be greater than 0");return l.conditions||(l.conditions={}),Ee.withSpan("BlobClient-downloadToBuffer",l,async d=>{if(!c){let p=await this.getProperties({...l,tracingOptions:d.tracingOptions});if(c=p.contentLength-a,c<0)throw new RangeError(`offset ${a} shouldn't be larger than blob size ${p.contentLength}`)}if(!s)try{s=Buffer.alloc(c)}catch(p){throw new Error(`Unable to allocate the buffer of size: ${c}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile". ${p.message}`)}if(s.length<c)throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${c}`);let f=0,h=new Dw(l.concurrency);for(let p=a;p<a+c;p=p+u)h.addOperation(async()=>{let g=a+c;p+u<g&&(g=p+u);let E=(await this.download(p,g-p,{abortSignal:l.abortSignal,conditions:l.conditions,maxRetryRequests:l.maxRetryRequestsPerBlock,customerProvidedKey:l.customerProvidedKey,tracingOptions:d.tracingOptions})).readableStreamBody;await Bye(E,s,p-a,g-a),f+=g-p,l.onProgress&&l.onProgress({loadedBytes:f})});return await h.do(),s})}async downloadToFile(e,r=0,n,i={}){return Ee.withSpan("BlobClient-downloadToFile",i,async s=>{let a=await this.download(r,n,{...i,tracingOptions:s.tracingOptions});return a.readableStreamBody&&await xye(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,r;try{let n=new URL(this.url);if(n.host.split(".")[1]==="blob"){let i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1],r=i[3]}else if(hR(n)){let i=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=i[2],r=i[4]}else{let i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1],r=i[3]}if(e=decodeURIComponent(e),r=decodeURIComponent(r),r=r.replace(/\\/g,"/"),!e)throw new Error("Provided containerName is invalid.");return{blobName:r,containerName:e}}catch{throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,r={}){return Ee.withSpan("BlobClient-startCopyFromURL",r,async n=>(r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},Ne(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:Bf(r.tier),blobTagsString:Sf(r.tags),sealBlob:r.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(r=>{if(!(this.credential instanceof kr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let n=bw({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();r(Cw(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof kr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return ww({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,r){return new Promise(n=>{let i=bw({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).toString();n(Cw(this.url,i))})}generateUserDelegationSasStringToSign(e,r){return ww({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Ee.withSpan("BlobClient-deleteImmutabilityPolicy",e,async r=>Ne(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions})))}async setImmutabilityPolicy(e,r={}){return Ee.withSpan("BlobClient-setImmutabilityPolicy",r,async n=>Ne(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:n.tracingOptions})))}async setLegalHold(e,r={}){return Ee.withSpan("BlobClient-setLegalHold",r,async n=>Ne(await this.blobContext.setLegalHold(e,{tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return Ee.withSpan("BlobClient-getAccountInfo",e,async r=>Ne(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}},QR=class t extends oc{static{o(this,"AppendBlobClient")}appendBlobContext;constructor(e,r,n,i){let s,a;if(i=i||{},zu(r))a=e,s=r;else if(Lt&&r instanceof kr||r instanceof yr||po(r))a=e,i=n,s=en(r,i);else if(!r&&typeof r!="string")a=e,s=en(new yr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Dp(e);if(u.kind==="AccountConnString")if(Lt){let d=new kr(u.accountName,u.accountKey);a=_n(_n(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=mf(u.proxyUri)),s=en(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=_n(_n(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=en(new yr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new t(Yg(this.url,Vu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},Tn(e.customerProvidedKey,this.isHttps),Ee.withSpan("AppendBlobClient-create",e,async r=>Ne(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:Sf(e.tags),tracingOptions:r.tracingOptions})))}async createIfNotExists(e={}){let r={ifNoneMatch:uH};return Ee.withSpan("AppendBlobClient-createIfNotExists",e,async n=>{try{let i=Ne(await this.create({...n,conditions:r}));return{succeeded:!0,...i,_response:i._response}}catch(i){if(i.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...i.response?.parsedHeaders,_response:i.response};throw i}})}async seal(e={}){return e.conditions=e.conditions||{},Ee.withSpan("AppendBlobClient-seal",e,async r=>Ne(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||{},Tn(n.customerProvidedKey,this.isHttps),Ee.withSpan("AppendBlobClient-appendBlock",n,async i=>Ne(await this.appendBlobContext.appendBlock(r,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:i.tracingOptions})))}async appendBlockFromURL(e,r,n,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},Tn(i.customerProvidedKey,this.isHttps),Ee.withSpan("AppendBlobClient-appendBlockFromURL",i,async s=>Ne(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:i.abortSignal,sourceRange:Rs({offset:r,count:n}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:Kg(i.sourceAuthorization),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:s.tracingOptions})))}},ty=class t extends oc{static{o(this,"BlockBlobClient")}_blobContext;blockBlobContext;constructor(e,r,n,i){let s,a;if(i=i||{},zu(r))a=e,s=r;else if(Lt&&r instanceof kr||r instanceof yr||po(r))a=e,i=n,s=en(r,i);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(i=n),s=en(new yr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Dp(e);if(u.kind==="AccountConnString")if(Lt){let d=new kr(u.accountName,u.accountKey);a=_n(_n(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=mf(u.proxyUri)),s=en(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=_n(_n(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=en(new yr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new t(Yg(this.url,Vu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,r={}){if(Tn(r.customerProvidedKey,this.isHttps),!Lt)throw new Error("This operation currently is only supported in Node.js.");return Ee.withSpan("BlockBlobClient-query",r,async n=>{let i=Ne(await this._blobContext.query({abortSignal:r.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:C5(r.inputTextConfiguration),outputSerialization:C5(r.outputTextConfiguration)},leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return new ER(i,{abortSignal:r.abortSignal,onProgress:r.onProgress,onError:r.onError})})}async upload(e,r,n={}){return n.conditions=n.conditions||{},Tn(n.customerProvidedKey,this.isHttps),Ee.withSpan("BlockBlobClient-upload",n,async i=>Ne(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:Bf(n.tier),blobTagsString:Sf(n.tags),tracingOptions:i.tracingOptions})))}async syncUploadFromURL(e,r={}){return r.conditions=r.conditions||{},Tn(r.customerProvidedKey,this.isHttps),Ee.withSpan("BlockBlobClient-syncUploadFromURL",r,async n=>Ne(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:Kg(r.sourceAuthorization),tier:Bf(r.tier),blobTagsString:Sf(r.tags),copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,r,n,i={}){return Tn(i.customerProvidedKey,this.isHttps),Ee.withSpan("BlockBlobClient-stageBlock",i,async s=>Ne(await this.blockBlobContext.stageBlock(e,n,r,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:s.tracingOptions})))}async stageBlockFromURL(e,r,n=0,i,s={}){return Tn(s.customerProvidedKey,this.isHttps),Ee.withSpan("BlockBlobClient-stageBlockFromURL",s,async a=>Ne(await this.blockBlobContext.stageBlockFromURL(e,0,r,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,sourceRange:n===0&&!i?void 0:Rs({offset:n,count:i}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:Kg(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,r={}){return r.conditions=r.conditions||{},Tn(r.customerProvidedKey,this.isHttps),Ee.withSpan("BlockBlobClient-commitBlockList",r,async n=>Ne(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:Bf(r.tier),blobTagsString:Sf(r.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,r={}){return Ee.withSpan("BlockBlobClient-getBlockList",r,async n=>{let i=Ne(await this.blockBlobContext.getBlockList(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return i.committedBlocks||(i.committedBlocks=[]),i.uncommittedBlocks||(i.uncommittedBlocks=[]),i})}async uploadData(e,r={}){return Ee.withSpan("BlockBlobClient-uploadData",r,async n=>{if(Lt){let i;return e instanceof Buffer?i=e:e instanceof ArrayBuffer?i=Buffer.from(e):(e=e,i=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((s,a)=>i.slice(s,s+a),i.byteLength,n)}else{let i=new Blob([e]);return this.uploadSeekableInternal((s,a)=>i.slice(s,s+a),i.size,n)}})}async uploadBrowserData(e,r={}){return Ee.withSpan("BlockBlobClient-uploadBrowserData",r,async n=>{let i=new Blob([e]);return this.uploadSeekableInternal((s,a)=>i.slice(s,s+a),i.size,n)})}async uploadSeekableInternal(e,r,n={}){let i=n.blockSize??0;if(i<0||i>4194304e3)throw new RangeError(`blockSize option must be >= 0 and <= ${4194304e3}`);let s=n.maxSingleShotSize??268435456;if(s<0||s>268435456)throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${268435456}`);if(i===0){if(r>4194304e3*5e4)throw new RangeError(`${r} is too larger to upload to a block blob.`);r>s&&(i=Math.ceil(r/5e4),i<4194304&&(i=4194304))}return n.blobHTTPHeaders||(n.blobHTTPHeaders={}),n.conditions||(n.conditions={}),Ee.withSpan("BlockBlobClient-uploadSeekableInternal",n,async a=>{if(r<=s)return Ne(await this.upload(e(0,r),r,a));let c=Math.floor((r-1)/i)+1;if(c>5e4)throw new RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${5e4}`);let l=[],u=Og(),d=0,f=new Dw(n.concurrency);for(let h=0;h<c;h++)f.addOperation(async()=>{let p=g5(u,h),g=i*h,E=(h===c-1?r:g+i)-g;l.push(p),await this.stageBlock(p,e(g,E),E,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),d+=E,n.onProgress&&n.onProgress({loadedBytes:d})});return await f.do(),this.commitBlockList(l,a)})}async uploadFile(e,r={}){return Ee.withSpan("BlockBlobClient-uploadFile",r,async n=>{let i=(await vye(e)).size;return this.uploadSeekableInternal((s,a)=>()=>Nye(e,{autoClose:!0,end:a?s+a-1:1/0,start:s}),i,{...r,tracingOptions:n.tracingOptions})})}async uploadStream(e,r=8388608,n=5,i={}){return i.blobHTTPHeaders||(i.blobHTTPHeaders={}),i.conditions||(i.conditions={}),Ee.withSpan("BlockBlobClient-uploadStream",i,async s=>{let a=0,c=Og(),l=0,u=[];return await new wT(e,r,n,async(f,h)=>{let p=g5(c,a);u.push(p),a++,await this.stageBlock(p,f,h,{customerProvidedKey:i.customerProvidedKey,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:s.tracingOptions}),l+=h,i.onProgress&&i.onProgress({loadedBytes:l})},Math.ceil(n/4*3)).do(),Ne(await this.commitBlockList(u,{...i,tracingOptions:s.tracingOptions}))})}},PR=class t extends oc{static{o(this,"PageBlobClient")}pageBlobContext;constructor(e,r,n,i){let s,a;if(i=i||{},zu(r))a=e,s=r;else if(Lt&&r instanceof kr||r instanceof yr||po(r))a=e,i=n,s=en(r,i);else if(!r&&typeof r!="string")a=e,s=en(new yr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Dp(e);if(u.kind==="AccountConnString")if(Lt){let d=new kr(u.accountName,u.accountKey);a=_n(_n(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=mf(u.proxyUri)),s=en(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=_n(_n(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=en(new yr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new t(Yg(this.url,Vu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,r={}){return r.conditions=r.conditions||{},Tn(r.customerProvidedKey,this.isHttps),Ee.withSpan("PageBlobClient-create",r,async n=>Ne(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:Bf(r.tier),blobTagsString:Sf(r.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,r={}){return Ee.withSpan("PageBlobClient-createIfNotExists",r,async n=>{try{let i={ifNoneMatch:uH},s=Ne(await this.create(e,{...r,conditions:i,tracingOptions:n.tracingOptions}));return{succeeded:!0,...s,_response:s._response}}catch(i){if(i.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...i.response?.parsedHeaders,_response:i.response};throw i}})}async uploadPages(e,r,n,i={}){return i.conditions=i.conditions||{},Tn(i.customerProvidedKey,this.isHttps),Ee.withSpan("PageBlobClient-uploadPages",i,async s=>Ne(await this.pageBlobContext.uploadPages(n,e,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onUploadProgress:i.onProgress},range:Rs({offset:r,count:n}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:s.tracingOptions})))}async uploadPagesFromURL(e,r,n,i,s={}){return s.conditions=s.conditions||{},s.sourceConditions=s.sourceConditions||{},Tn(s.customerProvidedKey,this.isHttps),Ee.withSpan("PageBlobClient-uploadPagesFromURL",s,async a=>Ne(await this.pageBlobContext.uploadPagesFromURL(e,Rs({offset:r,count:i}),0,Rs({offset:n,count:i}),{abortSignal:s.abortSignal,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,sequenceNumberAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions?.ifMatch,sourceIfModifiedSince:s.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions?.ifUnmodifiedSince},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:Kg(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,r,n={}){return n.conditions=n.conditions||{},Ee.withSpan("PageBlobClient-clearPages",n,async i=>Ne(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Rs({offset:e,count:r}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:i.tracingOptions})))}async getPageRanges(e=0,r,n={}){return n.conditions=n.conditions||{},Ee.withSpan("PageBlobClient-getPageRanges",n,async i=>{let s=Ne(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Rs({offset:e,count:r}),tracingOptions:i.tracingOptions}));return CR(s)})}async listPageRangesSegment(e=0,r,n,i={}){return Ee.withSpan("PageBlobClient-getPageRangesSegment",i,async s=>Ne(await this.pageBlobContext.getPageRanges({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},range:Rs({offset:e,count:r}),marker:n,maxPageSize:i.maxPageSize,tracingOptions:s.tracingOptions})))}async*listPageRangeItemSegments(e=0,r,n,i={}){let s;if(n||n===void 0)do s=await this.listPageRangesSegment(e,r,n,i),n=s.continuationToken,yield await s;while(n)}async*listPageRangeItems(e=0,r,n={}){let i;for await(let s of this.listPageRangeItemSegments(e,r,i,n))yield*b5(s)}listPageRanges(e=0,r,n={}){n.conditions=n.conditions||{};let i=this.listPageRangeItems(e,r,n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:o((s={})=>this.listPageRangeItemSegments(e,r,s.continuationToken,{maxPageSize:s.maxPageSize,...n}),"byPage")}}async getPageRangesDiff(e,r,n,i={}){return i.conditions=i.conditions||{},Ee.withSpan("PageBlobClient-getPageRangesDiff",i,async s=>{let a=Ne(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevsnapshot:n,range:Rs({offset:e,count:r}),tracingOptions:s.tracingOptions}));return CR(a)})}async listPageRangesDiffSegment(e,r,n,i,s={}){return Ee.withSpan("PageBlobClient-getPageRangesDiffSegment",s,async a=>Ne(await this.pageBlobContext.getPageRangesDiff({abortSignal:s?.abortSignal,leaseAccessConditions:s?.conditions,modifiedAccessConditions:{...s?.conditions,ifTags:s?.conditions?.tagConditions},prevsnapshot:n,range:Rs({offset:e,count:r}),marker:i,maxPageSize:s?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,r,n,i,s){let a;if(i||i===void 0)do a=await this.listPageRangesDiffSegment(e,r,n,i,s),i=a.continuationToken,yield await a;while(i)}async*listPageRangeDiffItems(e,r,n,i){let s;for await(let a of this.listPageRangeDiffItemSegments(e,r,n,s,i))yield*b5(a)}listPageRangesDiff(e,r,n,i={}){i.conditions=i.conditions||{};let s=this.listPageRangeDiffItems(e,r,n,{...i});return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:o((a={})=>this.listPageRangeDiffItemSegments(e,r,n,a.continuationToken,{maxPageSize:a.maxPageSize,...i}),"byPage")}}async getPageRangesDiffForManagedDisks(e,r,n,i={}){return i.conditions=i.conditions||{},Ee.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",i,async s=>{let a=Ne(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevSnapshotUrl:n,range:Rs({offset:e,count:r}),tracingOptions:s.tracingOptions}));return CR(a)})}async resize(e,r={}){return r.conditions=r.conditions||{},Ee.withSpan("PageBlobClient-resize",r,async n=>Ne(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||{},Ee.withSpan("PageBlobClient-updateSequenceNumber",n,async i=>Ne(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:r,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:i.tracingOptions})))}async startCopyIncremental(e,r={}){return Ee.withSpan("PageBlobClient-startCopyIncremental",r,async n=>Ne(await this.pageBlobContext.copyIncremental(e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}};var _ye;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(_ye||(_ye={}));var Tye;(function(t){t.AES256="AES256"})(Tye||(Tye={}));var kR=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}};var ry=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e}
|
|
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};ry.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Fp=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
|
|
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Fp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Qw=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var out=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},tz=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,i=(e/(1024*1024)/(n/1e3)).toFixed(1);O(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Rye(t,e,r){return out(this,void 0,void 0,function*(){var n;let i=new oc(t),s=i.getBlockBlobClient(),a=new tz((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(),R(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield s.uploadFile(e,c);if(l._response.status>=400)throw new kR(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw ut(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(Rye,"uploadCacheArchiveSDK");var Qye=N(require("buffer"),1),El=N(require("fs"),1),Pye=N(require("stream"),1),kye=N(require("util"),1);var OR=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function LR(t){return t?t>=200&&t<300:!1}o(LR,"isSuccessStatusCode");function aut(t){return t?t>=500:!0}o(aut,"isServerErrorStatusCode");function cut(t){return t?[Pr.BadGateway,Pr.ServiceUnavailable,Pr.GatewayTimeout].includes(t):!1}o(cut,"isRetryableStatusCode");function lut(t){return OR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(lut,"sleep");function Dye(t,e,r){return OR(this,arguments,void 0,function*(n,i,s,a=o_,c=a_,l=void 0){let u="",d=1;for(;d<=a;){let f,h,p=!1;try{f=yield i()}catch(g){l&&(f=l(g)),p=!0,u=g.message}if(f&&(h=s(f),!aut(h)))return f;if(h&&(p=cut(h),u=`Cache service responded with ${h}`),R(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!p){R(`${n} - Error is not retryable`);break}yield lut(c),d++}throw Error(`${n} failed: ${u}`)})}o(Dye,"retry");function Pw(t,e){return OR(this,arguments,void 0,function*(r,n,i=o_,s=a_){return yield Dye(r,n,a=>a.statusCode,i,s,a=>{if(a instanceof zc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Pw,"retryTypedResponse");function ny(t,e){return OR(this,arguments,void 0,function*(r,n,i=o_,s=a_){return yield Dye(r,n,a=>a.message.statusCode,i,s)})}o(ny,"retryHttpClientResponse");var sa=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function uut(t,e){return sa(this,void 0,void 0,function*(){yield kye.promisify(Pye.pipeline)(t.message,e)})}o(uut,"pipeResponseToStream");var FR=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,R(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,i=(e/(1024*1024)/(n/1e3)).toFixed(1);O(`Received ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function MR(t,e){return sa(this,void 0,void 0,function*(){let r=El.createWriteStream(e),n=new Mu("actions/cache"),i=yield ny("downloadCache",()=>sa(this,void 0,void 0,function*(){return n.get(t)}));i.message.socket.setTimeout(S3,()=>{i.message.destroy(),R(`Aborting download, socket timed out after ${S3} ms`)}),yield uut(i,r);let s=i.message.headers["content-length"];if(s){let a=parseInt(s),c=Vc(e);if(c!==a)throw new Error(`Incomplete download. Expected file size: ${a}, actual file size: ${c}`)}else R("Unable to validate download, no Content-Length header")})}o(MR,"downloadCacheHttpClient");function Oye(t,e,r){return sa(this,void 0,void 0,function*(){var n;let i=yield El.promises.open(e,"w"),s=new Mu("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let c=(yield ny("downloadCacheMetadata",()=>sa(this,void 0,void 0,function*(){return yield s.request("HEAD",t,null,{})}))).message.headers["content-length"];if(c==null)throw new Error("Content-Length not found on blob response");let l=parseInt(c);if(Number.isNaN(l))throw new Error(`Could not interpret Content-Length: ${l}`);let u=[],d=4*1024*1024;for(let C=0;C<l;C+=d){let w=Math.min(d,l-C);u.push({offset:C,promiseGetter:o(()=>sa(this,void 0,void 0,function*(){return yield dut(s,t,C,w)}),"promiseGetter")})}u.reverse();let f=0,h=0,p=new FR(l);p.startDisplayTimer();let g=p.onProgress(),A=[],E,y=o(()=>sa(this,void 0,void 0,function*(){let C=yield Promise.race(Object.values(A));yield i.write(C.buffer,0,C.count,C.offset),f--,delete A[C.offset],h+=C.count,g({loadedBytes:h})}),"waitAndWrite");for(;E=u.pop();)A[E.offset]=E.promiseGetter(),f++,f>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)&&(yield y());for(;f>0;)yield y()}finally{s.dispose(),yield i.close()}})}o(Oye,"downloadCacheHttpClientConcurrent");function dut(t,e,r,n){return sa(this,void 0,void 0,function*(){let s=0;for(;;)try{let c=yield Fye(3e4,fut(t,e,r,n));if(typeof c=="string")throw new Error("downloadSegmentRetry failed due to timeout");return c}catch(a){if(s>=5)throw a;s++}})}o(dut,"downloadSegmentRetry");function fut(t,e,r,n){return sa(this,void 0,void 0,function*(){let i=yield ny("downloadCachePart",()=>sa(this,void 0,void 0,function*(){return yield t.get(e,{Range:`bytes=${r}-${r+n-1}`})}));if(!i.readBodyBuffer)throw new Error("Expected HttpClientResponse to implement readBodyBuffer");return{offset:r,count:n,buffer:yield i.readBodyBuffer()}})}o(fut,"downloadSegment");function Lye(t,e,r){return sa(this,void 0,void 0,function*(){var n;let i=new ty(t,void 0,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}}),a=(n=(yield i.getProperties()).contentLength)!==null&&n!==void 0?n:-1;if(a<0)R("Unable to determine content length, downloading file with http-client..."),yield MR(t,e);else{let c=Math.min(134217728,Qye.constants.MAX_LENGTH),l=new FR(a),u=El.openSync(e,"w");try{l.startDisplayTimer();let d=new AbortController,f=d.signal;for(;!l.isDone();){let h=l.segmentOffset+l.segmentSize,p=Math.min(c,a-h);l.nextSegment(p);let g=yield Fye(r.segmentTimeoutInMs||36e5,i.downloadToBuffer(h,p,{abortSignal:f,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)&&El.writeFileSync(u,g)}}finally{l.stopDisplayTimer(),El.closeSync(u)}}})}o(Lye,"downloadCacheStorageSDK");var Fye=o((t,e)=>sa(void 0,void 0,void 0,function*(){let r,n=new Promise(i=>{r=setTimeout(()=>i("timeout"),t)});return Promise.race([e,n]).then(i=>(clearTimeout(r),i))}),"promiseWithTimeout");function rz(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),R(`Use Azure SDK: ${e.useAzureSdk}`),R(`Upload concurrency: ${e.uploadConcurrency}`),R(`Upload chunk size: ${e.uploadChunkSize}`),e}o(rz,"getUploadOptions");function Mye(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),R(`Use Azure SDK: ${e.useAzureSdk}`),R(`Download concurrency: ${e.downloadConcurrency}`),R(`Request timeout (ms): ${e.timeoutInMs}`),R(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),R(`Segment download timeout (ms): ${e.segmentTimeoutInMs}`),R(`Lookup only: ${e.lookupOnly}`),e}o(Mye,"getDownloadOptions");function nz(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),i=e.endsWith(".LOCALHOST");return!r&&!n&&!i}o(nz,"isGhes");function kw(){return nz()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}o(kw,"getCacheServiceVersion");var Uye=["none","read","write","write-only"];function iz(){return(process.env.ACTIONS_CACHE_MODE||"").trim().toLowerCase()}o(iz,"getCacheMode");function qye(t){return Uye.includes(t)?t==="read"||t==="write":!0}o(qye,"isCacheReadable");function Gye(t){return Uye.includes(t)?t==="write"||t==="write-only":!0}o(Gye,"isCacheWritable");function UR(){let t=kw();switch(t){case"v1":return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||"";case"v2":return process.env.ACTIONS_RESULTS_URL||"";default:throw new Error(`Unsupported cache service version: ${t}`)}}o(UR,"getCacheServiceURL");var $ye=N(zye(),1);function qR(){return`@actions/cache-${$ye.version}`}o(qR,"getUserAgentString");var Ds=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Ow(t){let e=UR();if(!e)throw new Error("Cache Service Url not found, unable to restore cache.");let r=`${e}_apis/artifactcache/${t}`;return R(`Resource Url: ${r}`),r}o(Ow,"getCacheApiUrl");function Aut(t,e){return`${t};api-version=${e}`}o(Aut,"createAcceptHeader");function mut(){return{headers:{Accept:Aut("application/json","6.0-preview.1")}}}o(mut,"getRequestOptions");function sz(){let t=process.env.ACTIONS_RUNTIME_TOKEN||"",e=new Ng(t);return new Mu(qR(),[e],mut())}o(sz,"createHttpClient");function Jye(t,e,r){return Ds(this,void 0,void 0,function*(){var n;let i=sz(),s=vg(e,r?.compressionMethod,r?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(t.join(","))}&version=${s}`,c=yield Pw("getCacheEntry",()=>Ds(this,void 0,void 0,function*(){return i.getJson(Ow(a))}));if(c.statusCode===204)return op()&&(yield gut(t[0],i,s)),null;if(!LR(c.statusCode)){let d=(n=c.error)===null||n===void 0?void 0:n.message;throw d?.includes(c_)?new Error(d):new Error(`Cache service responded with ${c.statusCode}`)}let l=c.result,u=l?.archiveLocation;if(!u)throw new Error("Cache not found.");return Fc(u),R("Cache Result:"),R(JSON.stringify(l)),l})}o(Jye,"getCacheEntry");function gut(t,e,r){return Ds(this,void 0,void 0,function*(){let n=`caches?key=${encodeURIComponent(t)}`,i=yield Pw("listCache",()=>Ds(this,void 0,void 0,function*(){return e.getJson(Ow(n))}));if(i.statusCode===200){let s=i.result,a=s?.totalCount;if(a&&a>0){R(`No matching cache found for cache key '${t}', version '${r} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key
|
|
Other caches with similar key:`);for(let c of s?.artifactCaches||[])R(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(gut,"printCachesListForDiagnostics");function oz(t,e,r){return Ds(this,void 0,void 0,function*(){let n=new Wye.URL(t),i=Mye(r);n.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield Lye(t,e,i):i.concurrentBlobDownloads?yield Oye(t,e,i):yield MR(t,e):yield MR(t,e)})}o(oz,"downloadCache");function Yye(t,e,r){return Ds(this,void 0,void 0,function*(){let n=sz(),i=vg(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:i,cacheSize:r?.cacheSize};return yield Pw("reserveCache",()=>Ds(this,void 0,void 0,function*(){return n.postJson(Ow("caches"),s)}))})}o(Yye,"reserveCache");function jye(t,e){return`bytes ${t}-${e}/*`}o(jye,"getContentRange");function yut(t,e,r,n,i){return Ds(this,void 0,void 0,function*(){R(`Uploading chunk of size ${i-n+1} bytes at offset ${n} with content range: ${jye(n,i)}`);let s={"Content-Type":"application/octet-stream","Content-Range":jye(n,i)},a=yield ny(`uploadChunk (start: ${n}, end: ${i})`,()=>Ds(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!LR(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(yut,"uploadChunk");function Eut(t,e,r,n){return Ds(this,void 0,void 0,function*(){let i=Vc(r),s=Ow(`caches/${e.toString()}`),a=iy.openSync(r,"r"),c=rz(n),l=N3("uploadConcurrency",c.uploadConcurrency),u=N3("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];R("Awaiting all uploads");let f=0;try{yield Promise.all(d.map(()=>Ds(this,void 0,void 0,function*(){for(;f<i;){let h=Math.min(i-f,u),p=f,g=f+h-1;f+=u,yield yut(t,s,()=>iy.createReadStream(r,{fd:a,start:p,end:g,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),p,g)}})))}finally{iy.closeSync(a)}})}o(Eut,"uploadFile");function Cut(t,e,r){return Ds(this,void 0,void 0,function*(){let n={size:r};return yield Pw("commitCache",()=>Ds(this,void 0,void 0,function*(){return t.postJson(Ow(`caches/${e.toString()}`),n)}))})}o(Cut,"commitCache");function az(t,e,r,n){return Ds(this,void 0,void 0,function*(){if(rz(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Rye(r,e,n)}else{let s=sz();R("Upload cache"),yield Eut(s,t,e,n),R("Commiting cache");let a=Vc(e);O(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield Cut(s,t,a);if(!LR(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);O("Cache saved successfully")}})}o(az,"saveCache");var VEe=N(LEe(),1),nn=N(rn(),1),Eo=N(rn(),1),Hp=N(rn(),1),Vp=N(rn(),1),zp=N(rn(),1);var t$=N(rn(),1),r$=N(rn(),1),qEe=N(rn(),1),GEe=N(rn(),1),HEe=N(rn(),1);var Xz=N(rn(),1),Zz=N(rn(),1),FEe=N(rn(),1),MEe=N(rn(),1),UEe=N(rn(),1);var e$=class extends UEe.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,MEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,FEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Zz.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Xz.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Xz.WireType.Varint).int64(e.permission);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Zz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},x2=new e$;var n$=class extends HEe.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>x2,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,GEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,qEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(x2.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?r$.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,t$.WireType.Varint).int64(e.repositoryId);for(let s=0;s<e.scope.length;s++)x2.internalBinaryWrite(e.scope[s],r.tag(2,t$.WireType.LengthDelimited).fork(),n).join();let i=n.writeUnknownFields;return i!==!1&&(i==!0?r$.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},Sl=new n$;var i$=class extends zp.MessageType{static{o(this,"CreateCacheEntryRequest$Type")}constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:o(()=>Sl,"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,Vp.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Hp.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.metadata=Sl.internalBinaryRead(e,e.uint32(),n,s.metadata);break;case 2:s.key=e.string();break;case 3:s.version=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Eo.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.metadata&&Sl.internalBinaryWrite(e.metadata,r.tag(1,nn.WireType.LengthDelimited).fork(),n).join(),e.key!==""&&r.tag(2,nn.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,nn.WireType.LengthDelimited).string(e.version);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Eo.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},u$=new i$,s$=class extends zp.MessageType{static{o(this,"CreateCacheEntryResponse$Type")}constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:"",message:""};return globalThis.Object.defineProperty(r,Vp.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Hp.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.ok=e.bool();break;case 2:s.signedUploadUrl=e.string();break;case 3:s.message=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Eo.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,nn.WireType.Varint).bool(e.ok),e.signedUploadUrl!==""&&r.tag(2,nn.WireType.LengthDelimited).string(e.signedUploadUrl),e.message!==""&&r.tag(3,nn.WireType.LengthDelimited).string(e.message);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Eo.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},d$=new s$,o$=class extends zp.MessageType{static{o(this,"FinalizeCacheEntryUploadRequest$Type")}constructor(){super("github.actions.results.api.v1.FinalizeCacheEntryUploadRequest",[{no:1,name:"metadata",kind:"message",T:o(()=>Sl,"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,Vp.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Hp.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.metadata=Sl.internalBinaryRead(e,e.uint32(),n,s.metadata);break;case 2:s.key=e.string();break;case 3:s.sizeBytes=e.int64().toString();break;case 4:s.version=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Eo.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.metadata&&Sl.internalBinaryWrite(e.metadata,r.tag(1,nn.WireType.LengthDelimited).fork(),n).join(),e.key!==""&&r.tag(2,nn.WireType.LengthDelimited).string(e.key),e.sizeBytes!=="0"&&r.tag(3,nn.WireType.Varint).int64(e.sizeBytes),e.version!==""&&r.tag(4,nn.WireType.LengthDelimited).string(e.version);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Eo.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},f$=new o$,a$=class extends zp.MessageType{static{o(this,"FinalizeCacheEntryUploadResponse$Type")}constructor(){super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"entry_id",kind:"scalar",T:3},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,entryId:"0",message:""};return globalThis.Object.defineProperty(r,Vp.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Hp.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.ok=e.bool();break;case 2:s.entryId=e.int64().toString();break;case 3:s.message=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Eo.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,nn.WireType.Varint).bool(e.ok),e.entryId!=="0"&&r.tag(2,nn.WireType.Varint).int64(e.entryId),e.message!==""&&r.tag(3,nn.WireType.LengthDelimited).string(e.message);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Eo.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},h$=new a$,c$=class extends zp.MessageType{static{o(this,"GetCacheEntryDownloadURLRequest$Type")}constructor(){super("github.actions.results.api.v1.GetCacheEntryDownloadURLRequest",[{no:1,name:"metadata",kind:"message",T:o(()=>Sl,"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,Vp.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Hp.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.metadata=Sl.internalBinaryRead(e,e.uint32(),n,s.metadata);break;case 2:s.key=e.string();break;case 3:s.restoreKeys.push(e.string());break;case 4:s.version=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Eo.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.metadata&&Sl.internalBinaryWrite(e.metadata,r.tag(1,nn.WireType.LengthDelimited).fork(),n).join(),e.key!==""&&r.tag(2,nn.WireType.LengthDelimited).string(e.key);for(let s=0;s<e.restoreKeys.length;s++)r.tag(3,nn.WireType.LengthDelimited).string(e.restoreKeys[s]);e.version!==""&&r.tag(4,nn.WireType.LengthDelimited).string(e.version);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Eo.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},p$=new c$,l$=class extends zp.MessageType{static{o(this,"GetCacheEntryDownloadURLResponse$Type")}constructor(){super("github.actions.results.api.v1.GetCacheEntryDownloadURLResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_download_url",kind:"scalar",T:9},{no:3,name:"matched_key",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedDownloadUrl:"",matchedKey:""};return globalThis.Object.defineProperty(r,Vp.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Hp.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.ok=e.bool();break;case 2:s.signedDownloadUrl=e.string();break;case 3:s.matchedKey=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Eo.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,nn.WireType.Varint).bool(e.ok),e.signedDownloadUrl!==""&&r.tag(2,nn.WireType.LengthDelimited).string(e.signedDownloadUrl),e.matchedKey!==""&&r.tag(3,nn.WireType.LengthDelimited).string(e.matchedKey);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Eo.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},A$=new l$,SCr=new VEe.ServiceType("github.actions.results.api.v1.CacheService",[{name:"CreateCacheEntry",options:{},I:u$,O:d$},{name:"FinalizeCacheEntryUpload",options:{},I:f$,O:h$},{name:"GetCacheEntryDownloadURL",options:{},I:p$,O:A$}]);var v2=class{static{o(this,"CacheServiceClientJSON")}constructor(e){this.rpc=e,this.CreateCacheEntry.bind(this),this.FinalizeCacheEntryUpload.bind(this),this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){let r=u$.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/json",r).then(i=>d$.fromJson(i,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let r=f$.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",r).then(i=>h$.fromJson(i,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let r=p$.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",r).then(i=>A$.fromJson(i,{ignoreUnknownFields:!0}))}};function zEe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Fc(r),Fc(encodeURIComponent(r)))}catch(e){R(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(zEe,"maskSigUrl");function $Ee(t){if(typeof t!="object"||t===null){R("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&zEe(t.signed_upload_url),"signed_download_url"in t&&typeof t.signed_download_url=="string"&&zEe(t.signed_download_url)}o($Ee,"maskSecretUrls");var N2=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},m$=class{static{o(this,"CacheServiceClient")}constructor(e,r,n,i){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=ghe();this.baseUrl=UR(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new Mu(e,[new Ng(s)])}request(e,r,n,i){return N2(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;R(`[Request] ${r} ${s}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>N2(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(i),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return N2(this,void 0,void 0,function*(){let r=0,n="",i="";for(;r<this.maxAttempts;){let s=!1;try{let c=yield e(),l=c.message.statusCode;i=yield c.readBody(),R(`[Response] - ${c.message.statusCode}`),R(`Headers: ${JSON.stringify(c.message.headers,null,2)}`);let u=JSON.parse(i);if($Ee(u),R(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(l))return{response:c,body:u};if(s=this.isRetryableHttpStatusCode(l),n=`Failed request: (${l}) ${c.message.statusMessage}`,u.msg){if(Fp.isUsageErrorMessage(u.msg))throw new Fp;n=`${n}: ${u.msg}`}if(l===Pr.TooManyRequests){let d=c.message.headers["retry-after"];if(d){let f=parseInt(d,10);!isNaN(f)&&f>0&&ut(`You've hit a rate limit, your rate limit will reset in ${f} seconds`)}throw new Qw(`Rate limited: ${n}`)}}catch(c){if(c instanceof SyntaxError&&R(`Raw Body: ${i}`),c instanceof Fp||c instanceof Qw)throw c;if(ry.isNetworkErrorCode(c?.code))throw new ry(c?.code);s=!0,n=c.message}if(!s)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(r);O(`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?[Pr.BadGateway,Pr.GatewayTimeout,Pr.InternalServerError,Pr.ServiceUnavailable].includes(e):!1}sleep(e){return N2(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 g$(t){let e=new m$(qR(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new v2(e)}o(g$,"internalCacheTwirpClient");var _2=require("fs"),ks=N(require("path"),1);var Bl=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},_f=process.platform==="win32";function Tft(){return Bl(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield mhe(),e=fhe;if(t)return{path:t,type:ao.GNU};if((0,_2.existsSync)(e))return{path:e,type:ao.BSD};break}case"darwin":{let t=yield ci("gtar",!1);return t?{path:t,type:ao.GNU}:{path:yield ci("tar",!0),type:ao.BSD}}default:break}return{path:yield ci("tar",!0),type:ao.GNU}})}o(Tft,"getTarPath");function Rft(t,e,r){return Bl(this,arguments,void 0,function*(n,i,s,a=""){let c=[`"${n.path}"`],l=ff(i),u="cache.tar",d=WEe(),f=n.type===ao.BSD&&i!==Ji.Gzip&&_f;switch(s){case"create":c.push("--posix","-cf",f?u:l.replace(new RegExp(`\\${ks.sep}`,"g"),"/"),"--exclude",f?u:l.replace(new RegExp(`\\${ks.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${ks.sep}`,"g"),"/"),"--files-from",x3);break;case"extract":c.push("-xf",f?u:a.replace(new RegExp(`\\${ks.sep}`,"g"),"/"),"-P","-C",f?y$(d):d.replace(new RegExp(`\\${ks.sep}`,"g"),"/"));break;case"list":c.push("-tf",f?u:a.replace(new RegExp(`\\${ks.sep}`,"g"),"/"),"-P");break}if(n.type===ao.GNU)switch(process.platform){case"win32":c.push("--force-local");break;case"darwin":c.push("--delay-directory-restore");break}return c})}o(Rft,"getTarArgs");function jEe(t,e){return Bl(this,arguments,void 0,function*(r,n,i=""){let s,a=yield Tft(),c=yield Rft(a,r,n,i),l=n!=="create"?yield Dft(a,r,i):yield Qft(a,r),u=a.type===ao.BSD&&r!==Ji.Gzip&&_f;return u&&n!=="create"?s=[[...l].join(" "),[...c].join(" ")]:s=[[...c].join(" "),[...l].join(" ")],{commands:u?s:[s.join(" ")],requiresTempDirectory:u&&n!=="create"}})}o(jEe,"getCommands");function WEe(){var t;return(t=process.env.GITHUB_WORKSPACE)!==null&&t!==void 0?t:process.cwd()}o(WEe,"getWorkingDirectory");function y$(t){return`"${ks.resolve(t).replace(new RegExp(`\\${ks.sep}`,"g"),"/")}"`}o(y$,"quoteAbsolutePath");function Dft(t,e,r){return Bl(this,void 0,void 0,function*(){let n=t.type===ao.BSD&&e!==Ji.Gzip&&_f;switch(e){case Ji.Zstd:return n?["zstd -d --long=30 --force -o",D0,y$(r)]:["--use-compress-program",_f?'"zstd -d --long=30"':"unzstd --long=30"];case Ji.ZstdWithoutLong:return n?["zstd -d --force -o",D0,y$(r)]:["--use-compress-program",_f?'"zstd -d"':"unzstd"];default:return["-z"]}})}o(Dft,"getDecompressionProgram");function Qft(t,e){return Bl(this,void 0,void 0,function*(){let r=ff(e),n=t.type===ao.BSD&&e!==Ji.Gzip&&_f;switch(e){case Ji.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${ks.sep}`,"g"),"/"),D0]:["--use-compress-program",_f?'"zstd -T0 --long=30"':"zstdmt --long=30"];case Ji.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${ks.sep}`,"g"),"/"),D0]:["--use-compress-program",_f?'"zstd -T0"':"zstdmt"];default:return["-z"]}})}o(Qft,"getCompressionProgram");function JEe(t,e){return Bl(this,void 0,void 0,function*(){for(let r of t)try{yield oo(r,void 0,{cwd:e,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(n){throw new Error(`${r.split(" ")[0]} failed with error: ${n?.message}`)}})}o(JEe,"execCommands");function YEe(t,e,r){return Bl(this,void 0,void 0,function*(){let{commands:n,requiresTempDirectory:i}=yield jEe(e,r,t),s=i?yield fp():void 0;try{yield JEe(n,s)}finally{if(s)try{yield fg(s)}catch(a){R(`Failed to delete temporary tar directory: ${a}`)}}})}o(YEe,"execReadCommands");function Kw(t,e){return Bl(this,void 0,void 0,function*(){yield YEe(t,e,"list")})}o(Kw,"listTar");function E$(t,e){return Bl(this,void 0,void 0,function*(){let r=WEe();yield Pu(r),yield YEe(t,e,"extract")})}o(E$,"extractTar");function C$(t,e,r){return Bl(this,void 0,void 0,function*(){(0,_2.writeFileSync)(ks.join(t,x3),e.join(`
|
|
`));let{commands:n}=yield jEe(r,"create");yield JEe(n,t)})}o(C$,"createTar");var Cy=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},lc=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},$p=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},b$="cache write denied:",T2=class t extends $p{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},KEe=c_,R2=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},D2=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function XEe(t){if(!t||t.length===0)throw new lc("Path Validation Error: At least one directory or file path is required")}o(XEe,"checkPaths");function w$(t){if(t.length>512)throw new lc(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new lc(`Key Validation Error: ${t} cannot contain commas.`)}o(w$,"checkKey");function I$(){return kw()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(I$,"isFeatureAvailable");function ZEe(t,e,r,n){return Cy(this,arguments,void 0,function*(i,s,a,c,l=!1){let u=kw();R(`Cache service version: ${u}`),XEe(i);let d=iz();if(!qye(d)){O(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),R(`Skipped restore for paths [${i.join(", ")}] with primary key '${s}'.`);return}return u==="v2"?yield kft(i,s,a,c,l):yield Pft(i,s,a,c,l)})}o(ZEe,"restoreCache");function Pft(t,e,r,n){return Cy(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;a=a||[];let d=[s,...a];if(R("Resolved Keys:"),R(JSON.stringify(d)),d.length>10)throw new lc("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)w$(p);let f=yield P0(),h="";try{let p;try{p=yield Jye(d,i,{compressionMethod:f,enableCrossOsArchive:l})}catch(A){let E=(u=A?.message)!==null&&u!==void 0?u:"";throw E.includes(KEe)?new R2(E):A}if(!p?.archiveLocation)return;if(c?.lookupOnly)return O("Lookup only - skipping download"),p.cacheKey;h=Xw.join(yield fp(),ff(f)),R(`Archive Path: ${h}`),yield oz(p.archiveLocation,h,c),op()&&(yield Kw(h,f));let g=Vc(h);return O(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),yield E$(h,f),O("Cache restored successfully"),p.cacheKey}catch(p){let g=p;if(g.name===lc.name)throw p;g instanceof zc&&typeof g.statusCode=="number"&&g.statusCode>=500?mg(`Failed to restore: ${p.message}`):ut(`Failed to restore: ${p.message}`)}finally{try{yield Q0(h)}catch(p){R(`Failed to delete archive: ${p}`)}}})}o(Pft,"restoreCacheV1");function kft(t,e,r,n){return Cy(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[s,...a];if(R("Resolved Keys:"),R(JSON.stringify(d)),d.length>10)throw new lc("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of d)w$(h);let f="";try{let h=g$(),p=yield P0(),g={key:s,restoreKeys:a,version:vg(i,p,l)},A;try{A=yield h.GetCacheEntryDownloadURL(g)}catch(C){let w=(u=C?.message)!==null&&u!==void 0?u:"";throw w.includes(KEe)?new R2(w):C}if(!A.ok){R(`Cache not found for version ${g.version} of keys: ${d.join(", ")}`);return}if(g.key!==A.matchedKey?O(`Cache hit for restore-key: ${A.matchedKey}`):O(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return O("Lookup only - skipping download"),A.matchedKey;f=Xw.join(yield fp(),ff(p)),R(`Archive path: ${f}`),R(`Starting download of archive to: ${f}`),yield oz(A.signedDownloadUrl,f,c);let y=Vc(f);return O(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),op()&&(yield Kw(f,p)),yield E$(f,p),O("Cache restored successfully"),A.matchedKey}catch(h){let p=h;if(p.name===lc.name)throw h;p instanceof zc&&typeof p.statusCode=="number"&&p.statusCode>=500?mg(`Failed to restore: ${h.message}`):ut(`Failed to restore: ${h.message}`)}finally{try{f&&(yield Q0(f))}catch(h){R(`Failed to delete archive: ${h}`)}}})}o(kft,"restoreCacheV2");function S$(t,e,r){return Cy(this,arguments,void 0,function*(n,i,s,a=!1){let c=kw();R(`Cache service version: ${c}`),XEe(n),w$(i);let l=iz();return Gye(l)?c==="v2"?yield Lft(n,i,s,a):yield Oft(n,i,s,a):(O(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),R(`Skipped save for paths [${n.join(", ")}] with key '${i}'.`),-1)})}o(S$,"saveCache");function Oft(t,e,r){return Cy(this,arguments,void 0,function*(n,i,s,a=!1){var c,l,u,d,f,h;let p=yield P0(),g=-1,A=yield v3(n);if(R("Cache Paths:"),R(`${JSON.stringify(A)}`),A.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield fp(),y=Xw.join(E,ff(p));R(`Archive Path: ${y}`);try{yield C$(E,A,p),op()&&(yield Kw(y,p));let C=10*1024*1024*1024,w=Vc(y);if(R(`File Size: ${w}`),w>C&&!nz())throw new Error(`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the 10GB limit, not saving cache.`);R("Reserving Cache");let B=yield Yye(i,n,{compressionMethod:p,enableCrossOsArchive:a,cacheSize:w});if(!((c=B?.result)===null||c===void 0)&&c.cacheId)g=(l=B?.result)===null||l===void 0?void 0:l.cacheId;else{if(B?.statusCode===400)throw new Error((d=(u=B?.error)===null||u===void 0?void 0:u.message)!==null&&d!==void 0?d:`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the data cap limit, not saving cache.`);{let Q=(f=B?.error)===null||f===void 0?void 0:f.message;throw Q?.startsWith(b$)?new T2(`Unable to reserve cache with key ${i}. More details: ${Q}`):new $p(`Unable to reserve cache with key ${i}, another job may be creating this cache. More details: ${(h=B?.error)===null||h===void 0?void 0:h.message}`)}}R(`Saving Cache (ID: ${g})`),yield az(g,y,"",s)}catch(C){let w=C;if(w.name===lc.name)throw C;w.name===$p.name?O(`Failed to save: ${w.message}`):w instanceof zc&&typeof w.statusCode=="number"&&w.statusCode>=500?mg(`Failed to save: ${w.message}`):ut(`Failed to save: ${w.message}`)}finally{try{yield Q0(y)}catch(C){R(`Failed to delete archive: ${C}`)}}return g})}o(Oft,"saveCacheV1");function Lft(t,e,r){return Cy(this,arguments,void 0,function*(n,i,s,a=!1){var c;s=Object.assign(Object.assign({},s),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let l=yield P0(),u=g$(),d=-1,f=yield v3(n);if(R("Cache Paths:"),R(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let h=yield fp(),p=Xw.join(h,ff(l));R(`Archive Path: ${p}`);try{yield C$(h,f,l),op()&&(yield Kw(p,l));let g=Vc(p);R(`File Size: ${g}`),s.archiveSizeBytes=g,R("Reserving Cache");let A=vg(n,l,a),E={key:i,version:A},y;try{let B=yield u.CreateCacheEntry(E);if(!B.ok)throw B.message&&!B.message.startsWith(b$)&&ut(`Cache reservation failed: ${B.message}`),new Error(B.message||"Response was not ok");y=B.signedUploadUrl}catch(B){R(`Failed to reserve cache: ${B}`);let Q=(c=B?.message)!==null&&c!==void 0?c:"";throw Q.startsWith(b$)?new T2(`Unable to reserve cache with key ${i}. More details: ${Q}`):new $p(`Unable to reserve cache with key ${i}, another job may be creating this cache.`)}R(`Attempting to upload cache located at: ${p}`),yield az(d,p,y,s);let C={key:i,version:A,sizeBytes:`${g}`},w=yield u.FinalizeCacheEntryUpload(C);if(R(`FinalizeCacheEntryUploadResponse: ${w.ok}`),!w.ok)throw w.message?new D2(w.message):new Error(`Unable to finalize cache with key ${i}, another job may be finalizing this cache.`);d=parseInt(w.entryId)}catch(g){let A=g;if(A.name===lc.name)throw g;A.name===$p.name?O(`Failed to save: ${A.message}`):A.name===D2.name?ut(A.message):A instanceof zc&&typeof A.statusCode=="number"&&A.statusCode>=500?mg(`Failed to save: ${A.message}`):ut(`Failed to save: ${A.message}`)}finally{try{yield Q0(p)}catch(g){R(`Failed to delete archive: ${g}`)}}return d})}o(Lft,"saveCacheV2");var eCe=N(require("util"),1);var Yn=class t{static{o(this,"Cache")}opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e,this.ghaCacheKey=eCe.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform()),this.ghaNoCache=this.opts.ghaNoCache,this.cacheDir=x$.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform()),this.cachePath=x$.default.join(this.cacheDir,this.opts.cacheFile),Zw.default.existsSync(this.cacheDir)||Zw.default.mkdirSync(this.cacheDir,{recursive:!0})}async save(e,r){R(`Cache.save ${e}`);let n=this.copyToCache(e),i=await this.cacheToHostedToolCache();if(i&&R(`Cache.save cached to hosted tool cache ${i}`),!this.ghaNoCache&&I$())if(r)try{R(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`),await S$([this.cacheDir],this.ghaCacheKey)}catch(s){ut(`Failed to save cache: ${s}`)}else R(`Cache.save sending ${this.ghaCacheKey} to post state`),Ja(t.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}));return n}async find(){try{let e=Gue(this.opts.htcName,this.opts.htcVersion,this.platform());if(e)return O(`Restored from hosted tool cache ${e}`),this.copyToCache(`${e}/${this.opts.cacheFile}`);if(!this.ghaNoCache&&I$()){if(R("GitHub Actions cache feature available"),await ZEe([this.cacheDir],this.ghaCacheKey)){if(O(`Restored ${this.ghaCacheKey} from GitHub Actions cache`),!Zw.default.existsSync(this.cachePath))return ut(`Cache file ${this.cachePath} does not exist`),"";let r=await this.cacheToHostedToolCache();return r&&O(`Cached to hosted tool cache ${r}`),this.cachePath}}else this.ghaNoCache?O("GitHub Actions cache disabled"):O("GitHub Actions cache feature not available")}catch(e){ut(`Failed to restore cache: ${e}`)}return""}static async post(){let e=Fce(t.POST_CACHE_KEY);if(!e)return O("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{O(`Caching ${r.key} to GitHub Actions cache`),await S$([r.dir],r.key)}catch(n){ut(`Failed to save cache: ${n}`)}return r}copyToCache(e){return O(`Copying ${e} to ${this.cachePath}`),Zw.default.copyFileSync(e,this.cachePath),this.cachePath}async cacheToHostedToolCache(){try{return await que(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform())}catch(e){O(`Failed to cache to hosted tool cache: ${e}`)}return""}platform(){let e=process.config.variables.arm_version;return`${B$.default.platform()}-${B$.default.arch()}${e?"v"+e:""}`}};var tCe=!!process.env.STATE_isPost;tCe||Ja("isPost","true");async function rCe(t,e){if(tCe)e&&await e(),await Qr("Post cache",async()=>{await Yn.post()});else try{await t()}catch(r){vN(r.message)}}o(rCe,"run");var Aa=N(require("fs"),1),Fs=N(require("path"),1),ySe=require("util");var ESe=N(uc(),1);var z2=class t{static{o(this,"Git")}static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){let r=e.match(t.protoRegexp);if(r&&r.length>0){let n=r[0].toLowerCase();if(n=n.slice(0,n.lastIndexOf("://")),!(n in t.supportedProtos))throw new Error(`Invalid protocol: ${n}`);return t.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){let r=new URL(e.toString());r.hash="";let n;return(e.username||e.password)&&(n={username:e.username,password:e.password,passwordSet:e.password!==""}),{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:t.splitGitFragment(e.hash),remote:r.toString()}}static splitGitFragment(e){if(e==="")return;let[r,n]=e.slice(1).split(":");return{ref:r,subdir:n}}static parseRef(e){let r={},n;if(e.startsWith("./")||e.startsWith("../"))throw new Error("Invalid argument");if(e.startsWith("github.com/"))r.indistinguishableFromLocal=!0,n=t.fromURL(new URL("https://"+e));else if(n=t.parseURL(e),["http","git"].includes(n.scheme)&&(r.unencryptedTCP=!0),["http","https"].includes(n.scheme)&&!n.path.endsWith(".git"))throw new Error("Invalid argument");r.remote=n.remote,r.indistinguishableFromLocal&&(r.remote=r.remote.split("://")[1]),n.fragment&&(r.commit=n.fragment.ref,r.subDir=n.fragment.subdir);let i=r.remote.split("/");return r.shortName=i[i.length-1].replace(".git",""),r}};var Jj=N(require("fs"),1),mIe=N(require("os"),1),bI=N(require("path"),1),gIe=require("util"),yIe=N(Zbe(),1);var X$=N(require("fs"),1),y0e=N(require("os"),1),E0e=N(require("path"),1),C0e=N(g0e(),1);var yt=class t{static{o(this,"Context")}static _tmpDir=X$.default.mkdtempSync(E0e.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||y0e.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return X$.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return C0e.tmpNameSync(e)}};var _e=class{static{o(this,"Exec")}static async exec(e,r,n){return R(`Exec.exec: ${e} ${r?.join(" ")}`),oo(e,r,n)}static async getExecOutput(e,r,n){return R(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),pg(e,r,n)}};var Wj=N(require("crypto"),1),pIe=N(require("fs"),1),CI=N(require("path"),1),AIe=N(zj(),1);var ft=class t extends Error{static{o(this,"CsvError")}constructor(e,r,n,...i){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let s of i)for(let a in s){let c=s[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var EI=o(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var RD=o(function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let i=t[r];if(i==null||i===!1)e[r]={disabled:!0};else if(typeof i=="string"||typeof i=="number")e[r]={name:`${i}`};else if(EI(i)){if(typeof i.name!="string")throw new ft("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);e[r]=i}else throw new ft("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(i)} at position ${r}`])}return e},"normalize_columns_array");var $j=class{static{o(this,"ResizeableBuffer")}constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){let r=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let n=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.toString(e,0,this.length):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},jj=$j;var uIe=o(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,i)=>{let s=Buffer.from(String.fromCharCode(i),t.encoding);return i!==63&&s.length===1&&s[0]===63||n.push(s),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new jj(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter?t.delimiter.map(n=>n.length):[],t.delimiter_auto?1:0,t.quote!==null?t.quote.length:0,...e.map(n=>n.length)),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new jj(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?0:Math.max(...t.record_delimiter.map(n=>n.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:e,timcharFirstBytes:r}},"init_state");var dIe=o(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var ky=o(function(t){let e={};for(let n in t)e[dIe(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 ft("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 ft("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 ft("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(e.cast)}`],e);if(e.cast_date===void 0||e.cast_date===null||e.cast_date===!1||e.cast_date==="")e.cast_date=!1;else if(e.cast_date===!0)e.cast_date=function(n){let i=Date.parse(n);return isNaN(i)?n:new Date(i)};else if(typeof e.cast_date!="function")throw new ft("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=RD(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new ft("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 ft("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 ft("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 ft("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 ft("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(e.comment_no_infix)}`],e);if(e.delimiter_auto===void 0||e.delimiter_auto===null||e.delimiter_auto===!1)e.delimiter_auto=!1;else if(e.delimiter_auto===!0)e.delimiter_auto={};else if(!EI(e.delimiter_auto))throw new ft("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","delimiter_auto must be a boolean or a configuration object,",`got ${JSON.stringify(e.delimiter_auto)}`],e);if(e.delimiter_auto){if(e.delimiter_auto.preferred===void 0)e.delimiter_auto.preferred={44:1.8,9:1.8,59:1.6,32:1.6,58:1.5,46:1.4,47:1.4};else if(!EI(e.delimiter_auto.preferred))throw new ft("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","preferred must be an object,",`got ${JSON.stringify(e.delimiter_auto.preferred)}`],e);if(e.delimiter_auto.score===void 0)e.delimiter_auto.score=(n,i)=>(n.total-n.std)*(i.preferred[n.char_code]||1);else if(typeof e.delimiter_auto.score!="function")throw new ft("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","score must be a function,",`got ${JSON.stringify(e.delimiter_auto.score)}`],e);if(e.delimiter_auto.size===void 0)e.delimiter_auto.size=2048;else if(typeof e.delimiter_auto.size!="number")throw new ft("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","size must be a number,",`got ${JSON.stringify(e.delimiter_auto.size)}`],e)}let r=JSON.stringify(e.delimiter);if(e.delimiter_auto!==!1&&(e.delimiter=[]),Array.isArray(e.delimiter)||((e.delimiter===void 0||e.delimiter===null||e.delimiter===!1)&&(e.delimiter=Buffer.from(",",e.encoding)),e.delimiter=[e.delimiter]),e.delimiter=e.delimiter.map(function(n){if(typeof n=="string"&&(n=Buffer.from(n,e.encoding)),!Buffer.isBuffer(n)||n.length===0)throw new ft("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 ft("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 ft("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 ft("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 ft("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 ft("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);if(e.record_delimiter=e.record_delimiter.map(function(n,i){if(typeof n!="string"&&!Buffer.isBuffer(n))throw new ft("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${i},`,`got ${JSON.stringify(n)}`],e);if(n.length===0)throw new ft("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${i},`,`got ${JSON.stringify(n)}`],e);return typeof n=="string"&&(n=Buffer.from(n,e.encoding)),n}),typeof e.relax_column_count!="boolean")if(e.relax_column_count===void 0||e.relax_column_count===null)e.relax_column_count=!1;else throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(e.relax_column_count)}`);if(typeof e.relax_column_count_less!="boolean")if(e.relax_column_count_less===void 0||e.relax_column_count_less===null)e.relax_column_count_less=!1;else throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(e.relax_column_count_less)}`);if(typeof e.relax_column_count_more!="boolean")if(e.relax_column_count_more===void 0||e.relax_column_count_more===null)e.relax_column_count_more=!1;else throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(e.relax_column_count_more)}`);if(typeof e.relax_quotes!="boolean")if(e.relax_quotes===void 0||e.relax_quotes===null)e.relax_quotes=!1;else throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(e.relax_quotes)}`);if(typeof e.skip_empty_lines!="boolean")if(e.skip_empty_lines===void 0||e.skip_empty_lines===null)e.skip_empty_lines=!1;else throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(e.skip_empty_lines)}`);if(typeof e.skip_records_with_empty_values!="boolean")if(e.skip_records_with_empty_values===void 0||e.skip_records_with_empty_values===null)e.skip_records_with_empty_values=!1;else throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(e.skip_records_with_empty_values)}`);if(typeof e.skip_records_with_error!="boolean")if(e.skip_records_with_error===void 0||e.skip_records_with_error===null)e.skip_records_with_error=!1;else throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(e.skip_records_with_error)}`);if(e.rtrim===void 0||e.rtrim===null||e.rtrim===!1)e.rtrim=!1;else if(e.rtrim!==!0)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(e.rtrim)}`);if(e.ltrim===void 0||e.ltrim===null||e.ltrim===!1)e.ltrim=!1;else if(e.ltrim!==!0)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(e.ltrim)}`);if(e.trim===void 0||e.trim===null||e.trim===!1)e.trim=!1;else if(e.trim!==!0)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(e.trim)}`);if(e.trim===!0&&t.ltrim!==!1?e.ltrim=!0:e.ltrim!==!0&&(e.ltrim=!1),e.trim===!0&&t.rtrim!==!1?e.rtrim=!0:e.rtrim!==!0&&(e.rtrim=!1),e.to===void 0||e.to===null)e.to=-1;else if(e.to!==-1)if(typeof e.to=="string"&&/\d+/.test(e.to)&&(e.to=parseInt(e.to)),Number.isInteger(e.to)){if(e.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(t.to)}`)}else throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(t.to)}`);if(e.to_line===void 0||e.to_line===null)e.to_line=-1;else if(e.to_line!==-1)if(typeof e.to_line=="string"&&/\d+/.test(e.to_line)&&(e.to_line=parseInt(e.to_line)),Number.isInteger(e.to_line)){if(e.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(t.to_line)}`)}else throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(t.to_line)}`);return e},"normalize_options");var fIe=o(function(t,e){e||({delimiter_auto:e}=ky({delimiter_auto:!0})),typeof t=="string"&&(t=Buffer.from(t)),Buffer.isBuffer(t)&&(t=(i=>{let s=[],a=DD({delimiter:[]}),c=o(d=>s.push(d),"push"),l=o(()=>{},"close"),u=a.parse(i,!0,c,l);if(u!==void 0)throw u;return s})(t));let r=Array(127).fill().map(()=>({lines:[]}));t.map(([i],s)=>{for(let a=0,c=i.length;a<c;a++){let l=i.charCodeAt(a);r[l].lines[s]===void 0&&(r[l].lines[s]=0),r[l].lines[s]++}}),r.map((i,s)=>{i.char_code=s,i.std=aEt(i.lines),i.total=i.lines.reduce((a,c)=>a+c,0),i.preferred=!!e.preferred[s],i.score=e.score(i,e)});let n=r.reduce((i,s)=>i.score>s.score?i:s,{});return String.fromCharCode(n.char_code)},"delimiter_discover"),aEt=o(function(t){let e=t.length;if(e===0)return 0;let r=t.reduce((n,i)=>n+i)/e;return Math.sqrt(t.map(n=>Math.pow(n-r,2)).reduce((n,i)=>n+i)/e)},"std");var hIe=o(function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},"isRecordEmpty"),cEt=13,lEt=10,Oy={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},DD=o(function(t={}){let e={bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},r=ky(t);return{info:e,original_options:t,options:r,state:uIe(r),__needMoreData:o(function(n,i,s){if(s)return!1;let{encoding:a,escape:c,quote:l}=this.options,{quoting:u,needMoreDataSize:d,recordDelimiterMaxLength:f}=this.state,h=i-n-1,p=Math.max(d,f===0?Buffer.from(`\r
|
|
`,a).length:f,u?(c===null?0:c.length)+l.length:0,u?l.length+f:0);return h<p},"__needMoreData"),parse:o(function(n,i,s,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:f,ltrim:h,max_record_size:p,raw:g,relax_quotes:A,rtrim:E,skip_empty_lines:y,to:C,to_line:w}=this.options,{comment:B,escape:Q,quote:U,record_delimiter:v}=this.options,{bomSkipped:j,delimiterDiscovered:D,delimiterBufPrevious:H,rawBuffer:V,escapeIsQuote:J}=this.state;if(!D&&u){let z;if(H===void 0?z=n:H!==void 0&&n===void 0?z=H:z=Buffer.concat([H,n]),n=void 0,i||z.length>u.size)this.options.delimiter=[Buffer.from(fIe(z,this.options.delimiter_auto))],this.state.previousBuf=z,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=z;return}}let{previousBuf:oe}=this.state,ae;if(oe===void 0)if(n===void 0){a();return}else ae=n;else oe!==void 0&&n===void 0?ae=oe:ae=Buffer.concat([oe,n]);if(j===!1)if(c===!1)this.state.bomSkipped=!0;else if(ae.length<3){if(i===!1){this.state.previousBuf=ae;return}}else{for(let z in Oy)if(Oy[z].compare(ae,0,Oy[z].length)===0){let Se=Oy[z].length;this.state.bufBytesStart+=Se,ae=ae.slice(Se);let xe=ky({...this.original_options,encoding:z});for(let lt in xe)this.options[lt]=xe[lt];({comment:B,escape:Q,quote:U}=this.options);break}this.state.bomSkipped=!0}let Ce=ae.length,K;for(K=0;K<Ce&&!this.__needMoreData(K,Ce,i);K++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),w!==-1&&this.info.lines>w){this.state.stop=!0,a();return}this.state.quoting===!1&&v.length===0&&this.__autoDiscoverRecordDelimiter(ae,K)&&(v=this.options.record_delimiter);let z=ae[K];if(g===!0&&V.append(z),(z===cEt||z===lEt)&&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(ae,K,z)&&K+Q.length<Ce)if(J){if(this.__isQuote(ae,K+Q.length)){this.state.escaping=!0,K+=Q.length-1;continue}}else{this.state.escaping=!0,K+=Q.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(ae,K))if(this.state.quoting===!0){let lt=ae[K+U.length],Rt=E&&this.__isCharTrimable(ae,K+U.length),fn=B!==null&&this.__compareBytes(B,ae,K+U.length,lt),hn=this.__isDelimiter(ae,K+U.length,lt),oi=v.length===0?this.__autoDiscoverRecordDelimiter(ae,K+U.length):this.__isRecordDelimiter(lt,ae,K+U.length);if(Q!==null&&this.__isEscape(ae,K,z)&&this.__isQuote(ae,K+Q.length))K+=Q.length-1;else if(!lt||hn||oi||fn||Rt){this.state.quoting=!1,this.state.wasQuoting=!0,K+=U.length-1;continue}else if(A===!1){let hr=this.__error(new ft("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(lt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(hr!==void 0)return hr}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(U),K+=U.length-1}else if(this.state.field.length!==0){if(A===!1){let lt=this.__infoField(),Rt=Object.keys(Oy).map(hn=>Oy[hn].equals(this.state.field.toString())?hn:!1).filter(Boolean)[0],fn=this.__error(new ft("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(lt.column)} at line ${lt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Rt?`(${Rt} bom)`:void 0],this.options,lt,{field:this.state.field}));if(fn!==void 0)return fn}}else{this.state.quoting=!0,K+=U.length-1;continue}if(this.state.quoting===!1){let lt=this.__isRecordDelimiter(z,ae,K);if(lt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=f){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),K+=lt-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,K+=lt-1;continue}this.info.bytes=this.state.bufBytesStart+K;let hn=this.__onField();if(hn!==void 0)return hn;this.info.bytes=this.state.bufBytesStart+K+lt;let oi=this.__onRecord(s);if(oi!==void 0)return oi;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,K+=lt-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,ae,K,z)!==0){this.state.commenting=!0;continue}let Rt=this.__isDelimiter(ae,K,z);if(Rt!==0){this.info.bytes=this.state.bufBytesStart+K;let fn=this.__onField();if(fn!==void 0)return fn;K+=Rt-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new ft("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${p}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Se=h===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(ae,K),xe=E===!1||this.state.wasQuoting===!1;if(Se===!0&&xe===!0)this.state.field.append(z);else{if(E===!0&&!this.__isCharTrimable(ae,K))return this.__error(new ft("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()));Se===!1&&(K+=this.__isCharTrimable(ae,K)-1);continue}}if(i===!0)if(this.state.quoting===!0){let z=this.__error(new ft("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(z!==void 0)return z}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+K;let z=this.__onField();if(z!==void 0)return z;let Se=this.__onRecord(s);if(Se!==void 0)return Se}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=K,this.state.previousBuf=ae.slice(K);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},"parse"),__onRecord:o(function(n){let{columns:i,group_columns_by_name:s,encoding:a,info:c,from:l,relax_column_count:u,relax_column_count_less:d,relax_column_count_more:f,raw:h,skip_records_with_empty_values:p}=this.options,{enabled:g,record:A}=this.state;if(g===!1)return this.__resetRecord();let E=A.length;if(i===!0){if(p===!0&&hIe(A)){this.__resetRecord();return}return this.__firstLineToColumns(A)}if(i===!1&&this.info.records===0&&(this.state.expectedRecordLength=E),E!==this.state.expectedRecordLength){let y=i===!1?new ft("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${E} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A}):new ft("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${i.length},`,`got ${E} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A});if(u===!0||d===!0&&E<this.state.expectedRecordLength||f===!0&&E>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=y;else{let C=this.__error(y);if(C)return C}}if(p===!0&&hIe(A)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,l===1||this.info.records>=l){let{objname:y}=this.options;if(i!==!1){let C={};for(let w=0,B=A.length;w<B;w++)i[w]===void 0||i[w].disabled||(s===!0&&Object.hasOwn(C,i[w].name)?Array.isArray(C[i[w].name])?C[i[w].name]=C[i[w].name].concat(A[w]):C[i[w].name]=[C[i[w].name],A[w]]:Object.defineProperty(C,i[w].name,{value:A[w],enumerable:!0,writable:!0,configurable:!0}));if(h===!0||c===!0){let w=Object.assign({record:C},h===!0?{raw:this.state.rawBuffer.toString(a)}:{},c===!0?{info:this.__infoRecord()}:{}),B=this.__push(y===void 0?w:[C[y],w],n);if(B)return B}else{let w=this.__push(y===void 0?C:[C[y],C],n);if(w)return w}}else if(h===!0||c===!0){let C=Object.assign({record:A},h===!0?{raw:this.state.rawBuffer.toString(a)}:{},c===!0?{info:this.__infoRecord()}:{}),w=this.__push(y===void 0?C:[A[y],C],n);if(w)return w}else{let C=this.__push(y===void 0?A:[A[y],A],n);if(C)return C}}this.__resetRecord()},"__onRecord"),__firstLineToColumns:o(function(n){let{firstLineToHeaders:i}=this.state;try{let s=i===void 0?n:i.call(null,n);if(!Array.isArray(s))return this.__error(new ft("CSV_INVALID_COLUMN_MAPPING",["Invalid Column Mapping:","expect an array from column function,",`got ${JSON.stringify(s)}`],this.options,this.__infoField(),{headers:s}));let a=RD(s);this.state.expectedRecordLength=a.length,this.options.columns=a,this.__resetRecord();return}catch(s){return s}},"__firstLineToColumns"),__resetRecord:o(function(){this.options.raw===!0&&this.state.rawBuffer.reset(),this.state.error=void 0,this.state.record=[],this.state.record_length=0},"__resetRecord"),__onField:o(function(){let{cast:n,encoding:i,rtrim:s,max_record_size:a}=this.options,{enabled:c,wasQuoting:l}=this.state;if(c===!1)return this.__resetField();let u=this.state.field.toString(i);if(s===!0&&l===!1&&(u=u.trimRight()),n===!0){let[d,f]=this.__cast(u);if(d!==void 0)return d;u=f}this.state.record.push(u),a!==0&&typeof u=="string"&&(this.state.record_length+=u.length),this.__resetField()},"__onField"),__resetField:o(function(){this.state.field.reset(),this.state.wasQuoting=!1},"__resetField"),__push:o(function(n,i){let{on_record:s}=this.options;if(s!==void 0){let a=this.__infoRecord();try{n=s.call(null,n,a)}catch(c){return c}if(n==null)return}this.info.bytes_records+=this.info.bytes,i(n)},"__push"),__cast:o(function(n){let{columns:i,relax_column_count:s}=this.options;if(Array.isArray(i)===!0&&s&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];if(this.state.castField!==null)try{let c=this.__infoField();return[void 0,this.state.castField.call(null,n,c)]}catch(c){return[c]}if(this.__isFloat(n))return[void 0,parseFloat(n)];if(this.options.cast_date!==!1){let c=this.__infoField();return[void 0,this.options.cast_date.call(null,n,c)]}return[void 0,n]},"__cast"),__compareBytes:o(function(n,i,s,a){if(n[0]!==a)return 0;let c=n.length;for(let l=1;l<c;l++)if(n[l]!==i[s+l])return 0;return c},"__compareBytes"),__isCharTrimable:o(function(n,i){let{timchars:s,timcharFirstBytes:a}=this.state,c=n[i];if(c===void 0||a[c]===0)return 0;e:for(let l=0;l<s.length;l++){let u=s[l];for(let d=0;d<u.length;d++)if(u[d]!==n[i+d])continue e;return u.length}return 0},"__isCharTrimable"),__isDelimiter:o(function(n,i,s){let{delimiter:a,ignore_last_delimiters:c}=this.options;if(c===!0&&this.state.record.length===this.options.columns.length-1)return 0;if(c!==!1&&typeof c=="number"&&this.state.record.length===c-1)return 0;e:for(let l=0;l<a.length;l++){let u=a[l];if(u[0]===s){for(let d=1;d<u.length;d++)if(u[d]!==n[i+d])continue e;return u.length}}return 0},"__isDelimiter"),__isEscape:o(function(n,i,s){let{escape:a}=this.options;if(a===null)return!1;let c=a.length;if(a[0]===s){for(let l=0;l<c;l++)if(a[l]!==n[i+l])return!1;return!0}return!1},"__isEscape"),__isFloat:o(function(n){return n-parseFloat(n)+1>=0},"__isFloat"),__isQuote:o(function(n,i){let{quote:s}=this.options;if(s===null)return!1;let a=s.length;for(let c=0;c<a;c++)if(s[c]!==n[i+c])return!1;return!0},"__isQuote"),__isRecordDelimiter:o(function(n,i,s){let{record_delimiter:a}=this.options,c=a.length;e:for(let l=0;l<c;l++){let u=a[l],d=u.length;if(u[0]===n){for(let f=1;f<d;f++)if(u[f]!==i[s+f])continue e;return u.length}}return 0},"__isRecordDelimiter"),__autoDiscoverRecordDelimiter:o(function(n,i){let{encoding:s}=this.options,a=[Buffer.from(`\r
|
|
`,s),Buffer.from(`
|
|
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[i+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:i,raw:s,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(i):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:i,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:i?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,i=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:i===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var Io=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=DD(e),i=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=o(()=>{},"close"),a=n.parse(t,!0,i,s);if(a!==void 0)throw a;return r},"parse");var te=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(li(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let i=Io(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of i)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=li(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await ci("powershell",!0),i=e.replace(/'/g,"''"),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${i}' ${s.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return pIe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return Wj.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+n[i]}static generateRandomString(e=10){return Wj.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return AIe.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=CI.default.resolve(e);return CI.default.resolve(r).startsWith(n.endsWith(CI.default.sep)?n:`${n}${CI.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),i=Math.floor(r%3600/60),s=r%60,a=[];return n&&a.push(`${n}h`),i&&a.push(`${i}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var sn=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||bI.default.join(mIe.default.homedir(),".docker")}static configFile(){let e=bI.default.join(t.configDir,"config.json");if(Jj.default.existsSync(e))return JSON.parse(Jj.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await ci("docker",!0).then(e=>(R(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(R(`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 _e.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return _e.getExecOutput("docker",e,t.execOptions(r))}static getErrorMessage(e){let r=(0,gIe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let i=r[n].trim();if(i)return i}return"unknown error"}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){let r=["context","inspect","--format","{{.Name}}"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async contextInspect(e){let r=["context","inspect","--format=json"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout.trim())[0]})}static async printVersion(){await t.exec(["version"])}static async printInfo(){await t.exec(["info"])}static parseRepoTag(e){let r,n=e.indexOf("@"),i=e.lastIndexOf(":");if(n>=0)r=n;else if(i>=0)r=i;else return{repository:e,tag:"latest"};let s=e.slice(r+1);return s.indexOf("/")===-1?{repository:e.slice(0,r),tag:s}:{repository:e,tag:"latest"}}static async pull(e,r,n){let i=[];if(n)try{await t.contextInspect(n),i.push("--context",n)}catch{i.push("--host",n)}let s=t.parseRepoTag(e),a=s.repository.replace(/[^a-zA-Z0-9.]+/g,"--"),c=s.tag.replace(/[^a-zA-Z0-9.]+/g,"--"),l=new Yn({htcName:a,htcVersion:c,baseCacheDir:bI.default.join(t.configDir,".cache","images",a),cacheFile:"image.tar"}),u;r&&(u=await l.find(),u&&(O(`Image found from cache in ${u}`),await t.getExecOutput([...i,"load","-i",u],{ignoreReturnCode:!0}).then(f=>{f.stderr.length>0&&f.exitCode!=0&&ut(`Failed to load image from cache: ${t.getErrorMessage(f.stderr)}`)})));let d=!0;try{await t.pullWithRetry(e,i)}catch(f){if(d=!1,u)ut(`Failed to pull image, using one from cache: ${f.message}`);else throw f}if(r&&d){let f=bI.default.join(yt.tmpDir(),`${te.hash(e)}.tar`);await t.getExecOutput([...i,"save","-o",f,e],{ignoreReturnCode:!0}).then(async h=>{if(h.stderr.length>0&&h.exitCode!=0)ut(`Failed to save image: ${t.getErrorMessage(h.stderr)}`);else{let p=await l.save(f);O(`Image cached to ${p}`)}})}}static async pullWithRetry(e,r){await(0,yIe.default)(async i=>{let s=await t.getExecOutput([...r,"pull",e],{ignoreReturnCode:!0});if(s.stderr.length>0&&s.exitCode!=0){let a=t.getErrorMessage(s.stderr);if(!t.isPullTransientError(a)){i(new Error(a));return}throw new Error(a)}},{retries:4,minTimeout:1e3,factor:2,onRetry:o((i,s)=>{R(`Docker pull failed, retrying (${s}/5)...
|
|
${i}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var mSe=N(require("crypto"),1);var QD=require("fs"),EIe=require("os");var Ly=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,QD.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,QD.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let i=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${i} does not exist${EIe.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 Zj=N(SIe(),1),BIe=N(ef(),1);var wEt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function xIe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(xIe,"getAuthString");function vIe(t){return new Zj.HttpClient().getAgent(t)}o(vIe,"getProxyAgent");function IEt(t){return new Zj.HttpClient().getAgentDispatcher(t)}o(IEt,"getProxyAgentDispatcher");function NIe(t){let e=IEt(t);return o((n,i)=>wEt(this,void 0,void 0,function*(){return(0,BIe.fetch)(n,Object.assign(Object.assign({},i),{dispatcher:e}))}),"proxyFetch")}o(NIe,"getProxyFetch");function _Ie(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(_Ie,"getApiBaseUrl");function e8(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let i=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(i)?t:`${t?`${t} `:""}${i}`}return t}o(e8,"getUserAgentWithOrchestrationId");function Qf(){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})`:"<environment undetectable>"}o(Qf,"getUserAgent");function UD(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((i,s)=>UD.bind(null,t,s,i,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((i,s)=>s.hook.bind(null,i,n),r)():r(n))}o(UD,"register");function TIe(t,e,r,n){let i=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((s,a)=>Promise.resolve().then(i.bind(null,a)).then(s.bind(null,a)),"hook")),e==="after"&&(n=o((s,a)=>{let c;return Promise.resolve().then(s.bind(null,a)).then(l=>(c=l,i(c,a))).then(()=>c)},"hook")),e==="error"&&(n=o((s,a)=>Promise.resolve().then(s.bind(null,a)).catch(c=>i(c,a)),"hook")),t.registry[r].push({hook:n,orig:i})}o(TIe,"addHook");function RIe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(i=>i.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}o(RIe,"removeHook");var DIe=Function.bind,QIe=DIe.bind(DIe);function PIe(t,e,r){let n=QIe(RIe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(i=>{let s=r?[e,i,r]:[e,i];t[i]=t.api[i]=QIe(TIe,null).apply(null,s)})}o(PIe,"bindApi");function BEt(){let t=Symbol("Singular"),e={registry:{}},r=UD.bind(null,e,t);return PIe(r,e,t),r}o(BEt,"Singular");function xEt(){let t={registry:{}},e=UD.bind(null,t);return PIe(e,t),e}o(xEt,"Collection");var kIe={Singular:BEt,Collection:xEt};var vEt="0.0.0-development",NEt=`octokit-endpoint.js/${vEt} ${Qf()}`,_Et={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":NEt},mediaType:{format:""}};function TEt(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}o(TEt,"lowercaseKeys");function REt(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}o(REt,"isPlainObject");function FIe(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{REt(e[n])?n in t?r[n]=FIe(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}o(FIe,"mergeDeep");function OIe(t){for(let e in t)t[e]===void 0&&delete t[e];return t}o(OIe,"removeUndefinedProperties");function r8(t,e,r){if(typeof e=="string"){let[i,s]=e.split(" ");r=Object.assign(s?{method:i,url:s}:{url:i},r)}else r=Object.assign({},e);r.headers=TEt(r.headers),OIe(r),OIe(r.headers);let n=FIe(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(n.mediaType.previews=t.mediaType.previews.filter(i=>!n.mediaType.previews.includes(i)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(i=>i.replace(/-preview/,""))),n}o(r8,"merge");function DEt(t,e){let r=/\?/.test(t)?"&":"?",n=Object.keys(e);return n.length===0?t:t+r+n.map(i=>i==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${i}=${encodeURIComponent(e[i])}`).join("&")}o(DEt,"addQueryParameters");var QEt=/\{[^{}}]+\}/g;function PEt(t){return t.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}o(PEt,"removeNonChars");function kEt(t){let e=t.match(QEt);return e?e.map(PEt).reduce((r,n)=>r.concat(n),[]):[]}o(kEt,"extractUrlVariableNames");function LIe(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}o(LIe,"omit");function MIe(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}o(MIe,"encodeReserved");function My(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}o(My,"encodeUnreserved");function II(t,e,r){return e=t==="+"||t==="#"?MIe(e):My(e),r?My(r)+"="+e:e}o(II,"encodeValue");function Fy(t){return t!=null}o(Fy,"isDefined");function t8(t){return t===";"||t==="&"||t==="?"}o(t8,"isKeyOperator");function OEt(t,e,r,n){var i=t[r],s=[];if(Fy(i)&&i!=="")if(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||typeof i=="boolean")i=i.toString(),n&&n!=="*"&&(i=i.substring(0,parseInt(n,10))),s.push(II(e,i,t8(e)?r:""));else if(n==="*")Array.isArray(i)?i.filter(Fy).forEach(function(a){s.push(II(e,a,t8(e)?r:""))}):Object.keys(i).forEach(function(a){Fy(i[a])&&s.push(II(e,i[a],a))});else{let a=[];Array.isArray(i)?i.filter(Fy).forEach(function(c){a.push(II(e,c))}):Object.keys(i).forEach(function(c){Fy(i[c])&&(a.push(My(c)),a.push(II(e,i[c].toString())))}),t8(e)?s.push(My(r)+"="+a.join(",")):a.length!==0&&s.push(a.join(","))}else e===";"?Fy(i)&&s.push(My(r)):i===""&&(e==="&"||e==="?")?s.push(My(r)+"="):i===""&&s.push("");return s}o(OEt,"getValues");function LEt(t){return{expand:FEt.bind(null,t)}}o(LEt,"parseUrl");function FEt(t,e){var r=["+","#",".","/",";","?","&"];return t=t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(n,i,s){if(i){let c="",l=[];if(r.indexOf(i.charAt(0))!==-1&&(c=i.charAt(0),i=i.substr(1)),i.split(/,/g).forEach(function(u){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(u);l.push(OEt(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 MIe(s)}),t==="/"?t:t.replace(/\/$/,"")}o(FEt,"expand");function UIe(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),i,s=LIe(t,["method","baseUrl","url","headers","request","mediaType"]),a=kEt(r);r=LEt(r).expand(s),/^http/.test(r)||(r=t.baseUrl+r);let c=Object.keys(t).filter(d=>a.includes(d)).concat("baseUrl"),l=LIe(s,c);if(!/application\/octet-stream/i.test(n.accept)&&(t.mediaType.format&&(n.accept=n.accept.split(/,/).map(d=>d.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${t.mediaType.format}`)).join(",")),r.endsWith("/graphql")&&t.mediaType.previews?.length)){let d=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=d.concat(t.mediaType.previews).map(f=>{let h=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${f}-preview${h}`}).join(",")}return["GET","HEAD"].includes(e)?r=DEt(r,l):"data"in l?i=l.data:Object.keys(l).length&&(i=l),!n["content-type"]&&typeof i<"u"&&(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof i>"u"&&(i=""),Object.assign({method:e,url:r,headers:n},typeof i<"u"?{body:i}:null,t.request?{request:t.request}:null)}o(UIe,"parse");function MEt(t,e,r){return UIe(r8(t,e,r))}o(MEt,"endpointWithDefaults");function qIe(t,e){let r=r8(t,e),n=MEt.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:qIe.bind(null,r),merge:r8.bind(null,r),parse:UIe})}o(qIe,"withDefaults");var GIe=qIe(null,_Et);var tSe=N($Ie(),1);var UEt=/^-?\d+$/,JIe=/^-?\d+n+$/,n8=JSON.stringify,jIe=JSON.parse,qEt=/^-?\d+n$/,GEt=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,HEt=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,YIe=o((t,e,r)=>"rawJSON"in JSON?n8(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?n8(t,(a,c)=>typeof c=="string"&&!!c.match(JIe)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(GEt,"$1$2$3").replace(HEt,"$1$2$3"):n8(t,e,r),"JSONStringify"),VEt=o(()=>JSON.parse("1",(t,e,r)=>!!r&&r.source==="1"),"isContextSourceSupported"),zEt=o((t,e,r,n)=>typeof e=="string"&&e.match(qEt)?BigInt(e.slice(0,-1)):typeof e=="string"&&e.match(JIe)?e.slice(0,-1):typeof n!="function"?e:n(t,e,r),"convertMarkedBigIntsReviver"),$Et=o((t,e)=>JSON.parse(t,(r,n,i)=>{let s=typeof n=="number"&&(n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER),a=i&&UEt.test(i.source);return s&&a?BigInt(i.source):typeof e!="function"?n:e(r,n,i)}),"JSONParseV2"),KIe=Number.MAX_SAFE_INTEGER.toString(),WIe=KIe.length,jEt=/"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,WEt=/^"-?\d+n+"$/,XIe=o((t,e)=>{if(!t)return jIe(t,e);if(VEt())return $Et(t,e);let r=t.replace(jEt,(n,i,s,a)=>{let c=n[0]==='"';if(c&&!!n.match(WEt))return n.substring(0,n.length-1)+'n"';let u=s||a,d=i&&(i.length<WIe||i.length===WIe&&i<=KIe);return c||u||d?n:'"'+n+'n"'});return jIe(r,(n,i,s)=>zEt(n,i,s,e))},"JSONParse");var id=class extends Error{static{o(this,"RequestError")}name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let i=Object.assign({},n.request);n.request.headers.authorization&&(i.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=i}};var JEt="10.0.8",YEt={headers:{"user-agent":`octokit-request.js/${JEt} ${Qf()}`}};function KEt(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}o(KEt,"isPlainObject");var ZIe=o(()=>"","noop");async function eSe(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,i=KEt(t.body)||Array.isArray(t.body)?YIe(t.body):t.body,s=Object.fromEntries(Object.entries(t.headers).map(([f,h])=>[f,String(h)])),a;try{a=await e(t.url,{method:t.method,body:i,redirect:t.request?.redirect,headers:s,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(f){let h="Unknown Error";if(f instanceof Error){if(f.name==="AbortError")throw f.status=500,f;h=f.message,f.name==="TypeError"&&"cause"in f&&(f.cause instanceof Error?h=f.cause.message:typeof f.cause=="string"&&(h=f.cause))}let p=new id(h,500,{request:t});throw p.cause=f,p}let c=a.status,l=a.url,u={};for(let[f,h]of a.headers)u[f]=h;let d={url:l,status:c,headers:u,data:""};if("deprecation"in u){let f=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),h=f&&f.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${h?`. See ${h}`:""}`)}if(c===204||c===205)return d;if(t.method==="HEAD"){if(c<400)return d;throw new id(a.statusText,c,{response:d,request:t})}if(c===304)throw d.data=await i8(a),new id("Not modified",c,{response:d,request:t});if(c>=400)throw d.data=await i8(a),new id(ZEt(d.data),c,{response:d,request:t});return d.data=n?await i8(a):a.body,d}o(eSe,"fetchWrapper");async function i8(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(ZIe);let r=(0,tSe.safeParse)(e);if(XEt(r)){let n="";try{return n=await t.text(),XIe(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"?t.text().catch(ZIe):t.arrayBuffer().catch(()=>new ArrayBuffer(0))}o(i8,"getResponseData");function XEt(t){return t.type==="application/json"||t.type==="application/scim+json"}o(XEt,"isJSONResponse");function ZEt(t){if(typeof t=="string")return t;if(t instanceof ArrayBuffer)return"Unknown error";if("message"in t){let e="documentation_url"in t?` - ${t.documentation_url}`:"";return Array.isArray(t.errors)?`${t.message}: ${t.errors.map(r=>JSON.stringify(r)).join(", ")}${e}`:`${t.message}${e}`}return`Unknown error: ${JSON.stringify(t)}`}o(ZEt,"toErrorMessage");function s8(t,e){let r=t.defaults(e);return Object.assign(o(function(i,s){let a=r.merge(i,s);if(!a.request||!a.request.hook)return eSe(r.parse(a));let c=o((l,u)=>eSe(r.parse(r.merge(l,u))),"request2");return Object.assign(c,{endpoint:r,defaults:s8.bind(null,r)}),a.request.hook(c,a)},"newApi"),{endpoint:r,defaults:s8.bind(null,r)})}o(s8,"withDefaults");var BI=s8(GIe,YEt);var eCt="0.0.0-development";function tCt(t){return`Request failed due to following response errors:
|
|
`+t.errors.map(e=>` - ${e.message}`).join(`
|
|
`)}o(tCt,"_buildMessageForResponseErrors");var rCt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(tCt(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},nCt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],iCt=["query","method","url"],rSe=/\/api\/v3\/?$/;function sCt(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(iCt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(n).reduce((a,c)=>nCt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return rSe.test(s)&&(i.url=s.replace(rSe,"/api/graphql")),t(i).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new rCt(i,c,a.data)}return a.data.data})}o(sCt,"graphql");function o8(t,e){let r=t.defaults(e);return Object.assign(o((i,s)=>sCt(r,i,s),"newApi"),{defaults:o8.bind(null,r),endpoint:r.endpoint})}o(o8,"withDefaults");var _Sr=o8(BI,{headers:{"user-agent":`octokit-graphql.js/${eCt} ${Qf()}`},method:"POST",url:"/graphql"});function nSe(t){return o8(t,{method:"POST",url:"/graphql"})}o(nSe,"withCustomRequest");var a8="(?:[a-zA-Z0-9_-]+)",iSe="\\.",sSe=new RegExp(`^${a8}${iSe}${a8}${iSe}${a8}$`),oCt=sSe.test.bind(sSe);async function aCt(t){let e=oCt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(aCt,"auth");function cCt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(cCt,"withAuthorizationPrefix");async function lCt(t,e,r,n){let i=e.endpoint.merge(r,n);return i.headers.authorization=cCt(t),e(i)}o(lCt,"hook");var oSe=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(aCt.bind(null,e),{hook:lCt.bind(null,e)})},"createTokenAuth2");var c8="7.0.6";var aSe=o(()=>{},"noop"),uCt=console.warn.bind(console),dCt=console.error.bind(console);function fCt(t={}){return typeof t.debug!="function"&&(t.debug=aSe),typeof t.info!="function"&&(t.info=aSe),typeof t.warn!="function"&&(t.warn=uCt),typeof t.error!="function"&&(t.error=dCt),t}o(fCt,"createLogger");var cSe=`octokit-core.js/${c8} ${Qf()}`,Uy=class{static{o(this,"Octokit")}static VERSION=c8;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let i=n[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new kIe.Collection,n={baseUrl:BI.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} ${cSe}`:cSe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=BI.defaults(n),this.graphql=nSe(this.request).defaults(n),this.log=fCt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=oSe(e.auth);r.wrap("request",s.hook),this.auth=s}let i=this.constructor;for(let s=0;s<i.plugins.length;++s)Object.assign(this,i.plugins[s](this,e))}request;graphql;log;hook;auth};var l8="17.0.0";var hCt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteCustomImageFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],deleteCustomImageVersionFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteHostedRunnerForOrg:["DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomImageForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],getCustomImageVersionForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getHostedRunnerForOrg:["GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],getHostedRunnersGithubOwnedImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/github-owned"],getHostedRunnersLimitsForOrg:["GET /orgs/{org}/actions/hosted-runners/limits"],getHostedRunnersMachineSpecsForOrg:["GET /orgs/{org}/actions/hosted-runners/machine-sizes"],getHostedRunnersPartnerImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/partner"],getHostedRunnersPlatformsForOrg:["GET /orgs/{org}/actions/hosted-runners/platforms"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listCustomImageVersionsForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions"],listCustomImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listGithubHostedRunnersInGroupForOrg:["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"],listHostedRunnersForOrg:["GET /orgs/{org}/actions/hosted-runners"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateHostedRunnerForOrg:["PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubBillingPremiumRequestUsageReportOrg:["GET /organizations/{org}/settings/billing/premium_request/usage"],getGithubBillingPremiumRequestUsageReportUser:["GET /users/{username}/settings/billing/premium_request/usage"],getGithubBillingUsageReportOrg:["GET /organizations/{org}/settings/billing/usage"],getGithubBillingUsageReportUser:["GET /users/{username}/settings/billing/usage"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},campaigns:{createCampaign:["POST /orgs/{org}/campaigns"],deleteCampaign:["DELETE /orgs/{org}/campaigns/{campaign_number}"],getCampaignSummary:["GET /orgs/{org}/campaigns/{campaign_number}"],listOrgCampaigns:["GET /orgs/{org}/campaigns"],updateCampaign:["PATCH /orgs/{org}/campaigns/{campaign_number}"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{commitAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"],createAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],createVariantAnalysis:["POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"],deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],deleteCodeqlDatabase:["DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getAutofix:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],getVariantAnalysis:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"],getVariantAnalysisRepoTask:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codeSecurity:{attachConfiguration:["POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"],attachEnterpriseConfiguration:["POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"],createConfiguration:["POST /orgs/{org}/code-security/configurations"],createConfigurationForEnterprise:["POST /enterprises/{enterprise}/code-security/configurations"],deleteConfiguration:["DELETE /orgs/{org}/code-security/configurations/{configuration_id}"],deleteConfigurationForEnterprise:["DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],detachConfiguration:["DELETE /orgs/{org}/code-security/configurations/detach"],getConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}"],getConfigurationForRepository:["GET /repos/{owner}/{repo}/code-security-configuration"],getConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations"],getConfigurationsForOrg:["GET /orgs/{org}/code-security/configurations"],getDefaultConfigurations:["GET /orgs/{org}/code-security/configurations/defaults"],getDefaultConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/defaults"],getRepositoriesForConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"],getRepositoriesForEnterpriseConfiguration:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"],getSingleConfigurationForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],setConfigurationAsDefault:["PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"],setConfigurationAsDefaultForEnterprise:["PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"],updateConfiguration:["PATCH /orgs/{org}/code-security/configurations/{configuration_id}"],updateEnterpriseConfiguration:["PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],copilotMetricsForOrganization:["GET /orgs/{org}/copilot/metrics"],copilotMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},credentials:{revoke:["POST /credentials/revoke"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],repositoryAccessForOrg:["GET /organizations/{org}/dependabot/repository-access"],setRepositoryAccessDefaultLevel:["PUT /organizations/{org}/dependabot/repository-access/default-level"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],updateRepositoryAccessForOrg:["PATCH /organizations/{org}/dependabot/repository-access"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},enterpriseTeamMemberships:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove"],get:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],list:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships"],remove:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"]},enterpriseTeamOrganizations:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove"],delete:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignment:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignments:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations"]},enterpriseTeams:{create:["POST /enterprises/{enterprise}/teams"],delete:["DELETE /enterprises/{enterprise}/teams/{team_slug}"],get:["GET /enterprises/{enterprise}/teams/{team_slug}"],list:["GET /enterprises/{enterprise}/teams"],update:["PATCH /enterprises/{enterprise}/teams/{team_slug}"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},hostedCompute:{createNetworkConfigurationForOrg:["POST /orgs/{org}/settings/network-configurations"],deleteNetworkConfigurationFromOrg:["DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkConfigurationForOrg:["GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkSettingsForOrg:["GET /orgs/{org}/settings/network-settings/{network_settings_id}"],listNetworkConfigurationsForOrg:["GET /orgs/{org}/settings/network-configurations"],updateNetworkConfigurationForOrg:["PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addBlockedByDependency:["POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],addSubIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],getParent:["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listDependenciesBlockedBy:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],listDependenciesBlocking:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],listSubIssues:["GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeDependencyBlockedBy:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],removeSubIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"],reprioritizeSubIssue:["PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"}],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createArtifactStorageRecord:["POST /orgs/{org}/artifacts/metadata/storage-record"],createInvitation:["POST /orgs/{org}/invitations"],createIssueType:["POST /orgs/{org}/issue-types"],createWebhook:["POST /orgs/{org}/hooks"],customPropertiesForOrgsCreateOrUpdateOrganizationValues:["PATCH /organizations/{org}/org-properties/values"],customPropertiesForOrgsGetOrganizationValues:["GET /organizations/{org}/org-properties/values"],customPropertiesForReposCreateOrUpdateOrganizationDefinition:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposCreateOrUpdateOrganizationDefinitions:["PATCH /orgs/{org}/properties/schema"],customPropertiesForReposCreateOrUpdateOrganizationValues:["PATCH /orgs/{org}/properties/values"],customPropertiesForReposDeleteOrganizationDefinition:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinition:["GET /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinitions:["GET /orgs/{org}/properties/schema"],customPropertiesForReposGetOrganizationValues:["GET /orgs/{org}/properties/values"],delete:["DELETE /orgs/{org}"],deleteAttestationsBulk:["POST /orgs/{org}/attestations/delete-request"],deleteAttestationsById:["DELETE /orgs/{org}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /orgs/{org}/attestations/digest/{subject_digest}"],deleteIssueType:["DELETE /orgs/{org}/issue-types/{issue_type_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],disableSelectedRepositoryImmutableReleasesOrganization:["DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],enableSelectedRepositoryImmutableReleasesOrganization:["PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],get:["GET /orgs/{org}"],getImmutableReleasesSettings:["GET /orgs/{org}/settings/immutable-releases"],getImmutableReleasesSettingsRepositories:["GET /orgs/{org}/settings/immutable-releases/repositories"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getOrgRulesetHistory:["GET /orgs/{org}/rulesets/{ruleset_id}/history"],getOrgRulesetVersion:["GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listArtifactStorageRecords:["GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"],listAttestationRepositories:["GET /orgs/{org}/attestations/repositories"],listAttestations:["GET /orgs/{org}/attestations/{subject_digest}"],listAttestationsBulk:["POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listIssueTypes:["GET /orgs/{org}/issue-types"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers",{},{deprecated:"octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"}],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"}],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setImmutableReleasesSettings:["PUT /orgs/{org}/settings/immutable-releases"],setImmutableReleasesSettingsRepositories:["PUT /orgs/{org}/settings/immutable-releases/repositories"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateIssueType:["PUT /orgs/{org}/issue-types/{issue_type_id}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},privateRegistries:{createOrgPrivateRegistry:["POST /orgs/{org}/private-registries"],deleteOrgPrivateRegistry:["DELETE /orgs/{org}/private-registries/{secret_name}"],getOrgPrivateRegistry:["GET /orgs/{org}/private-registries/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/private-registries/public-key"],listOrgPrivateRegistries:["GET /orgs/{org}/private-registries"],updateOrgPrivateRegistry:["PATCH /orgs/{org}/private-registries/{secret_name}"]},projects:{addItemForOrg:["POST /orgs/{org}/projectsV2/{project_number}/items"],addItemForUser:["POST /users/{username}/projectsV2/{project_number}/items"],deleteItemForOrg:["DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],deleteItemForUser:["DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"],getFieldForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"],getFieldForUser:["GET /users/{username}/projectsV2/{project_number}/fields/{field_id}"],getForOrg:["GET /orgs/{org}/projectsV2/{project_number}"],getForUser:["GET /users/{username}/projectsV2/{project_number}"],getOrgItem:["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],getUserItem:["GET /users/{username}/projectsV2/{project_number}/items/{item_id}"],listFieldsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields"],listFieldsForUser:["GET /users/{username}/projectsV2/{project_number}/fields"],listForOrg:["GET /orgs/{org}/projectsV2"],listForUser:["GET /users/{username}/projectsV2"],listItemsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/items"],listItemsForUser:["GET /users/{username}/projectsV2/{project_number}/items"],updateItemForOrg:["PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],updateItemForUser:["PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkImmutableReleases:["GET /repos/{owner}/{repo}/immutable-releases"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAttestation:["POST /repos/{owner}/{repo}/attestations"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],customPropertiesForReposCreateOrUpdateRepositoryValues:["PATCH /repos/{owner}/{repo}/properties/values"],customPropertiesForReposGetRepositoryValues:["GET /repos/{owner}/{repo}/properties/values"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disableImmutableReleases:["DELETE /repos/{owner}/{repo}/immutable-releases"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enableImmutableReleases:["PUT /repos/{owner}/{repo}/immutable-releases"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesetHistory:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"],getRepoRulesetVersion:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAttestations:["GET /repos/{owner}/{repo}/attestations/{subject_digest}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{createPushProtectionBypass:["POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"],getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],getScanHistory:["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],listOrgPatternConfigs:["GET /orgs/{org}/secret-scanning/pattern-configurations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],updateOrgPatternConfigs:["PATCH /orgs/{org}/secret-scanning/pattern-configurations"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteAttestationsBulk:["POST /users/{username}/attestations/delete-request"],deleteAttestationsById:["DELETE /users/{username}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /users/{username}/attestations/digest/{subject_digest}"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getById:["GET /user/{account_id}"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listAttestations:["GET /users/{username}/attestations/{subject_digest}"],listAttestationsBulk:["POST /users/{username}/attestations/bulk-list{?per_page,before,after}"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},lSe=hCt;var tA=new Map;for(let[t,e]of Object.entries(lSe))for(let[r,n]of Object.entries(e)){let[i,s,a]=n,[c,l]=i.split(/ /),u=Object.assign({method:c,url:l},s);tA.has(t)||tA.set(t,new Map),tA.get(t).set(r,{scope:t,methodName:r,endpointDefaults:u,decorations:a})}var pCt={has({scope:t},e){return tA.get(t).has(e)},getOwnPropertyDescriptor(t,e){return{value:this.get(t,e),configurable:!0,writable:!0,enumerable:!0}},defineProperty(t,e,r){return Object.defineProperty(t.cache,e,r),!0},deleteProperty(t,e){return delete t.cache[e],!0},ownKeys({scope:t}){return[...tA.get(t).keys()]},set(t,e,r){return t.cache[e]=r},get({octokit:t,scope:e,cache:r},n){if(r[n])return r[n];let i=tA.get(e).get(n);if(!i)return;let{endpointDefaults:s,decorations:a}=i;return a?r[n]=ACt(t,e,n,s,a):r[n]=t.request.defaults(s),r[n]}};function u8(t){let e={};for(let r of tA.keys())e[r]=new Proxy({octokit:t,scope:r,cache:{}},pCt);return e}o(u8,"endpointsToMethods");function ACt(t,e,r,n,i){let s=t.request.defaults(n);function a(...c){let l=s.endpoint.merge(...c);if(i.mapToData)return l=Object.assign({},l,{data:l[i.mapToData],[i.mapToData]:void 0}),s(l);if(i.renamed){let[u,d]=i.renamed;t.log.warn(`octokit.${e}.${r}() has been renamed to octokit.${u}.${d}()`)}if(i.deprecated&&t.log.warn(i.deprecated),i.renamedParameters){let u=s.endpoint.merge(...c);for(let[d,f]of Object.entries(i.renamedParameters))d in u&&(t.log.warn(`"${d}" parameter is deprecated for "octokit.${e}.${r}()". Use "${f}" instead`),f in u||(u[f]=u[d]),delete u[d]);return s(u)}return s(...c)}return o(a,"withDecorations"),Object.assign(a,s)}o(ACt,"decorate");function xI(t){return{rest:u8(t)}}o(xI,"restEndpointMethods");xI.VERSION=l8;function mCt(t){let e=u8(t);return{...e,rest:e}}o(mCt,"legacyRestEndpointMethods");mCt.VERSION=l8;var gCt="0.0.0-development";function yCt(t){if(!t.data)return{...t,data:[]};if(!(("total_count"in t.data||"total_commits"in t.data)&&!("url"in t.data)))return t;let r=t.data.incomplete_results,n=t.data.repository_selection,i=t.data.total_count,s=t.data.total_commits;delete t.data.incomplete_results,delete t.data.repository_selection,delete t.data.total_count,delete t.data.total_commits;let a=Object.keys(t.data)[0],c=t.data[a];return t.data=c,typeof r<"u"&&(t.data.incomplete_results=r),typeof n<"u"&&(t.data.repository_selection=n),t.data.total_count=i,t.data.total_commits=s,t}o(yCt,"normalizePaginatedListResponse");function d8(t,e,r){let n=typeof e=="function"?e.endpoint(r):t.request.endpoint(e,r),i=typeof e=="function"?e:t.request,s=n.method,a=n.headers,c=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!c)return{done:!0};try{let l=await i({method:s,url:c,headers:a}),u=yCt(l);if(c=((u.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!c&&"total_commits"in u.data){let d=new URL(u.url),f=d.searchParams,h=parseInt(f.get("page")||"1",10),p=parseInt(f.get("per_page")||"250",10);h*p<u.data.total_commits&&(f.set("page",String(h+1)),c=d.toString())}return{value:u}}catch(l){if(l.status!==409)throw l;return c="",{value:{status:200,headers:{},data:[]}}}}})}}o(d8,"iterator");function uSe(t,e,r,n){return typeof r=="function"&&(n=r,r=void 0),dSe(t,[],d8(t,e,r)[Symbol.asyncIterator](),n)}o(uSe,"paginate");function dSe(t,e,r,n){return r.next().then(i=>{if(i.done)return e;let s=!1;function a(){s=!0}return o(a,"done"),e=e.concat(n?n(i.value,a):i.value.data),s?e:dSe(t,e,r,n)})}o(dSe,"gather");var tBr=Object.assign(uSe,{iterator:d8});function vI(t){return{paginate:Object.assign(uSe.bind(null,t),{iterator:d8.bind(null,t)})}}o(vI,"paginateRest");vI.VERSION=gCt;var aBr=new Ly,f8=_Ie(),ECt={baseUrl:f8,request:{agent:vIe(f8),fetch:NIe(f8)}},fSe=Uy.plugin(xI,vI).defaults(ECt);function hSe(t,e){let r=Object.assign({},e||{}),n=xIe(t,r);n&&(r.auth=n);let i=e8(r.userAgent);return i&&(r.userAgent=i),r}o(hSe,"getOctokitOptions");var is=new Ly;function VD(t,e,...r){let n=fSe.plugin(...r);return new n(hSe(t,e))}o(VD,"getOctokit");var _I=N(require("http"),1),g8=N(require("https"),1);function p8(t){let e=t.protocol==="https:";if(CCt(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 zD(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new zD(`http://${r}`)}else return}o(p8,"getProxyUrl");function CCt(t){if(!t.hostname)return!1;let e=t.hostname;if(bCt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(CCt,"checkBypass");function bCt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(bCt,"isLoopbackAddress");var zD=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Pf=N(pm(),1),pSe=N(ef(),1);var an=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Ls;(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"})(Ls||(Ls={}));var ss;(function(t){t.Accept="accept",t.ContentType="content-type"})(ss||(ss={}));var sd;(function(t){t.ApplicationJson="application/json"})(sd||(sd={}));var ICt=[Ls.MovedPermanently,Ls.ResourceMoved,Ls.SeeOther,Ls.TemporaryRedirect,Ls.PermanentRedirect],SCt=[Ls.BadGateway,Ls.ServiceUnavailable,Ls.GatewayTimeout],BCt=["OPTIONS","GET","DELETE","HEAD"],xCt=10,vCt=5,A8=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},m8=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return an(this,void 0,void 0,function*(){return new Promise(e=>an(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 an(this,void 0,void 0,function*(){return new Promise(e=>an(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 $D=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return an(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return an(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return an(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return an(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return an(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return an(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return an(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return an(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return an(this,arguments,void 0,function*(r,n={}){n[ss.Accept]=this._getExistingOrDefaultHeader(n,ss.Accept,sd.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return an(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[ss.Accept]=this._getExistingOrDefaultHeader(s,ss.Accept,sd.ApplicationJson),s[ss.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,sd.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return an(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[ss.Accept]=this._getExistingOrDefaultHeader(s,ss.Accept,sd.ApplicationJson),s[ss.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,sd.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return an(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[ss.Accept]=this._getExistingOrDefaultHeader(s,ss.Accept,sd.ApplicationJson),s[ss.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,sd.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return an(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&BCt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===Ls.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&ICt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!SCt.includes(u.message.statusCode))return u;l+=1,l<c&&(yield u.readBody(),yield this._performExponentialBackoff(l))}while(l<c);return u})}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,r){return an(this,void 0,void 0,function*(){return new Promise((n,i)=>{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new m8(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=p8(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?g8:_I;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},NI(this.requestOptions.headers),NI(e||{})):NI(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=NI(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=NI(this.requestOptions.headers)[ss.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[ss.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=p8(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||_I.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?Pf.httpsOverHttps:Pf.httpsOverHttp:l=u?Pf.httpOverHttps:Pf.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new g8.Agent(c):new _I.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new pSe.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return an(this,void 0,void 0,function*(){e=Math.min(xCt,e);let r=vCt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return an(this,void 0,void 0,function*(){return new Promise((n,i)=>an(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===Ls.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new A8(d,s);f.result=a.result,i(f)}else n(a)}))})}},NI=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var gSe=require("stream/consumers");var rA=class extends Error{static{o(this,"InvalidTokenError")}};rA.prototype.name="InvalidTokenError";function NCt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}o(NCt,"b64DecodeUnicode");function _Ct(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 NCt(e)}catch{return atob(e)}}o(_Ct,"base64UrlDecode");function jD(t,e){if(typeof t!="string")throw new rA("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 rA(`Invalid token specified: missing part #${r+1}`);let i;try{i=_Ct(n)}catch(s){throw new rA(`Invalid token specified: invalid base64 for part #${r+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new rA(`Invalid token specified: invalid json for part #${r+1} (${s.message})`)}}o(jD,"jwtDecode");var WD=[1e3,3e3],TCt=new Set(["ECONNRESET","ETIMEDOUT","EAI_AGAIN","ECONNREFUSED","EPIPE","ERR_STREAM_PREMATURE_CLOSE"]),Xe=class t{static{o(this,"GitHub")}githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN,this.octokit=VD(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({...is.repo}).then(e=>e.data)}async releases(e,r){let n;try{n=await this.releasesRaw(e,r)}catch(i){if(!this.githubToken)throw i;n=await this.releasesRaw(e,r,this.githubToken)}return n}async releasesRaw(e,r,n){let i=`https://raw.githubusercontent.com/${r.owner}/${r.repo}/${r.ref}/${r.path}`,s=n?{Authorization:`token ${n}`}:void 0,a;for(let c=0;c<=WD.length;c++)try{let u=await new $D("docker-actions-toolkit").get(i,s),d=await(0,gSe.text)(u.message),f=u.message.statusCode||500;if(f>=400){let h=new Error(`Failed to get ${e} releases from ${i} with status code ${f}: ${d}`);throw h.statusCode=f,h}return JSON.parse(d)}catch(l){if(a=l instanceof Error?l:new Error(`${l}`),!t.isRetryableReleaseError(a)||c===WD.length)throw a;O(`${a.message}. Retrying (${c+1}/${WD.length})...`),await new Promise(u=>setTimeout(u,WD[c]))}throw a||new Error(`Failed to get ${e} releases from ${i}`)}static isRetryableReleaseError(e){let r=e.statusCode;if(r)return r===408||r===429||r>=500;let n=e.code,i=e.message.toLowerCase();return n&&TCt.has(n)||i.includes("socket hang up")||i.includes("read econnreset")}static get context(){return is}static get serverURL(){return process.env.GITHUB_SERVER_URL||"https://github.com"}static get apiURL(){return process.env.GITHUB_API_URL||"https://api.github.com"}static get isGHES(){let r=new URL(t.serverURL).hostname.trimEnd().toUpperCase(),n=r==="GITHUB.COM",i=r.endsWith(".GHE.COM"),s=r.endsWith(".LOCALHOST");return!n&&!i&&!s}static get repository(){return`${is.repo.owner}/${is.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:is.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?jD(e):void 0}static printUntrusted(e){let r=mSe.randomUUID();O(`::stop-commands::${r}`);try{O(e)}finally{O(`::${r}::`)}}static async printActionsRuntimeTokenACs(){let e;try{e=t.actionsRuntimeToken}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token: ${r.message}`)}if(!e)throw new Error("ACTIONS_RUNTIME_TOKEN not set");try{JSON.parse(`${e.ac}`).forEach(r=>{let n;switch(r.Permission){case 1:n="read";break;case 2:n="write";break;case 3:n="read/write";break;default:n=`unimplemented (${r.Permission})`}O(`${r.Scope}: ${n}`)})}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token ACs: ${r.message}`)}}};var Et=class t{static{o(this,"Buildx")}_version;_versionOnce;_standalone;static containerNamePrefix="buildx_buildkit_";constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}static get configDir(){return process.env.BUILDX_CONFIG||Fs.default.join(sn.configDir,"buildx")}static get refsDir(){return Fs.default.join(t.configDir,"refs")}static get refsGroupDir(){return Fs.default.join(t.refsDir,"__group__")}static get certsDir(){return Fs.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await sn.isAvailable();return R(`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 _e.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(R(`Buildx.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(R(`Buildx.isAvailable error: ${n}`),!1));return R(`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 _e.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 _e.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse buildx version");return r[1]}static getErrorMessage(e){let r=(0,ySe.stripVTControlCharacters)(e).split(/[\r\n]/),n="";for(let i=r.length-1;i>=0;i--){let s=r[i].trim();if(s.startsWith("ERROR:"))return s.slice(6).trim()||"unknown error";n||=s}return n||"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return R("Buildx.versionSatisfies false: undefined version"),!1;let i=ESe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return R(`Buildx.versionSatisfies ${n} statisfies ${e}: ${i}`),i}static resolveCertsDriverOpts(e,r,n){let i;try{i=new URL(r)}catch{return[]}if(i.protocol!="tcp:")return[];let s=[];if(Object.keys(n).length==0)return s;let a=i.hostname;if(i.port.length>0&&(a+=`-${i.port}`),n.cacert!==void 0){let c=Fs.default.join(t.certsDir,`cacert_${a}.pem`);Aa.default.writeFileSync(c,n.cacert),s.push(`cacert=${c}`)}if(n.cert!==void 0){let c=Fs.default.join(t.certsDir,`cert_${a}.pem`);Aa.default.writeFileSync(c,n.cert),s.push(`cert=${c}`)}if(n.key!==void 0){let c=Fs.default.join(t.certsDir,`key_${a}.pem`);Aa.default.writeFileSync(c,n.key),s.push(`key=${c}`)}return e!="remote"?[]:s}static localState(e,r){let[n,i,s]=e.split("/");if(!n||!i||!s)throw new Error(`Invalid build reference: ${e}`);let a=Fs.default.join(r||t.refsDir,n,i,s);if(!Aa.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Aa.default.readFileSync(a,"utf8")))}static fixLocalState(e){let r=o(function(a){let c=a.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);if(c&&c.length==3){let l=c[1],u=c[2];return u.startsWith("https:/")&&!u.startsWith("https://")&&(u=u.replace("https:/","https://")),u.startsWith("http:/")&&!u.startsWith("http://")&&(u=u.replace("http:/","http://")),u.startsWith("ssh:/")&&!u.startsWith("ssh://")&&(u=u.replace("ssh:/","ssh://")),u.startsWith("git:/")&&!u.startsWith("git://")&&(u=u.replace("git:/","git://")),[u,l,!0]}return[a,"",!1]},"fnTrimToValidContext"),[n,i,s]=r(e.LocalPath);return s&&(e.LocalPath=n,e.DockerfilePath.indexOf(i)===0&&(e.DockerfilePath=e.DockerfilePath.substring(i.length))),e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath,e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath,e}static refs(e,r={}){let{dir:n,builderName:i,nodeName:s,since:a}=e,c=Fs.default.resolve(n);if(e.builderName&&(c=Fs.default.join(c,e.builderName)),e.nodeName&&(c=Fs.default.join(c,e.nodeName)),!Aa.default.existsSync(c))return r;let l=Aa.default.readdirSync(c);for(let u of l){let d=Fs.default.join(c,u),f=Aa.default.statSync(d);if(f.isDirectory()){let h={...e};if(i)s||(h.nodeName=u);else{if(u==="__group__")continue;h.builderName=u}t.refs(h,r)}else{if(a&&f.mtime<a)continue;let h=t.fixLocalState(JSON.parse(Aa.default.readFileSync(d,"utf8"))),p=`${i}/${s}/${u}`;r[p]=h}}return r}static async convertWarningsToGitHubAnnotations(e,r,n){if(e.length===0)return;let i=o(function(l){try{return z2.parseURL(l)}catch{}},"fnGitURL"),s=o(function(l){try{return t.localState(l,n)}catch(u){R(`Buildx.convertWarningsToGitHubAnnotations(${l}): local state not found: ${u.message}`)}},"fnLocalState"),a=[];for(let l of r){let u=s(l);if(!u)continue;if(u.DockerfilePath=="-"){R(`Buildx.convertWarningsToGitHubAnnotations(${l}): skipping stdin Dockerfile`);continue}else u.DockerfilePath==""&&(u.DockerfilePath="Dockerfile");let d=i(u.LocalPath);if(d){R(`Buildx.convertWarningsToGitHubAnnotations(${l}): git context detected: ${u.LocalPath}`);let h=d.host.replace(/:.*/,"");if(h!=="github.com"&&!h.endsWith(".ghe.com")){R(`Buildx.convertWarningsToGitHubAnnotations(${l}): not a GitHub repo: ${h}`);continue}let p=d.path.replace(/^\//,"").replace(/\.git$/,"");if(p!==Xe.repository){R(`Buildx.convertWarningsToGitHubAnnotations(${l}): not same GitHub repo: ${p} != ${Xe.repository}`);continue}a.push({path:u.DockerfilePath,remote:!0});continue}if(!Aa.default.existsSync(u.DockerfilePath)){R(`Buildx.convertWarningsToGitHubAnnotations: Dockerfile not found from localstate ref ${l}: ${u.DockerfilePath}`);continue}let f=Xe.workspace;te.isPathRelativeTo(f,u.DockerfilePath)?a.push({path:Fs.default.relative(f,u.DockerfilePath),content:Buffer.from(Aa.default.readFileSync(u.DockerfilePath,{encoding:"utf-8"}),"utf-8").toString("base64")}):R(`Buildx.convertWarningsToGitHubAnnotations: skipping Dockerfile outside of workspace: ${u.DockerfilePath}`)}if(a.length===0){R("Buildx.convertWarningsToGitHubAnnotations: no Dockerfiles found");return}R(`Buildx.convertWarningsToGitHubAnnotations: found ${a.length} Dockerfiles: ${JSON.stringify(a,null,2)}`);let c=[];for(let l of e){if(!l.detail||!l.short){R("Buildx.convertWarningsToGitHubAnnotations: skipping warning without detail or short");continue}let u=l.sourceInfo?.filename,d=l.sourceInfo?.data;if(!u||!d){R("Buildx.convertWarningsToGitHubAnnotations: skipping warning without source info filename or data");continue}let f=l.detail.map(A=>atob(A)).join(" "),h=atob(l.short).replace(/\s\(line \d+\)$/,"");l.url&&(h+=`
|
|
More info: ${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,g=!1;for(let A of a)if(A.remote||A.path.endsWith(u)&&A.content===d){c.push({title:f,message:h,file:A.path,startLine:p}),g=!0;break}g||R(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return c}};var y8=N(require("fs"),1),E8=N(require("path"),1);var JD=class t{static{o(this,"History")}buildx;constructor(e){this.buildx=e?.buildx||new Et}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let n=await this.getInspectCommand(r);return await _e.getExecOutput(n.command,n.args,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return JSON.parse(i.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",n="",i=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);i.push(h[2]),r||(r=h[0]),n||(n=h[1])}if(i.length===0)throw new Error("No build refs provided");let s=E8.default.join(yt.tmpDir(),"export");O(`exporting build record to ${s}`),y8.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await te.sleep(3);let a={};if(!e.noSummaries)for(let f of i)await this.inspect({ref:f,builder:r}).then(h=>{let p="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?p=h.Error.Message:h.Error.Name&&h.Error.Logs&&(p=`=> ${h.Error.Name}
|
|
${h.Error.Logs}`)),a[f]={name:h.Name,status:h.Status,duration:te.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:p}});let c=E8.default.join(s,`${t.exportFilename(i)}.dockerbuild`),l=["--builder",r,"--output",c,...i];await this.buildx.versionSatisfies(">=0.24.0")&&l.push("--finalize");let u=await this.getExportCommand(l);await _e.getExecOutput(u.command,u.args);let d=y8.default.statSync(c);return{dockerbuildFilename:c,dockerbuildSize:d.size,builderName:r,nodeName:n,refs:i,summaries:a}}static exportFilename(e){let r=`${Xe.context.repo.owner}~${Xe.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var AOe=N(require("fs"),1),tK=N(require("path"),1);var bSe=N(require("os"),1);function TI(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(TI,"toCommandValue");function C8(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(C8,"toCommandProperties");function RI(t,e,r){let n=new b8(t,e,r);process.stdout.write(n.toString()+bSe.EOL)}o(RI,"issueCommand");var CSe="::",b8=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=CSe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${DCt(i)}`)}}return e+=`${CSe}${RCt(this.message)}`,e}};function RCt(t){return TI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(RCt,"escapeData");function DCt(t){return TI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(DCt,"escapeProperty");var BSe=N(require("os"),1);var ISe=require("os"),DI=require("fs");var w8=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:QCt,appendFile:PCt,writeFile:kCt}=DI.promises,wSe="GITHUB_STEP_SUMMARY";var I8=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return w8(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[wSe];if(!e)throw new Error(`Unable to find environment variable for $${wSe}. Check if your runtime environment supports job summaries.`);try{yield QCt(e,DI.constants.R_OK|DI.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return w8(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?kCt:PCt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return w8(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(ISe.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},jBr=new I8;var S8=N(require("os"),1);var XBr=S8.default.platform(),ZBr=S8.default.arch();var SSe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(SSe||(SSe={}));function YD(t){RI("add-mask",{},t)}o(YD,"setSecret");function Ze(t){RI("debug",{},t)}o(Ze,"debug");function QI(t,e={}){RI("error",C8(e),t instanceof Error?t.toString():t)}o(QI,"error");function mi(t,e={}){RI("warning",C8(e),t instanceof Error?t.toString():t)}o(mi,"warning");function at(t){process.stdout.write(t+BSe.EOL)}o(at,"info");var xSe=N(require("os"),1);function nA(){return 8*1024*1024}o(nA,"getUploadChunkSize");function KD(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(KD,"getRuntimeToken");function vSe(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}o(vSe,"getResultsServiceUrl");function qy(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),i=e.endsWith(".LOCALHOST");return!r&&!n&&!i}o(qy,"isGhes");function NSe(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}o(NSe,"getGitHubWorkspaceDir");function _Se(){let t=xSe.default.cpus().length,e=32;if(t>4){let n=16*t;e=n>300?300:n}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let n=parseInt(r);if(isNaN(n)||n<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return n<e?(at("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),n):(at(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${e} based on the number of cpus. Set it to the maximum value allowed.`),e)}return 5}o(_Se,"getConcurrency");function TSe(){let t=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!t)return 3e5;let e=parseInt(t);if(isNaN(e))throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return e}o(TSe,"getUploadChunkTimeout");function RSe(){let t=process.env.ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT||"1000",e=parseInt(t);if(isNaN(e)||e<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT env variable");return e}o(RSe,"getMaxArtifactListCount");var KPe=N(require("fs"),1),XPe=N(require("path"),1);var Y8=N(cr(),1),K8=N(cr(),1),lBe=N(cr(),1),uBe=N(cr(),1),dBe=N(cr(),1),Yy=N(cr(),1),fBe=N(cr(),1);var X8=class extends fBe.MessageType{static{o(this,"Timestamp$Type")}constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){let e=this.create(),r=Date.now();return e.seconds=Yy.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(Yy.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),n=e.getTime();return r.seconds=Yy.PbLong.from(Math.floor(n/1e3)).toString(),r.nanos=n%1e3*1e6,r}internalJsonWrite(e,r){let n=Yy.PbLong.from(e.seconds).toNumber()*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let i="Z";if(e.nanos>0){let s=(e.nanos+1e9).toString().substring(1);s.substring(3)==="000000"?i="."+s.substring(0,3)+"Z":s.substring(6)==="000"?i="."+s.substring(0,6)+"Z":i="."+s+"Z"}return new Date(n).toISOString().replace(".000Z",i)}internalJsonRead(e,r,n){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,dBe.typeofJsonValue)(e)+".");let i=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!i)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let s=Date.parse(i[1]+"-"+i[2]+"-"+i[3]+"T"+i[4]+":"+i[5]+":"+i[6]+(i[8]?i[8]:"Z"));if(Number.isNaN(s))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(s<Date.parse("0001-01-01T00:00:00Z")||s>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return n||(n=this.create()),n.seconds=Yy.PbLong.from(s/1e3).toString(),n.nanos=0,i[7]&&(n.nanos=parseInt("1"+i[7]+"0".repeat(9-i[7].length))-1e9),n}create(e){let r={seconds:"0",nanos:0};return globalThis.Object.defineProperty(r,uBe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,lBe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.seconds=e.int64().toString();break;case 2:s.nanos=e.int32();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?K8.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.seconds!=="0"&&r.tag(1,Y8.WireType.Varint).int64(e.seconds),e.nanos!==0&&r.tag(2,Y8.WireType.Varint).int32(e.nanos);let i=n.writeUnknownFields;return i!==!1&&(i==!0?K8.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},Bo=new X8;var $I=N(cr(),1),c6=N(cr(),1),Dl=N(cr(),1),Ln=N(cr(),1),Ql=N(cr(),1),Pl=N(cr(),1),kl=N(cr(),1);var Z8=class extends kl.MessageType{static{o(this,"DoubleValue$Type")}constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(e,r){return this.refJsonWriter.scalar(2,e.value,"value",!1,!0)}internalJsonRead(e,r,n){return n||(n=this.create()),n.value=this.refJsonReader.scalar(e,1,void 0,"value"),n}create(e){let r={value:0};return globalThis.Object.defineProperty(r,Pl.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ql.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.value=e.double();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Ln.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.value!==0&&r.tag(1,Dl.WireType.Bit64).double(e.value);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Ln.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},Svr=new Z8,e6=class extends kl.MessageType{static{o(this,"FloatValue$Type")}constructor(){super("google.protobuf.FloatValue",[{no:1,name:"value",kind:"scalar",T:2}])}internalJsonWrite(e,r){return this.refJsonWriter.scalar(1,e.value,"value",!1,!0)}internalJsonRead(e,r,n){return n||(n=this.create()),n.value=this.refJsonReader.scalar(e,1,void 0,"value"),n}create(e){let r={value:0};return globalThis.Object.defineProperty(r,Pl.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ql.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.value=e.float();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Ln.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.value!==0&&r.tag(1,Dl.WireType.Bit32).float(e.value);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Ln.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},Bvr=new e6,t6=class extends kl.MessageType{static{o(this,"Int64Value$Type")}constructor(){super("google.protobuf.Int64Value",[{no:1,name:"value",kind:"scalar",T:3}])}internalJsonWrite(e,r){return this.refJsonWriter.scalar($I.ScalarType.INT64,e.value,"value",!1,!0)}internalJsonRead(e,r,n){return n||(n=this.create()),n.value=this.refJsonReader.scalar(e,$I.ScalarType.INT64,c6.LongType.STRING,"value"),n}create(e){let r={value:"0"};return globalThis.Object.defineProperty(r,Pl.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ql.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.value=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Ln.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.value!=="0"&&r.tag(1,Dl.WireType.Varint).int64(e.value);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Ln.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},Ky=new t6,r6=class extends kl.MessageType{static{o(this,"UInt64Value$Type")}constructor(){super("google.protobuf.UInt64Value",[{no:1,name:"value",kind:"scalar",T:4}])}internalJsonWrite(e,r){return this.refJsonWriter.scalar($I.ScalarType.UINT64,e.value,"value",!1,!0)}internalJsonRead(e,r,n){return n||(n=this.create()),n.value=this.refJsonReader.scalar(e,$I.ScalarType.UINT64,c6.LongType.STRING,"value"),n}create(e){let r={value:"0"};return globalThis.Object.defineProperty(r,Pl.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ql.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.value=e.uint64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Ln.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.value!=="0"&&r.tag(1,Dl.WireType.Varint).uint64(e.value);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Ln.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},xvr=new r6,n6=class extends kl.MessageType{static{o(this,"Int32Value$Type")}constructor(){super("google.protobuf.Int32Value",[{no:1,name:"value",kind:"scalar",T:5}])}internalJsonWrite(e,r){return this.refJsonWriter.scalar(5,e.value,"value",!1,!0)}internalJsonRead(e,r,n){return n||(n=this.create()),n.value=this.refJsonReader.scalar(e,5,void 0,"value"),n}create(e){let r={value:0};return globalThis.Object.defineProperty(r,Pl.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ql.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.value=e.int32();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Ln.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.value!==0&&r.tag(1,Dl.WireType.Varint).int32(e.value);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Ln.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},vvr=new n6,i6=class extends kl.MessageType{static{o(this,"UInt32Value$Type")}constructor(){super("google.protobuf.UInt32Value",[{no:1,name:"value",kind:"scalar",T:13}])}internalJsonWrite(e,r){return this.refJsonWriter.scalar(13,e.value,"value",!1,!0)}internalJsonRead(e,r,n){return n||(n=this.create()),n.value=this.refJsonReader.scalar(e,13,void 0,"value"),n}create(e){let r={value:0};return globalThis.Object.defineProperty(r,Pl.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ql.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.value=e.uint32();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Ln.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.value!==0&&r.tag(1,Dl.WireType.Varint).uint32(e.value);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Ln.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},Nvr=new i6,s6=class extends kl.MessageType{static{o(this,"BoolValue$Type")}constructor(){super("google.protobuf.BoolValue",[{no:1,name:"value",kind:"scalar",T:8}])}internalJsonWrite(e,r){return e.value}internalJsonRead(e,r,n){return n||(n=this.create()),n.value=this.refJsonReader.scalar(e,8,void 0,"value"),n}create(e){let r={value:!1};return globalThis.Object.defineProperty(r,Pl.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ql.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.value=e.bool();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Ln.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.value!==!1&&r.tag(1,Dl.WireType.Varint).bool(e.value);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Ln.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},_vr=new s6,o6=class extends kl.MessageType{static{o(this,"StringValue$Type")}constructor(){super("google.protobuf.StringValue",[{no:1,name:"value",kind:"scalar",T:9}])}internalJsonWrite(e,r){return e.value}internalJsonRead(e,r,n){return n||(n=this.create()),n.value=this.refJsonReader.scalar(e,9,void 0,"value"),n}create(e){let r={value:""};return globalThis.Object.defineProperty(r,Pl.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ql.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.value=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Ln.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.value!==""&&r.tag(1,Dl.WireType.LengthDelimited).string(e.value);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Ln.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},Cn=new o6,a6=class extends kl.MessageType{static{o(this,"BytesValue$Type")}constructor(){super("google.protobuf.BytesValue",[{no:1,name:"value",kind:"scalar",T:12}])}internalJsonWrite(e,r){return this.refJsonWriter.scalar(12,e.value,"value",!1,!0)}internalJsonRead(e,r,n){return n||(n=this.create()),n.value=this.refJsonReader.scalar(e,12,void 0,"value"),n}create(e){let r={value:new Uint8Array(0)};return globalThis.Object.defineProperty(r,Pl.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ql.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.value=e.bytes();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Ln.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.value.length&&r.tag(1,Dl.WireType.LengthDelimited).bytes(e.value);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Ln.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},Tvr=new a6;var wBe=N(bBe(),1),ht=N(cr(),1),vr=N(cr(),1),Ea=N(cr(),1),Ca=N(cr(),1),ba=N(cr(),1);var _6=class extends ba.MessageType{static{o(this,"CreateArtifactRequest$Type")}constructor(){super("github.actions.results.api.v1.CreateArtifactRequest",[{no:1,name:"workflow_run_backend_id",kind:"scalar",T:9},{no:2,name:"workflow_job_run_backend_id",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"expires_at",kind:"message",T:o(()=>Bo,"T")},{no:5,name:"version",kind:"scalar",T:5},{no:6,name:"mime_type",kind:"message",T:o(()=>Cn,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",version:0};return globalThis.Object.defineProperty(r,Ca.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ea.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.workflowRunBackendId=e.string();break;case 2:s.workflowJobRunBackendId=e.string();break;case 3:s.name=e.string();break;case 4:s.expiresAt=Bo.internalBinaryRead(e,e.uint32(),n,s.expiresAt);break;case 5:s.version=e.int32();break;case 6:s.mimeType=Cn.internalBinaryRead(e,e.uint32(),n,s.mimeType);break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?vr.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.workflowRunBackendId!==""&&r.tag(1,ht.WireType.LengthDelimited).string(e.workflowRunBackendId),e.workflowJobRunBackendId!==""&&r.tag(2,ht.WireType.LengthDelimited).string(e.workflowJobRunBackendId),e.name!==""&&r.tag(3,ht.WireType.LengthDelimited).string(e.name),e.expiresAt&&Bo.internalBinaryWrite(e.expiresAt,r.tag(4,ht.WireType.LengthDelimited).fork(),n).join(),e.version!==0&&r.tag(5,ht.WireType.Varint).int32(e.version),e.mimeType&&Cn.internalBinaryWrite(e.mimeType,r.tag(6,ht.WireType.LengthDelimited).fork(),n).join();let i=n.writeUnknownFields;return i!==!1&&(i==!0?vr.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},U6=new _6,T6=class extends ba.MessageType{static{o(this,"CreateArtifactResponse$Type")}constructor(){super("github.actions.results.api.v1.CreateArtifactResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:""};return globalThis.Object.defineProperty(r,Ca.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ea.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.ok=e.bool();break;case 2:s.signedUploadUrl=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?vr.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,ht.WireType.Varint).bool(e.ok),e.signedUploadUrl!==""&&r.tag(2,ht.WireType.LengthDelimited).string(e.signedUploadUrl);let i=n.writeUnknownFields;return i!==!1&&(i==!0?vr.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},q6=new T6,R6=class extends ba.MessageType{static{o(this,"FinalizeArtifactRequest$Type")}constructor(){super("github.actions.results.api.v1.FinalizeArtifactRequest",[{no:1,name:"workflow_run_backend_id",kind:"scalar",T:9},{no:2,name:"workflow_job_run_backend_id",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"size",kind:"scalar",T:3},{no:5,name:"hash",kind:"message",T:o(()=>Cn,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",size:"0"};return globalThis.Object.defineProperty(r,Ca.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ea.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.workflowRunBackendId=e.string();break;case 2:s.workflowJobRunBackendId=e.string();break;case 3:s.name=e.string();break;case 4:s.size=e.int64().toString();break;case 5:s.hash=Cn.internalBinaryRead(e,e.uint32(),n,s.hash);break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?vr.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.workflowRunBackendId!==""&&r.tag(1,ht.WireType.LengthDelimited).string(e.workflowRunBackendId),e.workflowJobRunBackendId!==""&&r.tag(2,ht.WireType.LengthDelimited).string(e.workflowJobRunBackendId),e.name!==""&&r.tag(3,ht.WireType.LengthDelimited).string(e.name),e.size!=="0"&&r.tag(4,ht.WireType.Varint).int64(e.size),e.hash&&Cn.internalBinaryWrite(e.hash,r.tag(5,ht.WireType.LengthDelimited).fork(),n).join();let i=n.writeUnknownFields;return i!==!1&&(i==!0?vr.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},G6=new R6,D6=class extends ba.MessageType{static{o(this,"FinalizeArtifactResponse$Type")}constructor(){super("github.actions.results.api.v1.FinalizeArtifactResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"artifact_id",kind:"scalar",T:3}])}create(e){let r={ok:!1,artifactId:"0"};return globalThis.Object.defineProperty(r,Ca.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ea.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.ok=e.bool();break;case 2:s.artifactId=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?vr.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,ht.WireType.Varint).bool(e.ok),e.artifactId!=="0"&&r.tag(2,ht.WireType.Varint).int64(e.artifactId);let i=n.writeUnknownFields;return i!==!1&&(i==!0?vr.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},H6=new D6,Q6=class extends ba.MessageType{static{o(this,"ListArtifactsRequest$Type")}constructor(){super("github.actions.results.api.v1.ListArtifactsRequest",[{no:1,name:"workflow_run_backend_id",kind:"scalar",T:9},{no:2,name:"workflow_job_run_backend_id",kind:"scalar",T:9},{no:3,name:"name_filter",kind:"message",T:o(()=>Cn,"T")},{no:4,name:"id_filter",kind:"message",T:o(()=>Ky,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:""};return globalThis.Object.defineProperty(r,Ca.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ea.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.workflowRunBackendId=e.string();break;case 2:s.workflowJobRunBackendId=e.string();break;case 3:s.nameFilter=Cn.internalBinaryRead(e,e.uint32(),n,s.nameFilter);break;case 4:s.idFilter=Ky.internalBinaryRead(e,e.uint32(),n,s.idFilter);break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?vr.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.workflowRunBackendId!==""&&r.tag(1,ht.WireType.LengthDelimited).string(e.workflowRunBackendId),e.workflowJobRunBackendId!==""&&r.tag(2,ht.WireType.LengthDelimited).string(e.workflowJobRunBackendId),e.nameFilter&&Cn.internalBinaryWrite(e.nameFilter,r.tag(3,ht.WireType.LengthDelimited).fork(),n).join(),e.idFilter&&Ky.internalBinaryWrite(e.idFilter,r.tag(4,ht.WireType.LengthDelimited).fork(),n).join();let i=n.writeUnknownFields;return i!==!1&&(i==!0?vr.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},V6=new Q6,P6=class extends ba.MessageType{static{o(this,"ListArtifactsResponse$Type")}constructor(){super("github.actions.results.api.v1.ListArtifactsResponse",[{no:1,name:"artifacts",kind:"message",repeat:2,T:o(()=>N6,"T")}])}create(e){let r={artifacts:[]};return globalThis.Object.defineProperty(r,Ca.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ea.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.artifacts.push(N6.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?vr.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){for(let s=0;s<e.artifacts.length;s++)N6.internalBinaryWrite(e.artifacts[s],r.tag(1,ht.WireType.LengthDelimited).fork(),n).join();let i=n.writeUnknownFields;return i!==!1&&(i==!0?vr.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},z6=new P6,k6=class extends ba.MessageType{static{o(this,"ListArtifactsResponse_MonolithArtifact$Type")}constructor(){super("github.actions.results.api.v1.ListArtifactsResponse.MonolithArtifact",[{no:1,name:"workflow_run_backend_id",kind:"scalar",T:9},{no:2,name:"workflow_job_run_backend_id",kind:"scalar",T:9},{no:3,name:"database_id",kind:"scalar",T:3},{no:4,name:"name",kind:"scalar",T:9},{no:5,name:"size",kind:"scalar",T:3},{no:6,name:"created_at",kind:"message",T:o(()=>Bo,"T")},{no:7,name:"digest",kind:"message",T:o(()=>Cn,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:"",databaseId:"0",name:"",size:"0"};return globalThis.Object.defineProperty(r,Ca.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ea.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.workflowRunBackendId=e.string();break;case 2:s.workflowJobRunBackendId=e.string();break;case 3:s.databaseId=e.int64().toString();break;case 4:s.name=e.string();break;case 5:s.size=e.int64().toString();break;case 6:s.createdAt=Bo.internalBinaryRead(e,e.uint32(),n,s.createdAt);break;case 7:s.digest=Cn.internalBinaryRead(e,e.uint32(),n,s.digest);break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?vr.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.workflowRunBackendId!==""&&r.tag(1,ht.WireType.LengthDelimited).string(e.workflowRunBackendId),e.workflowJobRunBackendId!==""&&r.tag(2,ht.WireType.LengthDelimited).string(e.workflowJobRunBackendId),e.databaseId!=="0"&&r.tag(3,ht.WireType.Varint).int64(e.databaseId),e.name!==""&&r.tag(4,ht.WireType.LengthDelimited).string(e.name),e.size!=="0"&&r.tag(5,ht.WireType.Varint).int64(e.size),e.createdAt&&Bo.internalBinaryWrite(e.createdAt,r.tag(6,ht.WireType.LengthDelimited).fork(),n).join(),e.digest&&Cn.internalBinaryWrite(e.digest,r.tag(7,ht.WireType.LengthDelimited).fork(),n).join();let i=n.writeUnknownFields;return i!==!1&&(i==!0?vr.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},N6=new k6,O6=class extends ba.MessageType{static{o(this,"GetSignedArtifactURLRequest$Type")}constructor(){super("github.actions.results.api.v1.GetSignedArtifactURLRequest",[{no:1,name:"workflow_run_backend_id",kind:"scalar",T:9},{no:2,name:"workflow_job_run_backend_id",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:"",name:""};return globalThis.Object.defineProperty(r,Ca.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ea.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.workflowRunBackendId=e.string();break;case 2:s.workflowJobRunBackendId=e.string();break;case 3:s.name=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?vr.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.workflowRunBackendId!==""&&r.tag(1,ht.WireType.LengthDelimited).string(e.workflowRunBackendId),e.workflowJobRunBackendId!==""&&r.tag(2,ht.WireType.LengthDelimited).string(e.workflowJobRunBackendId),e.name!==""&&r.tag(3,ht.WireType.LengthDelimited).string(e.name);let i=n.writeUnknownFields;return i!==!1&&(i==!0?vr.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},$6=new O6,L6=class extends ba.MessageType{static{o(this,"GetSignedArtifactURLResponse$Type")}constructor(){super("github.actions.results.api.v1.GetSignedArtifactURLResponse",[{no:1,name:"signed_url",kind:"scalar",T:9}])}create(e){let r={signedUrl:""};return globalThis.Object.defineProperty(r,Ca.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ea.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.signedUrl=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?vr.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.signedUrl!==""&&r.tag(1,ht.WireType.LengthDelimited).string(e.signedUrl);let i=n.writeUnknownFields;return i!==!1&&(i==!0?vr.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},j6=new L6,F6=class extends ba.MessageType{static{o(this,"DeleteArtifactRequest$Type")}constructor(){super("github.actions.results.api.v1.DeleteArtifactRequest",[{no:1,name:"workflow_run_backend_id",kind:"scalar",T:9},{no:2,name:"workflow_job_run_backend_id",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:"",name:""};return globalThis.Object.defineProperty(r,Ca.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ea.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.workflowRunBackendId=e.string();break;case 2:s.workflowJobRunBackendId=e.string();break;case 3:s.name=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?vr.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.workflowRunBackendId!==""&&r.tag(1,ht.WireType.LengthDelimited).string(e.workflowRunBackendId),e.workflowJobRunBackendId!==""&&r.tag(2,ht.WireType.LengthDelimited).string(e.workflowJobRunBackendId),e.name!==""&&r.tag(3,ht.WireType.LengthDelimited).string(e.name);let i=n.writeUnknownFields;return i!==!1&&(i==!0?vr.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},W6=new F6,M6=class extends ba.MessageType{static{o(this,"DeleteArtifactResponse$Type")}constructor(){super("github.actions.results.api.v1.DeleteArtifactResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"artifact_id",kind:"scalar",T:3}])}create(e){let r={ok:!1,artifactId:"0"};return globalThis.Object.defineProperty(r,Ca.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ea.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.ok=e.bool();break;case 2:s.artifactId=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?vr.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,ht.WireType.Varint).bool(e.ok),e.artifactId!=="0"&&r.tag(2,ht.WireType.Varint).int64(e.artifactId);let i=n.writeUnknownFields;return i!==!1&&(i==!0?vr.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},J6=new M6,uNr=new wBe.ServiceType("github.actions.results.api.v1.ArtifactService",[{name:"CreateArtifact",options:{},I:U6,O:q6},{name:"FinalizeArtifact",options:{},I:G6,O:H6},{name:"ListArtifacts",options:{},I:V6,O:z6},{name:"GetSignedArtifactURL",options:{},I:$6,O:j6},{name:"DeleteArtifact",options:{},I:W6,O:J6}]);var OQ=class{static{o(this,"ArtifactServiceClientJSON")}constructor(e){this.rpc=e,this.CreateArtifact.bind(this),this.FinalizeArtifact.bind(this),this.ListArtifacts.bind(this),this.GetSignedArtifactURL.bind(this),this.DeleteArtifact.bind(this)}CreateArtifact(e){let r=U6.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","CreateArtifact","application/json",r).then(i=>q6.fromJson(i,{ignoreUnknownFields:!0}))}FinalizeArtifact(e){let r=G6.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/json",r).then(i=>H6.fromJson(i,{ignoreUnknownFields:!0}))}ListArtifacts(e){let r=V6.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/json",r).then(i=>z6.fromJson(i,{ignoreUnknownFields:!0}))}GetSignedArtifactURL(e){let r=$6.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/json",r).then(i=>j6.fromJson(i,{ignoreUnknownFields:!0}))}DeleteArtifact(e){let r=W6.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/json",r).then(i=>J6.fromJson(i,{ignoreUnknownFields:!0}))}};function IBe(t){if(!t)return;let e=V0t();e&&e<t&&(mi(`Retention days cannot be greater than the maximum allowed retention set within the repository. Using ${e} instead.`),t=e);let r=new Date;return r.setDate(r.getDate()+t),Bo.fromDate(r)}o(IBe,"getExpiration");function V0t(){let t=process.env.GITHUB_RETENTION_DAYS;if(!t)return;let e=parseInt(t);if(!isNaN(e))return e}o(V0t,"getRetentionDays");var Y6=new Map([['"',' Double quote "'],[":"," Colon :"],["<"," Less than <"],[">"," Greater than >"],["|"," Vertical bar |"],["*"," Asterisk *"],["?"," Question mark ?"],["\r"," Carriage return \\r"],[`
|
|
`," Line feed \\n"]]),SBe=new Map([...Y6,["\\"," Backslash \\"],["/"," Forward slash /"]]);function BBe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of SBe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
|
|
|
Invalid characters include: ${Array.from(SBe.values()).toString()}
|
|
|
|
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);at("Artifact name is valid!")}o(BBe,"validateArtifactName");function K6(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Y6)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
|
|
|
|
Invalid characters include: ${Array.from(Y6.values()).toString()}
|
|
|
|
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
|
|
`)}o(K6,"validateFilePath");var _Be=N(NBe(),1);function Fl(){return`@actions/artifact-${_Be.version}`}o(Fl,"getUserAgentString");var sE=class extends Error{static{o(this,"FilesNotFoundError")}constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},pc=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}},cd=class extends Error{static{o(this,"ArtifactNotFoundError")}constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Ff=class extends Error{static{o(this,"GHESNotSupportedError")}constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},ld=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e}
|
|
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};ld.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var cA=class extends Error{static{o(this,"UsageError")}constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
|
|
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};cA.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var LQ=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Ml(){let t=KD(),e=jD(t);if(!e.scp)throw LQ;let r=e.scp.split(" ");if(r.length===0)throw LQ;for(let n of r){let i=n.split(":");if(i?.[0]!=="Actions.Results")continue;if(i.length!==3)throw LQ;let s={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};return Ze(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),Ze(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw LQ}o(Ml,"getBackendIdsFromToken");function TBe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(YD(r),YD(encodeURIComponent(r)))}catch(e){Ze(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(TBe,"maskSigUrl");function RBe(t){if(typeof t!="object"||t===null){Ze("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&TBe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&TBe(t.signed_url)}o(RBe,"maskSecretUrls");var FQ=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},X6=class{static{o(this,"ArtifactHttpClient")}constructor(e,r,n,i){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=KD();this.baseUrl=vSe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new qo(e,[new rf(s)])}request(e,r,n,i){return FQ(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;Ze(`[Request] ${r} ${s}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>FQ(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(i),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return FQ(this,void 0,void 0,function*(){let r=0,n="",i="";for(;r<this.maxAttempts;){let s=!1;try{let c=yield e(),l=c.message.statusCode;i=yield c.readBody(),Ze(`[Response] - ${c.message.statusCode}`),Ze(`Headers: ${JSON.stringify(c.message.headers,null,2)}`);let u=JSON.parse(i);if(RBe(u),Ze(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(l))return{response:c,body:u};if(s=this.isRetryableHttpStatusCode(l),n=`Failed request: (${l}) ${c.message.statusMessage}`,u.msg){if(cA.isUsageErrorMessage(u.msg))throw new cA;n=`${n}: ${u.msg}`}}catch(c){if(c instanceof SyntaxError&&Ze(`Raw Body: ${i}`),c instanceof cA)throw c;if(ld.isNetworkErrorCode(c?.code))throw new ld(c?.code);s=!0,n=c.message}if(!s)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(r);at(`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?[Hn.BadGateway,Hn.GatewayTimeout,Hn.InternalServerError,Hn.ServiceUnavailable,Hn.TooManyRequests].includes(e):!1}sleep(e){return FQ(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 Ul(t){let e=new X6(Fl(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new OQ(e)}o(Ul,"internalArtifactTwirpClient");var aE=N(require("fs"),1);var oE=require("path");function DBe(t){if(!aE.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!aE.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);at("Root directory input is valid!")}o(DBe,"validateRootDirectory");function QBe(t,e){let r=[];e=(0,oE.normalize)(e),e=(0,oE.resolve)(e);for(let n of t){let i=aE.lstatSync(n,{throwIfNoEntry:!1});if(!i)throw new Error(`File ${n} does not exist`);if(i.isDirectory()){let s=n.replace(e,"");K6(s),r.push({sourcePath:null,destinationPath:s,stats:i})}else{if(n=(0,oE.normalize)(n),n=(0,oE.resolve)(n),!n.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${n}`);let s=n.replace(e,"");K6(s),r.push({sourcePath:n,destinationPath:s,stats:i})}}return r}o(QBe,"getUploadZipSpecification");var kBe=N(require("crypto"),1),OBe=N(require("stream"),1);var PBe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function LBe(t,e,r){return PBe(this,void 0,void 0,function*(){let n=0,i=Date.now(),s=new AbortController,a=o(E=>PBe(this,void 0,void 0,function*(){return new Promise((y,C)=>{let w=setInterval(()=>{Date.now()-i>E&&C(new Error("Upload progress stalled."))},E);s.signal.addEventListener("abort",()=>{clearInterval(w),y()})})}),"chunkTimer"),c=_Se(),l=nA(),d=new oc(t).getBlockBlobClient();Ze(`Uploading artifact to blob storage with maxConcurrency: ${c}, bufferSize: ${l}, contentType: ${r}`);let h={blobHTTPHeaders:{blobContentType:r},onProgress:o(E=>{at(`Uploaded bytes ${E.loadedBytes}`),n=E.loadedBytes,i=Date.now()},"uploadCallback"),abortSignal:s.signal},p,g=new OBe.PassThrough,A=kBe.createHash("sha256");e.pipe(g),e.pipe(A).setEncoding("hex"),at("Beginning upload of artifact content to blob storage");try{yield Promise.race([d.uploadStream(g,l,c,h),a(TSe())])}catch(E){throw ld.isNetworkErrorCode(E?.code)?new ld(E?.code):E}finally{s.abort()}return at("Finished uploading artifact content to blob storage!"),A.end(),p=A.read(),at(`SHA256 digest of uploaded artifact is ${p}`),n===0&&mi("No data was uploaded to blob storage. Reported upload byte count is 0."),{uploadSize:n,sha256Hash:p}})}o(LBe,"uploadToBlobStorage");var $Pe=require("fs/promises"),jPe=N(GPe(),1);var HPe=N(require("stream"),1),jP=N(require("fs"),1),VPe=require("fs/promises");var cLt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},fB=class extends HPe.Transform{static{o(this,"WaterMarkedUploadStream")}constructor(e){super({highWaterMark:e})}_transform(e,r,n){n(null,e)}};function zPe(t){return cLt(this,void 0,void 0,function*(){Ze(`Creating raw file upload stream for: ${t}`);let e=nA(),r=new fB(e),n=t;(yield jP.promises.lstat(t)).isSymbolicLink()&&(n=yield(0,VPe.realpath)(t));let s=jP.createReadStream(n,{highWaterMark:e});return s.on("error",a=>{QI("An error has occurred while reading the file for upload"),QI(String(a)),r.destroy(new Error("An error has occurred during file read for the artifact"))}),s.pipe(r),r})}o(zPe,"createRawFileUploadStream");var lLt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},uLt=6;function WPe(t){return lLt(this,arguments,void 0,function*(e,r=uLt){Ze(`Creating Artifact archive with compressionLevel: ${r}`);let n=jPe.default.create("zip",{highWaterMark:nA(),zlib:{level:r}});n.on("error",dLt),n.on("warning",fLt),n.on("finish",hLt),n.on("end",pLt);for(let a of e)if(a.sourcePath!==null){let c=a.sourcePath;a.stats.isSymbolicLink()&&(c=yield(0,$Pe.realpath)(a.sourcePath)),n.file(c,{name:a.destinationPath})}else n.append("",{name:a.destinationPath});let i=nA(),s=new fB(i);return Ze(`Zip write high watermark value ${s.writableHighWaterMark}`),Ze(`Zip read high watermark value ${s.readableHighWaterMark}`),n.pipe(s),n.finalize(),s})}o(WPe,"createZipUploadStream");var dLt=o(t=>{throw QI("An error has occurred while creating the zip file for upload"),at(t),new Error("An error has occurred during zip creation for the artifact")},"zipErrorCallback"),fLt=o(t=>{t.code==="ENOENT"?(mi("ENOENT warning during artifact zip creation. No such file or directory"),at(t)):(mi(`A non-blocking warning has occurred during artifact zip creation: ${t.code}`),at(t))},"zipWarningCallback"),hLt=o(()=>{Ze("Zip stream for upload has finished.")},"zipFinishCallback"),pLt=o(()=>{Ze("Zip stream for upload has ended.")},"zipEndCallback");var JPe=N(require("path"),1);var ALt={".txt":"text/plain",".html":"text/html",".htm":"text/html",".css":"text/css",".csv":"text/csv",".xml":"text/xml",".md":"text/markdown",".js":"application/javascript",".mjs":"application/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".webp":"image/webp",".ico":"image/x-icon",".bmp":"image/bmp",".tiff":"image/tiff",".tif":"image/tiff",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".flac":"audio/flac",".mp4":"video/mp4",".webm":"video/webm",".avi":"video/x-msvideo",".mov":"video/quicktime",".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".zip":"application/zip",".tar":"application/x-tar",".gz":"application/gzip",".rar":"application/vnd.rar",".7z":"application/x-7z-compressed",".wasm":"application/wasm",".yaml":"application/x-yaml",".yml":"application/x-yaml",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};function YPe(t){let e=JPe.extname(t).toLowerCase();return ALt[e]||"application/octet-stream"}o(YPe,"getMimeType");var mLt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function ZPe(t,e,r,n){return mLt(this,void 0,void 0,function*(){let i=`${t}.zip`;if(n?.skipArchive){if(e.length===0)throw new sE([]);if(e.length>1)throw new Error("skipArchive option is only supported when uploading a single file");if(!KPe.existsSync(e[0]))throw new sE(e);i=XPe.basename(e[0]),t=i}BBe(t),DBe(r);let s=[];if(!n?.skipArchive&&(s=QBe(e,r),s.length===0))throw new sE(s.flatMap(y=>y.sourcePath?[y.sourcePath]:[]));let a=YPe(i),c=Ml(),l=Ul(),u={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:t,mimeType:Cn.create({value:a}),version:7},d=IBe(n?.retentionDays);d&&(u.expiresAt=d);let f=yield l.CreateArtifact(u);if(!f.ok)throw new pc("CreateArtifact: response from backend was not ok");let h;n?.skipArchive?h=yield zPe(e[0]):h=yield WPe(s,n?.compressionLevel),at(`Uploading artifact: ${i}`);let p=yield LBe(f.signedUploadUrl,h,a),g={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:t,size:p.uploadSize?p.uploadSize.toString():"0"};p.sha256Hash&&(g.hash=Cn.create({value:`sha256:${p.sha256Hash}`})),at("Finalizing artifact upload");let A=yield l.FinalizeArtifact(g);if(!A.ok)throw new pc("FinalizeArtifact: response from backend was not ok");let E=BigInt(A.artifactId);return at(`Artifact ${t} successfully finalized. Artifact ID ${E}`),{size:p.uploadSize,digest:p.sha256Hash,id:Number(E)}})}o(ZPe,"uploadArtifact");var XY=N(require("fs/promises"),1),jke=N(require("fs"),1),Wke=N(require("crypto"),1),Jke=N(require("stream"),1),rk=N(require("path"),1);var WP=require("fs"),eke=require("os");var tC=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,WP.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,WP.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let i=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${i} does not exist${eke.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 $Y=N(ske(),1),oke=N(ef(),1);var _Lt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function ake(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(ake,"getAuthString");function cke(t){return new $Y.HttpClient().getAgent(t)}o(cke,"getProxyAgent");function TLt(t){return new $Y.HttpClient().getAgentDispatcher(t)}o(TLt,"getProxyAgentDispatcher");function lke(t){let e=TLt(t);return o((n,i)=>_Lt(this,void 0,void 0,function*(){return(0,oke.fetch)(n,Object.assign(Object.assign({},i),{dispatcher:e}))}),"proxyFetch")}o(lke,"getProxyFetch");function uke(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(uke,"getApiBaseUrl");var xPr=new tC,jY=uke(),OA={baseUrl:jY,request:{agent:cke(jY),fetch:lke(jY)}},dke=Uy.plugin(xI,vI).defaults(OA);function fke(t,e){let r=Object.assign({},e||{}),n=ake(t,r);return n&&(r.auth=n),r}o(fke,"getOctokitOptions");var TPr=new tC;function sh(t,e,...r){let n=dke.plugin(...r);return new n(fke(t,e))}o(sh,"getOctokit");var Yke=N($ke(),1);var iC=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Kke=o(t=>{let e=new URL(t);return e.search="",e.toString()},"scrubQueryParameters");function sFt(t){return iC(this,void 0,void 0,function*(){try{return yield XY.default.access(t),!0}catch(e){if(e.code==="ENOENT")return!1;throw e}})}o(sFt,"exists");function Xke(t,e,r){return iC(this,void 0,void 0,function*(){let n=0;for(;n<5;)try{return yield oFt(t,e,{skipDecompress:r})}catch(i){n++,Ze(`Failed to download artifact after ${n} retries due to ${i.message}. Retrying in 5 seconds...`),yield new Promise(s=>setTimeout(s,5e3))}throw new Error(`Artifact download failed after ${n} retries.`)})}o(Xke,"streamExtract");function oFt(t,e){return iC(this,arguments,void 0,function*(r,n,i={}){let{timeout:s=30*1e3,skipDecompress:a=!1}=i,l=yield new qo(Fl()).get(r);if(l.message.statusCode!==200)throw new Error(`Unexpected HTTP response from blob storage: ${l.message.statusCode} ${l.message.statusMessage}`);let u=l.message.headers["content-type"]||"",d=u.split(";",1)[0].trim().toLowerCase(),h=new URL(r).pathname.toLowerCase().endsWith(".zip"),p=d==="application/zip"||d==="application/x-zip-compressed"||d==="application/zip-compressed"||h,g=l.message.headers["content-disposition"]||"",A="artifact",E=g.match(/filename\*\s*=\s*UTF-8''([^;\r\n]*)/i),y=g.match(/(?<!\*)filename\s*=\s*['"]?([^;\r\n"']*)['"]?/i),C=E?.[1]||y?.[1];C&&(A=rk.basename(decodeURIComponent(C.trim()))),Ze(`Content-Type: ${u}, mimeType: ${d}, urlEndsWithZip: ${h}, isZip: ${p}, skipDecompress: ${a}`),Ze(`Content-Disposition: ${g}, fileName: ${A}`);let w;return new Promise((B,Q)=>{let v=setTimeout(o(()=>{let J=new Error(`Blob storage chunk did not respond in ${s}ms`);l.message.destroy(J),Q(J)},"timerFn"),s),j=o(J=>{Ze(`response.message: Artifact download failed: ${J.message}`),clearTimeout(v),Q(J)},"onError"),D=Wke.createHash("sha256").setEncoding("hex"),H=new Jke.PassThrough().on("data",()=>{v.refresh()}).on("error",j);l.message.pipe(H),H.pipe(D);let V=o(()=>{clearTimeout(v),D&&(D.end(),w=D.read(),at(`SHA256 digest of downloaded artifact is ${w}`)),B({sha256Digest:`sha256:${w}`})},"onClose");if(p&&!a)H.pipe(Yke.default.Extract({path:n})).on("close",V).on("error",j);else{let J=rk.join(n,A),oe=jke.createWriteStream(J);at(`Downloading raw file (non-zip) to: ${J}`),H.pipe(oe).on("close",V).on("error",j)}})})}o(oFt,"streamExtractExternal");function Zke(t,e,r,n,i){return iC(this,void 0,void 0,function*(){let s=yield tOe(i?.path),a=sh(n),c=!1;at(`Downloading artifact '${t}' from '${e}/${r}'`);let{headers:l,status:u}=yield a.rest.actions.downloadArtifact({owner:e,repo:r,artifact_id:t,archive_format:"zip",request:{redirect:"manual"}});if(u!==302)throw new Error(`Unable to download artifact. Unexpected status: ${u}`);let{location:d}=l;if(!d)throw new Error("Unable to redirect to artifact download url");at(`Redirecting to blob download url: ${Kke(d)}`);try{at(`Starting download of artifact to: ${s}`);let f=yield Xke(d,s,i?.skipDecompress);at("Artifact download completed successfully."),i?.expectedHash&&i?.expectedHash!==f.sha256Digest&&(c=!0,Ze(`Computed digest: ${f.sha256Digest}`),Ze(`Expected digest: ${i.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:s,digestMismatch:c}})}o(Zke,"downloadArtifactPublic");function eOe(t,e){return iC(this,void 0,void 0,function*(){let r=yield tOe(e?.path),n=Ul(),i=!1,{workflowRunBackendId:s,workflowJobRunBackendId:a}=Ml(),c={workflowRunBackendId:s,workflowJobRunBackendId:a,idFilter:Ky.create({value:t.toString()})},{artifacts:l}=yield n.ListArtifacts(c);if(l.length===0)throw new cd(`No artifacts found for ID: ${t}
|
|
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);l.length>1&&mi("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:l[0].workflowRunBackendId,workflowJobRunBackendId:l[0].workflowJobRunBackendId,name:l[0].name},{signedUrl:d}=yield n.GetSignedArtifactURL(u);at(`Redirecting to blob download url: ${Kke(d)}`);try{at(`Starting download of artifact to: ${r}`);let f=yield Xke(d,r,e?.skipDecompress);at("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(i=!0,Ze(`Computed digest: ${f.sha256Digest}`),Ze(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:i}})}o(eOe,"downloadArtifactInternal");function tOe(){return iC(this,arguments,void 0,function*(t=NSe()){return(yield sFt(t))?Ze(`Artifact destination folder already exists: ${t}`):(Ze(`Artifact destination folder does not exist, creating: ${t}`),yield XY.default.mkdir(t,{recursive:!0})),t})}o(tOe,"resolveOrCreateDirectory");var aFt=5,cFt=[400,401,403,404,422];function sC(t,e=aFt,r=cFt){var n;if(e<=0)return[{enabled:!1},t.request];let i={enabled:!0};r.length>0&&(i.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return Ze(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(n=i.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[i,s]}o(sC,"getRetryOptions");var rOe="6.0.0";function MA(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),i=t.request.endpoint.parse(r),s=i.url.replace(r.baseUrl,"");return e(r).then(a=>{let c=a.headers["x-github-request-id"];return t.log.info(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a}).catch(a=>{let c=a.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a})})}o(MA,"requestLog");MA.VERSION=rOe;var sOe=N(nOe(),1);var lFt="0.0.0-development";function uFt(t){return t.request!==void 0}o(uFt,"isRequestError");async function iOe(t,e,r,n){if(!uFt(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let i=n.request.retries!=null?n.request.retries:t.retries,s=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,i,s)}throw r}o(iOe,"errorRequest");async function dFt(t,e,r,n){let i=new sOe.default;return i.on("failed",function(s,a){let c=~~s.request.request?.retries,l=~~s.request.request?.retryAfter;if(n.request.retryCount=a.retryCount+1,c>a.retryCount)return l*t.retryAfterBaseValue}),i.schedule(fFt.bind(null,t,e,r),n)}o(dFt,"wrapRequest");async function fFt(t,e,r,n){let i=await r(n);if(i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)){let s=new id(i.data.errors[0].message,500,{request:n,response:i});return iOe(t,e,s,n)}return i}o(fFt,"requestWithGraphqlErrorHandling");function UA(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:o((i,s,a)=>(i.request.request=Object.assign({},i.request.request,{retries:s,retryAfter:a}),i),"retryRequest")}};return r.enabled&&(t.hook.error("request",iOe.bind(null,r,n)),t.hook.wrap("request",dFt.bind(null,r,n))),n}o(UA,"retry");UA.VERSION=lFt;var oOe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function nk(t,e,r,n,i){return oOe(this,void 0,void 0,function*(){var s;let[a,c]=sC(OA),l={log:void 0,userAgent:Fl(),previews:void 0,retry:a,request:c},d=yield sh(i,l,UA,MA).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(d.status!==200)throw new pc(`Invalid response from GitHub API: ${d.status} (${(s=d?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(d.data.artifacts.length===0)throw new cd(`Artifact not found for name: ${t}
|
|
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
|
|
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=d.data.artifacts[0];return d.data.artifacts.length>1&&(f=d.data.artifacts.sort((h,p)=>p.id-h.id)[0],Ze(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}o(nk,"getArtifactPublic");function aOe(t){return oOe(this,void 0,void 0,function*(){var e;let r=Ul(),{workflowRunBackendId:n,workflowJobRunBackendId:i}=Ml(),s={workflowRunBackendId:n,workflowJobRunBackendId:i,nameFilter:Cn.create({value:t})},a=yield r.ListArtifacts(s);if(a.artifacts.length===0)throw new cd(`Artifact not found for name: ${t}
|
|
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
|
|
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=a.artifacts[0];return a.artifacts.length>1&&(c=a.artifacts.sort((l,u)=>Number(u.databaseId)-Number(l.databaseId))[0],Ze(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)),{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Bo.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(aOe,"getArtifactInternal");var cOe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function lOe(t,e,r,n,i){return cOe(this,void 0,void 0,function*(){var s;let[a,c]=sC(OA),l={log:void 0,userAgent:Fl(),previews:void 0,retry:a,request:c},u=sh(i,l,UA,MA),d=yield nk(t,e,r,n,i),f=yield u.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:d.artifact.id});if(f.status!==204)throw new pc(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:d.artifact.id}})}o(lOe,"deleteArtifactPublic");function uOe(t){return cOe(this,void 0,void 0,function*(){let e=Ul(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Ml(),i={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Cn.create({value:t})},s=yield e.ListArtifacts(i);if(s.artifacts.length===0)throw new cd(`Artifact not found for name: ${t}`);let a=s.artifacts[0];s.artifacts.length>1&&(a=s.artifacts.sort((u,d)=>Number(d.databaseId)-Number(u.databaseId))[0],Ze(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`));let c={workflowRunBackendId:a.workflowRunBackendId,workflowJobRunBackendId:a.workflowJobRunBackendId,name:a.name},l=yield e.DeleteArtifact(c);return at(`Artifact '${t}' (ID: ${l.artifactId}) deleted`),{id:Number(l.artifactId)}})}o(uOe,"deleteArtifactInternal");var dOe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},ik=RSe(),sk=100,hFt=Math.ceil(ik/sk);function fOe(t,e,r,n){return dOe(this,arguments,void 0,function*(i,s,a,c,l=!1){at(`Fetching artifact list for workflow run ${i} in repository ${s}/${a}`);let u=[],[d,f]=sC(OA),h={log:void 0,userAgent:Fl(),previews:void 0,retry:d,request:f},p=sh(c,h,UA,MA),g=1,{data:A}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:sk,page:g}),E=Math.ceil(A.total_count/sk),y=A.total_count;y>ik&&(mi(`Workflow run ${i} has ${y} artifacts, exceeding the limit of ${ik}. Results will be incomplete as only the first ${ik} artifacts will be returned`),E=hFt);for(let C of A.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(g++,g;g<=E;g++){Ze(`Fetching page ${g} of artifact list`);let{data:C}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:sk,page:g});for(let w of C.artifacts)u.push({name:w.name,id:w.id,size:w.size_in_bytes,createdAt:w.created_at?new Date(w.created_at):void 0,digest:w.digest})}return l&&(u=pOe(u)),at(`Found ${u.length} artifact(s)`),{artifacts:u}})}o(fOe,"listArtifactsPublic");function hOe(){return dOe(this,arguments,void 0,function*(t=!1){let e=Ul(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Ml(),i={workflowRunBackendId:r,workflowJobRunBackendId:n},a=(yield e.ListArtifacts(i)).artifacts.map(c=>{var l;return{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Bo.toDate(c.createdAt):void 0,digest:(l=c.digest)===null||l===void 0?void 0:l.value}});return t&&(a=pOe(a)),at(`Found ${a.length} artifact(s)`),{artifacts:a}})}o(hOe,"listArtifactsInternal");function pOe(t){t.sort((n,i)=>i.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}o(pOe,"filterLatest");var yB=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},pFt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r},oC=class{static{o(this,"DefaultArtifactClient")}uploadArtifact(e,r,n,i){return yB(this,void 0,void 0,function*(){try{if(qy())throw new Ff;return ZPe(e,r,n,i)}catch(s){throw mi(`Artifact upload failed with error: ${s}.
|
|
|
|
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
|
|
|
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return yB(this,void 0,void 0,function*(){try{if(qy())throw new Ff;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,token:s}}=r,a=pFt(r,["findBy"]);return Zke(e,n,i,s,a)}return eOe(e,r)}catch(n){throw mi(`Download Artifact failed with error: ${n}.
|
|
|
|
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
|
|
|
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return yB(this,void 0,void 0,function*(){try{if(qy())throw new Ff;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:i,token:s}}=e;return fOe(r,n,i,s,e?.latest)}return hOe(e?.latest)}catch(r){throw mi(`Listing Artifacts failed with error: ${r}.
|
|
|
|
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
|
|
|
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return yB(this,void 0,void 0,function*(){try{if(qy())throw new Ff;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:i,repositoryName:s,token:a}}=r;return nk(e,n,i,s,a)}return aOe(e)}catch(n){throw mi(`Get Artifact failed with error: ${n}.
|
|
|
|
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
|
|
|
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return yB(this,void 0,void 0,function*(){try{if(qy())throw new Ff;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,workflowRunId:s,token:a}}=r;return lOe(e,s,n,i,a)}return uOe(e)}catch(n){throw mi(`Delete Artifact failed with error: ${n}.
|
|
|
|
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
|
|
|
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var wOr=new oC;var ok=class{static{o(this,"GitHubArtifact")}static async upload(e){if(Xe.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=tK.default.basename(e.filename),n=new oC;O(`Uploading ${r} as an artifact`);let i=tK.default.dirname(e.filename),s=await n.uploadArtifact(r,[e.filename],i,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new pc("Cannot upload artifact");let a=s.size??AOe.default.statSync(e.filename).size,c=`${Xe.workflowRunURL()}/artifacts/${s.id}`;return O(`Artifact download URL: ${c}`),{id:s.id,filename:r,digest:s.digest||"",size:a,url:c}}};var EK=N(mOe(),1);var kt=Symbol("NOT_RESOLVED");function Li(t,e){return{tagName:t,nodeKind:"scalar",implicit:e.implicit??!1,matchByTagPrefix:e.matchByTagPrefix??!1,implicitFirstChars:e.implicitFirstChars??null,resolve:e.resolve,identify:e.identify,represent:e.represent??(r=>String(r)),representTagName:e.representTagName??(()=>t)}}o(Li,"defineScalarTag");function hK(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"sequence",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addItem:e.addItem,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(hK,"defineSequenceTag");function uk(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"mapping",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addPair:e.addPair,has:e.has,keys:e.keys,get:e.get,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(uk,"defineMappingTag");var AFt=Li("tag:yaml.org,2002:str",{resolve:o(t=>t,"resolve"),identify:o(t=>typeof t=="string","identify")}),mFt=["","~","null","Null","NULL"],gFt=Li("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>mFt.indexOf(t)!==-1?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),yFt=Li("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:o((t,e)=>t==="null"||e&&t===""?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),EFt=["","~","null","Null","NULL"],CFt=Li("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>EFt.indexOf(t)!==-1?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),bFt=["true","True","TRUE"],wFt=["false","False","FALSE"],IFt=Li("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:o(t=>bFt.indexOf(t)!==-1?!0:wFt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),SFt=["true"],BFt=["false"],xFt=Li("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:o(t=>SFt.indexOf(t)!==-1?!0:BFt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),vFt=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],NFt=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],_Ft=Li("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:o(t=>vFt.indexOf(t)!==-1?!0:NFt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),TFt=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),RFt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function DFt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(DFt,"parseYamlInteger$2");function QFt(t,e){if(e){if(!RFt.test(t))return kt}else if(!TFt.test(t))return kt;let r=DFt(t);return Number.isFinite(r)?r:kt}o(QFt,"resolveYamlInteger$2");var BOe=Li("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:QFt,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),PFt=new RegExp("^-?(?:0|[1-9][0-9]*)$"),kFt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function OFt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(OFt,"parseYamlInteger$1");function LFt(t,e){if(e){if(!kFt.test(t))return kt}else if(!PFt.test(t))return kt;let r=OFt(t);return Number.isFinite(r)?r:kt}o(LFt,"resolveYamlInteger$1");var FFt=Li("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:LFt,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),MFt=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function UFt(t){let e=t.replace(/_/g,""),r=1;if((e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b"))return r*parseInt(e.slice(2),2);if(e.startsWith("0x"))return r*parseInt(e.slice(2),16);if(e.includes(":")){let n=0;for(let i of e.split(":"))n=n*60+Number(i);return r*n}return e!=="0"&&e[0]==="0"?r*parseInt(e,8):r*parseInt(e,10)}o(UFt,"parseYamlInteger");function qFt(t){if(!MFt.test(t))return kt;let e=UFt(t);return Number.isFinite(e)?e:kt}o(qFt,"resolveYamlInteger");var sK=Li("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:qFt,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),GFt=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),HFt=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function VFt(t){if(!GFt.test(t))return kt;let e=t.toLowerCase(),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=r*parseFloat(e);return Number.isFinite(n)||HFt.test(t)?n:kt}o(VFt,"resolveYamlFloat$2");function zFt(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}o(zFt,"representYamlFloat$2");var xOe=Li("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:VFt,identify:o(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:zFt}),$Ft=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),jFt=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function WFt(t,e){if(e){if(!jFt.test(t))return kt;let n=t.toLowerCase(),i=n[0]==="-"?-1:1;if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let s=i*parseFloat(n);return Number.isFinite(s)?s:kt}if(!$Ft.test(t))return kt;let r=Number(t);return Number.isFinite(r)?r:kt}o(WFt,"resolveYamlFloat$1");function JFt(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}o(JFt,"representYamlFloat$1");var YFt=Li("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:WFt,identify:o(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:JFt}),KFt=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),XFt=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ZFt(t){if(!KFt.test(t))return kt;let e=t.toLowerCase().replace(/_/g,""),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=0;if(e.includes(":")){for(let i of e.split(":"))n=n*60+Number(i);n*=r}else n=r*parseFloat(e);return Number.isFinite(n)||XFt.test(t)?n:kt}o(ZFt,"resolveYamlFloat");function eMt(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}o(eMt,"representYamlFloat");var oK=Li("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:ZFt,identify:o(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:eMt}),tMt=Li("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:o((t,e)=>t==="<<"||e&&t===""?"<<":kt,"resolve"),identify:o(()=>!1,"identify")}),rMt=/^[A-Za-z0-9+/]*={0,2}$/;function nMt(t){let e=t.replace(/\s/g,"");if(e.length%4!==0||!rMt.test(e))return kt;let r=atob(e),n=new Uint8Array(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n}o(nMt,"resolveYamlBinary");function iMt(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}o(iMt,"representYamlBinary");var sMt=Li("tag:yaml.org,2002:binary",{resolve:nMt,identify:o(t=>Object.prototype.toString.call(t)==="[object Uint8Array]","identify"),represent:iMt}),oMt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),aMt=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 gOe(t,e,r,n=0,i=0,s=0,a=0){let c=new Date(Date.UTC(t,e,r,n,i,s,a));return c.setUTCFullYear(t,e,r),c}o(gOe,"makeUtcDate");function cMt(t){let e=oMt.exec(t);if(e===null&&(e=aMt.exec(t)),e===null)return kt;let r=+e[1],n=+e[2]-1,i=+e[3];if(!e[4]){let d=gOe(r,n,i);return d.getUTCFullYear()!==r||d.getUTCMonth()!==n||d.getUTCDate()!==i?kt:d}let s=+e[4],a=+e[5],c=+e[6],l=0;if(s>23||a>59||c>59)return kt;if(e[7]){let d=e[7].slice(0,3);for(;d.length<3;)d+="0";l=+d}let u=gOe(r,n,i,s,a,c,l);if(u.getUTCFullYear()!==r||u.getUTCMonth()!==n||u.getUTCDate()!==i)return kt;if(e[9]){let d=+e[10],f=+(e[11]||0);if(d>23||f>59)return kt;let h=(d*60+f)*6e4;u.setTime(u.getTime()-(e[9]==="-"?-h:h))}return u}o(cMt,"resolveYamlTimestamp");var lMt=Li("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:cMt,identify:o(t=>t instanceof Date,"identify"),represent:o(t=>t.toISOString(),"represent")}),uMt=hK("tag:yaml.org,2002:seq",{create:o(()=>[],"create"),addItem:o((t,e)=>{t.push(e)},"addItem"),identify:Array.isArray});function dk(t){if(t===null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}o(dk,"isPlainObject");function dMt(t,e){let r={};for(let n of e)t[n]!==void 0&&(r[n]=t[n]);return r}o(dMt,"pick");var fMt=hK("tag:yaml.org,2002:omap",{create:o(()=>({list:[],seen:new Set}),"create"),addItem:o((t,e)=>{let r;if(e instanceof Map){if(e.size!==1)return"cannot resolve an ordered map item";r=e.keys().next().value}else if(dk(e)){let n=Object.keys(e);if(n.length!==1)return"cannot resolve an ordered map item";r=n[0]}else return"cannot resolve an ordered map item";return t.seen.has(r)?"duplicate key in ordered map":(t.seen.add(r),t.list.push(e),"")},"addItem"),finalize:o(t=>t.list,"finalize"),identify:o(()=>!1,"identify")}),hMt=hK("tag:yaml.org,2002:pairs",{create:o(()=>[],"create"),addItem:o((t,e)=>{if(e instanceof Map)return e.size!==1?"cannot resolve a pairs item":(t.push(e.entries().next().value),"");if(Object.prototype.toString.call(e)!=="[object Object]")return"cannot resolve a pairs item";let r=e,n=Object.keys(r);return n.length!==1?"cannot resolve a pairs item":(t.push([n[0],r[n[0]]]),"")},"addItem"),identify:o(()=>!1,"identify")}),pMt=uk("tag:yaml.org,2002:map",{create:o(()=>({}),"create"),identify:dk,represent:o(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:o((t,e,r)=>{if(e!==null&&typeof e=="object")return"object-based map does not support complex keys";let n=String(e);return n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,""},"addPair"),has:o((t,e)=>e!==null&&typeof e=="object"?!1:Object.prototype.hasOwnProperty.call(t,String(e)),"has"),keys:o(t=>Object.keys(t),"keys"),get:o((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),AMt=uk("tag:yaml.org,2002:set",{create:o(()=>new Set,"create"),identify:o(t=>t instanceof Set,"identify"),represent:o(t=>{let e=new Map;for(let r of t)e.set(r,null);return e},"represent"),addPair:o((t,e,r)=>r!==null?"cannot resolve a set item":(t.add(e),""),"addPair"),has:o((t,e)=>t.has(e),"has"),keys:o(t=>t.keys(),"keys"),get:o(()=>null,"get")});function mMt(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}o(mMt,"createTagDefinitionMap");function gMt(){return{scalar:[],sequence:[],mapping:[]}}o(gMt,"createTagDefinitionListMap");function yMt(t){let e=[];for(let r of t){let n=e.length;for(let i=0;i<e.length;i++){let s=e[i];if(s.nodeKind===r.nodeKind&&s.tagName===r.tagName&&s.matchByTagPrefix===r.matchByTagPrefix){n=i;break}}e[n]=r}return e}o(yMt,"compileTags");var fk=class vOe{static{o(this,"Schema")}tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let r=yMt(e),n=[],i=mMt(),s=gMt();for(let d of r){if(d.nodeKind==="scalar"&&d.implicit){if(d.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");n.push(d)}switch(d.nodeKind){case"scalar":d.matchByTagPrefix?s.scalar.push(d):i.scalar[d.tagName]=d;break;case"sequence":d.matchByTagPrefix?s.sequence.push(d):i.sequence[d.tagName]=d;break;case"mapping":d.matchByTagPrefix?s.mapping.push(d):i.mapping[d.tagName]=d;break}}let a=n.filter(d=>d.implicitFirstChars===null),c=new Set;for(let d of n)if(d.implicitFirstChars!==null)for(let f of d.implicitFirstChars)c.add(f);let l=new Map;for(let d of c)l.set(d,n.filter(f=>f.implicitFirstChars===null||f.implicitFirstChars.indexOf(d)!==-1));let u=i.scalar["tag:yaml.org,2002:str"];if(!u)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=r,this.implicitScalarTags=n,this.implicitScalarByFirstChar=l,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=u,this.defaultSequenceTag=i.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=i.mapping["tag:yaml.org,2002:map"],this.exact=i,this.prefix=s}lookupScalarTag(e){let r=this.exact.scalar[e];if(r)return r;for(let n of this.prefix.scalar)if(e.startsWith(n.tagName))return n}lookupSequenceTag(e){let r=this.exact.sequence[e];if(r)return r;for(let n of this.prefix.sequence)if(e.startsWith(n.tagName))return n}lookupMappingTag(e){let r=this.exact.mapping[e];if(r)return r;for(let n of this.prefix.mapping)if(e.startsWith(n.tagName))return n}resolveImplicitScalarTag(e){let r=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let i of r){let s=i.resolve(e,!1,i.tagName);if(s!==kt)return{value:s,tag:i}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...e){let r=[];for(let n of e)r=r.concat(n);return new vOe([...this.tags,...r])}},pK=new fk([AFt,uMt,pMt]),DOr=new fk([...pK.tags,yFt,xFt,FFt,YFt]),EMt=new fk([...pK.tags,gFt,IFt,BOe,xOe]),CMt=new fk([...pK.tags,CFt,_Ft,sK,oK,lMt,tMt,sMt,fMt,hMt,AMt]),bMt=CMt.withTags({...sK,resolve:o((t,e,r)=>{let n=sK.resolve(t,e,r);return n===kt?BOe.resolve(t,e,r):n},"resolve")},{...oK,resolve:o((t,e,r)=>{let n=oK.resolve(t,e,r);return n===kt?xOe.resolve(t,e,r):n},"resolve")}),QOr=uk("tag:yaml.org,2002:map",{create:o(()=>new Map,"create"),addPair:o((t,e,r)=>(t.set(e,r),""),"addPair"),has:o((t,e)=>t.has(e),"has"),keys:o(t=>t.keys(),"keys"),get:o((t,e)=>t.get(e),"get"),identify:o(t=>t instanceof Map||dk(t),"identify"),represent:o(t=>{if(t instanceof Map)return t;let e=new Map,r=t;for(let n of Object.keys(r))e.set(n,r[n]);return e},"represent")});function yOe(t){if(Array.isArray(t)){let e=Array.prototype.slice.call(t);for(let r=0;r<e.length;r++){if(Array.isArray(e[r]))return null;typeof e[r]=="object"&&Object.prototype.toString.call(e[r])==="[object Object]"&&(e[r]="[object Object]")}return String(e)}return typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"?"[object Object]":String(t)}o(yOe,"normalizeKey");var POr=uk("tag:yaml.org,2002:map",{create:o(()=>({}),"create"),identify:dk,represent:o(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:o((t,e,r)=>{let n=yOe(e);return n===null?"nested arrays are not supported inside keys":(n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,"")},"addPair"),has:o((t,e)=>{let r=yOe(e);return r!==null&&Object.prototype.hasOwnProperty.call(t,r)},"has"),keys:o(t=>Object.keys(t),"keys"),get:o((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),wMt={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function rK(t,e,r,n,i){let s="",a="",c=Math.floor(i/2)-1;return n-e>c&&(s=" ... ",e=n-c+s.length),r-n>c&&(a=" ...",r=n+c-a.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:n-e+s.length}}o(rK,"getLine");function nK(t,e){return" ".repeat(Math.max(e-t.length,0))+t}o(nK,"padStart");function IMt(t,e){if(!t.buffer)return null;let r={...wMt,...e},n=/\r?\n|\r|\0/g,i=[0],s=[],a,c=-1;for(;a=n.exec(t.buffer);)s.push(a.index),i.push(a.index+a[0].length),t.position<=a.index&&c<0&&(c=i.length-2);c<0&&(c=i.length-1);let l="",u=Math.min(t.line+r.linesAfter,s.length).toString().length,d=r.maxLength-(r.indent+u+3);for(let h=1;h<=r.linesBefore&&!(c-h<0);h++){let p=rK(t.buffer,i[c-h],s[c-h],t.position-(i[c]-i[c-h]),d);l=`${" ".repeat(r.indent)}${nK((t.line-h+1).toString(),u)} | ${p.str}
|
|
${l}`}let f=rK(t.buffer,i[c],s[c],t.position,d);l+=`${" ".repeat(r.indent)}${nK((t.line+1).toString(),u)} | ${f.str}
|
|
`,l+=`${"-".repeat(r.indent+u+3+f.pos)}^
|
|
`;for(let h=1;h<=r.linesAfter&&!(c+h>=s.length);h++){let p=rK(t.buffer,i[c+h],s[c+h],t.position-(i[c]-i[c+h]),d);l+=`${" ".repeat(r.indent)}${nK((t.line+h+1).toString(),u)} | ${p.str}
|
|
`}return l.replace(/\n$/,"")}o(IMt,"makeSnippet");function EOe(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
|
|
|
|
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(EOe,"formatError");var SMt=class NOe extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=EOe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${EOe(this,e)}`}static throwAt(e,r,n,i=""){let s=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(s++,a=l+1):u===13&&(s++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:i,buffer:e,position:r,line:s,column:r-a};throw c.snippet=IMt(c),new NOe(n,c)}},aC={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},it={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},lh={BLOCK:1,FLOW:2},AK={CLIP:1,STRIP:2,KEEP:3};function COe(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}o(COe,"simpleEscapeSequence");var BMt=new Array(256),xMt=new Array(256);for(let t=0;t<256;t++)BMt[t]=COe(t)?1:0,xMt[t]=COe(t);var kOr=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function iK(t){return encodeURI(t).replace(/!/g,"%21")}o(iK,"tagPercentEncode");function _Oe(t){let e=t;return e.charCodeAt(0)===33?(e=e.slice(1),`!${iK(e)}`):e.slice(0,18)==="tag:yaml.org,2002:"?`!!${iK(e.slice(18))}`:`!<${iK(e)}>`}o(_Oe,"tagNameShort");var vMt={filename:"",schema:EMt,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};var aK=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,TOe=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,OOr=new RegExp(`^(?:${aK})*$`),LOr=new RegExp(`^(?:${TOe})+$`),FOr=new RegExp(`^(?:!(?:${aK})*|${TOe}(?:${aK})*)$`),NMt={filename:"",maxDepth:100};var MOr={...NMt,...vMt};var qA=Symbol("INVALID");function _Mt(t){let e=new Set([t.defaultScalarTag,t.defaultSequenceTag,t.defaultMappingTag].filter(s=>s!==void 0)),r=t.implicitScalarTags,n=t.tags.filter(s=>!(s.nodeKind==="scalar"&&s.implicit)&&!e.has(s)),i=t.tags.filter(s=>e.has(s));return[...r.map(s=>({tag:s,implicitTag:!0})),...n.map(s=>({tag:s,implicitTag:!1})),...i.map(s=>({tag:s,implicitTag:!0}))]}o(_Mt,"buildRepresentTypes");function TMt(t,e){for(let r=0,n=t.representTypes.length;r<n;r+=1){let{tag:i,implicitTag:s}=t.representTypes[r];if(i.identify(e)){let a;return i.matchByTagPrefix?a=i.representTagName(e):a=i.tagName,{tag:i,tagName:a,implicitTag:s}}}return null}o(TMt,"matchTag");function bB(t,e){if(!t.noRefs&&e!==null&&typeof e=="object"){let u=t.refs.get(e);if(u)return u.anchor===void 0&&(u.anchor=`ref_${t.refCounter++}`),{kind:"alias",anchor:u.anchor}}let r=TMt(t,e);if(!r){if(e===void 0||t.skipInvalid)return qA;throw new SMt(`unacceptable kind of an object to dump ${Object.prototype.toString.call(e)}`)}let{tag:n,tagName:i,implicitTag:s}=r,a=s?i:_Oe(i);if(n.nodeKind==="scalar")return{kind:"scalar",tag:a,tagged:!s,style:it.PLAIN,value:n.represent(e)};if(n.nodeKind==="sequence"){let u=n.represent(e),d={kind:"sequence",tag:a,tagged:!s,style:lh.BLOCK,items:[]};t.noRefs||t.refs.set(e,d);for(let f=0,h=u.length;f<h;f+=1){let p=bB(t,u[f]);p===qA&&u[f]===void 0&&(p=bB(t,null)),p!==qA&&d.items.push(p)}return d}let c=n.represent(e),l={kind:"mapping",tag:a,tagged:!s,style:lh.BLOCK,items:[]};t.noRefs||t.refs.set(e,l);for(let[u,d]of c){let f=bB(t,u);if(f===qA)continue;let h=bB(t,d);h!==qA&&l.items.push({key:f,value:h})}return l}o(bB,"build");function RMt(t,e,r={}){let n=bB({representTypes:_Mt(e),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},t);return[{contents:n===qA?null:n,directives:[]}]}o(RMt,"jsToAst");var DMt=Symbol("visit:break"),ROe=Symbol("visit:skip");function ck(t,e,r){let n=e(t,r);if(n===DMt)return!0;if(n===ROe)return!1;let i=r.depth+1;switch(t.kind){case"sequence":for(let s of t.items)if(ck(s,e,{depth:i,parent:t,isKey:!1}))return!0;break;case"mapping":for(let{key:s,value:a}of t.items)if(ck(s,e,{depth:i,parent:t,isKey:!0})||ck(a,e,{depth:i,parent:t,isKey:!1}))return!0;break}return!1}o(ck,"visitNode");function bOe(t,e){for(let r of t)if(r.contents&&ck(r.contents,e,{depth:0,parent:null,isKey:!1}))return}o(bOe,"visit");function hk(t,e){return(t&1<<e)!==0}o(hk,"hasBit");var wOe={applyQuoteFlowKeysOption:QMt,doubleQuoteForInvisibles:PMt,doubleQuoteWhitespaceOnly:kMt,applyForceQuotesOption:OMt,tryLongOrMultilineAsBlock:LMt,quoteInvalidPlain:FMt,fallbackToDoubleQuoted:MMt};function DOe(t){return t.presenterOptions.quoteStyle==="single"&&hk(t.allowedStylesMask,it.SINGLE_QUOTED)?it.SINGLE_QUOTED:it.DOUBLE_QUOTED}o(DOe,"_preferredQuotedStyle");function QMt(t){t.presenterOptions.quoteFlowKeys&&(!t.isKey||!t.flowOnly||t.style!==it.PLAIN||(t.style=it.DOUBLE_QUOTED))}o(QMt,"applyQuoteFlowKeysOption");function PMt(t){t.style===it.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(t.node.value)&&(t.style=it.DOUBLE_QUOTED)}o(PMt,"doubleQuoteForInvisibles");function kMt(t){t.style===it.PLAIN&&/^\s+$/.test(t.node.value)&&(t.style=it.DOUBLE_QUOTED)}o(kMt,"doubleQuoteWhitespaceOnly");function OMt(t){t.presenterOptions.forceQuotes&&(t.isKey||t.style!==it.PLAIN||t.node.tag===t.presenterOptions.schema.defaultScalarTag.tagName&&(t.style=t.node.value.includes(`
|
|
`)?it.DOUBLE_QUOTED:DOe(t)))}o(OMt,"applyForceQuotesOption");function LMt(t){if(t.style!==it.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
|
|
`)!==-1;if(!hk(t.allowedStylesMask,it.LITERAL_BLOCK)){r&&(t.style=it.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=it.LITERAL_BLOCK);return}let i=Math.max(Math.min(n,40),n-t.shiftOfContent),s=0,a=!1;for(;s<=e.length;){let c=e.length,l=e.indexOf(`
|
|
`,s);l!==-1&&(c=l);let u=e.slice(s,c);if(u.length>i&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;s=l+1}a?t.style=it.FOLDED_BLOCK:r&&(t.style=it.LITERAL_BLOCK)}o(LMt,"tryLongOrMultilineAsBlock");function FMt(t){t.style===it.PLAIN&&!hk(t.allowedStylesMask,it.PLAIN)&&(t.style=DOe(t))}o(FMt,"quoteInvalidPlain");function MMt(t){hk(t.allowedStylesMask,t.style)||(t.style=it.DOUBLE_QUOTED)}o(MMt,"fallbackToDoubleQuoted");function CB(t,e){return t|1<<e}o(CB,"setBit");var UMt="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",qMt="[\\n\\r]",GMt="\\uFEFF",mK="[ \\t]",QOe=`(?:(?!(?:${qMt}|${GMt}))${UMt})`,pk=`(?:(?!${mK})${QOe})`,POe="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",kOe="[-?:,\\[\\]{}#&*!|>'\"%@`]",HMt="[,\\[\\]{}]",cK=pk,lK=`(?:(?!${HMt})${pk})`,VMt=`(?:(?:(?!${kOe})${pk})|[?:-](?=${cK}))`,zMt=`(?:(?:(?!${kOe})${pk})|[?:-](?=${lK}))`,OOe=`(?:(?:(?![:#])${cK})|:(?=${cK}))#*`,LOe=`(?:(?:(?![:#])${lK})|:(?=${lK}))#*`,FOe=`(?:${mK}*${OOe})*`,MOe=`(?:${mK}*${LOe})*`,UOe=`${VMt}#*${FOe}`,qOe=`${zMt}#*${MOe}`,$Mt=UOe,jMt=qOe,WMt=`\\n+${OOe}${FOe}`,JMt=`\\n+${LOe}${MOe}`,YMt=`${UOe}(?:${WMt})*`,KMt=`${qOe}(?:${JMt})*`,XMt=new RegExp(`^(?:${YMt})$`,"u"),ZMt=new RegExp(`^(?:${KMt})$`,"u"),eUt=new RegExp(`^(?:${$Mt})$`,"u"),tUt=new RegExp(`^(?:${jMt})$`,"u"),rUt=new RegExp(`^(?:${POe})*$`,"u"),nUt=new RegExp(`^(?:${POe}|\\n)*$`,"u"),iUt=new RegExp(`^(?:${QOe}|\\n)*$`,"u"),sUt=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,gK=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function oUt(t){let e=t.node.value;if(e!==""){if(!(t.isKey?t.flowOnly?tUt:eUt:t.flowOnly?ZMt:XMt).test(e)||t.shiftOfFirstLine===0&&sUt.test(e))return!1;if(t.shiftOfContent===0){let n=e.indexOf(`
|
|
`);if(n!==-1){let i=e.slice(n+1);if(gK.test(i))return!1}}}let r=t.presenterOptions.schema.resolveImplicitScalarTag(e).tag.tagName;return!(!t.node.tagged&&r!==t.node.tag||!t.node.tagged&&e==="="&&r===t.presenterOptions.schema.defaultScalarTag.tagName)}o(oUt,"canUsePlain");function aUt(t){let e=t.node.value;if(!(t.isKey?rUt:nUt).test(e)||/[ \t]\n|\n[ \t]/.test(e))return!1;if(!t.isKey&&t.shiftOfContent===0){let r=e.indexOf(`
|
|
`);if(r!==-1&&gK.test(e.slice(r+1)))return!1}return!0}o(aUt,"canUseSingleQuoted");function cUt(t){if(t.flowOnly||!iUt.test(t.node.value))return!1;let e=t.shiftOfContent-t.shiftOfParent;return!(e<1||e>9&&/^\n* /.test(t.node.value)||t.shiftOfContent===0&&gK.test(t.node.value))}o(cUt,"canUseBlock");function lUt(t){let e=CB(0,it.DOUBLE_QUOTED);oUt(t)&&(e=CB(e,it.PLAIN)),aUt(t)&&(e=CB(e,it.SINGLE_QUOTED)),cUt(t)&&(e=CB(CB(e,it.LITERAL_BLOCK),it.FOLDED_BLOCK)),t.allowedStylesMask=e}o(lUt,"detectAllowedStyles");function uUt(t){switch(t.style){case it.PLAIN:return dUt(t);case it.SINGLE_QUOTED:return fUt(t);case it.LITERAL_BLOCK:return hUt(t);case it.FOLDED_BLOCK:return pUt(t);case it.DOUBLE_QUOTED:return AUt(t)}}o(uUt,"renderScalar");function dUt(t){return GOe(t.node.value,t.shiftOfContent)}o(dUt,"renderPlain");function fUt(t){return`'${GOe(t.node.value,t.shiftOfContent).replace(/'/g,"''")}'`}o(fUt,"renderSingleQuoted");function hUt(t){let e=t.node.value;return"|"+VOe(e,t.shiftOfParent,t.shiftOfContent)+zOe(HOe(e,t.shiftOfContent))}o(hUt,"renderLiteralBlock");function pUt(t){let e=t.node.value,r=t.presenterOptions.lineWidth,n=1/0;return r!==-1&&(n=Math.max(Math.min(r,40),r-t.shiftOfContent)),">"+VOe(e,t.shiftOfParent,t.shiftOfContent)+zOe(HOe(gUt(e,n),t.shiftOfContent))}o(pUt,"renderFoldedBlock");function AUt(t){return`"${CUt(t.node.value)}"`}o(AUt,"renderDoubleQuoted");function GOe(t,e){let r=t.indexOf(`
|
|
`);if(r===-1)return t;let n=" ".repeat(e),i=t.slice(0,r),s=/(\n+)([^\n]*)/g;s.lastIndex=r;let a;for(;a=s.exec(t);){let c=a[1].length,l=a[2];i+=`
|
|
`.repeat(c+1)+n+l}return i}o(GOe,"encodeFlowBreaks");function HOe(t,e){let r=" ".repeat(e),n=0,i="",s=t.length;for(;n<s;){let a,c=t.indexOf(`
|
|
`,n);c===-1?(a=t.slice(n),n=s):(a=t.slice(n,c+1),n=c+1),a.length&&a!==`
|
|
`&&(i+=r),i+=a}return i}o(HOe,"indentString");function mUt(t){return/^\n* /.test(t)}o(mUt,"needIndentIndicator");function VOe(t,e,r){let n=mUt(t)?String(r-e):"",i=t[t.length-1]===`
|
|
`;return`${n}${i&&(t[t.length-2]===`
|
|
`||t===`
|
|
`)?"+":i?"":"-"}
|
|
`}o(VOe,"blockHeader");function zOe(t){return t[t.length-1]===`
|
|
`?t.slice(0,-1):t}o(zOe,"dropEndingNewline");function uK(t){return t===" "||t===" "}o(uK,"isMoreIndented");function IOe(t,e){if(t===""||uK(t[0]))return t;let r=/ [^ \t]/g,n,i=0,s,a=0,c=0,l="";for(;n=r.exec(t);)c=n.index,c-i>e&&(s=a>i?a:c,l+=`
|
|
${t.slice(i,s)}`,i=s+1),a=c;return l+=`
|
|
`,t.length-i>e&&a>i?l+=`${t.slice(i,a)}
|
|
${t.slice(a+1)}`:l+=t.slice(i),l.slice(1)}o(IOe,"foldLine");function gUt(t,e){let r=/(\n+)([^\n]*)/g,n=t.indexOf(`
|
|
`);n===-1&&(n=t.length),r.lastIndex=n;let i=IOe(t.slice(0,n),e),s=t[0]===`
|
|
`||uK(t[0]),a,c;for(;c=r.exec(t);){let l=c[1],u=c[2];a=u!==""&&uK(u[0]),i+=l+(!s&&!a&&u!==""?`
|
|
`:"")+IOe(u,e),s=a}return i}o(gUt,"foldBlockScalar");var yUt=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function EUt(t){switch(t){case"\0":return"\\0";case"\x07":return"\\a";case"\b":return"\\b";case" ":return"\\t";case`
|
|
`:return"\\n";case"\v":return"\\v";case"\f":return"\\f";case"\r":return"\\r";case"\x1B":return"\\e";case'"':return'\\"';case"\\":return"\\\\";case"\x85":return"\\N";case"\xA0":return"\\_";case"\u2028":return"\\L";case"\u2029":return"\\P"}let e=t.charCodeAt(0),r=e.toString(16).toUpperCase();return e<=255?`\\x${"0".repeat(2-r.length)}${r}`:`\\u${"0".repeat(4-r.length)}${r}`}o(EUt,"escapeCharacter");function CUt(t){return t.replace(yUt,EUt)}o(CUt,"escapeString");var lk=10,yK={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(wOe).map(t=>Reflect.get(wOe,t)),tagBeforeAnchor:!1};function bUt(t){return t.tagged?t.tag:_Oe(t.tag)}o(bUt,"nodeTagShort");function wUt(t){let e={...yK,...t};return e.flowSkipColonSpace&&(e.quoteFlowKeys=!0),{...e,defaultScalarTagName:e.schema.defaultScalarTag.tagName,openEnded:!1}}o(wUt,"createPresenterState");function dK(t,e){return`
|
|
${" ".repeat(t.indent*e)}`}o(dK,"generateNextLine");function IUt(t,e,r,n,i,s){return{node:e,parent:r,level:n,isKey:i,flowOnly:s,shiftOfParent:n===0?-1:t.indent*(n-1),shiftOfContent:t.indent*Math.max(1,n),shiftOfFirstLine:n===0?0:t.indent*n,presenterOptions:t,allowedStylesMask:0,style:e.style}}o(IUt,"scalarLayout");function SUt(t,e,r){let n="";for(let s=0,a=r.items.length;s<a;s+=1){let c=Sd(t,e,r.items[s],r,{}).text;s>0&&(n+=`,${t.flowSkipCommaSpace?"":" "}`),n+=c}let i=t.flowBracketPadding&&r.items.length>0?" ":"";return`[${i}${n}${i}]`}o(SUt,"writeFlowSequence");function SOe(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c=Sd(t,e+1,r.items[s],r,{block:!0,compact:t.seqInlineFirst,isblockseq:!0}).text;(!n||i!=="")&&(i+=dK(t,e)),c===""||lk===c.charCodeAt(0)?i+="-":i+="- ",i+=c}return i}o(SOe,"writeBlockSequence");function BUt(t,e,r){let n="";for(let{key:s,value:a}of r.items){let c="";n!==""&&(c+=`,${t.flowSkipCommaSpace?"":" "}`);let l=Sd(t,e,s,r,{iskey:!0}),u=l.text,d=Sd(t,e,a,r,{}).text,f=t.flowSkipColonSpace||d===""?"":" ",h=s.kind==="scalar"&&l.noBody&&(s.tagged||s.anchor!==void 0),p=s.kind==="alias"||h?" ":"";c+=`${u}${p}:${f}${d}`,n+=c}let i=t.flowBracketPadding&&n!==""?" ":"";return`{${i}${n}${i}}`}o(BUt,"writeFlowMapping");function xUt(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c="";(!n||i!=="")&&(c+=dK(t,e));let{key:l,value:u}=r.items[s],d=(l.kind==="mapping"||l.kind==="sequence")&&l.style===lh.BLOCK&&l.items.length!==0||l.kind==="scalar"&&(l.style===it.LITERAL_BLOCK||l.style===it.FOLDED_BLOCK),f=d?Sd(t,e+1,l,r,{block:!0,compact:!0,isblockseq:!fK(t,l,e+1)}):Sd(t,e+1,l,r,{block:!0,compact:!0,iskey:!0}),h=f.text,p=l.kind==="scalar"&&l.value.indexOf(`
|
|
`)!==-1,g=h.length>1024&&/^[\s\S]{1025}/u.test(h),A=d||p||g;A&&(h&&lk===h.charCodeAt(0)?c+="?":c+="? "),c+=h,A&&(c+=dK(t,e));let E=Sd(t,e+1,u,r,{block:!0,compact:A,isblockseq:A&&!fK(t,u,e+1)}).text,y=l.kind==="scalar"&&f.noBody&&(l.tagged||l.anchor!==void 0),C=!A&&(l.kind==="alias"||y)?" ":"";E===""||lk===E.charCodeAt(0)?c+=`${C}:`:c+=`${C}: `,c+=E,i+=c}return i}o(xUt,"writeBlockMapping");function fK(t,e,r){return e.kind==="alias"?!0:e.tagged||e.anchor!==void 0||t.indent<2&&r>0}o(fK,"cannotBeCompact");function Sd(t,e,r,n,i){if(r.kind==="alias")return t.openEnded=!1,{text:`*${r.anchor}`,noBody:!1};let{block:s=!1,iskey:a=!1,isblockseq:c=!1}=i,l=i.compact??!1,u=r.anchor!==void 0;fK(t,r,e)&&(l=!1);let d,f=r.tagged,h=s&&(r.kind==="mapping"||r.kind==="sequence")&&r.style===lh.BLOCK&&r.items.length!==0;if(r.kind==="mapping")h?d=xUt(t,e,r,l):d=BUt(t,e,r);else if(r.kind==="sequence")h?t.seqNoIndent&&!c&&e>0?d=SOe(t,e-1,r,l):d=SOe(t,e,r,l):d=SUt(t,e,r);else{let A=IUt(t,r,n,e,a,!s);lUt(A);for(let E of t.scalarStyleRules)E(A);d=uUt(A),t.openEnded=(A.style===it.LITERAL_BLOCK||A.style===it.FOLDED_BLOCK)&&(r.value===`
|
|
`||r.value.endsWith(`
|
|
|
|
`)),f=r.tagged||d===""&&A.flowOnly&&n?.kind==="sequence"&&!u||A.style!==it.PLAIN&&r.tag!==t.defaultScalarTagName}(r.kind==="mapping"||r.kind==="sequence")&&!h&&(t.openEnded=!1),h&&l&&e>0&&t.indent>2&&(d=`${" ".repeat(t.indent-2)}${d}`);let p=d==="",g=d;if(f||u){let A=[],E=f?bUt(r):null,y=u?`&${r.anchor}`:null;t.tagBeforeAnchor?(E!==null&&A.push(E),y!==null&&A.push(y)):(y!==null&&A.push(y),E!==null&&A.push(E));let C=d===""||d.charCodeAt(0)===lk?"":" ";g=`${A.join(" ")}${C}${d}`}return{text:g,noBody:p}}o(Sd,"writeNode");function vUt(t){return(t.kind==="sequence"||t.kind==="mapping")&&t.style===lh.BLOCK&&t.items.length!==0&&!t.tagged&&t.anchor===void 0}o(vUt,"rootStartsOwnLine");function NUt(t){let e="";for(let r of t.directives){if(r.kind==="yaml"){e+=`%YAML ${r.version}
|
|
`;continue}let{handle:n,prefix:i}=r;e+=`%TAG ${n} ${i}
|
|
`}return e}o(NUt,"writeDocumentDirectives");function _Ut(t,e){let r=wUt(e),n="",i=!1;for(let s=0;s<t.length;s+=1){let a=t[s];r.openEnded=!1;let c=NUt(a),l=c!=="",u=a.explicitStart||l||s>0&&!i;if(n+=c,a.contents===null)u&&(n+=`---
|
|
`);else if(u){let d=Sd(r,0,a.contents,null,{block:!0,compact:!0}).text,f=d===""?"":l||vUt(a.contents)?`
|
|
`:" ";n+=`---${f}${d}
|
|
`}else n+=Sd(r,0,a.contents,null,{block:!0,compact:!0}).text+`
|
|
`;i=a.explicitEnd||r.openEnded,i&&(n+=`...
|
|
`)}return n}o(_Ut,"present");var TUt={...yK,schema:bMt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};function RUt(t,e){let r=String(t),n=String(e);return r<n?-1:r>n?1:0}o(RUt,"defaultCompareFn");function $Oe(t,e={}){let r={...TUt,...e},n=RMt(t,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&bOe(n,(i,s)=>{if(!(s.depth<r.flowLevel))return(i.kind==="sequence"||i.kind==="mapping")&&(i.style=lh.FLOW),ROe}),r.sortKeys){let i=r.sortKeys===!0?RUt:r.sortKeys;bOe(n,s=>{s.kind==="mapping"&&s.items.sort((a,c)=>i(a.key.kind==="scalar"?a.key.value:"",c.key.kind==="scalar"?c.key.value:""))})}return r.transform(n),_Ut(n,{...dMt(r,Object.keys(yK)),schema:r.schema})}o($Oe,"dump");var UOr=aC.DOCUMENT,qOr=aC.SEQUENCE,GOr=aC.MAPPING,HOr=aC.SCALAR,VOr=aC.ALIAS,zOr=aC.POP,$Or=it.PLAIN,jOr=it.SINGLE_QUOTED,WOr=it.DOUBLE_QUOTED,JOr=it.LITERAL_BLOCK,YOr=it.FOLDED_BLOCK,KOr=lh.BLOCK,XOr=lh.FLOW,ZOr=AK.CLIP,eLr=AK.STRIP,tLr=AK.KEEP;var jOe=N(require("os"),1);var Ak=class t{static{o(this,"GitHubSummary")}static async writeBuildSummary(e){let r=o(function(l,u,d=!1){return`<a href="${u}">${l}</a>`+(d?jOe.default.EOL:"")},"addLink"),n=e.exportRes.refs.length,i=n>0?e.exportRes.refs?.[0]:void 0,s=i?e.exportRes.summaries?.[i]:void 0,a=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,c=eq.addHeading("Docker Build summary",2);if(a&&n===1&&i&&s){let l=t.formatDBCBuildURL(a,i,s.defaultPlatform);c.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${l}</strong>`,l)}`).addRaw("</p>")}if(e.uploadRes){let l=`./${Xe.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;a&&n===1?c.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):c.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),c.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${te.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,l)} (${te.formatFileSize(e.uploadRes.size)} - includes <strong>${n} build record${n>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&c.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(c.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){c.addRaw("<p>");let l=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...a&&n>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let d in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,d)){let f=e.exportRes.summaries[d];l.push([{data:`<code>${d.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${te.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...a&&n>1?[{data:r(":whale: Open",t.formatDBCBuildURL(a,d,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}c.addTable([...l]),c.addRaw("</p>"),u&&(c.addRaw("<blockquote>"),te.countLines(u)>10?c.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(EK.default.encode(u),"text").addRaw("</details>"):c.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(EK.default.encode(u),"text").addRaw("</p>"),c.addRaw("</blockquote>"))}e.inputs&&c.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock($Oe(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&c.addRaw("<details><summary><strong>Bake definition</strong></summary>").addCodeBlock(JSON.stringify(e.bakeDefinition,null,2),"json").addRaw("</details>"),O("Writing summary"),await c.addSeparator().write()}static formatDBCBuildURL(e,r,n){return`https://app.docker.com/build/accounts/${e}/builds/${(n??"linux/amd64").replace("/","-")}/${r}`}};var GA=N(require("fs"),1),CK=N(require("path"),1);var jt=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Et,this.iidFilename=`build-iidfile-${te.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${te.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},i=Object.entries(n).filter(([p])=>!r.has(p)),s=te.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||is.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&te.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Xe.serverURL}/${is.repo.owner}/${is.repo.repo}.git`,l=e?.checksum||n.checksum,u=e?.subdir||n.subdir,d=e?.format;if(!d){if(d="fragment",i.length>0)d="query";else if(te.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let f=is.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(f=typeof is.payload.pull_request?.head?.sha=="string"?is.payload.pull_request.head.sha:a);let h=l||f;if(d==="query"){let p=[`ref=${s||l?a:h}`],g=s?h:l;g&&p.push(`checksum=${g}`),u&&u!=="."&&p.push(`subdir=${u}`);for(let[A,E]of i)p.push(`${A}=${E}`);return`${c}?${p.join("&")}`}return`${c}#${h}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return CK.default.join(yt.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(GA.default.existsSync(e))return GA.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return CK.default.join(yt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!GA.default.existsSync(e))return;let r=GA.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,i]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!GA.default.existsSync(i))throw new Error(`secret file ${i} not found`);return[n,i]}let s=yt.tmpName({tmpdir:yt.tmpDir()});return GA.default.writeFileSync(s,i),[n,s]}static getProvenanceInput(e){let r=li(e);if(!r)return r;try{return sp(e)?`builder-id=${Xe.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Xe.workflowRunURL(!0)}`;let r=Io(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim())[0]=="builder-id")return e;return`${e},builder-id=${Xe.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",i="",s="",a=Io(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?n=l[1]:l[0]==="repository"?i=l[1]:l[0]==="ghtoken"&&(s=l[1])}return n==="gha"&&(i||(e=`${e},repository=${Xe.repository}`),!s&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let n=Io(r.join(`
|
|
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=Io(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n)for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Io(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let i of r)for(let s of i)try{let a=te.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),i=e.substring(0,n),s=e.substring(n+1);if(i.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&Fc(s),[i,s]}};var bK=N(require("fs"),1),WOe=N(require("path"),1);var mk=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Et,this.metadataFilename=`bake-metadata-${te.generateRandomString()}.json`}getMetadataFilePath(){return WOe.default.join(yt.tmpDir(),this.metadataFilename)}static resolveContextTargets(e,r){let n=e.target||{},i=Object.keys(n);if(i.length===0)throw new Error("Bake definition does not contain any targets");if(!Object.prototype.hasOwnProperty.call(n,r))throw new Error(`Unable to resolve ${r} target, found: ${i.join(", ")}`);let s=new Set([r]),a=[r];for(;a.length>0;){let c=a.pop();for(let l of Object.values(n[c].contexts||{})){let u=l.match(/^target:(.+)$/)?.[1];if(!(!u||s.has(u))){if(!Object.prototype.hasOwnProperty.call(n,u))throw new Error(`Target ${c} uses unknown named context target ${u}`);s.add(u),a.push(u)}}}return[...s]}resolveMetadata(){let e=this.getMetadataFilePath();if(!bK.default.existsSync(e))return;let r=bK.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],i,s=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!te.isValidRef(l)){s.push(l);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=l}}i&&n.push(i);for(let l of s)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await _e.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${Et.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let i=r.target[n];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(s=>t.parseAttestEntry(s))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(s=>t.parseCacheEntry(s))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(s=>t.parseCacheEntry(s))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(s=>t.parseExportEntry(s))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(s=>t.parseSecretEntry(s))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=Io(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=te.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=Io(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=Io(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=Io(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],i="";for(let s of n){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":i=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return i==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,i]=e.split("=",2);return r.id=n,i&&(r.paths=i.split(",")),r}static hasLocalExporter(e){return t.hasExporterType("local",t.exporters(e))}static hasTarExporter(e){return t.hasExporterType("tar",t.exporters(e))}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",t.exporters(e))}static hasExporterType(e,r){for(let n of r)if(n.type==e)return!0;return!1}static exporters(e){let r=new Array;for(let n in e.target){let i=e.target[n];if(i.output)for(let s of i.output)r.push(t.parseExportEntry(s))}return r}static hasGitAuthTokenSecret(e){for(let r in e.target){let n=e.target[r];if(n.secret){for(let i of n.secret)if(t.parseSecretEntry(i).id==="GIT_AUTH_TOKEN")return!0}}return!1}static hasProvenanceAttestation(e){return t.hasAttestationType("provenance",t.attestations(e))}static hasSBOMAttestation(e){return t.hasAttestationType("sbom",t.attestations(e))}static hasAttestationType(e,r){for(let n of r)if(n.type==e)return!0;return!1}static attestations(e){let r=new Array;for(let n in e.target){let i=e.target[n];if(i.attest)for(let s of i.attest)r.push(t.parseAttestEntry(s))}return r}};var Rd=N(require("fs"),1),fu=N(require("os"),1),xh=N(require("path"),1);var GC=N(uc(),1),JX=N(require("util"),1);var cC=class t{static{o(this,"Git")}static async context(e){let r={...is};return r.ref=await t.ref(e),r.sha=await t.fullCommit(e),r}static async isInsideWorkTree(e){return await t.exec(["rev-parse","--is-inside-work-tree"],e).then(r=>r==="true").catch(()=>!1)}static async remoteSha(e,r,n){let i=e.match(/github.com\/([^/]+)\/([^/]+?)(?:\.git)?(\/|$)/);if(n&&i){Fc(n);let s=VD(n,{baseUrl:Xe.apiURL}),[a,c]=i.slice(1,3);try{return(await s.rest.repos.listCommits({owner:a,repo:c,sha:r,per_page:1})).data[0].sha}catch(l){throw new Error(`Cannot find remote ref for ${e}#${r}: ${l.message}`)}}return await t.exec(["ls-remote",e,r]).then(s=>{let[a]=s.split(/[\s\t]/);if(a.length==0)throw new Error(`Cannot find remote ref for ${e}#${r}`);return a})}static async remoteURL(e){return await t.exec(["remote","get-url","origin"],e).then(r=>r.length==0?t.exec(["remote","get-url","upstream"],e).then(n=>{if(n.length==0)throw new Error("Cannot find remote URL for origin or upstream");return n}):r)}static async ref(e){return await t.isHeadDetached(e)?await t.getDetachedRef(e):await t.exec(["symbolic-ref","HEAD"],e)}static async fullCommit(e){return await t.exec(["show","--format=%H","HEAD","--quiet","--"],e)}static async shortCommit(e){return await t.exec(["show","--format=%h","HEAD","--quiet","--"],e)}static async commitCount(e){return Number(await t.exec(["rev-list","--count","HEAD","--"],e))}static async tag(e){return await t.exec(["tag","--points-at","HEAD","--sort","-version:creatordate"],e).then(r=>r.length==0?t.exec(["describe","--tags","--abbrev=0"],e):r.split(`
|
|
`)[0])}static async isHeadDetached(e){return await t.exec(["branch","--show-current"],e).then(r=>r.length==0)}static async getDetachedRef(e){let r=await t.exec(["show","-s","--pretty=%D"],e);R(`detached HEAD ref: ${r}`);let n=r.replace(/^grafted, /,"").trim();if(n==="HEAD")return await t.inferRefFromHead(e);let i=n.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${r}"`);let s=i[1].trim();if(s.startsWith("tag: "))return await t.findDetachedTagRef(s,r,e);if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let c=s.match(/^[^/]+\/[^/]+, (.+)$/);if(c)return`refs/heads/${c[1].trim()}`;let l=s.match(/^[^/]+\/(.+)$/);if(l)return`refs/heads/${l[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${r}"`)}static async exec(e=[],r){return await _e.getExecOutput("git",e,{cwd:r,ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async inferRefFromHead(e){let r=await t.findContainingRef("refs/heads/",e);if(r)return r;let n=await t.findContainingRef("refs/remotes/",e);if(n){let a=n.match(/^refs\/remotes\/[^/]+\/(.+)$/);return a?`refs/heads/${a[1]}`:n}let i=await t.exec(["tag","--contains","HEAD"],e),[s]=i.split(`
|
|
`).map(a=>a.trim()).filter(a=>a.length>0);return s?`refs/tags/${s}`:""}static async findDetachedTagRef(e,r,n){let s=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"],n)).split(`
|
|
`).map(a=>a.trim()).filter(a=>a.length>0).sort((a,c)=>c.length-a.length);for(let a of s){let c=`tag: ${a.slice(10)}`;if(e===c||e.startsWith(`${c}, `))return a}if(s.length===1)return s[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e,r){let n=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e],r),[i]=n.split(`
|
|
`).map(s=>s.trim()).filter(s=>s.length>0);return i}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var uUe=require("crypto"),uu=N(require("fs"),1),du=N(require("path"),1);var UC=N(_K(),1),dUe=N(V7(),1),qC=N(sUe(),1);var aUe=require("util");var jX=N(_K(),1);var cUe=N(uc(),1);var oUe="application/vnd.oci.empty.v1+json";var js=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await _e.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(R(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(R(`Cosign.isAvailable error: ${r}`),!1));return R(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await _e.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await _e.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,aUe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let i=r[n].trim();if(i)return i}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return R("Cosign.versionSatisfies false: undefined version"),!1;let i=cUe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return R(`Cosign.versionSatisfies ${n} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,n,i,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(s=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===jX.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===oUe&&typeof u.digest=="string"&&(n=u.digest)}if(!i&&l&&l.mediaType===jX.BUNDLE_V03_MEDIA_TYPE&&(i=l),i&&(r||n)){s=void 0;break}}return{bundle:i,signatureManifestDigest:r||n,errors:s}}};var WX=N(require("fs"),1);var JO=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Et}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let i=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=s.get(c);return l?l.platform?.os===i.os&&l.platform?.architecture===i.architecture&&(l.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}static toIndexAnnotation(e){let r=e.indexOf("="),n=r===-1?e:e.substring(0,r),i=r===-1?"":e.substring(r),s=n.indexOf(":");if(s!==-1){let a=n.substring(0,s),c=n.substring(s+1);if(a.split(",").map(u=>u.replace(/\[.*\]$/,"")).some(u=>["manifest","index","manifest-descriptor","index-descriptor"].includes(u)))return`index:${c}${i}`}return`index:${e}`}async create(e){let r=[],n=yt.tmpName({tmpdir:yt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&i.push(l);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of i)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){O(`[command]${a.command} ${a.args.join(" ")}`),O("Skipped create command");return}return await _e.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!WX.default.existsSync(n))return;let l=WX.default.readFileSync(n,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),d=u["containerimage.descriptor"];return d?{digest:u["containerimage.digest"]||d.digest,descriptor:d,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,n){let i=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(i.command,i.args,n);let s=e.retryLimit??15,a;for(let c=0;c<s;c++)try{return await this.execInspect(i.command,i.args,n)}catch(l){if(a=l,!t.isManifestUnknownError(a.message)||c===s-1)throw a;O(`buildx imagetools inspect command failed with manifest not found, retrying attempt ${c+1}/${s}...
|
|
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await _e.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return n(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var MC="https://search.sigstore.dev";var lUe="slsaprovenance1",Bh=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new js,this.imageTools=e?.imageTools||new JO}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n);for(let s of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${s}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${s}@${c}`;await Qr(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...i];O(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await _e.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=js.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(f.errors&&f.errors.length>0){let p=f.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
|
|
`);throw new Error(`Cosign sign command failed with errors:
|
|
${p}`)}else throw new Error(`Cosign sign command failed with: ${js.getErrorMessage(d.stderr)}`);let h=t.parseBundle((0,UC.bundleFromJSON)(f.bundle));h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),O(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...h,imageName:s}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[i,s]of Object.entries(e))await Qr(`Verifying signature of ${i}`,async()=>{let a=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});O(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),n[i]=a});return n}async verifyImageAttestations(e,r){let n={},i=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(i.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of i){let c=`${s}@${a}`,l=await this.verifyImageAttestation(c,r);O(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){O(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await _e.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${js.getErrorMessage(a.stderr)}`);let c=js.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let i=r.retryLimit??15,s;O(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<i;a++){let c=await _e.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=js.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
|
|
`);if(s=new Error(`Cosign verify command failed with errors:
|
|
${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))O(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${i}...
|
|
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${js.getErrorMessage(c.stderr)}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await Qr(`Signing ${a}`,async()=>{let c=s[a],l=du.default.join(du.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){ut(`No subjects found in provenance ${a}, skip signing.`);return}let d=du.default.join(du.default.dirname(a),u[0].name),f=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",lUe,"--bundle",l,...i];O(`[command]${this.cosign.binPath} ${[...f,d].join(" ")}`);let h=await _e.getExecOutput(this.cosign.binPath,["--verbose",...f,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),p=js.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(p.errors&&p.errors.length>0){let A=p.errors.map(E=>`- [${E.code}] ${E.message} : ${E.detail}`).join(`
|
|
`);throw new Error(`Cosign attest-blob command failed with errors:
|
|
${A}`)}else throw new Error(`Cosign attest-blob command failed with: ${js.getErrorMessage(h.stderr)}`);let g=t.parseBundle((0,UC.bundleFromJSON)(JSON.parse(uu.default.readFileSync(l,{encoding:"utf-8"}))));O("Provenance blob signed for:");for(let A of u){let[E,y]=Object.entries(A.digest)[0]||[];O(` - ${A.name} (${E}:${y})`)}g.tlogID&&await this.logTransparencyUpload(g.tlogID,n),O(`Sigstore bundle written to: ${l}`),r[a]={...g,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,s]of Object.entries(e)){let a=du.default.dirname(i);await Qr(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let l=du.default.join(a,c.name);O(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??lUe];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await _e.getExecOutput(this.cosign.binPath,[...u,"--bundle",s.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:s.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){O("Verifying keyless verification bundle signature");let i=JSON.parse(uu.default.readFileSync(r,"utf-8")),s=(0,UC.bundleFromJSON)(i);O("Fetching Sigstore TUF trusted root metadata");let a=await dUe.getTrustedRoot({retry:{retries:5}}),c=(0,qC.toTrustMaterial)(a);try{O("Verifying artifact signature");let l=(0,qC.toSignedEntity)(s,uu.default.readFileSync(e)),u=t.parseCertificate(s),d=s.verificationMaterial.tlogEntries,f=d.length>0?d[0].logIndex:void 0,p=new qC.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return R(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:i,certificate:u.toString(),tlogID:f}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Xe.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(O(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let i=await this.useRekorV2(e);await Qr("Creating Sigstore protobuf signing config",async()=>{let s=yt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:yt.tmpDir()}),a=["signing-config","create",i?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${s}`];n&&a.push("--no-default-rekor=true"),await _e.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),O(JSON.stringify(JSON.parse(uu.default.readFileSync(s,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${s}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){O(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}O(`Attestation signature uploaded to Rekor transparency log: ${MC}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=du.default.join(e.localExportDir,"provenance.json");if(uu.default.existsSync(r))return{[r]:uu.default.readFileSync(r)};let n=uu.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=n.filter(s=>s.isDirectory());if(i.length>0&&i.length===n.length&&i.every(s=>uu.default.existsSync(du.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of i){let c=du.default.join(e.localExportDir,a.name,"provenance.json");s[c]=uu.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,i=n.length>0?n[0].logIndex:void 0;return{payload:(0,UC.bundleToJSON)(e),certificate:r.toString(),tlogID:i}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new uUe.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var YO=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.sigstore=e?.sigstore||new Bh}async download(e){let r=await t.getDownloadVersion(e.version);R(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);R(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);R(`Install.download vspec: ${i}`);let s=GC.clean(i)||"";if(!GC.valid(s))throw new Error(`Invalid Buildx version "${i}".`);let a=new Yn({htcName:r.key!="official"?`buildx-dl-bin-${r.key}`:"buildx-dl-bin",htcVersion:i,baseCacheDir:xh.default.join(Et.configDir,".bin"),cacheFile:fu.default.platform()=="win32"?"docker-buildx.exe":"docker-buildx",ghaNoCache:e.ghaNoCache}),c=await a.find();if(!e.disableHtc&&c)return O(`Buildx binary found in ${c}`),c;let l=JX.format(r.downloadURL,i,this.filename(i));O(`Downloading ${l}`);let u=await zo(l,void 0,this.githubToken);R(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&GC.satisfies(i,">=0.31.0-0",{includePrerelease:!0})&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return O(`Cached to ${d}`),d}async build(e,r){let n=await this.vspec(e);R(`Install.build vspec: ${n}`);let i=new Yn({htcName:"buildx-build-bin",htcVersion:n,baseCacheDir:xh.default.join(Et.configDir,".bin"),cacheFile:fu.default.platform()=="win32"?"docker-buildx.exe":"docker-buildx",ghaNoCache:r}),s=await i.find();if(s)return O(`Buildx binary found in ${s}`),s;let a=xh.default.join(yt.tmpDir(),"buildx-build-cache"),c=await this.buildCommand(e,a),l=await _e.getExecOutput(c.command,c.args,{ignoreReturnCode:!0}).then(d=>{if(d.stderr.length>0&&d.exitCode!=0)throw new Error(`build failed with: ${Et.getErrorMessage(d.stderr)}`);return`${a}/buildx`}),u=await i.save(l);return O(`Cached to ${u}`),u}async installStandalone(e,r){O("Standalone mode"),r=r||yt.tmpDir();let n=xh.default.join(r,"buildx-bin-standalone");Rd.default.existsSync(n)||Rd.default.mkdirSync(n,{recursive:!0});let i=fu.default.platform()=="win32"?"buildx.exe":"buildx",s=xh.default.join(n,i);return Rd.default.copyFileSync(e,s),O("Fixing perms"),Rd.default.chmodSync(s,"0755"),Uc(n),O("Added Buildx to PATH"),O(`Binary path: ${s}`),s}async installPlugin(e,r){O("Docker plugin mode"),r=r||sn.configDir;let n=xh.default.join(r,"cli-plugins");Rd.default.existsSync(n)||Rd.default.mkdirSync(n,{recursive:!0});let i=fu.default.platform()=="win32"?"docker-buildx.exe":"docker-buildx",s=xh.default.join(n,i);return Rd.default.copyFileSync(e,s),O("Fixing perms"),Rd.default.chmodSync(s,"0755"),O(`Plugin path: ${s}`),s}async buildCommand(e,r){let n=await new Et({standalone:!0}).isAvailable(),i=await new Et({standalone:!1}).isAvailable(),s=!1;if(await this.isStandalone()&&n)R("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.isStandalone()&&i)R("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)R("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(i)R("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--target","binaries","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push(e),await new Et({standalone:s}).getCommand(a)}async isStandalone(){let e=this.standalone??!await sn.isAvailable();return R(`Install.isStandalone: ${e}`),e}async verifySignature(e,r){let n=`${r.replace(/\.exe$/,"")}.sigstore.json`;O(`Downloading keyless verification bundle at ${n}`);let i;try{i=await zo(n,void 0,this.githubToken),R(`Install.verifySignature bundlePath: ${i}`)}catch(a){if(a.message&&a.message.statusCode===Ls.NotFound){O(`No signature bundle found at ${n}, skipping verification`);return}throw a}let s=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:/^https:\/\/github\.com\/docker\/(github-builder-experimental|github-builder)\/\.github\/workflows\/bake\.yml.*$/,issuer:"https://token.actions.githubusercontent.com"});O(`Buildx binary signature verified! ${s.tlogID?`${MC}?logIndex=${s.tlogID}`:""}`)}filename(e){let r;switch(fu.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let s=process.config.variables.arm_version;r=s?"arm-v"+s:"arm";break}default:{r=fu.default.arch();break}}let n=fu.default.platform()=="win32"?"windows":fu.default.platform(),i=fu.default.platform()=="win32"?".exe":"";return JX.format("buildx-v%s.%s-%s%s",e,n,r,i)}async vspec(e){if(!te.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return O(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let i;n.match(/^[0-9a-fA-F]{40}$/)?i=n:i=await cC.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${te.trimSuffix(a,".git")}/${i}`,l=te.hash(c);return O(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){let[r,n]=e.split(":");switch(n||(n=r,r="official"),r==="lab"&&(r="cloud"),r){case"official":return{key:r,version:n,downloadURL:"https://github.com/docker/buildx/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/buildx-releases.json"}};case"cloud":return{key:r,version:n,downloadURL:"https://github.com/docker/buildx-desktop/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/buildx-lab-releases.json"}};default:throw new Error(`Cannot find buildx version for ${e}`)}}static async getRelease(e,r){let i=await new Xe({token:r}).releases("Buildx",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Buildx release ${e.version} in releases JSON`);return i[e.version]}};var HC=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new Et}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),n=await _e.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(R(`Builder.exists cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(R(`Builder.exists error: ${i}`),!1));return R(`Builder.exists: ${n}`),n}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),n=["inspect"];e&&n.push(e);let i=await this.buildx.getCommand(n);return await _e.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return t.parseInspect(s.stdout)})}static parseInspect(e){let r={nodes:[]},n,i={},s,a,c;for(let l of e.trim().split(`
|
|
`)){let[u,...d]=l.split(":"),f=u.toLowerCase(),h=d.map(p=>p.trim()).join(":");if(u.length!=0)switch(!0){case f=="name":n=void 0,r.name==null?r.name=h:(s&&i.gcPolicy&&(i.gcPolicy.push(s),s=void 0),i.name&&r.nodes.push(i),i={name:h});break;case f=="driver":n=void 0,r.driver=h;break;case f=="last activity":n=void 0,r.lastActivity=new Date(h);break;case f=="endpoint":n=void 0,i.endpoint=h;break;case f=="driver options":n=void 0,i["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(p=>p.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case f=="status":n=void 0,i.status=h;break;case f=="buildkit daemon flags":case f=="flags":n=void 0,i["buildkitd-flags"]=h;break;case f=="buildkit version":case f=="buildkit":n=void 0,i.buildkit=h;break;case f=="platforms":{if(n=void 0,!h)break;let p=[];if(h.includes("*"))for(let g of h.split(", "))g.includes("*")&&p.push(g.replace(/\*/g,""));else p=h.split(", ");i.platforms=p.join(",");break}case f=="features":n="features",i.features={};break;case f=="labels":n="label",i.labels={};break;case f=="devices":n="devices",i.devices=i.devices||[];break;case f.startsWith("gc policy rule#"):n="gcpolicy",i.gcPolicy&&s&&(i.gcPolicy.push(s),s=void 0);break;case f.startsWith("file#"):n="file",c=u.split("#")[1],i.files=i.files||{},i.files[c]="";break;default:switch(n&&n!=="devices"&&i.devices&&a&&(i.devices.push(a),a=void 0),n||""){case"features":{i.features=i.features||{},i.features[u.trim()]=!!h;break}case"label":{i.labels=i.labels||{},i.labels[u.trim()]=h;break}case"devices":{switch(f.trim()){case"name":{i.devices&&a&&i.devices.push(a),a={},a.name=h;break}case"on-demand":{a&&h&&(a.onDemand=h=="true");break}case"automatically allowed":{a&&h&&(a.autoAllow=h=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=h)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],s=s||{},f.trim()){case"all":{s.all=h=="true";break}case"filters":{h&&(s.filter=h.split(","));break}case"keep duration":{s.keepDuration=h;break}case"keep bytes":{s.keepBytes=h;break}case"reserved space":{s.reservedSpace=h;break}case"max used space":{s.maxUsedSpace=h;break}case"min free space":{s.minFreeSpace=h;break}}break}case"file":{c&&i.files&&(i.files[c].length>0&&(i.files[c]+=`
|
|
`),i.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&i.devices&&i.devices.push(a),s&&i.gcPolicy&&i.gcPolicy.push(s),i.name&&r.nodes.push(i),r}};var fUe=N(uc(),1);var KO=N(require("fs"),1);var XO=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!KO.default.existsSync(e))throw new Error(`config file ${e} not found`);e=KO.default.readFileSync(e,{encoding:"utf-8"})}let n=yt.tmpName({tmpdir:yt.tmpDir()});return KO.default.writeFileSync(n,e),n}};var ZO=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new XO,this.buildx=e?.buildx||new Et}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){ut(r)}return e.buildkit}async getVersionWithinImage(e){return R(`BuildKit.getVersionWithinImage nodeName: ${e}`),sn.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Et.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return R(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),sn.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new HC({buildx:this.buildx}).inspect(e));for(let i of n.nodes){let s=i.buildkit;if(R(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(i.name||"")}catch{return R(`BuildKit.versionSatisfies ${i.name}: can't get version`),!1}if(R(`BuildKit.versionSatisfies ${i.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!fUe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var eL=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await sn.isAvailable();return R(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await _e.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(R(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(R(`Compose.isAvailable error: ${n}`),!1));return R(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await _e.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 _e.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var Dd=N(require("fs"),1),hu=N(require("os"),1),VC=N(require("path"),1);var rL=N(uc(),1),YX=N(require("util"),1);var tL=class t{static{o(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);R(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);R(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);R(`Install.download vspec: ${s}`);let a=rL.clean(s)||"";if(!rL.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new Yn({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:VC.default.join(hu.default.homedir(),".bin","docker-compose"),cacheFile:hu.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return O(`Compose binary found in ${l}`),l;let u=YX.format(n.downloadURL,s,this.filename());O(`Downloading ${u}`);let d=await zo(u,void 0,this.githubToken);R(`Install.download htcDownloadPath: ${d}`);let f=await c.save(d);return O(`Cached to ${f}`),f}async installStandalone(e,r){O("Standalone mode"),r=r||yt.tmpDir();let n=VC.default.join(r,"compose-bin-standalone");Dd.default.existsSync(n)||Dd.default.mkdirSync(n,{recursive:!0});let i=hu.default.platform()=="win32"?"compose.exe":"compose",s=VC.default.join(n,i);return Dd.default.copyFileSync(e,s),O("Fixing perms"),Dd.default.chmodSync(s,"0755"),Uc(n),O("Added Compose to PATH"),O(`Binary path: ${s}`),s}async installPlugin(e,r){O("Docker plugin mode"),r=r||sn.configDir;let n=VC.default.join(r,"cli-plugins");Dd.default.existsSync(n)||Dd.default.mkdirSync(n,{recursive:!0});let i=hu.default.platform()=="win32"?"docker-compose.exe":"docker-compose",s=VC.default.join(n,i);return Dd.default.copyFileSync(e,s),O("Fixing perms"),Dd.default.chmodSync(s,"0755"),O(`Plugin path: ${s}`),s}async isStandalone(){let e=this.standalone??!await sn.isAvailable();return R(`Install.isStandalone: ${e}`),e}filename(){let e;switch(hu.default.arch()){case"x64":{e="x86_64";break}case"ppc64":{e="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;e=i?"armv"+i:"arm";break}case"arm64":{e="aarch64";break}default:{e=hu.default.arch();break}}let r=hu.default.platform()=="win32"?"windows":hu.default.platform(),n=hu.default.platform()=="win32"?".exe":"";return YX.format("docker-compose-%s-%s%s",r,e,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return O(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){let[r,n]=e.split(":");switch(n||(n=r,r="official"),r){case"official":return{key:r,version:n,downloadURL:"https://github.com/docker/compose/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/compose-releases.json"}};case"cloud":return{key:r,version:n,downloadURL:"https://github.com/docker/compose-desktop/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/compose-lab-releases.json"}};default:throw new Error(`Cannot find compose version for ${e}`)}}static async getRelease(e,r){let i=await new Xe({token:r}).releases("Compose",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Compose release ${e.version} in releases JSON`);return i[e.version]}};var jB=N(require("fs"),1),Bc=N(require("os"),1),zC=N(require("path"),1);var $C=N(uc(),1),KX=N(require("util"),1);var hUe=`
|
|
# syntax=docker/dockerfile:1
|
|
|
|
ARG GO_VERSION="1.24"
|
|
ARG ALPINE_VERSION="3.22"
|
|
|
|
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.7.0 AS xx
|
|
|
|
FROM --platform=$BUILDPLATFORM golang:\${GO_VERSION}-alpine\${ALPINE_VERSION} AS builder-base
|
|
COPY --from=xx / /
|
|
RUN apk add --no-cache git
|
|
ENV GOTOOLCHAIN=auto
|
|
ENV CGO_ENABLED=0
|
|
WORKDIR /src
|
|
RUN --mount=type=cache,target=/go/pkg/mod \\
|
|
--mount=type=bind,source=go.mod,target=go.mod \\
|
|
--mount=type=bind,source=go.sum,target=go.sum \\
|
|
go mod download
|
|
|
|
FROM builder-base AS version
|
|
RUN --mount=type=bind,target=. <<'EOT'
|
|
git rev-parse HEAD 2>/dev/null || {
|
|
echo >&2 "Failed to get git revision, make sure --build-arg BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 is set when building from Git directly"
|
|
exit 1
|
|
}
|
|
set -ex
|
|
export PKG=sigs.k8s.io BUILDDATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") TREESTATE=$(if ! git diff --no-ext-diff --quiet --exit-code; then echo dirty; else echo clean; fi) VERSION=$(git describe --match 'v[0-9]*' --dirty='.m' --always --tags) COMMIT=$(git rev-parse HEAD)$(if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi);
|
|
echo "-X \${PKG}/release-utils/version.gitVersion=\${VERSION} -X \${PKG}/release-utils/version.gitCommit=\${COMMIT} -X \${PKG}/release-utils/version.gitTreeState=\${TREESTATE} -X \${PKG}/release-utils/version.buildDate=\${BUILDDATE}" > /tmp/.ldflags;
|
|
echo -n "\${VERSION}" > /tmp/.version;
|
|
EOT
|
|
|
|
FROM builder-base AS builder
|
|
ARG TARGETPLATFORM
|
|
RUN --mount=type=bind,target=. \\
|
|
--mount=type=cache,target=/root/.cache,id=cosign-$TARGETPLATFORM \\
|
|
--mount=source=/tmp/.ldflags,target=/tmp/.ldflags,from=version \\
|
|
--mount=type=cache,target=/go/pkg/mod <<EOT
|
|
set -ex
|
|
xx-go build -trimpath -ldflags "-s -w $(cat /tmp/.ldflags)" -o /out/cosign ./cmd/cosign
|
|
xx-verify --static /out/cosign
|
|
EOT
|
|
|
|
FROM scratch
|
|
COPY --from=builder /out /
|
|
`;var nL=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Et,this.sigstore=e?.sigstore||new Bh}async download(e){let r=await t.getDownloadVersion(e.version);R(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);R(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);R(`Install.download vspec: ${i}`);let s=$C.clean(i)||"";if(!$C.valid(s))throw new Error(`Invalid Cosign version "${i}".`);let a=new Yn({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:zC.default.join(Bc.default.homedir(),".bin"),cacheFile:Bc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return O(`Cosign binary found in ${c}`),c;let l=KX.format(r.downloadURL,i,this.filename());O(`Downloading ${l}`);let u=await zo(l,void 0,this.githubToken);R(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&$C.satisfies(i,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return O(`Cached to ${d}`),d}async build(e,r,n){let i=await this.vspec(e);R(`Install.build vspec: ${i}`);let s=new Yn({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:zC.default.join(Bc.default.homedir(),".bin"),cacheFile:Bc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return O(`Cosign binary found in ${a}`),a;let c=zC.default.join(yt.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await _e.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(hUe)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${Et.getErrorMessage(f.stderr)}`);return`${c}/cosign`}),d=await s.save(u,n);return O(`Cached to ${d}`),d}async install(e,r){r=r||yt.tmpDir();let n=zC.default.join(r,"cosign-bin");jB.default.existsSync(n)||jB.default.mkdirSync(n,{recursive:!0});let i=Bc.default.platform()=="win32"?"cosign.exe":"cosign",s=zC.default.join(n,i);return jB.default.copyFileSync(e,s),O("Fixing perms"),jB.default.chmodSync(s,"0755"),Uc(n),O("Added Cosign to PATH"),O(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new Et({standalone:!0}).isAvailable(),i=await new Et({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)R("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&i)R("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)R("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(i)R("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new Et({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;O(`Downloading keyless verification bundle at ${n}`);let i=await zo(n,void 0,this.githubToken);R(`Install.verifySignature bundlePath: ${i}`);let s=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});O(`Cosign binary signature verified! ${s.tlogID?`${MC}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(Bc.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Bc.default.arch();break}}let r=Bc.default.platform()=="win32"?"windows":Bc.default.platform(),n=Bc.default.platform()=="win32"?".exe":"";return KX.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!te.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return O(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let i;n.match(/^[0-9a-fA-F]{40}$/)?i=n:i=await cC.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${te.trimSuffix(a,".git")}/${i}`,l=te.hash(c);return O(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let i=await new Xe({token:r}).releases("Cosign",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return i[e.version]}};var pUe=N(uc(),1);var iL=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await _e.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return r.stdout})}async manifestGet(e){return await _e.getExecOutput(this.binPath,["manifest","get",e.image,`--platform=${e.platform??"local"}`,"--format={{json .}}"],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return JSON.parse(r.stdout.trim())})}async isAvailable(){let e=await _e.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(R(`Regctl.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(R(`Regctl.isAvailable error: ${r}`),!1));return R(`Regctl.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await _e.getExecOutput(this.binPath,["version","--format","{{.VCSTag}}"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return e.stdout.trim()}),this._version)}async printVersion(){await _e.exec(this.binPath,["version"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return R("Regctl.versionSatisfies false: undefined version"),!1;let i=pUe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return R(`Regctl.versionSatisfies ${n} statisfies ${e}: ${i}`),i}};var WB=N(require("fs"),1),Qd=N(require("os"),1),sL=N(require("path"),1);var aL=N(uc(),1),XX=N(require("util"),1);var oL=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);R(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);R(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);R(`Install.download vspec: ${s}`);let a=aL.clean(s)||"";if(!aL.valid(a))throw new Error(`Invalid regclient version "${s}".`);let c=new Yn({htcName:"regctl-dl-bin",htcVersion:s,baseCacheDir:sL.default.join(Qd.default.homedir(),".bin"),cacheFile:Qd.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),l=await c.find();if(l)return O(`regctl binary found in ${l}`),l;let u=XX.format(n.downloadURL,s,this.filename());O(`Downloading ${u}`);let d=await zo(u,void 0,this.githubToken);R(`Install.download htcDownloadPath: ${d}`);let f=await c.save(d);return O(`Cached to ${f}`),f}async install(e,r){r=r||yt.tmpDir();let n=sL.default.join(r,"regctl-bin");WB.default.existsSync(n)||WB.default.mkdirSync(n,{recursive:!0});let i=Qd.default.platform()=="win32"?"regctl.exe":"regctl",s=sL.default.join(n,i);return WB.default.copyFileSync(e,s),O("Fixing perms"),WB.default.chmodSync(s,"0755"),Uc(n),O("Added regctl to PATH"),O(`Binary path: ${s}`),s}filename(){let e;switch(Qd.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;e=i?"armv"+i:"arm";break}default:{e=Qd.default.arch();break}}let r=Qd.default.platform()=="win32"?"windows":Qd.default.platform(),n=Qd.default.platform()=="win32"?".exe":"";return XX.format("regctl-%s-%s%s",r,e,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return O(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/regclient/regclient/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/regclient-releases.json"}}}static async getRelease(e,r){let i=await new Xe({token:r}).releases("regclient",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find regclient release ${e.version} in releases JSON`);return i[e.version]}};var AUe=N(uc(),1);var cL=class{static{o(this,"Undock")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"undock",this._version="",this._versionOnce=!1}async run(e){if(!e.source)throw new Error("source is required");if(!e.dist)throw new Error("dist is required");let r=[];e.logLevel&&r.push(`--log-level=${e.logLevel}`),e.logCaller&&r.push("--log-caller"),e.cacheDir&&r.push(`--cachedir=${e.cacheDir}`),e.platform&&r.push(`--platform=${e.platform}`),e.all&&r.push("--all"),e.include&&e.include.forEach(n=>{r.push(`--include=${n}`)}),e.insecure&&r.push("--insecure"),e.rmDist&&r.push("--rm-dist"),e.wrap&&r.push("--wrap"),r.push(e.source,e.dist),await _e.exec(this.binPath,r,{failOnStdErr:!1})}async isAvailable(){let e=await _e.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(R(`Undock.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(R(`Undock.isAvailable error: ${r}`),!1));return R(`Undock.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await _e.getExecOutput(this.binPath,["--version"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return e.stdout.trim()}),this._version)}async printVersion(){await _e.exec(this.binPath,["--version"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return R("Undock.versionSatisfies false: undefined version"),!1;let i=AUe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return R(`Undock.versionSatisfies ${n} statisfies ${e}: ${i}`),i}};var JB=N(require("fs"),1),xc=N(require("os"),1),YB=N(require("path"),1);var uL=N(uc(),1),ZX=N(require("util"),1);var lL=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);R(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);R(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);R(`Install.download vspec: ${s}`);let a=uL.clean(s)||"";if(!uL.valid(a))throw new Error(`Invalid Undock version "${s}".`);let c=new Yn({htcName:"undock-dl-bin",htcVersion:s,baseCacheDir:YB.default.join(xc.default.homedir(),".bin"),cacheFile:xc.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),l=await c.find();if(l)return O(`Undock binary found in ${l}`),l;let u=ZX.format(n.downloadURL,s,this.filename(s));O(`Downloading ${u}`);let d=await zo(u,void 0,this.githubToken);R(`Install.download htcDownloadPath: ${d}`);let f;xc.default.platform()=="win32"?f=await Uue(d):f=await Mue(d),O(`Extracted to ${f}`);let h=YB.default.join(f,xc.default.platform()=="win32"?"undock.exe":"undock");R(`Install.download exePath: ${h}`);let p=await c.save(h);return O(`Cached to ${p}`),p}async install(e,r){r=r||yt.tmpDir();let n=YB.default.join(r,"undock-bin");JB.default.existsSync(n)||JB.default.mkdirSync(n,{recursive:!0});let i=xc.default.platform()=="win32"?"undock.exe":"undock",s=YB.default.join(n,i);return JB.default.copyFileSync(e,s),O("Fixing perms"),JB.default.chmodSync(s,"0755"),Uc(n),O("Added Undock to PATH"),O(`Binary path: ${s}`),s}filename(e){let r;switch(xc.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let s=process.config.variables.arm_version;r=s?"armv"+s:"arm";break}default:{r=xc.default.arch();break}}let n=xc.default.platform()=="win32"?"windows":xc.default.platform(),i=xc.default.platform()=="win32"?".zip":".tar.gz";return ZX.format("undock_%s_%s_%s%s",e,n,r,i)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return O(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/crazy-max/undock/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/undock-releases.json"}}}static async getRelease(e,r){let i=await new Xe({token:r}).releases("Undock",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Undock release ${e.version} in releases JSON`);return i[e.version]}};var dL=class{static{o(this,"Toolkit")}github;buildx;buildxBuild;buildxBake;buildxInstall;builder;buildkit;compose;composeInstall;cosign;cosignInstall;regctl;regctlInstall;sigstore;undock;undockInstall;constructor(e={}){this.github=new Xe({token:e.githubToken}),this.buildx=new Et,this.buildxBuild=new jt({buildx:this.buildx}),this.buildxBake=new mk({buildx:this.buildx}),this.buildxInstall=new YO,this.builder=new HC({buildx:this.buildx}),this.buildkit=new ZO({buildx:this.buildx}),this.compose=new eL,this.composeInstall=new tL,this.cosign=new js,this.cosignInstall=new nL({buildx:this.buildx}),this.regctl=new iL,this.regctlInstall=new oL,this.sigstore=new Bh,this.undock=new cL,this.undockInstall=new lL}};var eZ=N(zj(),1);var mUe;async function gUe(){return mUe??=new jt().gitContext(),await mUe}o(gUe,"getDefaultContext");async function yUe(){let t=await gUe();return{"add-hosts":te.getInputList("add-hosts"),allow:te.getInputList("allow"),annotations:te.getInputList("annotations",{ignoreComma:!0}),attests:te.getInputList("attests",{ignoreComma:!0}),"build-args":te.getInputList("build-args",{ignoreComma:!0}),"build-contexts":te.getInputList("build-contexts",{ignoreComma:!0}),builder:li("builder"),"cache-from":te.getInputList("cache-from",{ignoreComma:!0}),"cache-to":te.getInputList("cache-to",{ignoreComma:!0}),call:li("call"),"cgroup-parent":li("cgroup-parent"),context:eZ.compile(li("context"))({defaultContext:t})||t,file:li("file"),labels:te.getInputList("labels",{ignoreComma:!0}),load:sp("load"),network:li("network"),"no-cache":sp("no-cache"),"no-cache-filters":te.getInputList("no-cache-filters"),outputs:te.getInputList("outputs",{ignoreComma:!0,quote:!1}),platforms:te.getInputList("platforms"),provenance:jt.getProvenanceInput("provenance"),pull:sp("pull"),push:sp("push"),sbom:li("sbom"),secrets:te.getInputList("secrets",{ignoreComma:!0,trimWhitespace:!1}),"secret-envs":te.getInputList("secret-envs"),"secret-files":te.getInputList("secret-files",{ignoreComma:!0}),"shm-size":li("shm-size"),ssh:te.getInputList("ssh"),tags:te.getInputList("tags"),target:li("target"),ulimit:te.getInputList("ulimit",{ignoreComma:!0}),"github-token":li("github-token")}}o(yUe,"getInputs");async function EUe(t,e){return[...await F5t(t,t.context,e),...await M5t(t,e),t.context]}o(EUe,"getArgs");async function F5t(t,e,r){let n=await gUe(),i=["build"];if(await te.asyncForEach(t["add-hosts"],async s=>{i.push("--add-host",s)}),await te.asyncForEach(t.allow,async s=>{i.push("--allow",s)}),await r.buildx.versionSatisfies(">=0.12.0")?await te.asyncForEach(t.annotations,async s=>{i.push("--annotation",s)}):t.annotations.length>0&&ut("Annotations are only supported by buildx >= 0.12.0; the input 'annotations' is ignored."),await te.asyncForEach(t["build-args"],async s=>{i.push("--build-arg",s)}),await r.buildx.versionSatisfies(">=0.8.0")?await te.asyncForEach(t["build-contexts"],async s=>{i.push("--build-context",eZ.compile(s)({defaultContext:n}))}):t["build-contexts"].length>0&&ut("Build contexts are only supported by buildx >= 0.8.0; the input 'build-contexts' is ignored."),await te.asyncForEach(t["cache-from"],async s=>{i.push("--cache-from",s)}),await te.asyncForEach(t["cache-to"],async s=>{i.push("--cache-to",s)}),t.call){if(!await r.buildx.versionSatisfies(">=0.15.0"))throw new Error("Buildx >= 0.15.0 is required to use the call flag.");i.push("--call",t.call)}return t["cgroup-parent"]&&i.push("--cgroup-parent",t["cgroup-parent"]),await te.asyncForEach(t["secret-envs"],async s=>{try{i.push("--secret",jt.resolveSecretEnv(s))}catch(a){ut(a.message)}}),t.file&&i.push("--file",t.file),!jt.hasLocalExporter(t.outputs)&&!jt.hasTarExporter(t.outputs)&&(t.platforms.length==0||await r.buildx.versionSatisfies(">=0.4.2"))&&i.push("--iidfile",r.buildxBuild.getImageIDFilePath()),await te.asyncForEach(t.labels,async s=>{i.push("--label",s)}),await te.asyncForEach(t["no-cache-filters"],async s=>{i.push("--no-cache-filter",s)}),await te.asyncForEach(t.outputs,async s=>{i.push("--output",s)}),t.platforms.length>0&&i.push("--platform",t.platforms.join(",")),await r.buildx.versionSatisfies(">=0.10.0")?i.push(...await U5t(t,r)):ut("Attestations are only supported by buildx >= 0.10.0; the inputs 'attests', 'provenance' and 'sbom' are ignored."),await te.asyncForEach(t.secrets,async s=>{try{i.push("--secret",jt.resolveSecretString(s))}catch(a){ut(a.message)}}),await te.asyncForEach(t["secret-files"],async s=>{try{i.push("--secret",jt.resolveSecretFile(s))}catch(a){ut(a.message)}}),t["github-token"]&&!jt.hasGitAuthTokenSecret(t.secrets)&&e.startsWith(n)&&i.push("--secret",jt.resolveSecretString(`GIT_AUTH_TOKEN.${new URL(Xe.serverURL).host.trimEnd()}=${t["github-token"]}`)),t["shm-size"]&&i.push("--shm-size",t["shm-size"]),await te.asyncForEach(t.ssh,async s=>{i.push("--ssh",s)}),await te.asyncForEach(t.tags,async s=>{i.push("--tag",s)}),t.target&&i.push("--target",t.target),await te.asyncForEach(t.ulimit,async s=>{i.push("--ulimit",s)}),i}o(F5t,"getBuildArgs");async function M5t(t,e){let r=[];return t.builder&&r.push("--builder",t.builder),t.load&&r.push("--load"),await e.buildx.versionSatisfies(">=0.6.0")&&r.push("--metadata-file",e.buildxBuild.getMetadataFilePath()),t.network&&r.push("--network",t.network),t["no-cache"]&&r.push("--no-cache"),t.pull&&r.push("--pull"),t.push&&r.push("--push"),r}o(M5t,"getCommonArgs");async function U5t(t,e){let r=[],n=!1;await te.asyncForEach(t.attests,async a=>{jt.hasAttestationType("provenance",a)&&(n=!0)});let i=!1,s=!1;return t.provenance?(r.push("--attest",jt.resolveAttestationAttrs(`type=provenance,${t.provenance}`)),i=!0):!n&&!q5t()&&await e.buildkit.versionSatisfies(t.builder,">=0.11.0")&&!jt.hasDockerExporter(t.outputs,t.load)&&(Xe.context.payload.repository?.private??!1?r.push("--attest",`type=provenance,${jt.resolveProvenanceAttrs("mode=min,inline-only=true")}`):r.push("--attest",`type=provenance,${jt.resolveProvenanceAttrs("mode=max")}`)),t.sbom&&(r.push("--attest",jt.resolveAttestationAttrs(`type=sbom,${t.sbom}`)),s=!0),await te.asyncForEach(t.attests,async a=>{!jt.hasAttestationType("provenance",a)&&!jt.hasAttestationType("sbom",a)?r.push("--attest",jt.resolveAttestationAttrs(a)):!i&&jt.hasAttestationType("provenance",a)?r.push("--attest",jt.resolveProvenanceAttrs(a)):!s&&jt.hasAttestationType("sbom",a)&&r.push("--attest",a)}),r}o(U5t,"getAttestArgs");function q5t(){return process.env.BUILDX_NO_DEFAULT_ATTESTATIONS?te.parseBool(process.env.BUILDX_NO_DEFAULT_ATTESTATIONS):!1}o(q5t,"noDefaultAttestations");var KB=process.env.STATE_tmpDir||"",CUe=process.env.STATE_builderDriver||"",bUe=process.env.STATE_builderEndpoint||"",wUe=process.env.STATE_summaryInputs?JSON.parse(process.env.STATE_summaryInputs):void 0,tZ=process.env.STATE_buildRef||"",IUe=!!process.env.STATE_isSummarySupported;function SUe(t){Ja("tmpDir",t)}o(SUe,"setTmpDir");function BUe(t){Ja("builderDriver",t)}o(BUe,"setBuilderDriver");function xUe(t){Ja("builderEndpoint",t)}o(xUe,"setBuilderEndpoint");function vUe(t){Ja("buildRef",t)}o(vUe,"setBuildRef");function NUe(){Ja("isSummarySupported","true")}o(NUe,"setSummarySupported");function _Ue(t){let e={};for(let r of Object.keys(t)){if(r==="github-token")continue;let n=t[r];if(!(typeof n=="boolean"&&!n)){if(Array.isArray(n)){if(n.length===0)continue;if(r==="secrets"&&n.length>0){let i=[];for(let s of n)try{let[a,c]=jt.parseSecretKvp(s,!0);i.push(a)}catch{}i.length>0&&(e[r]=i);continue}}else if(!n)continue;e[r]=n}}Ja("summaryInputs",JSON.stringify(e))}o(_Ue,"setSummaryInputs");rCe(async()=>{let t=new Date,e=await yUe();_Ue(e),R(`inputs: ${JSON.stringify(e)}`);let r=new dL;if(await Qr("GitHub Actions runtime token ACs",async()=>{try{await Xe.printActionsRuntimeTokenACs()}catch(f){ut(f.message)}}),await Qr("Docker info",async()=>{try{await sn.printVersion(),await sn.printInfo()}catch(f){O(f.message)}}),await Qr("Proxy configuration",async()=>{let f,h=!1;try{f=await sn.configFile()}catch(p){h=!0,ut(`Unable to parse config file ${RUe.join(sn.configDir,"config.json")}: ${p}`)}if(f&&f.proxies)for(let p in f.proxies){let g="";Object.keys(f.proxies).length>1&&(g=" ",O(p));for(let A in f.proxies[p])O(`${g}${A}: ${f.proxies[p][A]}`)}else h||O("No proxy configuration found")}),!await r.buildx.isAvailable()){vN("Docker buildx is required. See https://github.com/docker/setup-buildx-action to set up buildx.");return}SUe(yt.tmpDir()),await Qr("Buildx version",async()=>{await r.buildx.printVersion()});let n;await Qr("Builder info",async()=>{n=await r.builder.inspect(e.builder),BUe(n.driver??""),xUe(n.nodes?.[0]?.endpoint??""),O(JSON.stringify(n,null,2))});let i=await EUe(e,r);R(`context.getArgs: ${JSON.stringify(i)}`);let s=await r.buildx.getCommand(i);R(`buildCmd.command: ${s.command}`),R(`buildCmd.args: ${JSON.stringify(s.args)}`);let a;await _e.getExecOutput(s.command,s.args,{ignoreReturnCode:!0,env:Object.assign({},process.env,{BUILDX_METADATA_WARNINGS:"true"})}).then(f=>{f.exitCode!=0&&(e.call&&e.call==="check"&&f.stdout.length>0?a=new Error(f.stdout.split(`
|
|
`)[0]?.trim()):a=new Error(`buildx failed with: ${Et.getErrorMessage(f.stderr)}`))});let c=r.buildxBuild.resolveImageID(),l=r.buildxBuild.resolveMetadata(),u=r.buildxBuild.resolveDigest(l);c&&await Qr("ImageID",async()=>{O(c),xN("imageid",c)}),u&&await Qr("Digest",async()=>{O(u),xN("digest",u)}),l&&await Qr("Metadata",async()=>{let f=JSON.stringify(l,null,2);Xe.printUntrusted(f),xN("metadata",f)});let d;if(await Qr("Reference",async()=>{d=await V5t(r,t,e.builder),d?(O(d),vUe(d)):O("No build reference found")}),z5t()){let f=r.buildxBuild.resolveWarnings(l);if(d&&f&&f.length>0){let h=await Et.convertWarningsToGitHubAnnotations(f,[d]);R(`annotations: ${JSON.stringify(h,null,2)}`),h&&h.length>0&&await Qr(`Generating GitHub annotations (${h.length} build checks found)`,async()=>{for(let p of h)ut(p.message,p)})}}if(await Qr("Check build summary support",async()=>{$5t()?e.call&&e.call!=="build"?O(`Build summary skipped for ${e.call} subrequest`):Xe.isGHES?O("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?d?(O("Build summary supported!"),NUe()):O("Build summary requires a build reference"):O("Build summary requires Buildx >= 0.23.0"):O("Build summary disabled")}),a)throw a},async()=>{IUe&&await Qr("Generating build summary",async()=>{try{let t=j5t(),e;t&&(e=W5t());let n=await new JD().export({refs:tZ?[tZ]:[]});O(`Build record written to ${n.dockerbuildFilename} (${te.formatFileSize(n.dockerbuildSize)})`);let i;t&&(i=await ok.upload({filename:n.dockerbuildFilename,retentionDays:e})),await Ak.writeBuildSummary({exportRes:n,uploadRes:i,inputs:wUe,driver:CUe,endpoint:bUe})}catch(t){ut(t.message)}}),KB.length>0&&await Qr(`Removing temp folder ${KB}`,async()=>{try{TUe.rmSync(KB,{recursive:!0})}catch{ut(`Failed to remove temp folder ${KB}`)}})});async function V5t(t,e,r){let n=t.buildxBuild.resolveRef();if(n)return n;r||(r=(await t.builder.inspect()).name);let i=Et.refs({dir:Et.refsDir,builderName:r,since:e});return Object.keys(i).length>0?Object.keys(i)[0]:""}o(V5t,"buildRef");function z5t(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?te.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}o(z5t,"buildChecksAnnotationsEnabled");function $5t(){return process.env.DOCKER_BUILD_SUMMARY?te.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}o($5t,"buildSummaryEnabled");function j5t(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?te.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}o(j5t,"buildRecordUploadEnabled");function W5t(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw new Error(`Invalid build record retention days: ${t}`);return e}}o(W5t,"buildRecordRetentionDays");
|
|
/*! Bundled license information:
|
|
|
|
undici/lib/web/fetch/body.js:
|
|
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
|
|
|
undici/lib/web/websocket/frame.js:
|
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
|
|
tmp/lib/tmp.js:
|
|
(*!
|
|
* Tmp
|
|
*
|
|
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
|
*
|
|
* MIT Licensed
|
|
*)
|
|
|
|
normalize-path/index.js:
|
|
(*!
|
|
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
*
|
|
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
* Released under the MIT License.
|
|
*)
|
|
|
|
archiver/lib/error.js:
|
|
archiver/lib/core.js:
|
|
(**
|
|
* Archiver Core
|
|
*
|
|
* @ignore
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
*)
|
|
|
|
crc-32/crc32.js:
|
|
(*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)
|
|
|
|
zip-stream/index.js:
|
|
(**
|
|
* ZipStream
|
|
*
|
|
* @ignore
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
|
|
* @copyright (c) 2014 Chris Talkington, contributors.
|
|
*)
|
|
|
|
archiver/lib/plugins/zip.js:
|
|
(**
|
|
* ZIP Format Plugin
|
|
*
|
|
* @module plugins/zip
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
*)
|
|
|
|
archiver/lib/plugins/tar.js:
|
|
(**
|
|
* TAR Format Plugin
|
|
*
|
|
* @module plugins/tar
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
*)
|
|
|
|
archiver/lib/plugins/json.js:
|
|
(**
|
|
* JSON Format Plugin
|
|
*
|
|
* @module plugins/json
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
*)
|
|
|
|
archiver/index.js:
|
|
(**
|
|
* Archiver Vending
|
|
*
|
|
* @ignore
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
*)
|
|
|
|
he/he.js:
|
|
(*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
|
|
|
|
@octokit/request-error/dist-src/index.js:
|
|
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
|
|
|
|
@octokit/request/dist-bundle/index.js:
|
|
(* v8 ignore next -- @preserve *)
|
|
(* v8 ignore else -- @preserve *)
|
|
|
|
js-yaml/dist/js-yaml.mjs:
|
|
(*! js-yaml 5.4.2 https://github.com/nodeca/js-yaml @license MIT *)
|
|
*/
|
|
//# sourceMappingURL=index.cjs.map
|