[autofix.ci] apply automated fixes
This commit is contained in:
1 parent
53e6487b6e
commit
237a6a77d8
2 files changed
+411
-109
No files matched your search
+168
-48
@@ -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 *)
|
||||
|
||||
|
||||
+243
-61
@@ -1,75 +1,251 @@
|
||||
var X_=Object.create;var ao=Object.defineProperty;var K_=Object.getOwnPropertyDescriptor;var Q_=Object.getOwnPropertyNames;var Y_=Object.getPrototypeOf,J_=Object.prototype.hasOwnProperty;var o=(t,e)=>ao(t,"name",{value:e,configurable:!0});var qt=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),S6=(t,e)=>{for(var a in e)ao(t,a,{get:e[a],enumerable:!0})},C6=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Q_(e))!J_.call(t,r)&&r!==a&&ao(t,r,{get:()=>e[r],enumerable:!(i=K_(e,r))||i.enumerable});return t};var ya=(t,e,a)=>(a=t!=null?X_(Y_(t)):{},C6(e||!t||!t.__esModule?ao(a,"default",{value:t,enumerable:!0}):a,t)),Up=t=>C6(ao({},"__esModule",{value:!0}),t);var Fp=E(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.toCommandProperties=vn.toCommandValue=void 0;function Z_(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Z_,"toCommandValue");vn.toCommandValue=Z_;function eS(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(eS,"toCommandProperties");vn.toCommandProperties=eS});var R6=E(va=>{"use strict";var tS=va&&va.__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]}),aS=va&&va.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),iS=va&&va.__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)&&tS(e,t,a);return aS(e,t),e};Object.defineProperty(va,"__esModule",{value:!0});va.issue=va.issueCommand=void 0;var rS=iS(require("os")),T6=Fp();function O6(t,e,a){let i=new Uu(t,e,a);process.stdout.write(i.toString()+rS.EOL)}o(O6,"issueCommand");va.issueCommand=O6;function nS(t,e=""){O6(t,{},e)}o(nS,"issue");va.issue=nS;var E6="::",Uu=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=E6+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}=${oS(r)}`)}}return e+=`${E6}${sS(this.message)}`,e}};function sS(t){return(0,T6.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(sS,"escapeData");function oS(t){return(0,T6.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(oS,"escapeProperty")});var D6=E(xa=>{"use strict";var pS=xa&&xa.__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]}),lS=xa&&xa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Vu=xa&&xa.__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)&&pS(e,t,a);return lS(e,t),e};Object.defineProperty(xa,"__esModule",{value:!0});xa.prepareKeyValueMessage=xa.issueFileCommand=void 0;var dS=Vu(require("crypto")),P6=Vu(require("fs")),Fu=Vu(require("os")),I6=Fp();function cS(t,e){let a=process.env[`GITHUB_${t}`];if(!a)throw new Error(`Unable to find environment variable for file command ${t}`);if(!P6.existsSync(a))throw new Error(`Missing file at path: ${a}`);P6.appendFileSync(a,`${(0,I6.toCommandValue)(e)}${Fu.EOL}`,{encoding:"utf8"})}o(cS,"issueFileCommand");xa.issueFileCommand=cS;function uS(t,e){let a=`ghadelimiter_${dS.randomUUID()}`,i=(0,I6.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}${Fu.EOL}${i}${Fu.EOL}${a}`}o(uS,"prepareKeyValueMessage");xa.prepareKeyValueMessage=uS});var B6=E(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.checkBypass=xn.getProxyUrl=void 0;function mS(t){let e=t.protocol==="https:";if(A6(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(mS,"getProxyUrl");xn.getProxyUrl=mS;function A6(t){if(!t.hostname)return!1;let e=t.hostname;if(fS(e))return!0;let a=process.env.no_proxy||proLine truncated
|
||||
`,u.message,u.stack);var m=new Error("tunneling socket could not be established, cause="+u.message);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(r)}o(c,"onError")},"createSocket");Ni.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 L6(t,e){var a=this;Ni.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=Gu({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=hS.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}o(L6,"createSecureSocket");function q6(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}o(q6,"toOptions");function Gu(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(Gu,"mergeOptions");var Wi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Wi=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"):Wi=o(function(){},"debug");bn.debug=Wi});var Wu=E((FF,k6)=>{k6.exports=z6()});var Ir=E(Re=>{"use strict";var NS=Re&&Re.__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=Re&&Re.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Kp=Re&&Re.__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},it=Re&&Re.__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{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Re,"__esModule",{value:!0});Re.HttpClient=Re.isHttps=Re.HttpClientResponse=Re.HttpClientError=Re.getProxyUrl=Re.MediaTypes=Re.Headers=Re.HttpCodes=void 0;var Vp=Kp(require("http")),Xu=Kp(require("https")),j6=Kp(B6()),$p=Kp(Wu()),ka;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(ka=Re.HttpCodes||(Re.HttpCodes={}));var Ht;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ht=Re.Headers||(Re.Headers={}));var Xi;(function(t){t.ApplicationJson="application/json"})(Xi=Re.MediaTypes||(Re.MediaTypes={}));function SS(t){let e=j6.getProxyUrl(new URL(t));return e?e.href:""}o(SS,"getProxyUrl");Re.getProxyUrl=SS;var CS=[ka.MovedPermanently,ka.ResourceMoved,ka.SeeOther,ka.TemporaryRedirect,ka.PermanentRedirect],ES=[ka.BadGateway,ka.ServiceUnavailable,ka.GatewayTimeout],TS=["OPTIONS","GET","DELETE","HEAD"],OS=10,RS=5,Wp=class t extends Error{static{o(this,"HttpClientError")}constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Re.HttpClientError=Wp;var Xp=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return it(this,void 0,void 0,function*(){return new Promise(e=>it(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 it(this,void 0,void 0,function*(){return new Promise(e=>it(this,void 0,void 0,function*(){let a=[];this.message.on("data",i=>{a.push(i)}),this.message.on("end",()=>{e(Buffer.concat(a))})}))})}};Re.HttpClientResponse=Xp;function PS(t){return new URL(t).protocol==="https:"}o(PS,"isHttps");Re.isHttps=PS;var Ku=class{static{o(this,"HttpClient")}constructor(e,a,i){this._ignoreSslError=!1
Line truncated
|
||||
var MQe=Object.create;var $m=Object.defineProperty;var _Qe=Object.getOwnPropertyDescriptor;var OQe=Object.getOwnPropertyNames;var PQe=Object.getPrototypeOf,qQe=Object.prototype.hasOwnProperty;var a=(t,e)=>$m(t,"name",{value:e,configurable:!0});var Le=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),lI=(t,e)=>{for(var A in e)$m(t,A,{get:e[A],enumerable:!0})},f_=(t,e,A,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of OQe(e))!qQe.call(t,i)&&i!==A&&$m(t,i,{get:()=>e[i],enumerable:!(r=_Qe(e,i))||r.enumerable});return t};var Nr=(t,e,A)=>(A=t!=null?MQe(PQe(t)):{},f_(e||!t||!t.__esModule?$m(A,"default",{value:t,enumerable:!0}):A,t)),Zo=t=>f_($m({},"__esModule",{value:!0}),t);var dI=E(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.toCommandProperties=vp.toCommandValue=void 0;function HQe(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}a(HQe,"toCommandValue");vp.toCommandValue=HQe;function YQe(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(YQe,"toCommandProperties");vp.toCommandProperties=YQe});var y_=E(ws=>{"use strict";var GQe=ws&&ws.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),JQe=ws&&ws.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),VQe=ws&&ws.__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)&&GQe(e,t,A);return JQe(e,t),e};Object.defineProperty(ws,"__esModule",{value:!0});ws.issue=ws.issueCommand=void 0;var WQe=VQe(require("os")),B_=dI();function I_(t,e,A){let r=new i4(t,e,A);process.stdout.write(r.toString()+WQe.EOL)}a(I_,"issueCommand");ws.issueCommand=I_;function zQe(t,e=""){I_(t,{},e)}a(zQe,"issue");ws.issue=zQe;var Q_="::",i4=class{static{a(this,"Command")}constructor(e,A,r){e||(e="missing.command"),this.command=e,this.properties=A,this.message=r}toString(){let e=Q_+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let i=this.properties[r];i&&(A?A=!1:e+=",",e+=`${r}=${XQe(i)}`)}}return e+=`${Q_}${jQe(this.message)}`,e}};function jQe(t){return(0,B_.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}a(jQe,"escapeData");function XQe(t){return(0,B_.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}a(XQe,"escapeProperty")});var N_=E(bs=>{"use strict";var ZQe=bs&&bs.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),KQe=bs&&bs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s4=bs&&bs.__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)&&ZQe(e,t,A);return KQe(e,t),e};Object.defineProperty(bs,"__esModule",{value:!0});bs.prepareKeyValueMessage=bs.issueFileCommand=void 0;var $Qe=s4(require("crypto")),w_=s4(require("fs")),n4=s4(require("os")),b_=dI();function eBe(t,e){let A=process.env[`GITHUB_${t}`];if(!A)throw new Error(`Unable to find environment variable for file command ${t}`);if(!w_.existsSync(A))throw new Error(`Missing file at path: ${A}`);w_.appendFileSync(A,`${(0,b_.toCommandValue)(e)}${n4.EOL}`,{encoding:"utf8"})}a(eBe,"issueFileCommand");bs.issueFileCommand=eBe;function tBe(t,e){let A=`ghadelimiter_${$Qe.randomUUID()}`,r=(0,b_.toCommandValue)(e);if(t.includes(A))throw new Error(`Unexpected input: name should not contain the delimiter "${A}"`);if(r.includes(A))throw new Error(`Unexpected input: value should not contain the delimiter "${A}"`);return`${t}<<${A}${n4.EOL}${r}${n4.EOL}${A}`}a(tBe,"prepareKeyValueMessage");bs.prepareKeyValueMessage=tBe});var D_=E(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.checkBypass=kp.getProxyUrl=void 0;function ABe(t){let e=t.protocol==="https:";if(R_(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}a(ABe,"getProxyUrl");kp.getProxyUrl=ABe;function R_(t){if(!t.hostname)return!1;let e=t.hostname;if(rBe(e)Line truncated
|
||||
`,u.message,u.stack);var p=new Error("tunneling socket could not be established, cause="+u.message);p.code="ECONNRESET",e.request.emit("error",p),r.removeSocket(i)}a(d,"onError")},"createSocket");Ko.prototype.removeSocket=a(function(e){var A=this.sockets.indexOf(e);if(A!==-1){this.sockets.splice(A,1);var r=this.requests.shift();r&&this.createSocket(r,function(i){r.request.onSocket(i)})}},"removeSocket");function x_(t,e){var A=this;Ko.prototype.createSocket.call(A,t,function(r){var i=t.request.getHeader("host"),n=o4({},A.options,{socket:r,servername:i?i.replace(/:.*$/,""):t.host}),s=iBe.connect(0,n);A.sockets[A.sockets.indexOf(r)]=s,e(s)})}a(x_,"createSecureSocket");function v_(t,e,A){return typeof t=="string"?{host:t,port:e,localAddress:A}:t}a(v_,"toOptions");function o4(t){for(var e=1,A=arguments.length;e<A;++e){var r=arguments[e];if(typeof r=="object")for(var i=Object.keys(r),n=0,s=i.length;n<s;++n){var o=i[n];r[o]!==void 0&&(t[o]=r[o])}}return t}a(o4,"mergeOptions");var al;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?al=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"):al=a(function(){},"debug");Fp.debug=al});var eC=E((Nut,F_)=>{F_.exports=k_()});var Wt=E((Rut,L_)=>{L_.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 Pt=E((Dut,U_)=>{"use strict";var WA=class extends Error{static{a(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}},c4=class t extends WA{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"}},l4=class t extends WA{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"}},d4=class t extends WA{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"}},u4=class t extends WA{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"}},p4=class t extends WA{static{a(this,"ResponseStatusCodeError")}constructor(e,A,r,i){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=i,this.status=A,this.statusCode=A,this.headers=r}},g4=class t extends WA{static{a(this,"InvalidArgumentError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="InvalidArgumentError
Line truncated
|
||||
\r
|
||||
`),zBe=/\r\n/g,jBe=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Up(t){AO.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=tO(t,"maxHeaderPairs",2e3),this.maxHeaderSize=tO(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new VBe(WBe),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(Up,"HeaderParser");JBe(Up,AO);Up.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};Up.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Up.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)};Up.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(zBe),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=jBe.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};rO.exports=Up});var L4=E((Hut,sO)=>{"use strict";var F4=require("node:stream").Writable,XBe=require("node:util").inherits,ZBe=v4(),nO=$_(),KBe=iO(),$Be=45,eIe=Buffer.from("-"),tIe=Buffer.from(`\r
|
||||
`),AIe=a(function(){},"EMPTY_FN");function ma(t){if(!(this instanceof ma))return new ma(t);if(F4.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 KBe(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(ma,"Dicer");XBe(ma,F4);ma.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 A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" 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 F4.prototype.emit.apply(this,arguments)};ma.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new nO(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(tIe),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};ma.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};ma.prototype.setBoundary=function(t){let e=this;this._bparser=new ZBe(`\r
|
||||
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};ma.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",AIe),this._part.resume())};ma.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===$Be)++s,++this._dashes;else{this._dashes&&(i=eIe),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new nO(this._partOpts),this._part._read=function(l){n._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&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};ma.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};sO.exports=ma});var EI=E((U4,cO)=>{"use strict";var aO=new TextDecoder("utf-8"),oO=new Map([["utf-8",aO],["utf8",aO]]);function rIe(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return AC.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 AC.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return AC.utf16le;case"base64":return AC.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return AC.other.bind(t)}}a(rIe,"getDecoder");var AC={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)),oO.has(U4.toString()))try{return oO.get(U4).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function iIe(t,e,A){return t&&rIe(A)(t,e)}a(iIe,"decodeText");cO.exports=iIe});var M4=E((Jut,gO)=>{"use strict";var mI=EI(),lO=/%[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(OO,"isValidHeaderValue");function i1e(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if(GIe.has(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(i1e,"setRequestReferrerPolicyOnRedirect");function n1e(){return"allowed"}a(n1e,"crossOriginResourcePolicyCheck");function s1e(){return"success"}a(s1e,"corsCheck");function a1e(){return"success"}a(a1e,"TAOCheck");function o1e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(o1e,"appendFetchMetadata");function c1e(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&&J4(t.origin)&&!J4(sC(t))&&(e=null);break;case"same-origin":BI(t,sC(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(c1e,"appendRequestOriginHeader");function l1e(t){return WIe.now()}a(l1e,"coarsenedSharedCurrentTime");function d1e(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(d1e,"createOpaqueTimingInfo");function u1e(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(u1e,"makePolicyContainer");function p1e(t){return{referrerPolicy:t.referrerPolicy}}a(p1e,"clonePolicyContainer");function g1e(t){let e=t.referrerPolicy;Pp(e);let A=null;if(t.referrer==="client"){let o=VIe();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=Y4(A),i=Y4(A,!0);r.toString().length>4096&&(r=i);let n=BI(t,r),s=iC(r)&&!iC(t.url);switch(e){case"origin":return i??Y4(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=sC(t);return BI(r,o)?r:iC(r)&&!iC(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(g1e,"determineRequestsReferrer");function Y4(t,e){return Pp(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(Y4,"stripURLForReferrer");function iC(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a(iC,"isURLPotentiallyTrustworthy");function h1e(t,e){if(nC===void 0)return!0;let A=m1e(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=nC.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=nC.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(h1e,"bytesMatch");var E1e=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function m1e(t){let e=[],A=!0,r=nC.getHashes();for(let i of t.split(" ")){A=!1;let n=E1e.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(m1e,"parseMetadata");function C1e(t){}a(C1e,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function BI(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(BI,"sameOrigin");function f1e(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(f1e,"createDeferredPromise");function Q1e(t){return t.controller.state==="aborted"}a(Q1e,"isAborted");function B1e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(B1e,"isCancelled");var V4={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(V4,null);function I1e(t){return V4[t.toLowerCase()]??t}a(I1e,"normalizeMethod");function y1e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Pp(typeof e=="string"),e}a(y1e,"serializeJavascriptValueToJSONString");var w1e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function b1e(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this
Line truncated
|
||||
`||t===" "||t===" "}a(VO,"isHTTPWhiteSpace");function W4(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&VO(t[r]);r++);if(A)for(;i>0&&VO(t[i]);i--);return t.slice(r,i+1)}a(W4,"removeHTTPWhitespace");function WO(t){return t==="\r"||t===`
|
||||
`||t===" "||t==="\f"||t===" "}a(WO,"isASCIIWhitespace");function J1e(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&WO(t[r]);r++);if(A)for(;i>0&&WO(t[i]);i--);return t.slice(r,i+1)}a(J1e,"removeASCIIWhitespace");ZO.exports={dataURLProcessor:q1e,URLSerializer:zO,collectASequenceOfCodePoints:wI,collectASequenceOfCodePointsFast:qp,stringPercentDecode:jO,parseMIMEType:z4,collectAnHTTPQuotedString:XO,serializeAMimeType:G1e}});var bI=E((ppt,AP)=>{"use strict";var{Blob:eP,File:KO}=require("buffer"),{types:j4}=require("util"),{kState:Un}=ec(),{isBlobLike:tP}=Ns(),{webidl:It}=Di(),{parseMIMEType:V1e,serializeAMimeType:W1e}=Ca(),{kEnumerableProperty:$O}=ct(),z1e=new TextEncoder,aC=class t extends eP{static{a(this,"File")}constructor(e,A,r={}){It.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=It.converters["sequence<BlobPart>"](e),A=It.converters.USVString(A),r=It.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=V1e(n),n==="failure"){n="";break e}n=W1e(n).toLowerCase()}s=r.lastModified}super(j1e(e,r),{type:n}),this[Un]={name:i,lastModified:s,type:n}}get name(){return It.brandCheck(this,t),this[Un].name}get lastModified(){return It.brandCheck(this,t),this[Un].lastModified}get type(){return It.brandCheck(this,t),this[Un].type}},X4=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[Un]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return It.brandCheck(this,t),this[Un].blobLike.stream(...e)}arrayBuffer(...e){return It.brandCheck(this,t),this[Un].blobLike.arrayBuffer(...e)}slice(...e){return It.brandCheck(this,t),this[Un].blobLike.slice(...e)}text(...e){return It.brandCheck(this,t),this[Un].blobLike.text(...e)}get size(){return It.brandCheck(this,t),this[Un].blobLike.size}get type(){return It.brandCheck(this,t),this[Un].blobLike.type}get name(){return It.brandCheck(this,t),this[Un].name}get lastModified(){return It.brandCheck(this,t),this[Un].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(aC.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:$O,lastModified:$O});It.converters.Blob=It.interfaceConverter(eP);It.converters.BlobPart=function(t,e){if(It.util.Type(t)==="Object"){if(tP(t))return It.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||j4.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 j1e(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=X1e(i)),A.push(z1e.encode(i))}else j4.isAnyArrayBuffer(r)||j4.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):tP(r)&&A.push(r);return A}a(j1e,"processBlobParts");function X1e(t){let e=`
|
||||
`;return process.platform==="win32"&&(e=`\r
|
||||
`),t.replace(/\r?\n/g,e)}a(X1e,"convertLineEndingsNative");function Z1e(t){return KO&&t instanceof KO||t instanceof aC||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(Z1e,"isFileLike");AP.exports={File:aC,FileLike:X4,isFileLike:Z1e}});var RI=E((hpt,aP)=>{"use strict";var{isBlobLike:NI,toUSVString:K1e,makeIterator:Z4}=Ns(),{kState:di}=ec(),{File:sP,FileLike:rP,isFileLike:$1e}=bI(),{webidl:Ft}=Di(),{Blob:e0e,File:K4}=require("buffer"),iP=K4??sP,Hp=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw Ft.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[di]=[]}append(e,A,r=void 0){if(Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!NI(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Ft.converters.USVString(e),A=NI(A)?Ft.converters.Blob(A,{strict:!1}):Ft.converters.USVString(A),r=arguments.length===3?Ft.converters.USVString(r):void 0;let i=nP(e,A,r);this[di].push(i)}delete(e){Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Ft.converters.USVString(e),this[di]=this[di].filter(A=>A.name!==e)}get(e){Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Ft.converters.USVString(e);let A=this[di].findIndex(r=>r.name===e);return A===-1?null:this[di][A].value}getAll(e){return Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Ft.converters.USVString(e),this[di].filter(A=>A.name===e).map(A=>A.value)}has(e){return Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Ft.converters.USVString(e),this[di].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!NI(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Ft.converters.USVString(e),A=NI(A)?Ft.converters.Blob(A,{strict:!1}):Ft.converters.USVString(A),r=arguments.length===3?K1e(r):void 0;let i=nP(e,A,r),n=this[di].findIndex(s=>s.name===e);n!==-1?this[di]=[...this[di].slice(0,n),i,...this[di].slice(n+1).filter(s=>s.name!==e)]:this[di].push(i)}entries(){return Ft.brandCheck(this,t),Z4(()=>this[di].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Ft.brandCheck(this,t),Z4(()=>this[di].map(e=>[e.name,e.value]),"FormData","key")}values(){return Ft.brandCheck(this,t),Z4(()=>this[di].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(Ft.brandCheck(this,t),Ft.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[r,i]of this)e.apply(A,[i,r,this])}};Hp.prototype[Symbol.iterator]=Hp.prototype.entries;Object.defineProperties(Hp.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function nP(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if($1e(e)||(e=e instanceof e0e?new iP([e],"blob",{type:e.type}):new rP(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=K4&&e instanceof K4||e instanceof sP?new iP([e],A,r):new rP(e,A,r)}return{name:t,value:e}}a(nP,"makeEntry");aP.exports={FormData:Hp}});var oC=E((mpt,EP)=>{"use strict";var t0e=RO(),Yp=ct(),{ReadableStreamFrom:A0e,isBlobLike:oP,isReadableStreamLike:r0e,readableStreamClose:i0e,createDeferredPromise:n0e,fullyReadBody:s0e}=Ns(),{FormData:cP}=RI(),{kState:Ac}=ec(),{webidl:$4}=Di(),{DOMException:uP,structuredClone:a0e}=ll(),{Blob:o0e,File:c0e}=require("buffer"),{kBodyUsed:l0e}=Wt(),e6=require("assert"),{isErrored:d0e}=ct(),{isUint8Array:pP,isArrayBuffer:u0e}=require("util/types"),{File:p0e}=bI(),{parseMIMEType:g0e,serializeAMimeType:h0e}=Ca(),tc=globalThis.ReadableStream,lP=c0e??p0e,DI=new TextEncoder,E0e=new TextDecoder;function gP(t,e=!1){tc||(tc=require("stream/web").ReadableStream);let A=null;t instanceof tc?A=t:oP(t)?A=t.stream():A=new tc({async pull(c){c.enqueue(typeof i=="string"?DI.encode(i):i),queueMicrotask(()=>i0e(c))},start(){},type:void 0}),e6(r0e(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(u0e(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Yp.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(f=>f.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),u=a(f=>f.replace(/\r?\n|\r/g,`\r
|
||||
`),"normalizeLinefeeds"),p=[],g=new Uint8Array([13,10]);n=0;let h=!1;for(let[f,B]of t)if(typeof B=="string"){let b=DI.encode(l+`; name="${d(u(f))}"\r
|
||||
\r
|
||||
${u(B)}\r
|
||||
`);p.push(b),n+=b.byteLength}else{let b=DI.encode(`${l}; name="${d(u(f))}"`+(B.name?`; filename="${d(B.name)}"`:"")+`\r
|
||||
Content-Type: ${B.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);p.push(b,B,g),typeof B.size=="number"?n+=b.byteLength+B.size+g.byteLength:h=!0}let m=DI.encode(`--${c}--`);p.push(m),n+=m.byteLength,h&&(n=null),i=t,r=a(async function*(){for(let f of p)f.stream?yield*f.stream():yield f},"action"),s="multipart/form-data; boundary="+c}else if(oP(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Yp.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof tc?t:A0e(t)}if((typeof i=="string"||Yp.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new tc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):d0e(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(gP,"extractBody");function m0e(t,e=!1){return tc||(tc=require("stream/web").ReadableStream),t instanceof tc&&(e6(!Yp.isDisturbed(t),"The body has already been consumed."),e6(!t.locked,"The stream is locked.")),gP(t,e)}a(m0e,"safelyExtractBody");function C0e(t){let[e,A]=t.stream.tee(),r=a0e(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(C0e,"cloneBody");async function*dP(t){if(t)if(pP(t))yield t;else{let e=t.stream;if(Yp.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[l0e]=!0,yield*e}}a(dP,"consumeBody");function t6(t){if(t.aborted)throw new uP("The operation was aborted.","AbortError")}a(t6,"throwIfAborted");function f0e(t){return{blob(){return SI(this,A=>{let r=y0e(this);return r==="failure"?r="":r&&(r=h0e(r)),new o0e([A],{type:r})},t)},arrayBuffer(){return SI(this,A=>new Uint8Array(A).buffer,t)},text(){return SI(this,hP,t)},json(){return SI(this,I0e,t)},async formData(){$4.brandCheck(this,t),t6(this[Ac]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new cP,n;try{n=new t0e({headers:r,preservePath:!0})}catch(o){throw new uP(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new lP(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new lP(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of dP(this[Ac].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of dP(this[Ac].body)){if(!pP(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new cP;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),t6(this[Ac]),$4.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(f0e,"bodyMixinMethods");function Q0e(t){Object.assign(t.prototype,f0e(t))}a(Q0e,"mixinBody");async function SI(t,e,A){if($4.brandCheck(t,A),t6(t[Ac]),B0e(t[Ac].body))throw new TypeError("Body is unusable");let r=n0e(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[Ac].body==null?(n(new Uint8Array),r.promise):(await s0e(t[Ac].body,n,i),r.promise)}a(SI,"specConsumeBody");function B0e(t){return t!=null&&(t.stream.locked||Yp.isDisturbed(t.stream))}a(B0e,"bodyUnusable");function hP(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),E0e.decode(t))}a(hP,"utf8DecodeBytes");function I0e(t){return JSON.parse(hP(t))}a(I0e,"parseJSONFromBytes");function y0e(t){let{headersList:e}=t[Ac],A=e.get("content-type");return A===null?"failure":g0e(A)}a(y0e,"bodyMimeType");EP.exports={extractBody:gP,safelyExtractBody:m0e,cloneBody:C0e,mixinBody:Q0e}});var QP=E((fpt,fP)=>{"use strict";var{InvalidArgumentError:zt,NotSupportedError:w0e}=Pt(),rc=require("assert"),{kHTTP2BuildRequest:b0e,kHTTP2CopyHeaders:N0e,kHTTP1BuildRequest:R0e}=Wt(),Zi=ct(),mP=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,CP=/[^\t\x20-\x7e\x80-\xff]/,D0e=/[^\u0021-\u00ff]/,fa=Symbol("handler"),ir={},A6;try{let t=require("diagnostics_channel");ir.create=t.channel("undici:request:create"),ir.bodySent=t.channel("undici:request:bodySent"),ir.headers=t.channel("undici:request:headers"),ir.trailers=t.channel("undici:request:trailers"),ir.error=t.channel("undici:request:error")}catch{ir.create={hasSubscribers:!1},ir.bodySent={hasSubscribers:!1},ir.headers={hasSubscribers:!1},ir.trailers={hasSubscribers:!1},ir.error={hasSLine truncated
|
||||
`),this.body=f.stream,this.contentLength=f.length}else Zi.isBlobLike(i)&&this.contentType==null&&i.type&&(this.contentType=i.type,this.headers+=`content-type: ${i.type}\r
|
||||
`);Zi.validateHandler(m,r,l),this.servername=Zi.getServerName(this.host),this[fa]=m,ir.create.hasSubscribers&&ir.create.publish({request:this})}onBodySent(e){if(this[fa].onBodySent)try{return this[fa].onBodySent(e)}catch(A){this.abort(A)}}onRequestSent(){if(ir.bodySent.hasSubscribers&&ir.bodySent.publish({request:this}),this[fa].onRequestSent)try{return this[fa].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(rc(!this.aborted),rc(!this.completed),this.error)e(this.error);else return this.abort=e,this[fa].onConnect(e)}onHeaders(e,A,r,i){rc(!this.aborted),rc(!this.completed),ir.headers.hasSubscribers&&ir.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:i}});try{return this[fa].onHeaders(e,A,r,i)}catch(n){this.abort(n)}}onData(e){rc(!this.aborted),rc(!this.completed);try{return this[fa].onData(e)}catch(A){return this.abort(A),!1}}onUpgrade(e,A,r){return rc(!this.aborted),rc(!this.completed),this[fa].onUpgrade(e,A,r)}onComplete(e){this.onFinally(),rc(!this.aborted),this.completed=!0,ir.trailers.hasSubscribers&&ir.trailers.publish({request:this,trailers:e});try{return this[fa].onComplete(e)}catch(A){this.onError(A)}}onError(e){if(this.onFinally(),ir.error.hasSubscribers&&ir.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[fa].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,A){return cC(this,e,A),this}static[R0e](e,A,r){return new t(e,A,r)}static[b0e](e,A,r){let i=A.headers;A={...A,headers:null};let n=new t(e,A,r);if(n.headers={},Array.isArray(i)){if(i.length%2!==0)throw new zt("headers array must be even");for(let s=0;s<i.length;s+=2)cC(n,i[s],i[s+1],!0)}else if(i&&typeof i=="object"){let s=Object.keys(i);for(let o=0;o<s.length;o++){let c=s[o];cC(n,c,i[c],!0)}}else if(i!=null)throw new zt("headers must be an object or an array");return n}static[N0e](e){let A=e.split(`\r
|
||||
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function Od(t,e,A){if(e&&typeof e=="object")throw new zt(`invalid ${t} header`);if(e=e!=null?`${e}`:"",CP.exec(e)!==null)throw new zt(`invalid ${t} header`);return A?e:`${t}: ${e}\r
|
||||
`}a(Od,"processHeaderValue");function cC(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new zt(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(CP.exec(A)!==null)throw new zt(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new zt("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=Od(e,A,r):t.headers+=Od(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new zt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new zt("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new zt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new zt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new w0e("expect header not supported");if(mP.exec(e)===null)throw new zt("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${Od(e,A[i],r)}`:t.headers[e]=Od(e,A[i],r):t.headers+=Od(e,A[i]);else r?t.headers[e]=Od(e,A,r):t.headers+=Od(e,A)}}}a(cC,"processHeader");fP.exports=r6});var xI=E((Bpt,BP)=>{"use strict";var S0e=require("events"),i6=class extends S0e{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};BP.exports=i6});var dC=E((ypt,IP)=>{"use strict";var x0e=xI(),{ClientDestroyedError:n6,ClientClosedError:v0e,InvalidArgumentError:Gp}=Pt(),{kDestroy:k0e,kClose:F0e,kDispatch:s6,kInterceptors:Pd}=Wt(),Jp=Symbol("destroyed"),lC=Symbol("closed"),ic=Symbol("onDestroyed"),Vp=Symbol("onClosed"),vI=Symbol("Intercepted Dispatch"),a6=class extends x0e{static{a(this,"DispatcherBase")}constructor(){super(),this[Jp]=!1,this[ic]=null,this[lC]=!1,this[Vp]=[]}get destroyed(){return this[Jp]}get closed(){return this[lC]}get interceptors(){return this[Pd]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[Pd][A]!="function")throw new Gp("interceptor must be an function")}this[Pd]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new Gp("invalid callback");if(this[Jp]){queueMicrotask(()=>e(new n6,null));return}if(this[lC]){this[Vp]?this[Vp].push(e):queueMicrotask(()=>e(null,null));return}this[lC]=!0,this[Vp].push(e);let A=a(()=>{let r=this[Vp];this[Vp]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[F0e]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new Gp("invalid callback");if(this[Jp]){this[ic]?this[ic].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new n6),this[Jp]=!0,this[ic]=this[ic]||[],this[ic].push(A);let r=a(()=>{let i=this[ic];this[ic]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[k0e](e).then(()=>{queueMicrotask(r)})}[vI](e,A){if(!this[Pd]||this[Pd].length===0)return this[vI]=this[s6],this[s6](e,A);let r=this[s6].bind(this);for(let i=this[Pd].length-1;i>=0;i--)r=this[Pd][i](r);return this[vI]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new Gp("handler must be an object");try{if(!e||typeof e!="object")throw new Gp("opts must be an object.");if(this[Jp]||this[ic])throw new n6;if(this[lC])throw new v0e;return this[vI](e,A)}catch(r){if(typeof A.onError!="function")throw new Gp("invalid onError method");return A.onError(r),!1}}};IP.exports=a6});var uC=E((Rpt,bP)=>{"use strict";var L0e=require("net"),yP=require("assert"),wP=ct(),{InvalidArgumentError:U0e,ConnectTimeoutError:T0e}=Pt(),o6,c6;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?c6=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:c6=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function M0e({allowH2:t,maxCachedSessi
Line truncated
|
||||
`,this[HP]=c??3e5,this[qP]=i??3e5,this[CC]=b??!0,this[pye]=C,this[fC]=N,this[ul]=null,this[GP]=w>-1?w:-1,this[Ka]="h1",this[Mn]=null,this[OI]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[JP]=`${this[Vr].hostname}${this[Vr].port?`:${this[Vr].port}`:""}`,this[iA]=[],this[nA]=0,this[Tn]=0}get pipelining(){return this[gl]}set pipelining(e){this[gl]=e,_n(this,!0)}get[Yd](){return this[iA].length-this[Tn]}get[yA](){return this[Tn]-this[nA]}get[Hd](){return this[iA].length-this[nA]}get[uye](){return!!this[SA]&&!this[jp]&&!this[SA].destroyed}get[m6](){let e=this[SA];return e&&(e[Si]||e[sc]||e[Zp])||this[Hd]>=(this[gl]||1)||this[Yd]>0}[dye](e){jP(this),this.once("connect",e)}[Eye](e,A){let r=e.origin||this[Vr].origin,i=this[Ka]==="h2"?E6[Cye](r,e,A):E6[Qye](r,e,A);return this[iA].push(i),this[qd]||(Ce.bodyLength(i.body)==null&&Ce.isIterable(i.body)?(this[qd]=1,process.nextTick(_n,this)):_n(this,!0)),this[qd]&&this[pl]!==2&&this[m6]&&(this[pl]=2),this[pl]<2}async[gye](){return new Promise(e=>{this[Hd]?this[ul]=e:e(null)})}async[hye](e){return new Promise(A=>{let r=this[iA].splice(this[Tn]);for(let n=0;n<r.length;n++){let s=r[n];xi(this,s,e)}let i=a(()=>{this[ul]&&(this[ul](),this[ul]=null),A()},"callback");this[Mn]!=null&&(Ce.destroy(this[Mn],e),this[Mn]=null,this[OI]=null),this[SA]?Ce.destroy(this[SA].on("close",i),e):queueMicrotask(i),_n(this)})}};function Dye(t){re(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[SA][Wr]=t,YI(this[Za],t)}a(Dye,"onHttp2SessionError");function Sye(t,e,A){let r=new Xa(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[SA][Wr]=r,YI(this[Za],r))}a(Sye,"onHttp2FrameError");function xye(){Ce.destroy(this,new Xp("other side closed")),Ce.destroy(this[SA],new Xp("other side closed"))}a(xye,"onHttp2SessionEnd");function vye(t){let e=this[Za],A=new Xa(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[SA]=null,e[Mn]=null,e.destroyed){re(this[Yd]===0);let r=e[iA].splice(e[nA]);for(let i=0;i<r.length;i++){let n=r[i];xi(this,n,A)}}else if(e[yA]>0){let r=e[iA][e[nA]];e[iA][e[nA]++]=null,xi(e,r,A)}e[Tn]=e[nA],re(e[yA]===0),e.emit("disconnect",e[Vr],[e],A),_n(e)}a(vye,"onHTTP2GoAway");var Wa=RP(),kye=LI(),Fye=Buffer.alloc(0);async function Lye(){let t=process.env.JEST_WORKER_ID?p6():void 0,e;try{e=await WebAssembly.compile(Buffer.from(LP(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||p6(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-ja+za.byteOffset;return hr.onStatus(new UI(za.buffer,n,i))||0},wasm_on_message_begin:A=>(re.strictEqual(hr.ptr,A),hr.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-ja+za.byteOffset;return hr.onHeaderField(new UI(za.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-ja+za.byteOffset;return hr.onHeaderValue(new UI(za.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(re.strictEqual(hr.ptr,A),hr.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-ja+za.byteOffset;return hr.onBody(new UI(za.buffer,n,i))||0},wasm_on_message_complete:A=>(re.strictEqual(hr.ptr,A),hr.onMessageComplete()||0)}})}a(Lye,"lazyllhttp");var h6=null,Q6=Lye();Q6.catch();var hr=null,za=null,TI=0,ja=null,Kp=1,_I=2,B6=3,I6=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){re(Number.isFinite(e[MI])&&e[MI]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(Wa.TYPE.RESPONSE),this.client=e,this.socket=A,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[MI],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[GP]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(g6.clearTimeout(this.timeout),e?(this.timeout=g6.setTimeout(Uye,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||(re(this.ptr!=null),re(hr==null),this.llhttp.llhttp_resume(this.ptr),re(this.timeoutType===_I),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||Fye),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){re(this.ptr!=null),re(hr==null),re(!this.paused);let{socket:A,llhttp:r}=this;e.length>TI&&(ja&&r.free(ja),TI=Math.ceil(e.length/4096)*4096,ja=r.malloc(TI)),new Uint8Array(r.memory.buffer,ja,TI).set(e);try{let i;try{za=e,hr=this,i=r.llhttp_execute(this.ptr,ja,e.length)}catch(s){throw s}finally{hr=null,za=null}let n=r.llhttp_get_error_pos(this.ptr)-ja;if(i===Wa.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===Wa.ERROR.PAUSED)this.paused=!0,A.unshift(e.slice(n));e
Line truncated
|
||||
`;return typeof n=="string"?h+=`host: ${n}\r
|
||||
`:h+=t[_P],s?h+=`connection: upgrade\r
|
||||
upgrade: ${s}\r
|
||||
`:t[gl]&&!g[Si]?h+=`connection: keep-alive\r
|
||||
`:h+=`connection: close\r
|
||||
`,o&&(h+=o),ui.sendHeaders.hasSubscribers&&ui.sendHeaders.publish({request:e,headers:h,socket:g}),!A||u===0?(p===0?g.write(`${h}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(re(p===null,"no body must not have content length"),g.write(`${h}\r
|
||||
`,"latin1")),e.onRequestSent()):Ce.isBuffer(A)?(re(p===A.byteLength,"buffer body must have content length"),g.cork(),g.write(`${h}content-length: ${p}\r
|
||||
\r
|
||||
`,"latin1"),g.write(A),g.uncork(),e.onBodySent(A),e.onRequestSent(),d||(g[Si]=!0)):Ce.isBlobLike(A)?typeof A.stream=="function"?qI({body:A.stream(),client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):KP({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):Ce.isStream(A)?ZP({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):Ce.isIterable(A)?qI({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):re(!1),!0}a(Mye,"write");function _ye(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=E6[fye](d.trim()):u=d,o)return xi(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||xi(t,A,b||new w6)})}catch(b){xi(t,A,b)}if(A.aborted)return!1;let p,g=t[OI];if(u[Bye]=s||t[JP],u[Iye]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[yye]=n,u[wye]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=Ce.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),XP(i)&&m>0&&A.contentLength!=null&&A.contentLength!==m){if(t[CC])return xi(t,A,new nc),!1;process.emitWarning(new nc)}m!=null&&(re(r,"no body must not have content length"),u[bye]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[Nye]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{let{[Rye]:I,...C}=b;A.onHeaders(Number(I),C,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[Mn]&&!t[Mn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,Ce.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new Xa(`HTTP/2: "frameError" received - type ${b}, code ${I}`);xi(t,A,C),t[Mn]&&!t[Mn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,Ce.destroy(p,C))}),!0;function B(){r?Ce.isBuffer(r)?(re(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):Ce.isBlobLike(r)?typeof r.stream=="function"?qI({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[SA],header:""}):KP({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[SA]}):Ce.isStream(r)?ZP({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[SA],h2stream:p,header:""}):Ce.isIterable(r)?qI({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[SA]}):re(!1):A.onRequestSent()}a(B,"writeBodyH2")}a(_ye,"writeH2");function ZP({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(re(n!==0||A[yA]===0,"stream body cannot be pipelined"),A[Ka]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=tye(e,t,f=>{f?(Ce.destroy(e,f),Ce.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),Ce.destroy(h)});return}let c=!1,l=new HI({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){Ce.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){if(c)return;let h=new w6;queueMicrotask(()=>g(h))},"onAbort"),g=a(function(h){if(!c){if(c=!0,re(i.destroyed||i[sc]&&A[yA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?Ce.destroy(e,h):Ce.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(ZP,"writeStream");async function KP({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){re(n===e.size,"blob body must have content length");let c=A[Ka]==="h2";try{if(n!=null&&n!==e.size)throw new nc;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Si]=!0),_n(A)}catch(l){Ce.destroy(c?t:i,l)}}a(KP,"writeBlob");async function qI({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){re(n!==0||A[yA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{re(c===null),i[Wr]?g(i[Wr]):c=p}),"waitForDrain");if(A[Ka]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[Wr])throw i[Wr];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new HI({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[Wr])throw i[Wr];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(qI,"writeIterable");var HI=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[sc]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[Wr])throw A[Wr];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[CC])throw new nc;process.emitWarning(new nc)}A.cork(),s===0&&(o||(A[Si]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
|
||||
`,"latin1"):A.write(`${c}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1")),i===null&&A.write(`\r
|
||||
${l.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=l;let d=A.write(e);return A.uncork(),r.onBodySent(e),d||A[DA].timeout&&A[DA].timeoutType===Kp&&A[DA].timeout.refresh&&A[DA].timeout.refresh(),d}end(){let{socket:e,contentLength:A,client:r,bytesWritten:i,expectsPayload:n,header:s,request:o}=this;if(o.onRequestSent(),e[sc]=!1,e[Wr])throw e[Wr];if(!e.destroyed){if(i===0?n?e.write(`${s}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${s}\r
|
||||
`,"latin1"):A===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),A!==null&&i!==A){if(r[CC])throw new nc;process.emitWarning(new nc)}e[DA].timeout&&e[DA].timeoutType===Kp&&e[DA].timeout.refresh&&e[DA].timeout.refresh(),_n(r)}}destroy(e){let{socket:A,client:r}=this;A[sc]=!1,e&&(re(r[yA]<=1,"pipeline should only contain this request"),Ce.destroy(A,e))}};function xi(t,e,A){try{e.onError(A),re(e.aborted)}catch(r){t.emit("error",r)}}a(xi,"errorRequest");$P.exports=f6});var tq=E((qpt,eq)=>{"use strict";var GI=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)}};eq.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new GI}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new GI),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var rq=E((Ypt,Aq)=>{var{kFree:Oye,kConnected:Pye,kPending:qye,kQueued:Hye,kRunning:Yye,kSize:Gye}=Wt(),Gd=Symbol("pool"),b6=class{static{a(this,"PoolStats")}constructor(e){this[Gd]=e}get connected(){return this[Gd][Pye]}get free(){return this[Gd][Oye]}get pending(){return this[Gd][qye]}get queued(){return this[Gd][Hye]}get running(){return this[Gd][Yye]}get size(){return this[Gd][Gye]}};Aq.exports=b6});var v6=E((Jpt,pq)=>{"use strict";var Jye=dC(),Vye=tq(),{kConnected:N6,kSize:iq,kRunning:nq,kPending:sq,kQueued:BC,kBusy:Wye,kFree:zye,kUrl:jye,kClose:Xye,kDestroy:Zye,kDispatch:Kye}=Wt(),$ye=rq(),Ki=Symbol("clients"),vi=Symbol("needDrain"),IC=Symbol("queue"),R6=Symbol("closed resolve"),D6=Symbol("onDrain"),aq=Symbol("onConnect"),oq=Symbol("onDisconnect"),cq=Symbol("onConnectionError"),S6=Symbol("get dispatcher"),dq=Symbol("add client"),uq=Symbol("remove client"),lq=Symbol("stats"),x6=class extends Jye{static{a(this,"PoolBase")}constructor(){super(),this[IC]=new Vye,this[Ki]=[],this[BC]=0;let e=this;this[D6]=a(function(r,i){let n=e[IC],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[BC]--,s=!this.dispatch(o.opts,o.handler)}this[vi]=s,!this[vi]&&e[vi]&&(e[vi]=!1,e.emit("drain",r,[e,...i])),e[R6]&&n.isEmpty()&&Promise.all(e[Ki].map(o=>o.close())).then(e[R6])},"onDrain"),this[aq]=(A,r)=>{e.emit("connect",A,[e,...r])},this[oq]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[cq]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[lq]=new $ye(this)}get[Wye](){return this[vi]}get[N6](){return this[Ki].filter(e=>e[N6]).length}get[zye](){return this[Ki].filter(e=>e[N6]&&!e[vi]).length}get[sq](){let e=this[BC];for(let{[sq]:A}of this[Ki])e+=A;return e}get[nq](){let e=0;for(let{[nq]:A}of this[Ki])e+=A;return e}get[iq](){let e=this[BC];for(let{[iq]:A}of this[Ki])e+=A;return e}get stats(){return this[lq]}async[Xye](){return this[IC].isEmpty()?Promise.all(this[Ki].map(e=>e.close())):new Promise(e=>{this[R6]=e})}async[Zye](e){for(;;){let A=this[IC].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[Ki].map(A=>A.destroy(e)))}[Kye](e,A){let r=this[S6]();return r?r.dispatch(e,A)||(r[vi]=!0,this[vi]=!this[S6]()):(this[vi]=!0,this[IC].push({opts:e,handler:A}),this[BC]++),!this[vi]}[dq](e){return e.on("drain",this[D6]).on("connect",this[aq]).on("disconnect",this[oq]).on("connectionError",this[cq]),this[Ki].push(e),this[vi]&&process.nextTick(()=>{this[vi]&&this[D6](e[jye],[this,e])}),this}[uq](e){e.close(()=>{let A=this[Ki].indexOf(e);A!==-1&&this[Ki].splice(A,1)}),this[vi]=this[Ki].some(A=>!A[vi]&&A.closed!==!0&&A.destroyed!==!0)}};pq.exports={PoolBase:x6,kClients:Ki,kNeedDrain:vi,kAddClient:dq,kRemoveClient:uq,kGetDispatcher:S6}});var $p=E((Wpt,mq)=>{"use strict";var{PoolBase:e2e,kClients:gq,kNeedDrain:t2e,kAddClient:A2e,kGetDispatcher:r2e}=v6(),i2e=QC(),{InvalidArgumentError:k6}=Pt(),F6=ct(),{kUrl:hq,kInterceptors:n2e}=Wt(),s2e=uC(),L6=Symbol("options"),U6=Symbol("connections"),Eq=Symbol("factory");function a2e(t,e){return new i2e(t,e)}a(a2e,"defaultFactory");var T6=class extends e2e{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=a2e,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new k6("invalid connections");if(typeof r!="function")throw new k6("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new k6("connect must be a function or an object");typeof i!="function"&&(i=s2e({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n,...F6.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[n2e]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[U6]=A||null,this[hq]=F6.parseOrigin(e),this[L6]={...F6.dee
Line truncated
|
||||
${r.count} ${r.noun} ${r.is} pending:
|
||||
|
||||
${e.format(A)}
|
||||
`.trim())}};jH.exports=QS});var AY=E((_gt,tY)=>{"use strict";var{kProxy:obe,kClose:cbe,kDestroy:lbe,kInterceptors:dbe}=Wt(),{URL:ZH}=require("url"),KH=wC(),ube=$p(),pbe=dC(),{InvalidArgumentError:SC,RequestAbortedError:gbe}=Pt(),$H=uC(),RC=Symbol("proxy agent"),d1=Symbol("proxy client"),DC=Symbol("proxy headers"),BS=Symbol("request tls settings"),hbe=Symbol("proxy tls settings"),eY=Symbol("connect endpoint function");function Ebe(t){return t==="https:"?443:80}a(Ebe,"defaultProtocolPort");function mbe(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new SC("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(mbe,"buildProxyOptions");function Cbe(t,e){return new ube(t,e)}a(Cbe,"defaultFactory");var IS=class extends pbe{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[obe]=mbe(e),this[RC]=new KH(e),this[dbe]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new SC("Proxy opts.uri is mandatory");let{clientFactory:A=Cbe}=e;if(typeof A!="function")throw new SC("Proxy opts.clientFactory must be a function.");this[BS]=e.requestTls,this[hbe]=e.proxyTls,this[DC]=e.headers||{};let r=new ZH(e.uri),{origin:i,port:n,host:s,username:o,password:c}=r;if(e.auth&&e.token)throw new SC("opts.auth cannot be used in combination with opts.token");e.auth?this[DC]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[DC]["proxy-authorization"]=e.token:o&&c&&(this[DC]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(o)}:${decodeURIComponent(c)}`).toString("base64")}`);let l=$H({...e.proxyTls});this[eY]=$H({...e.requestTls}),this[d1]=A(r,{connect:l}),this[RC]=new KH({...e,connect:async(d,u)=>{let p=d.host;d.port||(p+=`:${Ebe(d.protocol)}`);try{let{socket:g,statusCode:h}=await this[d1].connect({origin:i,port:n,path:p,signal:d.signal,headers:{...this[DC],host:s}});if(h!==200&&(g.on("error",()=>{}).destroy(),u(new gbe(`Proxy response (${h}) !== 200 when HTTP Tunneling`))),d.protocol!=="https:"){u(null,g);return}let m;this[BS]?m=this[BS].servername:m=d.servername,this[eY]({...d,servername:m,httpSocket:g},u)}catch(g){u(g)}}})}dispatch(e,A){let{host:r}=new ZH(e.origin),i=fbe(e.headers);return Qbe(i),this[RC].dispatch({...e,headers:{...i,host:r}},A)}async[cbe](){await this[RC].close(),await this[d1].close()}async[lbe](){await this[RC].destroy(),await this[d1].destroy()}};function fbe(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(fbe,"buildHeaders");function Qbe(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new SC("Proxy-Authorization should be sent in ProxyAgent constructor")}a(Qbe,"throwIfProxyAuthIsSent");tY.exports=IS});var aY=E((Pgt,sY)=>{var Xd=require("assert"),{kRetryHandlerDefaultRetry:rY}=Wt(),{RequestRetryError:u1}=Pt(),{isDisturbed:iY,parseHeaders:Bbe,parseRangeHeader:nY}=ct();function Ibe(t){let e=Date.now();return new Date(t).getTime()-e}a(Ibe,"calculateRetryAfterHeader");var yS=class t{static{a(this,"RetryHandler")}constructor(e,A){let{retryOptions:r,...i}=e,{retry:n,maxRetries:s,maxTimeout:o,minTimeout:c,timeoutFactor:l,methods:d,errorCodes:u,retryAfter:p,statusCodes:g}=r??{};this.dispatch=A.dispatch,this.handler=A.handler,this.opts=i,this.abort=null,this.aborted=!1,this.retryOpts={retry:n??t[rY],retryAfter:p??!0,maxTimeout:o??30*1e3,timeout:c??500,timeoutFactor:l??2,maxRetries:s??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:g??[500,502,503,504,429],errorCodes:u??["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(h=>{this.aborted=!0,this.abort?this.abort(h):this.reason=h})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,A,r){this.handler.onUpgrade&&this.handler.onUpgrade(e,A,r)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[rY](e,{state:A,opts:r},i){let{statusCode:n,code:s,headers:o}=e,{method:c,retryOptions:l}=r,{maxRetries:d,timeout:u,maxTimeout:p,timeoutFactor:g,statusCodes:h,errorCodes:m,methods:f}=l,{counter:B,currentTimeout:b}=A;if(b=b!=null&&b>0?b:u,s&&s!=="UND_ERR_REQ_RETRY"&&s!=="UND_ERR_SOCKET"&&!m.includes(s)){i(e);return}if(Array.isArray(f)&&!f.includes(c)){i(e);return}if(n!=null&&Array.isArray(h)&&!h.includes(n)){i(e);return}if(B>d){i(e);return}let I=o!=null&&o["retry-after"];I&&(I=Number(I),I=isNaN(I)?Ibe(I):I*1e3);let C=I>0?Math.min(I,p):Math.min(b*g**B,p);A.currentTimeout=C,setTimeout(()=>i(null),C)}onHeaders(e,A,r,i){let n=Bbe(A);if(this.retryCount+=1,e>=300)return this.abort(new u1("Request failed",e,{headers:n,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let o=nY(n["content-range"]);if(!o)return this.abort(new u1("
Line truncated
|
||||
|
||||
Error Code : ${s.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 H6(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}(0,U6.debug)(`ID token url is ${a}`);let i=yield t.getCall(a);return(0,U6.setSecret)(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};wn.OidcClient=em});var rm=E(Wt=>{"use strict";var tm=Wt&&Wt.__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{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.summary=Wt.markdownSummary=Wt.SUMMARY_DOCS_URL=Wt.SUMMARY_ENV_VAR=void 0;var AS=require("os"),am=require("fs"),{access:BS,appendFile:MS,writeFile:LS}=am.promises;Wt.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Wt.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var im=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return tm(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Wt.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Wt.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield BS(e,am.constants.R_OK|am.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 tm(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?LS:MS)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return tm(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(AS.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:l,colspan:d,rowspan:c}=s,u=p?"th":"td",m=Object.assign(Object.assign({},d&&{colspan:d}),c&&{rowspan:c});return this.wrap(u,l,m)}).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()}},V6=new im;Wt.markdownSummary=V6;Wt.summary=V6});var $6=E(Xt=>{"use strict";var qS=Xt&&Xt.__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]}),zS=Xt&&Xt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),kS=Xt&&Xt.__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)&&qS(e,t,a);return zS(e,t),e};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.toPlatformPath=Xt.toWin32Path=Xt.toPosixPath=void 0;var jS=kS(require("path"));function HS(t){return t.replace(/[\\]/g,"/")}o(HS,"toPosixPath");Xt.toPosixPath=HS;function US(t){return t.replace(/[/]/g,"\\")}o(US,"toWin32Path");Xt.toWin32Path=US;function FS(t){return t.replace(/[/\\]/g,jS.sep)}o(FS,"toPlatformPath");Xt.toPlatformPath=FS});var sm=E(J=>{"use strict";var VS=J&&J.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Line truncated
|
||||
`);return{name:e,version:a}}),"getLinuxInfo");he.platform=l4.default.platform();he.arch=l4.default.arch();he.isWindows=he.platform==="win32";he.isMacOS=he.platform==="darwin";he.isLinux=he.platform==="linux";function NC(){return tl(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield he.isWindows?xC():he.isMacOS?bC():wC()),{platform:he.platform,arch:he.arch,isWindows:he.isWindows,isMacOS:he.isMacOS,isLinux:he.isLinux})})}o(NC,"getDetails");he.getDetails=NC});var rt=E(W=>{"use strict";var _C=W&&W.__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]}),SC=W&&W.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),cm=W&&W.__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)&&_C(e,t,a);return SC(e,t),e},c4=W&&W.__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{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(W,"__esModule",{value:!0});W.platform=W.toPlatformPath=W.toWin32Path=W.toPosixPath=W.markdownSummary=W.summary=W.getIDToken=W.getState=W.saveState=W.group=W.endGroup=W.startGroup=W.info=W.notice=W.warning=W.error=W.debug=W.isDebug=W.setFailed=W.setCommandEcho=W.setOutput=W.getBooleanInput=W.getMultilineInput=W.getInput=W.addPath=W.setSecret=W.exportVariable=W.ExitCode=void 0;var ba=R6(),Dr=D6(),Sn=Fp(),u4=cm(require("os")),CC=cm(require("path")),EC=F6(),dm;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(dm||(W.ExitCode=dm={}));function TC(t,e){let a=(0,Sn.toCommandValue)(e);if(process.env[t]=a,process.env.GITHUB_ENV||"")return(0,Dr.issueFileCommand)("ENV",(0,Dr.prepareKeyValueMessage)(t,e));(0,ba.issueCommand)("set-env",{name:t},a)}o(TC,"exportVariable");W.exportVariable=TC;function OC(t){(0,ba.issueCommand)("add-mask",{},t)}o(OC,"setSecret");W.setSecret=OC;function RC(t){process.env.GITHUB_PATH||""?(0,Dr.issueFileCommand)("PATH",t):(0,ba.issueCommand)("add-path",{},t),process.env.PATH=`${t}${CC.delimiter}${process.env.PATH}`}o(RC,"addPath");W.addPath=RC;function um(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(um,"getInput");W.getInput=um;function PC(t,e){let a=um(t,e).split(`
|
||||
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}o(PC,"getMultilineInput");W.getMultilineInput=PC;function IC(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=um(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(IC,"getBooleanInput");W.getBooleanInput=IC;function DC(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,Dr.issueFileCommand)("OUTPUT",(0,Dr.prepareKeyValueMessage)(t,e));process.stdout.write(u4.EOL),(0,ba.issueCommand)("set-output",{name:t},(0,Sn.toCommandValue)(e))}o(DC,"setOutput");W.setOutput=DC;function AC(t){(0,ba.issue)("echo",t?"on":"off")}o(AC,"setCommandEcho");W.setCommandEcho=AC;function BC(t){process.exitCode=dm.Failure,m4(t)}o(BC,"setFailed");W.setFailed=BC;function MC(){return process.env.RUNNER_DEBUG==="1"}o(MC,"isDebug");W.isDebug=MC;function LC(t){(0,ba.issueCommand)("debug",{},t)}o(LC,"debug");W.debug=LC;function m4(t,e={}){(0,ba.issueCommand)("error",(0,Sn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(m4,"error");W.error=m4;function qC(t,e={}){(0,ba.issueCommand)("warning",(0,Sn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(qC,"warning");W.warning=qC;function zC(t,e={}){(0,ba.issueCommand)("notice",(0,Sn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(zC,"notice");W.notice=zC;function kC(t){process.stdout.write(t+u4.EOL)}o(kC,"info");W.info=kC;function f4(t){(0,ba.issue)("group",t)}o(f4,"startGroup");W.startGroup=f4;function h4(){(0,ba.issue)("endgroup")}o(h4,"endGroup");W.endGroup=h4;function jC(t,e){return c4(this,void 0,void 0,function*(){f4(t);let a;try{a=yield e()}finally{h4()}return a})}o(jC,"group");W.group=jC;function HC(t,e){if(process.env.GITHUB_STATE||"")return(0,Dr.issueFileCommand)("STATE",(0,Dr.prepareKeyValueMessage)(t,e));(0,ba.issueCommand)("save-state",{name:t},(0,Sn.toCommandValue)(e))}o(HC,"saveState");W.saveState=HC;function UC(t){return process.env[`STATE_${t}`]||""}o(UC,"getState");W.getState=UC;function FC(t){return c4(this,void 0,void 0,function*(){return yield EC.OidcClient.getIDToken(t)})}o(FC,"getIDToken");W.getIDToken=FC;var VC=rm();Object.defineProperty(W,"summary",{enumerable:!0,get:function(){return VC.summary}});var $C=rm();Object.defineProperty(W,"markdownSummary",{enumerable:!0,get:function(){return $C.markdownSummary}});var mm=$6();Object.defineProperty(W,"toPosixPath",{enumerable:!0,get:function(){return mm.toPosixPath}});Object.defineProperty(W,"toWin32Path",{enumerable:!0,get:function(){return mm.toWin32Path}});Object.defineProperty(W,"toPlatformPath",{enumerable:!0,get:function(){return mm.toPlatformPath}});W.platform=cm(d4())});var g4=E(ai=>{"use strict";var GC=ai&&ai.__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]}),WC=ai&&ai.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),XC=ai&&ai.__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)&&GC(e,t,a);return WC(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.getOptions=void 0;var fm=XC(rt());function KC(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,fm.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,fm.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,fm.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}o(KC,"getOptions");ai.getOptions=KC});var il=E(Ve=>{"use strict";var QC=Ve&&Ve.__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]}),YC=Ve&&Ve.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),JC=Ve&&Ve.__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)&&QC(e,t,a);return YC(e,t),e},ZC=Ve&&Ve.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.safeTrimTrailingSeparator=Ve.normalizeSeparators=Ve.hasRoot=Ve.hasAbsoluteRoot=Ve.ensureAbsoluteRoot=Ve.dirname=void 0;var al=JC(require("path")),Ar=ZC(require("assert")),Qi=process.platform==="win32";function eE(t){if(t=gm(t),Qi&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=al.dirname(t);return Qi&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=gm(e)),e}o(eE,"dirname");Ve.dirname=eE;function tE(t,e){if(Ar.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Ar.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),hm(e))return e;if(Qi){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let a=process.cwd();rLine truncated
|
||||
%s`,g,g,I,i);var _=I.type==="*"?bm:I.type==="?"?xm:"\\"+I.type;r=!0,i=i.slice(0,I.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 D=p[N],C=i.slice(0,D.reStart),P=i.slice(D.reStart,D.reEnd-8),B=i.slice(D.reEnd-8,D.reEnd),j=i.slice(D.reEnd);B+=j;var pe=C.split("(").length-1,ge=j;for(x=0;x<pe;x++)ge=ge.replace(/\)[+*?]?/,"");j=ge;var Y="";j===""&&e!==nl&&(Y="$");var at=C+P+j+Y+B;i=at}if(i!==""&&r&&(i="(?=.)"+i),O&&(i=m+i),e===nl)return[i,r];if(!r)return PE(t);var fe=a.nocase?"i":"";try{var za=new RegExp("^"+i+"$",fe)}catch{return new RegExp("$.")}return za._glob=t,za._src=i,za}o(OE,"parse");pa.makeRe=function(t,e){return new It(t,e||{}).makeRe()};It.prototype.makeRe=RE;function RE(){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?bm:e.dot?wE:NE,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===wm?a:typeof s=="string"?IE(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(RE,"makeRe");pa.match=function(t,e,a){a=a||{};var i=new It(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};It.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;so.sep!=="/"&&(e=e.split(so.sep).join("/")),e=e.split(q4),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],l=e;i.matchBase&&p.length===1&&(l=[n]);var d=this.matchOne(l,p,a);if(d)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");It.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 l=e[n],d=t[r];if(this.debug(e,l,d),l===!1)return!1;if(l===wm){this.debug("GLOBSTAR",[e,l,d]);var c=r,u=n+1;if(u===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 m=t[c];if(this.debug(`
|
||||
globstar while`,t,c,e,u,m),this.matchOne(t.slice(c),e.slice(u),a))return this.debug("globstar found match!",c,s,m),!0;if(m==="."||m===".."||!i.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,c,e,u);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(a&&(this.debug(`
|
||||
>>> no match, partial?`,t,c,e,u),c===s))}var f;if(typeof l=="string"?(f=d===l,this.debug("string match",l,d,f)):(f=d.match(l),this.debug("pattern match",l,d,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 PE(t){return t.replace(/\\(.)/g,"$1")}o(PE,"globUnescape");function IE(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(IE,"regExpEscape")});var U4=E(wa=>{"use strict";var DE=wa&&wa.__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]}),AE=wa&&wa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),H4=wa&&wa.__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)&&DE(e,t,a);return AE(e,t),e},BE=wa&&wa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wa,"__esModule",{value:!0});wa.Path=void 0;var oo=H4(require("path")),Ji=H4(il()),po=BE(require("assert")),ME=process.platform==="win32",Nm=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(po.default(e,"Parameter 'itemPath' must not be empty"),e=Ji.safeTrimTrailingSeparator(e),!Ji.hasRoot(e))this.segments=e.split(oo.sep);else{let a=e,i=Ji.dirname(a);for(;i!==a;){let r=oo.basename(a);this.segments.unshift(r),a=i,i=Ji.dirname(a)}this.segments.unshift(a)}else{po.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];po.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=Ji.normalizeSeparators(e[a]),a===0&&Ji.hasRoot(i)?(i=Ji.safeTrimTrailingSeparator(i),po.default(i===Ji.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(po.default(!i.includes(oo.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(oo.sep)||ME&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=oo.sep,e+=this.segments[i];return e}};wa.Path=Nm});var F4=E(Na=>{"use strict";var LE=Na&&Na.__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]}),qE=Na&&Na.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Cm=Na&&Na.__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)&&LE(e,t,a);return qE(e,t),e},zE=Na&&Na.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Na,"__esModule",{value:!0});Na.Pattern=void 0;var kE=Cm(require("os")),lo=Cm(require("path")),Zt=Cm(il()),Br=zE(require("assert")),jE=j4(),_m=rl(),ol=U4(),_i=process.platform==="win32",Sm=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||[],Br.default(i.length,"Parameter 'segments' must not empty");let d=t.getLiteral(i[0]);Br.default(d&&Zt.hasAbsoluteRoot(d),"Parameter 'segments' first element must be a root path"),n=new ol.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 ol.Path(n).segments,this.trailingSeparator=Zt.normalizeSeparators(n).endsWith(lo.sep),n=Zt.safeTrimTrailingSeparator(n);let s=!1,p=this.segments.map(d=>t.getLiteral(d)).filter(d=>!s&&!(s=d===""));this.searchPath=new ol.Path(p).toString(),this.rootRegExp=new RegExp(t.regExpEscape(p[0]),_i?"i":""),this.isImplicitPattern=a;let l={dot:!0,nobrace:!0,nocase:_i,nocomment:!0,noext:!0,nonegate:!0};n=_i?n.replace(/\\/g,"/"):n,this.minimatch=new jE.Minimatch(n,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Zt.normalizeSeparators(e),!e.endsWith(lo.sep)&&this.isImplicitPattern===!1&&(e=`${e}${lo.sep}`)):e=Zt.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?_m.MatchKind.Directory:_m.MatchKind.All:_m.MatchKind.None}partialMatch(e){return e=Zt.safeTrimTrailingSeparator(e),Zt.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(_i?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(_i?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){Br.default(e,"pattern cannot be empty");let i=new ol.Path(e).segments.map(r=>t.getLiteral(r));if(Br.default(i.every((r,n)=>(r!=="."||n===0)&&r!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),Br.default(!Zt.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Zt.nor
Line truncated
|
||||
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 gJ(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}(0,hJ.debug)(`ID token url is ${A}`);let r=yield t.getCall(A);return(0,hJ.setSecret)(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};bg.OidcClient=u9});var E9=E(rn=>{"use strict";var p9=rn&&rn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(rn,"__esModule",{value:!0});rn.summary=rn.markdownSummary=rn.SUMMARY_DOCS_URL=rn.SUMMARY_ENV_VAR=void 0;var m4e=require("os"),g9=require("fs"),{access:C4e,appendFile:f4e,writeFile:Q4e}=g9.promises;rn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";rn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var h9=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return p9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[rn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${rn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield C4e(e,g9.constants.R_OK|g9.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,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return p9(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?Q4e:f4e)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return p9(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(m4e.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,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 r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},mJ=new h9;rn.markdownSummary=mJ;rn.summary=mJ});var CJ=E(nn=>{"use strict";var B4e=nn&&nn.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),I4e=nn&&nn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),y4e=nn&&nn.__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)&&B4e(e,t,A);return I4e(e,t),e};Object.defineProperty(nn,"__esModule",{value:!0});nn.toPlatformPath=nn.toWin32Path=nn.toPosixPath=void 0;var w4e=y4e(require("path"));function b4e(t){return t.replace(/[\\]/g,"/")}a(b4e,"toPosixPath");nn.toPosixPath=b4e;function N4e(t){return t.replace(/[/]/g,"\\")}a(N4e,"toWin32Path");nn.toWin32Path=N4e;function R4e(t){return t.replace(/[/\\]/g,w4e.sep)}a(R4e,"toPlatformPath");nn.toPlatformPath=R4e});var C9=E(oe=>{"use strict";var D4e=oe&&oe.__createBinding||(Object.create?functioLine truncated
|
||||
`);return{name:e,version:A}}),"getLinuxInfo");lt.platform=TJ.default.platform();lt.arch=TJ.default.arch();lt.isWindows=lt.platform==="win32";lt.isMacOS=lt.platform==="darwin";lt.isLinux=lt.platform==="linux";function s6e(){return a0(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield lt.isWindows?r6e():lt.isMacOS?i6e():n6e()),{platform:lt.platform,arch:lt.arch,isWindows:lt.isWindows,isMacOS:lt.isMacOS,isLinux:lt.isLinux})})}a(s6e,"getDetails");lt.getDetails=s6e});var hi=E(ie=>{"use strict";var a6e=ie&&ie.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),o6e=ie&&ie.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),y9=ie&&ie.__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)&&a6e(e,t,A);return o6e(e,t),e},_J=ie&&ie.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(ie,"__esModule",{value:!0});ie.platform=ie.toPlatformPath=ie.toWin32Path=ie.toPosixPath=ie.markdownSummary=ie.summary=ie.getIDToken=ie.getState=ie.saveState=ie.group=ie.endGroup=ie.startGroup=ie.info=ie.notice=ie.warning=ie.error=ie.debug=ie.isDebug=ie.setFailed=ie.setCommandEcho=ie.setOutput=ie.getBooleanInput=ie.getMultilineInput=ie.getInput=ie.addPath=ie.setSecret=ie.exportVariable=ie.ExitCode=void 0;var Fs=y_(),ru=N_(),Dg=dI(),OJ=y9(require("os")),c6e=y9(require("path")),l6e=EJ(),I9;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(I9||(ie.ExitCode=I9={}));function d6e(t,e){let A=(0,Dg.toCommandValue)(e);if(process.env[t]=A,process.env.GITHUB_ENV||"")return(0,ru.issueFileCommand)("ENV",(0,ru.prepareKeyValueMessage)(t,e));(0,Fs.issueCommand)("set-env",{name:t},A)}a(d6e,"exportVariable");ie.exportVariable=d6e;function u6e(t){(0,Fs.issueCommand)("add-mask",{},t)}a(u6e,"setSecret");ie.setSecret=u6e;function p6e(t){process.env.GITHUB_PATH||""?(0,ru.issueFileCommand)("PATH",t):(0,Fs.issueCommand)("add-path",{},t),process.env.PATH=`${t}${c6e.delimiter}${process.env.PATH}`}a(p6e,"addPath");ie.addPath=p6e;function w9(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()}a(w9,"getInput");ie.getInput=w9;function g6e(t,e){let A=w9(t,e).split(`
|
||||
`).filter(r=>r!=="");return e&&e.trimWhitespace===!1?A:A.map(r=>r.trim())}a(g6e,"getMultilineInput");ie.getMultilineInput=g6e;function h6e(t,e){let A=["true","True","TRUE"],r=["false","False","FALSE"],i=w9(t,e);if(A.includes(i))return!0;if(r.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(h6e,"getBooleanInput");ie.getBooleanInput=h6e;function E6e(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,ru.issueFileCommand)("OUTPUT",(0,ru.prepareKeyValueMessage)(t,e));process.stdout.write(OJ.EOL),(0,Fs.issueCommand)("set-output",{name:t},(0,Dg.toCommandValue)(e))}a(E6e,"setOutput");ie.setOutput=E6e;function m6e(t){(0,Fs.issue)("echo",t?"on":"off")}a(m6e,"setCommandEcho");ie.setCommandEcho=m6e;function C6e(t){process.exitCode=I9.Failure,PJ(t)}a(C6e,"setFailed");ie.setFailed=C6e;function f6e(){return process.env.RUNNER_DEBUG==="1"}a(f6e,"isDebug");ie.isDebug=f6e;function Q6e(t){(0,Fs.issueCommand)("debug",{},t)}a(Q6e,"debug");ie.debug=Q6e;function PJ(t,e={}){(0,Fs.issueCommand)("error",(0,Dg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(PJ,"error");ie.error=PJ;function B6e(t,e={}){(0,Fs.issueCommand)("warning",(0,Dg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(B6e,"warning");ie.warning=B6e;function I6e(t,e={}){(0,Fs.issueCommand)("notice",(0,Dg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(I6e,"notice");ie.notice=I6e;function y6e(t){process.stdout.write(t+OJ.EOL)}a(y6e,"info");ie.info=y6e;function qJ(t){(0,Fs.issue)("group",t)}a(qJ,"startGroup");ie.startGroup=qJ;function HJ(){(0,Fs.issue)("endgroup")}a(HJ,"endGroup");ie.endGroup=HJ;function w6e(t,e){return _J(this,void 0,void 0,function*(){qJ(t);let A;try{A=yield e()}finally{HJ()}return A})}a(w6e,"group");ie.group=w6e;function b6e(t,e){if(process.env.GITHUB_STATE||"")return(0,ru.issueFileCommand)("STATE",(0,ru.prepareKeyValueMessage)(t,e));(0,Fs.issueCommand)("save-state",{name:t},(0,Dg.toCommandValue)(e))}a(b6e,"saveState");ie.saveState=b6e;function N6e(t){return process.env[`STATE_${t}`]||""}a(N6e,"getState");ie.getState=N6e;function R6e(t){return _J(this,void 0,void 0,function*(){return yield l6e.OidcClient.getIDToken(t)})}a(R6e,"getIDToken");ie.getIDToken=R6e;var D6e=E9();Object.defineProperty(ie,"summary",{enumerable:!0,get:function(){return D6e.summary}});var S6e=E9();Object.defineProperty(ie,"markdownSummary",{enumerable:!0,get:function(){return S6e.markdownSummary}});var b9=CJ();Object.defineProperty(ie,"toPosixPath",{enumerable:!0,get:function(){return b9.toPosixPath}});Object.defineProperty(ie,"toWin32Path",{enumerable:!0,get:function(){return b9.toWin32Path}});Object.defineProperty(ie,"toPlatformPath",{enumerable:!0,get:function(){return b9.toPlatformPath}});ie.platform=y9(MJ())});var o0=E(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.toCommandProperties=Sg.toCommandValue=void 0;function x6e(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}a(x6e,"toCommandValue");Sg.toCommandValue=x6e;function v6e(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(v6e,"toCommandProperties");Sg.toCommandProperties=v6e});var VJ=E(Ls=>{"use strict";var k6e=Ls&&Ls.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),F6e=Ls&&Ls.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),L6e=Ls&&Ls.__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)&&k6e(e,t,A);return F6e(e,t),e};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.issue=Ls.issueCommand=void 0;var U6e=L6e(require("os")),GJ=o0();function JJ(t,e,A){let r=new N9(t,e,A);process.stdout.write(r.toString()+U6e.EOL)}a(JJ,"issueCommand");Ls.issueCommand=JJ;function T6e(t,e=""){JJ(t,{},e)}a(T6e,"issue");Ls.issue=T6e;var YJ="::",N9=class{static{a(this,"Command")}constructor(e,A,r){e||(e="missing.command"),this.command=e,this.properties=A,this.message=r}toString(){let e=YJ+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let i=this.properties[r];i&&(A?A=!1:e+=",",e+=`${r}=${_6e(i)}`)}}return e+=`${YJ}${M6e(this.message)}`,e}};function M6e(t){return GJ.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}a(M6e,"escapeData");function _6e(t){return GJ.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}a(_6e,"escapeProperty")});function GC(){return c0>l0.length-16&&(WJ.default.randomFillSync(l0),c0=0),l0.slice(c0,c0+=16)}var WJ,l0,c0,R9=Le(()=>{WJ=Nr(require("crypto")),l0=new Uint8Array(256),c0=l0.length;a(GC,"rng")});var zJ,jJ=Le(()=>{zJ=/^(?:[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 O6e(t){return typeof t=="string"&&zJ.test(t)}var Il,JC=Le(()=>{jJ();a(O6e,"validate");Il=O6e});fLine truncated
|
||||
\r
|
||||
`),qSe=/\r\n/g,HSe=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function kg(t){JV.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=GV(t,"maxHeaderPairs",2e3),this.maxHeaderSize=GV(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new OSe(PSe),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(kg,"HeaderParser");_Se(kg,JV);kg.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};kg.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};kg.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)};kg.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(qSe),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=HSe.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};VV.exports=kg});var ix=E((wmt,jV)=>{"use strict";var rx=require("node:stream").Writable,YSe=require("node:util").inherits,GSe=tx(),zV=HV(),JSe=WV(),VSe=45,WSe=Buffer.from("-"),zSe=Buffer.from(`\r
|
||||
`),jSe=a(function(){},"EMPTY_FN");function ya(t){if(!(this instanceof ya))return new ya(t);if(rx.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 JSe(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(ya,"Dicer");YSe(ya,rx);ya.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 A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" 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 rx.prototype.emit.apply(this,arguments)};ya.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new zV(this._partOpts),this._events.preamble?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(zSe),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};ya.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};ya.prototype.setBoundary=function(t){let e=this;this._bparser=new GSe(`\r
|
||||
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};ya.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",jSe),this._part.resume())};ya.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===VSe)++s,++this._dashes;else{this._dashes&&(i=WSe),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this._events.trailer&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new zV(this._partOpts),this._part._read=function(l){n._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&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};ya.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};jV.exports=ya});var C0=E((Nmt,ZV)=>{"use strict";var XV=new TextDecoder("utf-8"),m0=new Map([["utf-8",XV],["utf8",XV]]);function XSe(t,e,A){if(t)if(m0.has(A))try{return m0.get(A).decode(Buffer.from(t,e))}catch{}else try{return m0.set(A,new TextDecoder(A)),m0.get(A).decode(Buffer.from(t,e))}catch{}return t}a(XSe,"decodeText");ZV.exports=XSe});var nx=E((Dmt,eW)=>{"use strict";var f0=C0(),KV=/%([a-fA-F0-9]{2})/g;function $V(t,e){return String.fromCharCode(parseInt(e,16))}a($V,"encodedReplacer");function ZSe(t){let e=[],A="key",r="",i=!1,n=!1,s=0,o="";for(var c=0,l=t.length;c<l;++c){let d=t[c];if(d==="\\"&&i)if(n)n=!1;else{n=!0;continue}else if(d==='"')if(n)n=!1;else{i?(i=!1,A="key"):i=!0;continue}else if(n&&i&&(o+="\\"),n=!1,(A==="charset"||A==="lang")&&d==="'"){A==="charset"?(A="lang",r=o.substring(1)):A="value",o="";continue}else if(A==="key"&&(d==="*"||d==="=")&&e.length){d==="*"?A="charset":A="value",e[s]=[o,void 0],o="";continue}else if(!i&&d===";"){A="key",r?(o.length&&(o=f0(o.replace(KV,$V),"binary",r)),r=""):o.length&&(o=f0(o,"binary","utf8")),e[s]===void 0?e[s]=o:e[s][1]=o,o="",++s;continue}else if(!i&&(d===" "||d===" "))continue;o+=d}return r&&o.length?o=f0(o.replace(KV,$V),"binary",r):o&&(o=f0(o,"binary","utf8")),e[s]===void 0?o&&(e[s]=o):e[s][1]=o,e}a(ZSe,"parseParams");eW.exports=ZSe});var AW=E((xmt,tW)=>{"use strict";tW.exports=a(function(e){if(typeof e!="string")return"";for(var A=e.length-1;A>=0;--A)switch(e.charCodeAt(A)){case 47:case 92:return e=e.slice(A+1),e===".."||e==="."?"":e}return e===".."||e==="."?"":e},"basename")});var sW=E((kmt,nW)=>{"use strict";var{Readable:iW}=require("node:stream"),{inherits:KSe}=require("node:util"),$Se=ix(),rW=nx(),e9e=C0(),t9e=AW(),nu=E0(),A9e=/^boundary$/i,r9e=/^form-data$/i,i9e=/^charset$/i,n9e=/^filename$/i,s9e=/^name$/i;Q0.detect=/^multipart\/form-data/i;function Q0(t,e){let A,r,i=this,n,s=e.limits,o=e.isPartAFile||((v,x,L)=>x==="application/octet-stream"||L!==void 0),c=e.parsedConType||[],l=e.defCharset||"utf8",d=e.preservePath,u={highWaterMark:e.fileHwm};for(A=0,r=c.length;A<r;++A)if(Array.isArray(c[A])&&A9e.test(c[A][0])){n=c[A][1];break}function p(){N===0&&k&&!t._done&&(k=!1,i.end())}if(a(p,"checkFinished"),typeof n!="string")throw new Error("Multipart: Boundary not found");let g=nu(s,"fieldSize",1*1024*1024),h=nu(s,"fileSize",1/0),m=nu(s,"files",1/0),f=nu(s,"fields",1/0),B=nu(s,"parts",1/0),b=nu(s,"headerPairs",2e3),I=nu(s,"headerSize",80*1024),C=0,Q=0,N=0,S,w,k=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=t;let D={boundary:n,maxHeaderPairs:b,maxHeaderSize:I,partHwm:u.highWaterMark,highWaterMark:e.highWaterMark};this.parser=new $Se(D),this.parser.on("drain",function(){if(i._needDrain=!1,i._cb&&!i._pause){let v=i._cb;i._cb=void 0,v()}}).on("part",a(function v(x){if(++i._nparts>B)return i.parser.removeListener("part",v),i.parser.on("part",Fg),t.hitPartsLimit=!0,t.emit("partsLimit"),Fg(x);if(w){let L=w;L.emit("end"),L.removeAllListeners("end")}x.on("header",function(L){let q,le,_,rt,Se,vt,ht=0;if(L["content-type"]&&(_=rW(L["content-type"][0]),_[0])){for(q=_[0].toLowerCase(),A=0,r=_.length;A<r;++A)if(i9e.test(_[A][0])){rt=_[A][1].toLowerCase();break}}if(q===void 0&&(q="text/plain"),rt===void 0&&(rt=l),L["content-disposition"]){if(_=rW(L["content-disposition"][0]),!r9e.test(_[0
Line truncated
|
||||
`))}a(CW,"isValidHeaderValue");function j9e(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if(T9e.includes(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(j9e,"setRequestReferrerPolicyOnRedirect");function X9e(){return"allowed"}a(X9e,"crossOriginResourcePolicyCheck");function Z9e(){return"success"}a(Z9e,"corsCheck");function K9e(){return"success"}a(K9e,"TAOCheck");function $9e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a($9e,"appendFetchMetadata");function exe(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&&px(t.origin)&&!px(KC(t))&&(e=null);break;case"same-origin":I0(t,KC(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(exe,"appendRequestOriginHeader");function txe(t){return _9e.now()}a(txe,"coarsenedSharedCurrentTime");function Axe(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(Axe,"createOpaqueTimingInfo");function rxe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(rxe,"makePolicyContainer");function ixe(t){return{referrerPolicy:t.referrerPolicy}}a(ixe,"clonePolicyContainer");function nxe(t){let e=t.referrerPolicy;Mg(e);let A=null;if(t.referrer==="client"){let o=M9e();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=dx(A),i=dx(A,!0);r.toString().length>4096&&(r=i);let n=I0(t,r),s=XC(r)&&!XC(t.url);switch(e){case"origin":return i??dx(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=KC(t);return I0(r,o)?r:XC(r)&&!XC(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(nxe,"determineRequestsReferrer");function dx(t,e){return Mg(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(dx,"stripURLForReferrer");function XC(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a(XC,"isURLPotentiallyTrustworthy");function sxe(t,e){if(ZC===void 0)return!0;let A=oxe(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=ZC.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=ZC.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(sxe,"bytesMatch");var axe=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function oxe(t){let e=[],A=!0,r=ZC.getHashes();for(let i of t.split(" ")){A=!1;let n=axe.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(oxe,"parseMetadata");function cxe(t){}a(cxe,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function I0(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(I0,"sameOrigin");function lxe(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(lxe,"createDeferredPromise");function dxe(t){return t.controller.state==="aborted"}a(dxe,"isAborted");function uxe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(uxe,"isCancelled");function pxe(t){return/^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(t)?t.toUpperCase():t}a(pxe,"normalizeMethod");function gxe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Mg(typeof e=="string"),e}a(gxe,"serializeJavascriptValueToJSONString");var hxe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Exe(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this)!==i)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:s,target:o}=r,c=o(),l=c.len
Line truncated
|
||||
`||t===" "||t===" "}a(bW,"isHTTPWhiteSpace");function gx(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&bW(t[r]);r++);if(A)for(;i>0&&bW(t[i]);i--);return t.slice(r,i+1)}a(gx,"removeHTTPWhitespace");function NW(t){return t==="\r"||t===`
|
||||
`||t===" "||t==="\f"||t===" "}a(NW,"isASCIIWhitespace");function Txe(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&NW(t[r]);r++);if(A)for(;i>0&&NW(t[i]);i--);return t.slice(r,i+1)}a(Txe,"removeASCIIWhitespace");xW.exports={dataURLProcessor:kxe,URLSerializer:RW,collectASequenceOfCodePoints:b0,collectASequenceOfCodePointsFast:_g,stringPercentDecode:DW,parseMIMEType:hx,collectAnHTTPQuotedString:SW,serializeAMimeType:Uxe}});var N0=E((Xmt,UW)=>{"use strict";var{Blob:FW,File:vW}=require("buffer"),{types:Ex}=require("util"),{kState:Jn}=uc(),{isBlobLike:LW}=Ts(),{webidl:wt}=Ui(),{parseMIMEType:Mxe,serializeAMimeType:_xe}=wa(),{kEnumerableProperty:kW}=dt(),$C=class t extends FW{static{a(this,"File")}constructor(e,A,r={}){wt.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=wt.converters["sequence<BlobPart>"](e),A=wt.converters.USVString(A),r=wt.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=Mxe(n),n==="failure"){n="";break e}n=_xe(n).toLowerCase()}s=r.lastModified}super(Oxe(e,r),{type:n}),this[Jn]={name:i,lastModified:s,type:n}}get name(){return wt.brandCheck(this,t),this[Jn].name}get lastModified(){return wt.brandCheck(this,t),this[Jn].lastModified}get type(){return wt.brandCheck(this,t),this[Jn].type}},mx=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[Jn]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return wt.brandCheck(this,t),this[Jn].blobLike.stream(...e)}arrayBuffer(...e){return wt.brandCheck(this,t),this[Jn].blobLike.arrayBuffer(...e)}slice(...e){return wt.brandCheck(this,t),this[Jn].blobLike.slice(...e)}text(...e){return wt.brandCheck(this,t),this[Jn].blobLike.text(...e)}get size(){return wt.brandCheck(this,t),this[Jn].blobLike.size}get type(){return wt.brandCheck(this,t),this[Jn].blobLike.type}get name(){return wt.brandCheck(this,t),this[Jn].name}get lastModified(){return wt.brandCheck(this,t),this[Jn].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties($C.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:kW,lastModified:kW});wt.converters.Blob=wt.interfaceConverter(FW);wt.converters.BlobPart=function(t,e){if(wt.util.Type(t)==="Object"){if(LW(t))return wt.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Ex.isAnyArrayBuffer(t))return wt.converters.BufferSource(t,e)}return wt.converters.USVString(t,e)};wt.converters["sequence<BlobPart>"]=wt.sequenceConverter(wt.converters.BlobPart);wt.converters.FilePropertyBag=wt.dictionaryConverter([{key:"lastModified",converter:wt.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:wt.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=wt.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function Oxe(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=Pxe(i)),A.push(new TextEncoder().encode(i))}else Ex.isAnyArrayBuffer(r)||Ex.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):LW(r)&&A.push(r);return A}a(Oxe,"processBlobParts");function Pxe(t){let e=`
|
||||
`;return process.platform==="win32"&&(e=`\r
|
||||
`),t.replace(/\r?\n/g,e)}a(Pxe,"convertLineEndingsNative");function qxe(t){return vW&&t instanceof vW||t instanceof $C||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(qxe,"isFileLike");UW.exports={File:$C,FileLike:mx,isFileLike:qxe}});var D0=E((Kmt,PW)=>{"use strict";var{isBlobLike:R0,toUSVString:Hxe,makeIterator:Cx}=Ts(),{kState:Ei}=uc(),{File:OW,FileLike:TW,isFileLike:Yxe}=N0(),{webidl:Lt}=Ui(),{Blob:Gxe,File:fx}=require("buffer"),MW=fx??OW,Og=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[Ei]=[]}append(e,A,r=void 0){if(Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!R0(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Lt.converters.USVString(e),A=R0(A)?Lt.converters.Blob(A,{strict:!1}):Lt.converters.USVString(A),r=arguments.length===3?Lt.converters.USVString(r):void 0;let i=_W(e,A,r);this[Ei].push(i)}delete(e){Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Lt.converters.USVString(e),this[Ei]=this[Ei].filter(A=>A.name!==e)}get(e){Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Lt.converters.USVString(e);let A=this[Ei].findIndex(r=>r.name===e);return A===-1?null:this[Ei][A].value}getAll(e){return Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Lt.converters.USVString(e),this[Ei].filter(A=>A.name===e).map(A=>A.value)}has(e){return Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Lt.converters.USVString(e),this[Ei].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!R0(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Lt.converters.USVString(e),A=R0(A)?Lt.converters.Blob(A,{strict:!1}):Lt.converters.USVString(A),r=arguments.length===3?Hxe(r):void 0;let i=_W(e,A,r),n=this[Ei].findIndex(s=>s.name===e);n!==-1?this[Ei]=[...this[Ei].slice(0,n),i,...this[Ei].slice(n+1).filter(s=>s.name!==e)]:this[Ei].push(i)}entries(){return Lt.brandCheck(this,t),Cx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Lt.brandCheck(this,t),Cx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","key")}values(){return Lt.brandCheck(this,t),Cx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=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[r,i]of this)e.apply(A,[i,r,this])}};Og.prototype[Symbol.iterator]=Og.prototype.entries;Object.defineProperties(Og.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function _W(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(Yxe(e)||(e=e instanceof Gxe?new MW([e],"blob",{type:e.type}):new TW(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=fx&&e instanceof fx||e instanceof OW?new MW([e],A,r):new TW(e,A,r)}return{name:t,value:e}}a(_W,"makeEntry");PW.exports={FormData:Og}});var ef=E((eCt,jW)=>{"use strict";var Jxe=pW(),Pg=dt(),{ReadableStreamFrom:Vxe,isBlobLike:qW,isReadableStreamLike:Wxe,readableStreamClose:zxe,createDeferredPromise:jxe,fullyReadBody:Xxe}=Ts(),{FormData:HW}=D0(),{kState:gc}=uc(),{webidl:Qx}=Ui(),{DOMException:JW,structuredClone:Zxe}=Nl(),{Blob:Kxe,File:$xe}=require("buffer"),{kBodyUsed:eve}=hA(),Bx=require("assert"),{isErrored:tve}=dt(),{isUint8Array:VW,isArrayBuffer:Ave}=require("util/types"),{File:rve}=N0(),{parseMIMEType:ive,serializeAMimeType:nve}=wa(),pc=globalThis.ReadableStream,YW=$xe??rve;function WW(t,e=!1){pc||(pc=require("stream/web").ReadableStream);let A=null;t instanceof pc?A=t:qW(t)?A=t.stream():A=new pc({async pull(c){c.enqueue(typeof i=="string"?new TextEncoder().encode(i):i),queueMicrotask(()=>zxe(c))},start(){},type:void 0}),Bx(Wxe(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(Ave(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Pg.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"),u=a(B=>B.replace(/\r?\n|\r/g,`\r
|
||||
`),"normalizeLinefeeds"),p=new TextEncoder,g=[],h=new Uint8Array([13,10]);n=0;let m=!1;for(let[B,b]of t)if(typeof b=="string"){let I=p.encode(l+`; name="${d(u(B))}"\r
|
||||
\r
|
||||
${u(b)}\r
|
||||
`);g.push(I),n+=I.byteLength}else{let I=p.encode(`${l}; name="${d(u(B))}"`+(b.name?`; filename="${d(b.name)}"`:"")+`\r
|
||||
Content-Type: ${b.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);g.push(I,b,h),typeof b.size=="number"?n+=I.byteLength+b.size+h.byteLength:m=!0}let f=p.encode(`--${c}--`);g.push(f),n+=f.byteLength,m&&(n=null),i=t,r=a(async function*(){for(let B of g)B.stream?yield*B.stream():yield B},"action"),s="multipart/form-data; boundary="+c}else if(qW(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Pg.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof pc?t:Vxe(t)}if((typeof i=="string"||Pg.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new pc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):tve(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(WW,"extractBody");function sve(t,e=!1){return pc||(pc=require("stream/web").ReadableStream),t instanceof pc&&(Bx(!Pg.isDisturbed(t),"The body has already been consumed."),Bx(!t.locked,"The stream is locked.")),WW(t,e)}a(sve,"safelyExtractBody");function ave(t){let[e,A]=t.stream.tee(),r=Zxe(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(ave,"cloneBody");async function*GW(t){if(t)if(VW(t))yield t;else{let e=t.stream;if(Pg.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[eve]=!0,yield*e}}a(GW,"consumeBody");function Ix(t){if(t.aborted)throw new JW("The operation was aborted.","AbortError")}a(Ix,"throwIfAborted");function ove(t){return{blob(){return S0(this,A=>{let r=uve(this);return r==="failure"?r="":r&&(r=nve(r)),new Kxe([A],{type:r})},t)},arrayBuffer(){return S0(this,A=>new Uint8Array(A).buffer,t)},text(){return S0(this,zW,t)},json(){return S0(this,dve,t)},async formData(){Qx.brandCheck(this,t),Ix(this[gc]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new HW,n;try{n=new Jxe({headers:r,preservePath:!0})}catch(o){throw new JW(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new YW(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new YW(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of GW(this[gc].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of GW(this[gc].body)){if(!VW(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new HW;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),Ix(this[gc]),Qx.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(ove,"bodyMixinMethods");function cve(t){Object.assign(t.prototype,ove(t))}a(cve,"mixinBody");async function S0(t,e,A){if(Qx.brandCheck(t,A),Ix(t[gc]),lve(t[gc].body))throw new TypeError("Body is unusable");let r=jxe(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[gc].body==null?(n(new Uint8Array),r.promise):(await Xxe(t[gc].body,n,i),r.promise)}a(S0,"specConsumeBody");function lve(t){return t!=null&&(t.stream.locked||Pg.isDisturbed(t.stream))}a(lve,"bodyUnusable");function zW(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),new TextDecoder().decode(t))}a(zW,"utf8DecodeBytes");function dve(t){return JSON.parse(zW(t))}a(dve,"parseJSONFromBytes");function uve(t){let{headersList:e}=t[gc],A=e.get("content-type");return A===null?"failure":ive(A)}a(uve,"bodyMimeType");jW.exports={extractBody:WW,safelyExtractBody:sve,cloneBody:ave,mixinBody:cve}});var $W=E((ACt,KW)=>{"use strict";var{InvalidArgumentError:Zt,NotSupportedError:pve}=Xt(),hc=require("assert"),{kHTTP2BuildRequest:gve,kHTTP2CopyHeaders:hve,kHTTP1BuildRequest:Eve}=hA(),Vn=dt(),XW=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,ZW=/[^\t\x20-\x7e\x80-\xff]/,mve=/[^\u0021-\u00ff]/,Ec=Symbol("handler"),ar={},yx;try{let t=require("diagnostics_channel");ar.create=t.channel("undici:request:create"),ar.bodySent=t.channel("undici:request:bodySent"),ar.headers=t.channel("undici:request:headers"),ar.trailers=t.channel("undici:request:trailers"),ar.error=t.channel("undici:request:error")}catch{ar.create={hasSubscribers:!1},ar.bodySent={hasSubscribers:!1},ar.headers={hasSubscribers:!1},ar.trailers={hasSubscribers:!1},aLine truncated
|
||||
`),this.body=f.stream,this.contentLength=f.length}else Vn.isBlobLike(i)&&this.contentType==null&&i.type&&(this.contentType=i.type,this.headers+=`content-type: ${i.type}\r
|
||||
`);Vn.validateHandler(m,r,l),this.servername=Vn.getServerName(this.host),this[Ec]=m,ar.create.hasSubscribers&&ar.create.publish({request:this})}onBodySent(e){if(this[Ec].onBodySent)try{this[Ec].onBodySent(e)}catch(A){this.onError(A)}}onRequestSent(){ar.bodySent.hasSubscribers&&ar.bodySent.publish({request:this})}onConnect(e){return hc(!this.aborted),hc(!this.completed),this[Ec].onConnect(e)}onHeaders(e,A,r,i){return hc(!this.aborted),hc(!this.completed),ar.headers.hasSubscribers&&ar.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:i}}),this[Ec].onHeaders(e,A,r,i)}onData(e){return hc(!this.aborted),hc(!this.completed),this[Ec].onData(e)}onUpgrade(e,A,r){return hc(!this.aborted),hc(!this.completed),this[Ec].onUpgrade(e,A,r)}onComplete(e){return hc(!this.aborted),this.completed=!0,ar.trailers.hasSubscribers&&ar.trailers.publish({request:this,trailers:e}),this[Ec].onComplete(e)}onError(e){if(ar.error.hasSubscribers&&ar.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Ec].onError(e)}addHeader(e,A){return tf(this,e,A),this}static[Eve](e,A,r){return new t(e,A,r)}static[gve](e,A,r){let i=A.headers;A={...A,headers:null};let n=new t(e,A,r);if(n.headers={},Array.isArray(i)){if(i.length%2!==0)throw new Zt("headers array must be even");for(let s=0;s<i.length;s+=2)tf(n,i[s],i[s+1],!0)}else if(i&&typeof i=="object"){let s=Object.keys(i);for(let o=0;o<s.length;o++){let c=s[o];tf(n,c,i[c],!0)}}else if(i!=null)throw new Zt("headers must be an object or an array");return n}static[hve](e){let A=e.split(`\r
|
||||
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function su(t,e,A){if(e&&typeof e=="object")throw new Zt(`invalid ${t} header`);if(e=e!=null?`${e}`:"",ZW.exec(e)!==null)throw new Zt(`invalid ${t} header`);return A?e:`${t}: ${e}\r
|
||||
`}a(su,"processHeaderValue");function tf(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new Zt(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(ZW.exec(A)!==null)throw new Zt(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new Zt("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=su(e,A,r):t.headers+=su(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Zt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new Zt("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Zt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Zt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new pve("expect header not supported");if(XW.exec(e)===null)throw new Zt("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${su(e,A[i],r)}`:t.headers[e]=su(e,A[i],r):t.headers+=su(e,A[i]);else r?t.headers[e]=su(e,A,r):t.headers+=su(e,A)}}}a(tf,"processHeader");KW.exports=wx});var x0=E((iCt,ez)=>{"use strict";var Cve=require("events"),bx=class extends Cve{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};ez.exports=bx});var rf=E((sCt,tz)=>{"use strict";var fve=x0(),{ClientDestroyedError:Nx,ClientClosedError:Qve,InvalidArgumentError:qg}=Xt(),{kDestroy:Bve,kClose:Ive,kDispatch:Rx,kInterceptors:au}=hA(),Hg=Symbol("destroyed"),Af=Symbol("closed"),mc=Symbol("onDestroyed"),Yg=Symbol("onClosed"),v0=Symbol("Intercepted Dispatch"),Dx=class extends fve{static{a(this,"DispatcherBase")}constructor(){super(),this[Hg]=!1,this[mc]=null,this[Af]=!1,this[Yg]=[]}get destroyed(){return this[Hg]}get closed(){return this[Af]}get interceptors(){return this[au]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[au][A]!="function")throw new qg("interceptor must be an function")}this[au]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new qg("invalid callback");if(this[Hg]){queueMicrotask(()=>e(new Nx,null));return}if(this[Af]){this[Yg]?this[Yg].push(e):queueMicrotask(()=>e(null,null));return}this[Af]=!0,this[Yg].push(e);let A=a(()=>{let r=this[Yg];this[Yg]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[Ive]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new qg("invalid callback");if(this[Hg]){this[mc]?this[mc].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new Nx),this[Hg]=!0,this[mc]=this[mc]||[],this[mc].push(A);let r=a(()=>{let i=this[mc];this[mc]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[Bve](e).then(()=>{queueMicrotask(r)})}[v0](e,A){if(!this[au]||this[au].length===0)return this[v0]=this[Rx],this[Rx](e,A);let r=this[Rx].bind(this);for(let i=this[au].length-1;i>=0;i--)r=this[au][i](r);return this[v0]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new qg("handler must be an object");try{if(!e||typeof e!="object")throw new qg("opts must be an object.");if(this[Hg]||this[mc])throw new Nx;if(this[Af])throw new Qve;return this[v0](e,A)}catch(r){if(typeof A.onError!="function")throw new qg("invalid onError method");return A.onError(r),!1}}};tz.exports=Dx});var nf=E((lCt,iz)=>{"use strict";var yve=require("net"),Az=require("assert"),rz=dt(),{InvalidArgumentError:wve,ConnectTimeoutError:bve}=Xt(),Sx,xx;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?xx=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:xx=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function Nve({allowH2:t,maxCachedSessi
Line truncated
|
||||
`,this[Bz]=c??3e5,this[Qz]=i??3e5,this[df]=b??!0,this[A3e]=C,this[uf]=N,this[Dl]=null,this[yz]=w>-1?w:-1,this[po]="h1",this[zn]=null,this[O0]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[wz]=`${this[Zr].hostname}${this[Zr].port?`:${this[Zr].port}`:""}`,this[aA]=[],this[oA]=0,this[Wn]=0}get pipelining(){return this[xl]}set pipelining(e){this[xl]=e,jn(this,!0)}get[lu](){return this[aA].length-this[Wn]}get[wA](){return this[Wn]-this[oA]}get[cu](){return this[aA].length-this[oA]}get[t3e](){return!!this[kA]&&!this[Vg]&&!this[kA].destroyed}get[_x](){let e=this[kA];return e&&(e[Ti]||e[fc]||e[zg])||this[cu]>=(this[xl]||1)||this[lu]>0}[e3e](e){Dz(this),this.once("connect",e)}[n3e](e,A){let r=e.origin||this[Zr].origin,i=this[po]==="h2"?Mx[a3e](r,e,A):Mx[c3e](r,e,A);return this[aA].push(i),this[ou]||(ge.bodyLength(i.body)==null&&ge.isIterable(i.body)?(this[ou]=1,process.nextTick(jn,this)):jn(this,!0)),this[ou]&&this[Sl]!==2&&this[_x]&&(this[Sl]=2),this[Sl]<2}async[r3e](){return new Promise(e=>{this[cu]?this[Dl]=e:e(null)})}async[i3e](e){return new Promise(A=>{let r=this[aA].splice(this[Wn]);for(let n=0;n<r.length;n++){let s=r[n];$r(this,s,e)}let i=a(()=>{this[Dl]&&(this[Dl](),this[Dl]=null),A()},"callback");this[zn]!=null&&(ge.destroy(this[zn],e),this[zn]=null,this[O0]=null),this[kA]?ge.destroy(this[kA].on("close",i),e):queueMicrotask(i),jn(this)})}};function m3e(t){te(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kA][Kr]=t,Y0(this[uo],t)}a(m3e,"onHttp2SessionError");function C3e(t,e,A){let r=new lo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[kA][Kr]=r,Y0(this[uo],r))}a(C3e,"onHttp2FrameError");function f3e(){ge.destroy(this,new Wg("other side closed")),ge.destroy(this[kA],new Wg("other side closed"))}a(f3e,"onHttp2SessionEnd");function Q3e(t){let e=this[uo],A=new lo(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[kA]=null,e[zn]=null,e.destroyed){te(this[lu]===0);let r=e[aA].splice(e[oA]);for(let i=0;i<r.length;i++){let n=r[i];$r(this,n,A)}}else if(e[wA]>0){let r=e[aA][e[oA]];e[aA][e[oA]++]=null,$r(e,r,A)}e[Wn]=e[oA],te(e[wA]===0),e.emit("disconnect",e[Zr],[e],A),jn(e)}a(Q3e,"onHTTP2GoAway");var ao=sz(),B3e=L0(),I3e=Buffer.alloc(0);async function y3e(){let t=process.env.JEST_WORKER_ID?Lx():void 0,e;try{e=await WebAssembly.compile(Buffer.from(pz(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Lx(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-co+oo.byteOffset;return Er.onStatus(new U0(oo.buffer,n,i))||0},wasm_on_message_begin:A=>(te.strictEqual(Er.ptr,A),Er.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-co+oo.byteOffset;return Er.onHeaderField(new U0(oo.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-co+oo.byteOffset;return Er.onHeaderValue(new U0(oo.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(te.strictEqual(Er.ptr,A),Er.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-co+oo.byteOffset;return Er.onBody(new U0(oo.buffer,n,i))||0},wasm_on_message_complete:A=>(te.strictEqual(Er.ptr,A),Er.onMessageComplete()||0)}})}a(y3e,"lazyllhttp");var Tx=null,qx=y3e();qx.catch();var Er=null,oo=null,T0=0,co=null,jg=1,_0=2,Hx=3,Yx=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){te(Number.isFinite(e[M0])&&e[M0]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(ao.TYPE.RESPONSE),this.client=e,this.socket=A,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[M0],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[yz]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(Ux.clearTimeout(this.timeout),e?(this.timeout=Ux.setTimeout(w3e,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||(te(this.ptr!=null),te(Er==null),this.llhttp.llhttp_resume(this.ptr),te(this.timeoutType===_0),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||I3e),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){te(this.ptr!=null),te(Er==null),te(!this.paused);let{socket:A,llhttp:r}=this;e.length>T0&&(co&&r.free(co),T0=Math.ceil(e.length/4096)*4096,co=r.malloc(T0)),new Uint8Array(r.memory.buffer,co,T0).set(e);try{let i;try{oo=e,Er=this,i=r.llhttp_execute(this.ptr,co,e.length)}catch(s){throw s}finally{Er=null,oo=null}let n=r.llhttp_get_error_pos(this.ptr)-co;if(i===ao.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===ao.ERROR.PAUSED)this.paused=!0,A.unshift(e.slice(n));e
Line truncated
|
||||
`;return typeof n=="string"?g+=`host: ${n}\r
|
||||
`:g+=t[mz],s?g+=`connection: upgrade\r
|
||||
upgrade: ${s}\r
|
||||
`:t[xl]&&!p[Ti]?g+=`connection: keep-alive\r
|
||||
`:g+=`connection: close\r
|
||||
`,o&&(g+=o),mi.sendHeaders.hasSubscribers&&mi.sendHeaders.publish({request:e,headers:g,socket:p}),A?ge.isBuffer(A)?(te(u===A.byteLength,"buffer body must have content length"),p.cork(),p.write(`${g}content-length: ${u}\r
|
||||
\r
|
||||
`,"latin1"),p.write(A),p.uncork(),e.onBodySent(A),e.onRequestSent(),d||(p[Ti]=!0)):ge.isBlobLike(A)?typeof A.stream=="function"?q0({body:A.stream(),client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):xz({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):ge.isStream(A)?Sz({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):ge.isIterable(A)?q0({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):te(!1):(u===0?p.write(`${g}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(te(u===null,"no body must not have content length"),p.write(`${g}\r
|
||||
`,"latin1")),e.onRequestSent()),!0}a(N3e,"write");function R3e(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=Mx[o3e](d.trim()):u=d,o)return $r(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||$r(t,A,b||new Jx)})}catch(b){$r(t,A,b)}if(A.aborted)return!1;let p,g=t[O0];if(u[l3e]=s||t[wz],u[d3e]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[u3e]=n,u[p3e]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=ge.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),A.contentLength!=null&&A.contentLength!==m){if(t[df])return $r(t,A,new Cc),!1;process.emitWarning(new Cc)}m!=null&&(te(r,"no body must not have content length"),u[g3e]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[h3e]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{A.onHeaders(Number(b[E3e]),b,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[zn]&&!t[zn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,ge.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new lo(`HTTP/2: "frameError" received - type ${b}, code ${I}`);$r(t,A,C),t[zn]&&!t[zn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,ge.destroy(p,C))}),!0;function B(){r?ge.isBuffer(r)?(te(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):ge.isBlobLike(r)?typeof r.stream=="function"?q0({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[kA],header:""}):xz({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[kA]}):ge.isStream(r)?Sz({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[kA],h2stream:p,header:""}):ge.isIterable(r)?q0({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[kA]}):te(!1):A.onRequestSent()}a(B,"writeBodyH2")}a(R3e,"writeH2");function Sz({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(te(n!==0||A[wA]===0,"stream body cannot be pipelined"),A[po]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=Gve(e,t,f=>{f?(ge.destroy(e,f),ge.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),ge.destroy(h)});return}let c=!1,l=new H0({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){ge.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){g(new Jx)},"onAbort"),g=a(function(h){if(!c){if(c=!0,te(i.destroyed||i[fc]&&A[wA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?ge.destroy(e,h):ge.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(Sz,"writeStream");async function xz({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){te(n===e.size,"blob body must have content length");let c=A[po]==="h2";try{if(n!=null&&n!==e.size)throw new Cc;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Ti]=!0),jn(A)}catch(l){ge.destroy(c?t:i,l)}}a(xz,"writeBlob");async function q0({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){te(n!==0||A[wA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{te(c===null),i[Kr]?g(i[Kr]):c=p}),"waitForDrain");if(A[po]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[Kr])throw i[Kr];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new H0({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[Kr])throw i[Kr];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(q0,"writeIterable");var H0=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[fc]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[Kr])throw A[Kr];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[df])throw new Cc;process.emitWarning(new Cc)}A.cork(),s===0&&(o||(A[Ti]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
|
||||
`,"latin1"):A.write(`${c}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1")),i===null&&A.write(`\r
|
||||
${l.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=l;let d=A.write(e);return A.uncork(),r.onBodySent(e),d||A[vA].timeout&&A[vA].timeoutType===jg&&A[vA].timeout.refresh&&A[vA].timeout.refresh(),d}end(){let{socket:e,contentLength:A,client:r,bytesWritten:i,expectsPayload:n,header:s,request:o}=this;if(o.onRequestSent(),e[fc]=!1,e[Kr])throw e[Kr];if(!e.destroyed){if(i===0?n?e.write(`${s}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${s}\r
|
||||
`,"latin1"):A===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),A!==null&&i!==A){if(r[df])throw new Cc;process.emitWarning(new Cc)}e[vA].timeout&&e[vA].timeoutType===jg&&e[vA].timeout.refresh&&e[vA].timeout.refresh(),jn(r)}}destroy(e){let{socket:A,client:r}=this;A[fc]=!1,e&&(te(r[wA]<=1,"pipeline should only contain this request"),ge.destroy(A,e))}};function $r(t,e,A){try{e.onError(A),te(e.aborted)}catch(r){t.emit("error",r)}}a($r,"errorRequest");vz.exports=Px});var Fz=E((wCt,kz)=>{"use strict";var G0=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)}};kz.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new G0}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new G0),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var Uz=E((NCt,Lz)=>{var{kFree:D3e,kConnected:S3e,kPending:x3e,kQueued:v3e,kRunning:k3e,kSize:F3e}=hA(),du=Symbol("pool"),Vx=class{static{a(this,"PoolStats")}constructor(e){this[du]=e}get connected(){return this[du][S3e]}get free(){return this[du][D3e]}get pending(){return this[du][x3e]}get queued(){return this[du][v3e]}get running(){return this[du][k3e]}get size(){return this[du][F3e]}};Lz.exports=Vx});var Kx=E((DCt,Jz)=>{"use strict";var L3e=rf(),U3e=Fz(),{kConnected:Wx,kSize:Tz,kRunning:Mz,kPending:_z,kQueued:gf,kBusy:T3e,kFree:M3e,kUrl:_3e,kClose:O3e,kDestroy:P3e,kDispatch:q3e}=hA(),H3e=Uz(),cn=Symbol("clients"),Mi=Symbol("needDrain"),hf=Symbol("queue"),zx=Symbol("closed resolve"),jx=Symbol("onDrain"),Oz=Symbol("onConnect"),Pz=Symbol("onDisconnect"),qz=Symbol("onConnectionError"),Xx=Symbol("get dispatcher"),Yz=Symbol("add client"),Gz=Symbol("remove client"),Hz=Symbol("stats"),Zx=class extends L3e{static{a(this,"PoolBase")}constructor(){super(),this[hf]=new U3e,this[cn]=[],this[gf]=0;let e=this;this[jx]=a(function(r,i){let n=e[hf],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[gf]--,s=!this.dispatch(o.opts,o.handler)}this[Mi]=s,!this[Mi]&&e[Mi]&&(e[Mi]=!1,e.emit("drain",r,[e,...i])),e[zx]&&n.isEmpty()&&Promise.all(e[cn].map(o=>o.close())).then(e[zx])},"onDrain"),this[Oz]=(A,r)=>{e.emit("connect",A,[e,...r])},this[Pz]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[qz]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[Hz]=new H3e(this)}get[T3e](){return this[Mi]}get[Wx](){return this[cn].filter(e=>e[Wx]).length}get[M3e](){return this[cn].filter(e=>e[Wx]&&!e[Mi]).length}get[_z](){let e=this[gf];for(let{[_z]:A}of this[cn])e+=A;return e}get[Mz](){let e=0;for(let{[Mz]:A}of this[cn])e+=A;return e}get[Tz](){let e=this[gf];for(let{[Tz]:A}of this[cn])e+=A;return e}get stats(){return this[Hz]}async[O3e](){return this[hf].isEmpty()?Promise.all(this[cn].map(e=>e.close())):new Promise(e=>{this[zx]=e})}async[P3e](e){for(;;){let A=this[hf].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[cn].map(A=>A.destroy(e)))}[q3e](e,A){let r=this[Xx]();return r?r.dispatch(e,A)||(r[Mi]=!0,this[Mi]=!this[Xx]()):(this[Mi]=!0,this[hf].push({opts:e,handler:A}),this[gf]++),!this[Mi]}[Yz](e){return e.on("drain",this[jx]).on("connect",this[Oz]).on("disconnect",this[Pz]).on("connectionError",this[qz]),this[cn].push(e),this[Mi]&&process.nextTick(()=>{this[Mi]&&this[jx](e[_3e],[this,e])}),this}[Gz](e){e.close(()=>{let A=this[cn].indexOf(e);A!==-1&&this[cn].splice(A,1)}),this[Mi]=this[cn].some(A=>!A[Mi]&&A.closed!==!0&&A.destroyed!==!0)}};Jz.exports={PoolBase:Zx,kClients:cn,kNeedDrain:Mi,kAddClient:Yz,kRemoveClient:Gz,kGetDispatcher:Xx}});var Xg=E((xCt,jz)=>{"use strict";var{PoolBase:Y3e,kClients:Vz,kNeedDrain:G3e,kAddClient:J3e,kGetDispatcher:V3e}=Kx(),W3e=pf(),{InvalidArgumentError:$x}=Xt(),ev=dt(),{kUrl:Wz,kInterceptors:z3e}=hA(),j3e=nf(),tv=Symbol("options"),Av=Symbol("connections"),zz=Symbol("factory");function X3e(t,e){return new W3e(t,e)}a(X3e,"defaultFactory");var rv=class extends Y3e{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=X3e,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new $x("invalid connections");if(typeof r!="function")throw new $x("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new $x("connect must be a function or an object");typeof i!="function"&&(i=j3e({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n??1e4,...ev.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[z3e]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[Av]=A||null,this[Wz]=ev.parseOrigin(e),this[tv]={...e
Line truncated
|
||||
${r.count} ${r.noun} ${r.is} pending:
|
||||
|
||||
${e.format(A)}
|
||||
`.trim())}};RX.exports=qv});var LX=E((Bft,FX)=>{"use strict";var{kProxy:Z5e,kClose:K5e,kDestroy:$5e,kInterceptors:eke}=hA(),{URL:SX}=require("url"),xX=mf(),tke=Xg(),Ake=rf(),{InvalidArgumentError:Bf,RequestAbortedError:rke}=Xt(),vX=nf(),Qf=Symbol("proxy agent"),cy=Symbol("proxy client"),ly=Symbol("proxy headers"),Hv=Symbol("request tls settings"),ike=Symbol("proxy tls settings"),kX=Symbol("connect endpoint function");function nke(t){return t==="https:"?443:80}a(nke,"defaultProtocolPort");function ske(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new Bf("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(ske,"buildProxyOptions");function ake(t,e){return new tke(t,e)}a(ake,"defaultFactory");var Yv=class extends Ake{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[Z5e]=ske(e),this[Qf]=new xX(e),this[eke]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new Bf("Proxy opts.uri is mandatory");let{clientFactory:A=ake}=e;if(typeof A!="function")throw new Bf("Proxy opts.clientFactory must be a function.");if(this[Hv]=e.requestTls,this[ike]=e.proxyTls,this[ly]=e.headers||{},e.auth&&e.token)throw new Bf("opts.auth cannot be used in combination with opts.token");e.auth?this[ly]["proxy-authorization"]=`Basic ${e.auth}`:e.token&&(this[ly]["proxy-authorization"]=e.token);let r=new SX(e.uri),{origin:i,port:n,host:s}=r,o=vX({...e.proxyTls});this[kX]=vX({...e.requestTls}),this[cy]=A(r,{connect:o}),this[Qf]=new xX({...e,connect:async(c,l)=>{let d=c.host;c.port||(d+=`:${nke(c.protocol)}`);try{let{socket:u,statusCode:p}=await this[cy].connect({origin:i,port:n,path:d,signal:c.signal,headers:{...this[ly],host:s}});if(p!==200&&(u.on("error",()=>{}).destroy(),l(new rke("Proxy response !== 200 when HTTP Tunneling"))),c.protocol!=="https:"){l(null,u);return}let g;this[Hv]?g=this[Hv].servername:g=c.servername,this[kX]({...c,servername:g,httpSocket:u},l)}catch(u){l(u)}}})}dispatch(e,A){let{host:r}=new SX(e.origin),i=oke(e.headers);return cke(i),this[Qf].dispatch({...e,headers:{...i,host:r}},A)}async[K5e](){await this[Qf].close(),await this[cy].close()}async[$5e](){await this[Qf].destroy(),await this[cy].destroy()}};function oke(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(oke,"buildHeaders");function cke(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new Bf("Proxy-Authorization should be sent in ProxyAgent constructor")}a(cke,"throwIfProxyAuthIsSent");FX.exports=Yv});var sh=E((yft,_X)=>{"use strict";var UX=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:lke}=Xt(),dke=mf();MX()===void 0&&TX(new dke);function TX(t){if(!t||typeof t.dispatch!="function")throw new lke("Argument agent must implement Agent");Object.defineProperty(globalThis,UX,{value:t,writable:!0,enumerable:!1,configurable:!1})}a(TX,"setGlobalDispatcher");function MX(){return globalThis[UX]}a(MX,"getGlobalDispatcher");_X.exports={setGlobalDispatcher:TX,getGlobalDispatcher:MX}});var PX=E((Nft,OX)=>{"use strict";OX.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 Cu=E((Dft,GX)=>{"use strict";var{kHeadersList:ln}=hA(),{kGuard:mu}=uc(),{kEnumerableProperty:ho}=dt(),{makeIterator:Gv,isValidHeaderName:If,isValidHeaderValue:qX}=Ts(),{webidl:Ze}=Ui(),uke=require("assert"),dn=Symbol("headers map"),un=Symbol("headers map sorted");function HX(t){let e=t.length;for(;/[\r\n\t ]/.test(t.charAt(--e)););return t.slice(0,e+1).replace(/^[\r\n\t ]+/,"")}a(HX,"headerValueNormalize");function YX(t,e){if(Array.isArray(e))for(let A of e){if(A.length!==2)throw Ze.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});t.append(A[0],A[1])}else if(typeof e=="object"&&e!==null)for(let[A,r]of Object.entries(e))t.append(A,r);else throw Ze.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}a(YX,"fill");var dy=class t{static{a(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[dn]=new Map(e[dn]),this[un]=e[un],this.cookies=e.cookies):(this[dn]=new Map(e),this[un]=null)}contains(e){return e=e.toLowerCase(),this[dn].has(e)}clear(){this[dn].clear(),this[un]=null,this.cookies=null}append(e,A){this[un]=null;let r=e.toLowerCase(),i=this[dn].get(r);if(i){let n=r==="cookie"?"; ":", ";this[dn].set(r,{name:i.name,value:`${i.value}${n}${A}`})}else this[dn].set(r,{name:e,value:A});r==="set-cookie"
Line truncated
|
||||
|
||||
Error Code : ${s.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 HK(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}YK.debug(`ID token url is ${A}`);let r=yield t.getCall(A);return YK.setSecret(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};Qh.OidcClient=L3});var _3=E(hn=>{"use strict";var U3=hn&&hn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(hn,"__esModule",{value:!0});hn.summary=hn.markdownSummary=hn.SUMMARY_DOCS_URL=hn.SUMMARY_ENV_VAR=void 0;var KUe=require("os"),T3=require("fs"),{access:$Ue,appendFile:eTe,writeFile:tTe}=T3.promises;hn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";hn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var M3=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return U3(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[hn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${hn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield $Ue(e,T3.constants.R_OK|T3.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,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return U3(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?tTe:eTe)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return U3(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(KUe.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,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 r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},JK=new M3;hn.markdownSummary=JK;hn.summary=JK});var VK=E(En=>{"use strict";var ATe=En&&En.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),rTe=En&&En.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),iTe=En&&En.__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)&&ATe(e,t,A);return rTe(e,t),e};Object.defineProperty(En,"__esModule",{value:!0});En.toPlatformPath=En.toWin32Path=En.toPosixPath=void 0;var nTe=iTe(require("path"));function sTe(t){return t.replace(/[\\]/g,"/")}a(sTe,"toPosixPath");En.toPosixPath=sTe;function aTe(t){return t.replace(/[/]/g,"\\")}a(aTe,"toWin32Path");En.toWin32Path=aTe;function oTe(t){return t.replace(/[/\\]/g,nTe.sep)}a(oTe,"toPlatformPath");En.toPlatformPath=oTe});var $y=E(de=>{"use strict";var cTe=de&&de.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===voiLine truncated
|
||||
`).filter(r=>r!=="");return e&&e.trimWhitespace===!1?A:A.map(r=>r.trim())}a(ETe,"getMultilineInput");de.getMultilineInput=ETe;function mTe(t,e){let A=["true","True","TRUE"],r=["false","False","FALSE"],i=O3(t,e);if(A.includes(i))return!0;if(r.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(mTe,"getBooleanInput");de.getBooleanInput=mTe;function CTe(t,e){if(process.env.GITHUB_OUTPUT||"")return wu.issueFileCommand("OUTPUT",wu.prepareKeyValueMessage(t,e));process.stdout.write(jK.EOL),Ys.issueCommand("set-output",{name:t},Bh.toCommandValue(e))}a(CTe,"setOutput");de.setOutput=CTe;function fTe(t){Ys.issue("echo",t?"on":"off")}a(fTe,"setCommandEcho");de.setCommandEcho=fTe;function QTe(t){process.exitCode=XK.Failure,ZK(t)}a(QTe,"setFailed");de.setFailed=QTe;function BTe(){return process.env.RUNNER_DEBUG==="1"}a(BTe,"isDebug");de.isDebug=BTe;function ITe(t){Ys.issueCommand("debug",{},t)}a(ITe,"debug");de.debug=ITe;function ZK(t,e={}){Ys.issueCommand("error",Bh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(ZK,"error");de.error=ZK;function yTe(t,e={}){Ys.issueCommand("warning",Bh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(yTe,"warning");de.warning=yTe;function wTe(t,e={}){Ys.issueCommand("notice",Bh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(wTe,"notice");de.notice=wTe;function bTe(t){process.stdout.write(t+jK.EOL)}a(bTe,"info");de.info=bTe;function KK(t){Ys.issue("group",t)}a(KK,"startGroup");de.startGroup=KK;function $K(){Ys.issue("endgroup")}a($K,"endGroup");de.endGroup=$K;function NTe(t,e){return zK(this,void 0,void 0,function*(){KK(t);let A;try{A=yield e()}finally{$K()}return A})}a(NTe,"group");de.group=NTe;function RTe(t,e){if(process.env.GITHUB_STATE||"")return wu.issueFileCommand("STATE",wu.prepareKeyValueMessage(t,e));Ys.issueCommand("save-state",{name:t},Bh.toCommandValue(e))}a(RTe,"saveState");de.saveState=RTe;function DTe(t){return process.env[`STATE_${t}`]||""}a(DTe,"getState");de.getState=DTe;function STe(t){return zK(this,void 0,void 0,function*(){return yield uTe.OidcClient.getIDToken(t)})}a(STe,"getIDToken");de.getIDToken=STe;var xTe=_3();Object.defineProperty(de,"summary",{enumerable:!0,get:function(){return xTe.summary}});var vTe=_3();Object.defineProperty(de,"markdownSummary",{enumerable:!0,get:function(){return vTe.markdownSummary}});var P3=VK();Object.defineProperty(de,"toPosixPath",{enumerable:!0,get:function(){return P3.toPosixPath}});Object.defineProperty(de,"toWin32Path",{enumerable:!0,get:function(){return P3.toWin32Path}});Object.defineProperty(de,"toPlatformPath",{enumerable:!0,get:function(){return P3.toPlatformPath}})});var e$=E(fo=>{"use strict";var kTe=fo&&fo.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),FTe=fo&&fo.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),LTe=fo&&fo.__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)&&kTe(e,t,A);return FTe(e,t),e};Object.defineProperty(fo,"__esModule",{value:!0});fo.getOptions=void 0;var q3=LTe($y());function UTe(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q3.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q3.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q3.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}a(UTe,"getOptions");fo.getOptions=UTe});var t2=E(FA=>{"use strict";var TTe=FA&&FA.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),MTe=FA&&FA.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),_Te=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)&&TTe(e,t,A);return MTe(e,t),e},OTe=FA&&FA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(FA,"__esModule",{value:!0});FA.safeTrimTrailingSeparator=FA.normalizeSeparators=FA.hasRoot=FA.hasAbsoluteRoot=FA.ensureAbsoluteRoot=FA.dirname=void 0;var e2=_Te(require("path")),bu=OTe(require("assert")),Ml=process.platform==="win32";function PTe(t){if(t=Y3(t),Ml&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=e2.dirname(t);return Ml&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Y3(e)),e}a(PTe,"dirname");FA.dirname=PTe;function qTe(t,e){if(bu.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),bu.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),H3(e))return e;if(Ml){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let A=process.cwd();returnLine truncated
|
||||
%s`,Q,Q,b,r);var N=b.type==="*"?W3:b.type==="?"?V3:"\\"+b.type;i=!0,r=r.slice(0,b.reStart)+N+"\\("+Q}h(),n&&(r+="\\\\");var S=!1;switch(r.charAt(0)){case"[":case".":case"(":S=!0}for(var w=o.length-1;w>-1;w--){var k=o[w],D=r.slice(0,k.reStart),v=r.slice(k.reStart,k.reEnd-8),x=r.slice(k.reEnd-8,k.reEnd),L=r.slice(k.reEnd);x+=L;var q=D.split("(").length-1,le=L;for(m=0;m<q;m++)le=le.replace(/\)[+*?]?/,"");L=le;var _="";L===""&&e!==r2&&(_="$");var rt=D+v+L+_+x;r=rt}if(r!==""&&i&&(r="(?=.)"+r),S&&(r=p+r),e===r2)return[r,i];if(!i)return E7e(t);var Se=A.nocase?"i":"";try{var vt=new RegExp("^"+r+"$",Se)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=r,vt}a(g7e,"parse");As.makeRe=function(t,e){return new ei(t,e||{}).makeRe()};ei.prototype.makeRe=h7e;function h7e(){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?W3:e.dot?a7e:o7e,r=e.nocase?"i":"",i=t.map(function(n){return n.map(function(s){return s===z3?A:typeof s=="string"?m7e(s):s._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch{this.regexp=!1}return this.regexp}a(h7e,"makeRe");As.match=function(t,e,A){A=A||{};var r=new ei(e,A);return t=t.filter(function(i){return r.match(i)}),r.options.nonull&&!t.length&&t.push(e),t};ei.prototype.match=a(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 r=this.options;Mf.sep!=="/"&&(e=e.split(Mf.sep).join("/")),e=e.split(B$),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<i.length;s++){var o=i[s],c=e;r.matchBase&&o.length===1&&(c=[n]);var l=this.matchOne(c,o,A);if(l)return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate},"match");ei.prototype.matchOne=function(t,e,A){var r=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,n=0,s=t.length,o=e.length;i<s&&n<o;i++,n++){this.debug("matchOne loop");var c=e[n],l=t[i];if(this.debug(e,c,l),c===!1)return!1;if(c===z3){this.debug("GLOBSTAR",[e,c,l]);var d=i,u=n+1;if(u===o){for(this.debug("** at the end");i<s;i++)if(t[i]==="."||t[i]===".."||!r.dot&&t[i].charAt(0)===".")return!1;return!0}for(;d<s;){var p=t[d];if(this.debug(`
|
||||
globstar while`,t,d,e,u,p),this.matchOne(t.slice(d),e.slice(u),A))return this.debug("globstar found match!",d,s,p),!0;if(p==="."||p===".."||!r.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,d,e,u);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(A&&(this.debug(`
|
||||
>>> no match, partial?`,t,d,e,u),d===s))}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(i===s&&n===o)return!0;if(i===s)return A;if(n===o)return i===s-1&&t[i]==="";throw new Error("wtf?")};function E7e(t){return t.replace(/\\(.)/g,"$1")}a(E7e,"globUnescape");function m7e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}a(m7e,"regExpEscape")});var N$=E(Gs=>{"use strict";var C7e=Gs&&Gs.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),f7e=Gs&&Gs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),b$=Gs&&Gs.__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)&&C7e(e,t,A);return f7e(e,t),e},Q7e=Gs&&Gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.Path=void 0;var _f=b$(require("path")),Ol=b$(t2()),Of=Q7e(require("assert")),B7e=process.platform==="win32",j3=class{static{a(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(Of.default(e,"Parameter 'itemPath' must not be empty"),e=Ol.safeTrimTrailingSeparator(e),!Ol.hasRoot(e))this.segments=e.split(_f.sep);else{let A=e,r=Ol.dirname(A);for(;r!==A;){let i=_f.basename(A);this.segments.unshift(i),A=r,r=Ol.dirname(A)}this.segments.unshift(A)}else{Of.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let A=0;A<e.length;A++){let r=e[A];Of.default(r,"Parameter 'itemPath' must not contain any empty segments"),r=Ol.normalizeSeparators(e[A]),A===0&&Ol.hasRoot(r)?(r=Ol.safeTrimTrailingSeparator(r),Of.default(r===Ol.dirname(r),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(r)):(Of.default(!r.includes(_f.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(r))}}}toString(){let e=this.segments[0],A=e.endsWith(_f.sep)||B7e&&/^[A-Z]:$/i.test(e);for(let r=1;r<this.segments.length;r++)A?A=!1:e+=_f.sep,e+=this.segments[r];return e}};Gs.Path=j3});var R$=E(Js=>{"use strict";var I7e=Js&&Js.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),y7e=Js&&Js.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),K3=Js&&Js.__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)&&I7e(e,t,A);return y7e(e,t),e},w7e=Js&&Js.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Js,"__esModule",{value:!0});Js.Pattern=void 0;var b7e=K3(require("os")),Pf=K3(require("path")),Cn=K3(t2()),Nu=w7e(require("assert")),N7e=w$(),X3=A2(),n2=N$(),wc=process.platform==="win32",Z3=class t{static{a(this,"Pattern")}constructor(e,A=!1,r,i){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{r=r||[],Nu.default(r.length,"Parameter 'segments' must not empty");let l=t.getLiteral(r[0]);Nu.default(l&&Cn.hasAbsoluteRoot(l),"Parameter 'segments' first element must be a root path"),n=new n2.Path(r).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,i),this.segments=new n2.Path(n).segments,this.trailingSeparator=Cn.normalizeSeparators(n).endsWith(Pf.sep),n=Cn.safeTrimTrailingSeparator(n);let s=!1,o=this.segments.map(l=>t.getLiteral(l)).filter(l=>!s&&!(s=l===""));this.searchPath=new n2.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),wc?"i":""),this.isImplicitPattern=A;let c={dot:!0,nobrace:!0,nocase:wc,nocomment:!0,noext:!0,nonegate:!0};n=wc?n.replace(/\\/g,"/"):n,this.minimatch=new N7e.Minimatch(n,c)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Cn.normalizeSeparators(e),!e.endsWith(Pf.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Pf.sep}`)):e=Cn.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?X3.MatchKind.Directory:X3.MatchKind.All:X3.MatchKind.None}partialMatch(e){return e=Cn.safeTrimTrailingSeparator(e),Cn.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(wc?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(wc?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,A){Nu.default(e,"pattern cannot be empty");let r=new n2.Path(e).segments.map(i=>t.getLiteral(i));if(Nu.default(r.every((i,n)=>(i!=="."||n===0)&&i!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),Nu.default(!Cn.hasRoot(e)||r[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 W4.Pattern(n));return i.searchPaths.push(...ll.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return Tm(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield co.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){Om.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 co.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield co.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){Om.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};vt.DefaultGlobber=Rm});var Q4=E(En=>{"use strict";var WE=En&&En.__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{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(En,"__esModule",{value:!0});En.create=void 0;var XE=K4();function KE(t,e){return WE(this,void 0,void 0,function*(){return yield XE.DefaultGlobber.create(t,e)})}o(KE,"create");En.create=KE});var fl=E((ie,t3)=>{ie=t3.exports=se;var Se;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Se=o(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):Se=o(function(){},"debug");ie.SEMVER_SPEC_VERSION="2.0.0";var mo=256,dl=Number.MAX_SAFE_INTEGER||9007199254740991,Pm=16,QE=mo-6,Tn=ie.re=[],_e=ie.safeRe=[],M=ie.src=[],A=ie.tokens={},Z4=0;function le(t){A[t]=Z4++}o(le,"tok");var Dm="[a-zA-Z0-9-]",Im=[["\\s",1],["\\d",mo],[Dm,QE]];function ho(t){for(var e=0;e<Im.length;e++){var a=Im[e][0],i=Im[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}o(ho,"makeSafeRe");le("NUMERICIDENTIFIER");M[A.NUMERICIDENTIFIER]="0|[1-9]\\d*";le("NUMERICIDENTIFIERLOOSE");M[A.NUMERICIDENTIFIERLOOSE]="\\d+";le("NONNUMERICIDENTIFIER");M[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Dm+"*";le("MAINVERSION");M[A.MAINVERSION]="("+M[A.NUMERICIDENTIFIER]+")\\.("+M[A.NUMERICIDENTIFIER]+")\\.("+M[A.NUMERICIDENTIFIER]+")";le("MAINVERSIONLOOSE");M[A.MAINVERSIONLOOSE]="("+M[A.NUMERICIDENTIFIERLOOSE]+")\\.("+M[A.NUMERICIDENTIFIERLOOSE]+")\\.("+M[A.NUMERICIDENTIFIERLOOSE]+")";le("PRERELEASEIDENTIFIER");M[A.PRERELEASEIDENTIFIER]="(?:"+M[A.NUMERICIDENTIFIER]+"|"+M[A.NONNUMERICIDENTIFIER]+")";le("PRERELEASEIDENTIFIERLOOSE");M[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+M[A.NUMERICIDENTIFIERLOOSE]+"|"+M[A.NONNUMERICIDENTIFIER]+")";le("PRERELEASE");M[A.PRERELEASE]="(?:-("+M[A.PRERELEASEIDENTIFIER]+"(?:\\."+M[A.PRERELEASEIDENTIFIER]+")*))";le("PRERELEASELOOSE");M[A.PRERELEASELOOSE]="(?:-?("+M[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+M[A.PRERELEASEIDENTIFIERLOOSE]+")*))";le("BUILDIDENTIFIER");M[A.BUILDIDENTIFIER]=Dm+"+";le("BUILD");M[A.BUILD]="(?:\\+("+M[A.BUILDIDENTIFIER]+"(?:\\."+M[A.BUILDIDENTIFIER]+")*))";le("FULL");le("FULLPLAIN");M[A.FULLPLAIN]="v?"+M[A.MAINVERSION]+M[A.PRERELEASE]+"?"+M[A.BUILD]+"?";M[A.FULL]="^"+M[A.FULLPLAIN]+"$";le("LOOSEPLAIN");M[A.LOOSEPLAIN]="[v=\\s]*"+M[A.MAINVERSIONLOOSE]+M[A.PRERELEASELOOSE]+"?"+M[A.BUILD]+"?";le("LOOSE");M[A.LOOSE]="^"+M[A.LOOSEPLAIN]+"$";le("GTLT");M[A.GTLT]="((?:<|>)?=?)";le("XRANGEIDENTIFIERLOOSE");M[A.XRANGEIDENTIFIERLOOSE]=M[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";le("XRANGEIDENTIFIER");M[A.XRANGEIDENTIFIER]=M[A.NUMERICIDENTIFIER]+"|x|X|\\*";le("XRANGEPLAIN");M[A.XRANGEPLAIN]="[v=\\s]*("+M[A.XRANGEIDENTIFIER]+")(?:\\.("+M[A.XRANGEIDENTIFIER]+")(?:\\.("+M[A.XRANGEIDENTIFIER]+")(?:"+M[A.PRERELEASE]+")?"+M[A.BUILD]+"?)?)?";le("XRANGEPLAINLOOSE");M[A.XRANGEPLAINLOOSE]="[v=\\s]*("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:"+M[A.PRERELEASELOOSE]+")?"+M[A.BUILD]+"?)?)?";le("XRANGE");M[A.XRANGE]="^"+M[A.GTLT]+"\\s*"+M[A.XRANGEPLAIN]+"$";le("XRANGELOOSE");M[A.XRANGELOOSE]="^"+M[A.GTLT]+"\\s*"+M[A.XRANGEPLAINLOOSE]+"$";le("COERCE");M[A.COERCE]="(^|[^\\d])(\\d{1,"+Pm+"})(?:\\.(\\d{1,"+Pm+"}))?(?:\\.(\\d{1,"+Pm+"}))?(?:$|[^\\d])";le("COERCERTL");Tn[A.COERCERTL]=new RegExp(M[A.COERCE],"g");_e[A.COERCERTL]=new RegExp(ho(M[A.COERCE]),"g");le("LONETILDE");M[A.LONETILDE]="(?:~>?)";le("TILDETRIM");M[A.TILDETRIM]="(\\s*)"+M[A.LONETILDE]+"\\s+";Tn[A.TILDETRIM]=new RegExp(M[A.TILDETRIM],"g");_e[A.TILDETRIM]=new RegExp(ho(M[A.TILDETRIM]),"g");var YE="$1~";le("TILDE");M[A.TILDE]="^"+M[A.LONETILDE]+M[A.XRANGEPLAIN]+"$";le("TILDELOOSE");M[A.TILDELOOSE]="^"+M[A.LONETILDE]+M[A.XRANGEPLAINLOOSE]+"$";le("LONECARET");M[A.LONECARET]="(?:\\^)";le("CARETTRIM");M[A.CARETTRIM]="(\\s*)"+M[A.LONECARET]+"\\s+";Tn[A.CARETTRIM]=new
Line truncated
|
||||
`),{implicitDescendants:!1});try{for(var d=!0,c=MT(l.globGenerator()),u;u=yield c.next(),e=u.done,!e;d=!0){r=u.value,d=!1;let m=r,f=hl.relative(p,m).replace(new RegExp(`\\${hl.sep}`,"g"),"/");go.debug(`Matched: ${f}`),f===""?s.push("."):s.push(`${f}`)}}catch(m){a={error:m}}finally{try{!d&&!e&&(i=c.return)&&(yield i.call(c))}finally{if(a)throw a.error}}return s})}o(FT,"resolvePaths");xe.resolvePaths=FT;function VT(t){return Pn(this,void 0,void 0,function*(){return kT.promisify(qm.unlink)(t)})}o(VT,"unlinkFile");xe.unlinkFile=VT;function o3(t,e=[]){return Pn(this,void 0,void 0,function*(){let a="";e.push("--version"),go.debug(`Checking ${t} ${e.join(" ")}`);try{yield LT.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){go.debug(i.message)}return a=a.trim(),go.debug(a),a})}o(o3,"getVersion");function $T(){return Pn(this,void 0,void 0,function*(){let t=yield o3("zstd",["--quiet"]),e=zT.clean(t);return go.debug(`zstd version: ${e}`),t===""?qr.CompressionMethod.Gzip:qr.CompressionMethod.ZstdWithoutLong})}o($T,"getCompressionMethod");xe.getCompressionMethod=$T;function GT(t){return t===qr.CompressionMethod.Gzip?qr.CacheFilename.Gzip:qr.CacheFilename.Zstd}o(GT,"getCacheFileName");xe.getCacheFileName=GT;function WT(){return Pn(this,void 0,void 0,function*(){return qm.existsSync(qr.GnuTarPathOnWindows)?qr.GnuTarPathOnWindows:(yield o3("tar")).toLowerCase().includes("gnu tar")?n3.which("tar"):""})}o(WT,"getGnuTarPathOnWindows");xe.getGnuTarPathOnWindows=WT;function XT(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(XT,"assertDefined");xe.assertDefined=XT;function KT(t,e,a=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!a&&i.push("windows-only"),i.push(jT),s3.createHash("sha256").update(i.join("|")).digest("hex")}o(KT,"getCacheVersion");xe.getCacheVersion=KT;function QT(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(QT,"getRuntimeToken");xe.getRuntimeToken=QT});function yo(){return gl>yl.length-16&&(p3.default.randomFillSync(yl),gl=0),yl.slice(gl,gl+=16)}var p3,yl,gl,zm=qt(()=>{p3=ya(require("crypto")),yl=new Uint8Array(256),gl=yl.length;o(yo,"rng")});var l3,d3=qt(()=>{l3=/^(?:[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 YT(t){return typeof t=="string"&&l3.test(t)}var er,vo=qt(()=>{d3();o(YT,"validate");er=YT});function JT(t,e=0){let a=(Dt[t[e+0]]+Dt[t[e+1]]+Dt[t[e+2]]+Dt[t[e+3]]+"-"+Dt[t[e+4]]+Dt[t[e+5]]+"-"+Dt[t[e+6]]+Dt[t[e+7]]+"-"+Dt[t[e+8]]+Dt[t[e+9]]+"-"+Dt[t[e+10]]+Dt[t[e+11]]+Dt[t[e+12]]+Dt[t[e+13]]+Dt[t[e+14]]+Dt[t[e+15]]).toLowerCase();if(!er(a))throw TypeError("Stringified UUID is invalid");return a}var Dt,tr,xo=qt(()=>{vo();Dt=[];for(let t=0;t<256;++t)Dt.push((t+256).toString(16).substr(1));o(JT,"stringify");tr=JT});function ZT(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||c3,s=t.clockseq!==void 0?t.clockseq:km;if(n==null||s==null){let m=t.random||(t.rng||yo)();n==null&&(n=c3=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=km=(m[6]<<8|m[7])&16383)}let p=t.msecs!==void 0?t.msecs:Date.now(),l=t.nsecs!==void 0?t.nsecs:Hm+1,d=p-jm+(l-Hm)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||p>jm)&&t.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");jm=p,Hm=l,km=s,p+=122192928e5;let c=((p&268435455)*1e4+l)%4294967296;r[i++]=c>>>24&255,r[i++]=c>>>16&255,r[i++]=c>>>8&255,r[i++]=c&255;let u=p/4294967296*1e4&268435455;r[i++]=u>>>8&255,r[i++]=u&255,r[i++]=u>>>24&15|16,r[i++]=u>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let m=0;m<6;++m)r[i+m]=n[m];return e||tr(r)}var c3,km,jm,Hm,u3,m3=qt(()=>{zm();xo();jm=0,Hm=0;o(ZT,"v1");u3=ZT});function eO(t){if(!er(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 vl,Um=qt(()=>{vo();o(eO,"parse");vl=eO});function tO(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function bo(t,e,a){function i(r,n,s,p){if(typeof r=="string"&&(r=tO(r)),typeof n=="string"&&(n=vl(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+r.length);if(l.set(n),l.set(r,n.length),l=a(l),l[6]=l[6]&15|e,l[8]=l[8]&63|128,s){p=p||0;for(let d=0;d<16;++d)s[p+d]=l[d];return s}return tr(l)}o(i,"generateUUID");try{i.name=t}catch{}return i.DNS=aO,i.URL=iO,i}var aO,iO,Fm=qt(()=>{xo();Um();o(tO,"stringToBytes");aO="6ba7b810-9dad-11d1-80b4-00c04fd430c8",iO
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(Gm)});var ri=E((eg,ar)=>{(function(){var t,e,a,i,r,n,s,p=[].slice,l={}.hasOwnProperty;t=o(function(){var d,c,u,m,f,h;if(h=arguments[0],f=2<=arguments.length?p.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(d=0,u=f.length;d<u;d++)if(m=f[d],m!=null)for(c in m)l.call(m,c)&&(h[c]=m[c]);return h},"assign"),r=o(function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},"isFunction"),n=o(function(d){var c;return!!d&&((c=typeof d)=="function"||c==="object")},"isObject"),a=o(function(d){return r(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},"isArray"),i=o(function(d){var c;if(a(d))return!d.length;for(c in d)if(l.call(d,c))return!1;return!0},"isEmpty"),s=o(function(d){var c,u;return n(d)&&(u=Object.getPrototypeOf(d))&&(c=u.constructor)&&typeof c=="function"&&c instanceof c&&Function.prototype.toString.call(c)===Function.prototype.toString.call(Object)},"isPlainObject"),e=o(function(d){return r(d.valueOf)?d.valueOf():d},"getValue"),ar.exports.assign=t,ar.exports.isFunction=r,ar.exports.isObject=n,ar.exports.isArray=a,ar.exports.isEmpty=i,ar.exports.isPlainObject=s,ar.exports.getValue=e}).call(eg)});var Wm=E((tg,ag)=>{(function(){var t;ag.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(tg)});var ng=E((ig,rg)=>{(function(){var t;rg.exports=t=function(){function e(){}return o(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(ig)});var pg=E((sg,og)=>{(function(){var t;og.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(sg)});var cg=E((lg,dg)=>{(function(){var t,e,a;e=ng(),a=pg(),dg.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(lg)});var nt=E((ug,mg)=>{(function(){mg.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(ug)});var Xm=E((fg,hg)=>{(function(){var t,e,a;t=nt(),a=la(),hg.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=(D=w.dontPrettyTextNodes)!=null?D:w.dontprettytextnodes)!=null?N:0,y.spaceBeforeSlash=(C=(P=w.spaceBeforeSlash)!=null?P:w.spacebeforeslash)!=null?C:"",y.spaceBeforeSlash===!0&&(y.spaceBeforeSlash=" "),y.suppressPrettyCount=0,y.user={},y.state=e.None,y},I.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):""},I.prototype.endline=function(w,y,g){return!y.pretty||y.suppressPrettyCount?"":y.newline},I.prototype.attribute=function(w,y,g){var _;return this.openAttribute(w,y,g),_=" "+w.name+'="'+w.value+'"',this.closeAttribute(w,y,g),_},I.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),_},I.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),_},I.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),_},I.prototype.docType=function(w,y,g){var _,O,N,D,C;if(g||(g=0),this.openNode(w,y,g),y.state=e.OpenTag,D=this.indent(w,y,g),D+="<!DOCTYPE "+w.root().name,w.pubID&&w.sysID?D+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(D+=' SYSTEM "'+w.sysID+'"'),w.children.length>0){for(D+=" [",D+=this.endline(w,y,g),y.state=e.InsideTag,C=w.children,O=0,N=C.length;O<N;O++)_=C[O],D+=this.writeChildNode(_,y,g+1);y.state=e.CloseTag,D+="]"}return y.state=e.CloseTag,D+=y.spaceBeforeSlash+">",D+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),D},I.prototype.element=function(w,y,g){var _,O,N,D,C,P,B,j,pe,ge,Y,at,fe,za;g||(g=0),ge=!1,Y="",this.openNode(w,y,g),y.state=e.OpenTag,Y+=this.indent(w,y,g)+"<"+w.name,at=w.attribs;for(pe in at)S.call(at,pe)&&(_=at[pe],Y+=this.attribute(_,y,g));if(N=w.children.length,D=N===0?null:w.children[0],N===0||w.children.every(function($t){return($t.type===t.Text||$t.type===t.Raw)&&$t.value===""}))y.allowEmpty?(Y+=">",y.state=e.CloseTag,Y+="</"+w.name+">"+this.endline(w,y,g)):(y.state=e.CloseTag,Y+=y.spaceBeforeSlash+"/>"+this.endline(w,y,g));else if(y.pretty&&N===1&&(D.type===t.Text||D.type===t.Raw)&&D.value!=null)Y+=">",y.state=e.InsideTag,y.suppressPrettyCount++,ge=!0,Y+=this.writeChildNode(D,y,g+1),y.suppressPrettyCount--,ge=!1,y.state=e.CloseTag,Y+="</"+w.name+">"+this.endline(w,y,g);else{if(y.dontPrettyTextNodes){for(fe=w.children,C=0,B=fe.length;C<B;C++)if(O=fe[C],(O.type===t.Text||O.type===t.Raw)&&O.value!=null){y.suppressPrettyCount++,ge=!0;break}}for(Y+=">"+this.endline(w,y,g),y.state=e.InsideTag,za=w.children,P=0,j=za.length;P<j;P++)O=za[P],Y+=this.writeChildNode(O,y,g+1);y.state=e.CloseTag,Y+=this.indent(w,y,g)+"</"+w.name+">",ge&&y.suppressPrettyCount--,Y+=this.endline(w,y,g),y.state=e.None}return this.closeNode(w,y,g),Y},I.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)}},I.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),_},I.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),_},I.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),_},I.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
|
||||
`||b==="\r"||b===" "}o(w,"isWhitespace");function y(b){return b==='"'||b==="'"}o(y,"isQuote");function g(b){return b===">"||w(b)}o(g,"isAttribEnd");function _(b,v){return b.test(v)}o(_,"isMatch");function O(b,v){return!_(b,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(b){var v=t.ENTITIES[b],L=typeof v=="number"?String.fromCharCode(v):v;t.ENTITIES[b]=L});for(var D in t.STATE)t.STATE[t.STATE[D]]=D;N=t.STATE;function C(b,v,L){b[v]&&b[v](L)}o(C,"emit");function P(b,v,L){b.textNode&&B(b),C(b,v,L)}o(P,"emitNode");function B(b){b.textNode=j(b.opt,b.textNode),b.textNode&&C(b,"ontext",b.textNode),b.textNode=""}o(B,"closeText");function j(b,v){return b.trim&&(v=v.trim()),b.normalize&&(v=v.replace(/\s+/g," ")),v}o(j,"textopts");function pe(b,v){return B(b),b.trackPosition&&(v+=`
|
||||
Line: `+b.line+`
|
||||
Column: `+b.column+`
|
||||
Char: `+b.c),v=new Error(v),b.error=v,C(b,"onerror",v),b}o(pe,"error");function ge(b){return b.sawRoot&&!b.closedRoot&&Y(b,"Unclosed root tag"),b.state!==N.BEGIN&&b.state!==N.BEGIN_WHITESPACE&&b.state!==N.TEXT&&pe(b,"Unexpected end"),B(b),b.c="",b.closed=!0,C(b,"onend"),a.call(b,b.strict,b.opt),b}o(ge,"end");function Y(b,v){if(typeof b!="object"||!(b instanceof a))throw new Error("bad call to strictFail");b.strict&&pe(b,v)}o(Y,"strictFail");function at(b){b.strict||(b.tagName=b.tagName[b.looseCase]());var v=b.tags[b.tags.length-1]||b,L=b.tag={name:b.tagName,attributes:{}};b.opt.xmlns&&(L.ns=v.ns),b.attribList.length=0,P(b,"onopentagstart",L)}o(at,"newTag");function fe(b,v){var L=b.indexOf(":"),R=L<0?["",b]:b.split(":"),Oe=R[0],dt=R[1];return v&&b==="xmlns"&&(Oe="xmlns",dt=""),{prefix:Oe,local:dt}}o(fe,"qname");function za(b){if(b.strict||(b.attribName=b.attribName[b.looseCase]()),b.attribList.indexOf(b.attribName)!==-1||b.tag.attributes.hasOwnProperty(b.attribName)){b.attribName=b.attribValue="";return}if(b.opt.xmlns){var v=fe(b.attribName,!0),L=v.prefix,R=v.local;if(L==="xmlns")if(R==="xml"&&b.attribValue!==m)Y(b,"xml: prefix must be bound to "+m+`
|
||||
Actual: `+b.attribValue);else if(R==="xmlns"&&b.attribValue!==f)Y(b,"xmlns: prefix must be bound to "+f+`
|
||||
Actual: `+b.attribValue);else{var Oe=b.tag,dt=b.tags[b.tags.length-1]||b;Oe.ns===dt.ns&&(Oe.ns=Object.create(dt.ns)),Oe.ns[R]=b.attribValue}b.attribList.push([b.attribName,b.attribValue])}else b.tag.attributes[b.attribName]=b.attribValue,P(b,"onattribute",{name:b.attribName,value:b.attribValue});b.attribName=b.attribValue=""}o(za,"attrib");function $t(b,v){if(b.opt.xmlns){var L=b.tag,R=fe(b.tagName);L.prefix=R.prefix,L.local=R.local,L.uri=L.ns[R.prefix]||"",L.prefix&&!L.uri&&(Y(b,"Unbound namespace prefix: "+JSON.stringify(b.tagName)),L.uri=R.prefix);var Oe=b.tags[b.tags.length-1]||b;L.ns&&Oe.ns!==L.ns&&Object.keys(L.ns).forEach(function(_6){P(b,"onopennamespace",{prefix:_6,uri:L.ns[_6]})});for(var dt=0,yt=b.attribList.length;dt<yt;dt++){var Gt=b.attribList[dt],Za=Gt[0],yn=Gt[1],Pt=fe(Za,!0),wi=Pt.prefix,W_=Pt.local,N6=wi===""?"":L.ns[wi]||"",Hu={name:Za,value:yn,prefix:wi,local:W_,uri:N6};wi&&wi!=="xmlns"&&!N6&&(Y(b,"Unbound namespace prefix: "+JSON.stringify(wi)),Hu.uri=wi),b.tag.attributes[Za]=Hu,P(b,"onattribute",Hu)}b.attribList.length=0}b.tag.isSelfClosing=!!v,b.sawRoot=!0,b.tags.push(b.tag),P(b,"onopentag",b.tag),v||(!b.noscript&&b.tagName.toLowerCase()==="script"?b.state=N.SCRIPT:b.state=N.TEXT,b.tag=null,b.tagName=""),b.attribName=b.attribValue="",b.attribList.length=0}o($t,"openTag");function gn(b){if(!b.tagName){Y(b,"Weird empty close tag."),b.textNode+="</>",b.state=N.TEXT;return}if(b.script){if(b.tagName!=="script"){b.script+="</"+b.tagName+">",b.tagName="",b.state=N.SCRIPT;return}P(b,"onscript",b.script),b.script=""}var v=b.tags.length,L=b.tagName;b.strict||(L=L[b.looseCase]());for(var R=L;v--;){var Oe=b.tags[v];if(Oe.name!==R)Y(b,"Unexpected close tag");else break}if(v<0){Y(b,"Unmatched closing tag: "+b.tagName),b.textNode+="</"+b.tagName+">",b.state=N.TEXT;return}b.tagName=L;for(var dt=b.tags.length;dt-- >v;){var yt=b.tag=b.tags.pop();b.tagName=b.tag.name,P(b,"onclosetag",b.tagName);var Gt={};for(var Za in yt.ns)Gt[Za]=yt.ns[Za];var yn=b.tags[b.tags.length-1]||b;b.opt.xmlns&&yt.ns!==yn.ns&&Object.keys(yt.ns).forEach(function(Pt){var wi=yt.ns[Pt];P(b,"onclosenamespace",{prefix:Pt,uri:wi})})}v===0&&(b.closedRoot=!0),b.tagName=b.attribValue=b.attribName="",b.attribList.length=0,b.state=N.TEXT}o(gn,"closeTag");function to(b){var v=b.entity,L=v.toLowerCase(),R,Oe="";return b.ENTITIES[v]?b.ENTITIES[v]:b.ENTITIES[L]?b.ENTITIES[L]:(v=L,v.charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),R=parseInt(v,16),Oe=R.toString(16)):(v=v.slice(1),R=parseInt(v,10),Oe=R.toString(10))),v=v.replace(/^0+/,""),isNaN(R)||Oe.toLowerCase()!==v?(Y(b,"Invalid character entity"),"&"+b.entity+";"):String.fromCodePoint(R))}o(to,"parseEntity");function b6(b,v){v==="<"?(b.state=N.OPEN_WAKA,b.startTagPosition=b.position):w(v)||(Y(b,"Non-whitespace before first tag."),b.textNode=v,b.state=N.TEXT)}o(b6,"beginWhiteSpace");function w6(b,v){var L="";return v<b.length&&(L=b.charAt(v)),L}o(w6,"charAt");function G_(b){var v=this;if(this.error)throw this.error;if(v.closed)return pe(v,"Cannot write after close. Assign an onready handler.");if(b===null)return ge(v);typeof b=="object"&&(b=b.toString());for(var L=0,R="";R=w6(b,L++),v.c=R,!!R;)switch(v.trackPosition&&(v.position++,R===`
|
||||
`?(v.line++,v.column=0):v.column++),v.state){case N.BEGIN:if(v.state=N.BEGIN_WHITESPACE,R==="\uFEFF")continue;b6(v,R);continue;case N.BEGIN_WHITESPACE:b6(v,R);continue;case N.TEXT:if(v.sawRoot&&!v.closedRoot){for(var Oe=L-1;R&&R!=="<"&&R!=="&";)R=w6(b,L++),R&&v.trackPosition&&(v.position++,R===`
|
||||
`?(v.line++,v.column=0):v.column++);v.textNode+=b.substring(Oe,L-1)}R==="<"&&!(v.sawRoot&&v.closedRoot&&!v.strict)?(v.state=N.OPEN_WAKA,v.startTagPosition=v.position):(!w(R)&&(!v.sawRoot||v.closedRoot)&&Y(v,"Text data outside of root node."),R==="&"?v.state=N.TEXT_ENTITY:v.textNode+=R);continue;case N.SCRIPT:R==="<"?v.state=N.SCRIPT_ENDING:v.script+=R;continue;case N.SCRIPT_ENDING:R==="/"?v.state=N.CLOSE_TAG:(v.script+="<"+R,v.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(R==="!")v.state=N.SGML_DECL,v.sgmlDecl="";else if(!w(R))if(_(x,R))v.state=N.OPEN_TAG,v.tagName=R;else if(R==="/")v.state=N.CLOSE_TAG,v.tagName="";else if(R==="?")v.state=N.PROC_INST,v.procInstName=v.procInstBody="";else{if(Y(v,"Unencoded <"),v.startTagPosition+1<v.position){var dt=v.position-v.startTagPosition;R=new Array(dt).join(" ")+R}v.textNode+="<"+R,v.state=N.TEXT}continue;case N.SGML_DECL:(v.sgmlDecl+R).toUpperCase()===c?(P(v,"onopencdata"),v.state=N.CDATA,v.sgmlDecl="",v.cdata=""):v.sgmlDecl+R==="--"?(v.state=N.COMMENT,v.comment="",v.sgmlDecl=""):(v.sgmlDecl+R).toUpperCase()===u?(v.state=N.DOCTYPE,(v.doctype||v.sawRoot)&&Y(v,"Inappropriately located doctype declaration"),v.doctype="",v.sgmlDecl=""):R===">"?(P(v,"onsgmldeclaration",v.sgmlDecl),v.sgmlDecl="",v.state=N.TEXT):(y(R)&&(v.state=N.SGML_DECL_QUOTED),v.sgmlDecl+=R);continue;case N.SGML_DECL_QUOTED:R===v.q&&(v.state=N.SGML_DECL,v.q=""),v.sgmlDecl+=R;continue;case N.DOCTYPE:R===">"?(v.state=N.TEXT,P(v,"ondoctype",v.doctype),v.doctype=!0):(v.doctype+=R,R==="["?v.state=N.DOCTYPE_DTD:y(R)&&(v.state=N.DOCTYPE_QUOTED,v.q=R));continue;case N.DOCTYPE_QUOTED:v.doctype+=R,R===v.q&&(v.q="",v.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:v.doctype+=R,R==="]"?v.state=N.DOCTYPE:y(R)&&(v.state=N.DOCTYPE_DTD_QUOTED,v.q=R);continue;case N.DOCTYPE_DTD_QUOTED:v.doctype+=R,R===v.q&&(v.state=N.DOCTYPE_DTD,v.q="");continue;case N.COMMENT:R==="-"?v.state=N.COMMENT_ENDING:v.comment+=R;continue;case N.COMMENT_ENDING:R==="-"?(v.state=N.COMMENT_ENDED,v.comment=j(v.opt,v.comment),v.comment&&P(v,"oncomment",v.comment),v.comment=""):(v.comment+="-"+R,v.state=N.COMMENT);continue;case N.COMMENT_ENDED:R!==">"?(Y(v,"Malformed comment"),v.comment+="--"+R,v.state=N.COMMENT):v.state=N.TEXT;continue;case N.CDATA:R==="]"?v.state=N.CDATA_ENDING:v.cdata+=R;continue;case N.CDATA_ENDING:R==="]"?v.state=N.CDATA_ENDING_2:(v.cdata+="]"+R,v.state=N.CDATA);continue;case N.CDATA_ENDING_2:R===">"?(v.cdata&&P(v,"oncdata",v.cdata),P(v,"onclosecdata"),v.cdata="",v.state=N.TEXT):R==="]"?v.cdata+="]":(v.cdata+="]]"+R,v.state=N.CDATA);continue;case N.PROC_INST:R==="?"?v.state=N.PROC_INST_ENDING:w(R)?v.state=N.PROC_INST_BODY:v.procInstName+=R;continue;case N.PROC_INST_BODY:if(!v.procInstBody&&w(R))continue;R==="?"?v.state=N.PROC_INST_ENDING:v.procInstBody+=R;continue;case N.PROC_INST_ENDING:R===">"?(P(v,"onprocessinginstruction",{name:v.procInstName,body:v.procInstBody}),v.procInstName=v.procInstBody="",v.state=N.TEXT):(v.procInstBody+="?"+R,v.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:_(T,R)?v.tagName+=R:(at(v),R===">"?$t(v):R==="/"?v.state=N.OPEN_TAG_SLASH:(w(R)||Y(v,"Invalid character in tag name"),v.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:R===">"?($t(v,!0),gn(v)):(Y(v,"Forward-slash in opening tag not followed by >"),v.state=N.ATTRIB);continue;case N.ATTRIB:if(w(R))continue;R===">"?$t(v):R==="/"?v.state=N.OPEN_TAG_SLASH:_(x,R)?(v.attribName=R,v.attribValue="",v.state=N.ATTRIB_NAME):Y(v,"Invalid attribute name");continue;case N.ATTRIB_NAME:R==="="?v.state=N.ATTRIB_VALUE:R===">"?(Y(v,"Attribute without value"),v.attribValue=v.attribName,za(v),$t(v)):w(R)?v.state=N.ATTRIB_NAME_SAW_WHITE:_(T,R)?v.attribName+=R:Y(v,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(R==="=")v.state=N.ATTRIB_VALUE;else{if(w(R))continue;Y(v,"Attribute without value"),v.tag.attributes[v.attribName]="",v.attribValue="",P(v,"onattribute",{name:v.attribName,value:""}),v.attribName="",R===">"?$t(v):_(x,R)?(v.attribName=R,v.state=N.ATTRIB_NAME):(Y(v,"Invalid attribute name"),v.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(w(R))continue;y(R)?(v.q=R,v.state=N.ATTRIB_VALUE_QUOTED):(Y(v,"Unquoted attribute value"),v.state=N.ATTRIB_VALUE_UNQUOTED,v.attribValue=R);continue;case N.ATTRIB_VALUE_QUOTED:if(R!==v.q){R==="&"?v.state=N.ATTRIB_VALUE_ENTITY_Q:v.attribValue+=R;continue}za(v),v.q="",v.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:w(R)?v.state=N.ATTRIB:R===">"?$t(v):R==="/"?v.state=N.OPEN_TAG_SLASH:_(x,R)?(Y(v,"No whitespace between attributes"),v.attribName=R,v.attribValue="",v.state=N.ATTRIB_NAME):Y(v,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!g(R)){R==="&"?v.state=N.ATTRIB_VALUE_ENTITY_U:v.attribValue+=R;continue}za(v),R===">"?$t(v):v.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(v.tagName)R===">"?gn(v):_(T,R)?v.tagName+=R:v.script?(v.script+="</"+v.tagName,v.tagName="",v.state=N.SCRIPT):(w(R)||Y(v,"Invalid tagname in closing tag"),v.state=N.CLOSE_TAG_SAW_WHITE);else{if(w(R))continue;O
Line truncated
|
||||
`;ye.DEFAULT_CONTENT_TYPE="application/octet-stream";ye.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=R1.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),v5.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)};ye.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)+ye.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof BR))&&(a.knownLength||this._valuesToMeasure.push(e))};ye.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)):AR.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")};ye.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"&&O1(s,a.header);var p;for(var l in s)s.hasOwnProperty(l)&&(p=s[l],p!=null&&(Array.isArray(p)||(p=[p]),p.length&&(n+=l+": "+p.join("; ")+ye.LINE_BREAK)));return"--"+this.getBoundary()+ye.LINE_BREAK+n+ye.LINE_BREAK};ye.prototype._getContentDisposition=function(t,e){var a,i;return typeof e.filepath=="string"?a=E1.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?a=E1.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(a=E1.basename(t.client._httpMessage.path||"")),a&&(i='filename="'+a+'"'),i};ye.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t.name&&(a=T1.lookup(t.name)),!a&&t.path&&(a=T1.lookup(t.path)),!a&&t.readable&&t.hasOwnProperty("httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=T1.lookup(e.filepath||e.filename)),!a&&typeof t=="object"&&(a=ye.DEFAULT_CONTENT_TYPE),a};ye.prototype._multiPartFooter=function(){return function(t){var e=ye.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};ye.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ye.LINE_BREAK};ye.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};ye.prototype.setBoundary=function(t){this._boundary=t};ye.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ye.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(ye.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ye.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};ye.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};ye.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ye.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}MR.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){t(a);return}i.forEach(function(r){e+=r}),t(null,e)})};ye.prototype.submit=function(t,e){var a,i,r={method:"post"};return typeof t=="string"?(t=DR(t),i=O1({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(i=O1(t,r),i.port||(i.port=i.protocol=="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol=="https:"?a=IR.request(i):a=PR.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,l=o(function(d,c){return a.removeListener("error",l),a.removeListener("response",p),e.call(this,d,c)},"callback");p=l.bind(this,null),a.on("error",l),a.on("response",p)}}.bind(this)),a};ye.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit
Line truncated
|
||||
${OA.sanitize(this)}`}};ca.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";ca.PARSE_ERROR="PARSE_ERROR";var $a=ED.createClientLogger("core-http");function xy(t,e){return t?e.httpsAgent:e.httpAgent}o(xy,"getCachedAgent");var Kd=class extends ID.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 Ud(t){return t&&typeof t.pipe=="function"}o(Ud,"isReadableStream");function by(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}o(by,"isStreamComplete");function RA(t){let e=new cr;return t.forEach((a,i)=>{e.set(i,a)}),e}o(RA,"parseHeaders");var Qd=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 Fd.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new Fd.AbortError("The operation was aborted.");r=o(d=>{d.type==="abort"&&i.abort()},"abortListener"),e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let d=e.formData,c=new BD.default,u=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(d)){let h=d[f];if(Array.isArray(h))for(let x=0;x<h.length;x++)u(f,h[x]);else u(f,h)}e.body=c,e.formData=void 0;let m=e.headers.get("Content-Type");m&&m.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 d=e.onUploadProgress,c=new Kd(d);Ud(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),l;try{let d=await this.fetch(e.url,p),c=RA(d.headers),u=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(d.status))||e.streamResponseBody;l={headers:c,request:e,status:d.status,readableStreamBody:u?d.body:void 0,bodyAsText:u?void 0:await d.text()};let m=e.onDownloadProgress;if(m){let f=d.body||void 0;if(Ud(f)){let h=new Kd(m);f.pipe(h),l.readableStreamBody=h}else{let h=parseInt(c.get("Content-Length"))||void 0;h&&m({loadedBytes:h})}}return await this.processRequest(l),l}catch(d){let c=d;throw c.code==="ENOTFOUND"?new ca(c.message,ca.REQUEST_SEND_ERROR,void 0,e):c.type==="aborted"?new Fd.AbortError("The operation was aborted."):c}finally{if(e.abortSignal&&r){let d=Promise.resolve();Ud(n)&&(d=by(n));let c=Promise.resolve();Ud(l?.readableStreamBody)&&(c=by(l.readableStreamBody,i)),Promise.all([d,c]).then(()=>{var u;(u=e.abortSignal)===null||u===void 0||u.removeEventListener("abort",r)}).catch(u=>{$a.warning("Error when cleaning up abortListener on httpRequest",u)})}}}getOrCreateAgent(e){var a;let i=kf(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:p}=e.proxySettings,l=`${r}:${n}:${s}:${p}`,d=(a=this.proxyAgentMap.get(l))!==null&&a!==void 0?a:{},c=xy(i,d);if(c)return c;let u=SA(e.url,e.proxySettings,e.headers);return c=u.agent,u.isHttps?d.httpsAgent=u.agent:d.httpAgent=u.agent,this.proxyAgentMap.set(l,d),c}else if(e.keepAlive){let r=xy(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new fy.Agent(n):r=this.keepAliveAgents.httpAgent=new my.Agent(n),r}else return i?fy.globalAgent:my.globalAgent}async fetch(e,a){return MD.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 PA(t){let{requestOptions:e,tracingOptions:a}=t,r=SD.__rest(t,["requestOptions","tracingOptions"]);return e&&(r=Object.assign(Object.assign({},r),e)),a&&(r.tracingContext=a.tracingContext,r.spanOptions=a?.spanOptions),r}o(PA,"operationOptionsToRequestOptionsBase");var mt=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)}},Yd=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)}},jy={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:ut,explicitArray:!0,ignore
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},$d=Object.assign({},jy);$d.explicitArray=!1;var Go=Object.assign({},jy);Go.explicitArray=!1;Go.renderOpts={pretty:!1};function jf(t,e={}){var a;return Go.rootName=e.rootName,Go.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Bi,new Ry.Builder(Go).buildObject(t)}o(jf,"stringifyXML");function Hy(t,e={}){var a;$d.explicitRoot=!!e.includeRoot,$d.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Bi;let i=new Ry.Parser($d);return new Promise((r,n)=>{t?i.parseString(t,(s,p)=>{s?n(s):r(p)}):n(new Error("Document is empty"))})}o(Hy,"parseXML");function dh(t,e){return{create:(a,i)=>new Hf(a,i,t,e)}}o(dh,"deserializationPolicy");var Uy=["application/json","text/json"],Fy=["application/xml","application/atom+xml"],IA={expectedContentTypes:{json:Uy,xml:Fy}},Hf=class extends mt{static{o(this,"DeserializationPolicy")}constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||Uy,this.xmlContentTypes=i&&i.xml||Fy,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:Bi}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Vy(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function DA(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(DA,"getOperationResponse");function AA(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}o(AA,"shouldDeserializeResponse");function Vy(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:Bi};return LA(t,e,a,p).then(l=>{if(!AA(l))return l;let d=l.request.operationSpec;if(!d||!d.responses)return l;let c=DA(l),{error:u,shouldReturnResponse:m}=MA(l,d,c);if(u)throw u;if(m)return l;if(c){if(c.bodyMapper){let f=l.parsedBody;d.isXML&&c.bodyMapper.type.name===Wr.Sequence&&(f=typeof f=="object"?f[c.bodyMapper.xmlElementName]:[]);try{l.parsedBody=d.serializer.deserialize(c.bodyMapper,f,"operationRes.parsedBody",i)}catch(h){throw new ca(`Error ${h} occurred in deserializing the responseBody - ${l.bodyAsText}`,void 0,l.status,l.request,l)}}else d.httpMethod==="HEAD"&&(l.parsedBody=a.status>=200&&a.status<300);c.headersMapper&&(l.parsedHeaders=d.serializer.deserialize(c.headersMapper,l.headers.toJson(),"operationRes.parsedHeaders",i))}return l})}o(Vy,"deserializeResponseBody");function BA(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(BA,"isOperationSpecEmpty");function MA(t,e,a){var i;let r=200<=t.status&&t.status<300;if(BA(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,l=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,d=new ca(l,void 0,t.status,t.request,t);if(!s)throw d;let c=s.bodyMapper,u=s.headersMapper;try{if(t.parsedBody){let m=t.parsedBody,f;if(c){let x=m;e.isXML&&c.type.name===Wr.Sequence&&(x=typeof m=="object"?m[c.xmlElementName]:[]),f=e.serializer.deserialize(c,x,"error.response.parsedBody")}let h=m.error||f||m;d.code=h.code,h.message&&(d.message=h.message),c&&(d.response.parsedBody=f)}t.headers&&u&&(d.response.parsedHeaders=e.serializer.deserialize(u,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(m){d.message=`Error "${m.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:d,shouldReturnResponse:!1}}o(MA,"handleErrorResponse");function LA(t,e,a,i){var r;let n=o(p=>{let l=`Error "${p}" occurred while parsing the response body - ${a.bodyAsText}.`,d=p.code||ca.PARSE_ERROR,c=new ca(l,d,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,l=a.headers.get("Content-Type")||"",d=l?l.split(";").map(c=>c.toLowerCase()):[];if(d.length===0||d.some(c=>t.indexOf(c)!==-1))return new Promise(c=>{a.parsedBody=JSON.parse(p),c(a)}).catch(n);if(d.some(c=>e.indexOf(c)!==-1))return Hy(p,i).then(c=>(a.parsedBody=c,a)).catch(n)}return Promise.resolve(a)}o(LA,"parse");var $y={enable:!0};function Gy(t){return{create:(e,a)=>new Uf(e,a,t||$y)}}o(Gy,"keepAlivePolicy");var Uf=class extends mt{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)}},wy=["GET","HEAD"],qA={handleRedirects:!0,maxRetries:20};function ch(t=20){return{create:(e,a)=>new Ff(e,a,t)}}o(ch,"redirectPolicy");var Ff=class extends mt{static{o(this,"RedirectPolicy")}constructor(e,a,i=20){super(e,a),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Wy(this,a,0))}};functi
Line truncated
|
||||
`).join(""))}return this._nextPolicy.sendRequest(e)}},Zy=[],e7=!1,QA=new Map;function YA(){if(!process)return;let t=Vd(Ta.HTTPS_PROXY),e=Vd(Ta.ALL_PROXY),a=Vd(Ta.HTTP_PROXY);return t||e||a}o(YA,"loadEnvironmentProxyValue");function JA(t,e,a){if(e.length===0)return!1;let i=ci.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(JA,"isBypassed");function ZA(){let t=Vd(Ta.NO_PROXY);return e7=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(ZA,"loadNoProxy");function t7(t){if(!t&&(t=YA(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=eB(t),r=ci.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}o(t7,"getDefaultProxySettings");function xh(t,e){return t||(t=t7()),e7||Zy.push(...ZA()),{create:(a,i)=>new Yf(a,i,t,e?.customNoProxyList)}}o(xh,"proxyPolicy");function eB(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,l=s?r.substring(n+1):void 0,d=t.substring(0,i)+t.substring(e+1);return{username:p,password:l,urlWithoutAuth:d}}o(eB,"extractAuthFromUrl");var Yf=class extends mt{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&&!JA(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:Zy,this.customNoProxyList?void 0:QA)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function tB(t=30){return{create:(e,a)=>new Jf(e,a,t)}}o(tB,"rpRegistrationPolicy");var Jf=class extends mt{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=>aB(this,e,a))}};function aB(t,e,a){if(a.status===409){let i=iB(a.bodyAsText);if(i){let r=rB(e.url);return nB(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",ec()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}o(aB,"registerIfNeeded");function a7(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",ec()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}o(a7,"getRequestEssentials");function iB(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(iB,"checkRPNotRegisteredError");function rB(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(rB,"extractSubscriptionUrl");async function nB(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=a7(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 i7(t,n,i)}o(nB,"registerRP");async function i7(t,e,a){let i=a7(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 di.delay(t._retryTimeout*1e3),i7(t,e,a))}o(i7,"getRegistrationStatus");function r7(t){return{create:(e,a)=>new Zf(e,a,t)}}o(r7,"signingPolicy");var Zf=class extends mt{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 bh(t,e,a,i){return{create:(r,n)=>new eh(r,n,t,e,a,i)}}o(bh,"systemErrorRetryPolicy");var eh=class extends mt{static{o(this,"SystemErrorRetryPolicy")}constructor(e,a,i,r,n,s){super(e,a),this.retryCount=Gr(i)?i:uh,this.retryInterval=Gr(r)?r:mh,this.minRetryInterval=Gr(n)?n:zA,this.maxRetryInterval=Gr(s)?s:fh}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>n7(this,e,a.response,a))}};async function n7(t,e,a,i,r){r=Ky(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"),Xy(t.retryCount,n,r,a,i))try{return await di.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return n7(t,e,a,s,r)}else return i?Promise.reject(r.error):a}o(n7,"retry");var sB=3,Ny=Ta.HttpConstants.StatusCodes;function wh(){return{create:(t,e)=>new th(t,e)}}o(wh,"throttlingRetryPolicy");var _y="The operation was aborted.",th=class t extends mt{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: ${f7.includes(c)?"Stopped":"Running"}`),c==="succeeded"){let u=s(d,a);if(u!==void 0)return{response:await e(u).catch(u7({state:a,stateProxy:i,isOperationError:p})),status:c}}return{response:d,status:c}}o(_B,"pollOperationHelper");async function v7(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:p,isOperationError:l,withOperationLocation:d,getPollingInterval:c,processResult:u,getError:m,updateState:f,setDelay:h,isDone:x,setErrorAsResult:T}=t,{operationLocation:S}=a.config;if(S!==void 0){let{response:I,status:w}=await _B({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:S,getResourceLocation:s,isOperationError:l,options:r});if(g7({status:w,response:I,state:a,stateProxy:i,isDone:x,processResult:u,getError:m,setErrorAsResult:T}),!f7.includes(w)){let y=c?.(I);y&&h(y);let g=p?.(I,a);if(g!==void 0){let _=S!==g;a.config.operationLocation=g,d?.(g,_)}else d?.(S,!1)}f?.(a,I)}}o(v7,"pollOperation");function x7(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}o(x7,"getOperationLocationPollingUrl");function b7(t){return t.headers.location}o(b7,"getLocationHeader");function w7(t){return t.headers["operation-location"]}o(w7,"getOperationLocationHeader");function N7(t){return t.headers["azure-asyncoperation"]}o(N7,"getAzureAsyncOperationHeader");function SB(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(SB,"findResourceLocation");function _7(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=w7(e),s=N7(e),p=x7({operationLocation:n,azureAsyncOperation:s}),l=b7(e),d=a?.toLocaleUpperCase();return p!==void 0?{mode:"OperationLocation",operationLocation:p,resourceLocation:SB({requestMethod:d,location:l,requestPath:i,resourceLocationConfig:r})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:d==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(_7,"inferLroMode");function S7(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 Ch(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 Kr.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(S7,"transformStatus");function CB(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return S7({status:a,statusCode:t.statusCode})}o(CB,"getStatus");function EB(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 S7({status:n,statusCode:t.statusCode})}o(EB,"getProvisioningState");function Ch(t){return t===202?"running":t<300?"succeeded":"failed"}o(Ch,"toOperationStatus");function C7({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?TB(new Date(e)):a*1e3}}o(C7,"parseRetryAfter");function E7(t){let e=t.flatResponse.error;if(!e){Kr.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Kr.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(E7,"getErrorFromResponse");function TB(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}o(TB,"calculatePollingIntervalFromDate");function T7(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 Ch(e.rawResponse.statusCode);case"Body":return Eh(e,a);default:return"running"}}o(r,"helper");let n=r();return n==="running"&&i===void 0?"succeeded":n}o(T7,"getStatusFromInitialResponse");async function OB(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return y7({init:async()=>{let s=await r.sendInitialRequest(),p=_7({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:T7,setErrorAsResult:n})}o(OB,"initHttpOperation");function O7({rawResponse:t},e){var a;switch((a=e.config.metadata)===null||a===void 0?vLine truncated
|
||||
`,uw="HTTP/1.1",Pq="AES256",Iq="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Dq=["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"],Aq=["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"],Bq="BlobUsesCustomerSpecifiedEncryption",Mq="BlobDoesNotUseCustomerSpecifiedEncryption",Lq=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function qq(t){let e=q.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=kq(a),e.setPath(a),e.toString()}o(qq,"escapeURLPath");function zq(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(zq,"getProxyUriFromDevConnString");function Jn(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}o(Jn,"getValueInConnString");function vs(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=zq(t),t=Iq);let a=Jn(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=Jn(t,"AccountName"),n=Buffer.from(Jn(t,"AccountKey"),"base64"),!a){i=Jn(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=Jn(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=Jn(t,"SharedAccessSignature"),r=fw(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(vs,"extractConnectionStringParts");function kq(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(kq,"escape");function Ue(t,e){let a=q.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(Ue,"appendToURLPath");function tn(t,e
Line truncated
|
||||
`));let i=e.split(`
|
||||
`).map(n=>n.trim());for(let n of i)!n||n.startsWith("#")||r.patterns.push(new v$.Pattern(n));return r.searchPaths.push(...a2.getSearchPaths(r.patterns)),r})}static stat(e,A,r){return e8(this,void 0,void 0,function*(){let i;if(A.followSymbolicLinks)try{i=yield qf.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(A.omitBrokenSymbolicLinks){t8.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 i=yield qf.promises.lstat(e.path);if(i.isDirectory()&&A.followSymbolicLinks){let n=yield qf.promises.realpath(e.path);for(;r.length>=e.level;)r.pop();if(r.some(s=>s===n)){t8.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}r.push(n)}return i})}};xr.DefaultGlobber=A8});var L$=E(yh=>{"use strict";var F7e=yh&&yh.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(yh,"__esModule",{value:!0});yh.create=void 0;var L7e=F$();function U7e(t,e){return F7e(this,void 0,void 0,function*(){return yield L7e.DefaultGlobber.create(t,e)})}a(U7e,"create");yh.create=U7e});var u2=E((Fe,O$)=>{Fe=O$.exports=Ve;var Nt;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Nt=a(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):Nt=a(function(){},"debug");Fe.SEMVER_SPEC_VERSION="2.0.0";var Yf=256,o2=Number.MAX_SAFE_INTEGER||9007199254740991,r8=16,T7e=Yf-6,wh=Fe.re=[],bt=Fe.safeRe=[],T=Fe.src=[],U=Fe.tokens={},M$=0;function $e(t){U[t]=M$++}a($e,"tok");var n8="[a-zA-Z0-9-]",i8=[["\\s",1],["\\d",Yf],[n8,T7e]];function Jf(t){for(var e=0;e<i8.length;e++){var A=i8[e][0],r=i8[e][1];t=t.split(A+"*").join(A+"{0,"+r+"}").split(A+"+").join(A+"{1,"+r+"}")}return t}a(Jf,"makeSafeRe");$e("NUMERICIDENTIFIER");T[U.NUMERICIDENTIFIER]="0|[1-9]\\d*";$e("NUMERICIDENTIFIERLOOSE");T[U.NUMERICIDENTIFIERLOOSE]="\\d+";$e("NONNUMERICIDENTIFIER");T[U.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+n8+"*";$e("MAINVERSION");T[U.MAINVERSION]="("+T[U.NUMERICIDENTIFIER]+")\\.("+T[U.NUMERICIDENTIFIER]+")\\.("+T[U.NUMERICIDENTIFIER]+")";$e("MAINVERSIONLOOSE");T[U.MAINVERSIONLOOSE]="("+T[U.NUMERICIDENTIFIERLOOSE]+")\\.("+T[U.NUMERICIDENTIFIERLOOSE]+")\\.("+T[U.NUMERICIDENTIFIERLOOSE]+")";$e("PRERELEASEIDENTIFIER");T[U.PRERELEASEIDENTIFIER]="(?:"+T[U.NUMERICIDENTIFIER]+"|"+T[U.NONNUMERICIDENTIFIER]+")";$e("PRERELEASEIDENTIFIERLOOSE");T[U.PRERELEASEIDENTIFIERLOOSE]="(?:"+T[U.NUMERICIDENTIFIERLOOSE]+"|"+T[U.NONNUMERICIDENTIFIER]+")";$e("PRERELEASE");T[U.PRERELEASE]="(?:-("+T[U.PRERELEASEIDENTIFIER]+"(?:\\."+T[U.PRERELEASEIDENTIFIER]+")*))";$e("PRERELEASELOOSE");T[U.PRERELEASELOOSE]="(?:-?("+T[U.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+T[U.PRERELEASEIDENTIFIERLOOSE]+")*))";$e("BUILDIDENTIFIER");T[U.BUILDIDENTIFIER]=n8+"+";$e("BUILD");T[U.BUILD]="(?:\\+("+T[U.BUILDIDENTIFIER]+"(?:\\."+T[U.BUILDIDENTIFIER]+")*))";$e("FULL");$e("FULLPLAIN");T[U.FULLPLAIN]="v?"+T[U.MAINVERSION]+T[U.PRERELEASE]+"?"+T[U.BUILD]+"?";T[U.FULL]="^"+T[U.FULLPLAIN]+"$";$e("LOOSEPLAIN");T[U.LOOSEPLAIN]="[v=\\s]*"+T[U.MAINVERSIONLOOSE]+T[U.PRERELEASELOOSE]+"?"+T[U.BUILD]+"?";$e("LOOSE");T[U.LOOSE]="^"+T[U.LOOSEPLAIN]+"$";$e("GTLT");T[U.GTLT]="((?:<|>)?=?)";$e("XRANGEIDENTIFIERLOOSE");T[U.XRANGEIDENTIFIERLOOSE]=T[U.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";$e("XRANGEIDENTIFIER");T[U.XRANGEIDENTIFIER]=T[U.NUMERICIDENTIFIER]+"|x|X|\\*";$e("XRANGEPLAIN");T[U.XRANGEPLAIN]="[v=\\s]*("+T[U.XRANGEIDENTIFIER]+")(?:\\.("+T[U.XRANGEIDENTIFIER]+")(?:\\.("+T[U.XRANGEIDENTIFIER]+")(?:"+T[U.PRERELEASE]+")?"+T[U.BUILD]+"?)?)?";$e("XRANGEPLAINLOOSE");T[U.XRANGEPLAINLOOSE]="[v=\\s]*("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:"+T[U.PRERELEASELOOSE]+")?"+T[U.BUILD]+"?)?)?";$e("XRANGE");T[U.XRANGE]="^"+T[U.GTLT]+"\\s*"+T[U.XRANGEPLAIN]+"$";$e("XRANGELOOSE");T[U.XRANGELOOSE]="^"+T[U.GTLT]+"\\s*"+T[U.XRANGEPLAINLOOSE]+"$";$e("COERCE");T[U.COERCE]="(^|[^\\d])(\\d{1,"+r8+"})(?:\\.(\\d{1,"+r8+"}))?(?:\\.(\\d{1,"+r8+"}))?(?:$|[^\\d])";$e("COERCERTL");wh[U.COERCERTL]=new RegExp(T[U.COERCE],"g");bt[U.COERCERTL]=new RegExp(Jf(T[U.COERCE]),"g");$e("LONETILDE");T[U.LONETILDE]="(?:~>?)";$e("TILDETRIM");T[U.TILDETRIM]="(\\s*)"+T[U.LONETILDE]+"\\s+";wh[U.TILDETRIM]=new RegExp(T[U.TILDETRIM],"g");bt[U.TILDETRIM]=new RegExp(Jf(T[U.TILDETRIM]),"g");var M7e="$1~";$e("TILDE");T[U.TILDE]="^"+T[U.LONETILDE]+T[U.XRANGEPLAIN]+"$";$e("TILDELOOSE");T[U.TILDELOOSE]="^"+T[U.LONETILDE]+T[U.XRANGEPLAINLOOSE]+"$";$e("LONECARET");T[U.LONECARET]="(?:\\^)";$e("CARETTRIM");T[U.CARETTRIM]="(\\s*)"+T[U.LONECARET]+"\\s+";wh[U.CARET
Line truncated
|
||||
`),{implicitDescendants:!1});try{for(var l=!0,d=BMe(c.globGenerator()),u;u=yield d.next(),e=u.done,!e;l=!0){i=u.value,l=!1;let p=i,g=p2.relative(o,p).replace(new RegExp(`\\${p2.sep}`,"g"),"/");Vf.debug(`Matched: ${g}`),g===""?s.push("."):s.push(`${g}`)}}catch(p){A={error:p}}finally{try{!l&&!e&&(r=d.return)&&(yield r.call(d))}finally{if(A)throw A.error}}return s})}a(SMe,"resolvePaths");Et.resolvePaths=SMe;function xMe(t){return Rh(this,void 0,void 0,function*(){return bMe.promisify(l8.unlink)(t)})}a(xMe,"unlinkFile");Et.unlinkFile=xMe;function J$(t,e=[]){return Rh(this,void 0,void 0,function*(){let A="";e.push("--version"),Vf.debug(`Checking ${t} ${e.join(" ")}`);try{yield IMe.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:r=>A+=r.toString(),stderr:r=>A+=r.toString()}})}catch(r){Vf.debug(r.message)}return A=A.trim(),Vf.debug(A),A})}a(J$,"getVersion");function vMe(){return Rh(this,void 0,void 0,function*(){let t=yield J$("zstd",["--quiet"]),e=wMe.clean(t);return Vf.debug(`zstd version: ${e}`),t===""?Su.CompressionMethod.Gzip:Su.CompressionMethod.ZstdWithoutLong})}a(vMe,"getCompressionMethod");Et.getCompressionMethod=vMe;function kMe(t){return t===Su.CompressionMethod.Gzip?Su.CacheFilename.Gzip:Su.CacheFilename.Zstd}a(kMe,"getCacheFileName");Et.getCacheFileName=kMe;function FMe(){return Rh(this,void 0,void 0,function*(){return l8.existsSync(Su.GnuTarPathOnWindows)?Su.GnuTarPathOnWindows:(yield J$("tar")).toLowerCase().includes("gnu tar")?Y$.which("tar"):""})}a(FMe,"getGnuTarPathOnWindows");Et.getGnuTarPathOnWindows=FMe;function LMe(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}a(LMe,"assertDefined");Et.assertDefined=LMe;function UMe(t,e,A=!1){let r=t.slice();return e&&r.push(e),process.platform==="win32"&&!A&&r.push("windows-only"),r.push(NMe),G$.createHash("sha256").update(r.join("|")).digest("hex")}a(UMe,"getCacheVersion");Et.getCacheVersion=UMe;function TMe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}a(TMe,"getRuntimeToken");Et.getRuntimeToken=TMe});function Wf(){return g2>h2.length-16&&(V$.default.randomFillSync(h2),g2=0),h2.slice(g2,g2+=16)}var V$,h2,g2,d8=Le(()=>{V$=Nr(require("crypto")),h2=new Uint8Array(256),g2=h2.length;a(Wf,"rng")});var W$,z$=Le(()=>{W$=/^(?:[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 MMe(t){return typeof t=="string"&&W$.test(t)}var ql,zf=Le(()=>{z$();a(MMe,"validate");ql=MMe});function _Me(t,e=0){let A=(ti[t[e+0]]+ti[t[e+1]]+ti[t[e+2]]+ti[t[e+3]]+"-"+ti[t[e+4]]+ti[t[e+5]]+"-"+ti[t[e+6]]+ti[t[e+7]]+"-"+ti[t[e+8]]+ti[t[e+9]]+"-"+ti[t[e+10]]+ti[t[e+11]]+ti[t[e+12]]+ti[t[e+13]]+ti[t[e+14]]+ti[t[e+15]]).toLowerCase();if(!ql(A))throw TypeError("Stringified UUID is invalid");return A}var ti,Hl,jf=Le(()=>{zf();ti=[];for(let t=0;t<256;++t)ti.push((t+256).toString(16).substr(1));a(_Me,"stringify");Hl=_Me});function OMe(t,e,A){let r=e&&A||0,i=e||new Array(16);t=t||{};let n=t.node||j$,s=t.clockseq!==void 0?t.clockseq:u8;if(n==null||s==null){let p=t.random||(t.rng||Wf)();n==null&&(n=j$=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),s==null&&(s=u8=(p[6]<<8|p[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),c=t.nsecs!==void 0?t.nsecs:g8+1,l=o-p8+(c-g8)/1e4;if(l<0&&t.clockseq===void 0&&(s=s+1&16383),(l<0||o>p8)&&t.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p8=o,g8=c,u8=s,o+=122192928e5;let d=((o&268435455)*1e4+c)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;let u=o/4294967296*1e4&268435455;i[r++]=u>>>8&255,i[r++]=u&255,i[r++]=u>>>24&15|16,i[r++]=u>>>16&255,i[r++]=s>>>8|128,i[r++]=s&255;for(let p=0;p<6;++p)i[r+p]=n[p];return e||Hl(i)}var j$,u8,p8,g8,X$,Z$=Le(()=>{d8();jf();p8=0,g8=0;a(OMe,"v1");X$=OMe});function PMe(t){if(!ql(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 E2,h8=Le(()=>{zf();a(PMe,"parse");E2=PMe});function qMe(t){t=unescape(encodeURIComponent(t));let e=[];for(let A=0;A<t.length;++A)e.push(t.charCodeAt(A));return e}function Xf(t,e,A){function r(i,n,s,o){if(typeof i=="string"&&(i=qMe(i)),typeof n=="string"&&(n=E2(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+i.length);if(c.set(n),c.set(i,n.length),c=A(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,s){o=o||0;for(let l=0;l<16;++l)s[o+l]=c[l];return s}return Hl(c)}a(r,"generateUUID");try{r.name=t}catch{}return r.DNS=HMe,r.URL=YMe,r}var HMe,YMe,E8=Le(()=>{jf();h8();a(qMe,"stringToBytes
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(f8)});var Bo=E((_ee,Yl)=>{(function(){var t,e,A,r,i,n,s,o=[].slice,c={}.hasOwnProperty;t=a(function(){var l,d,u,p,g,h;if(h=arguments[0],g=2<=arguments.length?o.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(l=0,u=g.length;l<u;l++)if(p=g[l],p!=null)for(d in p)c.call(p,d)&&(h[d]=p[d]);return h},"assign"),i=a(function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},"isFunction"),n=a(function(l){var d;return!!l&&((d=typeof l)=="function"||d==="object")},"isObject"),A=a(function(l){return i(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},"isArray"),r=a(function(l){var d;if(A(l))return!l.length;for(d in l)if(c.call(l,d))return!1;return!0},"isEmpty"),s=a(function(l){var d,u;return n(l)&&(u=Object.getPrototypeOf(l))&&(d=u.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},"isPlainObject"),e=a(function(l){return i(l.valueOf)?l.valueOf():l},"getValue"),Yl.exports.assign=t,Yl.exports.isFunction=i,Yl.exports.isObject=n,Yl.exports.isArray=A,Yl.exports.isEmpty=r,Yl.exports.isPlainObject=s,Yl.exports.getValue=e}).call(_ee)});var Q8=E((Oee,Pee)=>{(function(){var t;Pee.exports=t=function(){function e(){}return a(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(A,r){return!0},e.prototype.createDocumentType=function(A,r,i){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(A,r,i){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,r){throw new Error("This DOM method is not implemented.")},e}()}).call(Oee)});var Yee=E((qee,Hee)=>{(function(){var t;Hee.exports=t=function(){function e(){}return a(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(A){throw new Error(A)},e}()}).call(qee)});var Vee=E((Gee,Jee)=>{(function(){var t;Jee.exports=t=function(){function e(A){this.arr=A||[]}return a(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(Gee)});var jee=E((Wee,zee)=>{(function(){var t,e,A;e=Yee(),A=Vee(),zee.exports=t=function(){function r(){var i;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=i=Object.create(this.defaultParams)}return a(r,"XMLDOMConfiguration"),Object.defineProperty(r.prototype,"parameterNames",{get:function(){return new A(Object.keys(this.defaultParams))}}),r.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},r.prototype.canSetParameter=function(i,n){return!0},r.prototype.setParameter=function(i,n){return n!=null?this.params[i]=n:delete this.params[i]},r}()}).call(Wee)});var KA=E((Xee,Zee)=>{(function(){Zee.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(Xee)});var B8=E((Kee,$ee)=>{(function(){var t,e,A;t=KA(),A=rs(),$ee.exports=e=function(){function r(i,n,s){if(this.parent=i,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 a(r,"XMLAttribute"),Object.defineProperty(r.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(r.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(r.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(r.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(r.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(r.prototype,"specified",{get:function(){return!0}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(i){return this.options.writer.attribute(this,this.options.writer.filterOptions(i))},r.prototype.debugInfo=function(i){return i=i||this.name,i==null?"parent: <"+this.parent.name+">":"attribute: {"+i+"}, parent: <"+this.parent.name+">"},r.prototype.isEqualNode=function(i
Line truncated
|
||||
`,C.offset=(S=I.offset)!=null?S:0,C.dontPrettyTextNodes=(w=(k=I.dontPrettyTextNodes)!=null?k:I.dontprettytextnodes)!=null?w:0,C.spaceBeforeSlash=(D=(v=I.spaceBeforeSlash)!=null?v:I.spacebeforeslash)!=null?D:"",C.spaceBeforeSlash===!0&&(C.spaceBeforeSlash=" "),C.suppressPrettyCount=0,C.user={},C.state=e.None,C},b.prototype.indent=function(I,C,Q){var N;return!C.pretty||C.suppressPrettyCount?"":C.pretty&&(N=(Q||0)+C.offset+1,N>0)?new Array(N).join(C.indent):""},b.prototype.endline=function(I,C,Q){return!C.pretty||C.suppressPrettyCount?"":C.newline},b.prototype.attribute=function(I,C,Q){var N;return this.openAttribute(I,C,Q),N=" "+I.name+'="'+I.value+'"',this.closeAttribute(I,C,Q),N},b.prototype.cdata=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<![CDATA[",C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+="]]>"+this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.comment=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<!-- ",C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=" -->"+this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.declaration=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<?xml",C.state=e.InsideTag,N+=' version="'+I.version+'"',I.encoding!=null&&(N+=' encoding="'+I.encoding+'"'),I.standalone!=null&&(N+=' standalone="'+I.standalone+'"'),C.state=e.CloseTag,N+=C.spaceBeforeSlash+"?>",N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.docType=function(I,C,Q){var N,S,w,k,D;if(Q||(Q=0),this.openNode(I,C,Q),C.state=e.OpenTag,k=this.indent(I,C,Q),k+="<!DOCTYPE "+I.root().name,I.pubID&&I.sysID?k+=' PUBLIC "'+I.pubID+'" "'+I.sysID+'"':I.sysID&&(k+=' SYSTEM "'+I.sysID+'"'),I.children.length>0){for(k+=" [",k+=this.endline(I,C,Q),C.state=e.InsideTag,D=I.children,S=0,w=D.length;S<w;S++)N=D[S],k+=this.writeChildNode(N,C,Q+1);C.state=e.CloseTag,k+="]"}return C.state=e.CloseTag,k+=C.spaceBeforeSlash+">",k+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),k},b.prototype.element=function(I,C,Q){var N,S,w,k,D,v,x,L,q,le,_,rt,Se,vt;Q||(Q=0),le=!1,_="",this.openNode(I,C,Q),C.state=e.OpenTag,_+=this.indent(I,C,Q)+"<"+I.name,rt=I.attribs;for(q in rt)B.call(rt,q)&&(N=rt[q],_+=this.attribute(N,C,Q));if(w=I.children.length,k=w===0?null:I.children[0],w===0||I.children.every(function(ht){return(ht.type===t.Text||ht.type===t.Raw)&&ht.value===""}))C.allowEmpty?(_+=">",C.state=e.CloseTag,_+="</"+I.name+">"+this.endline(I,C,Q)):(C.state=e.CloseTag,_+=C.spaceBeforeSlash+"/>"+this.endline(I,C,Q));else if(C.pretty&&w===1&&(k.type===t.Text||k.type===t.Raw)&&k.value!=null)_+=">",C.state=e.InsideTag,C.suppressPrettyCount++,le=!0,_+=this.writeChildNode(k,C,Q+1),C.suppressPrettyCount--,le=!1,C.state=e.CloseTag,_+="</"+I.name+">"+this.endline(I,C,Q);else{if(C.dontPrettyTextNodes){for(Se=I.children,D=0,x=Se.length;D<x;D++)if(S=Se[D],(S.type===t.Text||S.type===t.Raw)&&S.value!=null){C.suppressPrettyCount++,le=!0;break}}for(_+=">"+this.endline(I,C,Q),C.state=e.InsideTag,vt=I.children,v=0,L=vt.length;v<L;v++)S=vt[v],_+=this.writeChildNode(S,C,Q+1);C.state=e.CloseTag,_+=this.indent(I,C,Q)+"</"+I.name+">",le&&C.suppressPrettyCount--,_+=this.endline(I,C,Q),C.state=e.None}return this.closeNode(I,C,Q),_},b.prototype.writeChildNode=function(I,C,Q){switch(I.type){case t.CData:return this.cdata(I,C,Q);case t.Comment:return this.comment(I,C,Q);case t.Element:return this.element(I,C,Q);case t.Raw:return this.raw(I,C,Q);case t.Text:return this.text(I,C,Q);case t.ProcessingInstruction:return this.processingInstruction(I,C,Q);case t.Dummy:return"";case t.Declaration:return this.declaration(I,C,Q);case t.DocType:return this.docType(I,C,Q);case t.AttributeDeclaration:return this.dtdAttList(I,C,Q);case t.ElementDeclaration:return this.dtdElement(I,C,Q);case t.EntityDeclaration:return this.dtdEntity(I,C,Q);case t.NotationDeclaration:return this.dtdNotation(I,C,Q);default:throw new Error("Unknown XML node type: "+I.constructor.name)}},b.prototype.processingInstruction=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<?",C.state=e.InsideTag,N+=I.target,I.value&&(N+=" "+I.value),C.state=e.CloseTag,N+=C.spaceBeforeSlash+"?>",N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.raw=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q),C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.text=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q),C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.dtdAttList=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<!ATTLIST",C.state=e.InsideTag,N+=" "+I.elementName+" "+I.attributeName+" "+I.attributeTyp
Line truncated
|
||||
`||R==="\r"||R===" "}a(I,"isWhitespace");function C(R){return R==='"'||R==="'"}a(C,"isQuote");function Q(R){return R===">"||I(R)}a(Q,"isAttribEnd");function N(R,y){return R.test(y)}a(N,"isMatch");function S(R,y){return!N(R,y)}a(S,"notMatch");var w=0;t.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},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(R){var y=t.ENTITIES[R],M=typeof y=="number"?String.fromCharCode(y):y;t.ENTITIES[R]=M});for(var k in t.STATE)t.STATE[t.STATE[k]]=k;w=t.STATE;function D(R,y,M){R[y]&&R[y](M)}a(D,"emit");function v(R,y,M){R.textNode&&x(R),D(R,y,M)}a(v,"emitNode");function x(R){R.textNode=L(R.opt,R.textNode),R.textNode&&D(R,"ontext",R.textNode),R.textNode=""}a(x,"closeText");function L(R,y){return R.trim&&(y=y.trim()),R.normalize&&(y=y.replace(/\s+/g," ")),y}a(L,"textopts");function q(R,y){return x(R),R.trackPosition&&(y+=`
|
||||
Line: `+R.line+`
|
||||
Column: `+R.column+`
|
||||
Char: `+R.c),y=new Error(y),R.error=y,D(R,"onerror",y),R}a(q,"error");function le(R){return R.sawRoot&&!R.closedRoot&&_(R,"Unclosed root tag"),R.state!==w.BEGIN&&R.state!==w.BEGIN_WHITESPACE&&R.state!==w.TEXT&&q(R,"Unexpected end"),x(R),R.c="",R.closed=!0,D(R,"onend"),A.call(R,R.strict,R.opt),R}a(le,"end");function _(R,y){if(typeof R!="object"||!(R instanceof A))throw new Error("bad call to strictFail");R.strict&&q(R,y)}a(_,"strictFail");function rt(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var y=R.tags[R.tags.length-1]||R,M=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(M.ns=y.ns),R.attribList.length=0,v(R,"onopentagstart",M)}a(rt,"newTag");function Se(R,y){var M=R.indexOf(":"),F=M<0?["",R]:R.split(":"),kt=F[0],pr=F[1];return y&&R==="xmlns"&&(kt="xmlns",pr=""),{prefix:kt,local:pr}}a(Se,"qname");function vt(R){if(R.strict||(R.attribName=R.attribName[R.looseCase]()),R.attribList.indexOf(R.attribName)!==-1||R.tag.attributes.hasOwnProperty(R.attribName)){R.attribName=R.attribValue="";return}if(R.opt.xmlns){var y=Se(R.attribName,!0),M=y.prefix,F=y.local;if(M==="xmlns")if(F==="xml"&&R.attribValue!==p)_(R,"xml: prefix must be bound to "+p+`
|
||||
Actual: `+R.attribValue);else if(F==="xmlns"&&R.attribValue!==g)_(R,"xmlns: prefix must be bound to "+g+`
|
||||
Actual: `+R.attribValue);else{var kt=R.tag,pr=R.tags[R.tags.length-1]||R;kt.ns===pr.ns&&(kt.ns=Object.create(pr.ns)),kt.ns[F]=R.attribValue}R.attribList.push([R.attribName,R.attribValue])}else R.tag.attributes[R.attribName]=R.attribValue,v(R,"onattribute",{name:R.attribName,value:R.attribValue});R.attribName=R.attribValue=""}a(vt,"attrib");function ht(R,y){if(R.opt.xmlns){var M=R.tag,F=Se(R.tagName);M.prefix=F.prefix,M.local=F.local,M.uri=M.ns[F.prefix]||"",M.prefix&&!M.uri&&(_(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),M.uri=F.prefix);var kt=R.tags[R.tags.length-1]||R;M.ns&&kt.ns!==M.ns&&Object.keys(M.ns).forEach(function(C_){v(R,"onopennamespace",{prefix:C_,uri:M.ns[C_]})});for(var pr=0,gr=R.attribList.length;pr<gr;pr++){var Xi=R.attribList[pr],ys=Xi[0],xp=Xi[1],Gr=Se(ys,!0),Xo=Gr.prefix,TQe=Gr.local,m_=Xo===""?"":M.ns[Xo]||"",r4={name:ys,value:xp,prefix:Xo,local:TQe,uri:m_};Xo&&Xo!=="xmlns"&&!m_&&(_(R,"Unbound namespace prefix: "+JSON.stringify(Xo)),r4.uri=Xo),R.tag.attributes[ys]=r4,v(R,"onattribute",r4)}R.attribList.length=0}R.tag.isSelfClosing=!!y,R.sawRoot=!0,R.tags.push(R.tag),v(R,"onopentag",R.tag),y||(!R.noscript&&R.tagName.toLowerCase()==="script"?R.state=w.SCRIPT:R.state=w.TEXT,R.tag=null,R.tagName=""),R.attribName=R.attribValue="",R.attribList.length=0}a(ht,"openTag");function wr(R){if(!R.tagName){_(R,"Weird empty close tag."),R.textNode+="</>",R.state=w.TEXT;return}if(R.script){if(R.tagName!=="script"){R.script+="</"+R.tagName+">",R.tagName="",R.state=w.SCRIPT;return}v(R,"onscript",R.script),R.script=""}var y=R.tags.length,M=R.tagName;R.strict||(M=M[R.looseCase]());for(var F=M;y--;){var kt=R.tags[y];if(kt.name!==F)_(R,"Unexpected close tag");else break}if(y<0){_(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=w.TEXT;return}R.tagName=M;for(var pr=R.tags.length;pr-- >y;){var gr=R.tag=R.tags.pop();R.tagName=R.tag.name,v(R,"onclosetag",R.tagName);var Xi={};for(var ys in gr.ns)Xi[ys]=gr.ns[ys];var xp=R.tags[R.tags.length-1]||R;R.opt.xmlns&&gr.ns!==xp.ns&&Object.keys(gr.ns).forEach(function(Gr){var Xo=gr.ns[Gr];v(R,"onclosenamespace",{prefix:Gr,uri:Xo})})}y===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=w.TEXT}a(wr,"closeTag");function br(R){var y=R.entity,M=y.toLowerCase(),F,kt="";return R.ENTITIES[y]?R.ENTITIES[y]:R.ENTITIES[M]?R.ENTITIES[M]:(y=M,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),F=parseInt(y,16),kt=F.toString(16)):(y=y.slice(1),F=parseInt(y,10),kt=F.toString(10))),y=y.replace(/^0+/,""),isNaN(F)||kt.toLowerCase()!==y?(_(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint(F))}a(br,"parseEntity");function pe(R,y){y==="<"?(R.state=w.OPEN_WAKA,R.startTagPosition=R.position):I(y)||(_(R,"Non-whitespace before first tag."),R.textNode=y,R.state=w.TEXT)}a(pe,"beginWhiteSpace");function ot(R,y){var M="";return y<R.length&&(M=R.charAt(y)),M}a(ot,"charAt");function Ct(R){var y=this;if(this.error)throw this.error;if(y.closed)return q(y,"Cannot write after close. Assign an onready handler.");if(R===null)return le(y);typeof R=="object"&&(R=R.toString());for(var M=0,F="";F=ot(R,M++),y.c=F,!!F;)switch(y.trackPosition&&(y.position++,F===`
|
||||
`?(y.line++,y.column=0):y.column++),y.state){case w.BEGIN:if(y.state=w.BEGIN_WHITESPACE,F==="\uFEFF")continue;pe(y,F);continue;case w.BEGIN_WHITESPACE:pe(y,F);continue;case w.TEXT:if(y.sawRoot&&!y.closedRoot){for(var kt=M-1;F&&F!=="<"&&F!=="&";)F=ot(R,M++),F&&y.trackPosition&&(y.position++,F===`
|
||||
`?(y.line++,y.column=0):y.column++);y.textNode+=R.substring(kt,M-1)}F==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=w.OPEN_WAKA,y.startTagPosition=y.position):(!I(F)&&(!y.sawRoot||y.closedRoot)&&_(y,"Text data outside of root node."),F==="&"?y.state=w.TEXT_ENTITY:y.textNode+=F);continue;case w.SCRIPT:F==="<"?y.state=w.SCRIPT_ENDING:y.script+=F;continue;case w.SCRIPT_ENDING:F==="/"?y.state=w.CLOSE_TAG:(y.script+="<"+F,y.state=w.SCRIPT);continue;case w.OPEN_WAKA:if(F==="!")y.state=w.SGML_DECL,y.sgmlDecl="";else if(!I(F))if(N(m,F))y.state=w.OPEN_TAG,y.tagName=F;else if(F==="/")y.state=w.CLOSE_TAG,y.tagName="";else if(F==="?")y.state=w.PROC_INST,y.procInstName=y.procInstBody="";else{if(_(y,"Unencoded <"),y.startTagPosition+1<y.position){var pr=y.position-y.startTagPosition;F=new Array(pr).join(" ")+F}y.textNode+="<"+F,y.state=w.TEXT}continue;case w.SGML_DECL:(y.sgmlDecl+F).toUpperCase()===d?(v(y,"onopencdata"),y.state=w.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+F==="--"?(y.state=w.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+F).toUpperCase()===u?(y.state=w.DOCTYPE,(y.doctype||y.sawRoot)&&_(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):F===">"?(v(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=w.TEXT):(C(F)&&(y.state=w.SGML_DECL_QUOTED),y.sgmlDecl+=F);continue;case w.SGML_DECL_QUOTED:F===y.q&&(y.state=w.SGML_DECL,y.q=""),y.sgmlDecl+=F;continue;case w.DOCTYPE:F===">"?(y.state=w.TEXT,v(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=F,F==="["?y.state=w.DOCTYPE_DTD:C(F)&&(y.state=w.DOCTYPE_QUOTED,y.q=F));continue;case w.DOCTYPE_QUOTED:y.doctype+=F,F===y.q&&(y.q="",y.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:y.doctype+=F,F==="]"?y.state=w.DOCTYPE:C(F)&&(y.state=w.DOCTYPE_DTD_QUOTED,y.q=F);continue;case w.DOCTYPE_DTD_QUOTED:y.doctype+=F,F===y.q&&(y.state=w.DOCTYPE_DTD,y.q="");continue;case w.COMMENT:F==="-"?y.state=w.COMMENT_ENDING:y.comment+=F;continue;case w.COMMENT_ENDING:F==="-"?(y.state=w.COMMENT_ENDED,y.comment=L(y.opt,y.comment),y.comment&&v(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+F,y.state=w.COMMENT);continue;case w.COMMENT_ENDED:F!==">"?(_(y,"Malformed comment"),y.comment+="--"+F,y.state=w.COMMENT):y.state=w.TEXT;continue;case w.CDATA:F==="]"?y.state=w.CDATA_ENDING:y.cdata+=F;continue;case w.CDATA_ENDING:F==="]"?y.state=w.CDATA_ENDING_2:(y.cdata+="]"+F,y.state=w.CDATA);continue;case w.CDATA_ENDING_2:F===">"?(y.cdata&&v(y,"oncdata",y.cdata),v(y,"onclosecdata"),y.cdata="",y.state=w.TEXT):F==="]"?y.cdata+="]":(y.cdata+="]]"+F,y.state=w.CDATA);continue;case w.PROC_INST:F==="?"?y.state=w.PROC_INST_ENDING:I(F)?y.state=w.PROC_INST_BODY:y.procInstName+=F;continue;case w.PROC_INST_BODY:if(!y.procInstBody&&I(F))continue;F==="?"?y.state=w.PROC_INST_ENDING:y.procInstBody+=F;continue;case w.PROC_INST_ENDING:F===">"?(v(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=w.TEXT):(y.procInstBody+="?"+F,y.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:N(f,F)?y.tagName+=F:(rt(y),F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:(I(F)||_(y,"Invalid character in tag name"),y.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:F===">"?(ht(y,!0),wr(y)):(_(y,"Forward-slash in opening tag not followed by >"),y.state=w.ATTRIB);continue;case w.ATTRIB:if(I(F))continue;F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:N(m,F)?(y.attribName=F,y.attribValue="",y.state=w.ATTRIB_NAME):_(y,"Invalid attribute name");continue;case w.ATTRIB_NAME:F==="="?y.state=w.ATTRIB_VALUE:F===">"?(_(y,"Attribute without value"),y.attribValue=y.attribName,vt(y),ht(y)):I(F)?y.state=w.ATTRIB_NAME_SAW_WHITE:N(f,F)?y.attribName+=F:_(y,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if(F==="=")y.state=w.ATTRIB_VALUE;else{if(I(F))continue;_(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",v(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",F===">"?ht(y):N(m,F)?(y.attribName=F,y.state=w.ATTRIB_NAME):(_(y,"Invalid attribute name"),y.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:if(I(F))continue;C(F)?(y.q=F,y.state=w.ATTRIB_VALUE_QUOTED):(_(y,"Unquoted attribute value"),y.state=w.ATTRIB_VALUE_UNQUOTED,y.attribValue=F);continue;case w.ATTRIB_VALUE_QUOTED:if(F!==y.q){F==="&"?y.state=w.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=F;continue}vt(y),y.q="",y.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:I(F)?y.state=w.ATTRIB:F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:N(m,F)?(_(y,"No whitespace between attributes"),y.attribName=F,y.attribValue="",y.state=w.ATTRIB_NAME):_(y,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!Q(F)){F==="&"?y.state=w.ATTRIB_VALUE_ENTITY_U:y.attribValue+=F;continue}vt(y),F===">"?ht(y):y.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(y.tagName)F===">"?wr(y):N(f,F)?y.tagName+=F:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=w.SCRIPT):(I(F)||_(y,"Invalid tagname in closing tag"),y.state=w.CLOSE_TAG_SAW_WHITE);else{if(I(F))continue;S
Line truncated
|
||||
`;ut.DEFAULT_CONTENT_TYPE="application/octet-stream";ut.prototype.append=function(t,e,A){A=A||{},typeof A=="string"&&(A={filename:A});var r=e5.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),wre.isArray(e)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(t,e,A),n=this._multiPartFooter();r(i),r(e),r(n),this._trackLength(i,e,A)};ut.prototype._trackLength=function(t,e,A){var r=0;A.knownLength!=null?r+=+A.knownLength:Buffer.isBuffer(e)?r=e.length:typeof e=="string"&&(r=Buffer.byteLength(e)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(t)+ut.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof SOe))&&(A.knownLength||this._valuesToMeasure.push(e))};ut.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)):DOe.stat(t.path,function(A,r){var i;if(A){e(A);return}i=r.size-(t.start?t.start:0),e(null,i)}):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")};ut.prototype._multiPartHeader=function(t,e,A){if(typeof A.header=="string")return A.header;var r=this._getContentDisposition(e,A),i=this._getContentType(e,A),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};typeof A.header=="object"&&$8(s,A.header);var o;for(var c in s)s.hasOwnProperty(c)&&(o=s[c],o!=null&&(Array.isArray(o)||(o=[o]),o.length&&(n+=c+": "+o.join("; ")+ut.LINE_BREAK)));return"--"+this.getBoundary()+ut.LINE_BREAK+n+ut.LINE_BREAK};ut.prototype._getContentDisposition=function(t,e){var A,r;return typeof e.filepath=="string"?A=Z8.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?A=Z8.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(A=Z8.basename(t.client._httpMessage.path||"")),A&&(r='filename="'+A+'"'),r};ut.prototype._getContentType=function(t,e){var A=e.contentType;return!A&&t.name&&(A=K8.lookup(t.name)),!A&&t.path&&(A=K8.lookup(t.path)),!A&&t.readable&&t.hasOwnProperty("httpVersion")&&(A=t.headers["content-type"]),!A&&(e.filepath||e.filename)&&(A=K8.lookup(e.filepath||e.filename)),!A&&typeof t=="object"&&(A=ut.DEFAULT_CONTENT_TYPE),A};ut.prototype._multiPartFooter=function(){return function(t){var e=ut.LINE_BREAK,A=this._streams.length===0;A&&(e+=this._lastBoundary()),t(e)}.bind(this)};ut.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ut.LINE_BREAK};ut.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};ut.prototype.setBoundary=function(t){this._boundary=t};ut.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ut.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),A=0,r=this._streams.length;A<r;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(ut.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ut.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};ut.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};ut.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ut.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}xOe.parallel(this._valuesToMeasure,this._lengthRetriever,function(A,r){if(A){t(A);return}r.forEach(function(i){e+=i}),t(null,e)})};ut.prototype.submit=function(t,e){var A,r,i={method:"post"};return typeof t=="string"?(t=ROe(t),r=$8({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},i)):(r=$8(t,i),r.port||(r.port=r.protocol=="https:"?443:80)),r.headers=this.getHeaders(t.headers),r.protocol=="https:"?A=NOe.request(r):A=bOe.request(r),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 o,c=a(function(l,d){return A.removeListener("error",c),A.removeListener("response",o),e.call(this,l,d)},"callback");o=c.bind(this,null),A.on("error",c),A.on("response",o)}}.bind(this)),A};ut.prototype._error=function(t){this.error||(this.error=t,this.pause(),th
Line truncated
|
||||
${yYe.sanitize(this)}`}};ss.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";ss.PARSE_ERROR="PARSE_ERROR";var Fa=BHe.createClientLogger("core-http");function bne(t,e){return t?e.httpsAgent:e.httpAgent}a(bne,"getCachedAgent");var Ab=class extends NHe.Transform{static{a(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,A,r){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),r(void 0)}};function jw(t){return t&&typeof t.pipe=="function"}a(jw,"isReadableStream");function Nne(t,e){return new Promise(A=>{t.once("close",()=>{e?.abort(),A()}),t.once("end",A),t.once("error",A)})}a(Nne,"isStreamComplete");function wYe(t){let e=new Kl;return t.forEach((A,r)=>{e.set(r,A)}),e}a(wYe,"parseHeaders");var rb=class{static{a(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 r=new Xw.AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new Xw.AbortError("The operation was aborted.");i=a(l=>{l.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",i)}if(e.timeout&&setTimeout(()=>{r.abort()},e.timeout),e.formData){let l=e.formData,d=new SHe.default,u=a((g,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?d.append(g,h.value,h.options):d.append(g,h)},"appendFormValue");for(let g of Object.keys(l)){let h=l[g];if(Array.isArray(h))for(let m=0;m<h.length;m++)u(g,h[m]);else u(g,h)}e.body=d,e.formData=void 0;let p=e.headers.get("Content-Type");p&&p.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 n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let l=e.onUploadProgress,d=new Ab(l);jw(n)?n.pipe(d):d.end(n),n=d}let s=await this.prepareRequest(e),o=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:r.signal,redirect:"manual"},s),c;try{let l=await this.fetch(e.url,o),d=wYe(l.headers),u=((A=e.streamResponseStatusCodes)===null||A===void 0?void 0:A.has(l.status))||e.streamResponseBody;c={headers:d,request:e,status:l.status,readableStreamBody:u?l.body:void 0,bodyAsText:u?void 0:await l.text()};let p=e.onDownloadProgress;if(p){let g=l.body||void 0;if(jw(g)){let h=new Ab(p);g.pipe(h),c.readableStreamBody=h}else{let h=parseInt(d.get("Content-Length"))||void 0;h&&p({loadedBytes:h})}}return await this.processRequest(c),c}catch(l){let d=l;throw d.code==="ENOTFOUND"?new ss(d.message,ss.REQUEST_SEND_ERROR,void 0,e):d.type==="aborted"?new Xw.AbortError("The operation was aborted."):d}finally{if(e.abortSignal&&i){let l=Promise.resolve();jw(n)&&(l=Nne(n));let d=Promise.resolve();jw(c?.readableStreamBody)&&(d=Nne(c.readableStreamBody,r)),Promise.all([l,d]).then(()=>{var u;(u=e.abortSignal)===null||u===void 0||u.removeEventListener("abort",i)}).catch(u=>{Fa.warning("Error when cleaning up abortListener on httpRequest",u)})}}}getOrCreateAgent(e){var A;let r=ck(e.url);if(e.proxySettings){let{host:i,port:n,username:s,password:o}=e.proxySettings,c=`${i}:${n}:${s}:${o}`,l=(A=this.proxyAgentMap.get(c))!==null&&A!==void 0?A:{},d=bne(r,l);if(d)return d;let u=fYe(e.url,e.proxySettings,e.headers);return d=u.agent,u.isHttps?l.httpsAgent=u.agent:l.httpAgent=u.agent,this.proxyAgentMap.set(c,l),d}else if(e.keepAlive){let i=bne(r,this.keepAliveAgents);if(i)return i;let n={keepAlive:e.keepAlive};return r?i=this.keepAliveAgents.httpsAgent=new Qne.Agent(n):i=this.keepAliveAgents.httpAgent=new fne.Agent(n),i}else return r?Qne.globalAgent:fne.globalAgent}async fetch(e,A){return xHe.default(e,A)}async prepareRequest(e){let A={};return A.agent=this.getOrCreateAgent(e),A.compress=e.decompressResponse,A}async processRequest(e){}};Z.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"})(Z.HttpPipelineLogLevel||(Z.HttpPipelineLogLevel={}));function bYe(t){let{requestOptions:e,tracingOptions:A}=t,i=fHe.__rest(t,["requestOptions","tracingOptions"]);return e&&(i=Object.assign(Object.assign({},i),e)),A&&(i.tracingContext=A.tracingContext,i.spanOptions=A?.spanOptions),i}a(bYe,"operationOptionsToRequestOptionsBase");var fr=class{static{a(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)}},ib=class{static{a(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==Z.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,A){this._logger&&this.shouldLog(e)&&this._logger.log(e,A)}},Vne={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:C
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},Kw=Object.assign({},Vne);Kw.explicitArray=!1;var yQ=Object.assign({},Vne);yQ.explicitArray=!1;yQ.renderOpts={pretty:!1};function lk(t,e={}){var A;return yQ.rootName=e.rootName,yQ.charkey=(A=e.xmlCharKey)!==null&&A!==void 0?A:Uc,new Une.Builder(yQ).buildObject(t)}a(lk,"stringifyXML");function Wne(t,e={}){var A;Kw.explicitRoot=!!e.includeRoot,Kw.charkey=(A=e.xmlCharKey)!==null&&A!==void 0?A:Uc;let r=new Une.Parser(Kw);return new Promise((i,n)=>{t?r.parseString(t,(s,o)=>{s?n(s):i(o)}):n(new Error("Document is empty"))})}a(Wne,"parseXML");function Lk(t,e){return{create:(A,r)=>new dk(A,r,t,e)}}a(Lk,"deserializationPolicy");var zne=["application/json","text/json"],jne=["application/xml","application/atom+xml"],NYe={expectedContentTypes:{json:zne,xml:jne}},dk=class extends fr{static{a(this,"DeserializationPolicy")}constructor(e,A,r,i={}){var n;super(e,A),this.jsonContentTypes=r&&r.json||zne,this.xmlContentTypes=r&&r.xml||jne,this.xmlCharKey=(n=i.xmlCharKey)!==null&&n!==void 0?n:Uc}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(A=>Xne(this.jsonContentTypes,this.xmlContentTypes,A,{xmlCharKey:this.xmlCharKey}))}};function RYe(t){let e,A=t.request,r=A.operationSpec;if(r){let i=A.operationResponseGetter;i?e=i(r,t):e=r.responses[t.status]}return e}a(RYe,"getOperationResponse");function DYe(t){let e=t.request.shouldDeserialize,A;return e===void 0?A=!0:typeof e=="boolean"?A=e:A=e(t),A}a(DYe,"shouldDeserializeResponse");function Xne(t,e,A,r={}){var i,n,s;let o={rootName:(i=r.rootName)!==null&&i!==void 0?i:"",includeRoot:(n=r.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=r.xmlCharKey)!==null&&s!==void 0?s:Uc};return vYe(t,e,A,o).then(c=>{if(!DYe(c))return c;let l=c.request.operationSpec;if(!l||!l.responses)return c;let d=RYe(c),{error:u,shouldReturnResponse:p}=xYe(c,l,d);if(u)throw u;if(p)return c;if(d){if(d.bodyMapper){let g=c.parsedBody;l.isXML&&d.bodyMapper.type.name===qu.Sequence&&(g=typeof g=="object"?g[d.bodyMapper.xmlElementName]:[]);try{c.parsedBody=l.serializer.deserialize(d.bodyMapper,g,"operationRes.parsedBody",r)}catch(h){throw new ss(`Error ${h} occurred in deserializing the responseBody - ${c.bodyAsText}`,void 0,c.status,c.request,c)}}else l.httpMethod==="HEAD"&&(c.parsedBody=A.status>=200&&A.status<300);d.headersMapper&&(c.parsedHeaders=l.serializer.deserialize(d.headersMapper,c.headers.toJson(),"operationRes.parsedHeaders",r))}return c})}a(Xne,"deserializeResponseBody");function SYe(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}a(SYe,"isOperationSpecEmpty");function xYe(t,e,A){var r;let i=200<=t.status&&t.status<300;if(SYe(e)?i:!!A)if(A){if(!A.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=A??e.responses.default,c=((r=t.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new ss(c,void 0,t.status,t.request,t);if(!s)throw l;let d=s.bodyMapper,u=s.headersMapper;try{if(t.parsedBody){let p=t.parsedBody,g;if(d){let m=p;e.isXML&&d.type.name===qu.Sequence&&(m=typeof p=="object"?p[d.xmlElementName]:[]),g=e.serializer.deserialize(d,m,"error.response.parsedBody")}let h=p.error||g||p;l.code=h.code,h.message&&(l.message=h.message),d&&(l.response.parsedBody=g)}t.headers&&u&&(l.response.parsedHeaders=e.serializer.deserialize(u,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(p){l.message=`Error "${p.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}a(xYe,"handleErrorResponse");function vYe(t,e,A,r){var i;let n=a(o=>{let c=`Error "${o}" occurred while parsing the response body - ${A.bodyAsText}.`,l=o.code||ss.PARSE_ERROR,d=new ss(c,l,A.status,A.request,A);return Promise.reject(d)},"errorHandler");if(!(((i=A.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(A.status))||A.request.streamResponseBody)&&A.bodyAsText){let o=A.bodyAsText,c=A.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=>{A.parsedBody=JSON.parse(o),d(A)}).catch(n);if(l.some(d=>e.indexOf(d)!==-1))return Wne(o,r).then(d=>(A.parsedBody=d,A)).catch(n)}return Promise.resolve(A)}a(vYe,"parse");var Zne={enable:!0};function Kne(t){return{create:(e,A)=>new uk(e,A,t||Zne)}}a(Kne,"keepAlivePolicy");var uk=class extends fr{static{a(this,"KeepAlivePolicy")}constructor(e,A,r){super(e,A),this.keepAliveOptions=r}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},Rne=["GET","HEAD"],kYe={handleRedirects:!0,maxRetries:20};function Uk(t=20){return{create:(e,A)=>new pk(e,A,t)}}a(Uk,"redirectPolicy");var pk=class extends fr{static{a(this,"RedirectPolicy")}constructor(e,A,r=20){super(e,A),this.maxRetries=r}sendRequest(e){return this._nextPolicy.sendReq
Line truncated
|
||||
`).join(""))}return this._nextPolicy.sendRequest(e)}},nse=[],sse=!1,JYe=new Map;function VYe(){if(!process)return;let t=Zw(Xs.HTTPS_PROXY),e=Zw(Xs.ALL_PROXY),A=Zw(Xs.HTTP_PROXY);return t||e||A}a(VYe,"loadEnvironmentProxyValue");function WYe(t,e,A){if(e.length===0)return!1;let r=Do.parse(t).getHost();if(A?.has(r))return A.get(r);let i=!1;for(let n of e)n[0]==="."?(r.endsWith(n)||r.length===n.length-1&&r===n.slice(1))&&(i=!0):r===n&&(i=!0);return A?.set(r,i),i}a(WYe,"isBypassed");function zYe(){let t=Zw(Xs.NO_PROXY);return sse=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}a(zYe,"loadNoProxy");function ase(t){if(!t&&(t=VYe(),!t))return;let{username:e,password:A,urlWithoutAuth:r}=jYe(t),i=Do.parse(r);return{host:(i.getScheme()?i.getScheme()+"://":"")+i.getHost(),port:Number.parseInt(i.getPort()||"80"),username:e,password:A}}a(ase,"getDefaultProxySettings");function Yk(t,e){return t||(t=ase()),sse||nse.push(...zYe()),{create:(A,r)=>new Bk(A,r,t,e?.customNoProxyList)}}a(Yk,"proxyPolicy");function jYe(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let A=t.indexOf("://"),r=A!==-1?A+3:0,i=t.substring(r,e),n=i.indexOf(":"),s=n!==-1,o=s?i.substring(0,n):i,c=s?i.substring(n+1):void 0,l=t.substring(0,r)+t.substring(e+1);return{username:o,password:c,urlWithoutAuth:l}}a(jYe,"extractAuthFromUrl");var Bk=class extends fr{static{a(this,"ProxyPolicy")}constructor(e,A,r,i){super(e,A),this.proxySettings=r,this.customNoProxyList=i}sendRequest(e){var A;return!e.proxySettings&&!WYe(e.url,(A=this.customNoProxyList)!==null&&A!==void 0?A:nse,this.customNoProxyList?void 0:JYe)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function XYe(t=30){return{create:(e,A)=>new Ik(e,A,t)}}a(XYe,"rpRegistrationPolicy");var Ik=class extends fr{static{a(this,"RPRegistrationPolicy")}constructor(e,A,r=30){super(e,A),this._retryTimeout=r}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(A=>ZYe(this,e,A))}};function ZYe(t,e,A){if(A.status===409){let r=KYe(A.bodyAsText);if(r){let i=$Ye(e.url);return eGe(t,i,r,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",ab()),t._nextPolicy.sendRequest(e.clone())):A)}}return Promise.resolve(A)}a(ZYe,"registerIfNeeded");function ose(t,e=!1){let A=t.clone();return e&&(A.url=t.url),A.headers.set("x-ms-client-request-id",ab()),A.headers.set("Content-Type","application/json; charset=utf-8"),A}a(ose,"getRequestEssentials");function KYe(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 r=A.error.message.match(/.*'(.*)'/i);r&&(e=r.pop())}}return e}a(KYe,"checkRPNotRegisteredError");function $Ye(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}a($Ye,"extractSubscriptionUrl");async function eGe(t,e,A,r){let i=`${e}providers/${A}/register?api-version=2016-02-01`,n=`${e}providers/${A}?api-version=2016-02-01`,s=ose(r);if(s.method="POST",s.url=i,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${A} failed. Please try registering manually.`);return cse(t,n,r)}a(eGe,"registerRP");async function cse(t,e,A){let r=ose(A);r.url=e,r.method="GET";let i=await t._nextPolicy.sendRequest(r),n=i.parsedBody;return i.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await Ro.delay(t._retryTimeout*1e3),cse(t,e,A))}a(cse,"getRegistrationStatus");function lse(t){return{create:(e,A)=>new yk(e,A,t)}}a(lse,"signingPolicy");var yk=class extends fr{static{a(this,"SigningPolicy")}constructor(e,A,r){super(e,A),this.authenticationProvider=r}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(A=>this._nextPolicy.sendRequest(A))}};function Gk(t,e,A,r){return{create:(i,n)=>new wk(i,n,t,e,A,r)}}a(Gk,"systemErrorRetryPolicy");var wk=class extends fr{static{a(this,"SystemErrorRetryPolicy")}constructor(e,A,r,i,n,s){super(e,A),this.retryCount=Pu(r)?r:Tk,this.retryInterval=Pu(i)?i:Mk,this.minRetryInterval=Pu(n)?n:FYe,this.maxRetryInterval=Pu(s)?s:_k}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(A=>dse(this,e,A.response,A))}};async function dse(t,e,A,r,i){i=tse(t,i,r);function n(s,o){return!!(o&&o.code&&(o.code==="ETIMEDOUT"||o.code==="ESOCKETTIMEDOUT"||o.code==="ECONNREFUSED"||o.code==="ECONNRESET"||o.code==="ENOENT"))}if(a(n,"shouldPolicyRetry"),ese(t.retryCount,n,i,A,r))try{return await Ro.delay(i.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return dse(t,e,A,s,i)}else return r?Promise.reject(i.error):A}a(dse,"retry");var tGe=3,Dne=Xs.HttpConstants.StatusCodes;function Jk(){return{create:(t,e)=>new bk(t,e)}}a(Jk,"throttlingRetryPolicy");var Sne="The operation was aborted.",bk=class t extends fr{static{a(this,"ThrottlingRetryPolicy")}constructor(e,A,r){super(e,A),this.numberOfRetries=0,this._handleResponse=r||this._defa
Line truncated
|
||||
Polling from: ${A.config.operationLocation}
|
||||
Operation status: ${d}
|
||||
Polling status: ${Ise.terminalStates.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let u=s(l,A);if(u!==void 0)return{response:await e(u).catch(Bse({state:A,stateProxy:r,isOperationError:o})),status:d}}return{response:l,status:d}}a(fGe,"pollOperationHelper");async function QGe(t){let{poll:e,state:A,stateProxy:r,options:i,getOperationStatus:n,getResourceLocation:s,getOperationLocation:o,isOperationError:c,withOperationLocation:l,getPollingInterval:d,processResult:u,getError:p,updateState:g,setDelay:h,isDone:m,setErrorAsResult:f}=t,{operationLocation:B}=A.config;if(B!==void 0){let{response:b,status:I}=await fGe({poll:e,getOperationStatus:n,state:A,stateProxy:r,operationLocation:B,getResourceLocation:s,isOperationError:c,options:i});if(yse({status:I,response:b,state:A,stateProxy:r,isDone:m,processResult:u,getError:p,setErrorAsResult:f}),!Ise.terminalStates.includes(I)){let C=d?.(b);C&&h(C);let Q=o?.(b,A);if(Q!==void 0){let N=B!==Q;A.config.operationLocation=Q,l?.(Q,N)}else l?.(B,!1)}g?.(A,b)}}a(QGe,"pollOperation");td.pollOperation=QGe});var Xk=E(_A=>{"use strict";Object.defineProperty(_A,"__esModule",{value:!0});_A.pollHttpOperation=_A.isOperationError=_A.getResourceLocation=_A.getOperationStatus=_A.getOperationLocation=_A.initHttpOperation=_A.getStatusFromInitialResponse=_A.getErrorFromResponse=_A.parseRetryAfter=_A.inferLroMode=void 0;var wse=Eb(),Wk=gb();function bse(t){let{azureAsyncOperation:e,operationLocation:A}=t;return A??e}a(bse,"getOperationLocationPollingUrl");function Nse(t){return t.headers.location}a(Nse,"getLocationHeader");function Rse(t){return t.headers["operation-location"]}a(Rse,"getOperationLocationHeader");function Dse(t){return t.headers["azure-asyncoperation"]}a(Dse,"getAzureAsyncOperationHeader");function BGe(t){let{location:e,requestMethod:A,requestPath:r,resourceLocationConfig:i}=t;switch(A){case"PUT":return r;case"DELETE":return;case"PATCH":return n()??r;default:return n()}function n(){switch(i){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return e}}a(n,"getDefault")}a(BGe,"findResourceLocation");function Sse(t){let{rawResponse:e,requestMethod:A,requestPath:r,resourceLocationConfig:i}=t,n=Rse(e),s=Dse(e),o=bse({operationLocation:n,azureAsyncOperation:s}),c=Nse(e),l=A?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:BGe({requestMethod:l,location:c,requestPath:r,resourceLocationConfig:i})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&r?{mode:"Body",operationLocation:r}:void 0}a(Sse,"inferLroMode");_A.inferLroMode=Sse;function xse(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 zk(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 Wk.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}a(xse,"transformStatus");function IGe(t){let{status:e}=t.body??{};return xse({status:e,statusCode:t.statusCode})}a(IGe,"getStatus");function yGe(t){let{properties:e,provisioningState:A}=t.body??{},r=e?.provisioningState??A;return xse({status:r,statusCode:t.statusCode})}a(yGe,"getProvisioningState");function zk(t){return t===202?"running":t<300?"succeeded":"failed"}a(zk,"toOperationStatus");function vse({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let A=parseInt(e);return isNaN(A)?wGe(new Date(e)):A*1e3}}a(vse,"parseRetryAfter");_A.parseRetryAfter=vse;function kse(t){let e=Use(t,"error");if(!e){Wk.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Wk.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(kse,"getErrorFromResponse");_A.getErrorFromResponse=kse;function wGe(t){let e=Math.floor(new Date().getTime()),A=t.getTime();if(e<A)return A-e}a(wGe,"calculatePollingIntervalFromDate");function Fse(t){let{response:e,state:A,operationLocation:r}=t;function i(){switch(A.config.metadata?.mode){case void 0:return zk(e.rawResponse.statusCode);case"Body":return jk(e,A);default:return"running"}}a(i,"helper");let n=i();return n==="running"&&r===void 0?"succeeded":n}a(Fse,"getStatusFromInitialResponse");_A.getStatusFromInitialResponse=Fse;async function bGe(t){let{stateProxy:e,resourceLocationConfig:A,processResult:r,lro:i,setErrorAsResult:n}=t;return(0,wse.initOperation)({init:async()=>{let s=await i.sendInitialRequest(),o=Sse({rawResponse:s.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethoLine truncated
|
||||
`,Jle="HTTP/1.1",oze="AES256",cze="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",lze=["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"],dze=["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"],uze="BlobUsesCustomerSpecifiedEncryption",pze="BlobDoesNotUseCustomerSpecifiedEncryption",gze=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function hze(t){let e=O.URLBuilder.parse(t),A=e.getPath();return A=A||"/",A=mze(A),e.setPath(A),e.toString()}a(hze,"escapeURLPath");function Eze(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let A=t.split(";");for(let r of A)r.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}a(Eze,"getProxyUriFromDevConnString");function Gu(t,e){let A=t.split(";");for(let r of A)if(r.trim().startsWith(e))return r.trim().match(e+"=(.*)")[1];return""}a(Gu,"getValueInConnString");function yE(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=Eze(t),t=cze);let A=Gu(t,"BlobEndpoint");if(A=A.endsWith("/")?A.slice(0,-1):A,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let r="",i="",n=Buffer.from("accountKey","base64"),s="";if(i=Gu(t,"AccountName"),n=Buffer.from(Gu(t,"AccountKey"),"base64"),!A){r=Gu(t,"DefaultEndpointsProtocol");let o=r.toLowerCase();if(o!=="https"&&o!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Gu(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");A=`${r}://${i}.blob.${s}`}if(i){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:i,accountKey:n,proxyUri:e}}else{let r=Gu(t,"SharedAccessSignature"),i=Gu(t,"AccountName");if(i||(i=Wle(A)),A){if(!r)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:i,accountSas:r}}}a(yE,"extractConnectionStringParts");function mze(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}a(mze,"escape");function NA(t,e){let A=O.URLBuilder.parse(t),r=A.getPath();return r=r?r.endsWith("/")?`${r}${e}`:`${r}/${e}`:e,A.setPath(r),new URL(A.toString()).toStr
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(a);return e.headers.set(Be.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,a){let i=e.headers.get(a);return!i||a===Be.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let a=e.headers.headersArray().filter(r=>r.name.toLowerCase().startsWith(Be.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=P0(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=Fq(e.url),n={};if(r){let s=[];for(let p in r)if(Object.prototype.hasOwnProperty.call(r,p)){let l=p.toLowerCase();n[l]=r[p],s.push(l)}s.sort();for(let p of s)i+=`
|
||||
${p}:${decodeURIComponent(n[p])}`}return i}},Ye=class extends ap{static{o(this,"StorageSharedKeyCredential")}constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new vc(e,a,this)}computeHMACSHA256(e){return $7.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},rz="azure-storage-blob",nz="12.15.0",rp=class extends U.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=U.getDefaultUserAgentValue();a.userAgent=`${rz}/${nz} ${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"}},np=class{static{o(this,"StorageClient")}constructor(e,a){this.url=qq(e),this.accountName=fw(e),this.pipeline=a,this.storageClientContext=new rp(this.url,a.toServiceClientOptions()),this.isHttps=mw(Hq(this.url)||"","https"),this.credential=new Pe;for(let r of this.pipeline.factories)q.isNode&&r instanceof Ye||r instanceof Pe?this.credential=r:q.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},k=z.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function X(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(X,"convertTracingToRequestOptionsBase");var qi=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("")}},zi=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("")}},Hh=class{static{o(this,"UserDelegationKeyCredential")}constructor(e,a){this.accountName=e,this.userDelegationKey=a,this.key=Buffer.from(a.value,"base64")}computeHMACSHA256(e){return $7.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function ki(t){return t.end?`${t.start}-${t.end}`:t.start}o(ki,"ipRangeToString");Z.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Z.SASProtocol||(Z.SASProtocol={}));var mi=class{static{o(this,"SASQueryParameters")}constructor(e,a,i,r,n,s,p,l,d,c,u,m,f,h,x
Line truncated
|
||||
`),n=e.computeHMACSHA256(r);return new mi(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(sz,"generateBlobSASQueryParameters20150405");function oz(t,e){if(t=bs(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=qi.parse(t.permissions.toString()).toString():r=zi.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",xs(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ki(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 mi(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(oz,"generateBlobSASQueryParameters20181109");function pz(t,e){if(t=bs(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=qi.parse(t.permissions.toString()).toString():r=zi.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",xs(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ki(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 mi(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(pz,"generateBlobSASQueryParameters20201206");function lz(t,e){if(t=bs(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=qi.parse(t.permissions.toString()).toString():r=zi.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",xs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ki(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 mi(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(lz,"generateBlobSASQueryParametersUDK20181109");function dz(t,e){if(t=bs(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=qi.parse(t.permissions.toString()).toString():r=zi.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",xs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ki(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 mi(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(dz,"generateBlobSASQueryParametersUDK20200210");function cz(t,e){if(t=bs(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=qi.parse(t.permissions.toString()).toString():r=zi.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",xs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ki(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 mi(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(cz,"generateBlobSASQueryParametersUDK20201206");function xs(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}o(xs,"getCanonicalName");function bs(t){let e=t.version?t.version:O0;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(bs,"SASSignatureValuesSanityCheckAndAutofill");var sp=class{static{o(this,"BlobLeaseClient")}constructor(e,a){let i=new rp(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new en(i)):(this._isContainer=!1,this._containerOrBlobOperation=new Zo(i)),a||(a=q.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,p,l;let{span:d,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)!==ui||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ui||!((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:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),proposedLeaseId:this._leaseId},X(c)))}catch(u){throw d.setStatus({code:z.SpanStatusCode.ERROR,message:u.message}),u}finally{d.end()}}async changeLease(e,a={}){var i,r,n,s,p,l;let{span:d,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)!==ui||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ui||!((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 u=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:a.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions})},X(c)));return this._leaseId=e,u}catch(u){throw d.setStatus({code:z.SpanStatusCode.ERROR,message:u.message}),u}finally{d.end()}}async releaseLease(e={}){var a,i,r,n,s,p;let{span:l,updatedOptions:d}=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)!==ui||!((r=e.conditions)===null||r===void 0)&&r.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==ui||!((s=e.conditions)===null||s===void 0)&&s.tagCon
Line truncated
|
||||
`):s=[e.accountName,i,r,n,t.startsOn?Ce(t.startsOn,!1):"",Ce(t.expiresOn,!1),t.ipRange?ki(t.ipRange):"",t.protocol?t.protocol:"",a,""].join(`
|
||||
`);let p=e.computeHMACSHA256(s);return new mi(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(gw,"generateAccountSASQueryParameters");var d0=class t extends np{static{o(this,"BlobServiceClient")}constructor(e,a,i){let r;Nr(a)?r=a:q.isNode&&a instanceof Ye||a instanceof Pe||q.isTokenCredential(a)?r=De(a,i):r=De(new Pe,i),super(e,r),this.serviceContext=new cc(this.storageClientContext)}static fromConnectionString(e,a){a=a||{};let i=vs(e);if(i.kind==="AccountConnString")if(q.isNode){let r=new Ye(i.accountName,i.accountKey);a.proxyOptions||(a.proxyOptions=q.getDefaultProxySettings(i.proxyUri));let n=De(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=De(new Pe,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 bc(Ue(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:z.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:z.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),l=await new en(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:a},n));return{containerClient:s,containerUndeleteResponse:l}}catch(s){throw r.setStatus({code:z.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),d=await new en(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:d}}catch(p){throw n.setStatus({code:z.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},X(i)))}catch(r){throw a.setStatus({code:z.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},X(r)))}catch(n){throw i.setStatus({code:z.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},X(i)))}catch(r){throw a.setStatus({code:z.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},X(i)))}catch(r){throw a.setStatus({code:z.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}),X(r)))}catch(n){throw i.setStatus({code:z.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},X(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(l=>{var d;let c="";return((d=l.tags)===null||d===void 0?void 0:d.blobTagSet.length)===1&&(c=l.tags.blobTagSet[0].value),Object.assign(Object.assign({},l),{tags:Qo(l.tags),tagValue:c})})})}catch(s){throw r.setStatus({code:z.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}findBlobsByTagsSegments(e,a,i={}){return H.__asyncGenerator(this,arguments,o(function*(){let n;if(a||a===void 0)do n=yield H.__await(this.findBlobsByTagsSegment(e,a,i)),n.blobs=n.blobs||[],a=n.continuationToken,yield yield H.__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"}};aa.NetworkError=Rc;Rc.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Pc=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"}};aa.UsageError=Pc;Pc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var yw=E(ia=>{"use strict";var Sz=ia&&ia.__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]}),Cz=ia&&ia.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ez=ia&&ia.__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)&&Sz(e,t,a);return Cz(e,t),e},Tz=ia&&ia.__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{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(ia,"__esModule",{value:!0});ia.uploadCacheArchiveSDK=ia.UploadProgress=void 0;var j0=Ez(rt()),Oz=B0(),Rz=k0(),Ic=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()}};ia.UploadProgress=Ic;function Pz(t,e,a){var i;return Tz(this,void 0,void 0,function*(){let r=new Oz.BlobClient(t),n=r.getBlockBlobClient(),s=new Ic((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 l=yield n.uploadFile(e,p);if(l._response.status>=400)throw new Rz.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw j0.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{s.stopDisplayTimer()}})}o(Pz,"uploadCacheArchiveSDK");ia.uploadCacheArchiveSDK=Pz});var U0=E(Je=>{"use strict";var Iz=Je&&Je.__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]}),Dz=Je&&Je.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Az=Je&&Je.__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)&&Iz(e,t,a);return Dz(e,t),e},Ac=Je&&Je.__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{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Je,"__esModule",{value:!0});Je.retryHttpClientResponse=Je.retryTypedResponse=Je.retry=Je.isRetryableStatusCode=Je.isServerErrorStatusCode=Je.isSuccessStatusCode=void 0;var vw=Az(rt()),Dc=Ir(),ws=Rn();function Bz(t){return t?t>=200&&t<300:!1}o(Bz,"isSuccessStatusCode");Je.isSuccessStatusCode=Bz;function xw(t){return t?t>=500:!0}o(xw,"isServerErrorStatusCode");Je.isServerErrorStatusCode=xw;function bw(t){return t?[Dc.HttpCodes.BadGateway,Dc.HttpCodes.ServiceUnavailable,Dc.HttpCodes.GatewayTimeout].includes(t):!1}o(bw,"isRetryableStatusCode");Je.isRetryableStatusCode=bw;function Mz(t){return Ac(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Mz,"sleep");function H0(t,e,a,i=ws.DefaultRetryAttempts,r=ws.DefaultRetryDelay,n=
Line truncated
|
||||
Other caches with similar key:`);for(let p of n?.artifactCaches||[])fa.debug(`Cache Key: ${p?.cacheKey}, Cache Version: ${p?.cacheVersion}, Cache Scope: ${p?.scope}, Cache Created: ${p?.creationTime}`)}}})}o(yk,"printCachesListForDiagnostics");function vk(t,e,a){return ra(this,void 0,void 0,function*(){let i=new dk.URL(t),r=(0,W0.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,Lc.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,Lc.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,Lc.downloadCacheHttpClient)(t,e):yield(0,Lc.downloadCacheHttpClient)(t,e)})}o(vk,"downloadCache");Tt.downloadCache=vk;function xk(t,e,a){return ra(this,void 0,void 0,function*(){let i=X0(),r=_s.getCacheVersion(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,Sr.retryTypedResponse)("reserveCache",()=>ra(this,void 0,void 0,function*(){return i.postJson(xp("caches"),n)}))})}o(xk,"reserveCache");Tt.reserveCache=xk;function Pw(t,e){return`bytes ${t}-${e}/*`}o(Pw,"getContentRange");function bk(t,e,a,i,r){return ra(this,void 0,void 0,function*(){fa.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${Pw(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":Pw(i,r)},s=yield(0,Sr.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>ra(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,Sr.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}o(bk,"uploadChunk");function wk(t,e,a,i){return ra(this,void 0,void 0,function*(){let r=_s.getArchiveFileSizeInBytes(a),n=xp(`caches/${e.toString()}`),s=$0.openSync(a,"r"),p=(0,W0.getUploadOptions)(i),l=_s.assertDefined("uploadConcurrency",p.uploadConcurrency),d=_s.assertDefined("uploadChunkSize",p.uploadChunkSize),c=[...new Array(l).keys()];fa.debug("Awaiting all uploads");let u=0;try{yield Promise.all(c.map(()=>ra(this,void 0,void 0,function*(){for(;u<r;){let m=Math.min(r-u,d),f=u,h=u+m-1;u+=d,yield bk(t,n,()=>$0.createReadStream(a,{fd:s,start:f,end:h,autoClose:!1}).on("error",x=>{throw new Error(`Cache upload failed because file read failed with ${x.message}`)}),f,h)}})))}finally{$0.closeSync(s)}})}o(wk,"uploadFile");function Nk(t,e,a){return ra(this,void 0,void 0,function*(){let i={size:a};return yield(0,Sr.retryTypedResponse)("commitCache",()=>ra(this,void 0,void 0,function*(){return t.postJson(xp(`caches/${e.toString()}`),i)}))})}o(Nk,"commitCache");function _k(t,e,a,i){return ra(this,void 0,void 0,function*(){if((0,W0.getUploadOptions)(i).useAzureSdk){if(!a)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,ck.uploadCacheArchiveSDK)(a,e,i)}else{let n=X0();fa.debug("Upload cache"),yield wk(n,t,e,i),fa.debug("Commiting cache");let s=_s.getArchiveFileSizeInBytes(e);fa.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let p=yield Nk(n,t,s);if(!(0,Sr.isSuccessStatusCode)(p.statusCode))throw new Error(`Cache service responded with ${p.statusCode} during commit cache.`);fa.info("Cache saved successfully")}})}o(_k,"saveCache");Tt.saveCache=_k});var qc=E(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.isJsonObject=Ss.typeofJsonValue=void 0;function Sk(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(Sk,"typeofJsonValue");Ss.typeofJsonValue=Sk;function Ck(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(Ck,"isJsonObject");Ss.isJsonObject=Ck});var kc=E(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.base64encode=Cs.base64decode=void 0;var Fi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),zc=[];for(let t=0;t<Fi.length;t++)zc[Fi[t].charCodeAt(0)]=t;zc["-".charCodeAt(0)]=Fi.indexOf("+");zc["_".charCodeAt(0)]=Fi.indexOf("/");function Ek(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=zc[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(Ek,"base64decode");Cs.base64decode=Ek;function Tk(t){let e="",a=0,i,r=0;for(let n=0;n<t.length;n++)switch(i=t[n],a){case 0:e+=Fi[i>>2],r=(i&3)<<4,a=1;break;case 1:e+=Fi[r|i>>4],r=(i&15)<<2,a=2;break;case 2:e+=Fi[r|i>>6],e+=Fi[i&63],a=0;break}return a&&(e+=Fi[r],e+="=",a==1&&(e+="=")),e}o(Tk,"base64encode");Cs.base64encode=Tk});var Dw=E(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.utf8read=void 0;var K0=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function Ok(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(K0(i)),r=0);return a.length?(r&&a.push(K0(i.slice(0,r))),a.join("")):K0(i.slice(0,r))}o(Ok,"utf8read");jc.utf8read=Ok});var bp=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.WireType=hi.mergeBinaryOptions=hi.UnknownFieldHandler=void 0;var Rk;(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")})(Rk=hi.UnknownFieldHandler||(hi.UnknownFieldHandler={}));function Pk(t,e){return Object.assign(Object.assign({},t),e)}o(Pk,"mergeBinaryOptions");hi.mergeBinaryOptions=Pk;var Ik;(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"})(Ik=hi.WireType||(hi.WireType={}))});var Uc=E(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.varint32read=na.varint32write=na.int64toString=na.int64fromString=na.varint64write=na.varint64read=void 0;function Dk(){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(Dk,"varint64read");na.varint64read=Dk;function Ak(t,e,a){for(let n=0;n<28;n=n+7){let s=t>>>n,p=!(!(s>>>7)&&e==0),l=(p?s|128:s)&255;if(a.push(l),!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),l=(p?s|128:s)&255;if(a.push(l),!p)return}a.push(e>>>31&1)}}o(Ak,"varint64write");na.varint64write=Ak;var Hc=65536*65536;function Bk(t){let e=t[0]=="-";e&&(t=t.slice(1));let a=1e6,i=0,r=0;function n(s,p){let l=Number(t.slice(s,p));r*=a,i=i*a+l,i>=Hc&&(r=r+(i/Hc|0),i=i%Hc)}return o(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,r]}o(Bk,"int64fromString");na.int64fromString=Bk;function Mk(t,e){if(e>>>0<=2097151)return""+(Hc*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,l=1e7;n>=l&&(s+=Math.floor(n/l),n%=l),s>=l&&(p+=Math.floor(s/l),s%=l);function d(c,u){let m=c?String(c):"";return u?"0000000".slice(m.length)+m:m}return o(d,"decimalFrom1e7"),d(p,0)+d(s,p)+d(n,1)}o(Mk,"int64toString");na.int64toString=Mk;function Lk(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(Lk,"varint32write");na.varint32write=Lk;function qk(){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(qk,"varint32read");na.varint32read=qk});var Er=E(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.PbLong=Cr.PbULong=Cr.detectBi=void 0;var wp=Uc(),Ae;function Aw(){let t=new DataView(new ArrayBuffer(8));Ae=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
|
||||
`)}};hu.RpcError=N2});var S2=E(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.mergeRpcOptions=void 0;var dN=pt();function nH(t,e){if(!e)return t;let a={};gu(t,a),gu(e,a);for(let i of Object.keys(e)){let r=e[i];switch(i){case"jsonOptions":a.jsonOptions=dN.mergeJsonOptions(t.jsonOptions,a.jsonOptions);break;case"binaryOptions":a.binaryOptions=dN.mergeBinaryOptions(t.binaryOptions,a.binaryOptions);break;case"meta":a.meta={},gu(t.meta,a.meta),gu(e.meta,a.meta);break;case"interceptors":a.interceptors=t.interceptors?t.interceptors.concat(r):r.concat();break}}return a}o(nH,"mergeRpcOptions");yu.mergeRpcOptions=nH;function gu(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(gu,"copy")});var E2=E(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.Deferred=dn.DeferredState=void 0;var vi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(vi=dn.DeferredState||(dn.DeferredState={}));var C2=class{static{o(this,"Deferred")}constructor(e=!0){this._state=vi.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!==vi.PENDING)throw new Error(`cannot resolve ${vi[this.state].toLowerCase()}`);this._resolve(e),this._state=vi.RESOLVED}reject(e){if(this.state!==vi.PENDING)throw new Error(`cannot reject ${vi[this.state].toLowerCase()}`);this._reject(e),this._state=vi.REJECTED}resolvePending(e){this._state===vi.PENDING&&this.resolve(e)}rejectPending(e){this._state===vi.PENDING&&this.reject(e)}};dn.Deferred=C2});var O2=E(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.RpcOutputStreamController=void 0;var cN=E2(),cn=pt(),T2=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){cn.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){cn.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){cn.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(){cn.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;cn.assert(e,"bad state"),cn.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 cN.Deferred,e.p.promise)}}}pushIt(e){let a=this._itState;if(a)if(a.p){let i=a.p;cn.assert(i.state==cN.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete a.p}else a.q.push(e)}};vu.RpcOutputStreamController=T2});var P2=E(Ds=>{"use strict";var sH=Ds&&Ds.__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{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.UnaryCall=void 0;var R2=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 sH(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}})}};Ds.UnaryCall=R2});var D2=E(As=>{"use strict";var oH=As&&As.__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{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function
Line truncated
|
||||
`));let i=yield e6(a,"create");yield t6(i,t)})}o(tU,"createTar");kt.createTar=tU});var AN=E(lt=>{"use strict";var aU=lt&<.__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]}),iU=lt&<.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Mp=lt&<.__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)&&aU(e,t,a);return iU(e,t),e},Xs=lt&<.__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{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(lt,"__esModule",{value:!0});lt.saveCache=lt.restoreCache=lt.isFeatureAvailable=lt.ReserveCacheError=lt.ValidationError=void 0;var re=Mp(rt()),Eu=Mp(require("path")),je=Mp(In()),Ws=Mp(Iw()),IN=Mp(TN()),Tu=Bc(),Rr=PN(),rU=Rn(),Ma=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};lt.ValidationError=Ma;var un=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};lt.ReserveCacheError=un;function DN(t){if(!t||t.length===0)throw new Ma("Path Validation Error: At least one directory or file path is required")}o(DN,"checkPaths");function a6(t){if(t.length>512)throw new Ma(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ma(`Key Validation Error: ${t} cannot contain commas.`)}o(a6,"checkKey");function nU(){return!!process.env.ACTIONS_CACHE_URL}o(nU,"isFeatureAvailable");lt.isFeatureAvailable=nU;function sU(t,e,a,i,r=!1){return Xs(this,void 0,void 0,function*(){let n=(0,Tu.getCacheServiceVersion)();switch(re.debug(`Cache service version: ${n}`),DN(t),n){case"v2":return yield pU(t,e,a,i,r);case"v1":default:return yield oU(t,e,a,i,r)}})}o(sU,"restoreCache");lt.restoreCache=sU;function oU(t,e,a,i,r=!1){return Xs(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 Ma("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of n)a6(l);let s=yield je.getCompressionMethod(),p="";try{let l=yield Ws.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!l?.archiveLocation)return;if(i?.lookupOnly)return re.info("Lookup only - skipping download"),l.cacheKey;p=Eu.join(yield je.createTempDirectory(),je.getCacheFileName(s)),re.debug(`Archive Path: ${p}`),yield Ws.downloadCache(l.archiveLocation,p,i),re.isDebug()&&(yield(0,Rr.listTar)(p,s));let d=je.getArchiveFileSizeInBytes(p);return re.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield(0,Rr.extractTar)(p,s),re.info("Cache restored successfully"),l.cacheKey}catch(l){if(l.name===Ma.name)throw l;re.warning(`Failed to restore: ${l.message}`)}finally{try{yield je.unlinkFile(p)}catch(l){re.debug(`Failed to delete archive: ${l}`)}}})}o(oU,"restoreCacheV1");function pU(t,e,a,i,r=!1){return Xs(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 Ma("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)a6(p);let s="";try{let p=IN.internalCacheTwirpClient(),l=yield je.getCompressionMethod(),d={key:e,restoreKeys:a,version:je.getCacheVersion(t,l,r)},c=yield p.GetCacheEntryDownloadURL(d);if(!c.ok){re.debug(`Cache not found for version ${d.version} of keys: ${n.join(", ")}`);return}if(re.info(`Cache hit for: ${d.key}`),i?.lookupOnly)return re.info("Lookup only - skipping download"),c.matchedKey;s=Eu.join(yield je.createTempDirectory(),je.getCacheFileName(l)),re.debug(`Archive path: ${s}`),re.debug(`Starting download of archive to: ${s}`),yield Ws.downloadCache(c.signedDownloadUrl,s,i);let u=je.getArchiveFileSizeInBytes(s);return re.info(`Cache Size: ~${Math.round(u/(1024*1024))} MB (${u} B)`),re.isDebug()&&(yield(0,Rr.listTar)(s,l)),yield(0,Rr.extractTar)(s,l),re.info("Cache restored successfully"),c.matchedKey}catch(p){if(p.name===Ma.name)throw p;re.warning(`Failed to restore: ${p.message}`)}finally{try{s&&(yield je.unlinkFile(s))}catch(p){re.debug(`Failed to delete archive: ${p}`)}}})}o(pU,"restoreCacheV2");function lU(t,e,a,i=!1){return Xs(this,void 0,void 0,function*(){let r=(0,Tu.getCacheServiceVersion)();switch(re.debug(`Cache servLine truncated
|
||||
`);for(let r of i){let n=r.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){e=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}o(vU,"_getOsVersion");jt._getOsVersion=vU;function xU(){let t="/etc/lsb-release",e="/etc/os-release",a="";return Ou.existsSync(t)?a=Ou.readFileSync(t).toString():Ou.existsSync(e)&&(a=Ou.readFileSync(e).toString()),a}o(xU,"_readLinuxVersionFile");jt._readLinuxVersionFile=xU});var zN=E((rY,qN)=>{var bU=require("crypto");qN.exports=o(function(){return bU.randomBytes(16)},"nodeRNG")});var HN=E((sY,jN)=>{var kN=[];for(Lp=0;Lp<256;++Lp)kN[Lp]=(Lp+256).toString(16).substr(1);var Lp;function wU(t,e){var a=e||0,i=kN;return[i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]]].join("")}o(wU,"bytesToUuid");jN.exports=wU});var FN=E((pY,UN)=>{var NU=zN(),_U=HN();function SU(t,e,a){var i=e&&a||0;typeof t=="string"&&(e=t==="binary"?new Array(16):null,t=null),t=t||{};var r=t.random||(t.rng||NU)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e)for(var n=0;n<16;++n)e[i+n]=r[n];return e||_U(r)}o(SU,"v4");UN.exports=SU});var GN=E(La=>{"use strict";var CU=La&&La.__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]}),EU=La&&La.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),TU=La&&La.__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)&&CU(e,t,a);return EU(e,t),e},VN=La&&La.__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{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(La,"__esModule",{value:!0});La.RetryHelper=void 0;var $N=TU(rt()),n6=class{static{o(this,"RetryHelper")}constructor(e,a,i){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(a),this.maxSeconds=Math.floor(i),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,a){return VN(this,void 0,void 0,function*(){let i=1;for(;i<this.maxAttempts;){try{return yield e()}catch(n){if(a&&!a(n))throw n;$N.info(n.message)}let r=this.getSleepAmount();$N.info(`Waiting ${r} seconds before trying again`),yield this.sleep(r),i++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return VN(this,void 0,void 0,function*(){return new Promise(a=>setTimeout(a,e*1e3))})}};La.RetryHelper=n6});var e_=E(oe=>{"use strict";var OU=oe&&oe.__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]}),RU=oe&&oe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),xi=oe&&oe.__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)&&OU(e,t,a);return RU(e,t),e},Vt=oe&&oe.__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{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})},PU=oe&&oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oe,"__esModule",{value:!0});oe.evaluateVersions=oe.isExplicitVersion=oe.findFromManifest=oe.getManifestFromRepo=oe.findAllVersions=oe.find=oe.cacheFile=oe.cacheDir=oe.extractZip=oe.extractXar=oe.extractTar=oe.extract7z=oe.downloadTool=oe.HTTPError=void 0;var be=xi(rt()),ga=xi(io()),qa=xi(require("fs")),IU=xi(LN()),zp=xi(require("os")),Ja=xi(require("path")),WN=xi(Ir()),Gi=xi(fl()),DU=xi(require("stream")),AU=xi(require("util")),Ks=require("assert"),XN=PU(FN()),Pr=_n(),BU=GN(),qp=class extends Error{static{o(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};oe.HTTPError=qp;var o6=process.platform==="win32",MU=process.platform==="darwin",LU="actions/tool-cache";function qU(t,e,a,i){return Vt(this,void 0,void 0,function*(){e=e||Ja.join(ZN(),XN.default()),yield ga.mkdirP(Ja.dirname(e)),be.debug(`Downloading ${tLine truncated
|
||||
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(t){return t>=CHAR_0&&t<=CHAR_9}o(isDigit,"isDigit");function isHexit(t){return t>=CHAR_A&&t<=CHAR_F||t>=CHAR_a&&t<=CHAR_f||t>=CHAR_0&&t<=CHAR_9}o(isHexit,"isHexit");function isBit(t){return t===CHAR_1||t===CHAR_0}o(isBit,"isBit");function isOctit(t){return t>=CHAR_0&&t<=CHAR_7}o(isOctit,"isOctit");function isAlphaNumQuoteHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_APOS||t===CHAR_QUOT||t===CHAR_LOWBAR||t===CHAR_HYPHEN}o(isAlphaNumQuoteHyphen,"isAlphaNumQuoteHyphen");function isAlphaNumHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_LOWBAR||t===CHAR_HYPHEN}o(isAlphaNumHyphen,"isAlphaNumHyphen");var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(t,e){return hasOwnProperty.call(t,e)?!0:(e==="__proto__"&&defineProperty(t,"__proto__",descriptor),!1)}o(hasKey,"hasKey");var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}o(InlineTable,"InlineTable");function isInlineTable(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_TABLE}o(isInlineTable,"isInlineTable");var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}o(Table,"Table");function isTable(t){return t===null||typeof t!="object"?!1:t[_type]===TABLE}o(isTable,"isTable");var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(t){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:t}})}o(InlineList,"InlineList");function isInlineList(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_LIST}o(isInlineList,"isInlineList");var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}o(List,"List");function isList(t){return t===null||typeof t!="object"?!1:t[_type]===LIST}o(isList,"isList");var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(t){}var _inspect=_custom||"inspect",BoxedBigInt=class{static{o(this,"BoxedBigInt")}constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(t){let e=Number(t);return Object.is(e,-0)&&(e=0),global.BigInt&&!Number.isSafeInteger(e)?new BoxedBigInt(t):Object.defineProperties(new Number(e),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${t}]`}})}o(Integer,"Integer");function isInteger(t){return t===null||typeof t!="object"?!1:t[_type]===INTEGER}o(isInteger,"isInteger");var FLOAT=Symbol("float");function Float(t){return Object.defineProperties(new Number(t),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${t}]`}})}o(Float,"Float");function isFloat(t){return t===null||typeof t!="object"?!1:t[_type]===FLOAT}o(isFloat,"isFloat");function tomlType(t){let e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Date)return"datetime";if(_type in t)switch(t[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return e}o(tomlType,"tomlType");function makeParserClass(t){class e extends t{static{o(this,"TOMLParser")}constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===t.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===t.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===t.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(i){let r=this.ctx,n=i.key.pop();for(let s of i.key){if(hasKey(r,s)&&(!isTable(r[s])||r[s][_declared]))throw this.error(new TomlError("Can'
Line truncated
|
||||
`,e&&e.split){let i=e.split(/\n/),r=String(Math.min(i.length,t.line+3)).length,n=" ";for(;n.length<r;)n+=" ";for(let s=Math.max(0,t.line-1);s<Math.min(i.length,t.line+2);++s){let p=String(s+1);if(p.length<r&&(p=" "+p),t.line===s){a+=p+"> "+i[s]+`
|
||||
`,a+=n+" ";for(let l=0;l<t.col;++l)a+=" ";a+=`^
|
||||
`}else a+=p+": "+i[s]+`
|
||||
`}}return t.message=a+`
|
||||
`,t}o(JU,"prettyError")});var h_=E((TY,f_)=>{"use strict";f_.exports=tF;var ZU=Bu(),eF=Mu();function tF(t){global.Buffer&&global.Buffer.isBuffer(t)&&(t=t.toString("utf8"));let e=new ZU;try{return e.parse(t),e.finish()}catch(a){throw eF(a,t)}}o(tF,"parseString")});var v_=E((RY,y_)=>{"use strict";y_.exports=iF;var aF=Bu(),g_=Mu();function iF(t,e){e||(e={});let a=0,i=e.blocksize||40960,r=new aF;return new Promise((s,p)=>{setImmediate(n,a,i,s,p)});function n(s,p,l,d){if(s>=t.length)try{return l(r.finish())}catch(c){return d(g_(c,t))}try{r.parse(t.slice(s,s+p)),setImmediate(n,s+p,p,l,d)}catch(c){d(g_(c,t))}}}o(iF,"parseAsync")});var w_=E((IY,b_)=>{"use strict";b_.exports=nF;var rF=require("stream"),x_=Bu();function nF(t){return t?sF(t):oF(t)}o(nF,"parseStream");function sF(t){let e=new x_;return t.setEncoding("utf8"),new Promise((a,i)=>{let r,n=!1,s=!1;function p(){if(n=!0,!r)try{a(e.finish())}catch(c){i(c)}}o(p,"finish");function l(c){s=!0,i(c)}o(l,"error"),t.once("end",p),t.once("error",l),d();function d(){r=!0;let c;for(;(c=t.read())!==null;)try{e.parse(c)}catch(u){return l(u)}if(r=!1,n)return p();s||t.once("readable",d)}o(d,"readNext")})}o(sF,"parseReadable");function oF(){let t=new x_;return new rF.Transform({objectMode:!0,transform(e,a,i){try{t.parse(e.toString(a))}catch(r){this.emit("error",r)}i()},flush(e){try{this.push(t.finish())}catch(a){this.emit("error",a)}e()}})}o(oF,"parseTransform")});var N_=E((AY,jp)=>{"use strict";jp.exports=h_();jp.exports.async=v_();jp.exports.stream=w_();jp.exports.prettyError=Mu()});var P_=E((BY,f6)=>{"use strict";f6.exports=pF;f6.exports.value=m6;function pF(t){if(t===null)throw fn("null");if(t===void 0)throw fn("undefined");if(typeof t!="object")throw fn(typeof t);if(typeof t.toJSON=="function"&&(t=t.toJSON()),t==null)return null;let e=oa(t);if(e!=="table")throw fn(e);return u6("","",t)}o(pF,"stringify");function fn(t){return new Error("Can only stringify objects, not "+t)}o(fn,"typeError");function lF(){return new Error("Array values can't have mixed types")}o(lF,"arrayOneTypeError");function __(t){return Object.keys(t).filter(e=>S_(t[e]))}o(__,"getInlineKeys");function dF(t){return Object.keys(t).filter(e=>!S_(t[e]))}o(dF,"getComplexKeys");function Lu(t){let e=Array.isArray(t)?[]:Object.prototype.hasOwnProperty.call(t,"__proto__")?{["__proto__"]:void 0}:{};for(let a of Object.keys(t))t[a]&&typeof t[a].toJSON=="function"&&!("toISOString"in t[a])?e[a]=t[a].toJSON():e[a]=t[a];return e}o(Lu,"toJSON");function u6(t,e,a){a=Lu(a);var i,r;i=__(a),r=dF(a);var n=[],s=e||"";i.forEach(l=>{var d=oa(a[l]);d!=="undefined"&&d!=="null"&&n.push(s+qu(l)+" = "+T_(a[l],!0))}),n.length>0&&n.push("");var p=t&&i.length>0?e+" ":"";return r.forEach(l=>{n.push(wF(t,p,l,a[l]))}),n.join(`
|
||||
`)}o(u6,"stringifyObject");function S_(t){switch(oa(t)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return t.length===0||oa(t[0])!=="table";case"table":return Object.keys(t).length===0;default:return!1}}o(S_,"isInline");function oa(t){return t===void 0?"undefined":t===null?"null":typeof t=="bigint"||Number.isInteger(t)&&!Object.is(t,-0)?"integer":typeof t=="number"?"float":typeof t=="boolean"?"boolean":typeof t=="string"?"string":"toISOString"in t?isNaN(t)?"undefined":"datetime":Array.isArray(t)?"array":"table"}o(oa,"tomlType");function qu(t){var e=String(t);return/^[-A-Za-z0-9_]+$/.test(e)?e:C_(e)}o(qu,"stringifyKey");function C_(t){return'"'+E_(t).replace(/"/g,'\\"')+'"'}o(C_,"stringifyBasicString");function cF(t){return"'"+t+"'"}o(cF,"stringifyLiteralString");function uF(t,e){for(;e.length<t;)e="0"+e;return e}o(uF,"numpad");function E_(t){return t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+uF(4,e.codePointAt(0).toString(16)))}o(E_,"escapeString");function mF(t){let e=t.split(/\n/).map(a=>E_(a).replace(/"(?="")/g,'\\"')).join(`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),r=this.factory.computeHMACSHA256(A);return e.headers.set($t.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${r}`),e}getHeaderValueToSign(e,A){let r=e.headers.get(A);return!r||A===$t.CONTENT_LENGTH&&r==="0"?"":r}getCanonicalizedHeadersString(e){let A=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith($t.PREFIX_FOR_STORAGE));A.sort((i,n)=>i.name.toLowerCase().localeCompare(n.name.toLowerCase())),A=A.filter((i,n,s)=>!(n>0&&i.name.toLowerCase()===s[n-1].name.toLowerCase()));let r="";return A.forEach(i=>{r+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
|
||||
`}),r}getCanonicalizedResourceString(e){let A=dL(e.url)||"/",r="";r+=`/${this.factory.accountName}${A}`;let i=Bze(e.url),n={};if(i){let s=[];for(let o in i)if(Object.prototype.hasOwnProperty.call(i,o)){let c=o.toLowerCase();n[c]=i[o],s.push(c)}s.sort();for(let o of s)r+=`
|
||||
${o}:${decodeURIComponent(n[o])}`}return r}},PA=class extends FQ{static{a(this,"StorageSharedKeyCredential")}constructor(e,A){super(),this.accountName=e,this.accountKey=Buffer.from(A,"base64")}create(e,A){return new Yb(e,A,this)}computeHMACSHA256(e){return wae.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},Tze="azure-storage-blob",Mze="12.17.0",UQ=class extends W.ServiceClient{static{a(this,"StorageClientContext")}constructor(e,A){if(e===void 0)throw new Error("'url' cannot be null");if(A||(A={}),!A.userAgent){let r=W.getDefaultUserAgentValue();A.userAgent=`${Tze}/${Mze} ${r}`}super(void 0,A),this.requestContentType="application/json; charset=utf-8",this.baseUri=A.endpoint||"{url}",this.url=e,this.version=A.version||"2023-11-03"}},TQ=class{static{a(this,"StorageClient")}constructor(e,A){this.url=hze(e),this.accountName=Wle(e),this.pipeline=A,this.storageClientContext=new UQ(this.url,A.toServiceClientOptions()),this.isHttps=Vle(fze(this.url)||"","https"),this.credential=new _t;for(let i of this.pipeline.factories)O.isNode&&i instanceof PA||i instanceof _t?this.credential=i:O.isTokenCredential(i.credential)&&(this.credential=i.credential);let r=this.storageClientContext;r.requestContentType=void 0}},J=P.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function ne(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}}a(ne,"convertTracingToRequestOptionsBase");var _c=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 A=new t;for(let r of e)switch(r){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: ${r}`)}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("")}},Oc=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 A=new t;for(let r of e)switch(r){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 ${r}`)}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("")}},IF=class{static{a(this,"UserDelegationKeyCredential")}constructor(e,A){this.accountName=e,this.userDelegationKey=A,this.key=Buffer.from(A.value,"base64")}computeHMACSHA256(e){return wae.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Pc(t){return t.end?`${t.start}-${t.end}`:t.start}a(Pc,"ipRangeToString");ce.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(ce.SASProtocol||(ce.SASProtocol={}));var xo=class{static{a(this,"SASQueryParameters")}constructor(e,A,r,i,n,s,o,
Line truncated
|
||||
`),n=e.computeHMACSHA256(i);return new xo(t.version,n,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)}a(_ze,"generateBlobSASQueryParameters20150405");function Oze(t,e){if(t=bE(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",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",wE(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,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 xo(t.version,s,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)}a(Oze,"generateBlobSASQueryParameters20181109");function Pze(t,e){if(t=bE(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",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",wE(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,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 xo(t.version,s,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,void 0,void 0,void 0,t.encryptionScope)}a(Pze,"generateBlobSASQueryParameters20201206");function qze(t,e){if(t=bE(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",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",wE(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new xo(t.version,s,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,e.userDelegationKey)}a(qze,"generateBlobSASQueryParametersUDK20181109");function Hze(t,e){if(t=bE(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",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",wE(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new xo(t.version,s,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}a(Hze,"generateBlobSASQueryParametersUDK20200210");function Yze(t,e){if(t=bE(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",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",wE(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new xo(t.version,s,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}a(Yze,"generateBlobSASQueryParametersUDK20201206");function wE(t,e,A){let r=[`/blob/${t}/${e}`];return A&&r.push(`/${A}`),r.join("")}a(wE,"getCanonicalName");function bE(t){let e=t.version?t.version:cL;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(bE,"SASSignatureValuesSanityCheckAndAutofill");var MQ=class{static{a(this,"BlobLeaseClient")}constructor(e,A){let r=new UQ(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new zu(r)):(this._isContainer=!1,this._containerOrBlobOperation=new xQ(r)),A||(A=O.generateUuid()),this._leaseId=A}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,A={}){var r,i,n,s,o,c;let{span:l,updatedOptions:d}=J("BlobLeaseClient-acquireLease",A);if(this._isContainer&&(!((r=A.conditions)===null||r===void 0)&&r.ifMatch&&((i=A.conditions)===null||i===void 0?void 0:i.ifMatch)!==So||!((n=A.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=A.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==So||!((o=A.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:A.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},A.conditions),{ifTags:(c=A.conditions)===null||c===void 0?void 0:c.tagConditions}),proposedLeaseId:this._leaseId},ne(d)))}catch(u){throw l.setStatus({code:P.SpanStatusCode.ERROR,message:u.message}),u}finally{l.end()}}async changeLease(e,A={}){var r,i,n,s,o,c;let{span:l,updatedOptions:d}=J("BlobLeaseClient-changeLease",A);if(this._isContainer&&(!((r=A.conditions)===null||r===void 0)&&r.ifMatch&&((i=A.conditions)===null||i===void 0?void 0:i.ifMatch)!==So||!((n=A.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=A.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==So||!((o=A.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 u=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:A.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},A.conditions),{ifTags:(c=A.conditions)===null||c===void 0?void 0:c.tagConditions})},ne(d)));return this._leaseId=e,u}catch(u){throw l.setStatus({code:P.SpanStatusCode.ERROR,message:u.message}),u}finally{l.end()}}async releaseLease(e={}){var A,r,i,n,s,o;let{span:c,updatedOptions:l}=J("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((A=e.conditions)===null||A===void 0)&&A.ifMatch&&((r=e.conditions)===null||r===void 0?void 0:r.ifMatch)!==So||!((i=e.conditions)===null||i===void 0)&&i.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==So||!((s=e.conditions)===null||s===void 0)&&s.tag
Line truncated
|
||||
`):s=[e.accountName,r,i,n,t.startsOn?Rt(t.startsOn,!1):"",Rt(t.expiresOn,!1),t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",A,""].join(`
|
||||
`);let o=e.computeHMACSHA256(s);return new xo(A,o,r.toString(),i,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)}a(jle,"generateAccountSASQueryParameters");var JF=class t extends TQ{static{a(this,"BlobServiceClient")}constructor(e,A,r){let i;pd(A)?i=A:O.isNode&&A instanceof PA||A instanceof _t||O.isTokenCredential(A)?i=Gt(A,r):i=Gt(new _t,r),super(e,i),this.serviceContext=new Tb(this.storageClientContext)}static fromConnectionString(e,A){A=A||{};let r=yE(e);if(r.kind==="AccountConnString")if(O.isNode){let i=new PA(r.accountName,r.accountKey);A.proxyOptions||(A.proxyOptions=O.getDefaultProxySettings(r.proxyUri));let n=Gt(i,A);return new t(r.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(r.kind==="SASConnString"){let i=Gt(new _t,A);return new t(r.url+"?"+r.accountSas,i)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new Jb(NA(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-createContainer",A);try{let n=this.getContainerClient(e),s=await n.create(i);return{containerClient:n,containerCreateResponse:s}}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async deleteContainer(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-deleteContainer",A);try{return await this.getContainerClient(e).delete(i)}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async undeleteContainer(e,A,r={}){let{span:i,updatedOptions:n}=J("BlobServiceClient-undeleteContainer",r);try{let s=this.getContainerClient(r.destinationContainerName||e),c=await new zu(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:A},n));return{containerClient:s,containerUndeleteResponse:c}}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}async renameContainer(e,A,r={}){var i;let{span:n,updatedOptions:s}=J("BlobServiceClient-renameContainer",r);try{let o=this.getContainerClient(A),l=await new zu(o.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(i=r.sourceCondition)===null||i===void 0?void 0:i.leaseId}));return{containerClient:o,containerRenameResponse:l}}catch(o){throw n.setStatus({code:P.SpanStatusCode.ERROR,message:o.message}),o}finally{n.end()}}async getProperties(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async setProperties(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-setProperties",A);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:A.abortSignal},ne(i)))}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async getStatistics(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async getAccountInfo(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async listContainersSegment(e,A={}){let{span:r,updatedOptions:i}=J("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}),ne(i)))}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async findBlobsByTagsSegment(e,A,r={}){let{span:i,updatedOptions:n}=J("BlobServiceClient-findBlobsByTagsSegment",r);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:r.abortSignal,where:e,marker:A,maxPageSize:r.maxPageSize},ne(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.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:RQ(c.tags),tagValue:d})})})}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}findBlobsByTagsSegments(e,A,r={}){return V.__asyncGenerator(this,arguments,a(function*(){let n;if(A||A===void 0)do n=yield V.__await(this.findBlobsByTagsSegment(e,A,r)),n.blobs=n.blobs||[],A=n.continuationToken,yield yield V.__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(A),this.code=e,this.name="NetworkError"}};Bn.NetworkError=eN;eN.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var tN=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"}};Bn.UsageError=tN;tN.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var Xle=E(In=>{"use strict";var rje=In&&In.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),ije=In&&In.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),nje=In&&In.__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)&&rje(e,t,A);return ije(e,t),e},sje=In&&In.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(In,"__esModule",{value:!0});In.uploadCacheArchiveSDK=In.UploadProgress=void 0;var BL=nje(hi()),aje=hL(),oje=QL(),AN=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,A=(100*(e/this.contentLength)).toFixed(1),r=Date.now()-this.startTime,i=(e/(1024*1024)/(r/1e3)).toFixed(1);BL.info(`Sent ${e} of ${this.contentLength} (${A}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let A=a(()=>{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()}};In.UploadProgress=AN;function cje(t,e,A){var r;return sje(this,void 0,void 0,function*(){let i=new aje.BlobClient(t),n=i.getBlockBlobClient(),s=new AN((r=A?.archiveSizeBytes)!==null&&r!==void 0?r:0),o={blockSize:A?.uploadChunkSize,concurrency:A?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),BL.debug(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,o);if(c._response.status>=400)throw new oje.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw BL.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{s.stopDisplayTimer()}})}a(cje,"uploadCacheArchiveSDK");In.uploadCacheArchiveSDK=cje});var yL=E(qA=>{"use strict";var lje=qA&&qA.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),dje=qA&&qA.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),uje=qA&&qA.__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)&&lje(e,t,A);return dje(e,t),e},iN=qA&&qA.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(qA,"__esModule",{value:!0});qA.retryHttpClientResponse=qA.retryTypedResponse=qA.retry=qA.isRetryableStatusCode=qA.isServerErrorStatusCode=qA.isSuccessStatusCode=void 0;var Zle=uje(hi()),rN=wg(),NE=Nh();function pje(t){return t?t>=200&&t<300:!1}a(pje,"isSuccessStatusCode");qA.isSuccessStatusCode=pje;function Kle(t){return t?t>=500:!0}a(Kle,"isServerErrorStatusCode");qA.isServerErrorStatusCode=Kle;function $le(t){return t?[rN.HttpCodes.BadGateway,rN.HttpCodes.ServiceUnavailable,rN.HttpCodes.GatewayTimeout].includes(t):!1}a($le,"isRetryableStatusCode");qA.isRetryableStatusCode=$le;function gje(t){return iN(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}a(gje,"sleep");function IL(t,e,A,r=NE.DefaultRetryAttempts
Line truncated
|
||||
Other caches with similar key:`);for(let o of n?.artifactCaches||[])cs.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}a(Xje,"printCachesListForDiagnostics");function Zje(t,e,A){return yn(this,void 0,void 0,function*(){let r=new Yje.URL(t),i=(0,DL.getDownloadOptions)(A);r.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield(0,aN.downloadCacheStorageSDK)(t,e,i):i.concurrentBlobDownloads?yield(0,aN.downloadCacheHttpClientConcurrent)(t,e,i):yield(0,aN.downloadCacheHttpClient)(t,e):yield(0,aN.downloadCacheHttpClient)(t,e)})}a(Zje,"downloadCache");Or.downloadCache=Zje;function Kje(t,e,A){return yn(this,void 0,void 0,function*(){let r=SL(),i=DE.getCacheVersion(e,A?.compressionMethod,A?.enableCrossOsArchive),n={key:t,version:i,cacheSize:A?.cacheSize};return yield(0,hd.retryTypedResponse)("reserveCache",()=>yn(this,void 0,void 0,function*(){return r.postJson(XQ("caches"),n)}))})}a(Kje,"reserveCache");Or.reserveCache=Kje;function cde(t,e){return`bytes ${t}-${e}/*`}a(cde,"getContentRange");function $je(t,e,A,r,i){return yn(this,void 0,void 0,function*(){cs.debug(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${cde(r,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":cde(r,i)},s=yield(0,hd.retryHttpClientResponse)(`uploadChunk (start: ${r}, end: ${i})`,()=>yn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,A(),n)}));if(!(0,hd.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}a($je,"uploadChunk");function eXe(t,e,A,r){return yn(this,void 0,void 0,function*(){let i=DE.getArchiveFileSizeInBytes(A),n=XQ(`caches/${e.toString()}`),s=NL.openSync(A,"r"),o=(0,DL.getUploadOptions)(r),c=DE.assertDefined("uploadConcurrency",o.uploadConcurrency),l=DE.assertDefined("uploadChunkSize",o.uploadChunkSize),d=[...new Array(c).keys()];cs.debug("Awaiting all uploads");let u=0;try{yield Promise.all(d.map(()=>yn(this,void 0,void 0,function*(){for(;u<i;){let p=Math.min(i-u,l),g=u,h=u+p-1;u+=l,yield $je(t,n,()=>NL.createReadStream(A,{fd:s,start:g,end:h,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),g,h)}})))}finally{NL.closeSync(s)}})}a(eXe,"uploadFile");function tXe(t,e,A){return yn(this,void 0,void 0,function*(){let r={size:A};return yield(0,hd.retryTypedResponse)("commitCache",()=>yn(this,void 0,void 0,function*(){return t.postJson(XQ(`caches/${e.toString()}`),r)}))})}a(tXe,"commitCache");function AXe(t,e,A,r){return yn(this,void 0,void 0,function*(){if((0,DL.getUploadOptions)(r).useAzureSdk){if(!A)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,Gje.uploadCacheArchiveSDK)(A,e,r)}else{let n=SL();cs.debug("Upload cache"),yield eXe(n,t,e,r),cs.debug("Commiting cache");let s=DE.getArchiveFileSizeInBytes(e);cs.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let o=yield tXe(n,t,s);if(!(0,hd.isSuccessStatusCode)(o.statusCode))throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`);cs.info("Cache saved successfully")}})}a(AXe,"saveCache");Or.saveCache=AXe});var oN=E(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.isJsonObject=SE.typeofJsonValue=void 0;function rXe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}a(rXe,"typeofJsonValue");SE.typeofJsonValue=rXe;function iXe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}a(iXe,"isJsonObject");SE.isJsonObject=iXe});var lN=E(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.base64encode=xE.base64decode=void 0;var Gc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),cN=[];for(let t=0;t<Gc.length;t++)cN[Gc[t].charCodeAt(0)]=t;cN[45]=Gc.indexOf("+");cN[95]=Gc.indexOf("/");function nXe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let A=new Uint8Array(e),r=0,i=0,n,s=0;for(let o=0;o<t.length;o++){if(n=cN[t.charCodeAt(o)],n===void 0)switch(t[o]){case"=":i=0;case`
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:s=n,i=1;break;case 1:A[r++]=s<<2|(n&48)>>4,s=n,i=2;break;case 2:A[r++]=(s&15)<<4|(n&60)>>2,s=n,i=3;break;case 3:A[r++]=(s&3)<<6|n,i=0;break}}if(i==1)throw Error("invalid base64 string.");return A.subarray(0,r)}a(nXe,"base64decode");xE.base64decode=nXe;function sXe(t){let e="",A=0,r,i=0;for(let n=0;n<t.length;n++)switch(r=t[n],A){case 0:e+=Gc[r>>2],i=(r&3)<<4,A=1;break;case 1:e+=Gc[i|r>>4],i=(r&15)<<2,A=2;break;case 2:e+=Gc[i|r>>6],e+=Gc[r&63],A=0;break}return A&&(e+=Gc[i],e+="=",A==1&&(e+="=")),e}a(sXe,"base64encode");xE.base64encode=sXe});var dde=E(dN=>{"use strict";Object.defineProperty(dN,"__esModule",{value:!0});dN.utf8read=void 0;var xL=a(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function aXe(t){if(t.length<1)return"";let e=0,A=[],r=[],i=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?r[i++]=n:n>191&&n<224?r[i++]=(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,r[i++]=55296+(n>>10),r[i++]=56320+(n&1023)):r[i++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(A.push(xL(r)),i=0);return A.length?(i&&A.push(xL(r.slice(0,i))),A.join("")):xL(r.slice(0,i))}a(aXe,"utf8read");dN.utf8read=aXe});var ZQ=E(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.WireType=ko.mergeBinaryOptions=ko.UnknownFieldHandler=void 0;var oXe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(A,r,i,n,s)=>{(e(r)?r[t.symbol]:r[t.symbol]=[]).push({no:i,wireType:n,data:s})},t.onWrite=(A,r,i)=>{for(let{no:n,wireType:s,data:o}of t.list(r))i.tag(n,s).raw(o)},t.list=(A,r)=>{if(e(A)){let i=A[t.symbol];return r?i.filter(n=>n.no==r):i}return[]},t.last=(A,r)=>t.list(A,r).slice(-1)[0];let e=a(A=>A&&Array.isArray(A[t.symbol]),"is")})(oXe=ko.UnknownFieldHandler||(ko.UnknownFieldHandler={}));function cXe(t,e){return Object.assign(Object.assign({},t),e)}a(cXe,"mergeBinaryOptions");ko.mergeBinaryOptions=cXe;var lXe;(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"})(lXe=ko.WireType||(ko.WireType={}))});var pN=E(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.varint32read=wn.varint32write=wn.int64toString=wn.int64fromString=wn.varint64write=wn.varint64read=void 0;function dXe(){let t=0,e=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<r,!(i&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 r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<r,!(i&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}a(dXe,"varint64read");wn.varint64read=dXe;function uXe(t,e,A){for(let n=0;n<28;n=n+7){let s=t>>>n,o=!(!(s>>>7)&&e==0),c=(o?s|128:s)&255;if(A.push(c),!o)return}let r=t>>>28&15|(e&7)<<4,i=!!(e>>3);if(A.push((i?r|128:r)&255),!!i){for(let n=3;n<31;n=n+7){let s=e>>>n,o=!!(s>>>7),c=(o?s|128:s)&255;if(A.push(c),!o)return}A.push(e>>>31&1)}}a(uXe,"varint64write");wn.varint64write=uXe;var uN=65536*65536;function pXe(t){let e=t[0]=="-";e&&(t=t.slice(1));let A=1e6,r=0,i=0;function n(s,o){let c=Number(t.slice(s,o));i*=A,r=r*A+c,r>=uN&&(i=i+(r/uN|0),r=r%uN)}return a(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,r,i]}a(pXe,"int64fromString");wn.int64fromString=pXe;function gXe(t,e){if(e>>>0<=2097151)return""+(uN*e+(t>>>0));let A=t&16777215,r=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,n=A+r*6777216+i*6710656,s=r+i*8147497,o=i*2,c=1e7;n>=c&&(s+=Math.floor(n/c),n%=c),s>=c&&(o+=Math.floor(s/c),s%=c);function l(d,u){let p=d?String(d):"";return u?"0000000".slice(p.length)+p:p}return a(l,"decimalFrom1e7"),l(o,0)+l(s,o)+l(n,1)}a(gXe,"int64toString");wn.int64toString=gXe;function hXe(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)}}a(hXe,"varint32write");wn.varint32write=hXe;function EXe(){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}a(EXe,"varint32read");wn.varint32read=EXe});var md=E(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.PbLong=Ed.PbULong=Ed.detectBi=void 0;var KQ=pN(),Jt;function ude(){let t=new DataView(new ArrayBuffer(8));Jt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMA
Line truncated
|
||||
`)}};PN.RpcError=rU});var nU=E(HN=>{"use strict";Object.defineProperty(HN,"__esModule",{value:!0});HN.mergeRpcOptions=void 0;var Gde=tr();function _Ze(t,e){if(!e)return t;let A={};qN(t,A),qN(e,A);for(let r of Object.keys(e)){let i=e[r];switch(r){case"jsonOptions":A.jsonOptions=Gde.mergeJsonOptions(t.jsonOptions,A.jsonOptions);break;case"binaryOptions":A.binaryOptions=Gde.mergeBinaryOptions(t.binaryOptions,A.binaryOptions);break;case"meta":A.meta={},qN(t.meta,A.meta),qN(e.meta,A.meta);break;case"interceptors":A.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return A}a(_Ze,"mergeRpcOptions");HN.mergeRpcOptions=_Ze;function qN(t,e){if(!t)return;let A=e;for(let[r,i]of Object.entries(t))i instanceof Date?A[r]=new Date(i.getTime()):Array.isArray(i)?A[r]=i.concat():A[r]=i}a(qN,"copy")});var aU=E(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.Deferred=rp.DeferredState=void 0;var Uo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Uo=rp.DeferredState||(rp.DeferredState={}));var sU=class{static{a(this,"Deferred")}constructor(e=!0){this._state=Uo.PENDING,this._promise=new Promise((A,r)=>{this._resolve=A,this._reject=r}),e&&this._promise.catch(A=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Uo.PENDING)throw new Error(`cannot resolve ${Uo[this.state].toLowerCase()}`);this._resolve(e),this._state=Uo.RESOLVED}reject(e){if(this.state!==Uo.PENDING)throw new Error(`cannot reject ${Uo[this.state].toLowerCase()}`);this._reject(e),this._state=Uo.REJECTED}resolvePending(e){this._state===Uo.PENDING&&this.resolve(e)}rejectPending(e){this._state===Uo.PENDING&&this.reject(e)}};rp.Deferred=sU});var cU=E(YN=>{"use strict";Object.defineProperty(YN,"__esModule",{value:!0});YN.RpcOutputStreamController=void 0;var Jde=aU(),ip=tr(),oU=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,A){return A.push(e),()=>{let r=A.indexOf(e);r>=0&&A.splice(r,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,A,r){ip.assert((e?1:0)+(A?1:0)+(r?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),A&&this.notifyError(A),r&&this.notifyComplete()}notifyMessage(e){ip.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){ip.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(){ip.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;ip.assert(e,"bad state"),ip.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 Jde.Deferred,e.p.promise)}}}pushIt(e){let A=this._itState;if(A.p){let r=A.p;ip.assert(r.state==Jde.DeferredState.PENDING,"iterator contract broken"),"value"in e?r.resolve(e):r.reject(e),delete A.p}else A.q.push(e)}};YN.RpcOutputStreamController=oU});var dU=E(ME=>{"use strict";var OZe=ME&&ME.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(ME,"__esModule",{value:!0});ME.UnaryCall=void 0;var lU=class{static{a(this,"UnaryCall")}constructor(e,A,r,i,n,s,o){this.method=e,this.requestHeaders=A,this.request=r,this.headers=i,this.response=n,this.status=s,this.trailers=o}then(e,A){return this.promiseFinished().then(r=>e?Promise.resolve(e(r)):r,r=>A?Promise.resolve(A(r)):Promise.reject(r))}promiseFinished(){return OZe(this,void 0,void 0,function*(){let[e,A,r,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:A,status:r,trailers:i}})}};ME.UnaryCall=lU});var pU=E(_E=>{"use strict";var PZe=_E&&_E.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l
Line truncated
|
||||
`));let r=yield UU(A,"create");yield TU(r,t)})}a(LKe,"createTar");yi.createTar=LKe});var pue=E(cr=>{"use strict";var UKe=cr&&cr.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),TKe=cr&&cr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),uB=cr&&cr.__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)&&UKe(e,t,A);return TKe(e,t),e},$E=cr&&cr.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(cr,"__esModule",{value:!0});cr.saveCache=cr.restoreCache=cr.isFeatureAvailable=cr.ReserveCacheError=cr.ValidationError=void 0;var Me=uB(hi()),ZN=uB(require("path")),QA=uB(Dh()),KE=uB(lde()),due=uB(aue()),KN=nN(),Qd=lue(),MKe=Nh(),ia=class t extends Error{static{a(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};cr.ValidationError=ia;var np=class t extends Error{static{a(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};cr.ReserveCacheError=np;function uue(t){if(!t||t.length===0)throw new ia("Path Validation Error: At least one directory or file path is required")}a(uue,"checkPaths");function MU(t){if(t.length>512)throw new ia(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ia(`Key Validation Error: ${t} cannot contain commas.`)}a(MU,"checkKey");function _Ke(){return!!process.env.ACTIONS_CACHE_URL}a(_Ke,"isFeatureAvailable");cr.isFeatureAvailable=_Ke;function OKe(t,e,A,r,i=!1){return $E(this,void 0,void 0,function*(){let n=(0,KN.getCacheServiceVersion)();switch(Me.debug(`Cache service version: ${n}`),uue(t),n){case"v2":return yield qKe(t,e,A,r,i);case"v1":default:return yield PKe(t,e,A,r,i)}})}a(OKe,"restoreCache");cr.restoreCache=OKe;function PKe(t,e,A,r,i=!1){return $E(this,void 0,void 0,function*(){A=A||[];let n=[e,...A];if(Me.debug("Resolved Keys:"),Me.debug(JSON.stringify(n)),n.length>10)throw new ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let c of n)MU(c);let s=yield QA.getCompressionMethod(),o="";try{let c=yield KE.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:i});if(!c?.archiveLocation)return;if(r?.lookupOnly)return Me.info("Lookup only - skipping download"),c.cacheKey;o=ZN.join(yield QA.createTempDirectory(),QA.getCacheFileName(s)),Me.debug(`Archive Path: ${o}`),yield KE.downloadCache(c.archiveLocation,o,r),Me.isDebug()&&(yield(0,Qd.listTar)(o,s));let l=QA.getArchiveFileSizeInBytes(o);return Me.info(`Cache Size: ~${Math.round(l/(1024*1024))} MB (${l} B)`),yield(0,Qd.extractTar)(o,s),Me.info("Cache restored successfully"),c.cacheKey}catch(c){if(c.name===ia.name)throw c;Me.warning(`Failed to restore: ${c.message}`)}finally{try{yield QA.unlinkFile(o)}catch(c){Me.debug(`Failed to delete archive: ${c}`)}}})}a(PKe,"restoreCacheV1");function qKe(t,e,A,r,i=!1){return $E(this,void 0,void 0,function*(){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),A=A||[];let n=[e,...A];if(Me.debug("Resolved Keys:"),Me.debug(JSON.stringify(n)),n.length>10)throw new ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let o of n)MU(o);let s="";try{let o=due.internalCacheTwirpClient(),c=yield QA.getCompressionMethod(),l={key:e,restoreKeys:A,version:QA.getCacheVersion(t,c,i)},d=yield o.GetCacheEntryDownloadURL(l);if(!d.ok){Me.debug(`Cache not found for version ${l.version} of keys: ${n.join(", ")}`);return}if(Me.info(`Cache hit for: ${l.key}`),r?.lookupOnly)return Me.info("Lookup only - skipping download"),d.matchedKey;s=ZN.join(yield QA.createTempDirectory(),QA.getCacheFileName(c)),Me.debug(`Archive path: ${s}`),Me.debug(`Starting download of archive to: ${s}`),yield KE.downloadCache(d.signedDownloadUrl,s,r);let u=QA.getArchiveFileSizeInBytes(s);return Me.info(`Cache Size: ~${Math.round(u/(1024*1024))} MB (${u} B)`),Me.isDebug()&&(yield(0,Qd.listTar)(s,c)),yield(0,Qd.extractTar)(s,c),Me.info("Cache restored successfully"),d.matchedKey}catch(o){if(o.name===ia.name)throw o;Me.warning(`Failed to restore: ${o.message}`)}finally{try{s&&(yield QA.unlinkFile(s))}catch(o){Me.debug(`Failed to delete archive: ${o}`)}}})}a(qKe,"restoreCacheV2");function HKe(t,e,A,r=!1){return $E(this,void 0,void 0,function*(){let i=(0,KN.getCacheServiceVersion)(
Line truncated
|
||||
\r
|
||||
`),Aet=/\r\n/g,ret=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function rm(t){Epe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=hpe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=hpe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new eet(tet),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(rm,"HeaderParser");$$e(rm,Epe);rm.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};rm.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};rm.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)};rm.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(Aet),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=ret.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};mpe.exports=rm});var ET=E((uRt,Qpe)=>{"use strict";var hT=require("node:stream").Writable,iet=require("node:util").inherits,net=pT(),fpe=ppe(),set=Cpe(),aet=45,oet=Buffer.from("-"),cet=Buffer.from(`\r
|
||||
`),det=a(function(){},"EMPTY_FN");function Pa(t){if(!(this instanceof Pa))return new Pa(t);if(hT.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 set(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(Pa,"Dicer");iet(Pa,hT);Pa.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 A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" 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 hT.prototype.emit.apply(this,arguments)};Pa.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new fpe(this._partOpts),this._events.preamble?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(cet),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};Pa.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Pa.prototype.setBoundary=function(t){let e=this;this._bparser=new net(`\r
|
||||
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};Pa.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",det),this._part.resume())};Pa.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===aet)++s,++this._dashes;else{this._dashes&&(i=oet),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this._events.trailer&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new fpe(this._partOpts),this._part._read=function(l){n._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&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Pa.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};Qpe.exports=Pa});var cR=E((gRt,Ipe)=>{"use strict";var Bpe=new TextDecoder("utf-8"),oR=new Map([["utf-8",Bpe],["utf8",Bpe]]);function uet(t,e,A){if(t)if(oR.has(A))try{return oR.get(A).decode(Buffer.from(t,e))}catch{}else try{return oR.set(A,new TextDecoder(A)),oR.get(A).decode(Buffer.from(t,e))}catch{}return t}a(uet,"decodeText");Ipe.exports=uet});var mT=E((ERt,bpe)=>{"use strict";var lR=cR(),ype=/%([a-fA-F0-9]{2})/g;function wpe(t,e){return String.fromCharCode(parseInt(e,16))}a(wpe,"encodedReplacer");function pet(t){let e=[],A="key",r="",i=!1,n=!1,s=0,o="";for(var c=0,l=t.length;c<l;++c){let d=t[c];if(d==="\\"&&i)if(n)n=!1;else{n=!0;continue}else if(d==='"')if(n)n=!1;else{i?(i=!1,A="key"):i=!0;continue}else if(n&&i&&(o+="\\"),n=!1,(A==="charset"||A==="lang")&&d==="'"){A==="charset"?(A="lang",r=o.substring(1)):A="value",o="";continue}else if(A==="key"&&(d==="*"||d==="=")&&e.length){d==="*"?A="charset":A="value",e[s]=[o,void 0],o="";continue}else if(!i&&d===";"){A="key",r?(o.length&&(o=lR(o.replace(ype,wpe),"binary",r)),r=""):o.length&&(o=lR(o,"binary","utf8")),e[s]===void 0?e[s]=o:e[s][1]=o,o="",++s;continue}else if(!i&&(d===" "||d===" "))continue;o+=d}return r&&o.length?o=lR(o.replace(ype,wpe),"binary",r):o&&(o=lR(o,"binary","utf8")),e[s]===void 0?o&&(e[s]=o):e[s][1]=o,e}a(pet,"parseParams");bpe.exports=pet});var Rpe=E((CRt,Npe)=>{"use strict";Npe.exports=a(function(e){if(typeof e!="string")return"";for(var A=e.length-1;A>=0;--A)switch(e.charCodeAt(A)){case 47:case 92:return e=e.slice(A+1),e===".."||e==="."?"":e}return e===".."||e==="."?"":e},"basename")});var vpe=E((QRt,xpe)=>{"use strict";var{Readable:Spe}=require("node:stream"),{inherits:get}=require("node:util"),het=ET(),Dpe=mT(),Eet=cR(),met=Rpe(),ap=aR(),Cet=/^boundary$/i,fet=/^form-data$/i,Qet=/^charset$/i,Bet=/^filename$/i,Iet=/^name$/i;dR.detect=/^multipart\/form-data/i;function dR(t,e){let A,r,i=this,n,s=e.limits,o=e.isPartAFile||((v,x,L)=>x==="application/octet-stream"||L!==void 0),c=e.parsedConType||[],l=e.defCharset||"utf8",d=e.preservePath,u={highWaterMark:e.fileHwm};for(A=0,r=c.length;A<r;++A)if(Array.isArray(c[A])&&Cet.test(c[A][0])){n=c[A][1];break}function p(){N===0&&k&&!t._done&&(k=!1,i.end())}if(a(p,"checkFinished"),typeof n!="string")throw new Error("Multipart: Boundary not found");let g=ap(s,"fieldSize",1*1024*1024),h=ap(s,"fileSize",1/0),m=ap(s,"files",1/0),f=ap(s,"fields",1/0),B=ap(s,"parts",1/0),b=ap(s,"headerPairs",2e3),I=ap(s,"headerSize",80*1024),C=0,Q=0,N=0,S,w,k=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=t;let D={boundary:n,maxHeaderPairs:b,maxHeaderSize:I,partHwm:u.highWaterMark,highWaterMark:e.highWaterMark};this.parser=new het(D),this.parser.on("drain",function(){if(i._needDrain=!1,i._cb&&!i._pause){let v=i._cb;i._cb=void 0,v()}}).on("part",a(function v(x){if(++i._nparts>B)return i.parser.removeListener("part",v),i.parser.on("part",im),t.hitPartsLimit=!0,t.emit("partsLimit"),im(x);if(w){let L=w;L.emit("end"),L.removeAllListeners("end")}x.on("header",function(L){let q,le,_,rt,Se,vt,ht=0;if(L["content-type"]&&(_=Dpe(L["content-type"][0]),_[0])){for(q=_[0].toLowerCase(),A=0,r=_.length;A<r;++A)if(Qet.test(_[A][0])){rt=_[A][1].toLowerCase();break}}if(q===void 0&&(q="text/plain"),rt===void 0&&(rt=l),L["content-disposition"]){if(_=Dpe(L["content-dispo
Line truncated
|
||||
`))}a(Ype,"isValidHeaderValue");function utt(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if($et.includes(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(utt,"setRequestReferrerPolicyOnRedirect");function ptt(){return"allowed"}a(ptt,"crossOriginResourcePolicyCheck");function gtt(){return"success"}a(gtt,"corsCheck");function htt(){return"success"}a(htt,"TAOCheck");function Ett(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(Ett,"appendFetchMetadata");function mtt(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&&bT(t.origin)&&!bT(BB(t))&&(e=null);break;case"same-origin":pR(t,BB(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(mtt,"appendRequestOriginHeader");function Ctt(t){return ttt.now()}a(Ctt,"coarsenedSharedCurrentTime");function ftt(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(ftt,"createOpaqueTimingInfo");function Qtt(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(Qtt,"makePolicyContainer");function Btt(t){return{referrerPolicy:t.referrerPolicy}}a(Btt,"clonePolicyContainer");function Itt(t){let e=t.referrerPolicy;om(e);let A=null;if(t.referrer==="client"){let o=ett();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=yT(A),i=yT(A,!0);r.toString().length>4096&&(r=i);let n=pR(t,r),s=fB(r)&&!fB(t.url);switch(e){case"origin":return i??yT(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=BB(t);return pR(r,o)?r:fB(r)&&!fB(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(Itt,"determineRequestsReferrer");function yT(t,e){return om(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(yT,"stripURLForReferrer");function fB(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a(fB,"isURLPotentiallyTrustworthy");function ytt(t,e){if(QB===void 0)return!0;let A=btt(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=QB.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=QB.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(ytt,"bytesMatch");var wtt=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function btt(t){let e=[],A=!0,r=QB.getHashes();for(let i of t.split(" ")){A=!1;let n=wtt.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(btt,"parseMetadata");function Ntt(t){}a(Ntt,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function pR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(pR,"sameOrigin");function Rtt(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(Rtt,"createDeferredPromise");function Dtt(t){return t.controller.state==="aborted"}a(Dtt,"isAborted");function Stt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(Stt,"isCancelled");function xtt(t){return/^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(t)?t.toUpperCase():t}a(xtt,"normalizeMethod");function vtt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return om(typeof e=="string"),e}a(vtt,"serializeJavascriptValueToJSONString");var ktt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Ftt(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this)!==i)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:s,target:o}=r,c=o(),l=c.le
Line truncated
|
||||
`||t===" "||t===" "}a(Xpe,"isHTTPWhiteSpace");function NT(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&Xpe(t[r]);r++);if(A)for(;i>0&&Xpe(t[i]);i--);return t.slice(r,i+1)}a(NT,"removeHTTPWhitespace");function Zpe(t){return t==="\r"||t===`
|
||||
`||t===" "||t==="\f"||t===" "}a(Zpe,"isASCIIWhitespace");function $tt(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&Zpe(t[r]);r++);if(A)for(;i>0&&Zpe(t[i]);i--);return t.slice(r,i+1)}a($tt,"removeASCIIWhitespace");tge.exports={dataURLProcessor:jtt,URLSerializer:Kpe,collectASequenceOfCodePoints:ER,collectASequenceOfCodePointsFast:cm,stringPercentDecode:$pe,parseMIMEType:RT,collectAnHTTPQuotedString:ege,serializeAMimeType:Ktt}});var mR=E((_Rt,sge)=>{"use strict";var{Blob:ige,File:Age}=require("buffer"),{types:DT}=require("util"),{kState:ds}=zc(),{isBlobLike:nge}=aa(),{webidl:xt}=Yi(),{parseMIMEType:eAt,serializeAMimeType:tAt}=qa(),{kEnumerableProperty:rge}=gt(),IB=class t extends ige{static{a(this,"File")}constructor(e,A,r={}){xt.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=xt.converters["sequence<BlobPart>"](e),A=xt.converters.USVString(A),r=xt.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=eAt(n),n==="failure"){n="";break e}n=tAt(n).toLowerCase()}s=r.lastModified}super(AAt(e,r),{type:n}),this[ds]={name:i,lastModified:s,type:n}}get name(){return xt.brandCheck(this,t),this[ds].name}get lastModified(){return xt.brandCheck(this,t),this[ds].lastModified}get type(){return xt.brandCheck(this,t),this[ds].type}},ST=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[ds]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return xt.brandCheck(this,t),this[ds].blobLike.stream(...e)}arrayBuffer(...e){return xt.brandCheck(this,t),this[ds].blobLike.arrayBuffer(...e)}slice(...e){return xt.brandCheck(this,t),this[ds].blobLike.slice(...e)}text(...e){return xt.brandCheck(this,t),this[ds].blobLike.text(...e)}get size(){return xt.brandCheck(this,t),this[ds].blobLike.size}get type(){return xt.brandCheck(this,t),this[ds].blobLike.type}get name(){return xt.brandCheck(this,t),this[ds].name}get lastModified(){return xt.brandCheck(this,t),this[ds].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(IB.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:rge,lastModified:rge});xt.converters.Blob=xt.interfaceConverter(ige);xt.converters.BlobPart=function(t,e){if(xt.util.Type(t)==="Object"){if(nge(t))return xt.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||DT.isAnyArrayBuffer(t))return xt.converters.BufferSource(t,e)}return xt.converters.USVString(t,e)};xt.converters["sequence<BlobPart>"]=xt.sequenceConverter(xt.converters.BlobPart);xt.converters.FilePropertyBag=xt.dictionaryConverter([{key:"lastModified",converter:xt.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:xt.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=xt.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function AAt(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=rAt(i)),A.push(new TextEncoder().encode(i))}else DT.isAnyArrayBuffer(r)||DT.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):nge(r)&&A.push(r);return A}a(AAt,"processBlobParts");function rAt(t){let e=`
|
||||
`;return process.platform==="win32"&&(e=`\r
|
||||
`),t.replace(/\r?\n/g,e)}a(rAt,"convertLineEndingsNative");function iAt(t){return Age&&t instanceof Age||t instanceof IB||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(iAt,"isFileLike");sge.exports={File:IB,FileLike:ST,isFileLike:iAt}});var fR=E((PRt,dge)=>{"use strict";var{isBlobLike:CR,toUSVString:nAt,makeIterator:xT}=aa(),{kState:wi}=zc(),{File:lge,FileLike:age,isFileLike:sAt}=mR(),{webidl:Ut}=Yi(),{Blob:aAt,File:vT}=require("buffer"),oge=vT??lge,lm=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw Ut.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[wi]=[]}append(e,A,r=void 0){if(Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!CR(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Ut.converters.USVString(e),A=CR(A)?Ut.converters.Blob(A,{strict:!1}):Ut.converters.USVString(A),r=arguments.length===3?Ut.converters.USVString(r):void 0;let i=cge(e,A,r);this[wi].push(i)}delete(e){Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Ut.converters.USVString(e),this[wi]=this[wi].filter(A=>A.name!==e)}get(e){Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Ut.converters.USVString(e);let A=this[wi].findIndex(r=>r.name===e);return A===-1?null:this[wi][A].value}getAll(e){return Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Ut.converters.USVString(e),this[wi].filter(A=>A.name===e).map(A=>A.value)}has(e){return Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Ut.converters.USVString(e),this[wi].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!CR(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Ut.converters.USVString(e),A=CR(A)?Ut.converters.Blob(A,{strict:!1}):Ut.converters.USVString(A),r=arguments.length===3?nAt(r):void 0;let i=cge(e,A,r),n=this[wi].findIndex(s=>s.name===e);n!==-1?this[wi]=[...this[wi].slice(0,n),i,...this[wi].slice(n+1).filter(s=>s.name!==e)]:this[wi].push(i)}entries(){return Ut.brandCheck(this,t),xT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Ut.brandCheck(this,t),xT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","key")}values(){return Ut.brandCheck(this,t),xT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(Ut.brandCheck(this,t),Ut.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[r,i]of this)e.apply(A,[i,r,this])}};lm.prototype[Symbol.iterator]=lm.prototype.entries;Object.defineProperties(lm.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function cge(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(sAt(e)||(e=e instanceof aAt?new oge([e],"blob",{type:e.type}):new age(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=vT&&e instanceof vT||e instanceof lge?new oge([e],A,r):new age(e,A,r)}return{name:t,value:e}}a(cge,"makeEntry");dge.exports={FormData:lm}});var yB=E((HRt,Qge)=>{"use strict";var oAt=_pe(),dm=gt(),{ReadableStreamFrom:cAt,isBlobLike:uge,isReadableStreamLike:lAt,readableStreamClose:dAt,createDeferredPromise:uAt,fullyReadBody:pAt}=aa(),{FormData:pge}=fR(),{kState:Xc}=zc(),{webidl:kT}=Yi(),{DOMException:Ege,structuredClone:gAt}=bd(),{Blob:hAt,File:EAt}=require("buffer"),{kBodyUsed:mAt}=BA(),FT=require("assert"),{isErrored:CAt}=gt(),{isUint8Array:mge,isArrayBuffer:fAt}=require("util/types"),{File:QAt}=mR(),{parseMIMEType:BAt,serializeAMimeType:IAt}=qa(),jc=globalThis.ReadableStream,gge=EAt??QAt;function Cge(t,e=!1){jc||(jc=require("stream/web").ReadableStream);let A=null;t instanceof jc?A=t:uge(t)?A=t.stream():A=new jc({async pull(c){c.enqueue(typeof i=="string"?new TextEncoder().encode(i):i),queueMicrotask(()=>dAt(c))},start(){},type:void 0}),FT(lAt(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(fAt(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(dm.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"),u=a(B=>B.replace(/\r?\n|\r/g,`\r
|
||||
`),"normalizeLinefeeds"),p=new TextEncoder,g=[],h=new Uint8Array([13,10]);n=0;let m=!1;for(let[B,b]of t)if(typeof b=="string"){let I=p.encode(l+`; name="${d(u(B))}"\r
|
||||
\r
|
||||
${u(b)}\r
|
||||
`);g.push(I),n+=I.byteLength}else{let I=p.encode(`${l}; name="${d(u(B))}"`+(b.name?`; filename="${d(b.name)}"`:"")+`\r
|
||||
Content-Type: ${b.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);g.push(I,b,h),typeof b.size=="number"?n+=I.byteLength+b.size+h.byteLength:m=!0}let f=p.encode(`--${c}--`);g.push(f),n+=f.byteLength,m&&(n=null),i=t,r=a(async function*(){for(let B of g)B.stream?yield*B.stream():yield B},"action"),s="multipart/form-data; boundary="+c}else if(uge(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(dm.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof jc?t:cAt(t)}if((typeof i=="string"||dm.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new jc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):CAt(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(Cge,"extractBody");function yAt(t,e=!1){return jc||(jc=require("stream/web").ReadableStream),t instanceof jc&&(FT(!dm.isDisturbed(t),"The body has already been consumed."),FT(!t.locked,"The stream is locked.")),Cge(t,e)}a(yAt,"safelyExtractBody");function wAt(t){let[e,A]=t.stream.tee(),r=gAt(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(wAt,"cloneBody");async function*hge(t){if(t)if(mge(t))yield t;else{let e=t.stream;if(dm.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[mAt]=!0,yield*e}}a(hge,"consumeBody");function LT(t){if(t.aborted)throw new Ege("The operation was aborted.","AbortError")}a(LT,"throwIfAborted");function bAt(t){return{blob(){return QR(this,A=>{let r=SAt(this);return r==="failure"?r="":r&&(r=IAt(r)),new hAt([A],{type:r})},t)},arrayBuffer(){return QR(this,A=>new Uint8Array(A).buffer,t)},text(){return QR(this,fge,t)},json(){return QR(this,DAt,t)},async formData(){kT.brandCheck(this,t),LT(this[Xc]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new pge,n;try{n=new oAt({headers:r,preservePath:!0})}catch(o){throw new Ege(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new gge(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new gge(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of hge(this[Xc].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of hge(this[Xc].body)){if(!mge(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new pge;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),LT(this[Xc]),kT.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(bAt,"bodyMixinMethods");function NAt(t){Object.assign(t.prototype,bAt(t))}a(NAt,"mixinBody");async function QR(t,e,A){if(kT.brandCheck(t,A),LT(t[Xc]),RAt(t[Xc].body))throw new TypeError("Body is unusable");let r=uAt(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[Xc].body==null?(n(new Uint8Array),r.promise):(await pAt(t[Xc].body,n,i),r.promise)}a(QR,"specConsumeBody");function RAt(t){return t!=null&&(t.stream.locked||dm.isDisturbed(t.stream))}a(RAt,"bodyUnusable");function fge(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),new TextDecoder().decode(t))}a(fge,"utf8DecodeBytes");function DAt(t){return JSON.parse(fge(t))}a(DAt,"parseJSONFromBytes");function SAt(t){let{headersList:e}=t[Xc],A=e.get("content-type");return A===null?"failure":BAt(A)}a(SAt,"bodyMimeType");Qge.exports={extractBody:Cge,safelyExtractBody:yAt,cloneBody:wAt,mixinBody:NAt}});var wge=E((GRt,yge)=>{"use strict";var{InvalidArgumentError:AA,NotSupportedError:xAt}=tA(),Zc=require("assert"),{kHTTP2BuildRequest:vAt,kHTTP2CopyHeaders:kAt,kHTTP1BuildRequest:FAt}=BA(),us=gt(),Bge=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,Ige=/[^\t\x20-\x7e\x80-\xff]/,LAt=/[^\u0021-\u00ff]/,Kc=Symbol("handler"),dr={},UT;try{let t=require("diagnostics_channel");dr.create=t.channel("undici:request:create"),dr.bodySent=t.channel("undici:request:bodySent"),dr.headers=t.channel("undici:request:headers"),dr.trailers=t.channel("undici:request:trailers"),dr.error=t.channel("undici:request:error")}catch{dr.create={hasSubscribers:!1},dr.bodySent={hasSubscribers:!1},dr.headers={hasSubscribers:!1},dr.trailLine truncated
|
||||
`),this.body=f.stream,this.contentLength=f.length}else us.isBlobLike(i)&&this.contentType==null&&i.type&&(this.contentType=i.type,this.headers+=`content-type: ${i.type}\r
|
||||
`);us.validateHandler(m,r,l),this.servername=us.getServerName(this.host),this[Kc]=m,dr.create.hasSubscribers&&dr.create.publish({request:this})}onBodySent(e){if(this[Kc].onBodySent)try{this[Kc].onBodySent(e)}catch(A){this.onError(A)}}onRequestSent(){dr.bodySent.hasSubscribers&&dr.bodySent.publish({request:this})}onConnect(e){return Zc(!this.aborted),Zc(!this.completed),this[Kc].onConnect(e)}onHeaders(e,A,r,i){return Zc(!this.aborted),Zc(!this.completed),dr.headers.hasSubscribers&&dr.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:i}}),this[Kc].onHeaders(e,A,r,i)}onData(e){return Zc(!this.aborted),Zc(!this.completed),this[Kc].onData(e)}onUpgrade(e,A,r){return Zc(!this.aborted),Zc(!this.completed),this[Kc].onUpgrade(e,A,r)}onComplete(e){return Zc(!this.aborted),this.completed=!0,dr.trailers.hasSubscribers&&dr.trailers.publish({request:this,trailers:e}),this[Kc].onComplete(e)}onError(e){if(dr.error.hasSubscribers&&dr.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Kc].onError(e)}addHeader(e,A){return wB(this,e,A),this}static[FAt](e,A,r){return new t(e,A,r)}static[vAt](e,A,r){let i=A.headers;A={...A,headers:null};let n=new t(e,A,r);if(n.headers={},Array.isArray(i)){if(i.length%2!==0)throw new AA("headers array must be even");for(let s=0;s<i.length;s+=2)wB(n,i[s],i[s+1],!0)}else if(i&&typeof i=="object"){let s=Object.keys(i);for(let o=0;o<s.length;o++){let c=s[o];wB(n,c,i[c],!0)}}else if(i!=null)throw new AA("headers must be an object or an array");return n}static[kAt](e){let A=e.split(`\r
|
||||
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function op(t,e,A){if(e&&typeof e=="object")throw new AA(`invalid ${t} header`);if(e=e!=null?`${e}`:"",Ige.exec(e)!==null)throw new AA(`invalid ${t} header`);return A?e:`${t}: ${e}\r
|
||||
`}a(op,"processHeaderValue");function wB(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new AA(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(Ige.exec(A)!==null)throw new AA(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new AA("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=op(e,A,r):t.headers+=op(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new AA("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new AA("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new AA("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new AA("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new xAt("expect header not supported");if(Bge.exec(e)===null)throw new AA("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${op(e,A[i],r)}`:t.headers[e]=op(e,A[i],r):t.headers+=op(e,A[i]);else r?t.headers[e]=op(e,A,r):t.headers+=op(e,A)}}}a(wB,"processHeader");yge.exports=TT});var BR=E((VRt,bge)=>{"use strict";var UAt=require("events"),MT=class extends UAt{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};bge.exports=MT});var NB=E((zRt,Nge)=>{"use strict";var TAt=BR(),{ClientDestroyedError:_T,ClientClosedError:MAt,InvalidArgumentError:um}=tA(),{kDestroy:_At,kClose:OAt,kDispatch:OT,kInterceptors:cp}=BA(),pm=Symbol("destroyed"),bB=Symbol("closed"),$c=Symbol("onDestroyed"),gm=Symbol("onClosed"),IR=Symbol("Intercepted Dispatch"),PT=class extends TAt{static{a(this,"DispatcherBase")}constructor(){super(),this[pm]=!1,this[$c]=null,this[bB]=!1,this[gm]=[]}get destroyed(){return this[pm]}get closed(){return this[bB]}get interceptors(){return this[cp]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[cp][A]!="function")throw new um("interceptor must be an function")}this[cp]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new um("invalid callback");if(this[pm]){queueMicrotask(()=>e(new _T,null));return}if(this[bB]){this[gm]?this[gm].push(e):queueMicrotask(()=>e(null,null));return}this[bB]=!0,this[gm].push(e);let A=a(()=>{let r=this[gm];this[gm]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[OAt]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new um("invalid callback");if(this[pm]){this[$c]?this[$c].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new _T),this[pm]=!0,this[$c]=this[$c]||[],this[$c].push(A);let r=a(()=>{let i=this[$c];this[$c]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[_At](e).then(()=>{queueMicrotask(r)})}[IR](e,A){if(!this[cp]||this[cp].length===0)return this[IR]=this[OT],this[OT](e,A);let r=this[OT].bind(this);for(let i=this[cp].length-1;i>=0;i--)r=this[cp][i](r);return this[IR]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new um("handler must be an object");try{if(!e||typeof e!="object")throw new um("opts must be an object.");if(this[pm]||this[$c])throw new _T;if(this[bB])throw new MAt;return this[IR](e,A)}catch(r){if(typeof A.onError!="function")throw new um("invalid onError method");return A.onError(r),!1}}};Nge.exports=PT});var RB=E((KRt,Sge)=>{"use strict";var PAt=require("net"),Rge=require("assert"),Dge=gt(),{InvalidArgumentError:qAt,ConnectTimeoutError:HAt}=tA(),qT,HT;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?HT=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:HT=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function YAt({allowH2:t,maxC
Line truncated
|
||||
`,this[Vge]=c??3e5,this[Jge]=i??3e5,this[FB]=b??!0,this[frt]=C,this[LB]=N,this[Rd]=null,this[zge]=w>-1?w:-1,this[Ho]="h1",this[gs]=null,this[xR]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[jge]=`${this[ai].hostname}${this[ai].port?`:${this[ai].port}`:""}`,this[dA]=[],this[uA]=0,this[ps]=0}get pipelining(){return this[Sd]}set pipelining(e){this[Sd]=e,hs(this,!0)}get[up](){return this[dA].length-this[ps]}get[RA](){return this[ps]-this[uA]}get[dp](){return this[dA].length-this[uA]}get[Crt](){return!!this[VA]&&!this[mm]&&!this[VA].destroyed}get[XT](){let e=this[VA];return e&&(e[Gi]||e[tl]||e[fm])||this[dp]>=(this[Sd]||1)||this[up]>0}[mrt](e){$ge(this),this.once("connect",e)}[Irt](e,A){let r=e.origin||this[ai].origin,i=this[Ho]==="h2"?jT[wrt](r,e,A):jT[Nrt](r,e,A);return this[dA].push(i),this[lp]||(me.bodyLength(i.body)==null&&me.isIterable(i.body)?(this[lp]=1,process.nextTick(hs,this)):hs(this,!0)),this[lp]&&this[Dd]!==2&&this[XT]&&(this[Dd]=2),this[Dd]<2}async[Qrt](){return new Promise(e=>{this[dp]?this[Rd]=e:e(null)})}async[Brt](e){return new Promise(A=>{let r=this[dA].splice(this[ps]);for(let n=0;n<r.length;n++){let s=r[n];ci(this,s,e)}let i=a(()=>{this[Rd]&&(this[Rd](),this[Rd]=null),A()},"callback");this[gs]!=null&&(me.destroy(this[gs],e),this[gs]=null,this[xR]=null),this[VA]?me.destroy(this[VA].on("close",i),e):queueMicrotask(i),hs(this)})}};function Lrt(t){Ae(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[VA][oi]=t,LR(this[qo],t)}a(Lrt,"onHttp2SessionError");function Urt(t,e,A){let r=new Po(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[VA][oi]=r,LR(this[qo],r))}a(Urt,"onHttp2FrameError");function Trt(){me.destroy(this,new Cm("other side closed")),me.destroy(this[VA],new Cm("other side closed"))}a(Trt,"onHttp2SessionEnd");function Mrt(t){let e=this[qo],A=new Po(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[VA]=null,e[gs]=null,e.destroyed){Ae(this[up]===0);let r=e[dA].splice(e[uA]);for(let i=0;i<r.length;i++){let n=r[i];ci(this,n,A)}}else if(e[RA]>0){let r=e[dA][e[uA]];e[dA][e[uA]++]=null,ci(e,r,A)}e[ps]=e[uA],Ae(e[RA]===0),e.emit("disconnect",e[ai],[e],A),hs(e)}a(Mrt,"onHTTP2GoAway");var Mo=vge(),_rt=bR(),Ort=Buffer.alloc(0);async function Prt(){let t=process.env.JEST_WORKER_ID?VT():void 0,e;try{e=await WebAssembly.compile(Buffer.from(_ge(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||VT(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Oo+_o.byteOffset;return yr.onStatus(new NR(_o.buffer,n,i))||0},wasm_on_message_begin:A=>(Ae.strictEqual(yr.ptr,A),yr.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Oo+_o.byteOffset;return yr.onHeaderField(new NR(_o.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Oo+_o.byteOffset;return yr.onHeaderValue(new NR(_o.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(Ae.strictEqual(yr.ptr,A),yr.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Oo+_o.byteOffset;return yr.onBody(new NR(_o.buffer,n,i))||0},wasm_on_message_complete:A=>(Ae.strictEqual(yr.ptr,A),yr.onMessageComplete()||0)}})}a(Prt,"lazyllhttp");var zT=null,$T=Prt();$T.catch();var yr=null,_o=null,RR=0,Oo=null,Qm=1,SR=2,e7=3,t7=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){Ae(Number.isFinite(e[DR])&&e[DR]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(Mo.TYPE.RESPONSE),this.client=e,this.socket=A,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[DR],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[zge]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(WT.clearTimeout(this.timeout),e?(this.timeout=WT.setTimeout(qrt,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||(Ae(this.ptr!=null),Ae(yr==null),this.llhttp.llhttp_resume(this.ptr),Ae(this.timeoutType===SR),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||Ort),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ae(this.ptr!=null),Ae(yr==null),Ae(!this.paused);let{socket:A,llhttp:r}=this;e.length>RR&&(Oo&&r.free(Oo),RR=Math.ceil(e.length/4096)*4096,Oo=r.malloc(RR)),new Uint8Array(r.memory.buffer,Oo,RR).set(e);try{let i;try{_o=e,yr=this,i=r.llhttp_execute(this.ptr,Oo,e.length)}catch(s){throw s}finally{yr=null,_o=null}let n=r.llhttp_get_error_pos(this.ptr)-Oo;if(i===Mo.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===Mo.ERROR.PAUSED)this.paused=!0,A.unshift(e.sli
Line truncated
|
||||
`;return typeof n=="string"?g+=`host: ${n}\r
|
||||
`:g+=t[Hge],s?g+=`connection: upgrade\r
|
||||
upgrade: ${s}\r
|
||||
`:t[Sd]&&!p[Gi]?g+=`connection: keep-alive\r
|
||||
`:g+=`connection: close\r
|
||||
`,o&&(g+=o),bi.sendHeaders.hasSubscribers&&bi.sendHeaders.publish({request:e,headers:g,socket:p}),A?me.isBuffer(A)?(Ae(u===A.byteLength,"buffer body must have content length"),p.cork(),p.write(`${g}content-length: ${u}\r
|
||||
\r
|
||||
`,"latin1"),p.write(A),p.uncork(),e.onBodySent(A),e.onRequestSent(),d||(p[Gi]=!0)):me.isBlobLike(A)?typeof A.stream=="function"?kR({body:A.stream(),client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):the({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):me.isStream(A)?ehe({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):me.isIterable(A)?kR({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):Ae(!1):(u===0?p.write(`${g}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(Ae(u===null,"no body must not have content length"),p.write(`${g}\r
|
||||
`,"latin1")),e.onRequestSent()),!0}a(Yrt,"write");function Grt(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=jT[brt](d.trim()):u=d,o)return ci(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||ci(t,A,b||new r7)})}catch(b){ci(t,A,b)}if(A.aborted)return!1;let p,g=t[xR];if(u[Rrt]=s||t[jge],u[Drt]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[Srt]=n,u[xrt]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=me.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),A.contentLength!=null&&A.contentLength!==m){if(t[FB])return ci(t,A,new el),!1;process.emitWarning(new el)}m!=null&&(Ae(r,"no body must not have content length"),u[vrt]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[krt]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{A.onHeaders(Number(b[Frt]),b,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[gs]&&!t[gs].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,me.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new Po(`HTTP/2: "frameError" received - type ${b}, code ${I}`);ci(t,A,C),t[gs]&&!t[gs].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,me.destroy(p,C))}),!0;function B(){r?me.isBuffer(r)?(Ae(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):me.isBlobLike(r)?typeof r.stream=="function"?kR({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[VA],header:""}):the({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[VA]}):me.isStream(r)?ehe({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[VA],h2stream:p,header:""}):me.isIterable(r)?kR({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[VA]}):Ae(!1):A.onRequestSent()}a(B,"writeBodyH2")}a(Grt,"writeH2");function ehe({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(Ae(n!==0||A[RA]===0,"stream body cannot be pipelined"),A[Ho]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=art(e,t,f=>{f?(me.destroy(e,f),me.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),me.destroy(h)});return}let c=!1,l=new FR({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){me.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){g(new r7)},"onAbort"),g=a(function(h){if(!c){if(c=!0,Ae(i.destroyed||i[tl]&&A[RA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?me.destroy(e,h):me.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(ehe,"writeStream");async function the({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){Ae(n===e.size,"blob body must have content length");let c=A[Ho]==="h2";try{if(n!=null&&n!==e.size)throw new el;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Gi]=!0),hs(A)}catch(l){me.destroy(c?t:i,l)}}a(the,"writeBlob");async function kR({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){Ae(n!==0||A[RA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{Ae(c===null),i[oi]?g(i[oi]):c=p}),"waitForDrain");if(A[Ho]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[oi])throw i[oi];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new FR({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[oi])throw i[oi];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(kR,"writeIterable");var FR=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[tl]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[oi])throw A[oi];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[FB])throw new el;process.emitWarning(new el)}A.cork(),s===0&&(o||(A[Gi]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
|
||||
`,"latin1"):A.write(`${c}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1")),i===null&&A.write(`\r
|
||||
${l.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=l;let d=A.write(e);return A.uncork(),r.onBodySent(e),d||A[JA].timeout&&A[JA].timeoutType===Qm&&A[JA].timeout.refresh&&A[JA].timeout.refresh(),d}end(){let{socket:e,contentLength:A,client:r,bytesWritten:i,expectsPayload:n,header:s,request:o}=this;if(o.onRequestSent(),e[tl]=!1,e[oi])throw e[oi];if(!e.destroyed){if(i===0?n?e.write(`${s}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${s}\r
|
||||
`,"latin1"):A===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),A!==null&&i!==A){if(r[FB])throw new el;process.emitWarning(new el)}e[JA].timeout&&e[JA].timeoutType===Qm&&e[JA].timeout.refresh&&e[JA].timeout.refresh(),hs(r)}}destroy(e){let{socket:A,client:r}=this;A[tl]=!1,e&&(Ae(r[RA]<=1,"pipeline should only contain this request"),me.destroy(A,e))}};function ci(t,e,A){try{e.onError(A),Ae(e.aborted)}catch(r){t.emit("error",r)}}a(ci,"errorRequest");Ahe.exports=KT});var ihe=E((uDt,rhe)=>{"use strict";var UR=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)}};rhe.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new UR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new UR),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var she=E((gDt,nhe)=>{var{kFree:Jrt,kConnected:Vrt,kPending:Wrt,kQueued:zrt,kRunning:jrt,kSize:Xrt}=BA(),pp=Symbol("pool"),i7=class{static{a(this,"PoolStats")}constructor(e){this[pp]=e}get connected(){return this[pp][Vrt]}get free(){return this[pp][Jrt]}get pending(){return this[pp][Wrt]}get queued(){return this[pp][zrt]}get running(){return this[pp][jrt]}get size(){return this[pp][Xrt]}};nhe.exports=i7});var l7=E((EDt,Ehe)=>{"use strict";var Zrt=NB(),Krt=ihe(),{kConnected:n7,kSize:ahe,kRunning:ohe,kPending:che,kQueued:TB,kBusy:$rt,kFree:eit,kUrl:tit,kClose:Ait,kDestroy:rit,kDispatch:iit}=BA(),nit=she(),Nn=Symbol("clients"),Ji=Symbol("needDrain"),MB=Symbol("queue"),s7=Symbol("closed resolve"),a7=Symbol("onDrain"),lhe=Symbol("onConnect"),dhe=Symbol("onDisconnect"),uhe=Symbol("onConnectionError"),o7=Symbol("get dispatcher"),ghe=Symbol("add client"),hhe=Symbol("remove client"),phe=Symbol("stats"),c7=class extends Zrt{static{a(this,"PoolBase")}constructor(){super(),this[MB]=new Krt,this[Nn]=[],this[TB]=0;let e=this;this[a7]=a(function(r,i){let n=e[MB],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[TB]--,s=!this.dispatch(o.opts,o.handler)}this[Ji]=s,!this[Ji]&&e[Ji]&&(e[Ji]=!1,e.emit("drain",r,[e,...i])),e[s7]&&n.isEmpty()&&Promise.all(e[Nn].map(o=>o.close())).then(e[s7])},"onDrain"),this[lhe]=(A,r)=>{e.emit("connect",A,[e,...r])},this[dhe]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[uhe]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[phe]=new nit(this)}get[$rt](){return this[Ji]}get[n7](){return this[Nn].filter(e=>e[n7]).length}get[eit](){return this[Nn].filter(e=>e[n7]&&!e[Ji]).length}get[che](){let e=this[TB];for(let{[che]:A}of this[Nn])e+=A;return e}get[ohe](){let e=0;for(let{[ohe]:A}of this[Nn])e+=A;return e}get[ahe](){let e=this[TB];for(let{[ahe]:A}of this[Nn])e+=A;return e}get stats(){return this[phe]}async[Ait](){return this[MB].isEmpty()?Promise.all(this[Nn].map(e=>e.close())):new Promise(e=>{this[s7]=e})}async[rit](e){for(;;){let A=this[MB].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[Nn].map(A=>A.destroy(e)))}[iit](e,A){let r=this[o7]();return r?r.dispatch(e,A)||(r[Ji]=!0,this[Ji]=!this[o7]()):(this[Ji]=!0,this[MB].push({opts:e,handler:A}),this[TB]++),!this[Ji]}[ghe](e){return e.on("drain",this[a7]).on("connect",this[lhe]).on("disconnect",this[dhe]).on("connectionError",this[uhe]),this[Nn].push(e),this[Ji]&&process.nextTick(()=>{this[Ji]&&this[a7](e[tit],[this,e])}),this}[hhe](e){e.close(()=>{let A=this[Nn].indexOf(e);A!==-1&&this[Nn].splice(A,1)}),this[Ji]=this[Nn].some(A=>!A[Ji]&&A.closed!==!0&&A.destroyed!==!0)}};Ehe.exports={PoolBase:c7,kClients:Nn,kNeedDrain:Ji,kAddClient:ghe,kRemoveClient:hhe,kGetDispatcher:o7}});var Bm=E((CDt,Qhe)=>{"use strict";var{PoolBase:sit,kClients:mhe,kNeedDrain:ait,kAddClient:oit,kGetDispatcher:cit}=l7(),lit=UB(),{InvalidArgumentError:d7}=tA(),u7=gt(),{kUrl:Che,kInterceptors:dit}=BA(),uit=RB(),p7=Symbol("options"),g7=Symbol("connections"),fhe=Symbol("factory");function pit(t,e){return new lit(t,e)}a(pit,"defaultFactory");var h7=class extends sit{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=pit,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new d7("invalid connections");if(typeof r!="function")throw new d7("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new d7("connect must be a function or an object");typeof i!="function"&&(i=uit({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n??1e4,...u7.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[dit]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[g7]=A||null
Line truncated
|
||||
${r.count} ${r.noun} ${r.is} pending:
|
||||
|
||||
${e.format(A)}
|
||||
`.trim())}};KEe.exports=$7});var nme=E((c4t,ime)=>{"use strict";var{kProxy:gst,kClose:hst,kDestroy:Est,kInterceptors:mst}=BA(),{URL:eme}=require("url"),tme=OB(),Cst=Bm(),fst=NB(),{InvalidArgumentError:YB,RequestAbortedError:Qst}=tA(),Ame=RB(),HB=Symbol("proxy agent"),eD=Symbol("proxy client"),tD=Symbol("proxy headers"),eM=Symbol("request tls settings"),Bst=Symbol("proxy tls settings"),rme=Symbol("connect endpoint function");function Ist(t){return t==="https:"?443:80}a(Ist,"defaultProtocolPort");function yst(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new YB("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(yst,"buildProxyOptions");function wst(t,e){return new Cst(t,e)}a(wst,"defaultFactory");var tM=class extends fst{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[gst]=yst(e),this[HB]=new tme(e),this[mst]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new YB("Proxy opts.uri is mandatory");let{clientFactory:A=wst}=e;if(typeof A!="function")throw new YB("Proxy opts.clientFactory must be a function.");if(this[eM]=e.requestTls,this[Bst]=e.proxyTls,this[tD]=e.headers||{},e.auth&&e.token)throw new YB("opts.auth cannot be used in combination with opts.token");e.auth?this[tD]["proxy-authorization"]=`Basic ${e.auth}`:e.token&&(this[tD]["proxy-authorization"]=e.token);let r=new eme(e.uri),{origin:i,port:n,host:s}=r,o=Ame({...e.proxyTls});this[rme]=Ame({...e.requestTls}),this[eD]=A(r,{connect:o}),this[HB]=new tme({...e,connect:async(c,l)=>{let d=c.host;c.port||(d+=`:${Ist(c.protocol)}`);try{let{socket:u,statusCode:p}=await this[eD].connect({origin:i,port:n,path:d,signal:c.signal,headers:{...this[tD],host:s}});if(p!==200&&(u.on("error",()=>{}).destroy(),l(new Qst("Proxy response !== 200 when HTTP Tunneling"))),c.protocol!=="https:"){l(null,u);return}let g;this[eM]?g=this[eM].servername:g=c.servername,this[rme]({...c,servername:g,httpSocket:u},l)}catch(u){l(u)}}})}dispatch(e,A){let{host:r}=new eme(e.origin),i=bst(e.headers);return Nst(i),this[HB].dispatch({...e,headers:{...i,host:r}},A)}async[hst](){await this[HB].close(),await this[eD].close()}async[Est](){await this[HB].destroy(),await this[eD].destroy()}};function bst(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(bst,"buildHeaders");function Nst(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new YB("Proxy-Authorization should be sent in ProxyAgent constructor")}a(Nst,"throwIfProxyAuthIsSent");ime.exports=tM});var vm=E((d4t,cme)=>{"use strict";var sme=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Rst}=tA(),Dst=OB();ome()===void 0&&ame(new Dst);function ame(t){if(!t||typeof t.dispatch!="function")throw new Rst("Argument agent must implement Agent");Object.defineProperty(globalThis,sme,{value:t,writable:!0,enumerable:!1,configurable:!1})}a(ame,"setGlobalDispatcher");function ome(){return globalThis[sme]}a(ome,"getGlobalDispatcher");cme.exports={setGlobalDispatcher:ame,getGlobalDispatcher:ome}});var dme=E((g4t,lme)=>{"use strict";lme.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 Qp=E((E4t,hme)=>{"use strict";var{kHeadersList:Rn}=BA(),{kGuard:fp}=zc(),{kEnumerableProperty:Go}=gt(),{makeIterator:AM,isValidHeaderName:GB,isValidHeaderValue:ume}=aa(),{webidl:Ke}=Yi(),Sst=require("assert"),Dn=Symbol("headers map"),Sn=Symbol("headers map sorted");function pme(t){let e=t.length;for(;/[\r\n\t ]/.test(t.charAt(--e)););return t.slice(0,e+1).replace(/^[\r\n\t ]+/,"")}a(pme,"headerValueNormalize");function gme(t,e){if(Array.isArray(e))for(let A of e){if(A.length!==2)throw Ke.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});t.append(A[0],A[1])}else if(typeof e=="object"&&e!==null)for(let[A,r]of Object.entries(e))t.append(A,r);else throw Ke.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}a(gme,"fill");var AD=class t{static{a(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[Dn]=new Map(e[Dn]),this[Sn]=e[Sn],this.cookies=e.cookies):(this[Dn]=new Map(e),this[Sn]=null)}contains(e){return e=e.toLowerCase(),this[Dn].has(e)}clear(){this[Dn].clear(),this[Sn]=null,this.cookies=null}append(e,A){this[Sn]=null;let r=e.toLowerCase(),i=this[Dn].get(r);if(i){let n=r==="cookie"?"; ":", ";this[Dn].set(r,{name:i.name,value:`${i.value}${n}${A}`})}else this[Dn].se
Line truncated
|
||||
|
||||
Error Code : ${s.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 ufe(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}pfe.debug(`ID token url is ${A}`);let r=yield t.getCall(A);return pfe.setSecret(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};Jm.OidcClient=WM});var ZM=E(kn=>{"use strict";var zM=kn&&kn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(kn,"__esModule",{value:!0});kn.summary=kn.markdownSummary=kn.SUMMARY_DOCS_URL=kn.SUMMARY_ENV_VAR=void 0;var hlt=require("os"),jM=require("fs"),{access:Elt,appendFile:mlt,writeFile:Clt}=jM.promises;kn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";kn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var XM=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return zM(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[kn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${kn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield Elt(e,jM.constants.R_OK|jM.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,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return zM(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?Clt:mlt)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return zM(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(hlt.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,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 r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},hfe=new XM;kn.markdownSummary=hfe;kn.summary=hfe});var Efe=E(Fn=>{"use strict";var flt=Fn&&Fn.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Qlt=Fn&&Fn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Blt=Fn&&Fn.__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)&&flt(e,t,A);return Qlt(e,t),e};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.toPlatformPath=Fn.toWin32Path=Fn.toPosixPath=void 0;var Ilt=Blt(require("path"));function ylt(t){return t.replace(/[\\]/g,"/")}a(ylt,"toPosixPath");Fn.toPosixPath=ylt;function wlt(t){return t.replace(/[/]/g,"\\")}a(wlt,"toWin32Path");Fn.toWin32Path=wlt;function blt(t){return t.replace(/[/\\]/g,Ilt.sep)}a(blt,"toPlatformPath");Fn.toPlatformPath=blt});var rI=E(ue=>{"use strict";var Nlt=ue&&ue.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){Line truncated
|
||||
`).filter(r=>r!=="");return e&&e.trimWhitespace===!1?A:A.map(r=>r.trim())}a(Flt,"getMultilineInput");ue.getMultilineInput=Flt;function Llt(t,e){let A=["true","True","TRUE"],r=["false","False","FALSE"],i=KM(t,e);if(A.includes(i))return!0;if(r.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(Llt,"getBooleanInput");ue.getBooleanInput=Llt;function Ult(t,e){if(process.env.GITHUB_OUTPUT||"")return Np.issueFileCommand("OUTPUT",Np.prepareKeyValueMessage(t,e));process.stdout.write(ffe.EOL),ga.issueCommand("set-output",{name:t},Vm.toCommandValue(e))}a(Ult,"setOutput");ue.setOutput=Ult;function Tlt(t){ga.issue("echo",t?"on":"off")}a(Tlt,"setCommandEcho");ue.setCommandEcho=Tlt;function Mlt(t){process.exitCode=Qfe.Failure,Bfe(t)}a(Mlt,"setFailed");ue.setFailed=Mlt;function _lt(){return process.env.RUNNER_DEBUG==="1"}a(_lt,"isDebug");ue.isDebug=_lt;function Olt(t){ga.issueCommand("debug",{},t)}a(Olt,"debug");ue.debug=Olt;function Bfe(t,e={}){ga.issueCommand("error",Vm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(Bfe,"error");ue.error=Bfe;function Plt(t,e={}){ga.issueCommand("warning",Vm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(Plt,"warning");ue.warning=Plt;function qlt(t,e={}){ga.issueCommand("notice",Vm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(qlt,"notice");ue.notice=qlt;function Hlt(t){process.stdout.write(t+ffe.EOL)}a(Hlt,"info");ue.info=Hlt;function Ife(t){ga.issue("group",t)}a(Ife,"startGroup");ue.startGroup=Ife;function yfe(){ga.issue("endgroup")}a(yfe,"endGroup");ue.endGroup=yfe;function Ylt(t,e){return Cfe(this,void 0,void 0,function*(){Ife(t);let A;try{A=yield e()}finally{yfe()}return A})}a(Ylt,"group");ue.group=Ylt;function Glt(t,e){if(process.env.GITHUB_STATE||"")return Np.issueFileCommand("STATE",Np.prepareKeyValueMessage(t,e));ga.issueCommand("save-state",{name:t},Vm.toCommandValue(e))}a(Glt,"saveState");ue.saveState=Glt;function Jlt(t){return process.env[`STATE_${t}`]||""}a(Jlt,"getState");ue.getState=Jlt;function Vlt(t){return Cfe(this,void 0,void 0,function*(){return yield Slt.OidcClient.getIDToken(t)})}a(Vlt,"getIDToken");ue.getIDToken=Vlt;var Wlt=ZM();Object.defineProperty(ue,"summary",{enumerable:!0,get:function(){return Wlt.summary}});var zlt=ZM();Object.defineProperty(ue,"markdownSummary",{enumerable:!0,get:function(){return zlt.markdownSummary}});var $M=Efe();Object.defineProperty(ue,"toPosixPath",{enumerable:!0,get:function(){return $M.toPosixPath}});Object.defineProperty(ue,"toWin32Path",{enumerable:!0,get:function(){return $M.toWin32Path}});Object.defineProperty(ue,"toPlatformPath",{enumerable:!0,get:function(){return $M.toPlatformPath}})});var Nfe=E((Ri,t_)=>{"use strict";var jlt=Ri&&Ri.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Xlt=Ri&&Ri.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Zlt=Ri&&Ri.__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)&&jlt(e,t,A);return Xlt(e,t),e},Klt=Ri&&Ri.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(Ri,"__esModule",{value:!0});Ri._readLinuxVersionFile=Ri._getOsVersion=Ri._findMatch=void 0;var wfe=Zlt(u2()),e_=rI(),bfe=require("os"),$lt=require("child_process"),GD=require("fs");function edt(t,e,A,r){return Klt(this,void 0,void 0,function*(){let i=bfe.platform(),n,s,o;for(let c of A){let l=c.version;if(e_.debug(`check ${l} satisfies ${t}`),wfe.satisfies(l,t)&&(!e||c.stable===e)&&(o=c.files.find(d=>{e_.debug(`${d.arch}===${r} && ${d.platform}===${i}`);let u=d.arch===r&&d.platform===i;if(u&&d.platform_version){let p=t_.exports._getOsVersion();p===d.platform_version?u=!0:u=wfe.satisfies(p,d.platform_version)}return u}),o)){e_.debug(`matched ${c.version}`),s=c;break}}return s&&o&&(n=Object.assign({},s),n.files=[o]),n})}a(edt,"_findMatch");Ri._findMatch=edt;function tdt(){let t=bfe.platform(),e="";if(t==="darwin")e=$lt.execSync("sw_vers -productVersion").toString();else if(t==="linux"){let A=t_.exports._readLinuxVersionFile();if(A){let r=A.split(`
|
||||
`);for(let i of r){let n=i.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){e=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}a(tdt,"_getOsVersion");Ri._getOsVersion=tdt;function Adt(){let t="/etc/lsb-release",e="/etc/os-release",A="";return GD.existsSync(t)?A=GD.readFileSync(t).toString():GD.existsSync(e)&&(A=GD.readFileSync(e).toString()),A}a(Adt,"_readLinuxVersionFile");Ri._readLinuxVersionFile=Adt});var Dfe=E((I6t,Rfe)=>{var rdt=require("crypto");Rfe.exports=a(function(){return rdt.randomBytes(16)},"nodeRNG")});var vfe=E((w6t,xfe)=>{var Sfe=[];for(iI=0;iI<256;++iI)Sfe[iI]=(iI+256).toString(16).substr(1);var iI;function idt(t,e){var A=e||0,r=Sfe;return[r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]]].join("")}a(idt,"bytesToUuid");xfe.exports=idt});var Ffe=E((N6t,kfe)=>{var ndt=Dfe(),sdt=vfe();function adt(t,e,A){var r=e&&A||0;typeof t=="string"&&(e=t==="binary"?new Array(16):null,t=null),t=t||{};var i=t.random||(t.rng||ndt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e)for(var n=0;n<16;++n)e[r+n]=i[n];return e||sdt(i)}a(adt,"v4");kfe.exports=adt});var Tfe=E(ha=>{"use strict";var odt=ha&&ha.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),cdt=ha&&ha.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ldt=ha&&ha.__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)&&odt(e,t,A);return cdt(e,t),e},Lfe=ha&&ha.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(ha,"__esModule",{value:!0});ha.RetryHelper=void 0;var Ufe=ldt(rI()),A_=class{static{a(this,"RetryHelper")}constructor(e,A,r){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(A),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,A){return Lfe(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{return yield e()}catch(n){if(A&&!A(n))throw n;Ufe.info(n.message)}let i=this.getSleepAmount();Ufe.info(`Waiting ${i} seconds before trying again`),yield this.sleep(i),r++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Lfe(this,void 0,void 0,function*(){return new Promise(A=>setTimeout(A,e*1e3))})}};ha.RetryHelper=A_});var Gfe=E(je=>{"use strict";var ddt=je&&je.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),udt=je&&je.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),zo=je&&je.__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)&&ddt(e,t,A);return udt(e,t),e},ji=je&&je.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})},pdt=je&&je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(je,"__esModule",{value:!0});je.evaluateVersions=je.isExplicitVersion=je.findFromManifest=je.getManifestFromRepo=je.findAllVersions=je.find=je.cacheFile=je.cacheDir=je.extractZip=je.extractXar=je.extractTar=je.extract7z=je.downloadTool=je.HTTPError=void 0;var mt=zo(rI()),Is=zo(YC()),Ea=zo(require("fs")),gdt=zo(Nfe()),sI=zo(require("os")),Ja=zo(require("path")),Mfe=zo(HM()),sl=zo(u2()),hdt=zo(require("stream")),Edt=zo(require("util")),Wm=require("assert"),_fe=pdt(Ffe()),Td=Rg(),mdt=Tfe(),nI=class extends Error{static{a(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};je.HTTPError=nI;var i_=process.platform==="win32",Cdt=process.platform==="darwin",fdt="actions/tool-cache";function Qdt(t,e,A,r){return ji(this,void 0,void 0,function*(){e=e||Ja.join(Yfe(),_fe
Line truncated
|
||||
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(t){return t>=CHAR_0&&t<=CHAR_9}a(isDigit,"isDigit");function isHexit(t){return t>=CHAR_A&&t<=CHAR_F||t>=CHAR_a&&t<=CHAR_f||t>=CHAR_0&&t<=CHAR_9}a(isHexit,"isHexit");function isBit(t){return t===CHAR_1||t===CHAR_0}a(isBit,"isBit");function isOctit(t){return t>=CHAR_0&&t<=CHAR_7}a(isOctit,"isOctit");function isAlphaNumQuoteHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_APOS||t===CHAR_QUOT||t===CHAR_LOWBAR||t===CHAR_HYPHEN}a(isAlphaNumQuoteHyphen,"isAlphaNumQuoteHyphen");function isAlphaNumHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_LOWBAR||t===CHAR_HYPHEN}a(isAlphaNumHyphen,"isAlphaNumHyphen");var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(t,e){return hasOwnProperty.call(t,e)?!0:(e==="__proto__"&&defineProperty(t,"__proto__",descriptor),!1)}a(hasKey,"hasKey");var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}a(InlineTable,"InlineTable");function isInlineTable(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_TABLE}a(isInlineTable,"isInlineTable");var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}a(Table,"Table");function isTable(t){return t===null||typeof t!="object"?!1:t[_type]===TABLE}a(isTable,"isTable");var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(t){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:t}})}a(InlineList,"InlineList");function isInlineList(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_LIST}a(isInlineList,"isInlineList");var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}a(List,"List");function isList(t){return t===null||typeof t!="object"?!1:t[_type]===LIST}a(isList,"isList");var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(t){}var _inspect=_custom||"inspect",BoxedBigInt=class{static{a(this,"BoxedBigInt")}constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(t){let e=Number(t);return Object.is(e,-0)&&(e=0),global.BigInt&&!Number.isSafeInteger(e)?new BoxedBigInt(t):Object.defineProperties(new Number(e),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${t}]`}})}a(Integer,"Integer");function isInteger(t){return t===null||typeof t!="object"?!1:t[_type]===INTEGER}a(isInteger,"isInteger");var FLOAT=Symbol("float");function Float(t){return Object.defineProperties(new Number(t),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${t}]`}})}a(Float,"Float");function isFloat(t){return t===null||typeof t!="object"?!1:t[_type]===FLOAT}a(isFloat,"isFloat");function tomlType(t){let e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Date)return"datetime";if(_type in t)switch(t[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return e}a(tomlType,"tomlType");function makeParserClass(t){class e extends t{static{a(this,"TOMLParser")}constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===t.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===t.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===t.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(r){let i=this.ctx,n=r.key.pop();for(let s of r.key){if(hasKey(i,s)&&(!isTable(i[s])||i[s][_declared]))throw this.error(new TomlError("Can'
Line truncated
|
||||
`,e&&e.split){let r=e.split(/\n/),i=String(Math.min(r.length,t.line+3)).length,n=" ";for(;n.length<i;)n+=" ";for(let s=Math.max(0,t.line-1);s<Math.min(r.length,t.line+2);++s){let o=String(s+1);if(o.length<i&&(o=" "+o),t.line===s){A+=o+"> "+r[s]+`
|
||||
`,A+=n+" ";for(let c=0;c<t.col;++c)A+=" ";A+=`^
|
||||
`}else A+=o+": "+r[s]+`
|
||||
`}}return t.message=A+`
|
||||
`,t}a(Udt,"prettyError")});var nQe=E((J6t,iQe)=>{"use strict";iQe.exports=_dt;var Tdt=XD(),Mdt=ZD();function _dt(t){global.Buffer&&global.Buffer.isBuffer(t)&&(t=t.toString("utf8"));let e=new Tdt;try{return e.parse(t),e.finish()}catch(A){throw Mdt(A,t)}}a(_dt,"parseString")});var oQe=E((W6t,aQe)=>{"use strict";aQe.exports=Pdt;var Odt=XD(),sQe=ZD();function Pdt(t,e){e||(e={});let A=0,r=e.blocksize||40960,i=new Odt;return new Promise((s,o)=>{setImmediate(n,A,r,s,o)});function n(s,o,c,l){if(s>=t.length)try{return c(i.finish())}catch(d){return l(sQe(d,t))}try{i.parse(t.slice(s,s+o)),setImmediate(n,s+o,o,c,l)}catch(d){l(sQe(d,t))}}}a(Pdt,"parseAsync")});var dQe=E((j6t,lQe)=>{"use strict";lQe.exports=Hdt;var qdt=require("stream"),cQe=XD();function Hdt(t){return t?Ydt(t):Gdt(t)}a(Hdt,"parseStream");function Ydt(t){let e=new cQe;return t.setEncoding("utf8"),new Promise((A,r)=>{let i,n=!1,s=!1;function o(){if(n=!0,!i)try{A(e.finish())}catch(d){r(d)}}a(o,"finish");function c(d){s=!0,r(d)}a(c,"error"),t.once("end",o),t.once("error",c),l();function l(){i=!0;let d;for(;(d=t.read())!==null;)try{e.parse(d)}catch(u){return c(u)}if(i=!1,n)return o();s||t.once("readable",l)}a(l,"readNext")})}a(Ydt,"parseReadable");function Gdt(){let t=new cQe;return new qdt.Transform({objectMode:!0,transform(e,A,r){try{t.parse(e.toString(A))}catch(i){this.emit("error",i)}r()},flush(e){try{this.push(t.finish())}catch(A){this.emit("error",A)}e()}})}a(Gdt,"parseTransform")});var uQe=E((Z6t,oI)=>{"use strict";oI.exports=nQe();oI.exports.async=oQe();oI.exports.stream=dQe();oI.exports.prettyError=ZD()});var QQe=E((K6t,d_)=>{"use strict";d_.exports=Jdt;d_.exports.value=l_;function Jdt(t){if(t===null)throw Dp("null");if(t===void 0)throw Dp("undefined");if(typeof t!="object")throw Dp(typeof t);if(typeof t.toJSON=="function"&&(t=t.toJSON()),t==null)return null;let e=Ln(t);if(e!=="table")throw Dp(e);return c_("","",t)}a(Jdt,"stringify");function Dp(t){return new Error("Can only stringify objects, not "+t)}a(Dp,"typeError");function Vdt(){return new Error("Array values can't have mixed types")}a(Vdt,"arrayOneTypeError");function pQe(t){return Object.keys(t).filter(e=>gQe(t[e]))}a(pQe,"getInlineKeys");function Wdt(t){return Object.keys(t).filter(e=>!gQe(t[e]))}a(Wdt,"getComplexKeys");function KD(t){let e=Array.isArray(t)?[]:Object.prototype.hasOwnProperty.call(t,"__proto__")?{["__proto__"]:void 0}:{};for(let A of Object.keys(t))t[A]&&typeof t[A].toJSON=="function"&&!("toISOString"in t[A])?e[A]=t[A].toJSON():e[A]=t[A];return e}a(KD,"toJSON");function c_(t,e,A){A=KD(A);var r,i;r=pQe(A),i=Wdt(A);var n=[],s=e||"";r.forEach(c=>{var l=Ln(A[c]);l!=="undefined"&&l!=="null"&&n.push(s+$D(c)+" = "+mQe(A[c],!0))}),n.length>0&&n.push("");var o=t&&r.length>0?e+" ":"";return i.forEach(c=>{n.push(iut(t,o,c,A[c]))}),n.join(`
|
||||
`)}a(c_,"stringifyObject");function gQe(t){switch(Ln(t)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return t.length===0||Ln(t[0])!=="table";case"table":return Object.keys(t).length===0;default:return!1}}a(gQe,"isInline");function Ln(t){return t===void 0?"undefined":t===null?"null":typeof t=="bigint"||Number.isInteger(t)&&!Object.is(t,-0)?"integer":typeof t=="number"?"float":typeof t=="boolean"?"boolean":typeof t=="string"?"string":"toISOString"in t?isNaN(t)?"undefined":"datetime":Array.isArray(t)?"array":"table"}a(Ln,"tomlType");function $D(t){var e=String(t);return/^[-A-Za-z0-9_]+$/.test(e)?e:hQe(e)}a($D,"stringifyKey");function hQe(t){return'"'+EQe(t).replace(/"/g,'\\"')+'"'}a(hQe,"stringifyBasicString");function zdt(t){return"'"+t+"'"}a(zdt,"stringifyLiteralString");function jdt(t,e){for(;e.length<t;)e="0"+e;return e}a(jdt,"numpad");function EQe(t){return t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+jdt(4,e.codePointAt(0).toString(16)))}a(EQe,"escapeString");function Xdt(t){let e=t.split(/\n/).map(A=>EQe(A).replace(/"(?="")/g,'\\"')).join(`
|
||||
`);return e.slice(-1)==='"'&&(e+=`\\
|
||||
`),`"""
|
||||
`+e+'"""'}o(mF,"stringifyMultilineString");function T_(t,e){let a=oa(t);return a==="string"&&(e&&/\n/.test(t)?a="string-multiline":!/[\b\t\n\f\r']/.test(t)&&/"/.test(t)&&(a="string-literal")),m6(t,a)}o(T_,"stringifyAnyInline");function m6(t,e){switch(e||(e=oa(t)),e){case"string-multiline":return mF(t);case"string":return C_(t);case"string-literal":return cF(t);case"integer":return O_(t);case"float":return fF(t);case"boolean":return hF(t);case"datetime":return gF(t);case"array":return xF(t.filter(a=>oa(a)!=="null"&&oa(a)!=="undefined"&&oa(a)!=="nan"));case"table":return bF(t);default:throw fn(e)}}o(m6,"stringifyInline");function O_(t){return String(t).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}o(O_,"stringifyInteger");function fF(t){if(t===1/0)return"inf";if(t===-1/0)return"-inf";if(Object.is(t,NaN))return"nan";if(Object.is(t,-0))return"-0.0";var e=String(t).split("."),a=e[0],i=e[1]||0;return O_(a)+"."+i}o(fF,"stringifyFloat");function hF(t){return String(t)}o(hF,"stringifyBoolean");function gF(t){return t.toISOString()}o(gF,"stringifyDatetime");function yF(t){return t==="float"||t==="integer"}o(yF,"isNumber");function vF(t){var e=oa(t[0]);return t.every(a=>oa(a)===e)?e:t.every(a=>yF(oa(a)))?"float":"mixed"}o(vF,"arrayType");function R_(t){let e=vF(t);if(e==="mixed")throw lF();return e}o(R_,"validateArray");function xF(t){t=Lu(t);let e=R_(t);var a="[",i=t.map(r=>m6(r,e));return i.join(", ").length>60||/\n/.test(i)?a+=`
|
||||
`+i.join(`,
|
||||
`+e+'"""'}a(Xdt,"stringifyMultilineString");function mQe(t,e){let A=Ln(t);return A==="string"&&(e&&/\n/.test(t)?A="string-multiline":!/[\b\t\n\f\r']/.test(t)&&/"/.test(t)&&(A="string-literal")),l_(t,A)}a(mQe,"stringifyAnyInline");function l_(t,e){switch(e||(e=Ln(t)),e){case"string-multiline":return Xdt(t);case"string":return hQe(t);case"string-literal":return zdt(t);case"integer":return CQe(t);case"float":return Zdt(t);case"boolean":return Kdt(t);case"datetime":return $dt(t);case"array":return Aut(t.filter(A=>Ln(A)!=="null"&&Ln(A)!=="undefined"&&Ln(A)!=="nan"));case"table":return rut(t);default:throw Dp(e)}}a(l_,"stringifyInline");function CQe(t){return String(t).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}a(CQe,"stringifyInteger");function Zdt(t){if(t===1/0)return"inf";if(t===-1/0)return"-inf";if(Object.is(t,NaN))return"nan";if(Object.is(t,-0))return"-0.0";var e=String(t).split("."),A=e[0],r=e[1]||0;return CQe(A)+"."+r}a(Zdt,"stringifyFloat");function Kdt(t){return String(t)}a(Kdt,"stringifyBoolean");function $dt(t){return t.toISOString()}a($dt,"stringifyDatetime");function eut(t){return t==="float"||t==="integer"}a(eut,"isNumber");function tut(t){var e=Ln(t[0]);return t.every(A=>Ln(A)===e)?e:t.every(A=>eut(Ln(A)))?"float":"mixed"}a(tut,"arrayType");function fQe(t){let e=tut(t);if(e==="mixed")throw Vdt();return e}a(fQe,"validateArray");function Aut(t){t=KD(t);let e=fQe(t);var A="[",r=t.map(i=>l_(i,e));return r.join(", ").length>60||/\n/.test(r)?A+=`
|
||||
`+r.join(`,
|
||||
`)+`
|
||||
`:a+=" "+i.join(", ")+(i.length>0?" ":""),a+"]"}o(xF,"stringifyInlineArray");function bF(t){t=Lu(t);var e=[];return Object.keys(t).forEach(a=>{e.push(qu(a)+" = "+T_(t[a],!1))}),"{ "+e.join(", ")+(e.length>0?" ":"")+"}"}o(bF,"stringifyInlineTable");function wF(t,e,a,i){var r=oa(i);if(r==="array")return NF(t,e,a,i);if(r==="table")return _F(t,e,a,i);throw fn(r)}o(wF,"stringifyComplex");function NF(t,e,a,i){i=Lu(i),R_(i);var r=oa(i[0]);if(r!=="table")throw fn(r);var n=t+qu(a),s="";return i.forEach(p=>{s.length>0&&(s+=`
|
||||
`:A+=" "+r.join(", ")+(r.length>0?" ":""),A+"]"}a(Aut,"stringifyInlineArray");function rut(t){t=KD(t);var e=[];return Object.keys(t).forEach(A=>{e.push($D(A)+" = "+mQe(t[A],!1))}),"{ "+e.join(", ")+(e.length>0?" ":"")+"}"}a(rut,"stringifyInlineTable");function iut(t,e,A,r){var i=Ln(r);if(i==="array")return nut(t,e,A,r);if(i==="table")return sut(t,e,A,r);throw Dp(i)}a(iut,"stringifyComplex");function nut(t,e,A,r){r=KD(r),fQe(r);var i=Ln(r[0]);if(i!=="table")throw Dp(i);var n=t+$D(A),s="";return r.forEach(o=>{s.length>0&&(s+=`
|
||||
`),s+=e+"[["+n+`]]
|
||||
`,s+=u6(n+".",e,p)}),s}o(NF,"stringifyArrayOfTables");function _F(t,e,a,i){var r=t+qu(a),n="";return __(i).length>0&&(n+=e+"["+r+`]
|
||||
`),n+u6(r+".",e,i)}o(_F,"stringifyComplexTable")});var I_=E(h6=>{"use strict";h6.parse=N_();h6.stringify=P_()});var V_=require("node:os"),Lt=ya(rt());var L_=require("node:crypto"),q_=require("node:os"),eo=require("node:path"),bi=require("node:fs"),hn=ya(rt()),ju=ya(AN()),Hp=ya(e_()),v6=ya(_n());var Ys=require("node:fs"),g6=ya(rt()),zu=ya(I_());function D_(t,e){if(!e.length)return;let a=0;if(e.forEach(n=>{try{new URL(n.url)}catch{throw new Error(`Invalid registry URL: ${n.url}`)}n.scope||a++}),a>1)throw new Error("You can't have more than one global registry.");(0,g6.info)(`Writing bunfig.toml to '${t}'.`);let i={};if((0,Ys.existsSync)(t))try{let n=(0,Ys.readFileSync)(t,{encoding:"utf-8"});i=(0,zu.parse)(n)}catch(n){(0,g6.info)(`Error reading existing bunfig: ${n.message}`),i={}}i.install=i?.install||{},i.install.scopes=i?.install.scopes||{};let r=e.find(n=>!n.scope);r&&(i.install.registry={url:r.url,...r.token?{token:r.token}:{}});for(let n of e)if(n.scope){let s=n.scope.startsWith("@")?n.scope.toLowerCase():`@${n.scope.toLowerCase()}`;i.install.scopes[s]={url:n.url,...n.token?{token:n.token}:{}}}Object.keys(i.install.scopes).length===0&&delete i.install.scopes,(0,Ys.writeFileSync)(t,(0,zu.stringify)(i),{encoding:"utf8"})}o(D_,"writeBunfig");var z_=ya(rt());var Js=ya(rt()),A_=require("node:console"),Zs=require("node:fs"),ku=require("node:path");function y6(t,e,a=1e4){return t().catch(i=>{if(e<=0)throw i;return new Promise(r=>setTimeout(r,a)).then(()=>y6(t,e-1,a))})}o(y6,"retry");function B_(t,e){return t.endsWith(e)?t:((0,Zs.renameSync)(t,t+e),t+e)}o(B_,"addExtension");var SF={"package.json":t=>{let e=JSON.parse(t);return e.packageManager?.split("bun@")?.[1]??e.engines?.bun},".tool-versions":t=>t.match(/^bun\s*(?<version>.*?)$/m)?.groups?.version,".bumrc":t=>t,".bun-version":t=>t};function M_(t){let e=process.env.GITHUB_WORKSPACE;if(!e||!t)return;(0,Js.debug)(`Reading version from ${t}`);let a=(0,ku.resolve)(e,t),i=(0,ku.basename)(t);if(!(0,Zs.existsSync)(a)){(0,Js.warning)(`File ${a} not found`);return}let r=SF[i]??(()=>{}),n;try{if(n=r((0,Zs.readFileSync)(a,"utf8"))?.trim(),!n){(0,Js.warning)(`Failed to read version from ${t}`);return}}catch(s){let{message:p}=s;(0,Js.warning)(`Failed to read ${t}: ${p}`)}finally{if(n)return(0,A_.info)(`Obtained version ${n} from ${t}`),n}}o(M_,"readVersionFromFile");var k_=require("node:process");var j_=o(async t=>{let e=(0,eo.join)((0,k_.cwd)(),"bunfig.toml");D_(e,t.registries);let a=TF(t),i=EF(t),r=(0,eo.join)((0,q_.homedir)(),".bun","bin");try{(0,bi.mkdirSync)(r,{recursive:!0})}catch(u){if(u.code!=="EEXIST")throw u}(0,hn.addPath)(r);let n=o(u=>process.platform==="win32"?`${u}.exe`:u,"exe"),s=(0,eo.join)(r,n("bun"));try{(0,bi.symlinkSync)(s,(0,eo.join)(r,n("bunx")))}catch(u){if(u.code!=="EEXIST")throw u}let p,l=!1;if(i){let u=(0,L_.createHash)("sha1").update(a).digest("base64");await(0,ju.restoreCache)([s],u)&&(p=await H_(s),p?(l=!0,(0,hn.info)(`Using a cached version of Bun: ${p}`)):(0,hn.warning)(`Found a cached version of Bun: ${p} (but it appears to be corrupted?)`))}if(l||((0,hn.info)(`Downloading a new version of Bun: ${a}`),p=await y6(async()=>await CF(a,s),3)),!p)throw new Error("Downloaded a new version of Bun, but failed to check its version? Try again.");let[d]=p.split("+");return(0,z_.saveState)("cache",JSON.stringify({cacheEnabled:i,cacheHit:l,bunPath:s,url:a})),{version:d,revision:p,bunPath:s,url:a,cacheHit:l}},"default");async function CF(t,e){let a=B_(await(0,Hp.downloadTool)(t),".zip"),i=await(0,Hp.extractZip)(a),r=await x6(i);try{(0,bi.renameSync)(r,e)}catch{(0,bi.copyFileSync)(r,e)}return await H_(e)}o(CF,"downloadBun");function EF(t){let{customUrl:e,version:a,noCache:i}=t;return i||e||!a||/latest|canary|action/i.test(a)?!1:(0,ju.isFeatureAvailable)()}o(EF,"isCacheEnabled");function TF(t){let{customUrl:e}=t;if(e)return e;let{version:a,os:i,arch:r,avx2:n,profile:s}=t,p=encodeURIComponent(a??"latest"),l=encodeURIComponent(i??process.platform),d=encodeURIComponent(r??process.arch),c=encodeURIComponent(n??!0),u=encodeURIComponent(s??!1),{href:m}=new URL(`${p}/${l}/${d}?avx2=${c}&profile=${u}`,"https://bun.sh/download/");return m}o(TF,"getDownloadUrl");async function x6(t){for(let e of(0,bi.readdirSync)(t,{withFileTypes:!0})){let{name:a}=e,i=(0,eo.join)(t,a);if(e.isFile()){if(a==="bun"||a==="bun.exe")return i;if(/^bun.*\.zip/.test(a)){let r=await(0,Hp.extractZip)(i);return x6(r)}}if(/^bun/.test(a)&&e.isDirectory())return x6(i)}throw new Error("Could not find executable: bun")}o(x6,"extractBun");async function H_(t){let e=await(0,v6.getExecOutput)(t,["--revision"],{ignoreReturnCode:!0});if(e.exitCode===0&&/^\d+\.\d+\.\d+/.test(e.stdout))return e.stdout.trim();let a=await(0,v6.getExecOutput)(t,["--version"],{ignoreReturnCode:!0});if(a.exitCode===0&&/^\d+\.\d+\.\d+/.test(a.stdout))return a.stdout.trim()}o(H_,"getRevision");function U_(t){return t?.trim()?t.split(`
|
||||
`).map(e=>e.trim()).filter(Boolean).map(OF).filter(Boolean):[]}o(U_,"parseRegistries");function OF(t){let e=t.match(/^(@[a-z0-9-_.]+|[a-z0-9-_.]+(?=:[a-z]+:\/\/)):(.+)$/i);if(e){let a=e[1],i=e[2].trim(),[r,n]=i.split("|",2).map(s=>s?.trim());try{return new URL(r),{url:r,scope:a,...n&&{token:n}}}catch{throw new Error(`Invalid URL in registry configuration: ${r}`)}}else{let[a,i]=t.split("|",2).map(r=>r?.trim());try{return new URL(a),{url:a,scope:"",...i&&{token:i}}}catch{throw new Error(`Invalid URL in registry configuration: ${a}`)}}}o(OF,"parseLine");process.env.RUNNER_TEMP||(process.env.RUNNER_TEMP=(0,V_.tmpdir)());var $_=U_((0,Lt.getInput)("registries")),F_=(0,Lt.getInput)("registry-url"),RF=(0,Lt.getInput)("scope");F_&&$_.push({url:F_,scope:RF,token:"$BUN_AUTH_TOKEN"});j_({version:(0,Lt.getInput)("bun-version")||M_((0,Lt.getInput)("bun-version-file"))||void 0,customUrl:(0,Lt.getInput)("bun-download-url")||void 0,registries:$_,noCache:(0,Lt.getBooleanInput)("no-cache")||!1}).then(({version:t,revision:e,bunPath:a,url:i,cacheHit:r})=>{(0,Lt.setOutput)("bun-version",t),(0,Lt.setOutput)("bun-revision",e),(0,Lt.setOutput)("bun-path",a),(0,Lt.setOutput)("bun-download-url",i),(0,Lt.setOutput)("cache-hit",r),process.exit(0)}).catch(t=>{(0,Lt.setFailed)(t),process.exit(1)});
|
||||
`,s+=c_(n+".",e,o)}),s}a(nut,"stringifyArrayOfTables");function sut(t,e,A,r){var i=t+$D(A),n="";return pQe(r).length>0&&(n+=e+"["+i+`]
|
||||
`),n+c_(i+".",e,r)}a(sut,"stringifyComplexTable")});var BQe=E(u_=>{"use strict";u_.parse=uQe();u_.stringify=QQe()});var LQe=require("node:os"),li=Nr(hi());var NQe=require("node:crypto"),RQe=require("node:os"),Km=require("node:path"),jo=require("node:fs"),Sp=Nr(hi()),A4=Nr(pue()),cI=Nr(Gfe()),h_=Nr(Rg());var jm=require("node:fs"),p_=Nr(hi()),e4=Nr(BQe());function IQe(t,e){if(!e.length)return;let A=0;if(e.forEach(n=>{try{new URL(n.url)}catch{throw new Error(`Invalid registry URL: ${n.url}`)}n.scope||A++}),A>1)throw new Error("You can't have more than one global registry.");(0,p_.info)(`Writing bunfig.toml to '${t}'.`);let r={};if((0,jm.existsSync)(t))try{let n=(0,jm.readFileSync)(t,{encoding:"utf-8"});r=(0,e4.parse)(n)}catch(n){(0,p_.info)(`Error reading existing bunfig: ${n.message}`),r={}}r.install=r?.install||{},r.install.scopes=r?.install.scopes||{};let i=e.find(n=>!n.scope);i&&(r.install.registry={url:i.url,...i.token?{token:i.token}:{}});for(let n of e)if(n.scope){let s=n.scope.startsWith("@")?n.scope.toLowerCase():`@${n.scope.toLowerCase()}`;r.install.scopes[s]={url:n.url,...n.token?{token:n.token}:{}}}Object.keys(r.install.scopes).length===0&&delete r.install.scopes,(0,jm.writeFileSync)(t,(0,e4.stringify)(r),{encoding:"utf8"})}a(IQe,"writeBunfig");var DQe=Nr(hi());var Xm=Nr(hi()),yQe=require("node:console"),Zm=require("node:fs"),t4=require("node:path");function g_(t,e,A=1e4){return t().catch(r=>{if(e<=0)throw r;return new Promise(i=>setTimeout(i,A)).then(()=>g_(t,e-1,A))})}a(g_,"retry");function wQe(t,e){return t.endsWith(e)?t:((0,Zm.renameSync)(t,t+e),t+e)}a(wQe,"addExtension");var aut={"package.json":t=>{let e=JSON.parse(t);return e.packageManager?.split("bun@")?.[1]??e.engines?.bun},".tool-versions":t=>t.match(/^bun\s*(?<version>.*?)$/m)?.groups?.version,".bumrc":t=>t,".bun-version":t=>t};function bQe(t){let e=process.env.GITHUB_WORKSPACE;if(!e||!t)return;(0,Xm.debug)(`Reading version from ${t}`);let A=(0,t4.resolve)(e,t),r=(0,t4.basename)(t);if(!(0,Zm.existsSync)(A)){(0,Xm.warning)(`File ${A} not found`);return}let i=aut[r]??(()=>{}),n;try{if(n=i((0,Zm.readFileSync)(A,"utf8"))?.trim(),!n){(0,Xm.warning)(`Failed to read version from ${t}`);return}}catch(s){let{message:o}=s;(0,Xm.warning)(`Failed to read ${t}: ${o}`)}finally{if(n)return(0,yQe.info)(`Obtained version ${n} from ${t}`),n}}a(bQe,"readVersionFromFile");var SQe=require("node:process");var xQe=a(async t=>{let e=(0,Km.join)((0,SQe.cwd)(),"bunfig.toml");IQe(e,t.registries);let A=lut(t),r=cut(t),i=(0,Km.join)((0,RQe.homedir)(),".bun","bin");try{(0,jo.mkdirSync)(i,{recursive:!0})}catch(u){if(u.code!=="EEXIST")throw u}(0,Sp.addPath)(i);let n=a(u=>process.platform==="win32"?`${u}.exe`:u,"exe"),s=(0,Km.join)(i,n("bun"));try{(0,jo.symlinkSync)(s,(0,Km.join)(i,n("bunx")))}catch(u){if(u.code!=="EEXIST")throw u}let o,c=!1;if(r){let u=(0,NQe.createHash)("sha1").update(A).digest("base64");await(0,A4.restoreCache)([s],u)&&(o=await vQe(s),o?(c=!0,(0,Sp.info)(`Using a cached version of Bun: ${o}`)):(0,Sp.warning)(`Found a cached version of Bun: ${o} (but it appears to be corrupted?)`))}if(c||((0,Sp.info)(`Downloading a new version of Bun: ${A}`),o=await g_(async()=>await out(A,s),3)),!o)throw new Error("Downloaded a new version of Bun, but failed to check its version? Try again.");let[l]=o.split("+");return(0,DQe.saveState)("cache",JSON.stringify({cacheEnabled:r,cacheHit:c,bunPath:s,url:A})),{version:l,revision:o,bunPath:s,url:A,cacheHit:c}},"default");async function out(t,e){let A=wQe(await(0,cI.downloadTool)(t),".zip"),r=await(0,cI.extractZip)(A),i=await E_(r);try{(0,jo.renameSync)(i,e)}catch{(0,jo.copyFileSync)(i,e)}return await vQe(e)}a(out,"downloadBun");function cut(t){let{customUrl:e,version:A,noCache:r}=t;return r||e||!A||/latest|canary|action/i.test(A)?!1:(0,A4.isFeatureAvailable)()}a(cut,"isCacheEnabled");function lut(t){let{customUrl:e}=t;if(e)return e;let{version:A,os:r,arch:i,avx2:n,profile:s}=t,o=encodeURIComponent(A??"latest"),c=encodeURIComponent(r??process.platform),l=encodeURIComponent(i??process.arch),d=encodeURIComponent(n??!0),u=encodeURIComponent(s??!1),{href:p}=new URL(`${o}/${c}/${l}?avx2=${d}&profile=${u}`,"https://bun.sh/download/");return p}a(lut,"getDownloadUrl");async function E_(t){for(let e of(0,jo.readdirSync)(t,{withFileTypes:!0})){let{name:A}=e,r=(0,Km.join)(t,A);if(e.isFile()){if(A==="bun"||A==="bun.exe")return r;if(/^bun.*\.zip/.test(A)){let i=await(0,cI.extractZip)(r);return E_(i)}}if(/^bun/.test(A)&&e.isDirectory())return E_(r)}throw new Error("Could not find executable: bun")}a(E_,"extractBun");async function vQe(t){let e=await(0,h_.getExecOutput)(t,["--revision"],{ignoreReturnCode:!0});if(e.exitCode===0&&/^\d+\.\d+\.\d+/.test(e.stdout))return e.stdout.trim();let A=await(0,h_.getExecOutput)(t,["--version"],{ignoreReturnCode:!0});if(A.exitCode===0&&/^\d+\.\d+\.\d+/.test(A.stdout))return A.stdout.trim()}a(vQe,"getRevision");function kQe(t){return t?.trim()?t.split(`
|
||||
`).map(e=>e.trim()).filter(Boolean).map(dut).filter(Boolean):[]}a(kQe,"parseRegistries");function dut(t){let e=t.match(/^(@[a-z0-9-_.]+|[a-z0-9-_.]+(?=:[a-z]+:\/\/)):(.+)$/i);if(e){let A=e[1],r=e[2].trim(),[i,n]=r.split("|",2).map(s=>s?.trim());try{return new URL(i),{url:i,scope:A,...n&&{token:n}}}catch{throw new Error(`Invalid URL in registry configuration: ${i}`)}}else{let[A,r]=t.split("|",2).map(i=>i?.trim());try{return new URL(A),{url:A,scope:"",...r&&{token:r}}}catch{throw new Error(`Invalid URL in registry configuration: ${A}`)}}}a(dut,"parseLine");process.env.RUNNER_TEMP||(process.env.RUNNER_TEMP=(0,LQe.tmpdir)());var UQe=kQe((0,li.getInput)("registries")),FQe=(0,li.getInput)("registry-url"),uut=(0,li.getInput)("scope");FQe&&UQe.push({url:FQe,scope:uut,token:"$BUN_AUTH_TOKEN"});xQe({version:(0,li.getInput)("bun-version")||bQe((0,li.getInput)("bun-version-file"))||void 0,customUrl:(0,li.getInput)("bun-download-url")||void 0,registries:UQe,noCache:(0,li.getBooleanInput)("no-cache")||!1}).then(({version:t,revision:e,bunPath:A,url:r,cacheHit:i})=>{(0,li.setOutput)("bun-version",t),(0,li.setOutput)("bun-revision",e),(0,li.setOutput)("bun-path",A),(0,li.setOutput)("bun-download-url",r),(0,li.setOutput)("cache-hit",i),process.exit(0)}).catch(t=>{(0,li.setFailed)(t),process.exit(1)});
|
||||
/*! 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 *)
|
||||
|
||||
@@ -88,4 +264,10 @@ mime-types/index.js:
|
||||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||||
* MIT Licensed
|
||||
*)
|
||||
|
||||
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> *)
|
||||
*/
|
||||
Reference in new issue
Block a user