[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] authored and GitHub committed 2025-07-10 19:07:39 +00:00
1 parent 53e6487b6e
commit 237a6a77d8
2 files changed
+411 -109

No files matched your search

Generated Vendored
+168 -48
View File
@@ -1,57 +1,177 @@
var Aw=Object.create;var Ds=Object.defineProperty;var Mw=Object.getOwnPropertyDescriptor;var qw=Object.getOwnPropertyNames;var zw=Object.getPrototypeOf,Lw=Object.prototype.hasOwnProperty;var o=(t,e)=>Ds(t,"name",{value:e,configurable:!0});var Bt=(t,e)=>()=>(t&&(e=t(t=0)),e);var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),bh=(t,e)=>{for(var a in e)Ds(t,a,{get:e[a],enumerable:!0})},xh=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of qw(e))!Lw.call(t,r)&&r!==a&&Ds(t,r,{get:()=>e[r],enumerable:!(i=Mw(e,r))||i.enumerable});return t};var Is=(t,e,a)=>(a=t!=null?Aw(zw(t)):{},xh(e||!t||!t.__esModule?Ds(a,"default",{value:t,enumerable:!0}):a,t)),cp=t=>xh(Ds({},"__esModule",{value:!0}),t);var mp=T(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.toCommandProperties=Jr.toCommandValue=void 0;function kw(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(kw,"toCommandValue");Jr.toCommandValue=kw;function jw(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(jw,"toCommandProperties");Jr.toCommandProperties=jw});var Sh=T(la=>{"use strict";var Uw=la&&la.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Hw=la&&la.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Fw=la&&la.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&Uw(e,t,a);return Hw(e,t),e};Object.defineProperty(la,"__esModule",{value:!0});la.issue=la.issueCommand=void 0;var Vw=Fw(require("os")),Nh=mp();function _h(t,e,a){let i=new em(t,e,a);process.stdout.write(i.toString()+Vw.EOL)}o(_h,"issueCommand");la.issueCommand=_h;function $w(t,e=""){_h(t,{},e)}o($w,"issue");la.issue=$w;var wh="::",em=class{static{o(this,"Command")}constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=wh+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let r=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${Xw(r)}`)}}return e+=`${wh}${Gw(this.message)}`,e}};function Gw(t){return(0,Nh.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Gw,"escapeData");function Xw(t){return(0,Nh.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Xw,"escapeProperty")});var Th=T(ca=>{"use strict";var Ww=ca&&ca.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Kw=ca&&ca.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),am=ca&&ca.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&Ww(e,t,a);return Kw(e,t),e};Object.defineProperty(ca,"__esModule",{value:!0});ca.prepareKeyValueMessage=ca.issueFileCommand=void 0;var Yw=am(require("crypto")),Eh=am(require("fs")),tm=am(require("os")),Ch=mp();function Qw(t,e){let a=process.env[`GITHUB_${t}`];if(!a)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Eh.existsSync(a))throw new Error(`Missing file at path: ${a}`);Eh.appendFileSync(a,`${(0,Ch.toCommandValue)(e)}${tm.EOL}`,{encoding:"utf8"})}o(Qw,"issueFileCommand");ca.issueFileCommand=Qw;function Jw(t,e){let a=`ghadelimiter_${Yw.randomUUID()}`,i=(0,Ch.toCommandValue)(e);if(t.includes(a))throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`);if(i.includes(a))throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`);return`${t}<<${a}${tm.EOL}${i}${tm.EOL}${a}`}o(Jw,"prepareKeyValueMessage");ca.prepareKeyValueMessage=Jw});var Ph=T(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.checkBypass=Zr.getProxyUrl=void 0;function Zw(t){let e=t.protocol==="https:";if(Oh(t))return;let a=(()=>e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(a)try{return new URL(a)}catch{if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}else return}o(Zw,"getProxyUrl");Zr.getProxyUrl=Zw;function Oh(t){if(!t.hostname)return!1;let e=t.hostname;if(eN(e))return!0;let a=process.env.no_proxy||proLine truncated
`,m.message,m.stack);var u=new Error("tunneling socket could not be established, cause="+m.message);u.code="ECONNRESET",e.request.emit("error",u),i.removeSocket(r)}o(c,"onError")},"createSocket");di.prototype.removeSocket=o(function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}},"removeSocket");function Dh(t,e){var a=this;di.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=rm({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=tN.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}o(Dh,"createSecureSocket");function Ih(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}o(Ih,"toOptions");function rm(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var p=r[n];i[p]!==void 0&&(t[p]=i[p])}}return t}o(rm,"mergeOptions");var Bi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Bi=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"):Bi=o(function(){},"debug");en.debug=Bi});var nm=T((cj,Ah)=>{Ah.exports=Bh()});var tn=T(Te=>{"use strict";var pN=Te&&Te.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),dN=Te&&Te.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),vp=Te&&Te.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&pN(e,t,a);return dN(e,t),e},tt=Te&&Te.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Te,"__esModule",{value:!0});Te.HttpClient=Te.isHttps=Te.HttpClientResponse=Te.HttpClientError=Te.getProxyUrl=Te.MediaTypes=Te.Headers=Te.HttpCodes=void 0;var up=vp(require("http")),sm=vp(require("https")),Mh=vp(Ph()),fp=vp(nm()),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=Te.HttpCodes||(Te.HttpCodes={}));var qt;(function(t){t.Accept="accept",t.ContentType="content-type"})(qt=Te.Headers||(Te.Headers={}));var Ai;(function(t){t.ApplicationJson="application/json"})(Ai=Te.MediaTypes||(Te.MediaTypes={}));function lN(t){let e=Mh.getProxyUrl(new URL(t));return e?e.href:""}o(lN,"getProxyUrl");Te.getProxyUrl=lN;var cN=[Pa.MovedPermanently,Pa.ResourceMoved,Pa.SeeOther,Pa.TemporaryRedirect,Pa.PermanentRedirect],mN=[Pa.BadGateway,Pa.ServiceUnavailable,Pa.GatewayTimeout],uN=["OPTIONS","GET","DELETE","HEAD"],fN=10,hN=5,gp=class t extends Error{static{o(this,"HttpClientError")}constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Te.HttpClientError=gp;var yp=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return tt(this,void 0,void 0,function*(){return new Promise(e=>tt(this,void 0,void 0,function*(){let a=Buffer.alloc(0);this.message.on("data",i=>{a=Buffer.concat([a,i])}),this.message.on("end",()=>{e(a.toString())})}))})}readBodyBuffer(){return tt(this,void 0,void 0,function*(){return new Promise(e=>tt(this,void 0,void 0,function*(){let a=[];this.message.on("data",i=>{a.push(i)}),this.message.on("end",()=>{e(Buffer.concat(a))})}))})}};Te.HttpClientResponse=yp;function gN(t){return new URL(t).protocol==="https:"}o(gN,"isHttps");Te.isHttps=gN;var om=class{static{o(this,"HttpClient")}constructor(e,a,i){this._ignoreSslError=!1 Line truncated
var Ute=Object.create;var Xu=Object.defineProperty;var Mte=Object.getOwnPropertyDescriptor;var _te=Object.getOwnPropertyNames;var Ote=Object.getPrototypeOf,Pte=Object.prototype.hasOwnProperty;var a=(t,e)=>Xu(t,"name",{value:e,configurable:!0});var Ze=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),e2=(t,e)=>{for(var r in e)Xu(t,r,{get:e[r],enumerable:!0})},Mx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _te(e))!Pte.call(t,n)&&n!==r&&Xu(t,n,{get:()=>e[n],enumerable:!(i=Mte(e,n))||i.enumerable});return t};var qa=(t,e,r)=>(r=t!=null?Ute(Ote(t)):{},Mx(e||!t||!t.__esModule?Xu(r,"default",{value:t,enumerable:!0}):r,t)),Ha=t=>Mx(Xu({},"__esModule",{value:!0}),t);var of=f(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.toCommandProperties=xl.toCommandValue=void 0;function qte(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}a(qte,"toCommandValue");xl.toCommandValue=qte;function Hte(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}a(Hte,"toCommandProperties");xl.toCommandProperties=Hte});var qx=f(Kn=>{"use strict";var Gte=Kn&&Kn.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Yte=Kn&&Kn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Vte=Kn&&Kn.__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)&&Gte(e,t,r);return Yte(e,t),e};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.issue=Kn.issueCommand=void 0;var Jte=Vte(require("os")),Ox=of();function Px(t,e,r){let i=new t2(t,e,r);process.stdout.write(i.toString()+Jte.EOL)}a(Px,"issueCommand");Kn.issueCommand=Px;function zte(t,e=""){Px(t,{},e)}a(zte,"issue");Kn.issue=zte;var _x="::",t2=class{static{a(this,"Command")}constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=_x+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${Wte(n)}`)}}return e+=`${_x}${jte(this.message)}`,e}};function jte(t){return(0,Ox.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}a(jte,"escapeData");function Wte(t){return(0,Ox.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}a(Wte,"escapeProperty")});var Yx=f(Zn=>{"use strict";var Xte=Zn&&Zn.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Kte=Zn&&Zn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i2=Zn&&Zn.__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)&&Xte(e,t,r);return Kte(e,t),e};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.prepareKeyValueMessage=Zn.issueFileCommand=void 0;var Zte=i2(require("crypto")),Hx=i2(require("fs")),r2=i2(require("os")),Gx=of();function $te(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Hx.existsSync(r))throw new Error(`Missing file at path: ${r}`);Hx.appendFileSync(r,`${(0,Gx.toCommandValue)(e)}${r2.EOL}`,{encoding:"utf8"})}a($te,"issueFileCommand");Zn.issueFileCommand=$te;function ere(t,e){let r=`ghadelimiter_${Zte.randomUUID()}`,i=(0,Gx.toCommandValue)(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(i.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${r2.EOL}${i}${r2.EOL}${r}`}a(ere,"prepareKeyValueMessage");Zn.prepareKeyValueMessage=ere});var Jx=f(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.checkBypass=Rl.getProxyUrl=void 0;function tre(t){let e=t.protocol==="https:";if(Vx(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 URL(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new URL(`http://${r}`)}else return}a(tre,"getProxyUrl");Rl.getProxyUrl=tre;function Vx(t){if(!t.hostname)return!1;let e=t.hostname;if(rre(e)Line truncated
`,p.message,p.stack);var u=new Error("tunneling socket could not be established, cause="+p.message);u.code="ECONNRESET",e.request.emit("error",u),i.removeSocket(n)}a(d,"onError")},"createSocket");JA.prototype.removeSocket=a(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(n){i.request.onSocket(n)})}},"removeSocket");function jx(t,e){var r=this;JA.prototype.createSocket.call(r,t,function(i){var n=t.request.getHeader("host"),s=s2({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):t.host}),A=ire.connect(0,s);r.sockets[r.sockets.indexOf(i)]=A,e(A)})}a(jx,"createSecureSocket");function Wx(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}a(Wx,"toOptions");function s2(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var n=Object.keys(i),s=0,A=n.length;s<A;++s){var o=n[s];i[o]!==void 0&&(t[o]=i[o])}}return t}a(s2,"mergeOptions");var Ga;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ga=a(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"):Ga=a(function(){},"debug");Dl.debug=Ga});var cf=f((iTe,Kx)=>{Kx.exports=Xx()});var Qt=f((nTe,Zx)=>{Zx.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var mt=f((sTe,$x)=>{"use strict";var gr=class extends Error{static{a(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}},A2=class t extends gr{static{a(this,"ConnectTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}},a2=class t extends gr{static{a(this,"HeadersTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}},o2=class t extends gr{static{a(this,"HeadersOverflowError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}},c2=class t extends gr{static{a(this,"BodyTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}},l2=class t extends gr{static{a(this,"ResponseStatusCodeError")}constructor(e,r,i,n){super(e),Error.captureStackTrace(this,t),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.status=r,this.statusCode=r,this.headers=i}},d2=class t extends gr{static{a(this,"InvalidArgumentError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="InvalidArgumentError Line truncated
\r
`),zre=/\r\n/g,jre=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function kl(t){BR.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=CR(t,"maxHeaderPairs",2e3),this.maxHeaderSize=CR(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new Vre(Jre),this.ss.on("info",function(r,i,n,s){i&&!e.maxed&&(e.nread+s-n>=e.maxHeaderSize?(s=e.maxHeaderSize-e.nread+n,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=s-n,e.buffer+=i.toString("binary",n,s)),r&&e._finish()})}a(kl,"HeaderParser");Yre(kl,BR);kl.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};kl.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};kl.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};kl.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(zre),e=t.length,r,i;for(var n=0;n<e;++n){if(t[n].length===0)continue;if((t[n][0]===" "||t[n][0]===" ")&&i){this.header[i][this.header[i].length-1]+=t[n];continue}let s=t[n].indexOf(":");if(s===-1||s===0)return;if(r=jre.exec(t[n]),i=r[1].toLowerCase(),this.header[i]=this.header[i]||[],this.header[i].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};IR.exports=kl});var S2=f((CTe,bR)=>{"use strict";var D2=require("node:stream").Writable,Wre=require("node:util").inherits,Xre=x2(),yR=fR(),Kre=QR(),Zre=45,$re=Buffer.from("-"),eie=Buffer.from(`\r
`),tie=a(function(){},"EMPTY_FN");function Fs(t){if(!(this instanceof Fs))return new Fs(t);if(D2.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new Kre(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}a(Fs,"Dicer");Wre(Fs,D2);Fs.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else D2.prototype.emit.apply(this,arguments)};Fs.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new yR(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let i=this._hparser.push(t);if(!this._inHeader&&i!==void 0&&i<t.length)t=t.slice(i);else return r()}this._firstWrite&&(this._bparser.push(eie),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Fs.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Fs.prototype.setBoundary=function(t){let e=this;this._bparser=new Xre(`\r
--`+t),this._bparser.on("info",function(r,i,n,s){e._oninfo(r,i,n,s)})};Fs.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",tie),this._part.resume())};Fs.prototype._oninfo=function(t,e,r,i){let n,s=this,A=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+A<i;)if(e[r+A]===Zre)++A,++this._dashes;else{this._dashes&&(n=$re),this._dashes=0;break}if(this._dashes===2&&(r+A<i&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+A,i)),this.reset(),this._finished=!0,s._parts===0&&(s._realFinish=!0,s.emit("finish"),s._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new yR(this._partOpts),this._part._read=function(l){s._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<i&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(n&&(c=this._part.push(n)),c=this._part.push(e.slice(r,i)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(n&&this._hparser.push(n),o=this._hparser.push(e.slice(r,i)),!this._inHeader&&o!==void 0&&o<i&&this._oninfo(!1,e,r+o,i))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==i&&(++this._parts,this._part.on("end",function(){--s._parts===0&&(s._finished?(s._realFinish=!0,s.emit("finish"),s._realFinish=!1):s._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Fs.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};bR.exports=Fs});var gf=f((k2,vR)=>{"use strict";var wR=new TextDecoder("utf-8"),NR=new Map([["utf-8",wR],["utf8",wR]]);function rie(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return Zu.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return Zu.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return Zu.utf16le;case"base64":return Zu.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return Zu.other.bind(t)}}a(rie,"getDecoder");var Zu={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),NR.has(k2.toString()))try{return NR.get(k2).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function iie(t,e,r){return t&&rie(r)(t,e)}a(iie,"decodeText");vR.exports=iie});var T2=f((QTe,kR)=>{"use strict";var mf=gf(),xR=/%[a-fA-F0-9][a-fA-F0-9]/g,nie={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}a(iD,"isValidHeaderValue");function ine(t,e){let{headersList:r}=e,i=(r.get("referrer-policy")??"").split(","),n="";if(i.length>0)for(let s=i.length;s!==0;s--){let A=i[s-1].trim();if(Gie.has(A)){n=A;break}}n!==""&&(t.referrerPolicy=n)}a(ine,"setRequestReferrerPolicyOnRedirect");function nne(){return"allowed"}a(nne,"crossOriginResourcePolicyCheck");function sne(){return"success"}a(sne,"corsCheck");function Ane(){return"success"}a(Ane,"TAOCheck");function ane(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(ane,"appendFetchMetadata");function one(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&H2(t.origin)&&!H2(rg(t))&&(e=null);break;case"same-origin":Cf(t,rg(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(one,"appendRequestOriginHeader");function cne(t){return Jie.now()}a(cne,"coarsenedSharedCurrentTime");function lne(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}}a(lne,"createOpaqueTimingInfo");function dne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(dne,"makePolicyContainer");function pne(t){return{referrerPolicy:t.referrerPolicy}}a(pne,"clonePolicyContainer");function une(t){let e=t.referrerPolicy;Ml(e);let r=null;if(t.referrer==="client"){let o=Vie();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let i=P2(r),n=P2(r,!0);i.toString().length>4096&&(i=n);let s=Cf(t,i),A=eg(i)&&!eg(t.url);switch(e){case"origin":return n??P2(r,!0);case"unsafe-url":return i;case"same-origin":return s?n:"no-referrer";case"origin-when-cross-origin":return s?i:n;case"strict-origin-when-cross-origin":{let o=rg(t);return Cf(i,o)?i:eg(i)&&!eg(o)?"no-referrer":n}case"strict-origin":case"no-referrer-when-downgrade":default:return A?"no-referrer":n}}a(une,"determineRequestsReferrer");function P2(t,e){return Ml(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}a(P2,"stripURLForReferrer");function eg(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 i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}a(eg,"isURLPotentiallyTrustworthy");function gne(t,e){if(tg===void 0)return!0;let r=hne(e);if(r==="no metadata"||r.length===0)return!0;let i=r.sort((A,o)=>o.algo.localeCompare(A.algo)),n=i[0].algo,s=i.filter(A=>A.algo===n);for(let A of s){let o=A.algo,c=A.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=tg.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=tg.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(gne,"bytesMatch");var mne=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function hne(t){let e=[],r=!0,i=tg.getHashes();for(let n of t.split(" ")){r=!1;let s=mne.exec(n);if(s===null||s.groups===void 0)continue;let A=s.groups.algo;i.includes(A.toLowerCase())&&e.push(s.groups)}return r===!0?"no metadata":e}a(hne,"parseMetadata");function fne(t){}a(fne,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function Cf(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(Cf,"sameOrigin");function Ene(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}}a(Ene,"createDeferredPromise");function Cne(t){return t.controller.state==="aborted"}a(Cne,"isAborted");function Bne(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(Bne,"isCancelled");var G2={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(G2,null);function Ine(t){return G2[t.toLowerCase()]??t}a(Ine,"normalizeMethod");function Qne(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Ml(typeof e=="string"),e}a(Qne,"serializeJavascriptValueToJSONString");var yne=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function bne(t,e,r){let i={index:0,kind:r,target:t},n={next(){if(Object.getPrototypeOf(this Line truncated
`||t===" "||t===" "}a(lD,"isHTTPWhiteSpace");function Y2(t,e=!0,r=!0){let i=0,n=t.length-1;if(e)for(;i<t.length&&lD(t[i]);i++);if(r)for(;n>0&&lD(t[n]);n--);return t.slice(i,n+1)}a(Y2,"removeHTTPWhitespace");function dD(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}a(dD,"isASCIIWhitespace");function Yne(t,e=!0,r=!0){let i=0,n=t.length-1;if(e)for(;i<t.length&&dD(t[i]);i++);if(r)for(;n>0&&dD(t[n]);n--);return t.slice(i,n+1)}a(Yne,"removeASCIIWhitespace");mD.exports={dataURLProcessor:Pne,URLSerializer:pD,collectASequenceOfCodePoints:Qf,collectASequenceOfCodePointsFast:_l,stringPercentDecode:uD,parseMIMEType:V2,collectAnHTTPQuotedString:gD,serializeAMimeType:Gne}});var yf=f((YTe,BD)=>{"use strict";var{Blob:ED,File:hD}=require("buffer"),{types:J2}=require("util"),{kState:Bn}=jA(),{isBlobLike:CD}=$n(),{webidl:tt}=vi(),{parseMIMEType:Vne,serializeAMimeType:Jne}=Ts(),{kEnumerableProperty:fD}=Ve(),zne=new TextEncoder,ig=class t extends ED{static{a(this,"File")}constructor(e,r,i={}){tt.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=tt.converters["sequence<BlobPart>"](e),r=tt.converters.USVString(r),i=tt.converters.FilePropertyBag(i);let n=r,s=i.type,A;e:{if(s){if(s=Vne(s),s==="failure"){s="";break e}s=Jne(s).toLowerCase()}A=i.lastModified}super(jne(e,i),{type:s}),this[Bn]={name:n,lastModified:A,type:s}}get name(){return tt.brandCheck(this,t),this[Bn].name}get lastModified(){return tt.brandCheck(this,t),this[Bn].lastModified}get type(){return tt.brandCheck(this,t),this[Bn].type}},z2=class t{static{a(this,"FileLike")}constructor(e,r,i={}){let n=r,s=i.type,A=i.lastModified??Date.now();this[Bn]={blobLike:e,name:n,type:s,lastModified:A}}stream(...e){return tt.brandCheck(this,t),this[Bn].blobLike.stream(...e)}arrayBuffer(...e){return tt.brandCheck(this,t),this[Bn].blobLike.arrayBuffer(...e)}slice(...e){return tt.brandCheck(this,t),this[Bn].blobLike.slice(...e)}text(...e){return tt.brandCheck(this,t),this[Bn].blobLike.text(...e)}get size(){return tt.brandCheck(this,t),this[Bn].blobLike.size}get type(){return tt.brandCheck(this,t),this[Bn].blobLike.type}get name(){return tt.brandCheck(this,t),this[Bn].name}get lastModified(){return tt.brandCheck(this,t),this[Bn].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(ig.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:fD,lastModified:fD});tt.converters.Blob=tt.interfaceConverter(ED);tt.converters.BlobPart=function(t,e){if(tt.util.Type(t)==="Object"){if(CD(t))return tt.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||J2.isAnyArrayBuffer(t))return tt.converters.BufferSource(t,e)}return tt.converters.USVString(t,e)};tt.converters["sequence<BlobPart>"]=tt.sequenceConverter(tt.converters.BlobPart);tt.converters.FilePropertyBag=tt.dictionaryConverter([{key:"lastModified",converter:tt.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:tt.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=tt.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function jne(t,e){let r=[];for(let i of t)if(typeof i=="string"){let n=i;e.endings==="native"&&(n=Wne(n)),r.push(zne.encode(n))}else J2.isAnyArrayBuffer(i)||J2.isTypedArray(i)?i.buffer?r.push(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)):r.push(new Uint8Array(i)):CD(i)&&r.push(i);return r}a(jne,"processBlobParts");function Wne(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}a(Wne,"convertLineEndingsNative");function Xne(t){return hD&&t instanceof hD||t instanceof ig||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(Xne,"isFileLike");BD.exports={File:ig,FileLike:z2,isFileLike:Xne}});var wf=f((JTe,wD)=>{"use strict";var{isBlobLike:bf,toUSVString:Kne,makeIterator:j2}=$n(),{kState:mi}=jA(),{File:bD,FileLike:ID,isFileLike:Zne}=yf(),{webidl:lt}=vi(),{Blob:$ne,File:W2}=require("buffer"),QD=W2??bD,Ol=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw lt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[mi]=[]}append(e,r,i=void 0){if(lt.brandCheck(this,t),lt.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!bf(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=lt.converters.USVString(e),r=bf(r)?lt.converters.Blob(r,{strict:!1}):lt.converters.USVString(r),i=arguments.length===3?lt.converters.USVString(i):void 0;let n=yD(e,r,i);this[mi].push(n)}delete(e){lt.brandCheck(this,t),lt.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=lt.converters.USVString(e),this[mi]=this[mi].filter(r=>r.name!==e)}get(e){lt.brandCheck(this,t),lt.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=lt.converters.USVString(e);let r=this[mi].findIndex(i=>i.name===e);return r===-1?null:this[mi][r].value}getAll(e){return lt.brandCheck(this,t),lt.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=lt.converters.USVString(e),this[mi].filter(r=>r.name===e).map(r=>r.value)}has(e){return lt.brandCheck(this,t),lt.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=lt.converters.USVString(e),this[mi].findIndex(r=>r.name===e)!==-1}set(e,r,i=void 0){if(lt.brandCheck(this,t),lt.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!bf(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=lt.converters.USVString(e),r=bf(r)?lt.converters.Blob(r,{strict:!1}):lt.converters.USVString(r),i=arguments.length===3?Kne(i):void 0;let n=yD(e,r,i),s=this[mi].findIndex(A=>A.name===e);s!==-1?this[mi]=[...this[mi].slice(0,s),n,...this[mi].slice(s+1).filter(A=>A.name!==e)]:this[mi].push(n)}entries(){return lt.brandCheck(this,t),j2(()=>this[mi].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return lt.brandCheck(this,t),j2(()=>this[mi].map(e=>[e.name,e.value]),"FormData","key")}values(){return lt.brandCheck(this,t),j2(()=>this[mi].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(lt.brandCheck(this,t),lt.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[i,n]of this)e.apply(r,[n,i,this])}};Ol.prototype[Symbol.iterator]=Ol.prototype.entries;Object.defineProperties(Ol.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function yD(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(Zne(e)||(e=e instanceof $ne?new QD([e],"blob",{type:e.type}):new ID(e,"blob",{type:e.type})),r!==void 0){let i={type:e.type,lastModified:e.lastModified};e=W2&&e instanceof W2||e instanceof bD?new QD([e],r,i):new ID(e,r,i)}return{name:t,value:e}}a(yD,"makeEntry");wD.exports={FormData:Ol}});var ng=f((jTe,TD)=>{"use strict";var ese=VR(),Pl=Ve(),{ReadableStreamFrom:tse,isBlobLike:ND,isReadableStreamLike:rse,readableStreamClose:ise,createDeferredPromise:nse,fullyReadBody:sse}=$n(),{FormData:vD}=wf(),{kState:XA}=jA(),{webidl:X2}=vi(),{DOMException:DD,structuredClone:Ase}=Ja(),{Blob:ase,File:ose}=require("buffer"),{kBodyUsed:cse}=Qt(),K2=require("assert"),{isErrored:lse}=Ve(),{isUint8Array:SD,isArrayBuffer:dse}=require("util/types"),{File:pse}=yf(),{parseMIMEType:use,serializeAMimeType:gse}=Ts(),WA=globalThis.ReadableStream,xD=ose??pse,Nf=new TextEncoder,mse=new TextDecoder;function kD(t,e=!1){WA||(WA=require("stream/web").ReadableStream);let r=null;t instanceof WA?r=t:ND(t)?r=t.stream():r=new WA({async pull(c){c.enqueue(typeof n=="string"?Nf.encode(n):n),queueMicrotask(()=>ise(c))},start(){},type:void 0}),K2(rse(r));let i=null,n=null,s=null,A=null;if(typeof t=="string")n=t,A="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),A="application/x-www-form-urlencoded;charset=UTF-8";else if(dse(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Pl.isFormDataLike(t)){let c=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let d=a(B=>B.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),p=a(B=>B.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),u=[],g=new Uint8Array([13,10]);s=0;let m=!1;for(let[B,I]of t)if(typeof I=="string"){let v=Nf.encode(l+`; name="${d(p(B))}"\r
\r
${p(I)}\r
`);u.push(v),s+=v.byteLength}else{let v=Nf.encode(`${l}; name="${d(p(B))}"`+(I.name?`; filename="${d(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);u.push(v,I,g),typeof I.size=="number"?s+=v.byteLength+I.size+g.byteLength:m=!0}let h=Nf.encode(`--${c}--`);u.push(h),s+=h.byteLength,m&&(s=null),n=t,i=a(async function*(){for(let B of u)B.stream?yield*B.stream():yield B},"action"),A="multipart/form-data; boundary="+c}else if(ND(t))n=t,s=t.size,t.type&&(A=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Pl.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof WA?t:tse(t)}if((typeof n=="string"||Pl.isBuffer(n))&&(s=Buffer.byteLength(n)),i!=null){let c;r=new WA({async start(){c=i(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:p}=await c.next();return p?queueMicrotask(()=>{l.close()}):lse(r)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:r,source:n,length:s},A]}a(kD,"extractBody");function hse(t,e=!1){return WA||(WA=require("stream/web").ReadableStream),t instanceof WA&&(K2(!Pl.isDisturbed(t),"The body has already been consumed."),K2(!t.locked,"The stream is locked.")),kD(t,e)}a(hse,"safelyExtractBody");function fse(t){let[e,r]=t.stream.tee(),i=Ase(r,{transfer:[r]}),[,n]=i.tee();return t.stream=e,{stream:n,length:t.length,source:t.source}}a(fse,"cloneBody");async function*RD(t){if(t)if(SD(t))yield t;else{let e=t.stream;if(Pl.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[cse]=!0,yield*e}}a(RD,"consumeBody");function Z2(t){if(t.aborted)throw new DD("The operation was aborted.","AbortError")}a(Z2,"throwIfAborted");function Ese(t){return{blob(){return vf(this,r=>{let i=Qse(this);return i==="failure"?i="":i&&(i=gse(i)),new ase([r],{type:i})},t)},arrayBuffer(){return vf(this,r=>new Uint8Array(r).buffer,t)},text(){return vf(this,FD,t)},json(){return vf(this,Ise,t)},async formData(){X2.brandCheck(this,t),Z2(this[XA]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let i={};for(let[o,c]of this.headers)i[o.toLowerCase()]=c;let n=new vD,s;try{s=new ese({headers:i,preservePath:!0})}catch(o){throw new DD(`${o}`,"AbortError")}s.on("field",(o,c)=>{n.append(o,c)}),s.on("file",(o,c,l,d,p)=>{let u=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",m=>{g+=m.toString().replace(/[\r\n]/gm,"");let h=g.length-g.length%4;u.push(Buffer.from(g.slice(0,h),"base64")),g=g.slice(h)}),c.on("end",()=>{u.push(Buffer.from(g,"base64")),n.append(o,new xD(u,l,{type:p}))})}else c.on("data",g=>{u.push(g)}),c.on("end",()=>{n.append(o,new xD(u,l,{type:p}))})});let A=new Promise((o,c)=>{s.on("finish",o),s.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of RD(this[XA].body))s.write(o);return s.end(),await A,n}else if(/application\/x-www-form-urlencoded/.test(r)){let i;try{let s="",A=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of RD(this[XA].body)){if(!SD(o))throw new TypeError("Expected Uint8Array chunk");s+=A.decode(o,{stream:!0})}s+=A.decode(),i=new URLSearchParams(s)}catch(s){throw Object.assign(new TypeError,{cause:s})}let n=new vD;for(let[s,A]of i)n.append(s,A);return n}else throw await Promise.resolve(),Z2(this[XA]),X2.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(Ese,"bodyMixinMethods");function Cse(t){Object.assign(t.prototype,Ese(t))}a(Cse,"mixinBody");async function vf(t,e,r){if(X2.brandCheck(t,r),Z2(t[XA]),Bse(t[XA].body))throw new TypeError("Body is unusable");let i=nse(),n=a(A=>i.reject(A),"errorSteps"),s=a(A=>{try{i.resolve(e(A))}catch(o){n(o)}},"successSteps");return t[XA].body==null?(s(new Uint8Array),i.promise):(await sse(t[XA].body,s,n),i.promise)}a(vf,"specConsumeBody");function Bse(t){return t!=null&&(t.stream.locked||Pl.isDisturbed(t.stream))}a(Bse,"bodyUnusable");function FD(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),mse.decode(t))}a(FD,"utf8DecodeBytes");function Ise(t){return JSON.parse(FD(t))}a(Ise,"parseJSONFromBytes");function Qse(t){let{headersList:e}=t[XA],r=e.get("content-type");return r===null?"failure":use(r)}a(Qse,"bodyMimeType");TD.exports={extractBody:kD,safelyExtractBody:hse,cloneBody:fse,mixinBody:Cse}});var _D=f((XTe,MD)=>{"use strict";var{InvalidArgumentError:yt,NotSupportedError:yse}=mt(),KA=require("assert"),{kHTTP2BuildRequest:bse,kHTTP2CopyHeaders:wse,kHTTP1BuildRequest:Nse}=Qt(),Vi=Ve(),LD=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,UD=/[^\t\x20-\x7e\x80-\xff]/,vse=/[^\u0021-\u00ff]/,Ls=Symbol("handler"),yr={},$2;try{let t=require("diagnostics_channel");yr.create=t.channel("undici:request:create"),yr.bodySent=t.channel("undici:request:bodySent"),yr.headers=t.channel("undici:request:headers"),yr.trailers=t.channel("undici:request:trailers"),yr.error=t.channel("undici:request:error")}catch{yr.create={hasSubscribers:!1},yr.bodySent={hasSubscribers:!1},yr.headers={hasSubscribers:!1},yr.trailers={hasSubscribers:!1},yr.error={hasSLine truncated
`),this.body=B.stream,this.contentLength=B.length}else Vi.isBlobLike(n)&&this.contentType==null&&n.type&&(this.contentType=n.type,this.headers+=`content-type: ${n.type}\r
`);Vi.validateHandler(h,i,l),this.servername=Vi.getServerName(this.host),this[Ls]=h,yr.create.hasSubscribers&&yr.create.publish({request:this})}onBodySent(e){if(this[Ls].onBodySent)try{return this[Ls].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(yr.bodySent.hasSubscribers&&yr.bodySent.publish({request:this}),this[Ls].onRequestSent)try{return this[Ls].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(KA(!this.aborted),KA(!this.completed),this.error)e(this.error);else return this.abort=e,this[Ls].onConnect(e)}onHeaders(e,r,i,n){KA(!this.aborted),KA(!this.completed),yr.headers.hasSubscribers&&yr.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:n}});try{return this[Ls].onHeaders(e,r,i,n)}catch(s){this.abort(s)}}onData(e){KA(!this.aborted),KA(!this.completed);try{return this[Ls].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,i){return KA(!this.aborted),KA(!this.completed),this[Ls].onUpgrade(e,r,i)}onComplete(e){this.onFinally(),KA(!this.aborted),this.completed=!0,yr.trailers.hasSubscribers&&yr.trailers.publish({request:this,trailers:e});try{return this[Ls].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),yr.error.hasSubscribers&&yr.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Ls].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 sg(this,e,r),this}static[Nse](e,r,i){return new t(e,r,i)}static[bse](e,r,i){let n=r.headers;r={...r,headers:null};let s=new t(e,r,i);if(s.headers={},Array.isArray(n)){if(n.length%2!==0)throw new yt("headers array must be even");for(let A=0;A<n.length;A+=2)sg(s,n[A],n[A+1],!0)}else if(n&&typeof n=="object"){let A=Object.keys(n);for(let o=0;o<A.length;o++){let c=A[o];sg(s,c,n[c],!0)}}else if(n!=null)throw new yt("headers must be an object or an array");return s}static[wse](e){let r=e.split(`\r
`),i={};for(let n of r){let[s,A]=n.split(": ");A==null||A.length===0||(i[s]?i[s]+=`,${A}`:i[s]=A)}return i}};function Ac(t,e,r){if(e&&typeof e=="object")throw new yt(`invalid ${t} header`);if(e=e!=null?`${e}`:"",UD.exec(e)!==null)throw new yt(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}a(Ac,"processHeaderValue");function sg(t,e,r,i=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new yt(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(UD.exec(r)!==null)throw new yt(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new yt("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,i?t.headers[e]=Ac(e,r,i):t.headers+=Ac(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new yt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let n=typeof r=="string"?r.toLowerCase():null;if(n!=="close"&&n!=="keep-alive")throw new yt("invalid connection header");n==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new yt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new yt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new yse("expect header not supported");if(LD.exec(e)===null)throw new yt("invalid header key");if(Array.isArray(r))for(let n=0;n<r.length;n++)i?t.headers[e]?t.headers[e]+=`,${Ac(e,r[n],i)}`:t.headers[e]=Ac(e,r[n],i):t.headers+=Ac(e,r[n]);else i?t.headers[e]=Ac(e,r,i):t.headers+=Ac(e,r)}}}a(sg,"processHeader");MD.exports=ey});var xf=f((ZTe,OD)=>{"use strict";var xse=require("events"),ty=class extends xse{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};OD.exports=ty});var ag=f((eLe,PD)=>{"use strict";var Rse=xf(),{ClientDestroyedError:ry,ClientClosedError:Dse,InvalidArgumentError:ql}=mt(),{kDestroy:Sse,kClose:kse,kDispatch:iy,kInterceptors:ac}=Qt(),Hl=Symbol("destroyed"),Ag=Symbol("closed"),ZA=Symbol("onDestroyed"),Gl=Symbol("onClosed"),Rf=Symbol("Intercepted Dispatch"),ny=class extends Rse{static{a(this,"DispatcherBase")}constructor(){super(),this[Hl]=!1,this[ZA]=null,this[Ag]=!1,this[Gl]=[]}get destroyed(){return this[Hl]}get closed(){return this[Ag]}get interceptors(){return this[ac]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[ac][r]!="function")throw new ql("interceptor must be an function")}this[ac]=e}close(e){if(e===void 0)return new Promise((i,n)=>{this.close((s,A)=>s?n(s):i(A))});if(typeof e!="function")throw new ql("invalid callback");if(this[Hl]){queueMicrotask(()=>e(new ry,null));return}if(this[Ag]){this[Gl]?this[Gl].push(e):queueMicrotask(()=>e(null,null));return}this[Ag]=!0,this[Gl].push(e);let r=a(()=>{let i=this[Gl];this[Gl]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onClosed");this[kse]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((n,s)=>{this.destroy(e,(A,o)=>A?s(A):n(o))});if(typeof r!="function")throw new ql("invalid callback");if(this[Hl]){this[ZA]?this[ZA].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new ry),this[Hl]=!0,this[ZA]=this[ZA]||[],this[ZA].push(r);let i=a(()=>{let n=this[ZA];this[ZA]=null;for(let s=0;s<n.length;s++)n[s](null,null)},"onDestroyed");this[Sse](e).then(()=>{queueMicrotask(i)})}[Rf](e,r){if(!this[ac]||this[ac].length===0)return this[Rf]=this[iy],this[iy](e,r);let i=this[iy].bind(this);for(let n=this[ac].length-1;n>=0;n--)i=this[ac][n](i);return this[Rf]=i,i(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new ql("handler must be an object");try{if(!e||typeof e!="object")throw new ql("opts must be an object.");if(this[Hl]||this[ZA])throw new ry;if(this[Ag])throw new Dse;return this[Rf](e,r)}catch(i){if(typeof r.onError!="function")throw new ql("invalid onError method");return r.onError(i),!1}}};PD.exports=ny});var og=f((nLe,GD)=>{"use strict";var Fse=require("net"),qD=require("assert"),HD=Ve(),{InvalidArgumentError:Tse,ConnectTimeoutError:Lse}=mt(),sy,Ay;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?Ay=class{static{a(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 i=this._sessionCache.get(r);i!==void 0&&i.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))}}:Ay=class{static{a(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:i}=this._sessionCache.keys().next();this._sessionCache.delete(i)}this._sessionCache.set(e,r)}}};function Use({allowH2:t,maxCachedSessi Line truncated
`,this[AS]=c??3e5,this[sS]=n??3e5,this[gg]=v??!0,this[pAe]=E,this[mg]=w,this[ja]=null,this[oS]=b>-1?b:-1,this[oA]="h1",this[Qn]=null,this[Mf]=D?{openStreams:0,maxConcurrentStreams:S??100}:null,this[cS]=`${this[ri].hostname}${this[ri].port?`:${this[ri].port}`:""}`,this[Dt]=[],this[St]=0,this[In]=0}get pipelining(){return this[Xa]}set pipelining(e){this[Xa]=e,yn(this,!0)}get[lc](){return this[Dt].length-this[In]}get[Jt](){return this[In]-this[St]}get[cc](){return this[Dt].length-this[St]}get[dAe](){return!!this[Kt]&&!this[Jl]&&!this[Kt].destroyed}get[gy](){let e=this[Kt];return e&&(e[xi]||e[ea]||e[jl])||this[cc]>=(this[Xa]||1)||this[lc]>0}[lAe](e){uS(this),this.once("connect",e)}[mAe](e,r){let i=e.origin||this[ri].origin,n=this[oA]==="h2"?uy[fAe](i,e,r):uy[CAe](i,e,r);return this[Dt].push(n),this[oc]||(de.bodyLength(n.body)==null&&de.isIterable(n.body)?(this[oc]=1,process.nextTick(yn,this)):yn(this,!0)),this[oc]&&this[Wa]!==2&&this[gy]&&(this[Wa]=2),this[Wa]<2}async[uAe](){return new Promise(e=>{this[cc]?this[ja]=e:e(null)})}async[gAe](e){return new Promise(r=>{let i=this[Dt].splice(this[In]);for(let s=0;s<i.length;s++){let A=i[s];Ri(this,A,e)}let n=a(()=>{this[ja]&&(this[ja](),this[ja]=null),r()},"callback");this[Qn]!=null&&(de.destroy(this[Qn],e),this[Qn]=null,this[Mf]=null),this[Kt]?de.destroy(this[Kt].on("close",n),e):queueMicrotask(n),yn(this)})}};function vAe(t){ee(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Kt][ii]=t,qf(this[aA],t)}a(vAe,"onHttp2SessionError");function xAe(t,e,r){let i=new AA(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[Kt][ii]=i,qf(this[aA],i))}a(xAe,"onHttp2FrameError");function RAe(){de.destroy(this,new zl("other side closed")),de.destroy(this[Kt],new zl("other side closed"))}a(RAe,"onHttp2SessionEnd");function DAe(t){let e=this[aA],r=new AA(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Kt]=null,e[Qn]=null,e.destroyed){ee(this[lc]===0);let i=e[Dt].splice(e[St]);for(let n=0;n<i.length;n++){let s=i[n];Ri(this,s,r)}}else if(e[Jt]>0){let i=e[Dt][e[St]];e[Dt][e[St]++]=null,Ri(e,i,r)}e[In]=e[St],ee(e[Jt]===0),e.emit("disconnect",e[ri],[e],r),yn(e)}a(DAe,"onHTTP2GoAway");var iA=VD(),SAe=kf(),kAe=Buffer.alloc(0);async function FAe(){let t=process.env.JEST_WORKER_ID?ly():void 0,e;try{e=await WebAssembly.compile(Buffer.from(ZD(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||ly(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,i,n)=>0,wasm_on_status:(r,i,n)=>{ee.strictEqual(Sr.ptr,r);let s=i-sA+nA.byteOffset;return Sr.onStatus(new Ff(nA.buffer,s,n))||0},wasm_on_message_begin:r=>(ee.strictEqual(Sr.ptr,r),Sr.onMessageBegin()||0),wasm_on_header_field:(r,i,n)=>{ee.strictEqual(Sr.ptr,r);let s=i-sA+nA.byteOffset;return Sr.onHeaderField(new Ff(nA.buffer,s,n))||0},wasm_on_header_value:(r,i,n)=>{ee.strictEqual(Sr.ptr,r);let s=i-sA+nA.byteOffset;return Sr.onHeaderValue(new Ff(nA.buffer,s,n))||0},wasm_on_headers_complete:(r,i,n,s)=>(ee.strictEqual(Sr.ptr,r),Sr.onHeadersComplete(i,!!n,!!s)||0),wasm_on_body:(r,i,n)=>{ee.strictEqual(Sr.ptr,r);let s=i-sA+nA.byteOffset;return Sr.onBody(new Ff(nA.buffer,s,n))||0},wasm_on_message_complete:r=>(ee.strictEqual(Sr.ptr,r),Sr.onMessageComplete()||0)}})}a(FAe,"lazyllhttp");var py=null,fy=FAe();fy.catch();var Sr=null,nA=null,Tf=0,sA=null,Wl=1,Uf=2,Ey=3,Cy=class{static{a(this,"Parser")}constructor(e,r,{exports:i}){ee(Number.isFinite(e[Lf])&&e[Lf]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(iA.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[Lf],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[oS]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(dy.clearTimeout(this.timeout),e?(this.timeout=dy.setTimeout(TAe,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(ee(this.ptr!=null),ee(Sr==null),this.llhttp.llhttp_resume(this.ptr),ee(this.timeoutType===Uf),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||kAe),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){ee(this.ptr!=null),ee(Sr==null),ee(!this.paused);let{socket:r,llhttp:i}=this;e.length>Tf&&(sA&&i.free(sA),Tf=Math.ceil(e.length/4096)*4096,sA=i.malloc(Tf)),new Uint8Array(i.memory.buffer,sA,Tf).set(e);try{let n;try{nA=e,Sr=this,n=i.llhttp_execute(this.ptr,sA,e.length)}catch(A){throw A}finally{Sr=null,nA=null}let s=i.llhttp_get_error_pos(this.ptr)-sA;if(n===iA.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(s));else if(n===iA.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(s));e Line truncated
`;return typeof s=="string"?m+=`host: ${s}\r
`:m+=t[rS],A?m+=`connection: upgrade\r
upgrade: ${A}\r
`:t[Xa]&&!g[xi]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,o&&(m+=o),hi.sendHeaders.hasSubscribers&&hi.sendHeaders.publish({request:e,headers:m,socket:g}),!r||p===0?(u===0?g.write(`${m}content-length: 0\r
\r
`,"latin1"):(ee(u===null,"no body must not have content length"),g.write(`${m}\r
`,"latin1")),e.onRequestSent()):de.isBuffer(r)?(ee(u===r.byteLength,"buffer body must have content length"),g.cork(),g.write(`${m}content-length: ${u}\r
\r
`,"latin1"),g.write(r),g.uncork(),e.onBodySent(r),e.onRequestSent(),d||(g[xi]=!0)):de.isBlobLike(r)?typeof r.stream=="function"?Of({body:r.stream(),client:t,request:e,socket:g,contentLength:u,header:m,expectsPayload:d}):hS({body:r,client:t,request:e,socket:g,contentLength:u,header:m,expectsPayload:d}):de.isStream(r)?mS({body:r,client:t,request:e,socket:g,contentLength:u,header:m,expectsPayload:d}):de.isIterable(r)?Of({body:r,client:t,request:e,socket:g,contentLength:u,header:m,expectsPayload:d}):ee(!1),!0}a(UAe,"write");function MAe(t,e,r){let{body:i,method:n,path:s,host:A,upgrade:o,expectContinue:c,signal:l,headers:d}=r,p;if(typeof d=="string"?p=uy[EAe](d.trim()):p=d,o)return Ri(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(v=>{r.aborted||r.completed||Ri(t,r,v||new Iy)})}catch(v){Ri(t,r,v)}if(r.aborted)return!1;let u,g=t[Mf];if(p[BAe]=A||t[cS],p[IAe]=n,n==="CONNECT")return e.ref(),u=e.request(p,{endStream:!1,signal:l}),u.id&&!u.pending?(r.onUpgrade(null,null,u),++g.openStreams):u.once("ready",()=>{r.onUpgrade(null,null,u),++g.openStreams}),u.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;p[QAe]=s,p[yAe]="https";let m=n==="PUT"||n==="POST"||n==="PATCH";i&&typeof i.read=="function"&&i.read(0);let h=de.bodyLength(i);if(h==null&&(h=r.contentLength),(h===0||!m)&&(h=null),gS(n)&&h>0&&r.contentLength!=null&&r.contentLength!==h){if(t[gg])return Ri(t,r,new $A),!1;process.emitWarning(new $A)}h!=null&&(ee(i,"no body must not have content length"),p[bAe]=`${h}`),e.ref();let B=n==="GET"||n==="HEAD";return c?(p[wAe]="100-continue",u=e.request(p,{endStream:B,signal:l}),u.once("continue",I)):(u=e.request(p,{endStream:B,signal:l}),I()),++g.openStreams,u.once("response",v=>{let{[NAe]:Q,...E}=v;r.onHeaders(Number(Q),E,u.resume.bind(u),"")===!1&&u.pause()}),u.once("end",()=>{r.onComplete([])}),u.on("data",v=>{r.onData(v)===!1&&u.pause()}),u.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),u.once("error",function(v){t[Qn]&&!t[Qn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,de.destroy(u,v))}),u.once("frameError",(v,Q)=>{let E=new AA(`HTTP/2: "frameError" received - type ${v}, code ${Q}`);Ri(t,r,E),t[Qn]&&!t[Qn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,de.destroy(u,E))}),!0;function I(){i?de.isBuffer(i)?(ee(h===i.byteLength,"buffer body must have content length"),u.cork(),u.write(i),u.uncork(),u.end(),r.onBodySent(i),r.onRequestSent()):de.isBlobLike(i)?typeof i.stream=="function"?Of({client:t,request:r,contentLength:h,h2stream:u,expectsPayload:m,body:i.stream(),socket:t[Kt],header:""}):hS({body:i,client:t,request:r,contentLength:h,expectsPayload:m,h2stream:u,header:"",socket:t[Kt]}):de.isStream(i)?mS({body:i,client:t,request:r,contentLength:h,expectsPayload:m,socket:t[Kt],h2stream:u,header:""}):de.isIterable(i)?Of({body:i,client:t,request:r,contentLength:h,expectsPayload:m,header:"",h2stream:u,socket:t[Kt]}):ee(!1):r.onRequestSent()}a(I,"writeBodyH2")}a(MAe,"writeH2");function mS({h2stream:t,body:e,client:r,request:i,socket:n,contentLength:s,header:A,expectsPayload:o}){if(ee(s!==0||r[Jt]===0,"stream body cannot be pipelined"),r[oA]==="h2"){let h=function(B){i.onBodySent(B)};a(h,"onPipeData");let m=eAe(e,t,B=>{B?(de.destroy(e,B),de.destroy(t,B)):i.onRequestSent()});m.on("data",h),m.once("end",()=>{m.removeListener("data",h),de.destroy(m)});return}let c=!1,l=new Pf({socket:n,request:i,contentLength:s,client:r,expectsPayload:o,header:A}),d=a(function(m){if(!c)try{!l.write(m)&&this.pause&&this.pause()}catch(h){de.destroy(this,h)}},"onData"),p=a(function(){c||e.resume&&e.resume()},"onDrain"),u=a(function(){if(c)return;let m=new Iy;queueMicrotask(()=>g(m))},"onAbort"),g=a(function(m){if(!c){if(c=!0,ee(n.destroyed||n[ea]&&r[Jt]<=1),n.off("drain",p).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",u),!m)try{l.end()}catch(h){m=h}l.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?de.destroy(e,m):de.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",u),e.resume&&e.resume(),n.on("drain",p).on("error",g)}a(mS,"writeStream");async function hS({h2stream:t,body:e,client:r,request:i,socket:n,contentLength:s,header:A,expectsPayload:o}){ee(s===e.size,"blob body must have content length");let c=r[oA]==="h2";try{if(s!=null&&s!==e.size)throw new $A;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(n.cork(),n.write(`${A}content-length: ${s}\r
\r
`,"latin1"),n.write(l),n.uncork()),i.onBodySent(l),i.onRequestSent(),o||(n[xi]=!0),yn(r)}catch(l){de.destroy(c?t:n,l)}}a(hS,"writeBlob");async function Of({h2stream:t,body:e,client:r,request:i,socket:n,contentLength:s,header:A,expectsPayload:o}){ee(s!==0||r[Jt]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let u=c;c=null,u()}}a(l,"onDrain");let d=a(()=>new Promise((u,g)=>{ee(c===null),n[ii]?g(n[ii]):c=u}),"waitForDrain");if(r[oA]==="h2"){t.on("close",l).on("drain",l);try{for await(let u of e){if(n[ii])throw n[ii];let g=t.write(u);i.onBodySent(u),g||await d()}}catch(u){t.destroy(u)}finally{i.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}n.on("close",l).on("drain",l);let p=new Pf({socket:n,request:i,contentLength:s,client:r,expectsPayload:o,header:A});try{for await(let u of e){if(n[ii])throw n[ii];p.write(u)||await d()}p.end()}catch(u){p.destroy(u)}finally{n.off("close",l).off("drain",l)}}a(Of,"writeIterable");var Pf=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:r,contentLength:i,client:n,expectsPayload:s,header:A}){this.socket=e,this.request=r,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=s,this.header=A,e[ea]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:A,expectsPayload:o,header:c}=this;if(r[ii])throw r[ii];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&A+l>n){if(s[gg])throw new $A;process.emitWarning(new $A)}r.cork(),A===0&&(o||(r[xi]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let d=r.write(e);return r.uncork(),i.onBodySent(e),d||r[Xt].timeout&&r[Xt].timeoutType===Wl&&r[Xt].timeout.refresh&&r[Xt].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:i,bytesWritten:n,expectsPayload:s,header:A,request:o}=this;if(o.onRequestSent(),e[ea]=!1,e[ii])throw e[ii];if(!e.destroyed){if(n===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&&n!==r){if(i[gg])throw new $A;process.emitWarning(new $A)}e[Xt].timeout&&e[Xt].timeoutType===Wl&&e[Xt].timeout.refresh&&e[Xt].timeout.refresh(),yn(i)}}destroy(e){let{socket:r,client:i}=this;r[ea]=!1,e&&(ee(i[Jt]<=1,"pipeline should only contain this request"),de.destroy(r,e))}};function Ri(t,e,r){try{e.onError(r),ee(e.aborted)}catch(i){t.emit("error",i)}}a(Ri,"errorRequest");fS.exports=hy});var CS=f((ELe,ES)=>{"use strict";var Hf=class{static{a(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)}};ES.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new Hf}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Hf),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var IS=f((BLe,BS)=>{var{kFree:_Ae,kConnected:OAe,kPending:PAe,kQueued:qAe,kRunning:HAe,kSize:GAe}=Qt(),dc=Symbol("pool"),Qy=class{static{a(this,"PoolStats")}constructor(e){this[dc]=e}get connected(){return this[dc][OAe]}get free(){return this[dc][_Ae]}get pending(){return this[dc][PAe]}get queued(){return this[dc][qAe]}get running(){return this[dc][HAe]}get size(){return this[dc][GAe]}};BS.exports=Qy});var xy=f((QLe,SS)=>{"use strict";var YAe=ag(),VAe=CS(),{kConnected:yy,kSize:QS,kRunning:yS,kPending:bS,kQueued:fg,kBusy:JAe,kFree:zAe,kUrl:jAe,kClose:WAe,kDestroy:XAe,kDispatch:KAe}=Qt(),ZAe=IS(),Ji=Symbol("clients"),Di=Symbol("needDrain"),Eg=Symbol("queue"),by=Symbol("closed resolve"),wy=Symbol("onDrain"),wS=Symbol("onConnect"),NS=Symbol("onDisconnect"),vS=Symbol("onConnectionError"),Ny=Symbol("get dispatcher"),RS=Symbol("add client"),DS=Symbol("remove client"),xS=Symbol("stats"),vy=class extends YAe{static{a(this,"PoolBase")}constructor(){super(),this[Eg]=new VAe,this[Ji]=[],this[fg]=0;let e=this;this[wy]=a(function(i,n){let s=e[Eg],A=!1;for(;!A;){let o=s.shift();if(!o)break;e[fg]--,A=!this.dispatch(o.opts,o.handler)}this[Di]=A,!this[Di]&&e[Di]&&(e[Di]=!1,e.emit("drain",i,[e,...n])),e[by]&&s.isEmpty()&&Promise.all(e[Ji].map(o=>o.close())).then(e[by])},"onDrain"),this[wS]=(r,i)=>{e.emit("connect",r,[e,...i])},this[NS]=(r,i,n)=>{e.emit("disconnect",r,[e,...i],n)},this[vS]=(r,i,n)=>{e.emit("connectionError",r,[e,...i],n)},this[xS]=new ZAe(this)}get[JAe](){return this[Di]}get[yy](){return this[Ji].filter(e=>e[yy]).length}get[zAe](){return this[Ji].filter(e=>e[yy]&&!e[Di]).length}get[bS](){let e=this[fg];for(let{[bS]:r}of this[Ji])e+=r;return e}get[yS](){let e=0;for(let{[yS]:r}of this[Ji])e+=r;return e}get[QS](){let e=this[fg];for(let{[QS]:r}of this[Ji])e+=r;return e}get stats(){return this[xS]}async[WAe](){return this[Eg].isEmpty()?Promise.all(this[Ji].map(e=>e.close())):new Promise(e=>{this[by]=e})}async[XAe](e){for(;;){let r=this[Eg].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[Ji].map(r=>r.destroy(e)))}[KAe](e,r){let i=this[Ny]();return i?i.dispatch(e,r)||(i[Di]=!0,this[Di]=!this[Ny]()):(this[Di]=!0,this[Eg].push({opts:e,handler:r}),this[fg]++),!this[Di]}[RS](e){return e.on("drain",this[wy]).on("connect",this[wS]).on("disconnect",this[NS]).on("connectionError",this[vS]),this[Ji].push(e),this[Di]&&process.nextTick(()=>{this[Di]&&this[wy](e[jAe],[this,e])}),this}[DS](e){e.close(()=>{let r=this[Ji].indexOf(e);r!==-1&&this[Ji].splice(r,1)}),this[Di]=this[Ji].some(r=>!r[Di]&&r.closed!==!0&&r.destroyed!==!0)}};SS.exports={PoolBase:vy,kClients:Ji,kNeedDrain:Di,kAddClient:RS,kRemoveClient:DS,kGetDispatcher:Ny}});var Xl=f((bLe,LS)=>{"use strict";var{PoolBase:$Ae,kClients:kS,kNeedDrain:eae,kAddClient:tae,kGetDispatcher:rae}=xy(),iae=hg(),{InvalidArgumentError:Ry}=mt(),Dy=Ve(),{kUrl:FS,kInterceptors:nae}=Qt(),sae=og(),Sy=Symbol("options"),ky=Symbol("connections"),TS=Symbol("factory");function Aae(t,e){return new iae(t,e)}a(Aae,"defaultFactory");var Fy=class extends $Ae{static{a(this,"Pool")}constructor(e,{connections:r,factory:i=Aae,connect:n,connectTimeout:s,tls:A,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:p,...u}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new Ry("invalid connections");if(typeof i!="function")throw new Ry("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new Ry("connect must be a function or an object");typeof n!="function"&&(n=sae({...A,maxCachedSessions:o,allowH2:p,socketPath:c,timeout:s,...Dy.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...n})),this[nae]=u.interceptors&&u.interceptors.Pool&&Array.isArray(u.interceptors.Pool)?u.interceptors.Pool:[],this[ky]=r||null,this[FS]=Dy.parseOrigin(e),this[Sy]={...Dy.dee Line truncated
${i.count} ${i.noun} ${i.is} pending:
${e.format(r)}
`.trim())}};uk.exports=f4});var Bk=f((mUe,Ck)=>{"use strict";var{kProxy:ace,kClose:oce,kDestroy:cce,kInterceptors:lce}=Qt(),{URL:mk}=require("url"),hk=Bg(),dce=Xl(),pce=ag(),{InvalidArgumentError:wg,RequestAbortedError:uce}=mt(),fk=og(),yg=Symbol("proxy agent"),c1=Symbol("proxy client"),bg=Symbol("proxy headers"),E4=Symbol("request tls settings"),gce=Symbol("proxy tls settings"),Ek=Symbol("connect endpoint function");function mce(t){return t==="https:"?443:80}a(mce,"defaultProtocolPort");function hce(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new wg("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(hce,"buildProxyOptions");function fce(t,e){return new dce(t,e)}a(fce,"defaultFactory");var C4=class extends pce{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[ace]=hce(e),this[yg]=new hk(e),this[lce]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new wg("Proxy opts.uri is mandatory");let{clientFactory:r=fce}=e;if(typeof r!="function")throw new wg("Proxy opts.clientFactory must be a function.");this[E4]=e.requestTls,this[gce]=e.proxyTls,this[bg]=e.headers||{};let i=new mk(e.uri),{origin:n,port:s,host:A,username:o,password:c}=i;if(e.auth&&e.token)throw new wg("opts.auth cannot be used in combination with opts.token");e.auth?this[bg]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[bg]["proxy-authorization"]=e.token:o&&c&&(this[bg]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(o)}:${decodeURIComponent(c)}`).toString("base64")}`);let l=fk({...e.proxyTls});this[Ek]=fk({...e.requestTls}),this[c1]=r(i,{connect:l}),this[yg]=new hk({...e,connect:async(d,p)=>{let u=d.host;d.port||(u+=`:${mce(d.protocol)}`);try{let{socket:g,statusCode:m}=await this[c1].connect({origin:n,port:s,path:u,signal:d.signal,headers:{...this[bg],host:A}});if(m!==200&&(g.on("error",()=>{}).destroy(),p(new uce(`Proxy response (${m}) !== 200 when HTTP Tunneling`))),d.protocol!=="https:"){p(null,g);return}let h;this[E4]?h=this[E4].servername:h=d.servername,this[Ek]({...d,servername:h,httpSocket:g},p)}catch(g){p(g)}}})}dispatch(e,r){let{host:i}=new mk(e.origin),n=Ece(e.headers);return Cce(n),this[yg].dispatch({...e,headers:{...n,host:i}},r)}async[oce](){await this[yg].close(),await this[c1].close()}async[cce](){await this[yg].destroy(),await this[c1].destroy()}};function Ece(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}a(Ece,"buildHeaders");function Cce(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new wg("Proxy-Authorization should be sent in ProxyAgent constructor")}a(Cce,"throwIfProxyAuthIsSent");Ck.exports=C4});var wk=f((fUe,bk)=>{var fc=require("assert"),{kRetryHandlerDefaultRetry:Ik}=Qt(),{RequestRetryError:l1}=mt(),{isDisturbed:Qk,parseHeaders:Bce,parseRangeHeader:yk}=Ve();function Ice(t){let e=Date.now();return new Date(t).getTime()-e}a(Ice,"calculateRetryAfterHeader");var B4=class t{static{a(this,"RetryHandler")}constructor(e,r){let{retryOptions:i,...n}=e,{retry:s,maxRetries:A,maxTimeout:o,minTimeout:c,timeoutFactor:l,methods:d,errorCodes:p,retryAfter:u,statusCodes:g}=i??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=n,this.abort=null,this.aborted=!1,this.retryOpts={retry:s??t[Ik],retryAfter:u??!0,maxTimeout:o??30*1e3,timeout:c??500,timeoutFactor:l??2,maxRetries:A??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:g??[500,502,503,504,429],errorCodes:p??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(m=>{this.aborted=!0,this.abort?this.abort(m):this.reason=m})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,i){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,i)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[Ik](e,{state:r,opts:i},n){let{statusCode:s,code:A,headers:o}=e,{method:c,retryOptions:l}=i,{maxRetries:d,timeout:p,maxTimeout:u,timeoutFactor:g,statusCodes:m,errorCodes:h,methods:B}=l,{counter:I,currentTimeout:v}=r;if(v=v!=null&&v>0?v:p,A&&A!=="UND_ERR_REQ_RETRY"&&A!=="UND_ERR_SOCKET"&&!h.includes(A)){n(e);return}if(Array.isArray(B)&&!B.includes(c)){n(e);return}if(s!=null&&Array.isArray(m)&&!m.includes(s)){n(e);return}if(I>d){n(e);return}let Q=o!=null&&o["retry-after"];Q&&(Q=Number(Q),Q=isNaN(Q)?Ice(Q):Q*1e3);let E=Q>0?Math.min(Q,u):Math.min(v*g**I,u);r.currentTimeout=E,setTimeout(()=>n(null),E)}onHeaders(e,r,i,n){let s=Bce(r);if(this.retryCount+=1,e>=300)return this.abort(new l1("Request failed",e,{headers:s,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let o=yk(s["content-range"]);if(!o)return this.abort(new l1(" Line truncated
Error Code : ${s.statusCode}
Error Code : ${A.statusCode}
Error Message: ${s.message}`)})).result)===null||a===void 0?void 0:a.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return qh(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}(0,zh.debug)(`ID token url is ${a}`);let i=yield t.getCall(a);return(0,zh.setSecret)(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};an.OidcClient=mm});var gm=T(Ht=>{"use strict";var um=Ht&&Ht.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.summary=Ht.markdownSummary=Ht.SUMMARY_DOCS_URL=Ht.SUMMARY_ENV_VAR=void 0;var bN=require("os"),fm=require("fs"),{access:xN,appendFile:wN,writeFile:NN}=fm.promises;Ht.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Ht.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var hm=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return um(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Ht.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Ht.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield xN(e,fm.constants.R_OK|fm.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,a,i={}){let r=Object.entries(i).map(([n,s])=>` ${n}="${s}"`).join("");return a?`<${e}${r}>${a}</${e}>`:`<${e}${r}>`}write(e){return um(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?NN:wN)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return um(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,a=!1){return this._buffer+=e,a?this.addEOL():this}addEOL(){return this.addRaw(bN.EOL)}addCodeBlock(e,a){let i=Object.assign({},a&&{lang:a}),r=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(r).addEOL()}addList(e,a=!1){let i=a?"ol":"ul",r=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(i,r);return this.addRaw(n).addEOL()}addTable(e){let a=e.map(r=>{let n=r.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:p,data:d,colspan:l,rowspan:c}=s,m=p?"th":"td",u=Object.assign(Object.assign({},l&&{colspan:l}),c&&{rowspan:c});return this.wrap(m,d,u)}).join("");return this.wrap("tr",n)}).join(""),i=this.wrap("table",a);return this.addRaw(i).addEOL()}addDetails(e,a){let i=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(i).addEOL()}addImage(e,a,i){let{width:r,height:n}=i||{},s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),p=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(p).addEOL()}addHeading(e,a){let i=`h${a}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",n=this.wrap(r,e);return this.addRaw(n).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,a){let i=Object.assign({},a&&{cite:a}),r=this.wrap("blockquote",e,i);return this.addRaw(r).addEOL()}addLink(e,a){let i=this.wrap("a",e,{href:a});return this.addRaw(i).addEOL()}},kh=new hm;Ht.markdownSummary=kh;Ht.summary=kh});var jh=T(Ft=>{"use strict";var _N=Ft&&Ft.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),SN=Ft&&Ft.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),EN=Ft&&Ft.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&_N(e,t,a);return SN(e,t),e};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.toPlatformPath=Ft.toWin32Path=Ft.toPosixPath=void 0;var CN=EN(require("path"));function TN(t){return t.replace(/[\\]/g,"/")}o(TN,"toPosixPath");Ft.toPosixPath=TN;function ON(t){return t.replace(/[/]/g,"\\")}o(ON,"toWin32Path");Ft.toWin32Path=ON;function PN(t){return t.replace(/[/\\]/g,CN.sep)}o(PN,"toPlatformPath");Ft.toPlatformPath=PN});var vm=T(J=>{"use strict";var RN=J&&J.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Line truncated
`);return{name:e,version:a}}),"getLinuxInfo");fe.platform=r6.default.platform();fe.arch=r6.default.arch();fe.isWindows=fe.platform==="win32";fe.isMacOS=fe.platform==="darwin";fe.isLinux=fe.platform==="linux";function p_(){return Cp(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield fe.isWindows?n_():fe.isMacOS?s_():o_()),{platform:fe.platform,arch:fe.arch,isWindows:fe.isWindows,isMacOS:fe.isMacOS,isLinux:fe.isLinux})})}o(p_,"getDetails");fe.getDetails=p_});var Ut=T(X=>{"use strict";var d_=X&&X.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),l_=X&&X.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),_m=X&&X.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&d_(e,t,a);return l_(e,t),e},s6=X&&X.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(X,"__esModule",{value:!0});X.platform=X.toPlatformPath=X.toWin32Path=X.toPosixPath=X.markdownSummary=X.summary=X.getIDToken=X.getState=X.saveState=X.group=X.endGroup=X.startGroup=X.info=X.notice=X.warning=X.error=X.debug=X.isDebug=X.setFailed=X.setCommandEcho=X.setOutput=X.getBooleanInput=X.getMultilineInput=X.getInput=X.addPath=X.setSecret=X.exportVariable=X.ExitCode=void 0;var ma=Sh(),gr=Th(),nn=mp(),o6=_m(require("os")),c_=_m(require("path")),m_=Lh(),Nm;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Nm||(X.ExitCode=Nm={}));function u_(t,e){let a=(0,nn.toCommandValue)(e);if(process.env[t]=a,process.env.GITHUB_ENV||"")return(0,gr.issueFileCommand)("ENV",(0,gr.prepareKeyValueMessage)(t,e));(0,ma.issueCommand)("set-env",{name:t},a)}o(u_,"exportVariable");X.exportVariable=u_;function f_(t){(0,ma.issueCommand)("add-mask",{},t)}o(f_,"setSecret");X.setSecret=f_;function h_(t){process.env.GITHUB_PATH||""?(0,gr.issueFileCommand)("PATH",t):(0,ma.issueCommand)("add-path",{},t),process.env.PATH=`${t}${c_.delimiter}${process.env.PATH}`}o(h_,"addPath");X.addPath=h_;function Sm(t,e){let a=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!a)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?a:a.trim()}o(Sm,"getInput");X.getInput=Sm;function g_(t,e){let a=Sm(t,e).split(`
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}o(g_,"getMultilineInput");X.getMultilineInput=g_;function y_(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=Sm(t,e);if(a.includes(r))return!0;if(i.includes(r))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(y_,"getBooleanInput");X.getBooleanInput=y_;function v_(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,gr.issueFileCommand)("OUTPUT",(0,gr.prepareKeyValueMessage)(t,e));process.stdout.write(o6.EOL),(0,ma.issueCommand)("set-output",{name:t},(0,nn.toCommandValue)(e))}o(v_,"setOutput");X.setOutput=v_;function b_(t){(0,ma.issue)("echo",t?"on":"off")}o(b_,"setCommandEcho");X.setCommandEcho=b_;function x_(t){process.exitCode=Nm.Failure,p6(t)}o(x_,"setFailed");X.setFailed=x_;function w_(){return process.env.RUNNER_DEBUG==="1"}o(w_,"isDebug");X.isDebug=w_;function N_(t){(0,ma.issueCommand)("debug",{},t)}o(N_,"debug");X.debug=N_;function p6(t,e={}){(0,ma.issueCommand)("error",(0,nn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(p6,"error");X.error=p6;function __(t,e={}){(0,ma.issueCommand)("warning",(0,nn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(__,"warning");X.warning=__;function S_(t,e={}){(0,ma.issueCommand)("notice",(0,nn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(S_,"notice");X.notice=S_;function E_(t){process.stdout.write(t+o6.EOL)}o(E_,"info");X.info=E_;function d6(t){(0,ma.issue)("group",t)}o(d6,"startGroup");X.startGroup=d6;function l6(){(0,ma.issue)("endgroup")}o(l6,"endGroup");X.endGroup=l6;function C_(t,e){return s6(this,void 0,void 0,function*(){d6(t);let a;try{a=yield e()}finally{l6()}return a})}o(C_,"group");X.group=C_;function T_(t,e){if(process.env.GITHUB_STATE||"")return(0,gr.issueFileCommand)("STATE",(0,gr.prepareKeyValueMessage)(t,e));(0,ma.issueCommand)("save-state",{name:t},(0,nn.toCommandValue)(e))}o(T_,"saveState");X.saveState=T_;function O_(t){return process.env[`STATE_${t}`]||""}o(O_,"getState");X.getState=O_;function P_(t){return s6(this,void 0,void 0,function*(){return yield m_.OidcClient.getIDToken(t)})}o(P_,"getIDToken");X.getIDToken=P_;var R_=gm();Object.defineProperty(X,"summary",{enumerable:!0,get:function(){return R_.summary}});var D_=gm();Object.defineProperty(X,"markdownSummary",{enumerable:!0,get:function(){return D_.markdownSummary}});var Em=jh();Object.defineProperty(X,"toPosixPath",{enumerable:!0,get:function(){return Em.toPosixPath}});Object.defineProperty(X,"toWin32Path",{enumerable:!0,get:function(){return Em.toWin32Path}});Object.defineProperty(X,"toPlatformPath",{enumerable:!0,get:function(){return Em.toPlatformPath}});X.platform=_m(n6())});var c6=T($a=>{"use strict";var I_=$a&&$a.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),B_=$a&&$a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),A_=$a&&$a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&I_(e,t,a);return B_(e,t),e};Object.defineProperty($a,"__esModule",{value:!0});$a.getOptions=void 0;var Cm=A_(Ut());function M_(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Cm.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Cm.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Cm.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}o(M_,"getOptions");$a.getOptions=M_});var Op=T(He=>{"use strict";var q_=He&&He.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),z_=He&&He.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),L_=He&&He.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&q_(e,t,a);return z_(e,t),e},k_=He&&He.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(He,"__esModule",{value:!0});He.safeTrimTrailingSeparator=He.normalizeSeparators=He.hasRoot=He.hasAbsoluteRoot=He.ensureAbsoluteRoot=He.dirname=void 0;var Tp=L_(require("path")),yr=k_(require("assert")),qi=process.platform==="win32";function j_(t){if(t=Om(t),qi&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Tp.dirname(t);return qi&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Om(e)),e}o(j_,"dirname");He.dirname=j_;function U_(t,e){if(yr.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),yr.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Tm(e))return e;if(qi){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let a=process.cwd();rLine truncated
%s`,g,g,D,i);var _=D.type==="*"?Im:D.type==="?"?Dm:"\\"+D.type;r=!0,i=i.slice(0,D.reStart)+_+"\\("+g}h(),n&&(i+="\\\\");var O=!1;switch(i.charAt(0)){case"[":case".":case"(":O=!0}for(var N=p.length-1;N>-1;N--){var I=p[N],E=i.slice(0,I.reStart),R=i.slice(I.reStart,I.reEnd-8),A=i.slice(I.reEnd-8,I.reEnd),j=i.slice(I.reEnd);A+=j;var oe=E.split("(").length-1,he=j;for(b=0;b<oe;b++)he=he.replace(/\)[+*?]?/,"");j=he;var Q="";j===""&&e!==Rp&&(Q="$");var et=E+R+j+Q+A;i=et}if(i!==""&&r&&(i="(?=.)"+i),O&&(i=u+i),e===Rp)return[i,r];if(!r)return gS(t);var ue=a.nocase?"i":"";try{var Oa=new RegExp("^"+i+"$",ue)}catch{return new RegExp("$.")}return Oa._glob=t,Oa._src=i,Oa}o(fS,"parse");aa.makeRe=function(t,e){return new Ot(t,e||{}).makeRe()};Ot.prototype.makeRe=hS;function hS(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,a=e.noglobstar?Im:e.dot?oS:pS,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===Bm?a:typeof s=="string"?yS(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}o(hS,"makeRe");aa.match=function(t,e,a){a=a||{};var i=new Ot(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};Ot.prototype.match=o(function(e,a){if(typeof a>"u"&&(a=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&a)return!0;var i=this.options;Ms.sep!=="/"&&(e=e.split(Ms.sep).join("/")),e=e.split(I6),this.debug(this.pattern,"split",e);var r=this.set;this.debug(this.pattern,"set",r);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<r.length;s++){var p=r[s],d=e;i.matchBase&&p.length===1&&(d=[n]);var l=this.matchOne(d,p,a);if(l)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");Ot.prototype.matchOne=function(t,e,a){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,n=0,s=t.length,p=e.length;r<s&&n<p;r++,n++){this.debug("matchOne loop");var d=e[n],l=t[r];if(this.debug(e,d,l),d===!1)return!1;if(d===Bm){this.debug("GLOBSTAR",[e,d,l]);var c=r,m=n+1;if(m===p){for(this.debug("** at the end");r<s;r++)if(t[r]==="."||t[r]===".."||!i.dot&&t[r].charAt(0)===".")return!1;return!0}for(;c<s;){var u=t[c];if(this.debug(`
globstar while`,t,c,e,m,u),this.matchOne(t.slice(c),e.slice(m),a))return this.debug("globstar found match!",c,s,u),!0;if(u==="."||u===".."||!i.dot&&u.charAt(0)==="."){this.debug("dot detected!",t,c,e,m);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(a&&(this.debug(`
>>> no match, partial?`,t,c,e,m),c===s))}var f;if(typeof d=="string"?(f=l===d,this.debug("string match",d,l,f)):(f=l.match(d),this.debug("pattern match",d,l,f)),!f)return!1}if(r===s&&n===p)return!0;if(r===s)return a;if(n===p)return r===s-1&&t[r]==="";throw new Error("wtf?")};function gS(t){return t.replace(/\\(.)/g,"$1")}o(gS,"globUnescape");function yS(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(yS,"regExpEscape")});var z6=T(ua=>{"use strict";var vS=ua&&ua.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),bS=ua&&ua.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),q6=ua&&ua.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&vS(e,t,a);return bS(e,t),e},xS=ua&&ua.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ua,"__esModule",{value:!0});ua.Path=void 0;var qs=q6(require("path")),Li=q6(Op()),zs=xS(require("assert")),wS=process.platform==="win32",Am=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(zs.default(e,"Parameter 'itemPath' must not be empty"),e=Li.safeTrimTrailingSeparator(e),!Li.hasRoot(e))this.segments=e.split(qs.sep);else{let a=e,i=Li.dirname(a);for(;i!==a;){let r=qs.basename(a);this.segments.unshift(r),a=i,i=Li.dirname(a)}this.segments.unshift(a)}else{zs.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];zs.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=Li.normalizeSeparators(e[a]),a===0&&Li.hasRoot(i)?(i=Li.safeTrimTrailingSeparator(i),zs.default(i===Li.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(zs.default(!i.includes(qs.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(qs.sep)||wS&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=qs.sep,e+=this.segments[i];return e}};ua.Path=Am});var L6=T(fa=>{"use strict";var NS=fa&&fa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),_S=fa&&fa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),zm=fa&&fa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&NS(e,t,a);return _S(e,t),e},SS=fa&&fa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fa,"__esModule",{value:!0});fa.Pattern=void 0;var ES=zm(require("os")),Ls=zm(require("path")),Wt=zm(Op()),vr=SS(require("assert")),CS=M6(),Mm=Pp(),Ip=z6(),li=process.platform==="win32",qm=class t{static{o(this,"Pattern")}constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],vr.default(i.length,"Parameter 'segments' must not empty");let l=t.getLiteral(i[0]);vr.default(l&&Wt.hasAbsoluteRoot(l),"Parameter 'segments' first element must be a root path"),n=new Ip.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new Ip.Path(n).segments,this.trailingSeparator=Wt.normalizeSeparators(n).endsWith(Ls.sep),n=Wt.safeTrimTrailingSeparator(n);let s=!1,p=this.segments.map(l=>t.getLiteral(l)).filter(l=>!s&&!(s=l===""));this.searchPath=new Ip.Path(p).toString(),this.rootRegExp=new RegExp(t.regExpEscape(p[0]),li?"i":""),this.isImplicitPattern=a;let d={dot:!0,nobrace:!0,nocase:li,nocomment:!0,noext:!0,nonegate:!0};n=li?n.replace(/\\/g,"/"):n,this.minimatch=new CS.Minimatch(n,d)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Wt.normalizeSeparators(e),!e.endsWith(Ls.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Ls.sep}`)):e=Wt.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?Mm.MatchKind.Directory:Mm.MatchKind.All:Mm.MatchKind.None}partialMatch(e){return e=Wt.safeTrimTrailingSeparator(e),Wt.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(li?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(li?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){vr.default(e,"pattern cannot be empty");let i=new Ip.Path(e).segments.map(r=>t.getLiteral(r));if(vr.default(i.every((r,n)=>(r!=="."||n===0)&&r!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),vr.default(!Wt.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Wt.nor Line truncated
Error Message: ${A.message}`)})).result)===null||r===void 0?void 0:r.value;if(!s)throw new Error("Response json body do not have ID Token field");return s})}static getIDToken(e){return kT(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let n=encodeURIComponent(e);r=`${r}&audience=${n}`}(0,FT.debug)(`ID token url is ${r}`);let i=yield t.getCall(r);return(0,FT.setSecret)(i),i}catch(r){throw new Error(`Error message: ${r.message}`)}})}};Qd.OidcClient=cb});var ub=f(Ki=>{"use strict";var lb=Ki&&Ki.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(A){A(s)})}return a(n,"adopt"),new(r||(r=Promise))(function(s,A){function o(d){try{l(i.next(d))}catch(p){A(p)}}a(o,"fulfilled");function c(d){try{l(i.throw(d))}catch(p){A(p)}}a(c,"rejected");function l(d){d.done?s(d.value):n(d.value).then(o,c)}a(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.summary=Ki.markdownSummary=Ki.SUMMARY_DOCS_URL=Ki.SUMMARY_ENV_VAR=void 0;var hue=require("os"),db=require("fs"),{access:fue,appendFile:Eue,writeFile:Cue}=db.promises;Ki.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Ki.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var pb=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return lb(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Ki.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Ki.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield fue(e,db.constants.R_OK|db.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,i={}){let n=Object.entries(i).map(([s,A])=>` ${s}="${A}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return lb(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?Cue:Eue)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return lb(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(hue.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(A=>this.wrap("li",A)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(A=>{if(typeof A=="string")return this.wrap("td",A);let{header:o,data:c,colspan:l,rowspan:d}=A,p=o?"th":"td",u=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(p,c,u)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},A=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),o=this.wrap("img",null,Object.assign({src:e,alt:r},A));return this.addRaw(o).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,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 i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},LT=new pb;Ki.markdownSummary=LT;Ki.summary=LT});var UT=f(Zi=>{"use strict";var Bue=Zi&&Zi.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Iue=Zi&&Zi.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Que=Zi&&Zi.__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)&&Bue(e,t,r);return Iue(e,t),e};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.toPlatformPath=Zi.toWin32Path=Zi.toPosixPath=void 0;var yue=Que(require("path"));function bue(t){return t.replace(/[\\]/g,"/")}a(bue,"toPosixPath");Zi.toPosixPath=bue;function wue(t){return t.replace(/[/]/g,"\\")}a(wue,"toWin32Path");Zi.toWin32Path=wue;function Nue(t){return t.replace(/[/\\]/g,yue.sep)}a(Nue,"toPlatformPath");Zi.toPlatformPath=Nue});var mb=f(se=>{"use strict";var vue=se&&se.__createBinding||(Object.create?functioLine truncated
`);return{name:e,version:r}}),"getLinuxInfo");Je.platform=eL.default.platform();Je.arch=eL.default.arch();Je.isWindows=Je.platform==="win32";Je.isMacOS=Je.platform==="darwin";Je.isLinux=Je.platform==="linux";function sge(){return aE(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Je.isWindows?rge():Je.isMacOS?ige():nge()),{platform:Je.platform,arch:Je.arch,isWindows:Je.isWindows,isMacOS:Je.isMacOS,isLinux:Je.isLinux})})}a(sge,"getDetails");Je.getDetails=sge});var As=f(te=>{"use strict";var Age=te&&te.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),age=te&&te.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Bb=te&&te.__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)&&Age(e,t,r);return age(e,t),e},rL=te&&te.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(A){A(s)})}return a(n,"adopt"),new(r||(r=Promise))(function(s,A){function o(d){try{l(i.next(d))}catch(p){A(p)}}a(o,"fulfilled");function c(d){try{l(i.throw(d))}catch(p){A(p)}}a(c,"rejected");function l(d){d.done?s(d.value):n(d.value).then(o,c)}a(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(te,"__esModule",{value:!0});te.platform=te.toPlatformPath=te.toWin32Path=te.toPosixPath=te.markdownSummary=te.summary=te.getIDToken=te.getState=te.saveState=te.group=te.endGroup=te.startGroup=te.info=te.notice=te.warning=te.error=te.debug=te.isDebug=te.setFailed=te.setCommandEcho=te.setOutput=te.getBooleanInput=te.getMultilineInput=te.getInput=te.addPath=te.setSecret=te.exportVariable=te.ExitCode=void 0;var as=qx(),bc=Yx(),bd=of(),iL=Bb(require("os")),oge=Bb(require("path")),cge=TT(),Cb;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Cb||(te.ExitCode=Cb={}));function lge(t,e){let r=(0,bd.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,bc.issueFileCommand)("ENV",(0,bc.prepareKeyValueMessage)(t,e));(0,as.issueCommand)("set-env",{name:t},r)}a(lge,"exportVariable");te.exportVariable=lge;function dge(t){(0,as.issueCommand)("add-mask",{},t)}a(dge,"setSecret");te.setSecret=dge;function pge(t){process.env.GITHUB_PATH||""?(0,bc.issueFileCommand)("PATH",t):(0,as.issueCommand)("add-path",{},t),process.env.PATH=`${t}${oge.delimiter}${process.env.PATH}`}a(pge,"addPath");te.addPath=pge;function Ib(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()}a(Ib,"getInput");te.getInput=Ib;function uge(t,e){let r=Ib(t,e).split(`
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?r:r.map(i=>i.trim())}a(uge,"getMultilineInput");te.getMultilineInput=uge;function gge(t,e){let r=["true","True","TRUE"],i=["false","False","FALSE"],n=Ib(t,e);if(r.includes(n))return!0;if(i.includes(n))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\``)}a(gge,"getBooleanInput");te.getBooleanInput=gge;function mge(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,bc.issueFileCommand)("OUTPUT",(0,bc.prepareKeyValueMessage)(t,e));process.stdout.write(iL.EOL),(0,as.issueCommand)("set-output",{name:t},(0,bd.toCommandValue)(e))}a(mge,"setOutput");te.setOutput=mge;function hge(t){(0,as.issue)("echo",t?"on":"off")}a(hge,"setCommandEcho");te.setCommandEcho=hge;function fge(t){process.exitCode=Cb.Failure,nL(t)}a(fge,"setFailed");te.setFailed=fge;function Ege(){return process.env.RUNNER_DEBUG==="1"}a(Ege,"isDebug");te.isDebug=Ege;function Cge(t){(0,as.issueCommand)("debug",{},t)}a(Cge,"debug");te.debug=Cge;function nL(t,e={}){(0,as.issueCommand)("error",(0,bd.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(nL,"error");te.error=nL;function Bge(t,e={}){(0,as.issueCommand)("warning",(0,bd.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(Bge,"warning");te.warning=Bge;function Ige(t,e={}){(0,as.issueCommand)("notice",(0,bd.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(Ige,"notice");te.notice=Ige;function Qge(t){process.stdout.write(t+iL.EOL)}a(Qge,"info");te.info=Qge;function sL(t){(0,as.issue)("group",t)}a(sL,"startGroup");te.startGroup=sL;function AL(){(0,as.issue)("endgroup")}a(AL,"endGroup");te.endGroup=AL;function yge(t,e){return rL(this,void 0,void 0,function*(){sL(t);let r;try{r=yield e()}finally{AL()}return r})}a(yge,"group");te.group=yge;function bge(t,e){if(process.env.GITHUB_STATE||"")return(0,bc.issueFileCommand)("STATE",(0,bc.prepareKeyValueMessage)(t,e));(0,as.issueCommand)("save-state",{name:t},(0,bd.toCommandValue)(e))}a(bge,"saveState");te.saveState=bge;function wge(t){return process.env[`STATE_${t}`]||""}a(wge,"getState");te.getState=wge;function Nge(t){return rL(this,void 0,void 0,function*(){return yield cge.OidcClient.getIDToken(t)})}a(Nge,"getIDToken");te.getIDToken=Nge;var vge=ub();Object.defineProperty(te,"summary",{enumerable:!0,get:function(){return vge.summary}});var xge=ub();Object.defineProperty(te,"markdownSummary",{enumerable:!0,get:function(){return xge.markdownSummary}});var Qb=UT();Object.defineProperty(te,"toPosixPath",{enumerable:!0,get:function(){return Qb.toPosixPath}});Object.defineProperty(te,"toWin32Path",{enumerable:!0,get:function(){return Qb.toWin32Path}});Object.defineProperty(te,"toPlatformPath",{enumerable:!0,get:function(){return Qb.toPlatformPath}});te.platform=Bb(tL())});var oE=f(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.toCommandProperties=wd.toCommandValue=void 0;function Rge(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}a(Rge,"toCommandValue");wd.toCommandValue=Rge;function Dge(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}a(Dge,"toCommandProperties");wd.toCommandProperties=Dge});var lL=f(os=>{"use strict";var Sge=os&&os.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),kge=os&&os.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Fge=os&&os.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Sge(e,t,r);return kge(e,t),e};Object.defineProperty(os,"__esModule",{value:!0});os.issue=os.issueCommand=void 0;var Tge=Fge(require("os")),oL=oE();function cL(t,e,r){let i=new yb(t,e,r);process.stdout.write(i.toString()+Tge.EOL)}a(cL,"issueCommand");os.issueCommand=cL;function Lge(t,e=""){cL(t,{},e)}a(Lge,"issue");os.issue=Lge;var aL="::",yb=class{static{a(this,"Command")}constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=aL+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${Mge(n)}`)}}return e+=`${aL}${Uge(this.message)}`,e}};function Uge(t){return oL.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}a(Uge,"escapeData");function Mge(t){return oL.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}a(Mge,"escapeProperty")});function Og(){return cE>lE.length-16&&(dL.default.randomFillSync(lE),cE=0),lE.slice(cE,cE+=16)}var dL,lE,cE,bb=Ze(()=>{dL=qa(require("crypto")),lE=new Uint8Array(256),cE=lE.length;a(Og,"rng")});var pL,uL=Ze(()=>{pL=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function _ge(t){return typeof t=="string"&&pL.test(t)}var no,Pg=Ze(()=>{uL();a(_ge,"validate");no=_ge});fLine truncated
\r
`),Pme=/\r\n/g,qme=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function xd(t){cU.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=oU(t,"maxHeaderPairs",2e3),this.maxHeaderSize=oU(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new _me(Ome),this.ss.on("info",function(r,i,n,s){i&&!e.maxed&&(e.nread+s-n>=e.maxHeaderSize?(s=e.maxHeaderSize-e.nread+n,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=s-n,e.buffer+=i.toString("binary",n,s)),r&&e._finish()})}a(xd,"HeaderParser");Mme(xd,cU);xd.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};xd.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};xd.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};xd.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(Pme),e=t.length,r,i;for(var n=0;n<e;++n){if(t[n].length===0)continue;if((t[n][0]===" "||t[n][0]===" ")&&i){this.header[i][this.header[i].length-1]+=t[n];continue}let s=t[n].indexOf(":");if(s===-1||s===0)return;if(r=qme.exec(t[n]),i=r[1].toLowerCase(),this.header[i]=this.header[i]||[],this.header[i].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};lU.exports=xd});var tw=f((tOe,uU)=>{"use strict";var ew=require("node:stream").Writable,Hme=require("node:util").inherits,Gme=Zb(),pU=AU(),Yme=dU(),Vme=45,Jme=Buffer.from("-"),zme=Buffer.from(`\r
`),jme=a(function(){},"EMPTY_FN");function Os(t){if(!(this instanceof Os))return new Os(t);if(ew.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new Yme(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}a(Os,"Dicer");Hme(Os,ew);Os.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else ew.prototype.emit.apply(this,arguments)};Os.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new pU(this._partOpts),this._events.preamble?this.emit("preamble",this._part):this._ignore());let i=this._hparser.push(t);if(!this._inHeader&&i!==void 0&&i<t.length)t=t.slice(i);else return r()}this._firstWrite&&(this._bparser.push(zme),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Os.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Os.prototype.setBoundary=function(t){let e=this;this._bparser=new Gme(`\r
--`+t),this._bparser.on("info",function(r,i,n,s){e._oninfo(r,i,n,s)})};Os.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",jme),this._part.resume())};Os.prototype._oninfo=function(t,e,r,i){let n,s=this,A=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+A<i;)if(e[r+A]===Vme)++A,++this._dashes;else{this._dashes&&(n=Jme),this._dashes=0;break}if(this._dashes===2&&(r+A<i&&this._events.trailer&&this.emit("trailer",e.slice(r+A,i)),this.reset(),this._finished=!0,s._parts===0&&(s._realFinish=!0,s.emit("finish"),s._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new pU(this._partOpts),this._part._read=function(l){s._unpause()},this._isPreamble&&this._events.preamble?this.emit("preamble",this._part):this._isPreamble!==!0&&this._events.part?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<i&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(n&&(c=this._part.push(n)),c=this._part.push(e.slice(r,i)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(n&&this._hparser.push(n),o=this._hparser.push(e.slice(r,i)),!this._inHeader&&o!==void 0&&o<i&&this._oninfo(!1,e,r+o,i))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==i&&(++this._parts,this._part.on("end",function(){--s._parts===0&&(s._finished?(s._realFinish=!0,s.emit("finish"),s._realFinish=!1):s._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Os.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};uU.exports=Os});var EE=f((iOe,mU)=>{"use strict";var gU=new TextDecoder("utf-8"),fE=new Map([["utf-8",gU],["utf8",gU]]);function Wme(t,e,r){if(t)if(fE.has(r))try{return fE.get(r).decode(Buffer.from(t,e))}catch{}else try{return fE.set(r,new TextDecoder(r)),fE.get(r).decode(Buffer.from(t,e))}catch{}return t}a(Wme,"decodeText");mU.exports=Wme});var rw=f((sOe,EU)=>{"use strict";var CE=EE(),hU=/%([a-fA-F0-9]{2})/g;function fU(t,e){return String.fromCharCode(parseInt(e,16))}a(fU,"encodedReplacer");function Xme(t){let e=[],r="key",i="",n=!1,s=!1,A=0,o="";for(var c=0,l=t.length;c<l;++c){let d=t[c];if(d==="\\"&&n)if(s)s=!1;else{s=!0;continue}else if(d==='"')if(s)s=!1;else{n?(n=!1,r="key"):n=!0;continue}else if(s&&n&&(o+="\\"),s=!1,(r==="charset"||r==="lang")&&d==="'"){r==="charset"?(r="lang",i=o.substring(1)):r="value",o="";continue}else if(r==="key"&&(d==="*"||d==="=")&&e.length){d==="*"?r="charset":r="value",e[A]=[o,void 0],o="";continue}else if(!n&&d===";"){r="key",i?(o.length&&(o=CE(o.replace(hU,fU),"binary",i)),i=""):o.length&&(o=CE(o,"binary","utf8")),e[A]===void 0?e[A]=o:e[A][1]=o,o="",++A;continue}else if(!n&&(d===" "||d===" "))continue;o+=d}return i&&o.length?o=CE(o.replace(hU,fU),"binary",i):o&&(o=CE(o,"binary","utf8")),e[A]===void 0?o&&(e[A]=o):e[A][1]=o,e}a(Xme,"parseParams");EU.exports=Xme});var BU=f((aOe,CU)=>{"use strict";CU.exports=a(function(e){if(typeof e!="string")return"";for(var r=e.length-1;r>=0;--r)switch(e.charCodeAt(r)){case 47:case 92:return e=e.slice(r+1),e===".."||e==="."?"":e}return e===".."||e==="."?"":e},"basename")});var bU=f((cOe,yU)=>{"use strict";var{Readable:QU}=require("node:stream"),{inherits:Kme}=require("node:util"),Zme=tw(),IU=rw(),$me=EE(),ehe=BU(),Nc=hE(),the=/^boundary$/i,rhe=/^form-data$/i,ihe=/^charset$/i,nhe=/^filename$/i,she=/^name$/i;BE.detect=/^multipart\/form-data/i;function BE(t,e){let r,i,n=this,s,A=e.limits,o=e.isPartAFile||((D,S,L)=>S==="application/octet-stream"||L!==void 0),c=e.parsedConType||[],l=e.defCharset||"utf8",d=e.preservePath,p={highWaterMark:e.fileHwm};for(r=0,i=c.length;r<i;++r)if(Array.isArray(c[r])&&the.test(c[r][0])){s=c[r][1];break}function u(){w===0&&k&&!t._done&&(k=!1,n.end())}if(a(u,"checkFinished"),typeof s!="string")throw new Error("Multipart: Boundary not found");let g=Nc(A,"fieldSize",1*1024*1024),m=Nc(A,"fileSize",1/0),h=Nc(A,"files",1/0),B=Nc(A,"fields",1/0),I=Nc(A,"parts",1/0),v=Nc(A,"headerPairs",2e3),Q=Nc(A,"headerSize",80*1024),E=0,C=0,w=0,R,b,k=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=t;let x={boundary:s,maxHeaderPairs:v,maxHeaderSize:Q,partHwm:p.highWaterMark,highWaterMark:e.highWaterMark};this.parser=new Zme(x),this.parser.on("drain",function(){if(n._needDrain=!1,n._cb&&!n._pause){let D=n._cb;n._cb=void 0,D()}}).on("part",a(function D(S){if(++n._nparts>I)return n.parser.removeListener("part",D),n.parser.on("part",Rd),t.hitPartsLimit=!0,t.emit("partsLimit"),Rd(S);if(b){let L=b;L.emit("end"),L.removeAllListeners("end")}S.on("header",function(L){let j,Ce,O,Ke,ye,Vt,It=0;if(L["content-type"]&&(O=IU(L["content-type"][0]),O[0])){for(j=O[0].toLowerCase(),r=0,i=O.length;r<i;++r)if(ihe.test(O[r][0])){Ke=O[r][1].toLowerCase();break}}if(j===void 0&&(j="text/plain"),Ke===void 0&&(Ke=l),L["content-disposition"]){if(O=IU(L["content-disposition"][0]),!rhe.test(O[0 Line truncated
`))}a(UU,"isValidHeaderValue");function jhe(t,e){let{headersList:r}=e,i=(r.get("referrer-policy")??"").split(","),n="";if(i.length>0)for(let s=i.length;s!==0;s--){let A=i[s-1].trim();if(Lhe.includes(A)){n=A;break}}n!==""&&(t.referrerPolicy=n)}a(jhe,"setRequestReferrerPolicyOnRedirect");function Whe(){return"allowed"}a(Whe,"crossOriginResourcePolicyCheck");function Xhe(){return"success"}a(Xhe,"corsCheck");function Khe(){return"success"}a(Khe,"TAOCheck");function Zhe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(Zhe,"appendFetchMetadata");function $he(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&lw(t.origin)&&!lw(zg(t))&&(e=null);break;case"same-origin":QE(t,zg(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a($he,"appendRequestOriginHeader");function efe(t){return Mhe.now()}a(efe,"coarsenedSharedCurrentTime");function tfe(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}}a(tfe,"createOpaqueTimingInfo");function rfe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(rfe,"makePolicyContainer");function ife(t){return{referrerPolicy:t.referrerPolicy}}a(ife,"clonePolicyContainer");function nfe(t){let e=t.referrerPolicy;Fd(e);let r=null;if(t.referrer==="client"){let o=Uhe();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let i=ow(r),n=ow(r,!0);i.toString().length>4096&&(i=n);let s=QE(t,i),A=Vg(i)&&!Vg(t.url);switch(e){case"origin":return n??ow(r,!0);case"unsafe-url":return i;case"same-origin":return s?n:"no-referrer";case"origin-when-cross-origin":return s?i:n;case"strict-origin-when-cross-origin":{let o=zg(t);return QE(i,o)?i:Vg(i)&&!Vg(o)?"no-referrer":n}case"strict-origin":case"no-referrer-when-downgrade":default:return A?"no-referrer":n}}a(nfe,"determineRequestsReferrer");function ow(t,e){return Fd(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}a(ow,"stripURLForReferrer");function Vg(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 i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}a(Vg,"isURLPotentiallyTrustworthy");function sfe(t,e){if(Jg===void 0)return!0;let r=afe(e);if(r==="no metadata"||r.length===0)return!0;let i=r.sort((A,o)=>o.algo.localeCompare(A.algo)),n=i[0].algo,s=i.filter(A=>A.algo===n);for(let A of s){let o=A.algo,c=A.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=Jg.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=Jg.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(sfe,"bytesMatch");var Afe=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function afe(t){let e=[],r=!0,i=Jg.getHashes();for(let n of t.split(" ")){r=!1;let s=Afe.exec(n);if(s===null||s.groups===void 0)continue;let A=s.groups.algo;i.includes(A.toLowerCase())&&e.push(s.groups)}return r===!0?"no metadata":e}a(afe,"parseMetadata");function ofe(t){}a(ofe,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function QE(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(QE,"sameOrigin");function cfe(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}}a(cfe,"createDeferredPromise");function lfe(t){return t.controller.state==="aborted"}a(lfe,"isAborted");function dfe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(dfe,"isCancelled");function pfe(t){return/^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(t)?t.toUpperCase():t}a(pfe,"normalizeMethod");function ufe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Fd(typeof e=="string"),e}a(ufe,"serializeJavascriptValueToJSONString");var gfe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function mfe(t,e,r){let i={index:0,kind:r,target:t},n={next(){if(Object.getPrototypeOf(this)!==n)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:s,kind:A,target:o}=i,c=o(),l=c.len Line truncated
`||t===" "||t===" "}a(GU,"isHTTPWhiteSpace");function dw(t,e=!0,r=!0){let i=0,n=t.length-1;if(e)for(;i<t.length&&GU(t[i]);i++);if(r)for(;n>0&&GU(t[n]);n--);return t.slice(i,n+1)}a(dw,"removeHTTPWhitespace");function YU(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}a(YU,"isASCIIWhitespace");function Lfe(t,e=!0,r=!0){let i=0,n=t.length-1;if(e)for(;i<t.length&&YU(t[i]);i++);if(r)for(;n>0&&YU(t[n]);n--);return t.slice(i,n+1)}a(Lfe,"removeASCIIWhitespace");jU.exports={dataURLProcessor:Sfe,URLSerializer:VU,collectASequenceOfCodePoints:wE,collectASequenceOfCodePointsFast:Td,stringPercentDecode:JU,parseMIMEType:pw,collectAnHTTPQuotedString:zU,serializeAMimeType:Tfe}});var NE=f((vOe,$U)=>{"use strict";var{Blob:KU,File:WU}=require("buffer"),{types:uw}=require("util"),{kState:Dn}=Aa(),{isBlobLike:ZU}=ls(),{webidl:it}=Ti(),{parseMIMEType:Ufe,serializeAMimeType:Mfe}=Ps(),{kEnumerableProperty:XU}=ze(),jg=class t extends KU{static{a(this,"File")}constructor(e,r,i={}){it.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=it.converters["sequence<BlobPart>"](e),r=it.converters.USVString(r),i=it.converters.FilePropertyBag(i);let n=r,s=i.type,A;e:{if(s){if(s=Ufe(s),s==="failure"){s="";break e}s=Mfe(s).toLowerCase()}A=i.lastModified}super(_fe(e,i),{type:s}),this[Dn]={name:n,lastModified:A,type:s}}get name(){return it.brandCheck(this,t),this[Dn].name}get lastModified(){return it.brandCheck(this,t),this[Dn].lastModified}get type(){return it.brandCheck(this,t),this[Dn].type}},gw=class t{static{a(this,"FileLike")}constructor(e,r,i={}){let n=r,s=i.type,A=i.lastModified??Date.now();this[Dn]={blobLike:e,name:n,type:s,lastModified:A}}stream(...e){return it.brandCheck(this,t),this[Dn].blobLike.stream(...e)}arrayBuffer(...e){return it.brandCheck(this,t),this[Dn].blobLike.arrayBuffer(...e)}slice(...e){return it.brandCheck(this,t),this[Dn].blobLike.slice(...e)}text(...e){return it.brandCheck(this,t),this[Dn].blobLike.text(...e)}get size(){return it.brandCheck(this,t),this[Dn].blobLike.size}get type(){return it.brandCheck(this,t),this[Dn].blobLike.type}get name(){return it.brandCheck(this,t),this[Dn].name}get lastModified(){return it.brandCheck(this,t),this[Dn].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(jg.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:XU,lastModified:XU});it.converters.Blob=it.interfaceConverter(KU);it.converters.BlobPart=function(t,e){if(it.util.Type(t)==="Object"){if(ZU(t))return it.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||uw.isAnyArrayBuffer(t))return it.converters.BufferSource(t,e)}return it.converters.USVString(t,e)};it.converters["sequence<BlobPart>"]=it.sequenceConverter(it.converters.BlobPart);it.converters.FilePropertyBag=it.dictionaryConverter([{key:"lastModified",converter:it.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:it.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=it.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function _fe(t,e){let r=[];for(let i of t)if(typeof i=="string"){let n=i;e.endings==="native"&&(n=Ofe(n)),r.push(new TextEncoder().encode(n))}else uw.isAnyArrayBuffer(i)||uw.isTypedArray(i)?i.buffer?r.push(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)):r.push(new Uint8Array(i)):ZU(i)&&r.push(i);return r}a(_fe,"processBlobParts");function Ofe(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}a(Ofe,"convertLineEndingsNative");function Pfe(t){return WU&&t instanceof WU||t instanceof jg||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(Pfe,"isFileLike");$U.exports={File:jg,FileLike:gw,isFileLike:Pfe}});var xE=f((ROe,nM)=>{"use strict";var{isBlobLike:vE,toUSVString:qfe,makeIterator:mw}=ls(),{kState:Ci}=Aa(),{File:iM,FileLike:eM,isFileLike:Hfe}=NE(),{webidl:dt}=Ti(),{Blob:Gfe,File:hw}=require("buffer"),tM=hw??iM,Ld=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw dt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[Ci]=[]}append(e,r,i=void 0){if(dt.brandCheck(this,t),dt.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!vE(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=dt.converters.USVString(e),r=vE(r)?dt.converters.Blob(r,{strict:!1}):dt.converters.USVString(r),i=arguments.length===3?dt.converters.USVString(i):void 0;let n=rM(e,r,i);this[Ci].push(n)}delete(e){dt.brandCheck(this,t),dt.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=dt.converters.USVString(e),this[Ci]=this[Ci].filter(r=>r.name!==e)}get(e){dt.brandCheck(this,t),dt.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=dt.converters.USVString(e);let r=this[Ci].findIndex(i=>i.name===e);return r===-1?null:this[Ci][r].value}getAll(e){return dt.brandCheck(this,t),dt.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=dt.converters.USVString(e),this[Ci].filter(r=>r.name===e).map(r=>r.value)}has(e){return dt.brandCheck(this,t),dt.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=dt.converters.USVString(e),this[Ci].findIndex(r=>r.name===e)!==-1}set(e,r,i=void 0){if(dt.brandCheck(this,t),dt.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!vE(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=dt.converters.USVString(e),r=vE(r)?dt.converters.Blob(r,{strict:!1}):dt.converters.USVString(r),i=arguments.length===3?qfe(i):void 0;let n=rM(e,r,i),s=this[Ci].findIndex(A=>A.name===e);s!==-1?this[Ci]=[...this[Ci].slice(0,s),n,...this[Ci].slice(s+1).filter(A=>A.name!==e)]:this[Ci].push(n)}entries(){return dt.brandCheck(this,t),mw(()=>this[Ci].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return dt.brandCheck(this,t),mw(()=>this[Ci].map(e=>[e.name,e.value]),"FormData","key")}values(){return dt.brandCheck(this,t),mw(()=>this[Ci].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(dt.brandCheck(this,t),dt.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[i,n]of this)e.apply(r,[n,i,this])}};Ld.prototype[Symbol.iterator]=Ld.prototype.entries;Object.defineProperties(Ld.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function rM(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(Hfe(e)||(e=e instanceof Gfe?new tM([e],"blob",{type:e.type}):new eM(e,"blob",{type:e.type})),r!==void 0){let i={type:e.type,lastModified:e.lastModified};e=hw&&e instanceof hw||e instanceof iM?new tM([e],r,i):new eM(e,r,i)}return{name:t,value:e}}a(rM,"makeEntry");nM.exports={FormData:Ld}});var Wg=f((SOe,uM)=>{"use strict";var Yfe=SU(),Ud=ze(),{ReadableStreamFrom:Vfe,isBlobLike:sM,isReadableStreamLike:Jfe,readableStreamClose:zfe,createDeferredPromise:jfe,fullyReadBody:Wfe}=ls(),{FormData:AM}=xE(),{kState:oa}=Aa(),{webidl:fw}=Ti(),{DOMException:cM,structuredClone:Xfe}=oo(),{Blob:Kfe,File:Zfe}=require("buffer"),{kBodyUsed:$fe}=Ot(),Ew=require("assert"),{isErrored:e1e}=ze(),{isUint8Array:lM,isArrayBuffer:t1e}=require("util/types"),{File:r1e}=NE(),{parseMIMEType:i1e,serializeAMimeType:n1e}=Ps(),aa=globalThis.ReadableStream,aM=Zfe??r1e;function dM(t,e=!1){aa||(aa=require("stream/web").ReadableStream);let r=null;t instanceof aa?r=t:sM(t)?r=t.stream():r=new aa({async pull(c){c.enqueue(typeof n=="string"?new TextEncoder().encode(n):n),queueMicrotask(()=>zfe(c))},start(){},type:void 0}),Ew(Jfe(r));let i=null,n=null,s=null,A=null;if(typeof t=="string")n=t,A="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),A="application/x-www-form-urlencoded;charset=UTF-8";else if(t1e(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Ud.isFormDataLike(t)){let c=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let d=a(I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),p=a(I=>I.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),u=new TextEncoder,g=[],m=new Uint8Array([13,10]);s=0;let h=!1;for(let[I,v]of t)if(typeof v=="string"){let Q=u.encode(l+`; name="${d(p(I))}"\r
\r
${p(v)}\r
`);g.push(Q),s+=Q.byteLength}else{let Q=u.encode(`${l}; name="${d(p(I))}"`+(v.name?`; filename="${d(v.name)}"`:"")+`\r
Content-Type: ${v.type||"application/octet-stream"}\r
\r
`);g.push(Q,v,m),typeof v.size=="number"?s+=Q.byteLength+v.size+m.byteLength:h=!0}let B=u.encode(`--${c}--`);g.push(B),s+=B.byteLength,h&&(s=null),n=t,i=a(async function*(){for(let I of g)I.stream?yield*I.stream():yield I},"action"),A="multipart/form-data; boundary="+c}else if(sM(t))n=t,s=t.size,t.type&&(A=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Ud.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof aa?t:Vfe(t)}if((typeof n=="string"||Ud.isBuffer(n))&&(s=Buffer.byteLength(n)),i!=null){let c;r=new aa({async start(){c=i(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:p}=await c.next();return p?queueMicrotask(()=>{l.close()}):e1e(r)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:r,source:n,length:s},A]}a(dM,"extractBody");function s1e(t,e=!1){return aa||(aa=require("stream/web").ReadableStream),t instanceof aa&&(Ew(!Ud.isDisturbed(t),"The body has already been consumed."),Ew(!t.locked,"The stream is locked.")),dM(t,e)}a(s1e,"safelyExtractBody");function A1e(t){let[e,r]=t.stream.tee(),i=Xfe(r,{transfer:[r]}),[,n]=i.tee();return t.stream=e,{stream:n,length:t.length,source:t.source}}a(A1e,"cloneBody");async function*oM(t){if(t)if(lM(t))yield t;else{let e=t.stream;if(Ud.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[$fe]=!0,yield*e}}a(oM,"consumeBody");function Cw(t){if(t.aborted)throw new cM("The operation was aborted.","AbortError")}a(Cw,"throwIfAborted");function a1e(t){return{blob(){return RE(this,r=>{let i=d1e(this);return i==="failure"?i="":i&&(i=n1e(i)),new Kfe([r],{type:i})},t)},arrayBuffer(){return RE(this,r=>new Uint8Array(r).buffer,t)},text(){return RE(this,pM,t)},json(){return RE(this,l1e,t)},async formData(){fw.brandCheck(this,t),Cw(this[oa]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let i={};for(let[o,c]of this.headers)i[o.toLowerCase()]=c;let n=new AM,s;try{s=new Yfe({headers:i,preservePath:!0})}catch(o){throw new cM(`${o}`,"AbortError")}s.on("field",(o,c)=>{n.append(o,c)}),s.on("file",(o,c,l,d,p)=>{let u=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",m=>{g+=m.toString().replace(/[\r\n]/gm,"");let h=g.length-g.length%4;u.push(Buffer.from(g.slice(0,h),"base64")),g=g.slice(h)}),c.on("end",()=>{u.push(Buffer.from(g,"base64")),n.append(o,new aM(u,l,{type:p}))})}else c.on("data",g=>{u.push(g)}),c.on("end",()=>{n.append(o,new aM(u,l,{type:p}))})});let A=new Promise((o,c)=>{s.on("finish",o),s.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of oM(this[oa].body))s.write(o);return s.end(),await A,n}else if(/application\/x-www-form-urlencoded/.test(r)){let i;try{let s="",A=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of oM(this[oa].body)){if(!lM(o))throw new TypeError("Expected Uint8Array chunk");s+=A.decode(o,{stream:!0})}s+=A.decode(),i=new URLSearchParams(s)}catch(s){throw Object.assign(new TypeError,{cause:s})}let n=new AM;for(let[s,A]of i)n.append(s,A);return n}else throw await Promise.resolve(),Cw(this[oa]),fw.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(a1e,"bodyMixinMethods");function o1e(t){Object.assign(t.prototype,a1e(t))}a(o1e,"mixinBody");async function RE(t,e,r){if(fw.brandCheck(t,r),Cw(t[oa]),c1e(t[oa].body))throw new TypeError("Body is unusable");let i=jfe(),n=a(A=>i.reject(A),"errorSteps"),s=a(A=>{try{i.resolve(e(A))}catch(o){n(o)}},"successSteps");return t[oa].body==null?(s(new Uint8Array),i.promise):(await Wfe(t[oa].body,s,n),i.promise)}a(RE,"specConsumeBody");function c1e(t){return t!=null&&(t.stream.locked||Ud.isDisturbed(t.stream))}a(c1e,"bodyUnusable");function pM(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),new TextDecoder().decode(t))}a(pM,"utf8DecodeBytes");function l1e(t){return JSON.parse(pM(t))}a(l1e,"parseJSONFromBytes");function d1e(t){let{headersList:e}=t[oa],r=e.get("content-type");return r===null?"failure":i1e(r)}a(d1e,"bodyMimeType");uM.exports={extractBody:dM,safelyExtractBody:s1e,cloneBody:A1e,mixinBody:o1e}});var fM=f((FOe,hM)=>{"use strict";var{InvalidArgumentError:Nt,NotSupportedError:p1e}=wt(),ca=require("assert"),{kHTTP2BuildRequest:u1e,kHTTP2CopyHeaders:g1e,kHTTP1BuildRequest:m1e}=Ot(),Sn=ze(),gM=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,mM=/[^\t\x20-\x7e\x80-\xff]/,h1e=/[^\u0021-\u00ff]/,la=Symbol("handler"),Nr={},Bw;try{let t=require("diagnostics_channel");Nr.create=t.channel("undici:request:create"),Nr.bodySent=t.channel("undici:request:bodySent"),Nr.headers=t.channel("undici:request:headers"),Nr.trailers=t.channel("undici:request:trailers"),Nr.error=t.channel("undici:request:error")}catch{Nr.create={hasSubscribers:!1},Nr.bodySent={hasSubscribers:!1},Nr.headers={hasSubscribers:!1},Nr.trailers={hasSubscribers:!1},NLine truncated
`),this.body=B.stream,this.contentLength=B.length}else Sn.isBlobLike(n)&&this.contentType==null&&n.type&&(this.contentType=n.type,this.headers+=`content-type: ${n.type}\r
`);Sn.validateHandler(h,i,l),this.servername=Sn.getServerName(this.host),this[la]=h,Nr.create.hasSubscribers&&Nr.create.publish({request:this})}onBodySent(e){if(this[la].onBodySent)try{this[la].onBodySent(e)}catch(r){this.onError(r)}}onRequestSent(){Nr.bodySent.hasSubscribers&&Nr.bodySent.publish({request:this})}onConnect(e){return ca(!this.aborted),ca(!this.completed),this[la].onConnect(e)}onHeaders(e,r,i,n){return ca(!this.aborted),ca(!this.completed),Nr.headers.hasSubscribers&&Nr.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:n}}),this[la].onHeaders(e,r,i,n)}onData(e){return ca(!this.aborted),ca(!this.completed),this[la].onData(e)}onUpgrade(e,r,i){return ca(!this.aborted),ca(!this.completed),this[la].onUpgrade(e,r,i)}onComplete(e){return ca(!this.aborted),this.completed=!0,Nr.trailers.hasSubscribers&&Nr.trailers.publish({request:this,trailers:e}),this[la].onComplete(e)}onError(e){if(Nr.error.hasSubscribers&&Nr.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[la].onError(e)}addHeader(e,r){return Xg(this,e,r),this}static[m1e](e,r,i){return new t(e,r,i)}static[u1e](e,r,i){let n=r.headers;r={...r,headers:null};let s=new t(e,r,i);if(s.headers={},Array.isArray(n)){if(n.length%2!==0)throw new Nt("headers array must be even");for(let A=0;A<n.length;A+=2)Xg(s,n[A],n[A+1],!0)}else if(n&&typeof n=="object"){let A=Object.keys(n);for(let o=0;o<A.length;o++){let c=A[o];Xg(s,c,n[c],!0)}}else if(n!=null)throw new Nt("headers must be an object or an array");return s}static[g1e](e){let r=e.split(`\r
`),i={};for(let n of r){let[s,A]=n.split(": ");A==null||A.length===0||(i[s]?i[s]+=`,${A}`:i[s]=A)}return i}};function vc(t,e,r){if(e&&typeof e=="object")throw new Nt(`invalid ${t} header`);if(e=e!=null?`${e}`:"",mM.exec(e)!==null)throw new Nt(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}a(vc,"processHeaderValue");function Xg(t,e,r,i=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Nt(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(mM.exec(r)!==null)throw new Nt(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Nt("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,i?t.headers[e]=vc(e,r,i):t.headers+=vc(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Nt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let n=typeof r=="string"?r.toLowerCase():null;if(n!=="close"&&n!=="keep-alive")throw new Nt("invalid connection header");n==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Nt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Nt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new p1e("expect header not supported");if(gM.exec(e)===null)throw new Nt("invalid header key");if(Array.isArray(r))for(let n=0;n<r.length;n++)i?t.headers[e]?t.headers[e]+=`,${vc(e,r[n],i)}`:t.headers[e]=vc(e,r[n],i):t.headers+=vc(e,r[n]);else i?t.headers[e]=vc(e,r,i):t.headers+=vc(e,r)}}}a(Xg,"processHeader");hM.exports=Iw});var DE=f((LOe,EM)=>{"use strict";var f1e=require("events"),Qw=class extends f1e{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};EM.exports=Qw});var Zg=f((MOe,CM)=>{"use strict";var E1e=DE(),{ClientDestroyedError:yw,ClientClosedError:C1e,InvalidArgumentError:Md}=wt(),{kDestroy:B1e,kClose:I1e,kDispatch:bw,kInterceptors:xc}=Ot(),_d=Symbol("destroyed"),Kg=Symbol("closed"),da=Symbol("onDestroyed"),Od=Symbol("onClosed"),SE=Symbol("Intercepted Dispatch"),ww=class extends E1e{static{a(this,"DispatcherBase")}constructor(){super(),this[_d]=!1,this[da]=null,this[Kg]=!1,this[Od]=[]}get destroyed(){return this[_d]}get closed(){return this[Kg]}get interceptors(){return this[xc]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[xc][r]!="function")throw new Md("interceptor must be an function")}this[xc]=e}close(e){if(e===void 0)return new Promise((i,n)=>{this.close((s,A)=>s?n(s):i(A))});if(typeof e!="function")throw new Md("invalid callback");if(this[_d]){queueMicrotask(()=>e(new yw,null));return}if(this[Kg]){this[Od]?this[Od].push(e):queueMicrotask(()=>e(null,null));return}this[Kg]=!0,this[Od].push(e);let r=a(()=>{let i=this[Od];this[Od]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onClosed");this[I1e]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((n,s)=>{this.destroy(e,(A,o)=>A?s(A):n(o))});if(typeof r!="function")throw new Md("invalid callback");if(this[_d]){this[da]?this[da].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new yw),this[_d]=!0,this[da]=this[da]||[],this[da].push(r);let i=a(()=>{let n=this[da];this[da]=null;for(let s=0;s<n.length;s++)n[s](null,null)},"onDestroyed");this[B1e](e).then(()=>{queueMicrotask(i)})}[SE](e,r){if(!this[xc]||this[xc].length===0)return this[SE]=this[bw],this[bw](e,r);let i=this[bw].bind(this);for(let n=this[xc].length-1;n>=0;n--)i=this[xc][n](i);return this[SE]=i,i(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new Md("handler must be an object");try{if(!e||typeof e!="object")throw new Md("opts must be an object.");if(this[_d]||this[da])throw new yw;if(this[Kg])throw new C1e;return this[SE](e,r)}catch(i){if(typeof r.onError!="function")throw new Md("invalid onError method");return r.onError(i),!1}}};CM.exports=ww});var $g=f((qOe,QM)=>{"use strict";var Q1e=require("net"),BM=require("assert"),IM=ze(),{InvalidArgumentError:y1e,ConnectTimeoutError:b1e}=wt(),Nw,vw;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?vw=class{static{a(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 i=this._sessionCache.get(r);i!==void 0&&i.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))}}:vw=class{static{a(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:i}=this._sessionCache.keys().next();this._sessionCache.delete(i)}this._sessionCache.set(e,r)}}};function w1e({allowH2:t,maxCachedSessi Line truncated
`,this[OM]=c??3e5,this[_M]=n??3e5,this[sm]=v??!0,this[tEe]=E,this[Am]=w,this[lo]=null,this[qM]=b>-1?b:-1,this[QA]="h1",this[Fn]=null,this[OE]=D?{openStreams:0,maxConcurrentStreams:S??100}:null,this[HM]=`${this[ai].hostname}${this[ai].port?`:${this[ai].port}`:""}`,this[Ft]=[],this[Tt]=0,this[kn]=0}get pipelining(){return this[uo]}set pipelining(e){this[uo]=e,Tn(this,!0)}get[Sc](){return this[Ft].length-this[kn]}get[zt](){return this[kn]-this[Tt]}get[Dc](){return this[Ft].length-this[Tt]}get[eEe](){return!!this[er]&&!this[Hd]&&!this[er].destroyed}get[Lw](){let e=this[er];return e&&(e[Li]||e[ua]||e[Yd])||this[Dc]>=(this[uo]||1)||this[Sc]>0}[$1e](e){JM(this),this.once("connect",e)}[nEe](e,r){let i=e.origin||this[ai].origin,n=this[QA]==="h2"?Tw[AEe](i,e,r):Tw[oEe](i,e,r);return this[Ft].push(n),this[Rc]||(oe.bodyLength(n.body)==null&&oe.isIterable(n.body)?(this[Rc]=1,process.nextTick(Tn,this)):Tn(this,!0)),this[Rc]&&this[po]!==2&&this[Lw]&&(this[po]=2),this[po]<2}async[rEe](){return new Promise(e=>{this[Dc]?this[lo]=e:e(null)})}async[iEe](e){return new Promise(r=>{let i=this[Ft].splice(this[kn]);for(let s=0;s<i.length;s++){let A=i[s];ci(this,A,e)}let n=a(()=>{this[lo]&&(this[lo](),this[lo]=null),r()},"callback");this[Fn]!=null&&(oe.destroy(this[Fn],e),this[Fn]=null,this[OE]=null),this[er]?oe.destroy(this[er].on("close",n),e):queueMicrotask(n),Tn(this)})}};function hEe(t){$(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[er][oi]=t,GE(this[IA],t)}a(hEe,"onHttp2SessionError");function fEe(t,e,r){let i=new BA(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[er][oi]=i,GE(this[IA],i))}a(fEe,"onHttp2FrameError");function EEe(){oe.destroy(this,new Gd("other side closed")),oe.destroy(this[er],new Gd("other side closed"))}a(EEe,"onHttp2SessionEnd");function CEe(t){let e=this[IA],r=new BA(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[er]=null,e[Fn]=null,e.destroyed){$(this[Sc]===0);let i=e[Ft].splice(e[Tt]);for(let n=0;n<i.length;n++){let s=i[n];ci(this,s,r)}}else if(e[zt]>0){let i=e[Ft][e[Tt]];e[Ft][e[Tt]++]=null,ci(e,i,r)}e[kn]=e[Tt],$(e[zt]===0),e.emit("disconnect",e[ai],[e],r),Tn(e)}a(CEe,"onHTTP2GoAway");var fA=bM(),BEe=TE(),IEe=Buffer.alloc(0);async function QEe(){let t=process.env.JEST_WORKER_ID?Sw():void 0,e;try{e=await WebAssembly.compile(Buffer.from(SM(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Sw(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,i,n)=>0,wasm_on_status:(r,i,n)=>{$.strictEqual(kr.ptr,r);let s=i-CA+EA.byteOffset;return kr.onStatus(new LE(EA.buffer,s,n))||0},wasm_on_message_begin:r=>($.strictEqual(kr.ptr,r),kr.onMessageBegin()||0),wasm_on_header_field:(r,i,n)=>{$.strictEqual(kr.ptr,r);let s=i-CA+EA.byteOffset;return kr.onHeaderField(new LE(EA.buffer,s,n))||0},wasm_on_header_value:(r,i,n)=>{$.strictEqual(kr.ptr,r);let s=i-CA+EA.byteOffset;return kr.onHeaderValue(new LE(EA.buffer,s,n))||0},wasm_on_headers_complete:(r,i,n,s)=>($.strictEqual(kr.ptr,r),kr.onHeadersComplete(i,!!n,!!s)||0),wasm_on_body:(r,i,n)=>{$.strictEqual(kr.ptr,r);let s=i-CA+EA.byteOffset;return kr.onBody(new LE(EA.buffer,s,n))||0},wasm_on_message_complete:r=>($.strictEqual(kr.ptr,r),kr.onMessageComplete()||0)}})}a(QEe,"lazyllhttp");var Fw=null,_w=QEe();_w.catch();var kr=null,EA=null,UE=0,CA=null,Vd=1,_E=2,Ow=3,Pw=class{static{a(this,"Parser")}constructor(e,r,{exports:i}){$(Number.isFinite(e[ME])&&e[ME]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(fA.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[ME],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[qM]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(kw.clearTimeout(this.timeout),e?(this.timeout=kw.setTimeout(yEe,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||($(this.ptr!=null),$(kr==null),this.llhttp.llhttp_resume(this.ptr),$(this.timeoutType===_E),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||IEe),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){$(this.ptr!=null),$(kr==null),$(!this.paused);let{socket:r,llhttp:i}=this;e.length>UE&&(CA&&i.free(CA),UE=Math.ceil(e.length/4096)*4096,CA=i.malloc(UE)),new Uint8Array(i.memory.buffer,CA,UE).set(e);try{let n;try{EA=e,kr=this,n=i.llhttp_execute(this.ptr,CA,e.length)}catch(A){throw A}finally{kr=null,EA=null}let s=i.llhttp_get_error_pos(this.ptr)-CA;if(n===fA.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(s));else if(n===fA.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(s));else if(n!==fA.ERR Line truncated
`;return typeof s=="string"?g+=`host: ${s}\r
`:g+=t[LM],A?g+=`connection: upgrade\r
upgrade: ${A}\r
`:t[uo]&&!u[Li]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,o&&(g+=o),Bi.sendHeaders.hasSubscribers&&Bi.sendHeaders.publish({request:e,headers:g,socket:u}),r?oe.isBuffer(r)?($(p===r.byteLength,"buffer body must have content length"),u.cork(),u.write(`${g}content-length: ${p}\r
\r
`,"latin1"),u.write(r),u.uncork(),e.onBodySent(r),e.onRequestSent(),d||(u[Li]=!0)):oe.isBlobLike(r)?typeof r.stream=="function"?qE({body:r.stream(),client:t,request:e,socket:u,contentLength:p,header:g,expectsPayload:d}):jM({body:r,client:t,request:e,socket:u,contentLength:p,header:g,expectsPayload:d}):oe.isStream(r)?zM({body:r,client:t,request:e,socket:u,contentLength:p,header:g,expectsPayload:d}):oe.isIterable(r)?qE({body:r,client:t,request:e,socket:u,contentLength:p,header:g,expectsPayload:d}):$(!1):(p===0?u.write(`${g}content-length: 0\r
\r
`,"latin1"):($(p===null,"no body must not have content length"),u.write(`${g}\r
`,"latin1")),e.onRequestSent()),!0}a(wEe,"write");function NEe(t,e,r){let{body:i,method:n,path:s,host:A,upgrade:o,expectContinue:c,signal:l,headers:d}=r,p;if(typeof d=="string"?p=Tw[aEe](d.trim()):p=d,o)return ci(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(v=>{r.aborted||r.completed||ci(t,r,v||new Hw)})}catch(v){ci(t,r,v)}if(r.aborted)return!1;let u,g=t[OE];if(p[cEe]=A||t[HM],p[lEe]=n,n==="CONNECT")return e.ref(),u=e.request(p,{endStream:!1,signal:l}),u.id&&!u.pending?(r.onUpgrade(null,null,u),++g.openStreams):u.once("ready",()=>{r.onUpgrade(null,null,u),++g.openStreams}),u.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;p[dEe]=s,p[pEe]="https";let m=n==="PUT"||n==="POST"||n==="PATCH";i&&typeof i.read=="function"&&i.read(0);let h=oe.bodyLength(i);if(h==null&&(h=r.contentLength),(h===0||!m)&&(h=null),r.contentLength!=null&&r.contentLength!==h){if(t[sm])return ci(t,r,new pa),!1;process.emitWarning(new pa)}h!=null&&($(i,"no body must not have content length"),p[uEe]=`${h}`),e.ref();let B=n==="GET"||n==="HEAD";return c?(p[gEe]="100-continue",u=e.request(p,{endStream:B,signal:l}),u.once("continue",I)):(u=e.request(p,{endStream:B,signal:l}),I()),++g.openStreams,u.once("response",v=>{r.onHeaders(Number(v[mEe]),v,u.resume.bind(u),"")===!1&&u.pause()}),u.once("end",()=>{r.onComplete([])}),u.on("data",v=>{r.onData(v)===!1&&u.pause()}),u.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),u.once("error",function(v){t[Fn]&&!t[Fn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,oe.destroy(u,v))}),u.once("frameError",(v,Q)=>{let E=new BA(`HTTP/2: "frameError" received - type ${v}, code ${Q}`);ci(t,r,E),t[Fn]&&!t[Fn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,oe.destroy(u,E))}),!0;function I(){i?oe.isBuffer(i)?($(h===i.byteLength,"buffer body must have content length"),u.cork(),u.write(i),u.uncork(),u.end(),r.onBodySent(i),r.onRequestSent()):oe.isBlobLike(i)?typeof i.stream=="function"?qE({client:t,request:r,contentLength:h,h2stream:u,expectsPayload:m,body:i.stream(),socket:t[er],header:""}):jM({body:i,client:t,request:r,contentLength:h,expectsPayload:m,h2stream:u,header:"",socket:t[er]}):oe.isStream(i)?zM({body:i,client:t,request:r,contentLength:h,expectsPayload:m,socket:t[er],h2stream:u,header:""}):oe.isIterable(i)?qE({body:i,client:t,request:r,contentLength:h,expectsPayload:m,header:"",h2stream:u,socket:t[er]}):$(!1):r.onRequestSent()}a(I,"writeBodyH2")}a(NEe,"writeH2");function zM({h2stream:t,body:e,client:r,request:i,socket:n,contentLength:s,header:A,expectsPayload:o}){if($(s!==0||r[zt]===0,"stream body cannot be pipelined"),r[QA]==="h2"){let h=function(B){i.onBodySent(B)};a(h,"onPipeData");let m=G1e(e,t,B=>{B?(oe.destroy(e,B),oe.destroy(t,B)):i.onRequestSent()});m.on("data",h),m.once("end",()=>{m.removeListener("data",h),oe.destroy(m)});return}let c=!1,l=new HE({socket:n,request:i,contentLength:s,client:r,expectsPayload:o,header:A}),d=a(function(m){if(!c)try{!l.write(m)&&this.pause&&this.pause()}catch(h){oe.destroy(this,h)}},"onData"),p=a(function(){c||e.resume&&e.resume()},"onDrain"),u=a(function(){g(new Hw)},"onAbort"),g=a(function(m){if(!c){if(c=!0,$(n.destroyed||n[ua]&&r[zt]<=1),n.off("drain",p).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",u),!m)try{l.end()}catch(h){m=h}l.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?oe.destroy(e,m):oe.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",u),e.resume&&e.resume(),n.on("drain",p).on("error",g)}a(zM,"writeStream");async function jM({h2stream:t,body:e,client:r,request:i,socket:n,contentLength:s,header:A,expectsPayload:o}){$(s===e.size,"blob body must have content length");let c=r[QA]==="h2";try{if(s!=null&&s!==e.size)throw new pa;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(n.cork(),n.write(`${A}content-length: ${s}\r
\r
`,"latin1"),n.write(l),n.uncork()),i.onBodySent(l),i.onRequestSent(),o||(n[Li]=!0),Tn(r)}catch(l){oe.destroy(c?t:n,l)}}a(jM,"writeBlob");async function qE({h2stream:t,body:e,client:r,request:i,socket:n,contentLength:s,header:A,expectsPayload:o}){$(s!==0||r[zt]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let u=c;c=null,u()}}a(l,"onDrain");let d=a(()=>new Promise((u,g)=>{$(c===null),n[oi]?g(n[oi]):c=u}),"waitForDrain");if(r[QA]==="h2"){t.on("close",l).on("drain",l);try{for await(let u of e){if(n[oi])throw n[oi];let g=t.write(u);i.onBodySent(u),g||await d()}}catch(u){t.destroy(u)}finally{i.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}n.on("close",l).on("drain",l);let p=new HE({socket:n,request:i,contentLength:s,client:r,expectsPayload:o,header:A});try{for await(let u of e){if(n[oi])throw n[oi];p.write(u)||await d()}p.end()}catch(u){p.destroy(u)}finally{n.off("close",l).off("drain",l)}}a(qE,"writeIterable");var HE=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:r,contentLength:i,client:n,expectsPayload:s,header:A}){this.socket=e,this.request=r,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=s,this.header=A,e[ua]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:A,expectsPayload:o,header:c}=this;if(r[oi])throw r[oi];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&A+l>n){if(s[sm])throw new pa;process.emitWarning(new pa)}r.cork(),A===0&&(o||(r[Li]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let d=r.write(e);return r.uncork(),i.onBodySent(e),d||r[$t].timeout&&r[$t].timeoutType===Vd&&r[$t].timeout.refresh&&r[$t].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:i,bytesWritten:n,expectsPayload:s,header:A,request:o}=this;if(o.onRequestSent(),e[ua]=!1,e[oi])throw e[oi];if(!e.destroyed){if(n===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&&n!==r){if(i[sm])throw new pa;process.emitWarning(new pa)}e[$t].timeout&&e[$t].timeoutType===Vd&&e[$t].timeout.refresh&&e[$t].timeout.refresh(),Tn(i)}}destroy(e){let{socket:r,client:i}=this;r[ua]=!1,e&&($(i[zt]<=1,"pipeline should only contain this request"),oe.destroy(r,e))}};function ci(t,e,r){try{e.onError(r),$(e.aborted)}catch(i){t.emit("error",i)}}a(ci,"errorRequest");WM.exports=Mw});var KM=f((tPe,XM)=>{"use strict";var YE=class{static{a(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)}};XM.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new YE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new YE),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var $M=f((iPe,ZM)=>{var{kFree:vEe,kConnected:xEe,kPending:REe,kQueued:DEe,kRunning:SEe,kSize:kEe}=Ot(),kc=Symbol("pool"),Gw=class{static{a(this,"PoolStats")}constructor(e){this[kc]=e}get connected(){return this[kc][xEe]}get free(){return this[kc][vEe]}get pending(){return this[kc][REe]}get queued(){return this[kc][DEe]}get running(){return this[kc][SEe]}get size(){return this[kc][kEe]}};ZM.exports=Gw});var Ww=f((sPe,c_)=>{"use strict";var FEe=Zg(),TEe=KM(),{kConnected:Yw,kSize:e_,kRunning:t_,kPending:r_,kQueued:om,kBusy:LEe,kFree:UEe,kUrl:MEe,kClose:_Ee,kDestroy:OEe,kDispatch:PEe}=Ot(),qEe=$M(),rn=Symbol("clients"),Ui=Symbol("needDrain"),cm=Symbol("queue"),Vw=Symbol("closed resolve"),Jw=Symbol("onDrain"),i_=Symbol("onConnect"),n_=Symbol("onDisconnect"),s_=Symbol("onConnectionError"),zw=Symbol("get dispatcher"),a_=Symbol("add client"),o_=Symbol("remove client"),A_=Symbol("stats"),jw=class extends FEe{static{a(this,"PoolBase")}constructor(){super(),this[cm]=new TEe,this[rn]=[],this[om]=0;let e=this;this[Jw]=a(function(i,n){let s=e[cm],A=!1;for(;!A;){let o=s.shift();if(!o)break;e[om]--,A=!this.dispatch(o.opts,o.handler)}this[Ui]=A,!this[Ui]&&e[Ui]&&(e[Ui]=!1,e.emit("drain",i,[e,...n])),e[Vw]&&s.isEmpty()&&Promise.all(e[rn].map(o=>o.close())).then(e[Vw])},"onDrain"),this[i_]=(r,i)=>{e.emit("connect",r,[e,...i])},this[n_]=(r,i,n)=>{e.emit("disconnect",r,[e,...i],n)},this[s_]=(r,i,n)=>{e.emit("connectionError",r,[e,...i],n)},this[A_]=new qEe(this)}get[LEe](){return this[Ui]}get[Yw](){return this[rn].filter(e=>e[Yw]).length}get[UEe](){return this[rn].filter(e=>e[Yw]&&!e[Ui]).length}get[r_](){let e=this[om];for(let{[r_]:r}of this[rn])e+=r;return e}get[t_](){let e=0;for(let{[t_]:r}of this[rn])e+=r;return e}get[e_](){let e=this[om];for(let{[e_]:r}of this[rn])e+=r;return e}get stats(){return this[A_]}async[_Ee](){return this[cm].isEmpty()?Promise.all(this[rn].map(e=>e.close())):new Promise(e=>{this[Vw]=e})}async[OEe](e){for(;;){let r=this[cm].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[rn].map(r=>r.destroy(e)))}[PEe](e,r){let i=this[zw]();return i?i.dispatch(e,r)||(i[Ui]=!0,this[Ui]=!this[zw]()):(this[Ui]=!0,this[cm].push({opts:e,handler:r}),this[om]++),!this[Ui]}[a_](e){return e.on("drain",this[Jw]).on("connect",this[i_]).on("disconnect",this[n_]).on("connectionError",this[s_]),this[rn].push(e),this[Ui]&&process.nextTick(()=>{this[Ui]&&this[Jw](e[MEe],[this,e])}),this}[o_](e){e.close(()=>{let r=this[rn].indexOf(e);r!==-1&&this[rn].splice(r,1)}),this[Ui]=this[rn].some(r=>!r[Ui]&&r.closed!==!0&&r.destroyed!==!0)}};c_.exports={PoolBase:jw,kClients:rn,kNeedDrain:Ui,kAddClient:a_,kRemoveClient:o_,kGetDispatcher:zw}});var Jd=f((aPe,u_)=>{"use strict";var{PoolBase:HEe,kClients:l_,kNeedDrain:GEe,kAddClient:YEe,kGetDispatcher:VEe}=Ww(),JEe=am(),{InvalidArgumentError:Xw}=wt(),Kw=ze(),{kUrl:d_,kInterceptors:zEe}=Ot(),jEe=$g(),Zw=Symbol("options"),$w=Symbol("connections"),p_=Symbol("factory");function WEe(t,e){return new JEe(t,e)}a(WEe,"defaultFactory");var e6=class extends HEe{static{a(this,"Pool")}constructor(e,{connections:r,factory:i=WEe,connect:n,connectTimeout:s,tls:A,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:p,...u}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new Xw("invalid connections");if(typeof i!="function")throw new Xw("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new Xw("connect must be a function or an object");typeof n!="function"&&(n=jEe({...A,maxCachedSessions:o,allowH2:p,socketPath:c,timeout:s??1e4,...Kw.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...n})),this[zEe]=u.interceptors&&u.interceptors.Pool&&Array.isArray(u.interceptors.Pool)?u.interceptors.Pool:[],this[$w]=r||null,this[d_]=Kw.parseOrigin(e),this[Zw]={...Kw. Line truncated
${i.count} ${i.noun} ${i.is} pending:
${e.format(r)}
`.trim())}};VO.exports=_6});var ZO=f((ZPe,KO)=>{"use strict";var{kProxy:X0e,kClose:K0e,kDestroy:Z0e,kInterceptors:$0e}=Ot(),{URL:zO}=require("url"),jO=dm(),eBe=Jd(),tBe=Zg(),{InvalidArgumentError:mm,RequestAbortedError:rBe}=wt(),WO=$g(),gm=Symbol("proxy agent"),cC=Symbol("proxy client"),lC=Symbol("proxy headers"),O6=Symbol("request tls settings"),iBe=Symbol("proxy tls settings"),XO=Symbol("connect endpoint function");function nBe(t){return t==="https:"?443:80}a(nBe,"defaultProtocolPort");function sBe(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new mm("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(sBe,"buildProxyOptions");function ABe(t,e){return new eBe(t,e)}a(ABe,"defaultFactory");var P6=class extends tBe{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[X0e]=sBe(e),this[gm]=new jO(e),this[$0e]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new mm("Proxy opts.uri is mandatory");let{clientFactory:r=ABe}=e;if(typeof r!="function")throw new mm("Proxy opts.clientFactory must be a function.");if(this[O6]=e.requestTls,this[iBe]=e.proxyTls,this[lC]=e.headers||{},e.auth&&e.token)throw new mm("opts.auth cannot be used in combination with opts.token");e.auth?this[lC]["proxy-authorization"]=`Basic ${e.auth}`:e.token&&(this[lC]["proxy-authorization"]=e.token);let i=new zO(e.uri),{origin:n,port:s,host:A}=i,o=WO({...e.proxyTls});this[XO]=WO({...e.requestTls}),this[cC]=r(i,{connect:o}),this[gm]=new jO({...e,connect:async(c,l)=>{let d=c.host;c.port||(d+=`:${nBe(c.protocol)}`);try{let{socket:p,statusCode:u}=await this[cC].connect({origin:n,port:s,path:d,signal:c.signal,headers:{...this[lC],host:A}});if(u!==200&&(p.on("error",()=>{}).destroy(),l(new rBe("Proxy response !== 200 when HTTP Tunneling"))),c.protocol!=="https:"){l(null,p);return}let g;this[O6]?g=this[O6].servername:g=c.servername,this[XO]({...c,servername:g,httpSocket:p},l)}catch(p){l(p)}}})}dispatch(e,r){let{host:i}=new zO(e.origin),n=aBe(e.headers);return oBe(n),this[gm].dispatch({...e,headers:{...n,host:i}},r)}async[K0e](){await this[gm].close(),await this[cC].close()}async[Z0e](){await this[gm].destroy(),await this[cC].destroy()}};function aBe(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}a(aBe,"buildHeaders");function oBe(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new mm("Proxy-Authorization should be sent in ProxyAgent constructor")}a(oBe,"throwIfProxyAuthIsSent");KO.exports=P6});var rp=f((eqe,rP)=>{"use strict";var $O=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:cBe}=wt(),lBe=dm();tP()===void 0&&eP(new lBe);function eP(t){if(!t||typeof t.dispatch!="function")throw new cBe("Argument agent must implement Agent");Object.defineProperty(globalThis,$O,{value:t,writable:!0,enumerable:!1,configurable:!1})}a(eP,"setGlobalDispatcher");function tP(){return globalThis[$O]}a(tP,"getGlobalDispatcher");rP.exports={setGlobalDispatcher:eP,getGlobalDispatcher:tP}});var nP=f((iqe,iP)=>{"use strict";iP.exports=class{static{a(this,"DecoratorHandler")}constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}});var Oc=f((sqe,oP)=>{"use strict";var{kHeadersList:nn}=Ot(),{kGuard:_c}=Aa(),{kEnumerableProperty:bA}=ze(),{makeIterator:q6,isValidHeaderName:hm,isValidHeaderValue:sP}=ls(),{webidl:Me}=Ti(),dBe=require("assert"),sn=Symbol("headers map"),An=Symbol("headers map sorted");function AP(t){let e=t.length;for(;/[\r\n\t ]/.test(t.charAt(--e)););return t.slice(0,e+1).replace(/^[\r\n\t ]+/,"")}a(AP,"headerValueNormalize");function aP(t,e){if(Array.isArray(e))for(let r of e){if(r.length!==2)throw Me.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${r.length}.`});t.append(r[0],r[1])}else if(typeof e=="object"&&e!==null)for(let[r,i]of Object.entries(e))t.append(r,i);else throw Me.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}a(aP,"fill");var dC=class t{static{a(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[sn]=new Map(e[sn]),this[An]=e[An],this.cookies=e.cookies):(this[sn]=new Map(e),this[An]=null)}contains(e){return e=e.toLowerCase(),this[sn].has(e)}clear(){this[sn].clear(),this[An]=null,this.cookies=null}append(e,r){this[An]=null;let i=e.toLowerCase(),n=this[sn].get(i);if(n){let s=i==="cookie"?"; ":", ";this[sn].set(i,{name:n.name,value:`${n.value}${s}${r}`})}else this[sn].set(i,{name:e,value:r});i==="set-cookie" Line truncated
Error Code : ${A.statusCode}
Error Message: ${A.message}`)})).result)===null||r===void 0?void 0:r.value;if(!s)throw new Error("Response json body do not have ID Token field");return s})}static getIDToken(e){return AH(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let n=encodeURIComponent(e);r=`${r}&audience=${n}`}aH.debug(`ID token url is ${r}`);let i=yield t.getCall(r);return aH.setSecret(i),i}catch(r){throw new Error(`Error message: ${r.message}`)}})}};hp.OidcClient=S9});var L9=f(cn=>{"use strict";var k9=cn&&cn.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(A){A(s)})}return a(n,"adopt"),new(r||(r=Promise))(function(s,A){function o(d){try{l(i.next(d))}catch(p){A(p)}}a(o,"fulfilled");function c(d){try{l(i.throw(d))}catch(p){A(p)}}a(c,"rejected");function l(d){d.done?s(d.value):n(d.value).then(o,c)}a(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(cn,"__esModule",{value:!0});cn.summary=cn.markdownSummary=cn.SUMMARY_DOCS_URL=cn.SUMMARY_ENV_VAR=void 0;var K2e=require("os"),F9=require("fs"),{access:Z2e,appendFile:$2e,writeFile:eye}=F9.promises;cn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";cn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var T9=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return k9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[cn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${cn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield Z2e(e,F9.constants.R_OK|F9.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,i={}){let n=Object.entries(i).map(([s,A])=>` ${s}="${A}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return k9(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?eye:$2e)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return k9(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(K2e.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(A=>this.wrap("li",A)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(A=>{if(typeof A=="string")return this.wrap("td",A);let{header:o,data:c,colspan:l,rowspan:d}=A,p=o?"th":"td",u=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(p,c,u)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},A=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),o=this.wrap("img",null,Object.assign({src:e,alt:r},A));return this.addRaw(o).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,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 i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},cH=new T9;cn.markdownSummary=cH;cn.summary=cH});var lH=f(ln=>{"use strict";var tye=ln&&ln.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),rye=ln&&ln.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),iye=ln&&ln.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&tye(e,t,r);return rye(e,t),e};Object.defineProperty(ln,"__esModule",{value:!0});ln.toPlatformPath=ln.toWin32Path=ln.toPosixPath=void 0;var nye=iye(require("path"));function sye(t){return t.replace(/[\\]/g,"/")}a(sye,"toPosixPath");ln.toPosixPath=sye;function Aye(t){return t.replace(/[/]/g,"\\")}a(Aye,"toWin32Path");ln.toWin32Path=Aye;function aye(t){return t.replace(/[/\\]/g,nye.sep)}a(aye,"toPlatformPath");ln.toPlatformPath=aye});var $C=f(ae=>{"use strict";var oye=ae&&ae.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===voiLine truncated
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?r:r.map(i=>i.trim())}a(mye,"getMultilineInput");ae.getMultilineInput=mye;function hye(t,e){let r=["true","True","TRUE"],i=["false","False","FALSE"],n=U9(t,e);if(r.includes(n))return!0;if(i.includes(n))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\``)}a(hye,"getBooleanInput");ae.getBooleanInput=hye;function fye(t,e){if(process.env.GITHUB_OUTPUT||"")return Vc.issueFileCommand("OUTPUT",Vc.prepareKeyValueMessage(t,e));process.stdout.write(uH.EOL),fs.issueCommand("set-output",{name:t},fp.toCommandValue(e))}a(fye,"setOutput");ae.setOutput=fye;function Eye(t){fs.issue("echo",t?"on":"off")}a(Eye,"setCommandEcho");ae.setCommandEcho=Eye;function Cye(t){process.exitCode=gH.Failure,mH(t)}a(Cye,"setFailed");ae.setFailed=Cye;function Bye(){return process.env.RUNNER_DEBUG==="1"}a(Bye,"isDebug");ae.isDebug=Bye;function Iye(t){fs.issueCommand("debug",{},t)}a(Iye,"debug");ae.debug=Iye;function mH(t,e={}){fs.issueCommand("error",fp.toCommandProperties(e),t instanceof Error?t.toString():t)}a(mH,"error");ae.error=mH;function Qye(t,e={}){fs.issueCommand("warning",fp.toCommandProperties(e),t instanceof Error?t.toString():t)}a(Qye,"warning");ae.warning=Qye;function yye(t,e={}){fs.issueCommand("notice",fp.toCommandProperties(e),t instanceof Error?t.toString():t)}a(yye,"notice");ae.notice=yye;function bye(t){process.stdout.write(t+uH.EOL)}a(bye,"info");ae.info=bye;function hH(t){fs.issue("group",t)}a(hH,"startGroup");ae.startGroup=hH;function fH(){fs.issue("endgroup")}a(fH,"endGroup");ae.endGroup=fH;function wye(t,e){return pH(this,void 0,void 0,function*(){hH(t);let r;try{r=yield e()}finally{fH()}return r})}a(wye,"group");ae.group=wye;function Nye(t,e){if(process.env.GITHUB_STATE||"")return Vc.issueFileCommand("STATE",Vc.prepareKeyValueMessage(t,e));fs.issueCommand("save-state",{name:t},fp.toCommandValue(e))}a(Nye,"saveState");ae.saveState=Nye;function vye(t){return process.env[`STATE_${t}`]||""}a(vye,"getState");ae.getState=vye;function xye(t){return pH(this,void 0,void 0,function*(){return yield dye.OidcClient.getIDToken(t)})}a(xye,"getIDToken");ae.getIDToken=xye;var Rye=L9();Object.defineProperty(ae,"summary",{enumerable:!0,get:function(){return Rye.summary}});var Dye=L9();Object.defineProperty(ae,"markdownSummary",{enumerable:!0,get:function(){return Dye.markdownSummary}});var M9=lH();Object.defineProperty(ae,"toPosixPath",{enumerable:!0,get:function(){return M9.toPosixPath}});Object.defineProperty(ae,"toWin32Path",{enumerable:!0,get:function(){return M9.toWin32Path}});Object.defineProperty(ae,"toPlatformPath",{enumerable:!0,get:function(){return M9.toPlatformPath}})});var EH=f(xA=>{"use strict";var Sye=xA&&xA.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),kye=xA&&xA.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Fye=xA&&xA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Sye(e,t,r);return kye(e,t),e};Object.defineProperty(xA,"__esModule",{value:!0});xA.getOptions=void 0;var _9=Fye($C());function Tye(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,_9.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,_9.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,_9.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}a(Tye,"getOptions");xA.getOptions=Tye});var t0=f(tr=>{"use strict";var Lye=tr&&tr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Uye=tr&&tr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Mye=tr&&tr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Lye(e,t,r);return Uye(e,t),e},_ye=tr&&tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tr,"__esModule",{value:!0});tr.safeTrimTrailingSeparator=tr.normalizeSeparators=tr.hasRoot=tr.hasAbsoluteRoot=tr.ensureAbsoluteRoot=tr.dirname=void 0;var e0=Mye(require("path")),Jc=_ye(require("assert")),Bo=process.platform==="win32";function Oye(t){if(t=P9(t),Bo&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=e0.dirname(t);return Bo&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=P9(e)),e}a(Oye,"dirname");tr.dirname=Oye;function Pye(t,e){if(Jc.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Jc.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),O9(e))return e;if(Bo){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();returnLine truncated
%s`,C,C,v,i);var w=v.type==="*"?Y9:v.type==="?"?G9:"\\"+v.type;n=!0,i=i.slice(0,v.reStart)+w+"\\("+C}m(),s&&(i+="\\\\");var R=!1;switch(i.charAt(0)){case"[":case".":case"(":R=!0}for(var b=o.length-1;b>-1;b--){var k=o[b],x=i.slice(0,k.reStart),D=i.slice(k.reStart,k.reEnd-8),S=i.slice(k.reEnd-8,k.reEnd),L=i.slice(k.reEnd);S+=L;var j=x.split("(").length-1,Ce=L;for(h=0;h<j;h++)Ce=Ce.replace(/\)[+*?]?/,"");L=Ce;var O="";L===""&&e!==i0&&(O="$");var Ke=x+D+L+O+S;i=Ke}if(i!==""&&n&&(i="(?=.)"+i),R&&(i=u+i),e===i0)return[i,n];if(!n)return m4e(t);var ye=r.nocase?"i":"";try{var Vt=new RegExp("^"+i+"$",ye)}catch{return new RegExp("$.")}return Vt._glob=t,Vt._src=i,Vt}a(u4e,"parse");qn.makeRe=function(t,e){return new li(t,e||{}).makeRe()};li.prototype.makeRe=g4e;function g4e(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?Y9:e.dot?A4e:a4e,i=e.nocase?"i":"",n=t.map(function(s){return s.map(function(A){return A===V9?r:typeof A=="string"?h4e(A):A._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,i)}catch{this.regexp=!1}return this.regexp}a(g4e,"makeRe");qn.match=function(t,e,r){r=r||{};var i=new li(e,r);return t=t.filter(function(n){return i.match(n)}),i.options.nonull&&!t.length&&t.push(e),t};li.prototype.match=a(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var i=this.options;Sm.sep!=="/"&&(e=e.split(Sm.sep).join("/")),e=e.split(OH),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s,A;for(A=e.length-1;A>=0&&(s=e[A],!s);A--);for(A=0;A<n.length;A++){var o=n[A],c=e;i.matchBase&&o.length===1&&(c=[s]);var l=this.matchOne(c,o,r);if(l)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");li.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,s=0,A=t.length,o=e.length;n<A&&s<o;n++,s++){this.debug("matchOne loop");var c=e[s],l=t[n];if(this.debug(e,c,l),c===!1)return!1;if(c===V9){this.debug("GLOBSTAR",[e,c,l]);var d=n,p=s+1;if(p===o){for(this.debug("** at the end");n<A;n++)if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return!1;return!0}for(;d<A;){var u=t[d];if(this.debug(`
globstar while`,t,d,e,p,u),this.matchOne(t.slice(d),e.slice(p),r))return this.debug("globstar found match!",d,A,u),!0;if(u==="."||u===".."||!i.dot&&u.charAt(0)==="."){this.debug("dot detected!",t,d,e,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,d,e,p),d===A))}var g;if(typeof c=="string"?(g=l===c,this.debug("string match",c,l,g)):(g=l.match(c),this.debug("pattern match",c,l,g)),!g)return!1}if(n===A&&s===o)return!0;if(n===A)return r;if(s===o)return n===A-1&&t[n]==="";throw new Error("wtf?")};function m4e(t){return t.replace(/\\(.)/g,"$1")}a(m4e,"globUnescape");function h4e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}a(h4e,"regExpEscape")});var YH=f(Es=>{"use strict";var f4e=Es&&Es.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),E4e=Es&&Es.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),GH=Es&&Es.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&f4e(e,t,r);return E4e(e,t),e},C4e=Es&&Es.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Es,"__esModule",{value:!0});Es.Path=void 0;var km=GH(require("path")),Qo=GH(t0()),Fm=C4e(require("assert")),B4e=process.platform==="win32",J9=class{static{a(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(Fm.default(e,"Parameter 'itemPath' must not be empty"),e=Qo.safeTrimTrailingSeparator(e),!Qo.hasRoot(e))this.segments=e.split(km.sep);else{let r=e,i=Qo.dirname(r);for(;i!==r;){let n=km.basename(r);this.segments.unshift(n),r=i,i=Qo.dirname(r)}this.segments.unshift(r)}else{Fm.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let i=e[r];Fm.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=Qo.normalizeSeparators(e[r]),r===0&&Qo.hasRoot(i)?(i=Qo.safeTrimTrailingSeparator(i),Fm.default(i===Qo.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(Fm.default(!i.includes(km.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],r=e.endsWith(km.sep)||B4e&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)r?r=!1:e+=km.sep,e+=this.segments[i];return e}};Es.Path=J9});var VH=f(Cs=>{"use strict";var I4e=Cs&&Cs.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Q4e=Cs&&Cs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),W9=Cs&&Cs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&I4e(e,t,r);return Q4e(e,t),e},y4e=Cs&&Cs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.Pattern=void 0;var b4e=W9(require("os")),Tm=W9(require("path")),pn=W9(t0()),zc=y4e(require("assert")),w4e=HH(),z9=r0(),s0=YH(),Ea=process.platform==="win32",j9=class t{static{a(this,"Pattern")}constructor(e,r=!1,i,n){this.negate=!1;let s;if(typeof e=="string")s=e.trim();else{i=i||[],zc.default(i.length,"Parameter 'segments' must not empty");let l=t.getLiteral(i[0]);zc.default(l&&pn.hasAbsoluteRoot(l),"Parameter 'segments' first element must be a root path"),s=new s0.Path(i).toString().trim(),e&&(s=`!${s}`)}for(;s.startsWith("!");)this.negate=!this.negate,s=s.substr(1).trim();s=t.fixupPattern(s,n),this.segments=new s0.Path(s).segments,this.trailingSeparator=pn.normalizeSeparators(s).endsWith(Tm.sep),s=pn.safeTrimTrailingSeparator(s);let A=!1,o=this.segments.map(l=>t.getLiteral(l)).filter(l=>!A&&!(A=l===""));this.searchPath=new s0.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),Ea?"i":""),this.isImplicitPattern=r;let c={dot:!0,nobrace:!0,nocase:Ea,nocomment:!0,noext:!0,nonegate:!0};s=Ea?s.replace(/\\/g,"/"):s,this.minimatch=new w4e.Minimatch(s,c)}match(e){return this.segments[this.segments.length-1]==="**"?(e=pn.normalizeSeparators(e),!e.endsWith(Tm.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Tm.sep}`)):e=pn.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?z9.MatchKind.Directory:z9.MatchKind.All:z9.MatchKind.None}partialMatch(e){return e=pn.safeTrimTrailingSeparator(e),pn.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Ea?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Ea?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){zc.default(e,"pattern cannot be empty");let i=new s0.Path(e).segments.map(n=>t.getLiteral(n));if(zc.default(i.every((n,s)=>(n!=="."||s===0)&&n!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),zc.default(!pn.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contLine truncated
`),e=e.replace(/\r/g,`
`));let r=e.split(`
`).map(n=>n.trim());for(let n of r)!n||n.startsWith("#")||i.patterns.push(new H6.Pattern(n));return i.searchPaths.push(...Ap.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return km(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield ks.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){jm.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield ks.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield ks.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){jm.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};ht.DefaultGlobber=Um});var $6=T(on=>{"use strict";var BS=on&&on.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(on,"__esModule",{value:!0});on.create=void 0;var AS=V6();function MS(t,e){return BS(this,void 0,void 0,function*(){return yield AS.DefaultGlobber.create(t,e)})}o(MS,"create");on.create=MS});var Q6=T((ie,Y6)=>{ie=Y6.exports=se;var Ne;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Ne=o(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):Ne=o(function(){},"debug");ie.SEMVER_SPEC_VERSION="2.0.0";var Us=256,Mp=Number.MAX_SAFE_INTEGER||9007199254740991,Hm=16,qS=Us-6,pn=ie.re=[],we=ie.safeRe=[],M=ie.src=[],B=ie.tokens={},W6=0;function pe(t){B[t]=W6++}o(pe,"tok");var Vm="[a-zA-Z0-9-]",Fm=[["\\s",1],["\\d",Us],[Vm,qS]];function Fs(t){for(var e=0;e<Fm.length;e++){var a=Fm[e][0],i=Fm[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}o(Fs,"makeSafeRe");pe("NUMERICIDENTIFIER");M[B.NUMERICIDENTIFIER]="0|[1-9]\\d*";pe("NUMERICIDENTIFIERLOOSE");M[B.NUMERICIDENTIFIERLOOSE]="\\d+";pe("NONNUMERICIDENTIFIER");M[B.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Vm+"*";pe("MAINVERSION");M[B.MAINVERSION]="("+M[B.NUMERICIDENTIFIER]+")\\.("+M[B.NUMERICIDENTIFIER]+")\\.("+M[B.NUMERICIDENTIFIER]+")";pe("MAINVERSIONLOOSE");M[B.MAINVERSIONLOOSE]="("+M[B.NUMERICIDENTIFIERLOOSE]+")\\.("+M[B.NUMERICIDENTIFIERLOOSE]+")\\.("+M[B.NUMERICIDENTIFIERLOOSE]+")";pe("PRERELEASEIDENTIFIER");M[B.PRERELEASEIDENTIFIER]="(?:"+M[B.NUMERICIDENTIFIER]+"|"+M[B.NONNUMERICIDENTIFIER]+")";pe("PRERELEASEIDENTIFIERLOOSE");M[B.PRERELEASEIDENTIFIERLOOSE]="(?:"+M[B.NUMERICIDENTIFIERLOOSE]+"|"+M[B.NONNUMERICIDENTIFIER]+")";pe("PRERELEASE");M[B.PRERELEASE]="(?:-("+M[B.PRERELEASEIDENTIFIER]+"(?:\\."+M[B.PRERELEASEIDENTIFIER]+")*))";pe("PRERELEASELOOSE");M[B.PRERELEASELOOSE]="(?:-?("+M[B.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+M[B.PRERELEASEIDENTIFIERLOOSE]+")*))";pe("BUILDIDENTIFIER");M[B.BUILDIDENTIFIER]=Vm+"+";pe("BUILD");M[B.BUILD]="(?:\\+("+M[B.BUILDIDENTIFIER]+"(?:\\."+M[B.BUILDIDENTIFIER]+")*))";pe("FULL");pe("FULLPLAIN");M[B.FULLPLAIN]="v?"+M[B.MAINVERSION]+M[B.PRERELEASE]+"?"+M[B.BUILD]+"?";M[B.FULL]="^"+M[B.FULLPLAIN]+"$";pe("LOOSEPLAIN");M[B.LOOSEPLAIN]="[v=\\s]*"+M[B.MAINVERSIONLOOSE]+M[B.PRERELEASELOOSE]+"?"+M[B.BUILD]+"?";pe("LOOSE");M[B.LOOSE]="^"+M[B.LOOSEPLAIN]+"$";pe("GTLT");M[B.GTLT]="((?:<|>)?=?)";pe("XRANGEIDENTIFIERLOOSE");M[B.XRANGEIDENTIFIERLOOSE]=M[B.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";pe("XRANGEIDENTIFIER");M[B.XRANGEIDENTIFIER]=M[B.NUMERICIDENTIFIER]+"|x|X|\\*";pe("XRANGEPLAIN");M[B.XRANGEPLAIN]="[v=\\s]*("+M[B.XRANGEIDENTIFIER]+")(?:\\.("+M[B.XRANGEIDENTIFIER]+")(?:\\.("+M[B.XRANGEIDENTIFIER]+")(?:"+M[B.PRERELEASE]+")?"+M[B.BUILD]+"?)?)?";pe("XRANGEPLAINLOOSE");M[B.XRANGEPLAINLOOSE]="[v=\\s]*("+M[B.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[B.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[B.XRANGEIDENTIFIERLOOSE]+")(?:"+M[B.PRERELEASELOOSE]+")?"+M[B.BUILD]+"?)?)?";pe("XRANGE");M[B.XRANGE]="^"+M[B.GTLT]+"\\s*"+M[B.XRANGEPLAIN]+"$";pe("XRANGELOOSE");M[B.XRANGELOOSE]="^"+M[B.GTLT]+"\\s*"+M[B.XRANGEPLAINLOOSE]+"$";pe("COERCE");M[B.COERCE]="(^|[^\\d])(\\d{1,"+Hm+"})(?:\\.(\\d{1,"+Hm+"}))?(?:\\.(\\d{1,"+Hm+"}))?(?:$|[^\\d])";pe("COERCERTL");pn[B.COERCERTL]=new RegExp(M[B.COERCE],"g");we[B.COERCERTL]=new RegExp(Fs(M[B.COERCE]),"g");pe("LONETILDE");M[B.LONETILDE]="(?:~>?)";pe("TILDETRIM");M[B.TILDETRIM]="(\\s*)"+M[B.LONETILDE]+"\\s+";pn[B.TILDETRIM]=new RegExp(M[B.TILDETRIM],"g");we[B.TILDETRIM]=new RegExp(Fs(M[B.TILDETRIM]),"g");var zS="$1~";pe("TILDE");M[B.TILDE]="^"+M[B.LONETILDE]+M[B.XRANGEPLAIN]+"$";pe("TILDELOOSE");M[B.TILDELOOSE]="^"+M[B.LONETILDE]+M[B.XRANGEPLAINLOOSE]+"$";pe("LONECARET");M[B.LONECARET]="(?:\\^)";pe("CARETTRIM");M[B.CARETTRIM]="(\\s*)"+M[B.LONECARET]+"\\s+";pn[B.CARETTRIM]=new Line truncated
`),{implicitDescendants:!1});try{for(var l=!0,c=wE(d.globGenerator()),m;m=yield c.next(),e=m.done,!e;l=!0){r=m.value,l=!1;let u=r,f=kp.relative(p,u).replace(new RegExp(`\\${kp.sep}`,"g"),"/");Vs.debug(`Matched: ${f}`),f===""?s.push("."):s.push(`${f}`)}}catch(u){a={error:u}}finally{try{!l&&!e&&(i=c.return)&&(yield i.call(c))}finally{if(a)throw a.error}}return s})}o(PE,"resolvePaths");ve.resolvePaths=PE;function RE(t){return cn(this,void 0,void 0,function*(){return EE.promisify(Km.unlink)(t)})}o(RE,"unlinkFile");ve.unlinkFile=RE;function i4(t,e=[]){return cn(this,void 0,void 0,function*(){let a="";e.push("--version"),Vs.debug(`Checking ${t} ${e.join(" ")}`);try{yield NE.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){Vs.debug(i.message)}return a=a.trim(),Vs.debug(a),a})}o(i4,"getVersion");function DE(){return cn(this,void 0,void 0,function*(){let t=yield i4("zstd",["--quiet"]),e=SE.clean(t);return Vs.debug(`zstd version: ${e}`),t===""?wr.CompressionMethod.Gzip:wr.CompressionMethod.ZstdWithoutLong})}o(DE,"getCompressionMethod");ve.getCompressionMethod=DE;function IE(t){return t===wr.CompressionMethod.Gzip?wr.CacheFilename.Gzip:wr.CacheFilename.Zstd}o(IE,"getCacheFileName");ve.getCacheFileName=IE;function BE(){return cn(this,void 0,void 0,function*(){return Km.existsSync(wr.GnuTarPathOnWindows)?wr.GnuTarPathOnWindows:(yield i4("tar")).toLowerCase().includes("gnu tar")?t4.which("tar"):""})}o(BE,"getGnuTarPathOnWindows");ve.getGnuTarPathOnWindows=BE;function AE(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(AE,"assertDefined");ve.assertDefined=AE;function ME(t,e,a=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!a&&i.push("windows-only"),i.push(CE),a4.createHash("sha256").update(i.join("|")).digest("hex")}o(ME,"getCacheVersion");ve.getCacheVersion=ME;function qE(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(qE,"getRuntimeToken");ve.getRuntimeToken=qE});function $s(){return jp>Up.length-16&&(r4.default.randomFillSync(Up),jp=0),Up.slice(jp,jp+=16)}var r4,Up,jp,Ym=Bt(()=>{r4=Is(require("crypto")),Up=new Uint8Array(256),jp=Up.length;o($s,"rng")});var n4,s4=Bt(()=>{n4=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function zE(t){return typeof t=="string"&&n4.test(t)}var ji,Gs=Bt(()=>{s4();o(zE,"validate");ji=zE});function LE(t,e=0){let a=(Pt[t[e+0]]+Pt[t[e+1]]+Pt[t[e+2]]+Pt[t[e+3]]+"-"+Pt[t[e+4]]+Pt[t[e+5]]+"-"+Pt[t[e+6]]+Pt[t[e+7]]+"-"+Pt[t[e+8]]+Pt[t[e+9]]+"-"+Pt[t[e+10]]+Pt[t[e+11]]+Pt[t[e+12]]+Pt[t[e+13]]+Pt[t[e+14]]+Pt[t[e+15]]).toLowerCase();if(!ji(a))throw TypeError("Stringified UUID is invalid");return a}var Pt,Ui,Xs=Bt(()=>{Gs();Pt=[];for(let t=0;t<256;++t)Pt.push((t+256).toString(16).substr(1));o(LE,"stringify");Ui=LE});function kE(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||o4,s=t.clockseq!==void 0?t.clockseq:Qm;if(n==null||s==null){let u=t.random||(t.rng||$s)();n==null&&(n=o4=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),s==null&&(s=Qm=(u[6]<<8|u[7])&16383)}let p=t.msecs!==void 0?t.msecs:Date.now(),d=t.nsecs!==void 0?t.nsecs:Zm+1,l=p-Jm+(d-Zm)/1e4;if(l<0&&t.clockseq===void 0&&(s=s+1&16383),(l<0||p>Jm)&&t.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Jm=p,Zm=d,Qm=s,p+=122192928e5;let c=((p&268435455)*1e4+d)%4294967296;r[i++]=c>>>24&255,r[i++]=c>>>16&255,r[i++]=c>>>8&255,r[i++]=c&255;let m=p/4294967296*1e4&268435455;r[i++]=m>>>8&255,r[i++]=m&255,r[i++]=m>>>24&15|16,r[i++]=m>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let u=0;u<6;++u)r[i+u]=n[u];return e||Ui(r)}var o4,Qm,Jm,Zm,p4,d4=Bt(()=>{Ym();Xs();Jm=0,Zm=0;o(kE,"v1");p4=kE});function jE(t){if(!ji(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var Hp,eu=Bt(()=>{Gs();o(jE,"parse");Hp=jE});function UE(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function Ws(t,e,a){function i(r,n,s,p){if(typeof r=="string"&&(r=UE(r)),typeof n=="string"&&(n=Hp(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let d=new Uint8Array(16+r.length);if(d.set(n),d.set(r,n.length),d=a(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){p=p||0;for(let l=0;l<16;++l)s[p+l]=d[l];return s}return Ui(d)}o(i,"generateUUID");try{i.name=t}catch{}return i.DNS=HE,i.URL=FE,i}var HE,FE,tu=Bt(()=>{Xs();eu();o(UE,"stringToBytes");HE="6ba7b810-9dad-11d1-80b4-00c04fd430c8",FE Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(ru)});var Xa=T((Y4,Hi)=>{(function(){var t,e,a,i,r,n,s,p=[].slice,d={}.hasOwnProperty;t=o(function(){var l,c,m,u,f,h;if(h=arguments[0],f=2<=arguments.length?p.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(l=0,m=f.length;l<m;l++)if(u=f[l],u!=null)for(c in u)d.call(u,c)&&(h[c]=u[c]);return h},"assign"),r=o(function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},"isFunction"),n=o(function(l){var c;return!!l&&((c=typeof l)=="function"||c==="object")},"isObject"),a=o(function(l){return r(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},"isArray"),i=o(function(l){var c;if(a(l))return!l.length;for(c in l)if(d.call(l,c))return!1;return!0},"isEmpty"),s=o(function(l){var c,m;return n(l)&&(m=Object.getPrototypeOf(l))&&(c=m.constructor)&&typeof c=="function"&&c instanceof c&&Function.prototype.toString.call(c)===Function.prototype.toString.call(Object)},"isPlainObject"),e=o(function(l){return r(l.valueOf)?l.valueOf():l},"getValue"),Hi.exports.assign=t,Hi.exports.isFunction=r,Hi.exports.isObject=n,Hi.exports.isArray=a,Hi.exports.isEmpty=i,Hi.exports.isPlainObject=s,Hi.exports.getValue=e}).call(Y4)});var nu=T((Q4,J4)=>{(function(){var t;J4.exports=t=function(){function e(){}return o(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(a,i){return!0},e.prototype.createDocumentType=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(a,i){throw new Error("This DOM method is not implemented.")},e}()}).call(Q4)});var t3=T((Z4,e3)=>{(function(){var t;e3.exports=t=function(){function e(){}return o(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(Z4)});var r3=T((a3,i3)=>{(function(){var t;i3.exports=t=function(){function e(a){this.arr=a||[]}return o(e,"XMLDOMStringList"),Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(a){return this.arr[a]||null},e.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},e}()}).call(a3)});var o3=T((n3,s3)=>{(function(){var t,e,a;e=t3(),a=r3(),s3.exports=t=function(){function i(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}return o(i,"XMLDOMConfiguration"),Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,n){return!0},i.prototype.setParameter=function(r,n){return n!=null?this.params[r]=n:delete this.params[r]},i}()}).call(n3)});var at=T((p3,d3)=>{(function(){d3.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(p3)});var su=T((l3,c3)=>{(function(){var t,e,a;t=at(),a=ia(),c3.exports=e=function(){function i(r,n,s){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return o(i,"XMLAttribute"),Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))},i.prototype.debugInfo=function(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"},i.prototype.isEqualNode=function(r){return!(r.namespaceURI!==thi Line truncated
`,y.offset=(O=w.offset)!=null?O:0,y.dontPrettyTextNodes=(N=(I=w.dontPrettyTextNodes)!=null?I:w.dontprettytextnodes)!=null?N:0,y.spaceBeforeSlash=(E=(R=w.spaceBeforeSlash)!=null?R:w.spacebeforeslash)!=null?E:"",y.spaceBeforeSlash===!0&&(y.spaceBeforeSlash=" "),y.suppressPrettyCount=0,y.user={},y.state=e.None,y},D.prototype.indent=function(w,y,g){var _;return!y.pretty||y.suppressPrettyCount?"":y.pretty&&(_=(g||0)+y.offset+1,_>0)?new Array(_).join(y.indent):""},D.prototype.endline=function(w,y,g){return!y.pretty||y.suppressPrettyCount?"":y.newline},D.prototype.attribute=function(w,y,g){var _;return this.openAttribute(w,y,g),_=" "+w.name+'="'+w.value+'"',this.closeAttribute(w,y,g),_},D.prototype.cdata=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<![CDATA[",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+="]]>"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.comment=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!-- ",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=" -->"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.declaration=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?xml",y.state=e.InsideTag,_+=' version="'+w.version+'"',w.encoding!=null&&(_+=' encoding="'+w.encoding+'"'),w.standalone!=null&&(_+=' standalone="'+w.standalone+'"'),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.docType=function(w,y,g){var _,O,N,I,E;if(g||(g=0),this.openNode(w,y,g),y.state=e.OpenTag,I=this.indent(w,y,g),I+="<!DOCTYPE "+w.root().name,w.pubID&&w.sysID?I+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(I+=' SYSTEM "'+w.sysID+'"'),w.children.length>0){for(I+=" [",I+=this.endline(w,y,g),y.state=e.InsideTag,E=w.children,O=0,N=E.length;O<N;O++)_=E[O],I+=this.writeChildNode(_,y,g+1);y.state=e.CloseTag,I+="]"}return y.state=e.CloseTag,I+=y.spaceBeforeSlash+">",I+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),I},D.prototype.element=function(w,y,g){var _,O,N,I,E,R,A,j,oe,he,Q,et,ue,Oa;g||(g=0),he=!1,Q="",this.openNode(w,y,g),y.state=e.OpenTag,Q+=this.indent(w,y,g)+"<"+w.name,et=w.attribs;for(oe in et)S.call(et,oe)&&(_=et[oe],Q+=this.attribute(_,y,g));if(N=w.children.length,I=N===0?null:w.children[0],N===0||w.children.every(function(kt){return(kt.type===t.Text||kt.type===t.Raw)&&kt.value===""}))y.allowEmpty?(Q+=">",y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g)):(y.state=e.CloseTag,Q+=y.spaceBeforeSlash+"/>"+this.endline(w,y,g));else if(y.pretty&&N===1&&(I.type===t.Text||I.type===t.Raw)&&I.value!=null)Q+=">",y.state=e.InsideTag,y.suppressPrettyCount++,he=!0,Q+=this.writeChildNode(I,y,g+1),y.suppressPrettyCount--,he=!1,y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g);else{if(y.dontPrettyTextNodes){for(ue=w.children,E=0,A=ue.length;E<A;E++)if(O=ue[E],(O.type===t.Text||O.type===t.Raw)&&O.value!=null){y.suppressPrettyCount++,he=!0;break}}for(Q+=">"+this.endline(w,y,g),y.state=e.InsideTag,Oa=w.children,R=0,j=Oa.length;R<j;R++)O=Oa[R],Q+=this.writeChildNode(O,y,g+1);y.state=e.CloseTag,Q+=this.indent(w,y,g)+"</"+w.name+">",he&&y.suppressPrettyCount--,Q+=this.endline(w,y,g),y.state=e.None}return this.closeNode(w,y,g),Q},D.prototype.writeChildNode=function(w,y,g){switch(w.type){case t.CData:return this.cdata(w,y,g);case t.Comment:return this.comment(w,y,g);case t.Element:return this.element(w,y,g);case t.Raw:return this.raw(w,y,g);case t.Text:return this.text(w,y,g);case t.ProcessingInstruction:return this.processingInstruction(w,y,g);case t.Dummy:return"";case t.Declaration:return this.declaration(w,y,g);case t.DocType:return this.docType(w,y,g);case t.AttributeDeclaration:return this.dtdAttList(w,y,g);case t.ElementDeclaration:return this.dtdElement(w,y,g);case t.EntityDeclaration:return this.dtdEntity(w,y,g);case t.NotationDeclaration:return this.dtdNotation(w,y,g);default:throw new Error("Unknown XML node type: "+w.constructor.name)}},D.prototype.processingInstruction=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?",y.state=e.InsideTag,_+=w.target,w.value&&(_+=" "+w.value),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.raw=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.text=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.dtdAttList=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!ATTLIST",y.state=e.InsideTag,_+=" "+w.elementName+" "+w.attributeName+" "+w.attribut Line truncated
`||x==="\r"||x===" "}o(w,"isWhitespace");function y(x){return x==='"'||x==="'"}o(y,"isQuote");function g(x){return x===">"||w(x)}o(g,"isAttribEnd");function _(x,v){return x.test(v)}o(_,"isMatch");function O(x,v){return!_(x,v)}o(O,"notMatch");var N=0;t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(x){var v=t.ENTITIES[x],q=typeof v=="number"?String.fromCharCode(v):v;t.ENTITIES[x]=q});for(var I in t.STATE)t.STATE[t.STATE[I]]=I;N=t.STATE;function E(x,v,q){x[v]&&x[v](q)}o(E,"emit");function R(x,v,q){x.textNode&&A(x),E(x,v,q)}o(R,"emitNode");function A(x){x.textNode=j(x.opt,x.textNode),x.textNode&&E(x,"ontext",x.textNode),x.textNode=""}o(A,"closeText");function j(x,v){return x.trim&&(v=v.trim()),x.normalize&&(v=v.replace(/\s+/g," ")),v}o(j,"textopts");function oe(x,v){return A(x),x.trackPosition&&(v+=`
Line: `+x.line+`
Column: `+x.column+`
Char: `+x.c),v=new Error(v),x.error=v,E(x,"onerror",v),x}o(oe,"error");function he(x){return x.sawRoot&&!x.closedRoot&&Q(x,"Unclosed root tag"),x.state!==N.BEGIN&&x.state!==N.BEGIN_WHITESPACE&&x.state!==N.TEXT&&oe(x,"Unexpected end"),A(x),x.c="",x.closed=!0,E(x,"onend"),a.call(x,x.strict,x.opt),x}o(he,"end");function Q(x,v){if(typeof x!="object"||!(x instanceof a))throw new Error("bad call to strictFail");x.strict&&oe(x,v)}o(Q,"strictFail");function et(x){x.strict||(x.tagName=x.tagName[x.looseCase]());var v=x.tags[x.tags.length-1]||x,q=x.tag={name:x.tagName,attributes:{}};x.opt.xmlns&&(q.ns=v.ns),x.attribList.length=0,R(x,"onopentagstart",q)}o(et,"newTag");function ue(x,v){var q=x.indexOf(":"),P=q<0?["",x]:x.split(":"),Ce=P[0],ot=P[1];return v&&x==="xmlns"&&(Ce="xmlns",ot=""),{prefix:Ce,local:ot}}o(ue,"qname");function Oa(x){if(x.strict||(x.attribName=x.attribName[x.looseCase]()),x.attribList.indexOf(x.attribName)!==-1||x.tag.attributes.hasOwnProperty(x.attribName)){x.attribName=x.attribValue="";return}if(x.opt.xmlns){var v=ue(x.attribName,!0),q=v.prefix,P=v.local;if(q==="xmlns")if(P==="xml"&&x.attribValue!==u)Q(x,"xml: prefix must be bound to "+u+`
Actual: `+x.attribValue);else if(P==="xmlns"&&x.attribValue!==f)Q(x,"xmlns: prefix must be bound to "+f+`
Actual: `+x.attribValue);else{var Ce=x.tag,ot=x.tags[x.tags.length-1]||x;Ce.ns===ot.ns&&(Ce.ns=Object.create(ot.ns)),Ce.ns[P]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,R(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}o(Oa,"attrib");function kt(x,v){if(x.opt.xmlns){var q=x.tag,P=ue(x.tagName);q.prefix=P.prefix,q.local=P.local,q.uri=q.ns[P.prefix]||"",q.prefix&&!q.uri&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),q.uri=P.prefix);var Ce=x.tags[x.tags.length-1]||x;q.ns&&Ce.ns!==q.ns&&Object.keys(q.ns).forEach(function(vh){R(x,"onopennamespace",{prefix:vh,uri:q.ns[vh]})});for(var ot=0,ft=x.attribList.length;ot<ft;ot++){var jt=x.attribList[ot],Ha=jt[0],Qr=jt[1],Tt=ue(Ha,!0),pi=Tt.prefix,Bw=Tt.local,yh=pi===""?"":q.ns[pi]||"",Zc={name:Ha,value:Qr,prefix:pi,local:Bw,uri:yh};pi&&pi!=="xmlns"&&!yh&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(pi)),Zc.uri=pi),x.tag.attributes[Ha]=Zc,R(x,"onattribute",Zc)}x.attribList.length=0}x.tag.isSelfClosing=!!v,x.sawRoot=!0,x.tags.push(x.tag),R(x,"onopentag",x.tag),v||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=N.SCRIPT:x.state=N.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}o(kt,"openTag");function Yr(x){if(!x.tagName){Q(x,"Weird empty close tag."),x.textNode+="</>",x.state=N.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=N.SCRIPT;return}R(x,"onscript",x.script),x.script=""}var v=x.tags.length,q=x.tagName;x.strict||(q=q[x.looseCase]());for(var P=q;v--;){var Ce=x.tags[v];if(Ce.name!==P)Q(x,"Unexpected close tag");else break}if(v<0){Q(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=N.TEXT;return}x.tagName=q;for(var ot=x.tags.length;ot-- >v;){var ft=x.tag=x.tags.pop();x.tagName=x.tag.name,R(x,"onclosetag",x.tagName);var jt={};for(var Ha in ft.ns)jt[Ha]=ft.ns[Ha];var Qr=x.tags[x.tags.length-1]||x;x.opt.xmlns&&ft.ns!==Qr.ns&&Object.keys(ft.ns).forEach(function(Tt){var pi=ft.ns[Tt];R(x,"onclosenamespace",{prefix:Tt,uri:pi})})}v===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=N.TEXT}o(Yr,"closeTag");function Rs(x){var v=x.entity,q=v.toLowerCase(),P,Ce="";return x.ENTITIES[v]?x.ENTITIES[v]:x.ENTITIES[q]?x.ENTITIES[q]:(v=q,v.charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),P=parseInt(v,16),Ce=P.toString(16)):(v=v.slice(1),P=parseInt(v,10),Ce=P.toString(10))),v=v.replace(/^0+/,""),isNaN(P)||Ce.toLowerCase()!==v?(Q(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(P))}o(Rs,"parseEntity");function hh(x,v){v==="<"?(x.state=N.OPEN_WAKA,x.startTagPosition=x.position):w(v)||(Q(x,"Non-whitespace before first tag."),x.textNode=v,x.state=N.TEXT)}o(hh,"beginWhiteSpace");function gh(x,v){var q="";return v<x.length&&(q=x.charAt(v)),q}o(gh,"charAt");function Iw(x){var v=this;if(this.error)throw this.error;if(v.closed)return oe(v,"Cannot write after close. Assign an onready handler.");if(x===null)return he(v);typeof x=="object"&&(x=x.toString());for(var q=0,P="";P=gh(x,q++),v.c=P,!!P;)switch(v.trackPosition&&(v.position++,P===`
`?(v.line++,v.column=0):v.column++),v.state){case N.BEGIN:if(v.state=N.BEGIN_WHITESPACE,P==="\uFEFF")continue;hh(v,P);continue;case N.BEGIN_WHITESPACE:hh(v,P);continue;case N.TEXT:if(v.sawRoot&&!v.closedRoot){for(var Ce=q-1;P&&P!=="<"&&P!=="&";)P=gh(x,q++),P&&v.trackPosition&&(v.position++,P===`
`?(v.line++,v.column=0):v.column++);v.textNode+=x.substring(Ce,q-1)}P==="<"&&!(v.sawRoot&&v.closedRoot&&!v.strict)?(v.state=N.OPEN_WAKA,v.startTagPosition=v.position):(!w(P)&&(!v.sawRoot||v.closedRoot)&&Q(v,"Text data outside of root node."),P==="&"?v.state=N.TEXT_ENTITY:v.textNode+=P);continue;case N.SCRIPT:P==="<"?v.state=N.SCRIPT_ENDING:v.script+=P;continue;case N.SCRIPT_ENDING:P==="/"?v.state=N.CLOSE_TAG:(v.script+="<"+P,v.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(P==="!")v.state=N.SGML_DECL,v.sgmlDecl="";else if(!w(P))if(_(b,P))v.state=N.OPEN_TAG,v.tagName=P;else if(P==="/")v.state=N.CLOSE_TAG,v.tagName="";else if(P==="?")v.state=N.PROC_INST,v.procInstName=v.procInstBody="";else{if(Q(v,"Unencoded <"),v.startTagPosition+1<v.position){var ot=v.position-v.startTagPosition;P=new Array(ot).join(" ")+P}v.textNode+="<"+P,v.state=N.TEXT}continue;case N.SGML_DECL:(v.sgmlDecl+P).toUpperCase()===c?(R(v,"onopencdata"),v.state=N.CDATA,v.sgmlDecl="",v.cdata=""):v.sgmlDecl+P==="--"?(v.state=N.COMMENT,v.comment="",v.sgmlDecl=""):(v.sgmlDecl+P).toUpperCase()===m?(v.state=N.DOCTYPE,(v.doctype||v.sawRoot)&&Q(v,"Inappropriately located doctype declaration"),v.doctype="",v.sgmlDecl=""):P===">"?(R(v,"onsgmldeclaration",v.sgmlDecl),v.sgmlDecl="",v.state=N.TEXT):(y(P)&&(v.state=N.SGML_DECL_QUOTED),v.sgmlDecl+=P);continue;case N.SGML_DECL_QUOTED:P===v.q&&(v.state=N.SGML_DECL,v.q=""),v.sgmlDecl+=P;continue;case N.DOCTYPE:P===">"?(v.state=N.TEXT,R(v,"ondoctype",v.doctype),v.doctype=!0):(v.doctype+=P,P==="["?v.state=N.DOCTYPE_DTD:y(P)&&(v.state=N.DOCTYPE_QUOTED,v.q=P));continue;case N.DOCTYPE_QUOTED:v.doctype+=P,P===v.q&&(v.q="",v.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:v.doctype+=P,P==="]"?v.state=N.DOCTYPE:y(P)&&(v.state=N.DOCTYPE_DTD_QUOTED,v.q=P);continue;case N.DOCTYPE_DTD_QUOTED:v.doctype+=P,P===v.q&&(v.state=N.DOCTYPE_DTD,v.q="");continue;case N.COMMENT:P==="-"?v.state=N.COMMENT_ENDING:v.comment+=P;continue;case N.COMMENT_ENDING:P==="-"?(v.state=N.COMMENT_ENDED,v.comment=j(v.opt,v.comment),v.comment&&R(v,"oncomment",v.comment),v.comment=""):(v.comment+="-"+P,v.state=N.COMMENT);continue;case N.COMMENT_ENDED:P!==">"?(Q(v,"Malformed comment"),v.comment+="--"+P,v.state=N.COMMENT):v.state=N.TEXT;continue;case N.CDATA:P==="]"?v.state=N.CDATA_ENDING:v.cdata+=P;continue;case N.CDATA_ENDING:P==="]"?v.state=N.CDATA_ENDING_2:(v.cdata+="]"+P,v.state=N.CDATA);continue;case N.CDATA_ENDING_2:P===">"?(v.cdata&&R(v,"oncdata",v.cdata),R(v,"onclosecdata"),v.cdata="",v.state=N.TEXT):P==="]"?v.cdata+="]":(v.cdata+="]]"+P,v.state=N.CDATA);continue;case N.PROC_INST:P==="?"?v.state=N.PROC_INST_ENDING:w(P)?v.state=N.PROC_INST_BODY:v.procInstName+=P;continue;case N.PROC_INST_BODY:if(!v.procInstBody&&w(P))continue;P==="?"?v.state=N.PROC_INST_ENDING:v.procInstBody+=P;continue;case N.PROC_INST_ENDING:P===">"?(R(v,"onprocessinginstruction",{name:v.procInstName,body:v.procInstBody}),v.procInstName=v.procInstBody="",v.state=N.TEXT):(v.procInstBody+="?"+P,v.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:_(C,P)?v.tagName+=P:(et(v),P===">"?kt(v):P==="/"?v.state=N.OPEN_TAG_SLASH:(w(P)||Q(v,"Invalid character in tag name"),v.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:P===">"?(kt(v,!0),Yr(v)):(Q(v,"Forward-slash in opening tag not followed by >"),v.state=N.ATTRIB);continue;case N.ATTRIB:if(w(P))continue;P===">"?kt(v):P==="/"?v.state=N.OPEN_TAG_SLASH:_(b,P)?(v.attribName=P,v.attribValue="",v.state=N.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case N.ATTRIB_NAME:P==="="?v.state=N.ATTRIB_VALUE:P===">"?(Q(v,"Attribute without value"),v.attribValue=v.attribName,Oa(v),kt(v)):w(P)?v.state=N.ATTRIB_NAME_SAW_WHITE:_(C,P)?v.attribName+=P:Q(v,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(P==="=")v.state=N.ATTRIB_VALUE;else{if(w(P))continue;Q(v,"Attribute without value"),v.tag.attributes[v.attribName]="",v.attribValue="",R(v,"onattribute",{name:v.attribName,value:""}),v.attribName="",P===">"?kt(v):_(b,P)?(v.attribName=P,v.state=N.ATTRIB_NAME):(Q(v,"Invalid attribute name"),v.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(w(P))continue;y(P)?(v.q=P,v.state=N.ATTRIB_VALUE_QUOTED):(Q(v,"Unquoted attribute value"),v.state=N.ATTRIB_VALUE_UNQUOTED,v.attribValue=P);continue;case N.ATTRIB_VALUE_QUOTED:if(P!==v.q){P==="&"?v.state=N.ATTRIB_VALUE_ENTITY_Q:v.attribValue+=P;continue}Oa(v),v.q="",v.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:w(P)?v.state=N.ATTRIB:P===">"?kt(v):P==="/"?v.state=N.OPEN_TAG_SLASH:_(b,P)?(Q(v,"No whitespace between attributes"),v.attribName=P,v.attribValue="",v.state=N.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!g(P)){P==="&"?v.state=N.ATTRIB_VALUE_ENTITY_U:v.attribValue+=P;continue}Oa(v),P===">"?kt(v):v.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(v.tagName)P===">"?Yr(v):_(C,P)?v.tagName+=P:v.script?(v.script+="</"+v.tagName,v.tagName="",v.state=N.SCRIPT):(w(P)||Q(v,"Invalid tagname in closing tag"),v.state=N.CLOSE_TAG_SAW_WHITE);else{if(w(P))continue;O Line truncated
`;ge.DEFAULT_CONTENT_TYPE="application/octet-stream";ge.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=Uu.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),f5.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};ge.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=+a.knownLength:Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+ge.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof xT))&&(a.knownLength||this._valuesToMeasure.push(e))};ge.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):bT.stat(t.path,function(a,i){var r;if(a){e(a);return}r=i.size-(t.start?t.start:0),e(null,r)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(a){t.pause(),e(null,+a.headers["content-length"])}),t.resume()):e("Unknown stream")};ge.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&ju(s,a.header);var p;for(var d in s)s.hasOwnProperty(d)&&(p=s[d],p!=null&&(Array.isArray(p)||(p=[p]),p.length&&(n+=d+": "+p.join("; ")+ge.LINE_BREAK)));return"--"+this.getBoundary()+ge.LINE_BREAK+n+ge.LINE_BREAK};ge.prototype._getContentDisposition=function(t,e){var a,i;return typeof e.filepath=="string"?a=Lu.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?a=Lu.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(a=Lu.basename(t.client._httpMessage.path||"")),a&&(i='filename="'+a+'"'),i};ge.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t.name&&(a=ku.lookup(t.name)),!a&&t.path&&(a=ku.lookup(t.path)),!a&&t.readable&&t.hasOwnProperty("httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=ku.lookup(e.filepath||e.filename)),!a&&typeof t=="object"&&(a=ge.DEFAULT_CONTENT_TYPE),a};ge.prototype._multiPartFooter=function(){return function(t){var e=ge.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};ge.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ge.LINE_BREAK};ge.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(a[e.toLowerCase()]=t[e]);return a};ge.prototype.setBoundary=function(t){this._boundary=t};ge.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ge.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ge.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ge.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};ge.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ge.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ge.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}wT.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){t(a);return}i.forEach(function(r){e+=r}),t(null,e)})};ge.prototype.submit=function(t,e){var a,i,r={method:"post"};return typeof t=="string"?(t=vT(t),i=ju({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(i=ju(t,r),i.port||(i.port=i.protocol=="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol=="https:"?a=yT.request(i):a=gT.request(i),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&a.setHeader("Content-Length",s),this.pipe(a),e){var p,d=o(function(l,c){return a.removeListener("error",d),a.removeListener("response",p),e.call(this,l,c)},"callback");p=d.bind(this,null),a.on("error",d),a.on("response",p)}}.bind(this)),a};ge.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit Line truncated
${fD.sanitize(this)}`}};na.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";na.PARSE_ERROR="PARSE_ERROR";var Ma=mR.createClientLogger("core-http");function hg(t,e){return t?e.httpsAgent:e.httpAgent}o(hg,"getCachedAgent");var bl=class extends yR.Transform{static{o(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function ml(t){return t&&typeof t.pipe=="function"}o(ml,"isReadableStream");function gg(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}o(gg,"isStreamComplete");function hD(t){let e=new Qi;return t.forEach((a,i)=>{e.set(i,a)}),e}o(hD,"parseHeaders");var xl=class{static{o(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new ul.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new ul.AbortError("The operation was aborted.");r=o(l=>{l.type==="abort"&&i.abort()},"abortListener"),e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let l=e.formData,c=new xR.default,m=o((f,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?c.append(f,h.value,h.options):c.append(f,h)},"appendFormValue");for(let f of Object.keys(l)){let h=l[f];if(Array.isArray(h))for(let b=0;b<h.length;b++)m(f,h[b]);else m(f,h)}e.body=c,e.formData=void 0;let u=e.headers.get("Content-Type");u&&u.indexOf("multipart/form-data")!==-1&&(typeof c.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${c.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let l=e.onUploadProgress,c=new bl(l);ml(n)?n.pipe(c):c.end(n),n=c}let s=await this.prepareRequest(e),p=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),d;try{let l=await this.fetch(e.url,p),c=hD(l.headers),m=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(l.status))||e.streamResponseBody;d={headers:c,request:e,status:l.status,readableStreamBody:m?l.body:void 0,bodyAsText:m?void 0:await l.text()};let u=e.onDownloadProgress;if(u){let f=l.body||void 0;if(ml(f)){let h=new bl(u);f.pipe(h),d.readableStreamBody=h}else{let h=parseInt(c.get("Content-Length"))||void 0;h&&u({loadedBytes:h})}}return await this.processRequest(d),d}catch(l){let c=l;throw c.code==="ENOTFOUND"?new na(c.message,na.REQUEST_SEND_ERROR,void 0,e):c.type==="aborted"?new ul.AbortError("The operation was aborted."):c}finally{if(e.abortSignal&&r){let l=Promise.resolve();ml(n)&&(l=gg(n));let c=Promise.resolve();ml(d?.readableStreamBody)&&(c=gg(d.readableStreamBody,i)),Promise.all([l,c]).then(()=>{var m;(m=e.abortSignal)===null||m===void 0||m.removeEventListener("abort",r)}).catch(m=>{Ma.warning("Error when cleaning up abortListener on httpRequest",m)})}}}getOrCreateAgent(e){var a;let i=Y1(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:p}=e.proxySettings,d=`${r}:${n}:${s}:${p}`,l=(a=this.proxyAgentMap.get(d))!==null&&a!==void 0?a:{},c=hg(i,l);if(c)return c;let m=lD(e.url,e.proxySettings,e.headers);return c=m.agent,m.isHttps?l.httpsAgent=m.agent:l.httpAgent=m.agent,this.proxyAgentMap.set(d,l),c}else if(e.keepAlive){let r=hg(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new lg.Agent(n):r=this.keepAliveAgents.httpAgent=new dg.Agent(n),r}else return i?lg.globalAgent:dg.globalAgent}async fetch(e,a){return wR.default(e,a)}async prepareRequest(e){let a={};return a.agent=this.getOrCreateAgent(e),a.compress=e.decompressResponse,a}async processRequest(e){}};F.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(F.HttpPipelineLogLevel||(F.HttpPipelineLogLevel={}));function gD(t){let{requestOptions:e,tracingOptions:a}=t,r=lR.__rest(t,["requestOptions","tracingOptions"]);return e&&(r=Object.assign(Object.assign({},r),e)),a&&(r.tracingContext=a.tracingContext,r.spanOptions=a?.spanOptions),r}o(gD,"operationOptionsToRequestOptionsBase");var lt=class{static{o(this,"BaseRequestPolicy")}constructor(e,a){this._nextPolicy=e,this._options=a}shouldLog(e){return this._options.shouldLog(e)}log(e,a){this._options.log(e,a)}},wl=class{static{o(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==F.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,a){this._logger&&this.shouldLog(e)&&this._logger.log(e,a)}},qg={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:dt,explicitArray:!0,ignore Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},hl=Object.assign({},qg);hl.explicitArray=!1;var wo=Object.assign({},qg);wo.explicitArray=!1;wo.renderOpts={pretty:!1};function Q1(t,e={}){var a;return wo.rootName=e.rootName,wo.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:wi,new Eg.Builder(wo).buildObject(t)}o(Q1,"stringifyXML");function zg(t,e={}){var a;hl.explicitRoot=!!e.includeRoot,hl.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:wi;let i=new Eg.Parser(hl);return new Promise((r,n)=>{t?i.parseString(t,(s,p)=>{s?n(s):r(p)}):n(new Error("Document is empty"))})}o(zg,"parseXML");function Nf(t,e){return{create:(a,i)=>new J1(a,i,t,e)}}o(Nf,"deserializationPolicy");var Lg=["application/json","text/json"],kg=["application/xml","application/atom+xml"],yD={expectedContentTypes:{json:Lg,xml:kg}},J1=class extends lt{static{o(this,"DeserializationPolicy")}constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||Lg,this.xmlContentTypes=i&&i.xml||kg,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:wi}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>jg(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function vD(t){let e,a=t.request,i=a.operationSpec;if(i){let r=a.operationResponseGetter;r?e=r(i,t):e=i.responses[t.status]}return e}o(vD,"getOperationResponse");function bD(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}o(bD,"shouldDeserializeResponse");function jg(t,e,a,i={}){var r,n,s;let p={rootName:(r=i.rootName)!==null&&r!==void 0?r:"",includeRoot:(n=i.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=i.xmlCharKey)!==null&&s!==void 0?s:wi};return ND(t,e,a,p).then(d=>{if(!bD(d))return d;let l=d.request.operationSpec;if(!l||!l.responses)return d;let c=vD(d),{error:m,shouldReturnResponse:u}=wD(d,l,c);if(m)throw m;if(u)return d;if(c){if(c.bodyMapper){let f=d.parsedBody;l.isXML&&c.bodyMapper.type.name===Dr.Sequence&&(f=typeof f=="object"?f[c.bodyMapper.xmlElementName]:[]);try{d.parsedBody=l.serializer.deserialize(c.bodyMapper,f,"operationRes.parsedBody",i)}catch(h){throw new na(`Error ${h} occurred in deserializing the responseBody - ${d.bodyAsText}`,void 0,d.status,d.request,d)}}else l.httpMethod==="HEAD"&&(d.parsedBody=a.status>=200&&a.status<300);c.headersMapper&&(d.parsedHeaders=l.serializer.deserialize(c.headersMapper,d.headers.toJson(),"operationRes.parsedHeaders",i))}return d})}o(jg,"deserializeResponseBody");function xD(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(xD,"isOperationSpecEmpty");function wD(t,e,a){var i;let r=200<=t.status&&t.status<300;if(xD(e)?r:!!a)if(a){if(!a.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=a??e.responses.default,d=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new na(d,void 0,t.status,t.request,t);if(!s)throw l;let c=s.bodyMapper,m=s.headersMapper;try{if(t.parsedBody){let u=t.parsedBody,f;if(c){let b=u;e.isXML&&c.type.name===Dr.Sequence&&(b=typeof u=="object"?u[c.xmlElementName]:[]),f=e.serializer.deserialize(c,b,"error.response.parsedBody")}let h=u.error||f||u;l.code=h.code,h.message&&(l.message=h.message),c&&(l.response.parsedBody=f)}t.headers&&m&&(l.response.parsedHeaders=e.serializer.deserialize(m,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(u){l.message=`Error "${u.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}o(wD,"handleErrorResponse");function ND(t,e,a,i){var r;let n=o(p=>{let d=`Error "${p}" occurred while parsing the response body - ${a.bodyAsText}.`,l=p.code||na.PARSE_ERROR,c=new na(d,l,a.status,a.request,a);return Promise.reject(c)},"errorHandler");if(!(((r=a.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(a.status))||a.request.streamResponseBody)&&a.bodyAsText){let p=a.bodyAsText,d=a.headers.get("Content-Type")||"",l=d?d.split(";").map(c=>c.toLowerCase()):[];if(l.length===0||l.some(c=>t.indexOf(c)!==-1))return new Promise(c=>{a.parsedBody=JSON.parse(p),c(a)}).catch(n);if(l.some(c=>e.indexOf(c)!==-1))return zg(p,i).then(c=>(a.parsedBody=c,a)).catch(n)}return Promise.resolve(a)}o(ND,"parse");var Ug={enable:!0};function Hg(t){return{create:(e,a)=>new Z1(e,a,t||Ug)}}o(Hg,"keepAlivePolicy");var Z1=class extends lt{static{o(this,"KeepAlivePolicy")}constructor(e,a,i){super(e,a),this.keepAliveOptions=i}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},yg=["GET","HEAD"],_D={handleRedirects:!0,maxRetries:20};function _f(t=20){return{create:(e,a)=>new ef(e,a,t)}}o(_f,"redirectPolicy");var ef=class extends lt{static{o(this,"RedirectPolicy")}constructor(e,a,i=20){super(e,a),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Fg(this,a,0))}};functi Line truncated
`).join(""))}return this._nextPolicy.sendRequest(e)}},Kg=[],Yg=!1,qD=new Map;function zD(){if(!process)return;let t=fl(ba.HTTPS_PROXY),e=fl(ba.ALL_PROXY),a=fl(ba.HTTP_PROXY);return t||e||a}o(zD,"loadEnvironmentProxyValue");function LD(t,e,a){if(e.length===0)return!1;let i=ei.parse(t).getHost();if(a?.has(i))return a.get(i);let r=!1;for(let n of e)n[0]==="."?(i.endsWith(n)||i.length===n.length-1&&i===n.slice(1))&&(r=!0):i===n&&(r=!0);return a?.set(i,r),r}o(LD,"isBypassed");function kD(){let t=fl(ba.NO_PROXY);return Yg=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(kD,"loadNoProxy");function Qg(t){if(!t&&(t=zD(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=jD(t),r=ei.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}o(Qg,"getDefaultProxySettings");function Df(t,e){return t||(t=Qg()),Yg||Kg.push(...kD()),{create:(a,i)=>new df(a,i,t,e?.customNoProxyList)}}o(Df,"proxyPolicy");function jD(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let a=t.indexOf("://"),i=a!==-1?a+3:0,r=t.substring(i,e),n=r.indexOf(":"),s=n!==-1,p=s?r.substring(0,n):r,d=s?r.substring(n+1):void 0,l=t.substring(0,i)+t.substring(e+1);return{username:p,password:d,urlWithoutAuth:l}}o(jD,"extractAuthFromUrl");var df=class extends lt{static{o(this,"ProxyPolicy")}constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!LD(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:Kg,this.customNoProxyList?void 0:qD)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function UD(t=30){return{create:(e,a)=>new lf(e,a,t)}}o(UD,"rpRegistrationPolicy");var lf=class extends lt{static{o(this,"RPRegistrationPolicy")}constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>HD(this,e,a))}};function HD(t,e,a){if(a.status===409){let i=FD(a.bodyAsText);if(i){let r=VD(e.url);return $D(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",Sl()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}o(HD,"registerIfNeeded");function Jg(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",Sl()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}o(Jg,"getRequestEssentials");function FD(t){let e,a;if(t){try{a=JSON.parse(t)}catch{}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){let i=a.error.message.match(/.*'(.*)'/i);i&&(e=i.pop())}}return e}o(FD,"checkRPNotRegisteredError");function VD(t){let e,a=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0])e=a[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}o(VD,"extractSubscriptionUrl");async function $D(t,e,a,i){let r=`${e}providers/${a}/register?api-version=2016-02-01`,n=`${e}providers/${a}?api-version=2016-02-01`,s=Jg(i);if(s.method="POST",s.url=r,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`);return Zg(t,n,i)}o($D,"registerRP");async function Zg(t,e,a){let i=Jg(a);i.url=e,i.method="GET";let r=await t._nextPolicy.sendRequest(i),n=r.parsedBody;return r.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await Za.delay(t._retryTimeout*1e3),Zg(t,e,a))}o(Zg,"getRegistrationStatus");function ey(t){return{create:(e,a)=>new cf(e,a,t)}}o(ey,"signingPolicy");var cf=class extends lt{static{o(this,"SigningPolicy")}constructor(e,a,i){super(e,a),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(a=>this._nextPolicy.sendRequest(a))}};function If(t,e,a,i){return{create:(r,n)=>new mf(r,n,t,e,a,i)}}o(If,"systemErrorRetryPolicy");var mf=class extends lt{static{o(this,"SystemErrorRetryPolicy")}constructor(e,a,i,r,n,s){super(e,a),this.retryCount=Rr(i)?i:Sf,this.retryInterval=Rr(r)?r:Ef,this.minRetryInterval=Rr(n)?n:SD,this.maxRetryInterval=Rr(s)?s:Cf}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>ty(this,e,a.response,a))}};async function ty(t,e,a,i,r){r=$g(t,r,i);function n(s,p){return!!(p&&p.code&&(p.code==="ETIMEDOUT"||p.code==="ESOCKETTIMEDOUT"||p.code==="ECONNREFUSED"||p.code==="ECONNRESET"||p.code==="ENOENT"))}if(o(n,"shouldPolicyRetry"),Vg(t.retryCount,n,r,a,i))try{return await Za.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return ty(t,e,a,s,r)}else return i?Promise.reject(r.error):a}o(ty,"retry");var GD=3,vg=ba.HttpConstants.StatusCodes;function Bf(){return{create:(t,e)=>new uf(t,e)}}o(Bf,"throttlingRetryPolicy");var bg="The operation was aborted.",uf=class t extends lt{static{o(this,"ThrottlingRetryPolicy")}constructor(e,a,i){super(e,a),this.numberOfRetries=0,this._handleResponse=i||this._defaultResponseHandler}async sendRequest(e){let a=await this. Line truncated
Polling from: ${a.config.operationLocation}
Operation status: ${c}
Polling status: ${ly.includes(c)?"Stopped":"Running"}`),c==="succeeded"){let m=s(l,a);if(m!==void 0)return{response:await e(m).catch(py({state:a,stateProxy:i,isOperationError:p})),status:c}}return{response:l,status:c}}o(dI,"pollOperationHelper");async function fy(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:p,isOperationError:d,withOperationLocation:l,getPollingInterval:c,processResult:m,getError:u,updateState:f,setDelay:h,isDone:b,setErrorAsResult:C}=t,{operationLocation:S}=a.config;if(S!==void 0){let{response:D,status:w}=await dI({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:S,getResourceLocation:s,isOperationError:d,options:r});if(my({status:w,response:D,state:a,stateProxy:i,isDone:b,processResult:m,getError:u,setErrorAsResult:C}),!ly.includes(w)){let y=c?.(D);y&&h(y);let g=p?.(D,a);if(g!==void 0){let _=S!==g;a.config.operationLocation=g,l?.(g,_)}else l?.(S,!1)}f?.(a,D)}}o(fy,"pollOperation");function hy(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}o(hy,"getOperationLocationPollingUrl");function gy(t){return t.headers.location}o(gy,"getLocationHeader");function yy(t){return t.headers["operation-location"]}o(yy,"getOperationLocationHeader");function vy(t){return t.headers["azure-asyncoperation"]}o(vy,"getAzureAsyncOperationHeader");function lI(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}o(s,"getDefault")}o(lI,"findResourceLocation");function by(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=yy(e),s=vy(e),p=hy({operationLocation:n,azureAsyncOperation:s}),d=gy(e),l=a?.toLocaleUpperCase();return p!==void 0?{mode:"OperationLocation",operationLocation:p,resourceLocation:lI({requestMethod:l,location:d,requestPath:i,resourceLocationConfig:r})}:d!==void 0?{mode:"ResourceLocation",operationLocation:d}:l==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(by,"inferLroMode");function xy(t){let{status:e,statusCode:a}=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 zf(a);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 Br.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(xy,"transformStatus");function cI(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return xy({status:a,statusCode:t.statusCode})}o(cI,"getStatus");function mI(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return xy({status:n,statusCode:t.statusCode})}o(mI,"getProvisioningState");function zf(t){return t===202?"running":t<300?"succeeded":"failed"}o(zf,"toOperationStatus");function wy({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?uI(new Date(e)):a*1e3}}o(wy,"parseRetryAfter");function Ny(t){let e=t.flatResponse.error;if(!e){Br.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Br.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(Ny,"getErrorFromResponse");function uI(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}o(uI,"calculatePollingIntervalFromDate");function _y(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return zf(e.rawResponse.statusCode);case"Body":return Lf(e,a);default:return"running"}}o(r,"helper");let n=r();return n==="running"&&i===void 0?"succeeded":n}o(_y,"getStatusFromInitialResponse");async function fI(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return uy({init:async()=>{let s=await r.sendInitialRequest(),p=by({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:s,operationLocation:p?.operationLocation,resourceLocation:p?.resourceLocation},p?.mode?{metadata:{mode:p.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:s},p)=>i(s,p):({flatResponse:s})=>s,getOperationStatus:_y,setErrorAsResult:n})}o(fI,"initHttpOperation");function Sy({rawResponse:t},e){var a;switch((a=e.config.metadata)===null||a===void 0?vLine truncated
`,px="HTTP/1.1",gM="AES256",yM="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",vM=["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-if-tags","x-ms-source-if-tags"],bM=["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"],xM="BlobUsesCustomerSpecifiedEncryption",wM="BlobDoesNotUseCustomerSpecifiedEncryption",NM=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _M(t){let e=z.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=EM(a),e.setPath(a),e.toString()}o(_M,"escapeURLPath");function SM(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}o(SM,"getProxyUriFromDevConnString");function Bn(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}o(Bn,"getValueInConnString");function Zn(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=SM(t),t=yM);let a=Bn(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=Bn(t,"AccountName"),n=Buffer.from(Bn(t,"AccountKey"),"base64"),!a){i=Bn(t,"DefaultEndpointsProtocol");let p=i.toLowerCase();if(p!=="https"&&p!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Bn(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.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:a,accountName:r,accountKey:n,proxyUri:e}}else{let i=Bn(t,"SharedAccessSignature"),r=lx(a);if(a){if(!i)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:a,accountName:r,accountSas:i}}}o(Zn,"extractConnectionStringParts");function EM(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(EM,"escape");function je(t,e){let a=z.URLBuilder.parse(t),i=a.getPath();return i=i?i.endsWith("/")?`${i}${e}`:`${i}/${e}`:e,a.setPath(i),new URL(a.toString()).toString()}o(je,"appendToURLPath");function kr(t,e Line truncated
`));let n=e.split(`
`).map(s=>s.trim());for(let s of n)!s||s.startsWith("#")||i.patterns.push(new WH.Pattern(s));return i.searchPaths.push(...a0.getSearchPaths(i.patterns)),i})}static stat(e,r,i){return K9(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Lm.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Z9.debug(`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 n=yield Lm.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let s=yield Lm.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(A=>A===s)){Z9.debug(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}i.push(s)}return n})}};Hr.DefaultGlobber=$9});var ZH=f(Cp=>{"use strict";var k4e=Cp&&Cp.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(A){A(s)})}return a(n,"adopt"),new(r||(r=Promise))(function(s,A){function o(d){try{l(i.next(d))}catch(p){A(p)}}a(o,"fulfilled");function c(d){try{l(i.throw(d))}catch(p){A(p)}}a(c,"rejected");function l(d){d.done?s(d.value):n(d.value).then(o,c)}a(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Cp,"__esModule",{value:!0});Cp.create=void 0;var F4e=KH();function T4e(t,e){return k4e(this,void 0,void 0,function*(){return yield F4e.DefaultGlobber.create(t,e)})}a(T4e,"create");Cp.create=T4e});var nG=f((Qe,iG)=>{Qe=iG.exports=Le;var st;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?st=a(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):st=a(function(){},"debug");Qe.SEMVER_SPEC_VERSION="2.0.0";var Mm=256,o0=Number.MAX_SAFE_INTEGER||9007199254740991,e3=16,L4e=Mm-6,Bp=Qe.re=[],nt=Qe.safeRe=[],U=Qe.src=[],T=Qe.tokens={},tG=0;function _e(t){T[t]=tG++}a(_e,"tok");var r3="[a-zA-Z0-9-]",t3=[["\\s",1],["\\d",Mm],[r3,L4e]];function Om(t){for(var e=0;e<t3.length;e++){var r=t3[e][0],i=t3[e][1];t=t.split(r+"*").join(r+"{0,"+i+"}").split(r+"+").join(r+"{1,"+i+"}")}return t}a(Om,"makeSafeRe");_e("NUMERICIDENTIFIER");U[T.NUMERICIDENTIFIER]="0|[1-9]\\d*";_e("NUMERICIDENTIFIERLOOSE");U[T.NUMERICIDENTIFIERLOOSE]="\\d+";_e("NONNUMERICIDENTIFIER");U[T.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+r3+"*";_e("MAINVERSION");U[T.MAINVERSION]="("+U[T.NUMERICIDENTIFIER]+")\\.("+U[T.NUMERICIDENTIFIER]+")\\.("+U[T.NUMERICIDENTIFIER]+")";_e("MAINVERSIONLOOSE");U[T.MAINVERSIONLOOSE]="("+U[T.NUMERICIDENTIFIERLOOSE]+")\\.("+U[T.NUMERICIDENTIFIERLOOSE]+")\\.("+U[T.NUMERICIDENTIFIERLOOSE]+")";_e("PRERELEASEIDENTIFIER");U[T.PRERELEASEIDENTIFIER]="(?:"+U[T.NUMERICIDENTIFIER]+"|"+U[T.NONNUMERICIDENTIFIER]+")";_e("PRERELEASEIDENTIFIERLOOSE");U[T.PRERELEASEIDENTIFIERLOOSE]="(?:"+U[T.NUMERICIDENTIFIERLOOSE]+"|"+U[T.NONNUMERICIDENTIFIER]+")";_e("PRERELEASE");U[T.PRERELEASE]="(?:-("+U[T.PRERELEASEIDENTIFIER]+"(?:\\."+U[T.PRERELEASEIDENTIFIER]+")*))";_e("PRERELEASELOOSE");U[T.PRERELEASELOOSE]="(?:-?("+U[T.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+U[T.PRERELEASEIDENTIFIERLOOSE]+")*))";_e("BUILDIDENTIFIER");U[T.BUILDIDENTIFIER]=r3+"+";_e("BUILD");U[T.BUILD]="(?:\\+("+U[T.BUILDIDENTIFIER]+"(?:\\."+U[T.BUILDIDENTIFIER]+")*))";_e("FULL");_e("FULLPLAIN");U[T.FULLPLAIN]="v?"+U[T.MAINVERSION]+U[T.PRERELEASE]+"?"+U[T.BUILD]+"?";U[T.FULL]="^"+U[T.FULLPLAIN]+"$";_e("LOOSEPLAIN");U[T.LOOSEPLAIN]="[v=\\s]*"+U[T.MAINVERSIONLOOSE]+U[T.PRERELEASELOOSE]+"?"+U[T.BUILD]+"?";_e("LOOSE");U[T.LOOSE]="^"+U[T.LOOSEPLAIN]+"$";_e("GTLT");U[T.GTLT]="((?:<|>)?=?)";_e("XRANGEIDENTIFIERLOOSE");U[T.XRANGEIDENTIFIERLOOSE]=U[T.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";_e("XRANGEIDENTIFIER");U[T.XRANGEIDENTIFIER]=U[T.NUMERICIDENTIFIER]+"|x|X|\\*";_e("XRANGEPLAIN");U[T.XRANGEPLAIN]="[v=\\s]*("+U[T.XRANGEIDENTIFIER]+")(?:\\.("+U[T.XRANGEIDENTIFIER]+")(?:\\.("+U[T.XRANGEIDENTIFIER]+")(?:"+U[T.PRERELEASE]+")?"+U[T.BUILD]+"?)?)?";_e("XRANGEPLAINLOOSE");U[T.XRANGEPLAINLOOSE]="[v=\\s]*("+U[T.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+U[T.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+U[T.XRANGEIDENTIFIERLOOSE]+")(?:"+U[T.PRERELEASELOOSE]+")?"+U[T.BUILD]+"?)?)?";_e("XRANGE");U[T.XRANGE]="^"+U[T.GTLT]+"\\s*"+U[T.XRANGEPLAIN]+"$";_e("XRANGELOOSE");U[T.XRANGELOOSE]="^"+U[T.GTLT]+"\\s*"+U[T.XRANGEPLAINLOOSE]+"$";_e("COERCE");U[T.COERCE]="(^|[^\\d])(\\d{1,"+e3+"})(?:\\.(\\d{1,"+e3+"}))?(?:\\.(\\d{1,"+e3+"}))?(?:$|[^\\d])";_e("COERCERTL");Bp[T.COERCERTL]=new RegExp(U[T.COERCE],"g");nt[T.COERCERTL]=new RegExp(Om(U[T.COERCE]),"g");_e("LONETILDE");U[T.LONETILDE]="(?:~>?)";_e("TILDETRIM");U[T.TILDETRIM]="(\\s*)"+U[T.LONETILDE]+"\\s+";Bp[T.TILDETRIM]=new RegExp(U[T.TILDETRIM],"g");nt[T.TILDETRIM]=new RegExp(Om(U[T.TILDETRIM]),"g");var U4e="$1~";_e("TILDE");U[T.TILDE]="^"+U[T.LONETILDE]+U[T.XRANGEPLAIN]+"$";_e("TILDELOOSE");U[T.TILDELOOSE]="^"+U[T.LONETILDE]+U[T.XRANGEPLAINLOOSE]+"$";_e("LONECARET");U[T.LONECARET]="(?:\\^)";_e("CARETTRIM");U[T.CARETTRIM]="(\\s*)"+U[T.LONECARET]+"\\s+";Bp[T.CARET Line truncated
`),{implicitDescendants:!1});try{for(var l=!0,d=Bbe(c.globGenerator()),p;p=yield d.next(),e=p.done,!e;l=!0){n=p.value,l=!1;let u=n,g=p0.relative(o,u).replace(new RegExp(`\\${p0.sep}`,"g"),"/");Pm.debug(`Matched: ${g}`),g===""?A.push("."):A.push(`${g}`)}}catch(u){r={error:u}}finally{try{!l&&!e&&(i=d.return)&&(yield i.call(d))}finally{if(r)throw r.error}}return A})}a(xbe,"resolvePaths");Xe.resolvePaths=xbe;function Rbe(t){return yp(this,void 0,void 0,function*(){return bbe.promisify(a3.unlink)(t)})}a(Rbe,"unlinkFile");Xe.unlinkFile=Rbe;function lG(t,e=[]){return yp(this,void 0,void 0,function*(){let r="";e.push("--version"),Pm.debug(`Checking ${t} ${e.join(" ")}`);try{yield Ibe.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>r+=i.toString(),stderr:i=>r+=i.toString()}})}catch(i){Pm.debug(i.message)}return r=r.trim(),Pm.debug(r),r})}a(lG,"getVersion");function Dbe(){return yp(this,void 0,void 0,function*(){let t=yield lG("zstd",["--quiet"]),e=ybe.clean(t);return Pm.debug(`zstd version: ${e}`),t===""?Xc.CompressionMethod.Gzip:Xc.CompressionMethod.ZstdWithoutLong})}a(Dbe,"getCompressionMethod");Xe.getCompressionMethod=Dbe;function Sbe(t){return t===Xc.CompressionMethod.Gzip?Xc.CacheFilename.Gzip:Xc.CacheFilename.Zstd}a(Sbe,"getCacheFileName");Xe.getCacheFileName=Sbe;function kbe(){return yp(this,void 0,void 0,function*(){return a3.existsSync(Xc.GnuTarPathOnWindows)?Xc.GnuTarPathOnWindows:(yield lG("tar")).toLowerCase().includes("gnu tar")?oG.which("tar"):""})}a(kbe,"getGnuTarPathOnWindows");Xe.getGnuTarPathOnWindows=kbe;function Fbe(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}a(Fbe,"assertDefined");Xe.assertDefined=Fbe;function Tbe(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(wbe),cG.createHash("sha256").update(i.join("|")).digest("hex")}a(Tbe,"getCacheVersion");Xe.getCacheVersion=Tbe;function Lbe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}a(Lbe,"getRuntimeToken");Xe.getRuntimeToken=Lbe});function qm(){return u0>g0.length-16&&(dG.default.randomFillSync(g0),u0=0),g0.slice(u0,u0+=16)}var dG,g0,u0,o3=Ze(()=>{dG=qa(require("crypto")),g0=new Uint8Array(256),u0=g0.length;a(qm,"rng")});var pG,uG=Ze(()=>{pG=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function Ube(t){return typeof t=="string"&&pG.test(t)}var bo,Hm=Ze(()=>{uG();a(Ube,"validate");bo=Ube});function Mbe(t,e=0){let r=(di[t[e+0]]+di[t[e+1]]+di[t[e+2]]+di[t[e+3]]+"-"+di[t[e+4]]+di[t[e+5]]+"-"+di[t[e+6]]+di[t[e+7]]+"-"+di[t[e+8]]+di[t[e+9]]+"-"+di[t[e+10]]+di[t[e+11]]+di[t[e+12]]+di[t[e+13]]+di[t[e+14]]+di[t[e+15]]).toLowerCase();if(!bo(r))throw TypeError("Stringified UUID is invalid");return r}var di,wo,Gm=Ze(()=>{Hm();di=[];for(let t=0;t<256;++t)di.push((t+256).toString(16).substr(1));a(Mbe,"stringify");wo=Mbe});function _be(t,e,r){let i=e&&r||0,n=e||new Array(16);t=t||{};let s=t.node||gG,A=t.clockseq!==void 0?t.clockseq:c3;if(s==null||A==null){let u=t.random||(t.rng||qm)();s==null&&(s=gG=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),A==null&&(A=c3=(u[6]<<8|u[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),c=t.nsecs!==void 0?t.nsecs:d3+1,l=o-l3+(c-d3)/1e4;if(l<0&&t.clockseq===void 0&&(A=A+1&16383),(l<0||o>l3)&&t.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l3=o,d3=c,c3=A,o+=122192928e5;let d=((o&268435455)*1e4+c)%4294967296;n[i++]=d>>>24&255,n[i++]=d>>>16&255,n[i++]=d>>>8&255,n[i++]=d&255;let p=o/4294967296*1e4&268435455;n[i++]=p>>>8&255,n[i++]=p&255,n[i++]=p>>>24&15|16,n[i++]=p>>>16&255,n[i++]=A>>>8|128,n[i++]=A&255;for(let u=0;u<6;++u)n[i+u]=s[u];return e||wo(n)}var gG,c3,l3,d3,mG,hG=Ze(()=>{o3();Gm();l3=0,d3=0;a(_be,"v1");mG=_be});function Obe(t){if(!bo(t))throw TypeError("Invalid UUID");let e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}var m0,p3=Ze(()=>{Hm();a(Obe,"parse");m0=Obe});function Pbe(t){t=unescape(encodeURIComponent(t));let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}function Ym(t,e,r){function i(n,s,A,o){if(typeof n=="string"&&(n=Pbe(n)),typeof s=="string"&&(s=m0(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+n.length);if(c.set(s),c.set(n,s.length),c=r(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,A){o=o||0;for(let l=0;l<16;++l)A[o+l]=c[l];return A}return wo(c)}a(i,"generateUUID");try{i.name=t}catch{}return i.DNS=qbe,i.URL=Hbe,i}var qbe,Hbe,u3=Ze(()=>{Gm();p3();a(Pbe,"stringToBytes Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(h3)});var DA=f((iY,No)=>{(function(){var t,e,r,i,n,s,A,o=[].slice,c={}.hasOwnProperty;t=a(function(){var l,d,p,u,g,m;if(m=arguments[0],g=2<=arguments.length?o.call(arguments,1):[],n(Object.assign))Object.assign.apply(null,arguments);else for(l=0,p=g.length;l<p;l++)if(u=g[l],u!=null)for(d in u)c.call(u,d)&&(m[d]=u[d]);return m},"assign"),n=a(function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},"isFunction"),s=a(function(l){var d;return!!l&&((d=typeof l)=="function"||d==="object")},"isObject"),r=a(function(l){return n(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},"isArray"),i=a(function(l){var d;if(r(l))return!l.length;for(d in l)if(c.call(l,d))return!1;return!0},"isEmpty"),A=a(function(l){var d,p;return s(l)&&(p=Object.getPrototypeOf(l))&&(d=p.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},"isPlainObject"),e=a(function(l){return n(l.valueOf)?l.valueOf():l},"getValue"),No.exports.assign=t,No.exports.isFunction=n,No.exports.isObject=s,No.exports.isArray=r,No.exports.isEmpty=i,No.exports.isPlainObject=A,No.exports.getValue=e}).call(iY)});var f3=f((nY,sY)=>{(function(){var t;sY.exports=t=function(){function e(){}return a(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(r,i){return!0},e.prototype.createDocumentType=function(r,i,n){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(r,i,n){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(r){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(r,i){throw new Error("This DOM method is not implemented.")},e}()}).call(nY)});var oY=f((AY,aY)=>{(function(){var t;aY.exports=t=function(){function e(){}return a(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(r){throw new Error(r)},e}()}).call(AY)});var dY=f((cY,lY)=>{(function(){var t;lY.exports=t=function(){function e(r){this.arr=r||[]}return a(e,"XMLDOMStringList"),Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(r){return this.arr[r]||null},e.prototype.contains=function(r){return this.arr.indexOf(r)!==-1},e}()}).call(cY)});var gY=f((pY,uY)=>{(function(){var t,e,r;e=oY(),r=dY(),uY.exports=t=function(){function i(){var n;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=n=Object.create(this.defaultParams)}return a(i,"XMLDOMConfiguration"),Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new r(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(n){return this.params.hasOwnProperty(n)?this.params[n]:null},i.prototype.canSetParameter=function(n,s){return!0},i.prototype.setParameter=function(n,s){return s!=null?this.params[n]=s:delete this.params[n]},i}()}).call(pY)});var Cr=f((mY,hY)=>{(function(){hY.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(mY)});var E3=f((fY,EY)=>{(function(){var t,e,r;t=Cr(),r=Hn(),EY.exports=e=function(){function i(n,s,A){if(this.parent=n,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),s==null)throw new Error("Missing attribute name. "+this.debugInfo(s));this.name=this.stringify.name(s),this.value=this.stringify.attValue(A),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return a(i,"XMLAttribute"),Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(n){return this.options.writer.attribute(this,this.options.writer.filterOptions(n))},i.prototype.debugInfo=function(n){return n=n||this.name,n==null?"parent: <"+this.parent.name+">":"attribute: {"+n+"}, parent: <"+this.parent.name+">"},i.prototype.isEqualNode=function(n){return!(n.namespaceURI!==thi Line truncated
`,E.offset=(R=Q.offset)!=null?R:0,E.dontPrettyTextNodes=(b=(k=Q.dontPrettyTextNodes)!=null?k:Q.dontprettytextnodes)!=null?b:0,E.spaceBeforeSlash=(x=(D=Q.spaceBeforeSlash)!=null?D:Q.spacebeforeslash)!=null?x:"",E.spaceBeforeSlash===!0&&(E.spaceBeforeSlash=" "),E.suppressPrettyCount=0,E.user={},E.state=e.None,E},v.prototype.indent=function(Q,E,C){var w;return!E.pretty||E.suppressPrettyCount?"":E.pretty&&(w=(C||0)+E.offset+1,w>0)?new Array(w).join(E.indent):""},v.prototype.endline=function(Q,E,C){return!E.pretty||E.suppressPrettyCount?"":E.newline},v.prototype.attribute=function(Q,E,C){var w;return this.openAttribute(Q,E,C),w=" "+Q.name+'="'+Q.value+'"',this.closeAttribute(Q,E,C),w},v.prototype.cdata=function(Q,E,C){var w;return this.openNode(Q,E,C),E.state=e.OpenTag,w=this.indent(Q,E,C)+"<![CDATA[",E.state=e.InsideTag,w+=Q.value,E.state=e.CloseTag,w+="]]>"+this.endline(Q,E,C),E.state=e.None,this.closeNode(Q,E,C),w},v.prototype.comment=function(Q,E,C){var w;return this.openNode(Q,E,C),E.state=e.OpenTag,w=this.indent(Q,E,C)+"<!-- ",E.state=e.InsideTag,w+=Q.value,E.state=e.CloseTag,w+=" -->"+this.endline(Q,E,C),E.state=e.None,this.closeNode(Q,E,C),w},v.prototype.declaration=function(Q,E,C){var w;return this.openNode(Q,E,C),E.state=e.OpenTag,w=this.indent(Q,E,C)+"<?xml",E.state=e.InsideTag,w+=' version="'+Q.version+'"',Q.encoding!=null&&(w+=' encoding="'+Q.encoding+'"'),Q.standalone!=null&&(w+=' standalone="'+Q.standalone+'"'),E.state=e.CloseTag,w+=E.spaceBeforeSlash+"?>",w+=this.endline(Q,E,C),E.state=e.None,this.closeNode(Q,E,C),w},v.prototype.docType=function(Q,E,C){var w,R,b,k,x;if(C||(C=0),this.openNode(Q,E,C),E.state=e.OpenTag,k=this.indent(Q,E,C),k+="<!DOCTYPE "+Q.root().name,Q.pubID&&Q.sysID?k+=' PUBLIC "'+Q.pubID+'" "'+Q.sysID+'"':Q.sysID&&(k+=' SYSTEM "'+Q.sysID+'"'),Q.children.length>0){for(k+=" [",k+=this.endline(Q,E,C),E.state=e.InsideTag,x=Q.children,R=0,b=x.length;R<b;R++)w=x[R],k+=this.writeChildNode(w,E,C+1);E.state=e.CloseTag,k+="]"}return E.state=e.CloseTag,k+=E.spaceBeforeSlash+">",k+=this.endline(Q,E,C),E.state=e.None,this.closeNode(Q,E,C),k},v.prototype.element=function(Q,E,C){var w,R,b,k,x,D,S,L,j,Ce,O,Ke,ye,Vt;C||(C=0),Ce=!1,O="",this.openNode(Q,E,C),E.state=e.OpenTag,O+=this.indent(Q,E,C)+"<"+Q.name,Ke=Q.attribs;for(j in Ke)I.call(Ke,j)&&(w=Ke[j],O+=this.attribute(w,E,C));if(b=Q.children.length,k=b===0?null:Q.children[0],b===0||Q.children.every(function(It){return(It.type===t.Text||It.type===t.Raw)&&It.value===""}))E.allowEmpty?(O+=">",E.state=e.CloseTag,O+="</"+Q.name+">"+this.endline(Q,E,C)):(E.state=e.CloseTag,O+=E.spaceBeforeSlash+"/>"+this.endline(Q,E,C));else if(E.pretty&&b===1&&(k.type===t.Text||k.type===t.Raw)&&k.value!=null)O+=">",E.state=e.InsideTag,E.suppressPrettyCount++,Ce=!0,O+=this.writeChildNode(k,E,C+1),E.suppressPrettyCount--,Ce=!1,E.state=e.CloseTag,O+="</"+Q.name+">"+this.endline(Q,E,C);else{if(E.dontPrettyTextNodes){for(ye=Q.children,x=0,S=ye.length;x<S;x++)if(R=ye[x],(R.type===t.Text||R.type===t.Raw)&&R.value!=null){E.suppressPrettyCount++,Ce=!0;break}}for(O+=">"+this.endline(Q,E,C),E.state=e.InsideTag,Vt=Q.children,D=0,L=Vt.length;D<L;D++)R=Vt[D],O+=this.writeChildNode(R,E,C+1);E.state=e.CloseTag,O+=this.indent(Q,E,C)+"</"+Q.name+">",Ce&&E.suppressPrettyCount--,O+=this.endline(Q,E,C),E.state=e.None}return this.closeNode(Q,E,C),O},v.prototype.writeChildNode=function(Q,E,C){switch(Q.type){case t.CData:return this.cdata(Q,E,C);case t.Comment:return this.comment(Q,E,C);case t.Element:return this.element(Q,E,C);case t.Raw:return this.raw(Q,E,C);case t.Text:return this.text(Q,E,C);case t.ProcessingInstruction:return this.processingInstruction(Q,E,C);case t.Dummy:return"";case t.Declaration:return this.declaration(Q,E,C);case t.DocType:return this.docType(Q,E,C);case t.AttributeDeclaration:return this.dtdAttList(Q,E,C);case t.ElementDeclaration:return this.dtdElement(Q,E,C);case t.EntityDeclaration:return this.dtdEntity(Q,E,C);case t.NotationDeclaration:return this.dtdNotation(Q,E,C);default:throw new Error("Unknown XML node type: "+Q.constructor.name)}},v.prototype.processingInstruction=function(Q,E,C){var w;return this.openNode(Q,E,C),E.state=e.OpenTag,w=this.indent(Q,E,C)+"<?",E.state=e.InsideTag,w+=Q.target,Q.value&&(w+=" "+Q.value),E.state=e.CloseTag,w+=E.spaceBeforeSlash+"?>",w+=this.endline(Q,E,C),E.state=e.None,this.closeNode(Q,E,C),w},v.prototype.raw=function(Q,E,C){var w;return this.openNode(Q,E,C),E.state=e.OpenTag,w=this.indent(Q,E,C),E.state=e.InsideTag,w+=Q.value,E.state=e.CloseTag,w+=this.endline(Q,E,C),E.state=e.None,this.closeNode(Q,E,C),w},v.prototype.text=function(Q,E,C){var w;return this.openNode(Q,E,C),E.state=e.OpenTag,w=this.indent(Q,E,C),E.state=e.InsideTag,w+=Q.value,E.state=e.CloseTag,w+=this.endline(Q,E,C),E.state=e.None,this.closeNode(Q,E,C),w},v.prototype.dtdAttList=function(Q,E,C){var w;return this.openNode(Q,E,C),E.state=e.OpenTag,w=this.indent(Q,E,C)+"<!ATTLIST",E.state=e.InsideTag,w+=" "+Q.elementName+" "+Q.attributeName+" "+Q.attributeTyp Line truncated
`||N==="\r"||N===" "}a(Q,"isWhitespace");function E(N){return N==='"'||N==="'"}a(E,"isQuote");function C(N){return N===">"||Q(N)}a(C,"isAttribEnd");function w(N,y){return N.test(y)}a(w,"isMatch");function R(N,y){return!w(N,y)}a(R,"notMatch");var b=0;t.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(N){var y=t.ENTITIES[N],M=typeof y=="number"?String.fromCharCode(y):y;t.ENTITIES[N]=M});for(var k in t.STATE)t.STATE[t.STATE[k]]=k;b=t.STATE;function x(N,y,M){N[y]&&N[y](M)}a(x,"emit");function D(N,y,M){N.textNode&&S(N),x(N,y,M)}a(D,"emitNode");function S(N){N.textNode=L(N.opt,N.textNode),N.textNode&&x(N,"ontext",N.textNode),N.textNode=""}a(S,"closeText");function L(N,y){return N.trim&&(y=y.trim()),N.normalize&&(y=y.replace(/\s+/g," ")),y}a(L,"textopts");function j(N,y){return S(N),N.trackPosition&&(y+=`
Line: `+N.line+`
Column: `+N.column+`
Char: `+N.c),y=new Error(y),N.error=y,x(N,"onerror",y),N}a(j,"error");function Ce(N){return N.sawRoot&&!N.closedRoot&&O(N,"Unclosed root tag"),N.state!==b.BEGIN&&N.state!==b.BEGIN_WHITESPACE&&N.state!==b.TEXT&&j(N,"Unexpected end"),S(N),N.c="",N.closed=!0,x(N,"onend"),r.call(N,N.strict,N.opt),N}a(Ce,"end");function O(N,y){if(typeof N!="object"||!(N instanceof r))throw new Error("bad call to strictFail");N.strict&&j(N,y)}a(O,"strictFail");function Ke(N){N.strict||(N.tagName=N.tagName[N.looseCase]());var y=N.tags[N.tags.length-1]||N,M=N.tag={name:N.tagName,attributes:{}};N.opt.xmlns&&(M.ns=y.ns),N.attribList.length=0,D(N,"onopentagstart",M)}a(Ke,"newTag");function ye(N,y){var M=N.indexOf(":"),F=M<0?["",N]:N.split(":"),ct=F[0],Rr=F[1];return y&&N==="xmlns"&&(ct="xmlns",Rr=""),{prefix:ct,local:Rr}}a(ye,"qname");function Vt(N){if(N.strict||(N.attribName=N.attribName[N.looseCase]()),N.attribList.indexOf(N.attribName)!==-1||N.tag.attributes.hasOwnProperty(N.attribName)){N.attribName=N.attribValue="";return}if(N.opt.xmlns){var y=ye(N.attribName,!0),M=y.prefix,F=y.local;if(M==="xmlns")if(F==="xml"&&N.attribValue!==u)O(N,"xml: prefix must be bound to "+u+`
Actual: `+N.attribValue);else if(F==="xmlns"&&N.attribValue!==g)O(N,"xmlns: prefix must be bound to "+g+`
Actual: `+N.attribValue);else{var ct=N.tag,Rr=N.tags[N.tags.length-1]||N;ct.ns===Rr.ns&&(ct.ns=Object.create(Rr.ns)),ct.ns[F]=N.attribValue}N.attribList.push([N.attribName,N.attribValue])}else N.tag.attributes[N.attribName]=N.attribValue,D(N,"onattribute",{name:N.attribName,value:N.attribValue});N.attribName=N.attribValue=""}a(Vt,"attrib");function It(N,y){if(N.opt.xmlns){var M=N.tag,F=ye(N.tagName);M.prefix=F.prefix,M.local=F.local,M.uri=M.ns[F.prefix]||"",M.prefix&&!M.uri&&(O(N,"Unbound namespace prefix: "+JSON.stringify(N.tagName)),M.uri=F.prefix);var ct=N.tags[N.tags.length-1]||N;M.ns&&ct.ns!==M.ns&&Object.keys(M.ns).forEach(function(Ux){D(N,"onopennamespace",{prefix:Ux,uri:M.ns[Ux]})});for(var Rr=0,Dr=N.attribList.length;Rr<Dr;Rr++){var Yi=N.attribList[Rr],Xn=Yi[0],vl=Yi[1],ei=ye(Xn,!0),VA=ei.prefix,Lte=ei.local,Lx=VA===""?"":M.ns[VA]||"",$Q={name:Xn,value:vl,prefix:VA,local:Lte,uri:Lx};VA&&VA!=="xmlns"&&!Lx&&(O(N,"Unbound namespace prefix: "+JSON.stringify(VA)),$Q.uri=VA),N.tag.attributes[Xn]=$Q,D(N,"onattribute",$Q)}N.attribList.length=0}N.tag.isSelfClosing=!!y,N.sawRoot=!0,N.tags.push(N.tag),D(N,"onopentag",N.tag),y||(!N.noscript&&N.tagName.toLowerCase()==="script"?N.state=b.SCRIPT:N.state=b.TEXT,N.tag=null,N.tagName=""),N.attribName=N.attribValue="",N.attribList.length=0}a(It,"openTag");function Hi(N){if(!N.tagName){O(N,"Weird empty close tag."),N.textNode+="</>",N.state=b.TEXT;return}if(N.script){if(N.tagName!=="script"){N.script+="</"+N.tagName+">",N.tagName="",N.state=b.SCRIPT;return}D(N,"onscript",N.script),N.script=""}var y=N.tags.length,M=N.tagName;N.strict||(M=M[N.looseCase]());for(var F=M;y--;){var ct=N.tags[y];if(ct.name!==F)O(N,"Unexpected close tag");else break}if(y<0){O(N,"Unmatched closing tag: "+N.tagName),N.textNode+="</"+N.tagName+">",N.state=b.TEXT;return}N.tagName=M;for(var Rr=N.tags.length;Rr-- >y;){var Dr=N.tag=N.tags.pop();N.tagName=N.tag.name,D(N,"onclosetag",N.tagName);var Yi={};for(var Xn in Dr.ns)Yi[Xn]=Dr.ns[Xn];var vl=N.tags[N.tags.length-1]||N;N.opt.xmlns&&Dr.ns!==vl.ns&&Object.keys(Dr.ns).forEach(function(ei){var VA=Dr.ns[ei];D(N,"onclosenamespace",{prefix:ei,uri:VA})})}y===0&&(N.closedRoot=!0),N.tagName=N.attribValue=N.attribName="",N.attribList.length=0,N.state=b.TEXT}a(Hi,"closeTag");function Gi(N){var y=N.entity,M=y.toLowerCase(),F,ct="";return N.ENTITIES[y]?N.ENTITIES[y]:N.ENTITIES[M]?N.ENTITIES[M]:(y=M,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),F=parseInt(y,16),ct=F.toString(16)):(y=y.slice(1),F=parseInt(y,10),ct=F.toString(10))),y=y.replace(/^0+/,""),isNaN(F)||ct.toLowerCase()!==y?(O(N,"Invalid character entity"),"&"+N.entity+";"):String.fromCodePoint(F))}a(Gi,"parseEntity");function Se(N,y){y==="<"?(N.state=b.OPEN_WAKA,N.startTagPosition=N.position):Q(y)||(O(N,"Non-whitespace before first tag."),N.textNode=y,N.state=b.TEXT)}a(Se,"beginWhiteSpace");function Mt(N,y){var M="";return y<N.length&&(M=N.charAt(y)),M}a(Mt,"charAt");function ur(N){var y=this;if(this.error)throw this.error;if(y.closed)return j(y,"Cannot write after close. Assign an onready handler.");if(N===null)return Ce(y);typeof N=="object"&&(N=N.toString());for(var M=0,F="";F=Mt(N,M++),y.c=F,!!F;)switch(y.trackPosition&&(y.position++,F===`
`?(y.line++,y.column=0):y.column++),y.state){case b.BEGIN:if(y.state=b.BEGIN_WHITESPACE,F==="\uFEFF")continue;Se(y,F);continue;case b.BEGIN_WHITESPACE:Se(y,F);continue;case b.TEXT:if(y.sawRoot&&!y.closedRoot){for(var ct=M-1;F&&F!=="<"&&F!=="&";)F=Mt(N,M++),F&&y.trackPosition&&(y.position++,F===`
`?(y.line++,y.column=0):y.column++);y.textNode+=N.substring(ct,M-1)}F==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=b.OPEN_WAKA,y.startTagPosition=y.position):(!Q(F)&&(!y.sawRoot||y.closedRoot)&&O(y,"Text data outside of root node."),F==="&"?y.state=b.TEXT_ENTITY:y.textNode+=F);continue;case b.SCRIPT:F==="<"?y.state=b.SCRIPT_ENDING:y.script+=F;continue;case b.SCRIPT_ENDING:F==="/"?y.state=b.CLOSE_TAG:(y.script+="<"+F,y.state=b.SCRIPT);continue;case b.OPEN_WAKA:if(F==="!")y.state=b.SGML_DECL,y.sgmlDecl="";else if(!Q(F))if(w(h,F))y.state=b.OPEN_TAG,y.tagName=F;else if(F==="/")y.state=b.CLOSE_TAG,y.tagName="";else if(F==="?")y.state=b.PROC_INST,y.procInstName=y.procInstBody="";else{if(O(y,"Unencoded <"),y.startTagPosition+1<y.position){var Rr=y.position-y.startTagPosition;F=new Array(Rr).join(" ")+F}y.textNode+="<"+F,y.state=b.TEXT}continue;case b.SGML_DECL:(y.sgmlDecl+F).toUpperCase()===d?(D(y,"onopencdata"),y.state=b.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+F==="--"?(y.state=b.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+F).toUpperCase()===p?(y.state=b.DOCTYPE,(y.doctype||y.sawRoot)&&O(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):F===">"?(D(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=b.TEXT):(E(F)&&(y.state=b.SGML_DECL_QUOTED),y.sgmlDecl+=F);continue;case b.SGML_DECL_QUOTED:F===y.q&&(y.state=b.SGML_DECL,y.q=""),y.sgmlDecl+=F;continue;case b.DOCTYPE:F===">"?(y.state=b.TEXT,D(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=F,F==="["?y.state=b.DOCTYPE_DTD:E(F)&&(y.state=b.DOCTYPE_QUOTED,y.q=F));continue;case b.DOCTYPE_QUOTED:y.doctype+=F,F===y.q&&(y.q="",y.state=b.DOCTYPE);continue;case b.DOCTYPE_DTD:y.doctype+=F,F==="]"?y.state=b.DOCTYPE:E(F)&&(y.state=b.DOCTYPE_DTD_QUOTED,y.q=F);continue;case b.DOCTYPE_DTD_QUOTED:y.doctype+=F,F===y.q&&(y.state=b.DOCTYPE_DTD,y.q="");continue;case b.COMMENT:F==="-"?y.state=b.COMMENT_ENDING:y.comment+=F;continue;case b.COMMENT_ENDING:F==="-"?(y.state=b.COMMENT_ENDED,y.comment=L(y.opt,y.comment),y.comment&&D(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+F,y.state=b.COMMENT);continue;case b.COMMENT_ENDED:F!==">"?(O(y,"Malformed comment"),y.comment+="--"+F,y.state=b.COMMENT):y.state=b.TEXT;continue;case b.CDATA:F==="]"?y.state=b.CDATA_ENDING:y.cdata+=F;continue;case b.CDATA_ENDING:F==="]"?y.state=b.CDATA_ENDING_2:(y.cdata+="]"+F,y.state=b.CDATA);continue;case b.CDATA_ENDING_2:F===">"?(y.cdata&&D(y,"oncdata",y.cdata),D(y,"onclosecdata"),y.cdata="",y.state=b.TEXT):F==="]"?y.cdata+="]":(y.cdata+="]]"+F,y.state=b.CDATA);continue;case b.PROC_INST:F==="?"?y.state=b.PROC_INST_ENDING:Q(F)?y.state=b.PROC_INST_BODY:y.procInstName+=F;continue;case b.PROC_INST_BODY:if(!y.procInstBody&&Q(F))continue;F==="?"?y.state=b.PROC_INST_ENDING:y.procInstBody+=F;continue;case b.PROC_INST_ENDING:F===">"?(D(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=b.TEXT):(y.procInstBody+="?"+F,y.state=b.PROC_INST_BODY);continue;case b.OPEN_TAG:w(B,F)?y.tagName+=F:(Ke(y),F===">"?It(y):F==="/"?y.state=b.OPEN_TAG_SLASH:(Q(F)||O(y,"Invalid character in tag name"),y.state=b.ATTRIB));continue;case b.OPEN_TAG_SLASH:F===">"?(It(y,!0),Hi(y)):(O(y,"Forward-slash in opening tag not followed by >"),y.state=b.ATTRIB);continue;case b.ATTRIB:if(Q(F))continue;F===">"?It(y):F==="/"?y.state=b.OPEN_TAG_SLASH:w(h,F)?(y.attribName=F,y.attribValue="",y.state=b.ATTRIB_NAME):O(y,"Invalid attribute name");continue;case b.ATTRIB_NAME:F==="="?y.state=b.ATTRIB_VALUE:F===">"?(O(y,"Attribute without value"),y.attribValue=y.attribName,Vt(y),It(y)):Q(F)?y.state=b.ATTRIB_NAME_SAW_WHITE:w(B,F)?y.attribName+=F:O(y,"Invalid attribute name");continue;case b.ATTRIB_NAME_SAW_WHITE:if(F==="=")y.state=b.ATTRIB_VALUE;else{if(Q(F))continue;O(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",D(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",F===">"?It(y):w(h,F)?(y.attribName=F,y.state=b.ATTRIB_NAME):(O(y,"Invalid attribute name"),y.state=b.ATTRIB)}continue;case b.ATTRIB_VALUE:if(Q(F))continue;E(F)?(y.q=F,y.state=b.ATTRIB_VALUE_QUOTED):(O(y,"Unquoted attribute value"),y.state=b.ATTRIB_VALUE_UNQUOTED,y.attribValue=F);continue;case b.ATTRIB_VALUE_QUOTED:if(F!==y.q){F==="&"?y.state=b.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=F;continue}Vt(y),y.q="",y.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:Q(F)?y.state=b.ATTRIB:F===">"?It(y):F==="/"?y.state=b.OPEN_TAG_SLASH:w(h,F)?(O(y,"No whitespace between attributes"),y.attribName=F,y.attribValue="",y.state=b.ATTRIB_NAME):O(y,"Invalid attribute name");continue;case b.ATTRIB_VALUE_UNQUOTED:if(!C(F)){F==="&"?y.state=b.ATTRIB_VALUE_ENTITY_U:y.attribValue+=F;continue}Vt(y),F===">"?It(y):y.state=b.ATTRIB;continue;case b.CLOSE_TAG:if(y.tagName)F===">"?Hi(y):w(B,F)?y.tagName+=F:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=b.SCRIPT):(Q(F)||O(y,"Invalid tagname in closing tag"),y.state=b.CLOSE_TAG_SAW_WHITE);else{if(Q(F))continue;R Line truncated
`;je.DEFAULT_CONTENT_TYPE="application/octet-stream";je.prototype.append=function(t,e,r){r=r||{},typeof r=="string"&&(r={filename:r});var i=K3.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),GJ.isArray(e)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(t,e,r),s=this._multiPartFooter();i(n),i(e),i(s),this._trackLength(n,e,r)};je.prototype._trackLength=function(t,e,r){var i=0;r.knownLength!=null?i+=+r.knownLength:Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+je.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof x6e))&&(r.knownLength||this._valuesToMeasure.push(e))};je.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):v6e.stat(t.path,function(r,i){var n;if(r){e(r);return}n=i.size-(t.start?t.start:0),e(null,n)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(r){t.pause(),e(null,+r.headers["content-length"])}),t.resume()):e("Unknown stream")};je.prototype._multiPartHeader=function(t,e,r){if(typeof r.header=="string")return r.header;var i=this._getContentDisposition(e,r),n=this._getContentType(e,r),s="",A={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(n||[])};typeof r.header=="object"&&X3(A,r.header);var o;for(var c in A)A.hasOwnProperty(c)&&(o=A[c],o!=null&&(Array.isArray(o)||(o=[o]),o.length&&(s+=c+": "+o.join("; ")+je.LINE_BREAK)));return"--"+this.getBoundary()+je.LINE_BREAK+s+je.LINE_BREAK};je.prototype._getContentDisposition=function(t,e){var r,i;return typeof e.filepath=="string"?r=j3.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?r=j3.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(r=j3.basename(t.client._httpMessage.path||"")),r&&(i='filename="'+r+'"'),i};je.prototype._getContentType=function(t,e){var r=e.contentType;return!r&&t.name&&(r=W3.lookup(t.name)),!r&&t.path&&(r=W3.lookup(t.path)),!r&&t.readable&&t.hasOwnProperty("httpVersion")&&(r=t.headers["content-type"]),!r&&(e.filepath||e.filename)&&(r=W3.lookup(e.filepath||e.filename)),!r&&typeof t=="object"&&(r=je.DEFAULT_CONTENT_TYPE),r};je.prototype._multiPartFooter=function(){return function(t){var e=je.LINE_BREAK,r=this._streams.length===0;r&&(e+=this._lastBoundary()),t(e)}.bind(this)};je.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+je.LINE_BREAK};je.prototype.getHeaders=function(t){var e,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(r[e.toLowerCase()]=t[e]);return r};je.prototype.setBoundary=function(t){this._boundary=t};je.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};je.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),r=0,i=this._streams.length;r<i;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?t=Buffer.concat([t,this._streams[r]]):t=Buffer.concat([t,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(je.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};je.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};je.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};je.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};je.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}R6e.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,i){if(r){t(r);return}i.forEach(function(n){e+=n}),t(null,e)})};je.prototype.submit=function(t,e){var r,i,n={method:"post"};return typeof t=="string"?(t=N6e(t),i=X3({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},n)):(i=X3(t,n),i.port||(i.port=i.protocol=="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol=="https:"?r=w6e.request(i):r=b6e.request(i),this.getLength(function(s,A){if(s&&s!=="Unknown stream"){this._error(s);return}if(A&&r.setHeader("Content-Length",A),this.pipe(r),e){var o,c=a(function(l,d){return r.removeListener("error",c),r.removeListener("response",o),e.call(this,l,d)},"callback");o=c.bind(this,null),r.on("error",c),r.on("response",o)}}.bind(this)),r};je.prototype._error=function(t){this.error||(this.error=t,this.pause(),thi Line truncated
${Q8e.sanitize(this)}`}};Vn.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";Vn.PARSE_ERROR="PARSE_ERROR";var Ws=BNe.createClientLogger("core-http");function Yj(t,e){return t?e.httpsAgent:e.httpAgent}a(Yj,"getCachedAgent");var tI=class extends wNe.Transform{static{a(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,r,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function jB(t){return t&&typeof t.pipe=="function"}a(jB,"isReadableStream");function Vj(t,e){return new Promise(r=>{t.once("close",()=>{e?.abort(),r()}),t.once("end",r),t.once("error",r)})}a(Vj,"isStreamComplete");function y8e(t){let e=new Lo;return t.forEach((r,i)=>{e.set(i,r)}),e}a(y8e,"parseHeaders");var rI=class{static{a(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var r;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new WB.AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new WB.AbortError("The operation was aborted.");n=a(l=>{l.type==="abort"&&i.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let l=e.formData,d=new xNe.default,p=a((g,m)=>{typeof m=="function"&&(m=m()),m&&Object.prototype.hasOwnProperty.call(m,"value")&&Object.prototype.hasOwnProperty.call(m,"options")?d.append(g,m.value,m.options):d.append(g,m)},"appendFormValue");for(let g of Object.keys(l)){let m=l[g];if(Array.isArray(m))for(let h=0;h<m.length;h++)p(g,m[h]);else p(g,m)}e.body=d,e.formData=void 0;let u=e.headers.get("Content-Type");u&&u.indexOf("multipart/form-data")!==-1&&(typeof d.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${d.getBoundary()}`):e.headers.remove("Content-Type"))}let s=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let l=e.onUploadProgress,d=new tI(l);jB(s)?s.pipe(d):d.end(s),s=d}let A=await this.prepareRequest(e),o=Object.assign({body:s,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},A),c;try{let l=await this.fetch(e.url,o),d=y8e(l.headers),p=((r=e.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(l.status))||e.streamResponseBody;c={headers:d,request:e,status:l.status,readableStreamBody:p?l.body:void 0,bodyAsText:p?void 0:await l.text()};let u=e.onDownloadProgress;if(u){let g=l.body||void 0;if(jB(g)){let m=new tI(u);g.pipe(m),c.readableStreamBody=m}else{let m=parseInt(d.get("Content-Length"))||void 0;m&&u({loadedBytes:m})}}return await this.processRequest(c),c}catch(l){let d=l;throw d.code==="ENOTFOUND"?new Vn(d.message,Vn.REQUEST_SEND_ERROR,void 0,e):d.type==="aborted"?new WB.AbortError("The operation was aborted."):d}finally{if(e.abortSignal&&n){let l=Promise.resolve();jB(s)&&(l=Vj(s));let d=Promise.resolve();jB(c?.readableStreamBody)&&(d=Vj(c.readableStreamBody,i)),Promise.all([l,d]).then(()=>{var p;(p=e.abortSignal)===null||p===void 0||p.removeEventListener("abort",n)}).catch(p=>{Ws.warning("Error when cleaning up abortListener on httpRequest",p)})}}}getOrCreateAgent(e){var r;let i=A8(e.url);if(e.proxySettings){let{host:n,port:s,username:A,password:o}=e.proxySettings,c=`${n}:${s}:${A}:${o}`,l=(r=this.proxyAgentMap.get(c))!==null&&r!==void 0?r:{},d=Yj(i,l);if(d)return d;let p=E8e(e.url,e.proxySettings,e.headers);return d=p.agent,p.isHttps?l.httpsAgent=p.agent:l.httpAgent=p.agent,this.proxyAgentMap.set(c,l),d}else if(e.keepAlive){let n=Yj(i,this.keepAliveAgents);if(n)return n;let s={keepAlive:e.keepAlive};return i?n=this.keepAliveAgents.httpsAgent=new Oj.Agent(s):n=this.keepAliveAgents.httpAgent=new _j.Agent(s),n}else return i?Oj.globalAgent:_j.globalAgent}async fetch(e,r){return RNe.default(e,r)}async prepareRequest(e){let r={};return r.agent=this.getOrCreateAgent(e),r.compress=e.decompressResponse,r}async processRequest(e){}};W.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(W.HttpPipelineLogLevel||(W.HttpPipelineLogLevel={}));function b8e(t){let{requestOptions:e,tracingOptions:r}=t,n=ENe.__rest(t,["requestOptions","tracingOptions"]);return e&&(n=Object.assign(Object.assign({},n),e)),r&&(n.tracingContext=r.tracingContext,n.spanOptions=r?.spanOptions),n}a(b8e,"operationOptionsToRequestOptionsBase");var Lr=class{static{a(this,"BaseRequestPolicy")}constructor(e,r){this._nextPolicy=e,this._options=r}shouldLog(e){return this._options.shouldLog(e)}log(e,r){this._options.log(e,r)}},iI=class{static{a(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==W.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,r){this._logger&&this.shouldLog(e)&&this._logger.log(e,r)}},dW={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:Tr,explicitArr Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},KB=Object.assign({},dW);KB.explicitArray=!1;var fh=Object.assign({},dW);fh.explicitArray=!1;fh.renderOpts={pretty:!1};function a8(t,e={}){var r;return fh.rootName=e.rootName,fh.charkey=(r=e.xmlCharKey)!==null&&r!==void 0?r:Ra,new eW.Builder(fh).buildObject(t)}a(a8,"stringifyXML");function pW(t,e={}){var r;KB.explicitRoot=!!e.includeRoot,KB.charkey=(r=e.xmlCharKey)!==null&&r!==void 0?r:Ra;let i=new eW.Parser(KB);return new Promise((n,s)=>{t?i.parseString(t,(A,o)=>{A?s(A):n(o)}):s(new Error("Document is empty"))})}a(pW,"parseXML");function S8(t,e){return{create:(r,i)=>new o8(r,i,t,e)}}a(S8,"deserializationPolicy");var uW=["application/json","text/json"],gW=["application/xml","application/atom+xml"],w8e={expectedContentTypes:{json:uW,xml:gW}},o8=class extends Lr{static{a(this,"DeserializationPolicy")}constructor(e,r,i,n={}){var s;super(e,r),this.jsonContentTypes=i&&i.json||uW,this.xmlContentTypes=i&&i.xml||gW,this.xmlCharKey=(s=n.xmlCharKey)!==null&&s!==void 0?s:Ra}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(r=>mW(this.jsonContentTypes,this.xmlContentTypes,r,{xmlCharKey:this.xmlCharKey}))}};function N8e(t){let e,r=t.request,i=r.operationSpec;if(i){let n=r.operationResponseGetter;n?e=n(i,t):e=i.responses[t.status]}return e}a(N8e,"getOperationResponse");function v8e(t){let e=t.request.shouldDeserialize,r;return e===void 0?r=!0:typeof e=="boolean"?r=e:r=e(t),r}a(v8e,"shouldDeserializeResponse");function mW(t,e,r,i={}){var n,s,A;let o={rootName:(n=i.rootName)!==null&&n!==void 0?n:"",includeRoot:(s=i.includeRoot)!==null&&s!==void 0?s:!1,xmlCharKey:(A=i.xmlCharKey)!==null&&A!==void 0?A:Ra};return D8e(t,e,r,o).then(c=>{if(!v8e(c))return c;let l=c.request.operationSpec;if(!l||!l.responses)return c;let d=N8e(c),{error:p,shouldReturnResponse:u}=R8e(c,l,d);if(p)throw p;if(u)return c;if(d){if(d.bodyMapper){let g=c.parsedBody;l.isXML&&d.bodyMapper.type.name===ol.Sequence&&(g=typeof g=="object"?g[d.bodyMapper.xmlElementName]:[]);try{c.parsedBody=l.serializer.deserialize(d.bodyMapper,g,"operationRes.parsedBody",i)}catch(m){throw new Vn(`Error ${m} occurred in deserializing the responseBody - ${c.bodyAsText}`,void 0,c.status,c.request,c)}}else l.httpMethod==="HEAD"&&(c.parsedBody=r.status>=200&&r.status<300);d.headersMapper&&(c.parsedHeaders=l.serializer.deserialize(d.headersMapper,c.headers.toJson(),"operationRes.parsedHeaders",i))}return c})}a(mW,"deserializeResponseBody");function x8e(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}a(x8e,"isOperationSpecEmpty");function R8e(t,e,r){var i;let n=200<=t.status&&t.status<300;if(x8e(e)?n:!!r)if(r){if(!r.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let A=r??e.responses.default,c=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new Vn(c,void 0,t.status,t.request,t);if(!A)throw l;let d=A.bodyMapper,p=A.headersMapper;try{if(t.parsedBody){let u=t.parsedBody,g;if(d){let h=u;e.isXML&&d.type.name===ol.Sequence&&(h=typeof u=="object"?u[d.xmlElementName]:[]),g=e.serializer.deserialize(d,h,"error.response.parsedBody")}let m=u.error||g||u;l.code=m.code,m.message&&(l.message=m.message),d&&(l.response.parsedBody=g)}t.headers&&p&&(l.response.parsedHeaders=e.serializer.deserialize(p,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(u){l.message=`Error "${u.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}a(R8e,"handleErrorResponse");function D8e(t,e,r,i){var n;let s=a(o=>{let c=`Error "${o}" occurred while parsing the response body - ${r.bodyAsText}.`,l=o.code||Vn.PARSE_ERROR,d=new Vn(c,l,r.status,r.request,r);return Promise.reject(d)},"errorHandler");if(!(((n=r.request.streamResponseStatusCodes)===null||n===void 0?void 0:n.has(r.status))||r.request.streamResponseBody)&&r.bodyAsText){let o=r.bodyAsText,c=r.headers.get("Content-Type")||"",l=c?c.split(";").map(d=>d.toLowerCase()):[];if(l.length===0||l.some(d=>t.indexOf(d)!==-1))return new Promise(d=>{r.parsedBody=JSON.parse(o),d(r)}).catch(s);if(l.some(d=>e.indexOf(d)!==-1))return pW(o,i).then(d=>(r.parsedBody=d,r)).catch(s)}return Promise.resolve(r)}a(D8e,"parse");var hW={enable:!0};function fW(t){return{create:(e,r)=>new c8(e,r,t||hW)}}a(fW,"keepAlivePolicy");var c8=class extends Lr{static{a(this,"KeepAlivePolicy")}constructor(e,r,i){super(e,r),this.keepAliveOptions=i}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},Jj=["GET","HEAD"],S8e={handleRedirects:!0,maxRetries:20};function k8(t=20){return{create:(e,r)=>new l8(e,r,t)}}a(k8,"redirectPolicy");var l8=class extends Lr{static{a(this,"RedirectPolicy")}constructor(e,r,i=20){super(e,r),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(r=>EW(th Line truncated
`).join(""))}return this._nextPolicy.sendRequest(e)}},bW=[],wW=!1,Y8e=new Map;function V8e(){if(!process)return;let t=XB(bs.HTTPS_PROXY),e=XB(bs.ALL_PROXY),r=XB(bs.HTTP_PROXY);return t||e||r}a(V8e,"loadEnvironmentProxyValue");function J8e(t,e,r){if(e.length===0)return!1;let i=MA.parse(t).getHost();if(r?.has(i))return r.get(i);let n=!1;for(let s of e)s[0]==="."?(i.endsWith(s)||i.length===s.length-1&&i===s.slice(1))&&(n=!0):i===s&&(n=!0);return r?.set(i,n),n}a(J8e,"isBypassed");function z8e(){let t=XB(bs.NO_PROXY);return wW=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}a(z8e,"loadNoProxy");function NW(t){if(!t&&(t=V8e(),!t))return;let{username:e,password:r,urlWithoutAuth:i}=j8e(t),n=MA.parse(i);return{host:(n.getScheme()?n.getScheme()+"://":"")+n.getHost(),port:Number.parseInt(n.getPort()||"80"),username:e,password:r}}a(NW,"getDefaultProxySettings");function P8(t,e){return t||(t=NW()),wW||bW.push(...z8e()),{create:(r,i)=>new E8(r,i,t,e?.customNoProxyList)}}a(P8,"proxyPolicy");function j8e(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let r=t.indexOf("://"),i=r!==-1?r+3:0,n=t.substring(i,e),s=n.indexOf(":"),A=s!==-1,o=A?n.substring(0,s):n,c=A?n.substring(s+1):void 0,l=t.substring(0,i)+t.substring(e+1);return{username:o,password:c,urlWithoutAuth:l}}a(j8e,"extractAuthFromUrl");var E8=class extends Lr{static{a(this,"ProxyPolicy")}constructor(e,r,i,n){super(e,r),this.proxySettings=i,this.customNoProxyList=n}sendRequest(e){var r;return!e.proxySettings&&!J8e(e.url,(r=this.customNoProxyList)!==null&&r!==void 0?r:bW,this.customNoProxyList?void 0:Y8e)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function W8e(t=30){return{create:(e,r)=>new C8(e,r,t)}}a(W8e,"rpRegistrationPolicy");var C8=class extends Lr{static{a(this,"RPRegistrationPolicy")}constructor(e,r,i=30){super(e,r),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(r=>X8e(this,e,r))}};function X8e(t,e,r){if(r.status===409){let i=K8e(r.bodyAsText);if(i){let n=Z8e(e.url);return $8e(t,n,i,e).catch(()=>!1).then(s=>s?(e.headers.set("x-ms-client-request-id",AI()),t._nextPolicy.sendRequest(e.clone())):r)}}return Promise.resolve(r)}a(X8e,"registerIfNeeded");function vW(t,e=!1){let r=t.clone();return e&&(r.url=t.url),r.headers.set("x-ms-client-request-id",AI()),r.headers.set("Content-Type","application/json; charset=utf-8"),r}a(vW,"getRequestEssentials");function K8e(t){let e,r;if(t){try{r=JSON.parse(t)}catch{}if(r&&r.error&&r.error.message&&r.error.code&&r.error.code==="MissingSubscriptionRegistration"){let i=r.error.message.match(/.*'(.*)'/i);i&&(e=i.pop())}}return e}a(K8e,"checkRPNotRegisteredError");function Z8e(t){let e,r=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(r&&r[0])e=r[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}a(Z8e,"extractSubscriptionUrl");async function $8e(t,e,r,i){let n=`${e}providers/${r}/register?api-version=2016-02-01`,s=`${e}providers/${r}?api-version=2016-02-01`,A=vW(i);if(A.method="POST",A.url=n,(await t._nextPolicy.sendRequest(A)).status!==200)throw new Error(`Autoregistration of ${r} failed. Please try registering manually.`);return xW(t,s,i)}a($8e,"registerRP");async function xW(t,e,r){let i=vW(r);i.url=e,i.method="GET";let n=await t._nextPolicy.sendRequest(i),s=n.parsedBody;return n.parsedBody&&s.registrationState&&s.registrationState==="Registered"?!0:(await UA.delay(t._retryTimeout*1e3),xW(t,e,r))}a(xW,"getRegistrationStatus");function RW(t){return{create:(e,r)=>new B8(e,r,t)}}a(RW,"signingPolicy");var B8=class extends Lr{static{a(this,"SigningPolicy")}constructor(e,r,i){super(e,r),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(r=>this._nextPolicy.sendRequest(r))}};function q8(t,e,r,i){return{create:(n,s)=>new I8(n,s,t,e,r,i)}}a(q8,"systemErrorRetryPolicy");var I8=class extends Lr{static{a(this,"SystemErrorRetryPolicy")}constructor(e,r,i,n,s,A){super(e,r),this.retryCount=al(i)?i:F8,this.retryInterval=al(n)?n:T8,this.minRetryInterval=al(s)?s:k8e,this.maxRetryInterval=al(A)?A:L8}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(r=>DW(this,e,r.response,r))}};async function DW(t,e,r,i,n){n=BW(t,n,i);function s(A,o){return!!(o&&o.code&&(o.code==="ETIMEDOUT"||o.code==="ESOCKETTIMEDOUT"||o.code==="ECONNREFUSED"||o.code==="ECONNRESET"||o.code==="ENOENT"))}if(a(s,"shouldPolicyRetry"),CW(t.retryCount,s,n,r,i))try{return await UA.delay(n.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(A){return DW(t,e,r,A,n)}else return i?Promise.reject(n.error):r}a(DW,"retry");var e5e=3,zj=bs.HttpConstants.StatusCodes;function H8(){return{create:(t,e)=>new Q8(t,e)}}a(H8,"throttlingRetryPolicy");var jj="The operation was aborted.",Q8=class t extends Lr{static{a(this,"ThrottlingRetryPolicy")}constructor(e,r,i){super(e,r),this.numberOfRetries=0,this._handleResponse=i||this._defaultResponseHandler}async se Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${d}
Polling status: ${qW.terminalStates.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=A(l,r);if(p!==void 0)return{response:await e(p).catch(PW({state:r,stateProxy:i,isOperationError:o})),status:d}}return{response:l,status:d}}a(E5e,"pollOperationHelper");async function C5e(t){let{poll:e,state:r,stateProxy:i,options:n,getOperationStatus:s,getResourceLocation:A,getOperationLocation:o,isOperationError:c,withOperationLocation:l,getPollingInterval:d,processResult:p,getError:u,updateState:g,setDelay:m,isDone:h,setErrorAsResult:B}=t,{operationLocation:I}=r.config;if(I!==void 0){let{response:v,status:Q}=await E5e({poll:e,getOperationStatus:s,state:r,stateProxy:i,operationLocation:I,getResourceLocation:A,isOperationError:c,options:n});if(HW({status:Q,response:v,state:r,stateProxy:i,isDone:h,processResult:p,getError:u,setErrorAsResult:B}),!qW.terminalStates.includes(Q)){let E=d?.(v);E&&m(E);let C=o?.(v,r);if(C!==void 0){let w=I!==C;r.config.operationLocation=C,l?.(C,w)}else l?.(I,!1)}g?.(r,v)}}a(C5e,"pollOperation");_o.pollOperation=C5e});var z8=f(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.pollHttpOperation=Ar.isOperationError=Ar.getResourceLocation=Ar.getOperationStatus=Ar.getOperationLocation=Ar.initHttpOperation=Ar.getStatusFromInitialResponse=Ar.getErrorFromResponse=Ar.parseRetryAfter=Ar.inferLroMode=void 0;var GW=mI(),Y8=uI();function YW(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}a(YW,"getOperationLocationPollingUrl");function VW(t){return t.headers.location}a(VW,"getLocationHeader");function JW(t){return t.headers["operation-location"]}a(JW,"getOperationLocationHeader");function zW(t){return t.headers["azure-asyncoperation"]}a(zW,"getAzureAsyncOperationHeader");function B5e(t){let{location:e,requestMethod:r,requestPath:i,resourceLocationConfig:n}=t;switch(r){case"PUT":return i;case"DELETE":return;case"PATCH":return s()??i;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return i;case"location":default:return e}}a(s,"getDefault")}a(B5e,"findResourceLocation");function jW(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:n}=t,s=JW(e),A=zW(e),o=YW({operationLocation:s,azureAsyncOperation:A}),c=VW(e),l=r?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:B5e({requestMethod:l,location:c,requestPath:i,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}a(jW,"inferLroMode");Ar.inferLroMode=jW;function WW(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 V8(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 Y8.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}a(WW,"transformStatus");function I5e(t){let{status:e}=t.body??{};return WW({status:e,statusCode:t.statusCode})}a(I5e,"getStatus");function Q5e(t){let{properties:e,provisioningState:r}=t.body??{},i=e?.provisioningState??r;return WW({status:i,statusCode:t.statusCode})}a(Q5e,"getProvisioningState");function V8(t){return t===202?"running":t<300?"succeeded":"failed"}a(V8,"toOperationStatus");function XW({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?y5e(new Date(e)):r*1e3}}a(XW,"parseRetryAfter");Ar.parseRetryAfter=XW;function KW(t){let e=eX(t,"error");if(!e){Y8.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Y8.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}a(KW,"getErrorFromResponse");Ar.getErrorFromResponse=KW;function y5e(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}a(y5e,"calculatePollingIntervalFromDate");function ZW(t){let{response:e,state:r,operationLocation:i}=t;function n(){switch(r.config.metadata?.mode){case void 0:return V8(e.rawResponse.statusCode);case"Body":return J8(e,r);default:return"running"}}a(n,"helper");let s=n();return s==="running"&&i===void 0?"succeeded":s}a(ZW,"getStatusFromInitialResponse");Ar.getStatusFromInitialResponse=ZW;async function b5e(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:n,setErrorAsResult:s}=t;return(0,GW.initOperation)({init:async()=>{let A=await n.sendInitialRequest(),o=jW({rawResponse:A.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return{Line truncated
`,lee="HTTP/1.1",aDe="AES256",oDe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",cDe=["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-if-tags","x-ms-source-if-tags"],lDe=["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"],dDe="BlobUsesCustomerSpecifiedEncryption",pDe="BlobDoesNotUseCustomerSpecifiedEncryption",uDe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function gDe(t){let e=_.URLBuilder.parse(t),r=e.getPath();return r=r||"/",r=hDe(r),e.setPath(r),e.toString()}a(gDe,"escapeURLPath");function mDe(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let r=t.split(";");for(let i of r)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}a(mDe,"getProxyUriFromDevConnString");function dl(t,e){let r=t.split(";");for(let i of r)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}a(dl,"getValueInConnString");function Cu(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=mDe(t),t=oDe);let r=dl(t,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",n="",s=Buffer.from("accountKey","base64"),A="";if(n=dl(t,"AccountName"),s=Buffer.from(dl(t,"AccountKey"),"base64"),!r){i=dl(t,"DefaultEndpointsProtocol");let o=i.toLowerCase();if(o!=="https"&&o!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(A=dl(t,"EndpointSuffix"),!A)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${i}://${n}.blob.${A}`}if(n){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:n,accountKey:s,proxyUri:e}}else{let i=dl(t,"SharedAccessSignature"),n=dl(t,"AccountName");if(n||(n=pee(r)),r){if(!i)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:r,accountName:n,accountSas:i}}}a(Cu,"extractConnectionStringParts");function hDe(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}a(hDe,"escape");function Wt(t,e){let r=_.URLBuilder.parse(t),i=r.getPath();return i=i?i.endsWith("/")?`${i}${e}`:`${i}/${e}`:e,r.setPath(i),new URL(r.toString()).toStr Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(a);return e.headers.set(Ie.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,a){let i=e.headers.get(a);return!i||a===Ie.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let a=e.headers.headersArray().filter(r=>r.name.toLowerCase().startsWith(Ie.PREFIX_FOR_STORAGE));a.sort((r,n)=>r.name.toLowerCase().localeCompare(n.name.toLowerCase())),a=a.filter((r,n,s)=>!(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()));let i="";return a.forEach(r=>{i+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}
`}),i}getCanonicalizedResourceString(e){let a=H0(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=PM(e.url),n={};if(r){let s=[];for(let p in r)if(Object.prototype.hasOwnProperty.call(r,p)){let d=p.toLowerCase();n[d]=r[p],s.push(d)}s.sort();for(let p of s)i+=`
${p}:${decodeURIComponent(n[p])}`}return i}},Ke=class extends Do{static{o(this,"StorageSharedKeyCredential")}constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new Hl(e,a,this)}computeHMACSHA256(e){return Uy.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},VM="azure-storage-blob",$M="12.15.0",Bo=class extends H.ServiceClient{static{o(this,"StorageClientContext")}constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=H.getDefaultUserAgentValue();a.userAgent=`${VM}/${$M} ${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},Ao=class{static{o(this,"StorageClient")}constructor(e,a){this.url=_M(e),this.accountName=lx(e),this.pipeline=a,this.storageClientContext=new Bo(this.url,a.toServiceClientOptions()),this.isHttps=dx(TM(this.url)||"","https"),this.credential=new Oe;for(let r of this.pipeline.factories)z.isNode&&r instanceof Ke||r instanceof Oe?this.credential=r:z.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},k=L.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function W(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}o(W,"convertTracingToRequestOptionsBase");var Si=class t{static{o(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}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("")}},Ei=class t{static{o(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}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("")}},Zf=class{static{o(this,"UserDelegationKeyCredential")}constructor(e,a){this.accountName=e,this.userDelegationKey=a,this.key=Buffer.from(a.value,"base64")}computeHMACSHA256(e){return Uy.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Ci(t){return t.end?`${t.start}-${t.end}`:t.start}o(Ci,"ipRangeToString");Z.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Z.SASProtocol||(Z.SASProtocol={}));var ai=class{static{o(this,"SASQueryParameters")}constructor(e,a,i,r,n,s,p,d,l,c,m,u,f,h,b Line truncated
`),n=e.computeHMACSHA256(r);return new ai(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(GM,"generateBlobSASQueryParameters20150405");function XM(t,e){if(t=ts(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 a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Si.parse(t.permissions.toString()).toString():r=Ei.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",es(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new ai(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(XM,"generateBlobSASQueryParameters20181109");function WM(t,e){if(t=ts(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 a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Si.parse(t.permissions.toString()).toString():r=Ei.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",es(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new ai(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}o(WM,"generateBlobSASQueryParameters20201206");function KM(t,e){if(t=ts(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Si.parse(t.permissions.toString()).toString():r=Ei.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",es(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?_e(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?_e(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new ai(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}o(KM,"generateBlobSASQueryParametersUDK20181109");function YM(t,e){if(t=ts(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Si.parse(t.permissions.toString()).toString():r=Ei.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",es(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?_e(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?_e(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new ai(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}o(YM,"generateBlobSASQueryParametersUDK20200210");function QM(t,e){if(t=ts(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Si.parse(t.permissions.toString()).toString():r=Ei.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",es(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?_e(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?_e(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new ai(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}o(QM,"generateBlobSASQueryParametersUDK20201206");function es(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}o(es,"getCanonicalName");function ts(t){let e=t.version?t.version:j0;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(ts,"SASSignatureValuesSanityCheckAndAutofill");var Mo=class{static{o(this,"BlobLeaseClient")}constructor(e,a){let i=new Bo(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new Lr(i)):(this._isContainer=!1,this._containerOrBlobOperation=new Oo(i)),a||(a=z.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,p,d;let{span:l,updatedOptions:c}=k("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ti||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ti||!((p=a.conditions)===null||p===void 0)&&p.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.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(d=a.conditions)===null||d===void 0?void 0:d.tagConditions}),proposedLeaseId:this._leaseId},W(c)))}catch(m){throw l.setStatus({code:L.SpanStatusCode.ERROR,message:m.message}),m}finally{l.end()}}async changeLease(e,a={}){var i,r,n,s,p,d;let{span:l,updatedOptions:c}=k("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ti||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ti||!((p=a.conditions)===null||p===void 0)&&p.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.");try{let m=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:a.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(d=a.conditions)===null||d===void 0?void 0:d.tagConditions})},W(c)));return this._leaseId=e,m}catch(m){throw l.setStatus({code:L.SpanStatusCode.ERROR,message:m.message}),m}finally{l.end()}}async releaseLease(e={}){var a,i,r,n,s,p;let{span:d,updatedOptions:l}=k("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((a=e.conditions)===null||a===void 0)&&a.ifMatch&&((i=e.conditions)===null||i===void 0?void 0:i.ifMatch)!==ti||!((r=e.conditions)===null||r===void 0)&&r.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==ti||!((s=e.conditions)===null||s===void 0)&&s.tagCon Line truncated
`):s=[e.accountName,i,r,n,t.startsOn?_e(t.startsOn,!1):"",_e(t.expiresOn,!1),t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",a,""].join(`
`);let p=e.computeHMACSHA256(s);return new ai(a,p,i.toString(),r,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}o(mx,"generateAccountSASQueryParameters");var N0=class t extends Ao{static{o(this,"BlobServiceClient")}constructor(e,a,i){let r;pr(a)?r=a:z.isNode&&a instanceof Ke||a instanceof Oe||z.isTokenCredential(a)?r=Re(a,i):r=Re(new Oe,i),super(e,r),this.serviceContext=new Ml(this.storageClientContext)}static fromConnectionString(e,a){a=a||{};let i=Zn(e);if(i.kind==="AccountConnString")if(z.isNode){let r=new Ke(i.accountName,i.accountKey);a.proxyOptions||(a.proxyOptions=z.getDefaultProxySettings(i.proxyUri));let n=Re(r,a);return new t(i.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(i.kind==="SASConnString"){let r=Re(new Oe,a);return new t(i.url+"?"+i.accountSas,r)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new Vl(je(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-createContainer",a);try{let n=this.getContainerClient(e),s=await n.create(r);return{containerClient:n,containerCreateResponse:s}}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async deleteContainer(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-deleteContainer",a);try{return await this.getContainerClient(e).delete(r)}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async undeleteContainer(e,a,i={}){let{span:r,updatedOptions:n}=k("BlobServiceClient-undeleteContainer",i);try{let s=this.getContainerClient(i.destinationContainerName||e),d=await new Lr(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:a},n));return{containerClient:s,containerUndeleteResponse:d}}catch(s){throw r.setStatus({code:L.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async renameContainer(e,a,i={}){var r;let{span:n,updatedOptions:s}=k("BlobServiceClient-renameContainer",i);try{let p=this.getContainerClient(a),l=await new Lr(p.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(r=i.sourceCondition)===null||r===void 0?void 0:r.leaseId}));return{containerClient:p,containerRenameResponse:l}}catch(p){throw n.setStatus({code:L.SpanStatusCode.ERROR,message:p.message}),p}finally{n.end()}}async getProperties(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async setProperties(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-setProperties",a);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:a.abortSignal},W(r)))}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async getStatistics(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async getAccountInfo(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async listContainersSegment(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-listContainersSegment",a);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:a.abortSignal,marker:e},a),{include:typeof a.include=="string"?[a.include]:a.include}),W(r)))}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async findBlobsByTagsSegment(e,a,i={}){let{span:r,updatedOptions:n}=k("BlobServiceClient-findBlobsByTagsSegment",i);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:e,marker:a,maxPageSize:i.maxPageSize},W(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(d=>{var l;let c="";return((l=d.tags)===null||l===void 0?void 0:l.blobTagSet.length)===1&&(c=d.tags.blobTagSet[0].value),Object.assign(Object.assign({},d),{tags:Eo(d.tags),tagValue:c})})})}catch(s){throw r.setStatus({code:L.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}findBlobsByTagsSegments(e,a,i={}){return U.__asyncGenerator(this,arguments,o(function*(){let n;if(a||a===void 0)do n=yield U.__await(this.findBlobsByTagsSegment(e,a,i)),n.blobs=n.blobs||[],a=n.continuationToken,yield yield U.__await(n);wh Line truncated
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(a),this.code=e,this.name="NetworkError"}};Qt.NetworkError=Zl;Zl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var ec=class extends Error{static{o(this,"UsageError")}constructor(){let e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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`;super(e),this.name="UsageError"}};Qt.UsageError=ec;ec.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var ux=T(Jt=>{"use strict";var lq=Jt&&Jt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),cq=Jt&&Jt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mq=Jt&&Jt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&lq(e,t,a);return cq(e,t),e},uq=Jt&&Jt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.uploadCacheArchiveSDK=Jt.UploadProgress=void 0;var J0=mq(Ut()),fq=G0(),hq=Q0(),tc=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,a=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,r=(e/(1024*1024)/(i/1e3)).toFixed(1);J0.info(`Sent ${e} of ${this.contentLength} (${a}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let a=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(a,e))},"displayCallback");this.timeoutHandle=setTimeout(a,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};Jt.UploadProgress=tc;function gq(t,e,a){var i;return uq(this,void 0,void 0,function*(){let r=new fq.BlobClient(t),n=r.getBlockBlobClient(),s=new tc((i=a?.archiveSizeBytes)!==null&&i!==void 0?i:0),p={blockSize:a?.uploadChunkSize,concurrency:a?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),J0.debug(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let d=yield n.uploadFile(e,p);if(d._response.status>=400)throw new hq.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${d._response.status}`);return d}catch(d){throw J0.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${d.message}`),d}finally{s.stopDisplayTimer()}})}o(gq,"uploadCacheArchiveSDK");Jt.uploadCacheArchiveSDK=gq});var e2=T(Ye=>{"use strict";var yq=Ye&&Ye.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),vq=Ye&&Ye.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),bq=Ye&&Ye.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&yq(e,t,a);return vq(e,t),e},ic=Ye&&Ye.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.retryHttpClientResponse=Ye.retryTypedResponse=Ye.retry=Ye.isRetryableStatusCode=Ye.isServerErrorStatusCode=Ye.isSuccessStatusCode=void 0;var fx=bq(Ut()),ac=tn(),as=ln();function xq(t){return t?t>=200&&t<300:!1}o(xq,"isSuccessStatusCode");Ye.isSuccessStatusCode=xq;function hx(t){return t?t>=500:!0}o(hx,"isServerErrorStatusCode");Ye.isServerErrorStatusCode=hx;function gx(t){return t?[ac.HttpCodes.BadGateway,ac.HttpCodes.ServiceUnavailable,ac.HttpCodes.GatewayTimeout].includes(t):!1}o(gx,"isRetryableStatusCode");Ye.isRetryableStatusCode=gx;function wq(t){return ic(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(wq,"sleep");function Z0(t,e,a,i=as.DefaultRetryAttempts,r=as.DefaultRetryDelay,n= Line truncated
Other caches with similar key:`);for(let p of n?.artifactCaches||[])pa.debug(`Cache Key: ${p?.cacheKey}, Cache Version: ${p?.cacheVersion}, Cache Scope: ${p?.scope}, Cache Created: ${p?.creationTime}`)}}})}o(iz,"printCachesListForDiagnostics");function rz(t,e,a){return Zt(this,void 0,void 0,function*(){let i=new Yq.URL(t),r=(0,n2.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,sc.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,sc.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,sc.downloadCacheHttpClient)(t,e):yield(0,sc.downloadCacheHttpClient)(t,e)})}o(rz,"downloadCache");St.downloadCache=rz;function nz(t,e,a){return Zt(this,void 0,void 0,function*(){let i=s2(),r=rs.getCacheVersion(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,lr.retryTypedResponse)("reserveCache",()=>Zt(this,void 0,void 0,function*(){return i.postJson(Wo("caches"),n)}))})}o(nz,"reserveCache");St.reserveCache=nz;function Cx(t,e){return`bytes ${t}-${e}/*`}o(Cx,"getContentRange");function sz(t,e,a,i,r){return Zt(this,void 0,void 0,function*(){pa.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${Cx(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":Cx(i,r)},s=yield(0,lr.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>Zt(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,lr.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}o(sz,"uploadChunk");function oz(t,e,a,i){return Zt(this,void 0,void 0,function*(){let r=rs.getArchiveFileSizeInBytes(a),n=Wo(`caches/${e.toString()}`),s=i2.openSync(a,"r"),p=(0,n2.getUploadOptions)(i),d=rs.assertDefined("uploadConcurrency",p.uploadConcurrency),l=rs.assertDefined("uploadChunkSize",p.uploadChunkSize),c=[...new Array(d).keys()];pa.debug("Awaiting all uploads");let m=0;try{yield Promise.all(c.map(()=>Zt(this,void 0,void 0,function*(){for(;m<r;){let u=Math.min(r-m,l),f=m,h=m+u-1;m+=l,yield sz(t,n,()=>i2.createReadStream(a,{fd:s,start:f,end:h,autoClose:!1}).on("error",b=>{throw new Error(`Cache upload failed because file read failed with ${b.message}`)}),f,h)}})))}finally{i2.closeSync(s)}})}o(oz,"uploadFile");function pz(t,e,a){return Zt(this,void 0,void 0,function*(){let i={size:a};return yield(0,lr.retryTypedResponse)("commitCache",()=>Zt(this,void 0,void 0,function*(){return t.postJson(Wo(`caches/${e.toString()}`),i)}))})}o(pz,"commitCache");function dz(t,e,a,i){return Zt(this,void 0,void 0,function*(){if((0,n2.getUploadOptions)(i).useAzureSdk){if(!a)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,Qq.uploadCacheArchiveSDK)(a,e,i)}else{let n=s2();pa.debug("Upload cache"),yield oz(n,t,e,i),pa.debug("Commiting cache");let s=rs.getArchiveFileSizeInBytes(e);pa.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let p=yield pz(n,t,s);if(!(0,lr.isSuccessStatusCode)(p.statusCode))throw new Error(`Cache service responded with ${p.statusCode} during commit cache.`);pa.info("Cache saved successfully")}})}o(dz,"saveCache");St.saveCache=dz});var oc=T(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.isJsonObject=ns.typeofJsonValue=void 0;function lz(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(lz,"typeofJsonValue");ns.typeofJsonValue=lz;function cz(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(cz,"isJsonObject");ns.isJsonObject=cz});var dc=T(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.base64encode=ss.base64decode=void 0;var Ri="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pc=[];for(let t=0;t<Ri.length;t++)pc[Ri[t].charCodeAt(0)]=t;pc["-".charCodeAt(0)]=Ri.indexOf("+");pc["_".charCodeAt(0)]=Ri.indexOf("/");function mz(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let a=new Uint8Array(e),i=0,r=0,n,s=0;for(let p=0;p<t.length;p++){if(n=pc[t.charCodeAt(p)],n===void 0)switch(t[p]){case"=":r=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(r){case 0:s=n,r=1;break;case 1:a[i++]=s<<2|(n&48)>>4,s=n,r=2;break;case 2:a[i++]=(s&15)<<4|(n&60)>>2,s=n,r=3;break;case 3:a[i++]=(s&3)<<6|n,r=0;break}}if(r==1)throw Error("invalid base64 string.");return a.subarray(0,i)}o(mz,"base64decode");ss.base64decode=mz;function uz(t){let e="",a=0,i,r=0;for(let n=0;n<t.length;n++)switch(i=t[n],a){case 0:e+=Ri[i>>2],r=(i&3)<<4,a=1;break;case 1:e+=Ri[r|i>>4],r=(i&15)<<2,a=2;break;case 2:e+=Ri[r|i>>6],e+=Ri[i&63],a=0;break}return a&&(e+=Ri[r],e+="=",a==1&&(e+="=")),e}o(uz,"base64encode");ss.base64encode=uz});var Ox=T(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.utf8read=void 0;var o2=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function fz(t){if(t.length<1)return"";let e=0,a=[],i=[],r=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?i[r++]=n:n>191&&n<224?i[r++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[r++]=55296+(n>>10),i[r++]=56320+(n&1023)):i[r++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,r>8191&&(a.push(o2(i)),r=0);return a.length?(r&&a.push(o2(i.slice(0,r))),a.join("")):o2(i.slice(0,r))}o(fz,"utf8read");lc.utf8read=fz});var Ko=T(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.WireType=ri.mergeBinaryOptions=ri.UnknownFieldHandler=void 0;var hz;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(a,i,r,n,s)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:r,wireType:n,data:s})},t.onWrite=(a,i,r)=>{for(let{no:n,wireType:s,data:p}of t.list(i))r.tag(n,s).raw(p)},t.list=(a,i)=>{if(e(a)){let r=a[t.symbol];return i?r.filter(n=>n.no==i):r}return[]},t.last=(a,i)=>t.list(a,i).slice(-1)[0];let e=o(a=>a&&Array.isArray(a[t.symbol]),"is")})(hz=ri.UnknownFieldHandler||(ri.UnknownFieldHandler={}));function gz(t,e){return Object.assign(Object.assign({},t),e)}o(gz,"mergeBinaryOptions");ri.mergeBinaryOptions=gz;var yz;(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"})(yz=ri.WireType||(ri.WireType={}))});var mc=T(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.varint32read=ea.varint32write=ea.int64toString=ea.int64fromString=ea.varint64write=ea.varint64read=void 0;function vz(){let t=0,e=0;for(let i=0;i<28;i+=7){let r=this.buf[this.pos++];if(t|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}let a=this.buf[this.pos++];if(t|=(a&15)<<28,e=(a&112)>>4,!(a&128))return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(vz,"varint64read");ea.varint64read=vz;function bz(t,e,a){for(let n=0;n<28;n=n+7){let s=t>>>n,p=!(!(s>>>7)&&e==0),d=(p?s|128:s)&255;if(a.push(d),!p)return}let i=t>>>28&15|(e&7)<<4,r=!!(e>>3);if(a.push((r?i|128:i)&255),!!r){for(let n=3;n<31;n=n+7){let s=e>>>n,p=!!(s>>>7),d=(p?s|128:s)&255;if(a.push(d),!p)return}a.push(e>>>31&1)}}o(bz,"varint64write");ea.varint64write=bz;var cc=65536*65536;function xz(t){let e=t[0]=="-";e&&(t=t.slice(1));let a=1e6,i=0,r=0;function n(s,p){let d=Number(t.slice(s,p));r*=a,i=i*a+d,i>=cc&&(r=r+(i/cc|0),i=i%cc)}return o(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,r]}o(xz,"int64fromString");ea.int64fromString=xz;function wz(t,e){if(e>>>0<=2097151)return""+(cc*e+(t>>>0));let a=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,r=e>>16&65535,n=a+i*6777216+r*6710656,s=i+r*8147497,p=r*2,d=1e7;n>=d&&(s+=Math.floor(n/d),n%=d),s>=d&&(p+=Math.floor(s/d),s%=d);function l(c,m){let u=c?String(c):"";return m?"0000000".slice(u.length)+u:u}return o(l,"decimalFrom1e7"),l(p,0)+l(s,p)+l(n,1)}o(wz,"int64toString");ea.int64toString=wz;function Nz(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let a=0;a<9;a++)e.push(t&127|128),t=t>>7;e.push(1)}}o(Nz,"varint32write");ea.varint32write=Nz;function _z(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let a=5;t&128&&a<10;a++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(_z,"varint32read");ea.varint32read=_z});var mr=T(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.PbLong=cr.PbULong=cr.detectBi=void 0;var Yo=mc(),De;function Px(){let t=new DataView(new ArrayBuffer(8));De=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: Line truncated
`)}};kc.RpcError=A2});var q2=T(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.mergeRpcOptions=void 0;var sw=nt();function $L(t,e){if(!e)return t;let a={};jc(t,a),jc(e,a);for(let i of Object.keys(e)){let r=e[i];switch(i){case"jsonOptions":a.jsonOptions=sw.mergeJsonOptions(t.jsonOptions,a.jsonOptions);break;case"binaryOptions":a.binaryOptions=sw.mergeBinaryOptions(t.binaryOptions,a.binaryOptions);break;case"meta":a.meta={},jc(t.meta,a.meta),jc(e.meta,a.meta);break;case"interceptors":a.interceptors=t.interceptors?t.interceptors.concat(r):r.concat();break}}return a}o($L,"mergeRpcOptions");Uc.mergeRpcOptions=$L;function jc(t,e){if(!t)return;let a=e;for(let[i,r]of Object.entries(t))r instanceof Date?a[i]=new Date(r.getTime()):Array.isArray(r)?a[i]=r.concat():a[i]=r}o(jc,"copy")});var L2=T(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Deferred=Xr.DeferredState=void 0;var oi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oi=Xr.DeferredState||(Xr.DeferredState={}));var z2=class{static{o(this,"Deferred")}constructor(e=!0){this._state=oi.PENDING,this._promise=new Promise((a,i)=>{this._resolve=a,this._reject=i}),e&&this._promise.catch(a=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==oi.PENDING)throw new Error(`cannot resolve ${oi[this.state].toLowerCase()}`);this._resolve(e),this._state=oi.RESOLVED}reject(e){if(this.state!==oi.PENDING)throw new Error(`cannot reject ${oi[this.state].toLowerCase()}`);this._reject(e),this._state=oi.REJECTED}resolvePending(e){this._state===oi.PENDING&&this.resolve(e)}rejectPending(e){this._state===oi.PENDING&&this.reject(e)}};Xr.Deferred=z2});var j2=T(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.RpcOutputStreamController=void 0;var ow=L2(),Wr=nt(),k2=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,a){return a.push(e),()=>{let i=a.indexOf(e);i>=0&&a.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,a,i){Wr.assert((e?1:0)+(a?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),a&&this.notifyError(a),i&&this.notifyComplete()}notifyMessage(e){Wr.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(e,void 0,!1))}notifyError(e){Wr.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(void 0,e,!1)),this.clearLis()}notifyComplete(){Wr.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:()=>{let e=this._itState;Wr.assert(e,"bad state"),Wr.assert(!e.p,"iterator contract broken");let a=e.q.shift();return a?"value"in a?Promise.resolve(a):Promise.reject(a):(e.p=new ow.Deferred,e.p.promise)}}}pushIt(e){let a=this._itState;if(a)if(a.p){let i=a.p;Wr.assert(i.state==ow.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete a.p}else a.q.push(e)}};Hc.RpcOutputStreamController=k2});var H2=T(us=>{"use strict";var GL=us&&us.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(us,"__esModule",{value:!0});us.UnaryCall=void 0;var U2=class{static{o(this,"UnaryCall")}constructor(e,a,i,r,n,s,p){this.method=e,this.requestHeaders=a,this.request=i,this.headers=r,this.response=n,this.status=s,this.trailers=p}then(e,a){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>a?Promise.resolve(a(i)):Promise.reject(i))}promiseFinished(){return GL(this,void 0,void 0,function*(){let[e,a,i,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:a,status:i,trailers:r}})}};us.UnaryCall=U2});var V2=T(fs=>{"use strict";var XL=fs&&fs.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function Line truncated
`));let i=yield mh(a,"create");yield uh(i,t)})}o(Uk,"createTar");Mt.createTar=Uk});var Pw=T(st=>{"use strict";var Hk=st&&st.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Fk=st&&st.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lp=st&&st.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&Hk(e,t,a);return Fk(e,t),e},Ps=st&&st.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(st,"__esModule",{value:!0});st.saveCache=st.restoreCache=st.isFeatureAvailable=st.ReserveCacheError=st.ValidationError=void 0;var re=lp(Ut()),Yc=lp(require("path")),Le=lp(mn()),Os=lp(Tx()),Tw=lp(_w()),Qc=rc(),hr=Cw(),Vk=ln(),Ta=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};st.ValidationError=Ta;var Kr=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};st.ReserveCacheError=Kr;function Ow(t){if(!t||t.length===0)throw new Ta("Path Validation Error: At least one directory or file path is required")}o(Ow,"checkPaths");function fh(t){if(t.length>512)throw new Ta(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ta(`Key Validation Error: ${t} cannot contain commas.`)}o(fh,"checkKey");function $k(){return!!process.env.ACTIONS_CACHE_URL}o($k,"isFeatureAvailable");st.isFeatureAvailable=$k;function Gk(t,e,a,i,r=!1){return Ps(this,void 0,void 0,function*(){let n=(0,Qc.getCacheServiceVersion)();switch(re.debug(`Cache service version: ${n}`),Ow(t),n){case"v2":return yield Wk(t,e,a,i,r);case"v1":default:return yield Xk(t,e,a,i,r)}})}o(Gk,"restoreCache");st.restoreCache=Gk;function Xk(t,e,a,i,r=!1){return Ps(this,void 0,void 0,function*(){a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Ta("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of n)fh(d);let s=yield Le.getCompressionMethod(),p="";try{let d=yield Os.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!d?.archiveLocation)return;if(i?.lookupOnly)return re.info("Lookup only - skipping download"),d.cacheKey;p=Yc.join(yield Le.createTempDirectory(),Le.getCacheFileName(s)),re.debug(`Archive Path: ${p}`),yield Os.downloadCache(d.archiveLocation,p,i),re.isDebug()&&(yield(0,hr.listTar)(p,s));let l=Le.getArchiveFileSizeInBytes(p);return re.info(`Cache Size: ~${Math.round(l/(1024*1024))} MB (${l} B)`),yield(0,hr.extractTar)(p,s),re.info("Cache restored successfully"),d.cacheKey}catch(d){if(d.name===Ta.name)throw d;re.warning(`Failed to restore: ${d.message}`)}finally{try{yield Le.unlinkFile(p)}catch(d){re.debug(`Failed to delete archive: ${d}`)}}})}o(Xk,"restoreCacheV1");function Wk(t,e,a,i,r=!1){return Ps(this,void 0,void 0,function*(){i=Object.assign(Object.assign({},i),{useAzureSdk:!0}),a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Ta("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)fh(p);let s="";try{let p=Tw.internalCacheTwirpClient(),d=yield Le.getCompressionMethod(),l={key:e,restoreKeys:a,version:Le.getCacheVersion(t,d,r)},c=yield p.GetCacheEntryDownloadURL(l);if(!c.ok){re.debug(`Cache not found for version ${l.version} of keys: ${n.join(", ")}`);return}if(re.info(`Cache hit for: ${l.key}`),i?.lookupOnly)return re.info("Lookup only - skipping download"),c.matchedKey;s=Yc.join(yield Le.createTempDirectory(),Le.getCacheFileName(d)),re.debug(`Archive path: ${s}`),re.debug(`Starting download of archive to: ${s}`),yield Os.downloadCache(c.signedDownloadUrl,s,i);let m=Le.getArchiveFileSizeInBytes(s);return re.info(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),re.isDebug()&&(yield(0,hr.listTar)(s,d)),yield(0,hr.extractTar)(s,d),re.info("Cache restored successfully"),c.matchedKey}catch(p){if(p.name===Ta.name)throw p;re.warning(`Failed to restore: ${p.message}`)}finally{try{s&&(yield Le.unlinkFile(s))}catch(p){re.debug(`Failed to delete archive: ${p}`)}}})}o(Wk,"restoreCacheV2");function Kk(t,e,a,i=!1){return Ps(this,void 0,void 0,function*(){let r=(0,Qc.getCacheServiceVersion)();switch(re.debug(`Cache servLine truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(r);return e.headers.set(xt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,r){let i=e.headers.get(r);return!i||r===xt.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(xt.PREFIX_FOR_STORAGE));r.sort((n,s)=>n.name.toLowerCase().localeCompare(s.name.toLowerCase())),r=r.filter((n,s,A)=>!(s>0&&n.name.toLowerCase()===A[s-1].name.toLowerCase()));let i="";return r.forEach(n=>{i+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),i}getCanonicalizedResourceString(e){let r=ov(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let n=BDe(e.url),s={};if(n){let A=[];for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)){let c=o.toLowerCase();s[c]=n[o],A.push(c)}A.sort();for(let o of A)i+=`
${o}:${decodeURIComponent(s[o])}`}return i}},or=class extends vh{static{a(this,"StorageSharedKeyCredential")}constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new HI(e,r,this)}computeHMACSHA256(e){return GX.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},LDe="azure-storage-blob",UDe="12.17.0",Rh=class extends V.ServiceClient{static{a(this,"StorageClientContext")}constructor(e,r){if(e===void 0)throw new Error("'url' cannot be null");if(r||(r={}),!r.userAgent){let i=V.getDefaultUserAgentValue();r.userAgent=`${LDe}/${UDe} ${i}`}super(void 0,r),this.requestContentType="application/json; charset=utf-8",this.baseUri=r.endpoint||"{url}",this.url=e,this.version=r.version||"2023-11-03"}},Dh=class{static{a(this,"StorageClient")}constructor(e,r){this.url=gDe(e),this.accountName=pee(e),this.pipeline=r,this.storageClientContext=new Rh(this.url,r.toServiceClientOptions()),this.isHttps=dee(EDe(this.url)||"","https"),this.credential=new gt;for(let n of this.pipeline.factories)_.isNode&&n instanceof or||n instanceof gt?this.credential=n:_.isTokenCredential(n.credential)&&(this.credential=n.credential);let i=this.storageClientContext;i.requestContentType=void 0}},G=P.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function re(t){var e,r;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(r=t?.tracingOptions)===null||r===void 0?void 0:r.tracingContext}}a(re,"convertTracingToRequestOptionsBase");var ka=class t{static{a(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let r=new t;for(let i of e)switch(i){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: ${i}`)}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}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("")}},Fa=class t{static{a(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let r=new t;for(let i of e)switch(i){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 ${i}`)}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}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("")}},C5=class{static{a(this,"UserDelegationKeyCredential")}constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return GX.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Ta(t){return t.end?`${t.start}-${t.end}`:t.start}a(Ta,"ipRangeToString");Ae.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Ae.SASProtocol||(Ae.SASProtocol={}));var OA=class{static{a(this,"SASQueryParameters")}constructor(e,r,i,n,s,A,o,c, Line truncated
`),s=e.computeHMACSHA256(n);return new OA(t.version,s,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)}a(MDe,"generateBlobSASQueryParameters20150405");function _De(t,e){if(t=Iu(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=ka.parse(t.permissions.toString()).toString():n=Fa.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?At(t.startsOn,!1):"",t.expiresOn?At(t.expiresOn,!1):"",Bu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ta(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,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 new OA(t.version,A,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)}a(_De,"generateBlobSASQueryParameters20181109");function ODe(t,e){if(t=Iu(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=ka.parse(t.permissions.toString()).toString():n=Fa.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?At(t.startsOn,!1):"",t.expiresOn?At(t.expiresOn,!1):"",Bu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ta(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,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 new OA(t.version,A,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,void 0,void 0,void 0,t.encryptionScope)}a(ODe,"generateBlobSASQueryParameters20201206");function PDe(t,e){if(t=Iu(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=ka.parse(t.permissions.toString()).toString():n=Fa.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?At(t.startsOn,!1):"",t.expiresOn?At(t.expiresOn,!1):"",Bu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?At(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?At(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ta(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),A=e.computeHMACSHA256(s);return new OA(t.version,A,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,e.userDelegationKey)}a(PDe,"generateBlobSASQueryParametersUDK20181109");function qDe(t,e){if(t=Iu(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=ka.parse(t.permissions.toString()).toString():n=Fa.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?At(t.startsOn,!1):"",t.expiresOn?At(t.expiresOn,!1):"",Bu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?At(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?At(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ta(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),A=e.computeHMACSHA256(s);return new OA(t.version,A,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}a(qDe,"generateBlobSASQueryParametersUDK20200210");function HDe(t,e){if(t=Iu(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=ka.parse(t.permissions.toString()).toString():n=Fa.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?At(t.startsOn,!1):"",t.expiresOn?At(t.expiresOn,!1):"",Bu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?At(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?At(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ta(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),A=e.computeHMACSHA256(s);return new OA(t.version,A,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}a(HDe,"generateBlobSASQueryParametersUDK20201206");function Bu(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}a(Bu,"getCanonicalName");function Iu(t){let e=t.version?t.version:Av;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}a(Iu,"SASSignatureValuesSanityCheckAndAutofill");var Sh=class{static{a(this,"BlobLeaseClient")}constructor(e,r){let i=new Rh(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new ml(i)):(this._isContainer=!1,this._containerOrBlobOperation=new bh(i)),r||(r=_.generateUuid()),this._leaseId=r}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,r={}){var i,n,s,A,o,c;let{span:l,updatedOptions:d}=G("BlobLeaseClient-acquireLease",r);if(this._isContainer&&(!((i=r.conditions)===null||i===void 0)&&i.ifMatch&&((n=r.conditions)===null||n===void 0?void 0:n.ifMatch)!==_A||!((s=r.conditions)===null||s===void 0)&&s.ifNoneMatch&&((A=r.conditions)===null||A===void 0?void 0:A.ifNoneMatch)!==_A||!((o=r.conditions)===null||o===void 0)&&o.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.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(c=r.conditions)===null||c===void 0?void 0:c.tagConditions}),proposedLeaseId:this._leaseId},re(d)))}catch(p){throw l.setStatus({code:P.SpanStatusCode.ERROR,message:p.message}),p}finally{l.end()}}async changeLease(e,r={}){var i,n,s,A,o,c;let{span:l,updatedOptions:d}=G("BlobLeaseClient-changeLease",r);if(this._isContainer&&(!((i=r.conditions)===null||i===void 0)&&i.ifMatch&&((n=r.conditions)===null||n===void 0?void 0:n.ifMatch)!==_A||!((s=r.conditions)===null||s===void 0)&&s.ifNoneMatch&&((A=r.conditions)===null||A===void 0?void 0:A.ifNoneMatch)!==_A||!((o=r.conditions)===null||o===void 0)&&o.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.");try{let p=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(c=r.conditions)===null||c===void 0?void 0:c.tagConditions})},re(d)));return this._leaseId=e,p}catch(p){throw l.setStatus({code:P.SpanStatusCode.ERROR,message:p.message}),p}finally{l.end()}}async releaseLease(e={}){var r,i,n,s,A,o;let{span:c,updatedOptions:l}=G("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((r=e.conditions)===null||r===void 0)&&r.ifMatch&&((i=e.conditions)===null||i===void 0?void 0:i.ifMatch)!==_A||!((n=e.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=e.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==_A||!((A=e.conditions)===null||A===void 0)&&A.tag Line truncated
`):A=[e.accountName,i,n,s,t.startsOn?At(t.startsOn,!1):"",At(t.expiresOn,!1),t.ipRange?Ta(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let o=e.computeHMACSHA256(A);return new OA(r,o,i.toString(),n,s,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}a(gee,"generateAccountSASQueryParameters");var H5=class t extends Dh{static{a(this,"BlobServiceClient")}constructor(e,r,i){let n;Xo(r)?n=r:_.isNode&&r instanceof or||r instanceof gt||_.isTokenCredential(r)?n=Ct(r,i):n=Ct(new gt,i),super(e,n),this.serviceContext=new LI(this.storageClientContext)}static fromConnectionString(e,r){r=r||{};let i=Cu(e);if(i.kind==="AccountConnString")if(_.isNode){let n=new or(i.accountName,i.accountKey);r.proxyOptions||(r.proxyOptions=_.getDefaultProxySettings(i.proxyUri));let s=Ct(n,r);return new t(i.url,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(i.kind==="SASConnString"){let n=Ct(new gt,r);return new t(i.url+"?"+i.accountSas,n)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new YI(Wt(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){let{span:i,updatedOptions:n}=G("BlobServiceClient-createContainer",r);try{let s=this.getContainerClient(e),A=await s.create(n);return{containerClient:s,containerCreateResponse:A}}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}async deleteContainer(e,r={}){let{span:i,updatedOptions:n}=G("BlobServiceClient-deleteContainer",r);try{return await this.getContainerClient(e).delete(n)}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}async undeleteContainer(e,r,i={}){let{span:n,updatedOptions:s}=G("BlobServiceClient-undeleteContainer",i);try{let A=this.getContainerClient(i.destinationContainerName||e),c=await new ml(A.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:r},s));return{containerClient:A,containerUndeleteResponse:c}}catch(A){throw n.setStatus({code:P.SpanStatusCode.ERROR,message:A.message}),A}finally{n.end()}}async renameContainer(e,r,i={}){var n;let{span:s,updatedOptions:A}=G("BlobServiceClient-renameContainer",i);try{let o=this.getContainerClient(r),l=await new ml(o.storageClientContext).rename(e,Object.assign(Object.assign({},A),{sourceLeaseId:(n=i.sourceCondition)===null||n===void 0?void 0:n.leaseId}));return{containerClient:o,containerRenameResponse:l}}catch(o){throw s.setStatus({code:P.SpanStatusCode.ERROR,message:o.message}),o}finally{s.end()}}async getProperties(e={}){let{span:r,updatedOptions:i}=G("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},re(i)))}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async setProperties(e,r={}){let{span:i,updatedOptions:n}=G("BlobServiceClient-setProperties",r);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:r.abortSignal},re(n)))}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}async getStatistics(e={}){let{span:r,updatedOptions:i}=G("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},re(i)))}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async getAccountInfo(e={}){let{span:r,updatedOptions:i}=G("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},re(i)))}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async listContainersSegment(e,r={}){let{span:i,updatedOptions:n}=G("BlobServiceClient-listContainersSegment",r);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:r.abortSignal,marker:e},r),{include:typeof r.include=="string"?[r.include]:r.include}),re(n)))}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}async findBlobsByTagsSegment(e,r,i={}){let{span:n,updatedOptions:s}=G("BlobServiceClient-findBlobsByTagsSegment",i);try{let A=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:e,marker:r,maxPageSize:i.maxPageSize},re(s)));return Object.assign(Object.assign({},A),{_response:A._response,blobs:A.blobs.map(c=>{var l;let d="";return((l=c.tags)===null||l===void 0?void 0:l.blobTagSet.length)===1&&(d=c.tags.blobTagSet[0].value),Object.assign(Object.assign({},c),{tags:Ih(c.tags),tagValue:d})})})}catch(A){throw n.setStatus({code:P.SpanStatusCode.ERROR,message:A.message}),A}finally{n.end()}}findBlobsByTagsSegments(e,r,i={}){return Y.__asyncGenerator(this,arguments,a(function*(){let s;if(r||r===void 0)do s=yield Y.__await(this.findBlobsByTagsSegment(e,r,i)),s.blobs=s.blobs||[],r=s.continuationToken,yield yield Y.__awai Line truncated
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"}};mn.NetworkError=$I;$I.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var eQ=class extends Error{static{a(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};mn.UsageError=eQ;eQ.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var mee=f(hn=>{"use strict";var rSe=hn&&hn.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),iSe=hn&&hn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),nSe=hn&&hn.__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)&&rSe(e,t,r);return iSe(e,t),e},sSe=hn&&hn.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(A){A(s)})}return a(n,"adopt"),new(r||(r=Promise))(function(s,A){function o(d){try{l(i.next(d))}catch(p){A(p)}}a(o,"fulfilled");function c(d){try{l(i.throw(d))}catch(p){A(p)}}a(c,"rejected");function l(d){d.done?s(d.value):n(d.value).then(o,c)}a(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(hn,"__esModule",{value:!0});hn.uploadCacheArchiveSDK=hn.UploadProgress=void 0;var Ev=nSe(As()),ASe=pv(),aSe=fv(),tQ=class{static{a(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),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);Ev.info(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=a(()=>{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()}};hn.UploadProgress=tQ;function oSe(t,e,r){var i;return sSe(this,void 0,void 0,function*(){let n=new ASe.BlobClient(t),s=n.getBlockBlobClient(),A=new tQ((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),o={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:A.onProgress()};try{A.startDisplayTimer(),Ev.debug(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield s.uploadFile(e,o);if(c._response.status>=400)throw new aSe.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ev.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{A.stopDisplayTimer()}})}a(oSe,"uploadCacheArchiveSDK");hn.uploadCacheArchiveSDK=oSe});var Bv=f(cr=>{"use strict";var cSe=cr&&cr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),lSe=cr&&cr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),dSe=cr&&cr.__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)&&cSe(e,t,r);return lSe(e,t),e},iQ=cr&&cr.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(A){A(s)})}return a(n,"adopt"),new(r||(r=Promise))(function(s,A){function o(d){try{l(i.next(d))}catch(p){A(p)}}a(o,"fulfilled");function c(d){try{l(i.throw(d))}catch(p){A(p)}}a(c,"rejected");function l(d){d.done?s(d.value):n(d.value).then(o,c)}a(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(cr,"__esModule",{value:!0});cr.retryHttpClientResponse=cr.retryTypedResponse=cr.retry=cr.isRetryableStatusCode=cr.isServerErrorStatusCode=cr.isSuccessStatusCode=void 0;var hee=dSe(As()),rQ=Id(),Qu=Qp();function pSe(t){return t?t>=200&&t<300:!1}a(pSe,"isSuccessStatusCode");cr.isSuccessStatusCode=pSe;function fee(t){return t?t>=500:!0}a(fee,"isServerErrorStatusCode");cr.isServerErrorStatusCode=fee;function Eee(t){return t?[rQ.HttpCodes.BadGateway,rQ.HttpCodes.ServiceUnavailable,rQ.HttpCodes.GatewayTimeout].includes(t):!1}a(Eee,"isRetryableStatusCode");cr.isRetryableStatusCode=Eee;function uSe(t){return iQ(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}a(uSe,"sleep");function Cv(t,e,r,i=Qu.DefaultRetryAttempts Line truncated
Other caches with similar key:`);for(let o of s?.artifactCaches||[])jn.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}a(WSe,"printCachesListForDiagnostics");function XSe(t,e,r){return fn(this,void 0,void 0,function*(){let i=new HSe.URL(t),n=(0,wv.getDownloadOptions)(r);i.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield(0,AQ.downloadCacheStorageSDK)(t,e,n):n.concurrentBlobDownloads?yield(0,AQ.downloadCacheHttpClientConcurrent)(t,e,n):yield(0,AQ.downloadCacheHttpClient)(t,e):yield(0,AQ.downloadCacheHttpClient)(t,e)})}a(XSe,"downloadCache");Kr.downloadCache=XSe;function KSe(t,e,r){return fn(this,void 0,void 0,function*(){let i=Nv(),n=bu.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield(0,Zo.retryTypedResponse)("reserveCache",()=>fn(this,void 0,void 0,function*(){return i.postJson(Yh("caches"),s)}))})}a(KSe,"reserveCache");Kr.reserveCache=KSe;function xee(t,e){return`bytes ${t}-${e}/*`}a(xee,"getContentRange");function ZSe(t,e,r,i,n){return fn(this,void 0,void 0,function*(){jn.debug(`Uploading chunk of size ${n-i+1} bytes at offset ${i} with content range: ${xee(i,n)}`);let s={"Content-Type":"application/octet-stream","Content-Range":xee(i,n)},A=yield(0,Zo.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${n})`,()=>fn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!(0,Zo.isSuccessStatusCode)(A.message.statusCode))throw new Error(`Cache service responded with ${A.message.statusCode} during upload chunk.`)})}a(ZSe,"uploadChunk");function $Se(t,e,r,i){return fn(this,void 0,void 0,function*(){let n=bu.getArchiveFileSizeInBytes(r),s=Yh(`caches/${e.toString()}`),A=yv.openSync(r,"r"),o=(0,wv.getUploadOptions)(i),c=bu.assertDefined("uploadConcurrency",o.uploadConcurrency),l=bu.assertDefined("uploadChunkSize",o.uploadChunkSize),d=[...new Array(c).keys()];jn.debug("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>fn(this,void 0,void 0,function*(){for(;p<n;){let u=Math.min(n-p,l),g=p,m=p+u-1;p+=l,yield ZSe(t,s,()=>yv.createReadStream(r,{fd:A,start:g,end:m,autoClose:!1}).on("error",h=>{throw new Error(`Cache upload failed because file read failed with ${h.message}`)}),g,m)}})))}finally{yv.closeSync(A)}})}a($Se,"uploadFile");function e7e(t,e,r){return fn(this,void 0,void 0,function*(){let i={size:r};return yield(0,Zo.retryTypedResponse)("commitCache",()=>fn(this,void 0,void 0,function*(){return t.postJson(Yh(`caches/${e.toString()}`),i)}))})}a(e7e,"commitCache");function t7e(t,e,r,i){return fn(this,void 0,void 0,function*(){if((0,wv.getUploadOptions)(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,GSe.uploadCacheArchiveSDK)(r,e,i)}else{let s=Nv();jn.debug("Upload cache"),yield $Se(s,t,e,i),jn.debug("Commiting cache");let A=bu.getArchiveFileSizeInBytes(e);jn.info(`Cache Size: ~${Math.round(A/(1024*1024))} MB (${A} B)`);let o=yield e7e(s,t,A);if(!(0,Zo.isSuccessStatusCode)(o.statusCode))throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`);jn.info("Cache saved successfully")}})}a(t7e,"saveCache");Kr.saveCache=t7e});var aQ=f(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.isJsonObject=wu.typeofJsonValue=void 0;function r7e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}a(r7e,"typeofJsonValue");wu.typeofJsonValue=r7e;function i7e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}a(i7e,"isJsonObject");wu.isJsonObject=i7e});var cQ=f(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.base64encode=Nu.base64decode=void 0;var _a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),oQ=[];for(let t=0;t<_a.length;t++)oQ[_a[t].charCodeAt(0)]=t;oQ[45]=_a.indexOf("+");oQ[95]=_a.indexOf("/");function n7e(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),i=0,n=0,s,A=0;for(let o=0;o<t.length;o++){if(s=oQ[t.charCodeAt(o)],s===void 0)switch(t[o]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:A=s,n=1;break;case 1:r[i++]=A<<2|(s&48)>>4,A=s,n=2;break;case 2:r[i++]=(A&15)<<4|(s&60)>>2,A=s,n=3;break;case 3:r[i++]=(A&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}a(n7e,"base64decode");Nu.base64decode=n7e;function s7e(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=_a[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=_a[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=_a[n|i>>6],e+=_a[i&63],r=0;break}return r&&(e+=_a[n],e+="=",r==1&&(e+="=")),e}a(s7e,"base64encode");Nu.base64encode=s7e});var Dee=f(lQ=>{"use strict";Object.defineProperty(lQ,"__esModule",{value:!0});lQ.utf8read=void 0;var vv=a(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function A7e(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,A=t.length;for(;e<A;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(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,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(vv(i)),n=0);return r.length?(n&&r.push(vv(i.slice(0,n))),r.join("")):vv(i.slice(0,n))}a(A7e,"utf8read");lQ.utf8read=A7e});var Vh=f(qA=>{"use strict";Object.defineProperty(qA,"__esModule",{value:!0});qA.WireType=qA.mergeBinaryOptions=qA.UnknownFieldHandler=void 0;var a7e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,A)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:A})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:A,data:o}of t.list(i))n.tag(s,A).raw(o)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=a(r=>r&&Array.isArray(r[t.symbol]),"is")})(a7e=qA.UnknownFieldHandler||(qA.UnknownFieldHandler={}));function o7e(t,e){return Object.assign(Object.assign({},t),e)}a(o7e,"mergeBinaryOptions");qA.mergeBinaryOptions=o7e;var c7e;(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"})(c7e=qA.WireType||(qA.WireType={}))});var pQ=f(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.varint32read=En.varint32write=En.int64toString=En.int64fromString=En.varint64write=En.varint64read=void 0;function l7e(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,!(n&128))return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,!(r&128))return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,!(n&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}a(l7e,"varint64read");En.varint64read=l7e;function d7e(t,e,r){for(let s=0;s<28;s=s+7){let A=t>>>s,o=!(!(A>>>7)&&e==0),c=(o?A|128:A)&255;if(r.push(c),!o)return}let i=t>>>28&15|(e&7)<<4,n=!!(e>>3);if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let A=e>>>s,o=!!(A>>>7),c=(o?A|128:A)&255;if(r.push(c),!o)return}r.push(e>>>31&1)}}a(d7e,"varint64write");En.varint64write=d7e;var dQ=65536*65536;function p7e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(A,o){let c=Number(t.slice(A,o));n*=r,i=i*r+c,i>=dQ&&(n=n+(i/dQ|0),i=i%dQ)}return a(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}a(p7e,"int64fromString");En.int64fromString=p7e;function u7e(t,e){if(e>>>0<=2097151)return""+(dQ*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,A=i+n*8147497,o=n*2,c=1e7;s>=c&&(A+=Math.floor(s/c),s%=c),A>=c&&(o+=Math.floor(A/c),A%=c);function l(d,p){let u=d?String(d):"";return p?"0000000".slice(u.length)+u:u}return a(l,"decimalFrom1e7"),l(o,0)+l(A,o)+l(s,1)}a(u7e,"int64toString");En.int64toString=u7e;function g7e(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)}}a(g7e,"varint32write");En.varint32write=g7e;function m7e(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;t&128&&r<10;r++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}a(m7e,"varint32read");En.varint32read=m7e});var ec=f($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.PbLong=$o.PbULong=$o.detectBi=void 0;var Jh=pQ(),Bt;function See(){let t=new DataView(new ArrayBuffer(8));Bt=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"),UMA Line truncated
`)}};OQ.RpcError=ex});var rx=f(qQ=>{"use strict";Object.defineProperty(qQ,"__esModule",{value:!0});qQ.mergeRpcOptions=void 0;var cte=Qr();function Mke(t,e){if(!e)return t;let r={};PQ(t,r),PQ(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=cte.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=cte.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},PQ(t.meta,r.meta),PQ(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}a(Mke,"mergeRpcOptions");qQ.mergeRpcOptions=Mke;function PQ(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}a(PQ,"copy")});var nx=f(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.Deferred=bl.DeferredState=void 0;var YA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(YA=bl.DeferredState||(bl.DeferredState={}));var ix=class{static{a(this,"Deferred")}constructor(e=!0){this._state=YA.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==YA.PENDING)throw new Error(`cannot resolve ${YA[this.state].toLowerCase()}`);this._resolve(e),this._state=YA.RESOLVED}reject(e){if(this.state!==YA.PENDING)throw new Error(`cannot reject ${YA[this.state].toLowerCase()}`);this._reject(e),this._state=YA.REJECTED}resolvePending(e){this._state===YA.PENDING&&this.resolve(e)}rejectPending(e){this._state===YA.PENDING&&this.reject(e)}};bl.Deferred=ix});var Ax=f(HQ=>{"use strict";Object.defineProperty(HQ,"__esModule",{value:!0});HQ.RpcOutputStreamController=void 0;var lte=nx(),wl=Qr(),sx=class{static{a(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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){wl.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){wl.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){wl.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(){wl.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:()=>{let e=this._itState;wl.assert(e,"bad state"),wl.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 lte.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;wl.assert(i.state==lte.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};HQ.RpcOutputStreamController=sx});var ox=f(Fu=>{"use strict";var _ke=Fu&&Fu.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(A){A(s)})}return a(n,"adopt"),new(r||(r=Promise))(function(s,A){function o(d){try{l(i.next(d))}catch(p){A(p)}}a(o,"fulfilled");function c(d){try{l(i.throw(d))}catch(p){A(p)}}a(c,"rejected");function l(d){d.done?s(d.value):n(d.value).then(o,c)}a(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Fu,"__esModule",{value:!0});Fu.UnaryCall=void 0;var ax=class{static{a(this,"UnaryCall")}constructor(e,r,i,n,s,A,o){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=A,this.trailers=o}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return _ke(this,void 0,void 0,function*(){let[e,r,i,n]=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:i,trailers:n}})}};Fu.UnaryCall=ax});var lx=f(Tu=>{"use strict";var Oke=Tu&&Tu.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(A){A(s)})}return a(n,"adopt"),new(r||(r=Promise))(function(s,A){function o(d){try{l(i.next(d))}catch(p){A(p)}}a(o,"fulfilled");function c(d){try{l Line truncated
`));let i=yield kx(r,"create");yield Fx(i,t)})}a(FFe,"createTar");Ni.createTar=FFe});var kte=f(xr=>{"use strict";var TFe=xr&&xr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),LFe=xr&&xr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),af=xr&&xr.__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)&&TFe(e,t,r);return LFe(e,t),e},Wu=xr&&xr.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(A){A(s)})}return a(n,"adopt"),new(r||(r=Promise))(function(s,A){function o(d){try{l(i.next(d))}catch(p){A(p)}}a(o,"fulfilled");function c(d){try{l(i.throw(d))}catch(p){A(p)}}a(c,"rejected");function l(d){d.done?s(d.value):n(d.value).then(o,c)}a(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(xr,"__esModule",{value:!0});xr.saveCache=xr.restoreCache=xr.isFeatureAvailable=xr.ReserveCacheError=xr.ValidationError=void 0;var Ne=af(As()),XQ=af(require("path")),Yt=af(bp()),ju=af(Ree()),Dte=af(Nte()),KQ=nQ(),ic=Rte(),UFe=Qp(),ks=class t extends Error{static{a(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};xr.ValidationError=ks;var Nl=class t extends Error{static{a(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};xr.ReserveCacheError=Nl;function Ste(t){if(!t||t.length===0)throw new ks("Path Validation Error: At least one directory or file path is required")}a(Ste,"checkPaths");function Tx(t){if(t.length>512)throw new ks(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ks(`Key Validation Error: ${t} cannot contain commas.`)}a(Tx,"checkKey");function MFe(){return!!process.env.ACTIONS_CACHE_URL}a(MFe,"isFeatureAvailable");xr.isFeatureAvailable=MFe;function _Fe(t,e,r,i,n=!1){return Wu(this,void 0,void 0,function*(){let s=(0,KQ.getCacheServiceVersion)();switch(Ne.debug(`Cache service version: ${s}`),Ste(t),s){case"v2":return yield PFe(t,e,r,i,n);case"v1":default:return yield OFe(t,e,r,i,n)}})}a(_Fe,"restoreCache");xr.restoreCache=_Fe;function OFe(t,e,r,i,n=!1){return Wu(this,void 0,void 0,function*(){r=r||[];let s=[e,...r];if(Ne.debug("Resolved Keys:"),Ne.debug(JSON.stringify(s)),s.length>10)throw new ks("Key Validation Error: Keys are limited to a maximum of 10.");for(let c of s)Tx(c);let A=yield Yt.getCompressionMethod(),o="";try{let c=yield ju.getCacheEntry(s,t,{compressionMethod:A,enableCrossOsArchive:n});if(!c?.archiveLocation)return;if(i?.lookupOnly)return Ne.info("Lookup only - skipping download"),c.cacheKey;o=XQ.join(yield Yt.createTempDirectory(),Yt.getCacheFileName(A)),Ne.debug(`Archive Path: ${o}`),yield ju.downloadCache(c.archiveLocation,o,i),Ne.isDebug()&&(yield(0,ic.listTar)(o,A));let l=Yt.getArchiveFileSizeInBytes(o);return Ne.info(`Cache Size: ~${Math.round(l/(1024*1024))} MB (${l} B)`),yield(0,ic.extractTar)(o,A),Ne.info("Cache restored successfully"),c.cacheKey}catch(c){if(c.name===ks.name)throw c;Ne.warning(`Failed to restore: ${c.message}`)}finally{try{yield Yt.unlinkFile(o)}catch(c){Ne.debug(`Failed to delete archive: ${c}`)}}})}a(OFe,"restoreCacheV1");function PFe(t,e,r,i,n=!1){return Wu(this,void 0,void 0,function*(){i=Object.assign(Object.assign({},i),{useAzureSdk:!0}),r=r||[];let s=[e,...r];if(Ne.debug("Resolved Keys:"),Ne.debug(JSON.stringify(s)),s.length>10)throw new ks("Key Validation Error: Keys are limited to a maximum of 10.");for(let o of s)Tx(o);let A="";try{let o=Dte.internalCacheTwirpClient(),c=yield Yt.getCompressionMethod(),l={key:e,restoreKeys:r,version:Yt.getCacheVersion(t,c,n)},d=yield o.GetCacheEntryDownloadURL(l);if(!d.ok){Ne.debug(`Cache not found for version ${l.version} of keys: ${s.join(", ")}`);return}if(Ne.info(`Cache hit for: ${l.key}`),i?.lookupOnly)return Ne.info("Lookup only - skipping download"),d.matchedKey;A=XQ.join(yield Yt.createTempDirectory(),Yt.getCacheFileName(c)),Ne.debug(`Archive path: ${A}`),Ne.debug(`Starting download of archive to: ${A}`),yield ju.downloadCache(d.signedDownloadUrl,A,i);let p=Yt.getArchiveFileSizeInBytes(A);return Ne.info(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),Ne.isDebug()&&(yield(0,ic.listTar)(A,c)),yield(0,ic.extractTar)(A,c),Ne.info("Cache restored successfully"),d.matchedKey}catch(o){if(o.name===ks.name)throw o;Ne.warning(`Failed to restore: ${o.message}`)}finally{try{A&&(yield Yt.unlinkFile(A))}catch(o){Ne.debug(`Failed to delete archive: ${o}`)}}})}a(PFe,"restoreCacheV2");function qFe(t,e,r,i=!1){return Wu(this,void 0,void 0,function*(){let n=(0,KQ.getCacheServiceVersion)( Line truncated
/*! Bundled license information:
undici/lib/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
undici/lib/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
sax/lib/sax.js:
(*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)