Compare commits

..
Author SHA1 Message Date
github-actions[bot] c01669bccd [dependabot skip] chore: update generated content 2026-11-11 23:24:55 +00:00
dependabot[bot] 0f00b2979c build(deps): bump fast-xml-parser from 5.7.1 to 5.12.0
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 5.7.1 to 5.12.0.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v5.7.1...v5.12.0)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-version: 5.12.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-11-11 23:23:58 +00:00
CrazyMax 3f1ab1ab0e Merge pull request #357 from docker/dependabot/github_actions/docker/bake-action-7.5.0
build(deps): bump docker/bake-action from 7.4.0 to 7.5.0
2026-11-05 15:45:43 +01:00
CrazyMax 4d59497d0d Merge pull request #354 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.108.0
build(deps): bump @docker/actions-toolkit from 0.107.0 to 0.109.0
2026-11-05 15:45:22 +01:00
CrazyMax ce5ffadc20 ci: enable embedded containerd on Windows
Signed-off-by: CrazyMax <[email protected]>
2026-11-05 15:31:45 +01:00
github-actions[bot] 0e00f9aa8a [dependabot skip] chore: update generated content 2026-11-05 13:44:14 +00:00
dependabot[bot] b9ea3f3d86 build(deps): bump @docker/actions-toolkit from 0.107.0 to 0.109.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.107.0 to 0.109.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.107.0...v0.109.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.108.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-11-05 13:43:22 +00:00
6 changed files with 192 additions and 146 deletions

No files matched your search

+2 -1
View File
@@ -92,7 +92,8 @@ jobs:
{
"debug": true,
"features": {
"containerd-snapshotter": true
"containerd-snapshotter": true,
"embedded-containerd": ${{ runner.os == 'Windows' }}
}
}
Generated Vendored
+100 -94
View File
@@ -1,79 +1,79 @@
var jZ=Object.create;var ph=Object.defineProperty;var KZ=Object.getOwnPropertyDescriptor;var XZ=Object.getOwnPropertyNames;var ZZ=Object.getPrototypeOf,e7=Object.prototype.hasOwnProperty;var o=(t,e)=>ph(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),t7=(t,e)=>{for(var r in e)ph(t,r,{get:e[r],enumerable:!0})},r7=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of XZ(e))!e7.call(t,n)&&n!==r&&ph(t,n,{get:()=>e[n],enumerable:!(s=KZ(e,n))||s.enumerable});return t};var w=(t,e,r)=>(r=t!=null?jZ(ZZ(t)):{},r7(e||!t||!t.__esModule?ph(r,"default",{value:t,enumerable:!0}):r,t));var pL=g(rl=>{"use strict";var LOe=require("net"),c7=require("tls"),rw=require("http"),uL=require("https"),l7=require("events"),MOe=require("assert"),u7=require("util");rl.httpOverHttp=A7;rl.httpsOverHttp=d7;rl.httpOverHttps=p7;rl.httpsOverHttps=m7;function A7(t){var e=new Oi(t);return e.request=rw.request,e}o(A7,"httpOverHttp");function d7(t){var e=new Oi(t);return e.request=rw.request,e.createSocket=AL,e.defaultPort=443,e}o(d7,"httpsOverHttp");function p7(t){var e=new Oi(t);return e.request=uL.request,e}o(p7,"httpOverHttps");function m7(t){var e=new Oi(t);return e.request=uL.request,e.createSocket=AL,e.defaultPort=443,e}o(m7,"httpsOverHttps");function Oi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||rw.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=dL(n,i,a),l=0,u=e.requests.length;l<u;++l){var A=e.requests[l];if(A.host===c.host&&A.port===c.port){e.requests.splice(l,1),A.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Oi,"TunnelingAgent");u7.inherits(Oi,l7.EventEmitter);Oi.prototype.addRequest=o(function(e,r,s,n){var i=this,a=sw({request:e},i.options,dL(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(A){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Oi.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=sw({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),xo("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",A),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,p,m){process.nextTick(function(){u(d,p,m)})}o(l,"onUpgrade");function u(d,p,m){if(a.removeAllListeners(),p.removeAllListeners(),d.statusCode!==200){xo("tunneling socket could not be established, statusCode=%d",d.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}if(m.length>0){xo("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}return xo("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function A(d){a.removeAllListeners(),xo(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var p=new Error("tunneling socket could not be established, cause="+d.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(A,"onError")},"createSocket");Oi.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}},"removeSocket");function AL(t,e){var r=this;Oi.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=sw({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=c7.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(AL,"createSecureSocket");function dL(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(dL,"toOptions");function sw(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,a=n.length;i<a;++i){var c=n[i];s[c]!==void 0&&(t[c]=s[c])}}return t}o(sw,"mergeOptions");var xo;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?xo=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"):xo=o(function(){},"debug");rl.debug=xo});var PA=g((UOe,mL)=>{mL.exports=pL()});var $e=g((qOe,hL)=>{hL.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var we=g((GOe,UL)=>{"use strict";var fL=Symbol.for("undici.error.UND_ERR"),Ve=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[fL]===!0}[fL]=!0},gL=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),nw=class extends Ve{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[gL]===!0}[gL]=!0},EL=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),iw=class extends Ve{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[EL]===!0}[EL]=!0},yL=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),ow=class extends Ve{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[yL]===!0}[yL]=!0},CL=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aw=class extends Ve{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"} Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(eO,"isValidHeaderValue");function vte(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let a=s[i-1].trim();if(hte.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(vte,"setRequestReferrerPolicyOnRedirect");function Pte(){return"allowed"}o(Pte,"crossOriginResourcePolicyCheck");function kte(){return"success"}o(kte,"corsCheck");function Dte(){return"success"}o(Dte,"TAOCheck");function _te(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(_te,"appendFetchMetadata");function Lte(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&Zw(t.origin)&&!Zw(GA(t))&&(e=null);break;case"same-origin":Oh(t,GA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Lte,"appendRequestOriginHeader");function dl(t,e){return t}o(dl,"coarsenTime");function Mte(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:dl(t.domainLookupStartTime,r),domainLookupEndTime:dl(t.domainLookupEndTime,r),connectionStartTime:dl(t.connectionStartTime,r),connectionEndTime:dl(t.connectionEndTime,r),secureConnectionStartTime:dl(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Mte,"clampAndCoarsenConnectionTimingInfo");function Ote(t){return dl(Cte.now(),t)}o(Ote,"coarsenedSharedCurrentTime");function Fte(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(Fte,"createOpaqueTimingInfo");function tO(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(tO,"makePolicyContainer");function Ute(t){return{referrerPolicy:t.referrerPolicy}}o(Ute,"clonePolicyContainer");function qte(t){let e=t.referrerPolicy;Sa(e);let r=null;if(t.referrer==="client"){let c=WM();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=Xw(r),n=Xw(r,!0);s.toString().length>4096&&(s=n);let i=Oh(t,s),a=qA(s)&&!qA(t.url);switch(e){case"origin":return n??Xw(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let c=GA(t);return Oh(s,c)?s:qA(s)&&!qA(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(qte,"determineRequestsReferrer");function Xw(t,e){return Sa(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(Xw,"stripURLForReferrer");function qA(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 s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}o(qA,"isURLPotentiallyTrustworthy");function Gte(t,e){if(Mh===void 0)return!0;let r=rO(e);if(r==="no metadata"||r.length===0)return!0;let s=zte(r),n=$te(r,s);for(let i of n){let a=i.algo,c=i.hash,l=Mh.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),Vte(l,c))return!0}return!1}o(Gte,"bytesMatch");var Hte=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function rO(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Hte.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();KM.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(rO,"parseMetadata");function zte(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}o(zte,"getStrongestMetadata");function $te(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}o($te,"filterMetadataListByAlgorithm");function Vte(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(Vte,"compareBase64Mixed");function Yte(t){}o(Yte,"tryUpgradeReque Line truncated
`);function Rre(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(Rre,"isAsciiString");function Tre(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}o(Tre,"validateBoundary");function vre(t,e){Uh(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&qh(t,Nre,i)||i.position===t.length-4&&qh(t,Sre,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=Pre(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:A,encoding:d}=c;i.position+=2;let p;{let h=t.indexOf(s.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,d==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let m;u!==null?(A??="text/plain",Rre(A)||(A=""),m=new xre([p],u,{type:A})):m=Cre(Buffer.from(p)),Uh(hO(l)),Uh(typeof m=="string"&&hO(m)||Bre(m)),n.push(wre(l,m,u))}}o(vre,"multipartFormDataParser");function Pre(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let a=ml(c=>c!==10&&c!==13&&c!==58,t,e);if(a=ob(a,!0,!0,c=>c===9||c===32),!Ire.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,ml(c=>c===32||c===9,t,e),yre(a)){case"content-disposition":{if(r=s=null,!qh(t,Qre,e)||(e.position+=17,r=EO(t,e),r===null))return"failure";if(qh(t,gO,e)){let c=e.position+gO.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=EO(t,e),s===null))return"failure"}break}case"content-type":{let c=ml(l=>l!==10&&l!==13,t,e);c=ob(c,!1,!0,l=>l===9||l===32),n=fO(c);break}case"content-transfer-encoding":{let c=ml(l=>l!==10&&l!==13,t,e);c=ob(c,!1,!0,l=>l===9||l===32),i=fO(c);break}default:ml(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(Pre,"parseMultipartFormDataHeaders");function EO(t,e){Uh(t[e.position-1]===34);let r=ml(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(EO,"parseMultipartFormDataName");function ml(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(ml,"collectASequenceOfBytes");function ob(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}o(ob,"removeChars");function qh(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}o(qh,"bufferStartsWith");yO.exports={multipartFormDataParser:vre,validateBoundary:Tre}});var gl=g((SFe,TO)=>{"use strict";var $A=pe(),{ReadableStreamFrom:kre,isBlobLike:IO,isReadableStreamLike:Dre,readableStreamClose:_re,createDeferredPromise:Lre,fullyReadBody:Mre,extractMimeType:Ore,utf8DecodeBytes:bO}=ts(),{FormData:BO}=zA(),{kState:fl}=Qo(),{webidl:Fre}=Kt(),{Blob:Ure}=require("node:buffer"),ab=require("node:assert"),{isErrored:xO,isDisturbed:qre}=require("node:stream"),{isArrayBuffer:Gre}=require("node:util/types"),{serializeAMimeType:Hre}=kr(),{multipartFormDataParser:zre}=CO(),cb;try{let t=require("node:crypto");cb=o(e=>t.randomInt(0,e),"random")}catch{cb=o(t=>Math.floor(Math.random(t)),"random")}var Gh=new TextEncoder;function $re(){}o($re,"noop");var QO=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,NO;QO&&(NO=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!qre(e)&&!xO(e)&&e.cancel("Response object has been garbage collected").catch($re)}));function SO(t,e=!1){let r=null;t instanceof ReadableStream?r=t:IO(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?Gh.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>_re(l))},start(){},type:"bytes"}),ab(Dre(r));let s=null,n=null,i=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(Gre(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($A.isFormDataLike(t)){let l=`----formdata-undici-0${`${cb(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let A=o(C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),d=o(C=>C.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=[],m=new Uint8Array([13,10]);i=0;let h=!1;for(let[C,E]of t)if(typeof E=="string"){let y=Gh.encode(u+`; name="${A(d(C))}"\r
var D7=Object.create;var xh=Object.defineProperty;var _7=Object.getOwnPropertyDescriptor;var L7=Object.getOwnPropertyNames;var M7=Object.getPrototypeOf,O7=Object.prototype.hasOwnProperty;var o=(t,e)=>xh(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),F7=(t,e)=>{for(var r in e)xh(t,r,{get:e[r],enumerable:!0})},U7=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of L7(e))!O7.call(t,n)&&n!==r&&xh(t,n,{get:()=>e[n],enumerable:!(s=_7(e,n))||s.enumerable});return t};var w=(t,e,r)=>(r=t!=null?D7(M7(t)):{},U7(e||!t||!t.__esModule?xh(r,"default",{value:t,enumerable:!0}):r,t));var qL=g(ll=>{"use strict";var YFe=require("net"),V7=require("tls"),hw=require("http"),OL=require("https"),Y7=require("events"),JFe=require("assert"),J7=require("util");ll.httpOverHttp=W7;ll.httpsOverHttp=j7;ll.httpOverHttps=K7;ll.httpsOverHttps=X7;function W7(t){var e=new qi(t);return e.request=hw.request,e}o(W7,"httpOverHttp");function j7(t){var e=new qi(t);return e.request=hw.request,e.createSocket=FL,e.defaultPort=443,e}o(j7,"httpsOverHttp");function K7(t){var e=new qi(t);return e.request=OL.request,e}o(K7,"httpOverHttps");function X7(t){var e=new qi(t);return e.request=OL.request,e.createSocket=FL,e.defaultPort=443,e}o(X7,"httpsOverHttps");function qi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||hw.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=UL(n,i,a),l=0,u=e.requests.length;l<u;++l){var A=e.requests[l];if(A.host===c.host&&A.port===c.port){e.requests.splice(l,1),A.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(qi,"TunnelingAgent");J7.inherits(qi,Y7.EventEmitter);qi.prototype.addRequest=o(function(e,r,s,n){var i=this,a=fw({request:e},i.options,UL(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(A){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");qi.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=fw({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),So("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",A),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,p,m){process.nextTick(function(){u(d,p,m)})}o(l,"onUpgrade");function u(d,p,m){if(a.removeAllListeners(),p.removeAllListeners(),d.statusCode!==200){So("tunneling socket could not be established, statusCode=%d",d.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}if(m.length>0){So("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}return So("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function A(d){a.removeAllListeners(),So(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var p=new Error("tunneling socket could not be established, cause="+d.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(A,"onError")},"createSocket");qi.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}},"removeSocket");function FL(t,e){var r=this;qi.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=fw({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=V7.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(FL,"createSecureSocket");function UL(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(UL,"toOptions");function fw(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,a=n.length;i<a;++i){var c=n[i];s[c]!==void 0&&(t[c]=s[c])}}return t}o(fw,"mergeOptions");var So;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?So=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"):So=o(function(){},"debug");ll.debug=So});var UA=g((KFe,GL)=>{GL.exports=qL()});var Ve=g((XFe,HL)=>{HL.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var we=g((ZFe,mM)=>{"use strict";var zL=Symbol.for("undici.error.UND_ERR"),Ye=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[zL]===!0}[zL]=!0},$L=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),gw=class extends Ye{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[$L]===!0}[$L]=!0},VL=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),Ew=class extends Ye{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[VL]===!0}[VL]=!0},YL=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),yw=class extends Ye{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[YL]===!0}[YL]=!0},JL=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Cw=class extends Ye{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"} Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(SO,"isValidHeaderValue");function hre(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let a=s[i-1].trim();if(Zte.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(hre,"setRequestReferrerPolicyOnRedirect");function fre(){return"allowed"}o(fre,"crossOriginResourcePolicyCheck");function gre(){return"success"}o(gre,"corsCheck");function Ere(){return"success"}o(Ere,"TAOCheck");function yre(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(yre,"appendFetchMetadata");function Cre(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&db(t.origin)&&!db(jA(t))&&(e=null);break;case"same-origin":jh(t,jA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Cre,"appendRequestOriginHeader");function yl(t,e){return t}o(yl,"coarsenTime");function Ire(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:yl(t.domainLookupStartTime,r),domainLookupEndTime:yl(t.domainLookupEndTime,r),connectionStartTime:yl(t.connectionStartTime,r),connectionEndTime:yl(t.connectionEndTime,r),secureConnectionStartTime:yl(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Ire,"clampAndCoarsenConnectionTimingInfo");function Bre(t){return yl(nre.now(),t)}o(Bre,"coarsenedSharedCurrentTime");function wre(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(wre,"createOpaqueTimingInfo");function RO(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(RO,"makePolicyContainer");function bre(t){return{referrerPolicy:t.referrerPolicy}}o(bre,"clonePolicyContainer");function xre(t){let e=t.referrerPolicy;Ta(e);let r=null;if(t.referrer==="client"){let c=wO();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=Ab(r),n=Ab(r,!0);s.toString().length>4096&&(s=n);let i=jh(t,s),a=WA(s)&&!WA(t.url);switch(e){case"origin":return n??Ab(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let c=jA(t);return jh(s,c)?s:WA(s)&&!WA(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(xre,"determineRequestsReferrer");function Ab(t,e){return Ta(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(Ab,"stripURLForReferrer");function WA(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 s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}o(WA,"isURLPotentiallyTrustworthy");function Qre(t,e){if(Wh===void 0)return!0;let r=TO(e);if(r==="no metadata"||r.length===0)return!0;let s=Sre(r),n=Rre(r,s);for(let i of n){let a=i.algo,c=i.hash,l=Wh.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),Tre(l,c))return!0}return!1}o(Qre,"bytesMatch");var Nre=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function TO(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Nre.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();xO.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(TO,"parseMetadata");function Sre(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}o(Sre,"getStrongestMetadata");function Rre(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}o(Rre,"filterMetadataListByAlgorithm");function Tre(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(Tre,"compareBase64Mixed");function vre(t){}o(vre,"tryUpgradeReque Line truncated
`);function pse(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(pse,"isAsciiString");function mse(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}o(mse,"validateBoundary");function hse(t,e){Xh(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Zh(t,Ase,i)||i.position===t.length-4&&Zh(t,dse,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=fse(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:A,encoding:d}=c;i.position+=2;let p;{let h=t.indexOf(s.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,d==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let m;u!==null?(A??="text/plain",pse(A)||(A=""),m=new lse([p],u,{type:A})):m=nse(Buffer.from(p)),Xh(HO(l)),Xh(typeof m=="string"&&HO(m)||ose(m)),n.push(ase(l,m,u))}}o(hse,"multipartFormDataParser");function fse(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let a=Il(c=>c!==10&&c!==13&&c!==58,t,e);if(a=yb(a,!0,!0,c=>c===9||c===32),!ise.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Il(c=>c===32||c===9,t,e),sse(a)){case"content-disposition":{if(r=s=null,!Zh(t,use,e)||(e.position+=17,r=VO(t,e),r===null))return"failure";if(Zh(t,$O,e)){let c=e.position+$O.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=VO(t,e),s===null))return"failure"}break}case"content-type":{let c=Il(l=>l!==10&&l!==13,t,e);c=yb(c,!1,!0,l=>l===9||l===32),n=zO(c);break}case"content-transfer-encoding":{let c=Il(l=>l!==10&&l!==13,t,e);c=yb(c,!1,!0,l=>l===9||l===32),i=zO(c);break}default:Il(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(fse,"parseMultipartFormDataHeaders");function VO(t,e){Xh(t[e.position-1]===34);let r=Il(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(VO,"parseMultipartFormDataName");function Il(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(Il,"collectASequenceOfBytes");function yb(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}o(yb,"removeChars");function Zh(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}o(Zh,"bufferStartsWith");YO.exports={multipartFormDataParser:hse,validateBoundary:mse}});var bl=g((FUe,nF)=>{"use strict";var ZA=pe(),{ReadableStreamFrom:gse,isBlobLike:WO,isReadableStreamLike:Ese,readableStreamClose:yse,createDeferredPromise:Cse,fullyReadBody:Ise,extractMimeType:Bse,utf8DecodeBytes:XO}=rs(),{FormData:jO}=XA(),{kState:wl}=Ro(),{webidl:wse}=Kt(),{Blob:bse}=require("node:buffer"),Cb=require("node:assert"),{isErrored:ZO,isDisturbed:xse}=require("node:stream"),{isArrayBuffer:Qse}=require("node:util/types"),{serializeAMimeType:Nse}=kr(),{multipartFormDataParser:Sse}=JO(),Ib;try{let t=require("node:crypto");Ib=o(e=>t.randomInt(0,e),"random")}catch{Ib=o(t=>Math.floor(Math.random(t)),"random")}var ef=new TextEncoder;function Rse(){}o(Rse,"noop");var eF=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,tF;eF&&(tF=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!xse(e)&&!ZO(e)&&e.cancel("Response object has been garbage collected").catch(Rse)}));function rF(t,e=!1){let r=null;t instanceof ReadableStream?r=t:WO(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?ef.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>yse(l))},start(){},type:"bytes"}),Cb(Ese(r));let s=null,n=null,i=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(Qse(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(ZA.isFormDataLike(t)){let l=`----formdata-undici-0${`${Ib(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let A=o(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),d=o(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=[],m=new Uint8Array([13,10]);i=0;let h=!1;for(let[y,E]of t)if(typeof E=="string"){let C=ef.encode(u+`; name="${A(d(y))}"\r
\r
${d(E)}\r
`);p.push(y),i+=y.byteLength}else{let y=Gh.encode(`${u}; name="${A(d(C))}"`+(E.name?`; filename="${A(E.name)}"`:"")+`\r
`);p.push(C),i+=C.byteLength}else{let C=ef.encode(`${u}; name="${A(d(y))}"`+(E.name?`; filename="${A(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);p.push(y,E,m),typeof E.size=="number"?i+=y.byteLength+E.size+m.byteLength:h=!0}let f=Gh.encode(`--${l}--\r
`);p.push(f),i+=f.byteLength,h&&(i=null),n=t,s=o(async function*(){for(let C of p)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(IO(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if($A.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:kre(t)}if((typeof n=="string"||$A.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:A,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!xO(r)){let p=new Uint8Array(A);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(SO,"extractBody");function Vre(t,e=!1){return t instanceof ReadableStream&&(ab(!$A.isDisturbed(t),"The body has already been consumed."),ab(!t.locked,"The stream is locked.")),SO(t,e)}o(Vre,"safelyExtractBody");function Yre(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(Yre,"cloneBody");function Jre(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Jre,"throwIfAborted");function Wre(t){return{blob(){return hl(this,r=>{let s=wO(this);return s===null?s="":s&&(s=Hre(s)),new Ure([r],{type:s})},t)},arrayBuffer(){return hl(this,r=>new Uint8Array(r).buffer,t)},text(){return hl(this,bO,t)},json(){return hl(this,Kre,t)},formData(){return hl(this,r=>{let s=wO(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=zre(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new BO;return i[fl]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new BO;for(let[a,c]of n)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return hl(this,r=>new Uint8Array(r),t)}}}o(Wre,"bodyMixinMethods");function jre(t){Object.assign(t.prototype,Wre(t))}o(jre,"mixinBody");async function hl(t,e,r){if(Fre.brandCheck(t,r),RO(t))throw new TypeError("Body is unusable: Body has already been read");Jre(t[fl]);let s=Lre(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[fl].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Mre(t[fl].body,i,n),s.promise)}o(hl,"consumeBody");function RO(t){let e=t[fl].body;return e!=null&&(e.stream.locked||$A.isDisturbed(e.stream))}o(RO,"bodyUnusable");function Kre(t){return JSON.parse(bO(t))}o(Kre,"parseJSONFromBytes");function wO(t){let e=t[fl].headersList,r=Ore(e);return r==="failure"?null:r}o(wO,"bodyMimeType");TO.exports={extractBody:SO,safelyExtractBody:Vre,cloneBody:Yre,mixinBody:jre,streamRegistry:NO,hasFinalizationRegistry:QO,bodyUnusable:RO}});var VO=g((TFe,$O)=>{"use strict";var X=require("node:assert"),Y=pe(),{channels:vO}=nl(),lb=zw(),{RequestContentLengthMismatchError:Ra,ResponseContentLengthMismatchError:PO,RequestAbortedError:UO,InvalidArgumentError:Xre,HeadersTimeoutError:Zre,HeadersOverflowError:ese,SocketError:El,InformationalError:Ta,BodyTimeoutError:tse,HTTPParserError:rse,ResponseExceededMaxSizeError:sse}=we(),{kUrl:qO,kReset:Dr,kClient:Vh,kParser:Fe,kBlocking:JA,kRunning:xt,kPending:GO,kSize:kO,kWriting:No,kQueue:cn,kNoRef:VA,kKeepAliveDefaultTimeout:nse,kHostHeader:ise,kPendingIdx:ose,kRunningIdx:Ns,kError:fr,kPipelining:Yh,kSocket:va,kKeepAliveTimeoutValue:Wh,kMaxHeadersSize:ub,kKeepAliveMaxTimeout:ase,kKeepAliveTimeoutThreshold:cse,kHeadersTimeout:lse,kBodyTimeout:use,kStrictContentLength:pb,kMaxRequests:DO,kCounter:Ase,kMaxResponseSize:dse,kOnError:_O,kResume:Hi,kHTTPContext:HO}=$e(),rs=NM(),LO=Buffer.alloc(0),Hh=Buffer[Symbol.species],zh=Y.addListener,pse=Y.removeAllListeners,Pa=Symbol("kIdleSocketValidation"),yl=Symbol("kIdleSocketValidationTimeout"),gb=Symbol("kSocketUsed"),Ab;async function mse(){let t=process.env.JEST_WORKER_ID?Yw():void 0,e;try{e=await WebAssembly.compile(TM())}catch{e=await WebAssembly.compile(t||Yw())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,n)=>0,"wasm_on_url"),wasm_on_status:o((r,s,n)=>{X(tt.ptr===r);let i=s-Fn+On.byteOffset;return tt.onStatus(new Hh(On.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(X(tt.ptr===r),tt.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{X(tt.ptr===r);let i=s-Fn+On.byteOffset;return tt.onHeaderField(new Hh(On.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{X(tt.ptr===r);let i=s-Fn+On.byteOffset;return tt.onHeaderValue(new Hh(On.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(X(tt.ptr===r),tt.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{X(tt.ptr===r);let i=s-Fn+On.byteOffset;return tt.onBo Line truncated
`);p.push(C,E,m),typeof E.size=="number"?i+=C.byteLength+E.size+m.byteLength:h=!0}let f=ef.encode(`--${l}--\r
`);p.push(f),i+=f.byteLength,h&&(i=null),n=t,s=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(WO(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(ZA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:gse(t)}if((typeof n=="string"||ZA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:A,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!ZO(r)){let p=new Uint8Array(A);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(rF,"extractBody");function Tse(t,e=!1){return t instanceof ReadableStream&&(Cb(!ZA.isDisturbed(t),"The body has already been consumed."),Cb(!t.locked,"The stream is locked.")),rF(t,e)}o(Tse,"safelyExtractBody");function vse(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(vse,"cloneBody");function Pse(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Pse,"throwIfAborted");function kse(t){return{blob(){return Bl(this,r=>{let s=KO(this);return s===null?s="":s&&(s=Nse(s)),new bse([r],{type:s})},t)},arrayBuffer(){return Bl(this,r=>new Uint8Array(r).buffer,t)},text(){return Bl(this,XO,t)},json(){return Bl(this,_se,t)},formData(){return Bl(this,r=>{let s=KO(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Sse(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new jO;return i[wl]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new jO;for(let[a,c]of n)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Bl(this,r=>new Uint8Array(r),t)}}}o(kse,"bodyMixinMethods");function Dse(t){Object.assign(t.prototype,kse(t))}o(Dse,"mixinBody");async function Bl(t,e,r){if(wse.brandCheck(t,r),sF(t))throw new TypeError("Body is unusable: Body has already been read");Pse(t[wl]);let s=Cse(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[wl].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Ise(t[wl].body,i,n),s.promise)}o(Bl,"consumeBody");function sF(t){let e=t[wl].body;return e!=null&&(e.stream.locked||ZA.isDisturbed(e.stream))}o(sF,"bodyUnusable");function _se(t){return JSON.parse(XO(t))}o(_se,"parseJSONFromBytes");function KO(t){let e=t[wl].headersList,r=Bse(e);return r==="failure"?null:r}o(KO,"bodyMimeType");nF.exports={extractBody:rF,safelyExtractBody:Tse,cloneBody:vse,mixinBody:Dse,streamRegistry:tF,hasFinalizationRegistry:eF,bodyUnusable:sF}});var CF=g((qUe,yF)=>{"use strict";var X=require("node:assert"),Y=pe(),{channels:iF}=Al(),Bb=sb(),{RequestContentLengthMismatchError:va,ResponseContentLengthMismatchError:oF,RequestAbortedError:mF,InvalidArgumentError:Lse,HeadersTimeoutError:Mse,HeadersOverflowError:Ose,SocketError:xl,InformationalError:Pa,BodyTimeoutError:Fse,HTTPParserError:Use,ResponseExceededMaxSizeError:qse}=we(),{kUrl:hF,kReset:Dr,kClient:nf,kParser:Ue,kBlocking:rd,kRunning:xt,kPending:fF,kSize:aF,kWriting:To,kQueue:un,kNoRef:ed,kKeepAliveDefaultTimeout:Gse,kHostHeader:Hse,kPendingIdx:zse,kRunningIdx:Rs,kError:gr,kPipelining:of,kSocket:ka,kKeepAliveTimeoutValue:cf,kMaxHeadersSize:wb,kKeepAliveMaxTimeout:$se,kKeepAliveTimeoutThreshold:Vse,kHeadersTimeout:Yse,kBodyTimeout:Jse,kStrictContentLength:Qb,kMaxRequests:cF,kCounter:Wse,kMaxResponseSize:jse,kOnError:lF,kResume:Vi,kHTTPContext:gF}=Ve(),ss=tO(),uF=Buffer.alloc(0),tf=Buffer[Symbol.species],rf=Y.addListener,Kse=Y.removeAllListeners,Da=Symbol("kIdleSocketValidation"),Ql=Symbol("kIdleSocketValidationTimeout"),Tb=Symbol("kSocketUsed"),bb;async function Xse(){let t=process.env.JEST_WORKER_ID?ob():void 0,e;try{e=await WebAssembly.compile(nO())}catch{e=await WebAssembly.compile(t||ob())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,n)=>0,"wasm_on_url"),wasm_on_status:o((r,s,n)=>{X(tt.ptr===r);let i=s-qn+Un.byteOffset;return tt.onStatus(new tf(Un.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(X(tt.ptr===r),tt.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{X(tt.ptr===r);let i=s-qn+Un.byteOffset;return tt.onHeaderField(new tf(Un.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{X(tt.ptr===r);let i=s-qn+Un.byteOffset;return tt.onHeaderValue(new tf(Un.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(X(tt.ptr===r),tt.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{X(tt.ptr===r);let i=s-qn+Un.byteOffset;return tt.onBo Line truncated
`;if(typeof n=="string"?f+=`host: ${n}\r
`:f+=t[ise],i?f+=`connection: upgrade\r
`:f+=t[Hse],i?f+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Yh]&&!m[Dr]?f+=`connection: keep-alive\r
`:t[of]&&!m[Dr]?f+=`connection: keep-alive\r
`:f+=`connection: close\r
`,Array.isArray(u))for(let C=0;C<u.length;C+=2){let E=u[C+0],y=u[C+1];if(Array.isArray(y))for(let I=0;I<y.length;I++)f+=`${E}: ${y[I]}\r
`;else f+=`${E}: ${y}\r
`}return vO.sendHeaders.hasSubscribers&&vO.sendHeaders.publish({request:e,headers:f,socket:m}),!l||p===0?OO(h,null,t,e,m,A,f,d):Y.isBuffer(l)?OO(h,l,t,e,m,A,f,d):Y.isBlobLike(l)?typeof l.stream=="function"?FO(h,l.stream(),t,e,m,A,f,d):Bse(h,l,t,e,m,A,f,d):Y.isStream(l)?Ise(h,l,t,e,m,A,f,d):Y.isIterable(l)?FO(h,l,t,e,m,A,f,d):X(!1),!0}o(Cse,"writeH1");function Ise(t,e,r,s,n,i,a,c){X(i!==0||r[xt]===0,"stream body cannot be pipelined");let l=!1,u=new jh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),A=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(f){Y.destroy(this,f)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new UO;queueMicrotask(()=>m(h))}},"onClose"),m=o(function(h){if(!l){if(l=!0,X(n.destroyed||n[No]&&r[xt]<=1),n.off("drain",d).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",p),!h)try{u.end()}catch(f){h=f}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?Y.destroy(e,h):Y.destroy(e)}},"onFinished");e.on("data",A).on("end",m).on("error",m).on("close",p),e.resume&&e.resume(),n.on("drain",d).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(Ise,"writeStream");function OO(t,e,r,s,n,i,a,c){try{e?Y.isBuffer(e)&&(X(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let E=u[y+0],C=u[y+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)f+=`${E}: ${C[I]}\r
`;else f+=`${E}: ${C}\r
`}return iF.sendHeaders.hasSubscribers&&iF.sendHeaders.publish({request:e,headers:f,socket:m}),!l||p===0?dF(h,null,t,e,m,A,f,d):Y.isBuffer(l)?dF(h,l,t,e,m,A,f,d):Y.isBlobLike(l)?typeof l.stream=="function"?pF(h,l.stream(),t,e,m,A,f,d):one(h,l,t,e,m,A,f,d):Y.isStream(l)?ine(h,l,t,e,m,A,f,d):Y.isIterable(l)?pF(h,l,t,e,m,A,f,d):X(!1),!0}o(nne,"writeH1");function ine(t,e,r,s,n,i,a,c){X(i!==0||r[xt]===0,"stream body cannot be pipelined");let l=!1,u=new lf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),A=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(f){Y.destroy(this,f)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new mF;queueMicrotask(()=>m(h))}},"onClose"),m=o(function(h){if(!l){if(l=!0,X(n.destroyed||n[To]&&r[xt]<=1),n.off("drain",d).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",p),!h)try{u.end()}catch(f){h=f}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?Y.destroy(e,h):Y.destroy(e)}},"onFinished");e.on("data",A).on("end",m).on("error",m).on("close",p),e.resume&&e.resume(),n.on("drain",d).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(ine,"writeStream");function dF(t,e,r,s,n,i,a,c){try{e?Y.isBuffer(e)&&(X(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!c&&s.reset!==!1&&(n[Dr]=!0)):i===0?n.write(`${a}content-length: 0\r
\r
`,"latin1"):(X(i===null,"no body must not have content length"),n.write(`${a}\r
`,"latin1")),s.onRequestSent(),r[Hi]()}catch(l){t(l)}}o(OO,"writeBuffer");async function Bse(t,e,r,s,n,i,a,c){X(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ra;let l=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
`,"latin1")),s.onRequestSent(),r[Vi]()}catch(l){t(l)}}o(dF,"writeBuffer");async function one(t,e,r,s,n,i,a,c){X(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new va;let l=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
\r
`,"latin1"),n.write(l),n.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(n[Dr]=!0),r[Hi]()}catch(l){t(l)}}o(Bse,"writeBlob");async function FO(t,e,r,s,n,i,a,c){X(i!==0||r[xt]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let A=o(()=>new Promise((p,m)=>{X(l===null),n[fr]?m(n[fr]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let d=new jh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[fr])throw n[fr];d.write(p)||await A()}d.end()}catch(p){d.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(FO,"writeIterable");var jh=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[No]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[fr])throw r[fr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[pb])throw new Ra;process.emitWarning(new Ra)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[Dr]=!0),n===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"),n.write(l),n.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(n[Dr]=!0),r[Vi]()}catch(l){t(l)}}o(one,"writeBlob");async function pF(t,e,r,s,n,i,a,c){X(i!==0||r[xt]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let A=o(()=>new Promise((p,m)=>{X(l===null),n[gr]?m(n[gr]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let d=new lf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[gr])throw n[gr];d.write(p)||await A()}d.end()}catch(p){d.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(pF,"writeIterable");var lf=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[To]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[gr])throw r[gr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[Qb])throw new va;process.emitWarning(new va)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[Dr]=!0),n===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let A=r.write(e);return r.uncork(),s.onBodySent(e),A||r[Fe].timeout&&r[Fe].timeoutType===Cl&&r[Fe].timeout.refresh&&r[Fe].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[No]=!1,e[fr])throw e[fr];if(!e.destroyed){if(n===0?i?e.write(`${a}content-length: 0\r
`,"latin1"),this.bytesWritten+=u;let A=r.write(e);return r.uncork(),s.onBodySent(e),A||r[Ue].timeout&&r[Ue].timeoutType===Nl&&r[Ue].timeout.refresh&&r[Ue].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[To]=!1,e[gr])throw e[gr];if(!e.destroyed){if(n===0?i?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(s[pb])throw new Ra;process.emitWarning(new Ra)}e[Fe].timeout&&e[Fe].timeoutType===Cl&&e[Fe].timeout.refresh&&e[Fe].timeout.refresh(),s[Hi]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[No]=!1,e&&(X(s[xt]<=1,"pipeline should only contain this request"),n(e))}};$O.exports=fse});var eF=g((PFe,ZO)=>{"use strict";var qn=require("node:assert"),{errorMonitor:Eb}=require("node:events"),{pipeline:wse}=require("node:stream"),he=pe(),{RequestContentLengthMismatchError:Cb,RequestAbortedError:yb,SocketError:WA,InformationalError:Kh}=we(),{kUrl:Xh,kReset:ef,kClient:Il,kRunning:tf,kPending:bse,kQueue:ka,kPendingIdx:Bb,kRunningIdx:Un,kError:un,kSocket:Gt,kStrictContentLength:xse,kOnError:wb,kMaxConcurrentStreams:KO,kHTTP2Session:ln,kResume:Ro,kSize:Qse,kHTTPContext:Nse}=$e(),So=Symbol("open streams"),YO,JO=!1,Zh;try{Zh=require("node:http2")}catch{Zh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Sse,HTTP2_HEADER_METHOD:Rse,HTTP2_HEADER_PATH:Tse,HTTP2_HEADER_SCHEME:vse,HTTP2_HEADER_CONTENT_LENGTH:Pse,HTTP2_HEADER_EXPECT:kse,HTTP2_HEADER_STATUS:Ib}}=Zh;function XO(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}o(XO,"parseH2Headers");function Dse(t){let{[Ib]:e,...r}=t;return XO(r)}o(Dse,"parseH2ResponseHeaders");async function _se(t,e){t[Gt]=e,JO||(JO=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Zh.connect(t[Xh],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[KO]});r[So]=0,r[Il]=t,r[Gt]=e,he.addListener(r,"error",Mse),he.addListener(r,"frameError",Ose),he.addListener(r,"end",Fse),he.addListener(r,"goaway",Use),he.addListener(r,"close",function(){let{[Il]:n}=this,{[Gt]:i}=n,a=this[Gt][un]||this[un]||new WA("closed",he.getSocketInfo(i));if(n[ln]=null,n.destroyed){qn(n[bse]===0);let c=n[ka].splice(n[Un]);for(let l=0;l<c.length;l++){let u=c[l];he.errorRequest(n,u,a)}}}),r.unref(),t[ln]=r,e[ln]=r,he.addListener(e,"error",function(n){this[un]=n,this[Il][wb](n)}),he.addListener(e,"end",function(){he.destroy(this,new WA("other side closed",he.getSocketInfo(this)))}),he.addListener(e,"close",function(){let n=this[un]||new WA("closed",he.getSocketInfo(this));t[Gt]=null,this[ln]!=null&&this[ln].destroy(n),t[Bb]=t[Un],qn(t[tf]===0),t.emit("disconnect",t[Xh],[t],n),t[Ro]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Gse(t,...n)},resume(){Lse(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(_se,"connectH2");function Lse(t){let e=t[Gt];e?.destroyed===!1&&(t[Qse]===0&&t[KO]===0?(e.unref(),t[ln].unref()):(e.ref(),t[ln].ref()))}o(Lse,"resumeH2");function Mse(t){this[Gt][un]=t,this[Il][wb](t)}o(Mse,"onHttp2SessionError");function Ose(t,e,r){if(r===0){let s=new Kh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Gt][un]=s,this[Il][wb](s)}}o(Ose,"onHttp2FrameError");function Fse(){let t=new WA("other side closed",he.getSocketInfo(this[Gt]));this.destroy(t),he.destroy(this[Gt],t)}o(Fse,"onHttp2SessionEnd");function Use(t){let e=this[un]||new WA(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this)),r=this[Il];if(r[Gt]=null,r[Nse]=null,this[ln]!=null&&(this[ln].destroy(e),this[ln]=null),he.destroy(this[Gt],e),r[Un]<r[ka].length){let s=r[ka][r[Un]];r[ka][r[Un]++]=null,he.errorRequest(r,s,e),r[Bb]=r[Un]}qn(r[tf]===0),r.emit("disconnect",r[Xh],[r],e),r[Ro]()}o(Use,"onHTTP2GoAway");function qse(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(qse,"shouldSendContentLength");function Gse(t,e){let r=t[ln],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:A}=e;if(a)return he.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<u.length;B+=2){let N=u[B+0],R=u[B+1];if(Array.isArray(R))for(let q=0;q<R.length;q++)d[N]?d[N]+=`,${R[q]}`:d[N]=R[q];else d[N]=R}let p,{hostname:m,port:h}=t[Xh];d[Sse]=i||`${m}${h?`:${h}`:""}`,d[Rse]=s;let f=o(B=>{if(!e.aborted){if(e.completed){s==="CONNECT"&&p!=null&&he.destroy(p,B||new yb);return}B=B||new yb,he.errorRequest(t,e,B),p!=null&&he.destroy(p,B),he.destroy(A,B),t[ka][t[Un]++]=null,t[Ro]()}},"abort");try{e.onConnect(f)}catch(B){he.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT"){r.ref(),p=r.request(d,{endStream:!1,signal:l});let B=!1,N=o(Ae=>{B=!0,p.off(Eb,R),e.onUpgradeResponse(Number(Ae[Ib]),Ae,Dse)},"onResponse"),R=o(Ae=>{B=!0,p.off("response",N),e.onUpgradeError(Ae)},"onUpgradeError"),q=o(()=>{try{e.onUpgrade(null,null,p)}catch(Ae){p.off("response",N),f(Ae);return}e.aborted||(p.off("error",f),p.once(Eb,R),t[ka][t[Un]++]=null)},"onReady");return p.once("response",N),p.once("error",f),++r[So],q(),p.once("close",()=>{!B&&e.completed&&(p.off("response",N),p.off(Eb,R),e.onUpgradeError(new Kh(`HTTP/2: "stream error"Line truncated
`,this[mne]=l??3e5,this[pne]=n??3e5,this[hne]=y??!0,this[fne]=B,this[Nb]=R,this[vo]=null,this[Ine]=Ae>-1?Ae:-1,this[wne]=_e??100,this[mt]=null,this[An]=[],this[$i]=0,this[dn]=0,this[ZA]=mr=>Rb(this,mr),this[Bne]=mr=>dF(this,mr)}get pipelining(){return this[of]}set pipelining(e){this[of]=e,this[ZA](!0)}get[rd](){return this[An].length-this[dn]}get[td](){return this[dn]-this[$i]}get[ed](){return this[An].length-this[$i]}get[one](){return!!this[mt]&&!this[wl]&&!this[mt].destroyed}get[Qb](){return!!(this[mt]?.busy(null)||this[ed]>=(AF(this)||1)||this[rd]>0)}[ine](e){pF(this),this.once("connect",e)}[Cne](e,r){let s=e.origin||this[Hn].origin,n=new Zse(s,e,r);return this[An].push(n),this[_a]||(Da.bodyLength(n.body)==null&&Da.isIterable(n.body)?(this[_a]=1,queueMicrotask(()=>Rb(this))):this[ZA](!0)),this[_a]&&this[Po]!==2&&this[Qb]&&(this[Po]=2),this[Po]<2}async[Ene](){return new Promise(e=>{this[ed]?this[vo]=e:e(null)})}async[yne](e){return new Promise(r=>{let s=this[An].splice(this[dn]);for(let i=0;i<s.length;i++){let a=s[i];Da.errorRequest(this,a,e)}let n=o(()=>{this[vo]&&(this[vo](),this[vo]=null),r(null)},"callback");this[mt]?(this[mt].destroy(e,n),this[mt]=null):queueMicrotask(n),this[ZA]()})}},Qne=nf();function dF(t,e){if(t[td]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){zi(t[dn]===t[$i]);let r=t[An].splice(t[$i]);for(let s=0;s<r.length;s++){let n=r[s];Da.errorRequest(t,n,e)}zi(t[ed]===0)}}o(dF,"onError");async function pF(t){zi(!t[wl]),zi(!t[mt]);let{host:e,hostname:r,protocol:s,port:n}=t[Hn];if(r[0]==="["){let i=r.indexOf("]");zi(i!==-1);let a=r.substring(1,i);zi(uF.isIP(a)),r=a}t[wl]=!0,Bl.beforeConnect.hasSubscribers&&Bl.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[To],localAddress:t[XA]},connector:t[KA]});try{let i=await new Promise((a,c)=>{t[KA]({host:e,hostname:r,protocol:s,port:n,servername:t[To],localAddress:t[XA]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Da.destroy(i.on("error",cF),new rne);return}zi(i);try{t[mt]=i.alpnProtocol==="h2"?await xne(t,i):await bne(t,i)}catch(a){throw i.destroy().on("error",cF),a}t[wl]=!1,i[gne]=0,i[Nb]=t[Nb],i[nne]=t,i[cne]=null,Bl.connected.hasSubscribers&&Bl.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[To],localAddress:t[XA]},connector:t[KA],socket:i}),t.emit("connect",t[Hn],[t])}catch(i){if(t.destroyed)return;if(t[wl]=!1,Bl.connectError.hasSubscribers&&Bl.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[To],localAddress:t[XA]},connector:t[KA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(zi(t[td]===0);t[rd]>0&&t[An][t[dn]].servername===t[To];){let a=t[An][t[dn]++];Da.errorRequest(t,a,i)}else dF(t,i);t.emit("connectionError",t[Hn],[t],i)}t[ZA]()}o(pF,"connect");function lF(t){t[Po]=0,t.emit("drain",t[Hn],[t])}o(lF,"emitDrain");function Rb(t,e){t[_a]!==2&&(t[_a]=2,Nne(t,e),t[_a]=0,t[$i]>256&&(t[An].splice(0,t[$i]),t[dn]-=t[$i],t[$i]=0))}o(Rb,"resume");function Nne(t,e){for(;;){if(t.destroyed){zi(t[rd]===0);return}if(t[vo]&&!t[ed]){t[vo](),t[vo]=null;return}if(t[mt]&&t[mt].resume(),t[Qb])t[Po]=2;else if(t[Po]===2){e?(t[Po]=1,queueMicrotask(()=>lF(t))):lF(t);continue}if(t[rd]===0||t[td]>=(AF(t)||1))return;let r=t[An][t[dn]];if(t[Hn].protocol==="https:"&&t[To]!==r.servername){if(t[td]>0)return;t[To]=r.servername,t[mt]?.destroy(new tne("servername changed"),()=>{t[mt]=null,Rb(t)})}if(t[wl])return;if(!t[mt]){pF(t);return}if(t[mt].destroyed||t[mt].busy(r))return;!r.aborted&&t[mt].write(r)?t[dn]++:t[An].splice(t[dn],1)}}o(Nne,"_resume");mF.exports=Sb});var Tb=g((qFe,hF)=>{"use strict";var af=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};hF.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new af}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new af),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var gF=g((HFe,fF)=>{var{kFree:Sne,kConnected:Rne,kPending:Tne,kQueued:vne,kRunning:Pne,kSize:kne}=$e(),La=Symbol("pool"),vb=class{static{o(this,"PoolStats")}constructor(e){this[La]=e}get connected(){return this[La][Rne]}get free(){return this[La][Sne]}get pending(){return this[La][Tne]}get queued(){return this[La][vne]}get running(){return this[La][Pne]}get size(){return this[La][kne]}};fF.exports=vb});var Mb=g(($Fe,NF)=>{"use strict";var Dne=cl(),_ne=Tb(),{kConnected:Pb,kSize:EF,kRunning:yF,kPending:CF,kQueued:sd,kBusy:Lne,kFree:Mne,kUrl:One,kClose:Fne,kDestroy:Une,kDispatch:qne}=$e(),Gne=gF(),_r=Symbol("cl Line truncated
`,"latin1"),r!==null&&n!==r){if(s[Qb])throw new va;process.emitWarning(new va)}e[Ue].timeout&&e[Ue].timeoutType===Nl&&e[Ue].timeout.refresh&&e[Ue].timeout.refresh(),s[Vi]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[To]=!1,e&&(X(s[xt]<=1,"pipeline should only contain this request"),n(e))}};yF.exports=ene});var SF=g((HUe,NF)=>{"use strict";var Hn=require("node:assert"),{errorMonitor:vb}=require("node:events"),{pipeline:ane}=require("node:stream"),he=pe(),{RequestContentLengthMismatchError:kb,RequestAbortedError:Pb,SocketError:sd,InformationalError:uf}=we(),{kUrl:Af,kReset:pf,kClient:Sl,kRunning:mf,kPending:cne,kQueue:_a,kPendingIdx:_b,kRunningIdx:Gn,kError:dn,kSocket:Gt,kStrictContentLength:lne,kOnError:Lb,kMaxConcurrentStreams:xF,kHTTP2Session:An,kResume:Po,kSize:une,kHTTPContext:Ane}=Ve(),vo=Symbol("open streams"),IF,BF=!1,df;try{df=require("node:http2")}catch{df={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:dne,HTTP2_HEADER_METHOD:pne,HTTP2_HEADER_PATH:mne,HTTP2_HEADER_SCHEME:hne,HTTP2_HEADER_CONTENT_LENGTH:fne,HTTP2_HEADER_EXPECT:gne,HTTP2_HEADER_STATUS:Db}}=df;function QF(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}o(QF,"parseH2Headers");function Ene(t){let{[Db]:e,...r}=t;return QF(r)}o(Ene,"parseH2ResponseHeaders");async function yne(t,e){t[Gt]=e,BF||(BF=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=df.connect(t[Af],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[xF]});r[vo]=0,r[Sl]=t,r[Gt]=e,he.addListener(r,"error",Ine),he.addListener(r,"frameError",Bne),he.addListener(r,"end",wne),he.addListener(r,"goaway",bne),he.addListener(r,"close",function(){let{[Sl]:n}=this,{[Gt]:i}=n,a=this[Gt][dn]||this[dn]||new sd("closed",he.getSocketInfo(i));if(n[An]=null,n.destroyed){Hn(n[cne]===0);let c=n[_a].splice(n[Gn]);for(let l=0;l<c.length;l++){let u=c[l];he.errorRequest(n,u,a)}}}),r.unref(),t[An]=r,e[An]=r,he.addListener(e,"error",function(n){this[dn]=n,this[Sl][Lb](n)}),he.addListener(e,"end",function(){he.destroy(this,new sd("other side closed",he.getSocketInfo(this)))}),he.addListener(e,"close",function(){let n=this[dn]||new sd("closed",he.getSocketInfo(this));t[Gt]=null,this[An]!=null&&this[An].destroy(n),t[_b]=t[Gn],Hn(t[mf]===0),t.emit("disconnect",t[Af],[t],n),t[Po]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Qne(t,...n)},resume(){Cne(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(yne,"connectH2");function Cne(t){let e=t[Gt];e?.destroyed===!1&&(t[une]===0&&t[xF]===0?(e.unref(),t[An].unref()):(e.ref(),t[An].ref()))}o(Cne,"resumeH2");function Ine(t){this[Gt][dn]=t,this[Sl][Lb](t)}o(Ine,"onHttp2SessionError");function Bne(t,e,r){if(r===0){let s=new uf(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Gt][dn]=s,this[Sl][Lb](s)}}o(Bne,"onHttp2FrameError");function wne(){let t=new sd("other side closed",he.getSocketInfo(this[Gt]));this.destroy(t),he.destroy(this[Gt],t)}o(wne,"onHttp2SessionEnd");function bne(t){let e=this[dn]||new sd(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this)),r=this[Sl];if(r[Gt]=null,r[Ane]=null,this[An]!=null&&(this[An].destroy(e),this[An]=null),he.destroy(this[Gt],e),r[Gn]<r[_a].length){let s=r[_a][r[Gn]];r[_a][r[Gn]++]=null,he.errorRequest(r,s,e),r[_b]=r[Gn]}Hn(r[mf]===0),r.emit("disconnect",r[Af],[r],e),r[Po]()}o(bne,"onHTTP2GoAway");function xne(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(xne,"shouldSendContentLength");function Qne(t,e){let r=t[An],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:A}=e;if(a)return he.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<u.length;B+=2){let N=u[B+0],_=u[B+1];if(Array.isArray(_))for(let R=0;R<_.length;R++)d[N]?d[N]+=`,${_[R]}`:d[N]=_[R];else d[N]=_}let p,{hostname:m,port:h}=t[Af];d[dne]=i||`${m}${h?`:${h}`:""}`,d[pne]=s;let f=o(B=>{if(!e.aborted){if(e.completed){s==="CONNECT"&&p!=null&&he.destroy(p,B||new Pb);return}B=B||new Pb,he.errorRequest(t,e,B),p!=null&&he.destroy(p,B),he.destroy(A,B),t[_a][t[Gn]++]=null,t[Po]()}},"abort");try{e.onConnect(f)}catch(B){he.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT"){r.ref(),p=r.request(d,{endStream:!1,signal:l});let B=!1,N=o(Ae=>{B=!0,p.off(vb,_),e.onUpgradeResponse(Number(Ae[Db]),Ae,Ene)},"onResponse"),_=o(Ae=>{B=!0,p.off("response",N),e.onUpgradeError(Ae)},"onUpgradeError"),R=o(()=>{try{e.onUpgrade(null,null,p)}catch(Ae){p.off("response",N),f(Ae);return}e.aborted||(p.off("error",f),p.once(vb,_),t[_a][t[Gn]++]=null)},"onReady");return p.once("response",N),p.once("error",f),++r[vo],R(),p.once("close",()=>{!B&&e.completed&&(p.off("response",N),p.off(vb,_),e.onUpgradeError(new uf(`HTTP/2: "stream error"Line truncated
`,this[Xne]=l??3e5,this[Kne]=n??3e5,this[Zne]=C??!0,this[eie]=B,this[Ub]=_,this[Do]=null,this[iie]=Ae>-1?Ae:-1,this[aie]=Le??100,this[mt]=null,this[pn]=[],this[Ji]=0,this[mn]=0,this[ad]=hr=>Gb(this,hr),this[oie]=hr=>UF(this,hr)}get pipelining(){return this[Ef]}set pipelining(e){this[Ef]=e,this[ad](!0)}get[ud](){return this[pn].length-this[mn]}get[ld](){return this[mn]-this[Ji]}get[cd](){return this[pn].length-this[Ji]}get[zne](){return!!this[mt]&&!this[Tl]&&!this[mt].destroyed}get[Fb](){return!!(this[mt]?.busy(null)||this[cd]>=(FF(this)||1)||this[ud]>0)}[Hne](e){qF(this),this.once("connect",e)}[nie](e,r){let s=e.origin||this[$n].origin,n=new Mne(s,e,r);return this[pn].push(n),this[Ma]||(La.bodyLength(n.body)==null&&La.isIterable(n.body)?(this[Ma]=1,queueMicrotask(()=>Gb(this))):this[ad](!0)),this[Ma]&&this[_o]!==2&&this[Fb]&&(this[_o]=2),this[_o]<2}async[rie](){return new Promise(e=>{this[cd]?this[Do]=e:e(null)})}async[sie](e){return new Promise(r=>{let s=this[pn].splice(this[mn]);for(let i=0;i<s.length;i++){let a=s[i];La.errorRequest(this,a,e)}let n=o(()=>{this[Do]&&(this[Do](),this[Do]=null),r(null)},"callback");this[mt]?(this[mt].destroy(e,n),this[mt]=null):queueMicrotask(n),this[ad]()})}},uie=gf();function UF(t,e){if(t[ld]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Yi(t[mn]===t[Ji]);let r=t[pn].splice(t[Ji]);for(let s=0;s<r.length;s++){let n=r[s];La.errorRequest(t,n,e)}Yi(t[cd]===0)}}o(UF,"onError");async function qF(t){Yi(!t[Tl]),Yi(!t[mt]);let{host:e,hostname:r,protocol:s,port:n}=t[$n];if(r[0]==="["){let i=r.indexOf("]");Yi(i!==-1);let a=r.substring(1,i);Yi(OF.isIP(a)),r=a}t[Tl]=!0,Rl.beforeConnect.hasSubscribers&&Rl.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[ko],localAddress:t[od]},connector:t[id]});try{let i=await new Promise((a,c)=>{t[id]({host:e,hostname:r,protocol:s,port:n,servername:t[ko],localAddress:t[od]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){La.destroy(i.on("error",LF),new Une);return}Yi(i);try{t[mt]=i.alpnProtocol==="h2"?await lie(t,i):await cie(t,i)}catch(a){throw i.destroy().on("error",LF),a}t[Tl]=!1,i[tie]=0,i[Ub]=t[Ub],i[Gne]=t,i[Vne]=null,Rl.connected.hasSubscribers&&Rl.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[ko],localAddress:t[od]},connector:t[id],socket:i}),t.emit("connect",t[$n],[t])}catch(i){if(t.destroyed)return;if(t[Tl]=!1,Rl.connectError.hasSubscribers&&Rl.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[ko],localAddress:t[od]},connector:t[id],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Yi(t[ld]===0);t[ud]>0&&t[pn][t[mn]].servername===t[ko];){let a=t[pn][t[mn]++];La.errorRequest(t,a,i)}else UF(t,i);t.emit("connectionError",t[$n],[t],i)}t[ad]()}o(qF,"connect");function MF(t){t[_o]=0,t.emit("drain",t[$n],[t])}o(MF,"emitDrain");function Gb(t,e){t[Ma]!==2&&(t[Ma]=2,Aie(t,e),t[Ma]=0,t[Ji]>256&&(t[pn].splice(0,t[Ji]),t[mn]-=t[Ji],t[Ji]=0))}o(Gb,"resume");function Aie(t,e){for(;;){if(t.destroyed){Yi(t[ud]===0);return}if(t[Do]&&!t[cd]){t[Do](),t[Do]=null;return}if(t[mt]&&t[mt].resume(),t[Fb])t[_o]=2;else if(t[_o]===2){e?(t[_o]=1,queueMicrotask(()=>MF(t))):MF(t);continue}if(t[ud]===0||t[ld]>=(FF(t)||1))return;let r=t[pn][t[mn]];if(t[$n].protocol==="https:"&&t[ko]!==r.servername){if(t[ld]>0)return;t[ko]=r.servername,t[mt]?.destroy(new Fne("servername changed"),()=>{t[mt]=null,Gb(t)})}if(t[Tl])return;if(!t[mt]){qF(t);return}if(t[mt].destroyed||t[mt].busy(r))return;!r.aborted&&t[mt].write(r)?t[mn]++:t[pn].splice(t[mn],1)}}o(Aie,"_resume");GF.exports=qb});var Hb=g((XUe,HF)=>{"use strict";var yf=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};HF.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new yf}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new yf),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var $F=g((e1e,zF)=>{var{kFree:die,kConnected:pie,kPending:mie,kQueued:hie,kRunning:fie,kSize:gie}=Ve(),Oa=Symbol("pool"),zb=class{static{o(this,"PoolStats")}constructor(e){this[Oa]=e}get connected(){return this[Oa][pie]}get free(){return this[Oa][die]}get pending(){return this[Oa][mie]}get queued(){return this[Oa][hie]}get running(){return this[Oa][fie]}get size(){return this[Oa][gie]}};zF.exports=zb});var jb=g((r1e,tU)=>{"use strict";var Eie=hl(),yie=Hb(),{kConnected:$b,kSize:VF,kRunning:YF,kPending:JF,kQueued:Ad,kBusy:Cie,kFree:Iie,kUrl:Bie,kClose:wie,kDestroy:bie,kDispatch:xie}=Ve(),Qie=$F(),_r=Symbol("cl Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};D1.exports=Mx});var pd=g((HUe,F1)=>{"use strict";var L1=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:mae}=we(),hae=Ql();O1()===void 0&&M1(new hae);function M1(t){if(!t||typeof t.dispatch!="function")throw new mae("Argument agent must implement Agent");Object.defineProperty(globalThis,L1,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(M1,"setGlobalDispatcher");function O1(){return globalThis[L1]}o(O1,"getGlobalDispatcher");F1.exports={setGlobalDispatcher:M1,getGlobalDispatcher:O1}});var xf=g((VUe,U1)=>{"use strict";U1.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var G1=g((JUe,q1)=>{"use strict";var fae=sf();q1.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,i){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,i);let l=new fae(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var z1=g((jUe,H1)=>{"use strict";var gae=hf();H1.exports=t=>e=>o(function(s,n){return e(s,new gae({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var V1=g((XUe,$1)=>{"use strict";var Eae=pe(),{InvalidArgumentError:yae,RequestAbortedError:Cae}=we(),Iae=xf(),Ox=class extends Iae{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new yae("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let a=Eae.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Cae(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#o.onError(this.#i):this.#o.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function Bae({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new Ox({maxSize:i},n);return e(s,a)},"Intercept")}o(Bae,"createDumpInterceptor");$1.exports=Bae});var W1=g((e1e,J1)=>{"use strict";var{isIP:wae}=require("node:net"),{lookup:bae}=require("node:dns"),xae=xf(),{InvalidArgumentError:_l,InformationalError:Qae}=we(),Y1=Math.pow(2,31)-1,Fx=class{static{o(this,"DNSInstance")}#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){s(a??new Qae("No DNS entries found"));return}this.setRecords(e,c);let l=this.#s.get(e.hostname),u=this.pick(e,l,i.affinity),A;typeof u.port=="number"?A=`:${u.port}`:e.port!==""?A=`:${e.port}`:A="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${A}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,s){bae(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);s(null,a.values())})}#n(e,r,s){let n=null,{records:i,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===Y1?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?c=i[s]:c=i[s===4?6:4]):c=i[s],c==null||c.ips.length===0)return n;c.offset==null||c.offset===Y1?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return n=c.ips[l]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(l,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=n.records[i.family]??{ips:[]};a.ips.push(i),n.records[i.family]=a}this.#s.set(e.hostname,n)}getHandler(e,r){return new Ux(this,e,r)}},Ux=class extends xae{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#s=null Line truncated
${l}`,this.dataLineCount++;return}if(Ag(e,n,qAe)){$Ae(e,i)&&(this.setEventFieldSize("retry",e.length-i),r.retry=e.toString("utf8",i));return}if(Ag(e,n,UAe)){VAe(e,i)&&(this.setEventFieldSize("id",e.length-i),r.id=e.toString("utf8",i));return}Ag(e,n,FAe)&&i<e.length&&(this.setEventFieldSize("event",e.length-i),r.event=e.toString("utf8",i))}setEventFieldSize(e,r){let s=this.eventSize-this.eventFieldSizes[e]+r;if(this.maxEventSize>0&&s>this.maxEventSize)throw dg();this.eventSize=s,this.eventFieldSizes[e]=r}processEvent(e){e.retry&&kAe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&DAe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0,this.eventSize=0,this.dataLineCount=0,this.eventFieldSizes.data=0,this.eventFieldSizes.event=0,this.eventFieldSizes.id=0,this.eventFieldSizes.retry=0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.lineLength=0,this.dropConsumedChunks()}dropConsumedChunks(){if(this.lineChunkIndex>0){let e=this.lineChunkIndex;this.chunks.splice(0,e),this.lineChunkIndex=0,this.chunkIndex-=e}this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,a=s===this.chunkIndex?this.pos:n.length,c=n.subarray(i,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),s=this.peekBufferedByte(2);return r===void 0?(e===Wl[0]||(this.checkBOM=!1),!0):s===void 0?e===Wl[0]&&r===Wl[1]?!0:(this.checkBOM=!1,!1):(e===Wl[0]&&r===Wl[1]&&s===Wl[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};QG.exports={EventSourceStream:RQ}});var _G=g((s2e,DG)=>{"use strict";var{pipeline:YAe}=require("node:stream"),{fetching:JAe}=Ed(),{makeRequest:WAe}=Ol(),{webidl:Wi}=Kt(),{EventSourceStream:jAe}=NG(),{parseMIMEType:KAe}=kr(),{createFastMessageEvent:XAe}=zl(),{isNetworkError:SG}=fd(),{delay:ZAe}=SQ(),{kEnumerableProperty:Xa}=pe(),{environmentSettingsObject:RG}=ts(),{getGlobalDispatcher:ede}=pd(),TG=!1,vG=3e3,kd=0,PG=1,Dd=2,tde="anonymous",rde="use-credentials",jl=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#s=!1;#r=kd;#n=null;#i=null;#o;#a;constructor(e,r={}){super(),Wi.util.markAsUncloneable(this);let s="EventSource constructor";Wi.argumentLengthCheck(arguments,1,s),TG||(TG=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Wi.converters.USVString(e,s,"url"),r=Wi.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:vG};let n=RG,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=tde;r.withCredentials&&(a=rde,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=RG.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=WAe(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#l(){if(this.#r===Dd)return;this.#r=kd;let e={request:this.#n,dispatcher:this.#o},r=o(s=>{SG(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(SG(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c( Line truncated
`.trim())}};c2.exports=jx});var Id=g((e2e,p2)=>{"use strict";var u2=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Xae}=we(),Zae=kl();d2()===void 0&&A2(new Zae);function A2(t){if(!t||typeof t.dispatch!="function")throw new Xae("Argument agent must implement Agent");Object.defineProperty(globalThis,u2,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(A2,"setGlobalDispatcher");function d2(){return globalThis[u2]}o(d2,"getGlobalDispatcher");p2.exports={setGlobalDispatcher:A2,getGlobalDispatcher:d2}});var Mf=g((s2e,m2)=>{"use strict";m2.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var f2=g((i2e,h2)=>{"use strict";var ece=ff();h2.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,i){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,i);let l=new ece(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var E2=g((a2e,g2)=>{"use strict";var tce=Nf();g2.exports=t=>e=>o(function(s,n){return e(s,new tce({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var C2=g((l2e,y2)=>{"use strict";var rce=pe(),{InvalidArgumentError:sce,RequestAbortedError:nce}=we(),ice=Mf(),Kx=class extends ice{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new sce("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let a=rce.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new nce(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#o.onError(this.#i):this.#o.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function oce({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new Kx({maxSize:i},n);return e(s,a)},"Intercept")}o(oce,"createDumpInterceptor");y2.exports=oce});var w2=g((A2e,B2)=>{"use strict";var{isIP:ace}=require("node:net"),{lookup:cce}=require("node:dns"),lce=Mf(),{InvalidArgumentError:Gl,InformationalError:uce}=we(),I2=Math.pow(2,31)-1,Xx=class{static{o(this,"DNSInstance")}#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){s(a??new uce("No DNS entries found"));return}this.setRecords(e,c);let l=this.#s.get(e.hostname),u=this.pick(e,l,i.affinity),A;typeof u.port=="number"?A=`:${u.port}`:e.port!==""?A=`:${e.port}`:A="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${A}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,s){cce(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);s(null,a.values())})}#n(e,r,s){let n=null,{records:i,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===I2?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?c=i[s]:c=i[s===4?6:4]):c=i[s],c==null||c.ips.length===0)return n;c.offset==null||c.offset===I2?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return n=c.ips[l]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(l,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=n.records[i.family]??{ips:[]};a.ips.push(i),n.records[i.family]=a}this.#s.set(e.hostname,n)}getHandler(e,r){return new Zx(this,e,r)}},Zx=class extends lce{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#s=null Line truncated
${l}`,this.dataLineCount++;return}if(wg(e,n,xde)){Rde(e,i)&&(this.setEventFieldSize("retry",e.length-i),r.retry=e.toString("utf8",i));return}if(wg(e,n,bde)){Tde(e,i)&&(this.setEventFieldSize("id",e.length-i),r.id=e.toString("utf8",i));return}wg(e,n,wde)&&i<e.length&&(this.setEventFieldSize("event",e.length-i),r.event=e.toString("utf8",i))}setEventFieldSize(e,r){let s=this.eventSize-this.eventFieldSizes[e]+r;if(this.maxEventSize>0&&s>this.maxEventSize)throw bg();this.eventSize=s,this.eventFieldSizes[e]=r}processEvent(e){e.retry&&gde(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Ede(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0,this.eventSize=0,this.dataLineCount=0,this.eventFieldSizes.data=0,this.eventFieldSizes.event=0,this.eventFieldSizes.id=0,this.eventFieldSizes.retry=0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.lineLength=0,this.dropConsumedChunks()}dropConsumedChunks(){if(this.lineChunkIndex>0){let e=this.lineChunkIndex;this.chunks.splice(0,e),this.lineChunkIndex=0,this.chunkIndex-=e}this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,a=s===this.chunkIndex?this.pos:n.length,c=n.subarray(i,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),s=this.peekBufferedByte(2);return r===void 0?(e===ru[0]||(this.checkBOM=!1),!0):s===void 0?e===ru[0]&&r===ru[1]?!0:(this.checkBOM=!1,!1):(e===ru[0]&&r===ru[1]&&s===ru[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};eH.exports={EventSourceStream:G0}});var lH=g((mqe,cH)=>{"use strict";var{pipeline:vde}=require("node:stream"),{fetching:Pde}=Qd(),{makeRequest:kde}=$l(),{webidl:Xi}=Kt(),{EventSourceStream:Dde}=tH(),{parseMIMEType:_de}=kr(),{createFastMessageEvent:Lde}=Kl(),{isNetworkError:rH}=bd(),{delay:Mde}=q0(),{kEnumerableProperty:ec}=pe(),{environmentSettingsObject:sH}=rs(),{getGlobalDispatcher:Ode}=Id(),nH=!1,iH=3e3,qd=0,oH=1,Gd=2,Fde="anonymous",Ude="use-credentials",su=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#s=!1;#r=qd;#n=null;#i=null;#o;#a;constructor(e,r={}){super(),Xi.util.markAsUncloneable(this);let s="EventSource constructor";Xi.argumentLengthCheck(arguments,1,s),nH||(nH=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Xi.converters.USVString(e,s,"url"),r=Xi.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:iH};let n=sH,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=Fde;r.withCredentials&&(a=Ude,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=sH.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=kde(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#l(){if(this.#r===Gd)return;this.#r=qd;let e={request:this.#n,dispatcher:this.#o},r=o(s=>{rH(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(rH(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c( Line truncated
`).join(`
`+i),t.push(n+"m+"+RE.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=OIe()+e+" "+t[0]}o(MIe,"formatArgs");function OIe(){return er.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(OIe,"getDate");function FIe(...t){return process.stderr.write(SE.format(...t)+`
`)}o(FIe,"log");function UIe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(UIe,"save");function qIe(){return process.env.DEBUG}o(qIe,"load");function GIe(t){t.inspectOpts={};let e=Object.keys(er.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=er.inspectOpts[e[r]]}o(GIe,"init");RE.exports=RN()(er);var{formatters:RJ}=RE.exports;RJ.o=function(t){return this.inspectOpts.colors=this.useColors,SE.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};RJ.O=function(t){return this.inspectOpts.colors=this.useColors,SE.inspect(t,this.inspectOpts)}});var TE=g((jJe,PN)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?PN.exports=wJ():PN.exports=TJ()});var kJ=g(qr=>{"use strict";var HIe=qr&&qr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),zIe=qr&&qr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vJ=qr&&qr.__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)&&HIe(e,t,r);return zIe(e,t),e};Object.defineProperty(qr,"__esModule",{value:!0});qr.req=qr.json=qr.toBuffer=void 0;var $Ie=vJ(require("http")),VIe=vJ(require("https"));async function PJ(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(PJ,"toBuffer");qr.toBuffer=PJ;async function YIe(t){let r=(await PJ(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(YIe,"json");qr.json=YIe;function JIe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?VIe:$Ie).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(JIe,"req");qr.req=JIe});var DN=g(fs=>{"use strict";var _J=fs&&fs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),WIe=fs&&fs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),LJ=fs&&fs.__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)&&_J(e,t,r);return WIe(e,t),e},jIe=fs&&fs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&_J(e,t,r)};Object.defineProperty(fs,"__esModule",{value:!0});fs.Agent=void 0;var KIe=LJ(require("net")),DJ=LJ(require("http")),XIe=require("https");jIe(kJ(),fs);var ei=Symbol("AgentBaseInternalState"),kN=class extends DJ.Agent{static{o(this,"Agent")}constructor(e){super(e),this[ei]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new KIe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?XIe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof DJ.Agent)return c.addRequest(e,n);this[ei].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[ei].currentSocket;if(this[ei].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ei].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ei]&&(this[ei].defaultPort=e)}get protocol(){return this[ei].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ei]&&(this[ei].protocol=e)}};fs.Agent=kN});var MJ=g(Iu=>{"use strict";var ZIe=Iu&&Iu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Iu,"__esModule",{value:!0});Iu.parseProxyResponse=void 0;var eBe=ZIe(TE()),vE=(0,eBe.default)("https-proxy-agent:parse-proxy-response");function tBe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let A=t.read();A?u(A):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),vE("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(A){a(),vE("onerror %o",A),r(A)}o(l,"onerror");function u(A){n.push(A),s+=A.length;let d=Buffer.concat(n,s),p=d.indexOf(`\r
`+i),t.push(n+"m+"+qE.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=BBe()+e+" "+t[0]}o(IBe,"formatArgs");function BBe(){return er.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(BBe,"getDate");function wBe(...t){return process.stderr.write(UE.format(...t)+`
`)}o(wBe,"log");function bBe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(bBe,"save");function xBe(){return process.env.DEBUG}o(xBe,"load");function QBe(t){t.inspectOpts={};let e=Object.keys(er.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=er.inspectOpts[e[r]]}o(QBe,"init");qE.exports=GN()(er);var{formatters:s3}=qE.exports;s3.o=function(t){return this.inspectOpts.colors=this.useColors,UE.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};s3.O=function(t){return this.inspectOpts.colors=this.useColors,UE.inspect(t,this.inspectOpts)}});var GE=g((a4e,$N)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?$N.exports=KJ():$N.exports=n3()});var a3=g(qr=>{"use strict";var NBe=qr&&qr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),SBe=qr&&qr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),i3=qr&&qr.__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)&&NBe(e,t,r);return SBe(e,t),e};Object.defineProperty(qr,"__esModule",{value:!0});qr.req=qr.json=qr.toBuffer=void 0;var RBe=i3(require("http")),TBe=i3(require("https"));async function o3(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(o3,"toBuffer");qr.toBuffer=o3;async function vBe(t){let r=(await o3(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(vBe,"json");qr.json=vBe;function PBe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?TBe:RBe).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(PBe,"req");qr.req=PBe});var YN=g(gs=>{"use strict";var l3=gs&&gs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),kBe=gs&&gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),u3=gs&&gs.__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)&&l3(e,t,r);return kBe(e,t),e},DBe=gs&&gs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&l3(e,t,r)};Object.defineProperty(gs,"__esModule",{value:!0});gs.Agent=void 0;var _Be=u3(require("net")),c3=u3(require("http")),LBe=require("https");DBe(a3(),gs);var ri=Symbol("AgentBaseInternalState"),VN=class extends c3.Agent{static{o(this,"Agent")}constructor(e){super(e),this[ri]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new _Be.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?LBe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof c3.Agent)return c.addRequest(e,n);this[ri].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[ri].currentSocket;if(this[ri].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ri].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ri]&&(this[ri].defaultPort=e)}get protocol(){return this[ri].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ri]&&(this[ri].protocol=e)}};gs.Agent=VN});var A3=g(Su=>{"use strict";var MBe=Su&&Su.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Su,"__esModule",{value:!0});Su.parseProxyResponse=void 0;var OBe=MBe(GE()),HE=(0,OBe.default)("https-proxy-agent:parse-proxy-response");function FBe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let A=t.read();A?u(A):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),HE("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(A){a(),HE("onerror %o",A),r(A)}o(l,"onerror");function u(A){n.push(A),s+=A.length;let d=Buffer.concat(n,s),p=d.indexOf(`\r
\r
`);if(p===-1){vE("have not received end of HTTP headers yet..."),i();return}let m=d.slice(0,p).toString("ascii").split(`\r
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=h.split(" "),C=+f[1],E=f.slice(2).join(" "),y={};for(let I of m){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,B).toLowerCase(),R=I.slice(B+1).trimStart(),q=y[N];typeof q=="string"?y[N]=[q,R]:Array.isArray(q)?q.push(R):y[N]=R}vE("got proxy server response: %o %o",h,y),a(),e({connect:{statusCode:C,statusText:E,headers:y},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(tBe,"parseProxyResponse");Iu.parseProxyResponse=tBe});var GJ=g(Gs=>{"use strict";var rBe=Gs&&Gs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),sBe=Gs&&Gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),UJ=Gs&&Gs.__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)&&rBe(e,t,r);return sBe(e,t),e},qJ=Gs&&Gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.HttpsProxyAgent=void 0;var Bp=UJ(require("net")),OJ=UJ(require("tls")),nBe=qJ(require("assert")),iBe=qJ(TE()),oBe=DN(),aBe=require("url"),cBe=MJ(),wp=(0,iBe.default)("https-proxy-agent"),PE=class extends oBe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new aBe.URL(e):e,this.proxyHeaders=r?.headers??{},wp("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?FJ(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(s.protocol==="https:"){wp("Creating `tls.Socket`: %o",this.connectOpts);let p=this.connectOpts.servername||this.connectOpts.host;n=OJ.connect({...this.connectOpts,servername:p&&Bp.isIP(p)?void 0:p})}else wp("Creating `net.Socket`: %o",this.connectOpts),n=Bp.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Bp.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`);if(p===-1){HE("have not received end of HTTP headers yet..."),i();return}let m=d.slice(0,p).toString("ascii").split(`\r
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=h.split(" "),y=+f[1],E=f.slice(2).join(" "),C={};for(let I of m){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,B).toLowerCase(),_=I.slice(B+1).trimStart(),R=C[N];typeof R=="string"?C[N]=[R,_]:Array.isArray(R)?R.push(_):C[N]=_}HE("got proxy server response: %o %o",h,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(FBe,"parseProxyResponse");Su.parseProxyResponse=FBe});var f3=g(zs=>{"use strict";var UBe=zs&&zs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),qBe=zs&&zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),m3=zs&&zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&UBe(e,t,r);return qBe(e,t),e},h3=zs&&zs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zs,"__esModule",{value:!0});zs.HttpsProxyAgent=void 0;var Tp=m3(require("net")),d3=m3(require("tls")),GBe=h3(require("assert")),HBe=h3(GE()),zBe=YN(),$Be=require("url"),VBe=A3(),vp=(0,HBe.default)("https-proxy-agent"),zE=class extends zBe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new $Be.URL(e):e,this.proxyHeaders=r?.headers??{},vp("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?p3(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(s.protocol==="https:"){vp("Creating `tls.Socket`: %o",this.connectOpts);let p=this.connectOpts.servername||this.connectOpts.host;n=d3.connect({...this.connectOpts,servername:p&&Tp.isIP(p)?void 0:p})}else vp("Creating `net.Socket`: %o",this.connectOpts),n=Tp.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Tp.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(i))c+=`${p}: ${i[p]}\r
`;let l=(0,cBe.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:u,buffered:A}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",lBe),r.secureEndpoint){wp("Upgrading socket connection to TLS");let p=r.servername||r.host;return OJ.connect({...FJ(r,"host","path","port"),socket:n,servername:Bp.isIP(p)?void 0:p})}return n}n.destroy();let d=new Bp.Socket({writable:!1});return d.readable=!0,e.once("socket",p=>{wp("Replaying proxy buffer for failed request"),(0,nBe.default)(p.listenerCount("data")>0),p.push(A),p.push(null)}),d}};PE.protocols=["http","https"];Gs.HttpsProxyAgent=PE;function lBe(t){t.resume()}o(lBe,"resume");function FJ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(FJ,"omit")});var $J=g(Hs=>{"use strict";var uBe=Hs&&Hs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),ABe=Hs&&Hs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zJ=Hs&&Hs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&uBe(e,t,r);return ABe(e,t),e},dBe=Hs&&Hs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.HttpProxyAgent=void 0;var pBe=zJ(require("net")),mBe=zJ(require("tls")),hBe=dBe(TE()),fBe=require("events"),gBe=DN(),HJ=require("url"),Bu=(0,hBe.default)("http-proxy-agent"),kE=class extends gBe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new HJ.URL(e):e,this.proxyHeaders=r?.headers??{},Bu("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?EBe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${n}//${i}`,c=new HJ.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let A=l[u];A&&e.setHeader(u,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Bu("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Bu("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let l=(0,VBe.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:u,buffered:A}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",YBe),r.secureEndpoint){vp("Upgrading socket connection to TLS");let p=r.servername||r.host;return d3.connect({...p3(r,"host","path","port"),socket:n,servername:Tp.isIP(p)?void 0:p})}return n}n.destroy();let d=new Tp.Socket({writable:!1});return d.readable=!0,e.once("socket",p=>{vp("Replaying proxy buffer for failed request"),(0,GBe.default)(p.listenerCount("data")>0),p.push(A),p.push(null)}),d}};zE.protocols=["http","https"];zs.HttpsProxyAgent=zE;function YBe(t){t.resume()}o(YBe,"resume");function p3(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(p3,"omit")});var y3=g($s=>{"use strict";var JBe=$s&&$s.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),WBe=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),E3=$s&&$s.__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)&&JBe(e,t,r);return WBe(e,t),e},jBe=$s&&$s.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($s,"__esModule",{value:!0});$s.HttpProxyAgent=void 0;var KBe=E3(require("net")),XBe=E3(require("tls")),ZBe=jBe(GE()),ewe=require("events"),twe=YN(),g3=require("url"),Ru=(0,ZBe.default)("http-proxy-agent"),$E=class extends twe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new g3.URL(e):e,this.proxyHeaders=r?.headers??{},Ru("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?rwe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${n}//${i}`,c=new g3.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let A=l[u];A&&e.setHeader(u,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Ru("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Ru("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),Bu("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Bu("Creating `tls.Socket`: %o",this.connectOpts),i=mBe.connect(this.connectOpts)):(Bu("Creating `net.Socket`: %o",this.connectOpts),i=pBe.connect(this.connectOpts)),await(0,fBe.once)(i,"connect"),i}};kE.protocols=["http","https"];Hs.HttpProxyAgent=kE;function EBe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(EBe,"omit")});var p3=g(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.state=void 0;YE.state={instrumenterImplementation:void 0}});var T3=g(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.state=void 0;XE.state={operationRequestMap:new WeakMap}});var c8=g(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var M0e=require("os"),O0e=require("util");function F0e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(F0e,"_interopDefaultLegacy");var U0e=F0e(O0e);function q0e(t,...e){process.stderr.write(`${U0e.default.format(t,...e)}${M0e.EOL}`)}o(q0e,"log");var XW=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,e8,uP=[],AP=[],EC=[];XW&&dP(XW);var t8=Object.assign(t=>r8(t),{enable:dP,enabled:pP,disable:G0e,log:q0e});function dP(t){e8=t,uP=[],AP=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?AP.push(new RegExp(`^${s.substr(1)}$`)):uP.push(new RegExp(`^${s}$`));for(let s of EC)s.enabled=pP(s.namespace)}o(dP,"enable");function pP(t){if(t.endsWith("*"))return!0;for(let e of AP)if(e.test(t))return!1;for(let e of uP)if(e.test(t))return!0;return!1}o(pP,"enabled");function G0e(){let t=e8||"";return dP(""),t}o(G0e,"disable");function r8(t){let e=Object.assign(r,{enabled:pP(t),destroy:H0e,log:t8.log,namespace:t,extend:z0e});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),EC.push(e),e}o(r8,"createDebugger");function H0e(){let t=EC.indexOf(this);return t>=0?(EC.splice(t,1),!0):!1}o(H0e,"destroy");function z0e(t){let e=r8(`${this.namespace}:${t}`);return e.log=this.log,e}o(z0e,"extend");var um=t8,s8=new Set,fC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,yC,CC=um("azure");CC.log=(...t)=>{um.log(...t)};var mP=["verbose","info","warning","error"];fC&&(a8(fC)?n8(fC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${fC}'; logging is not enabled. Acceptable values: ${mP.join(", ")}.`));function n8(t){if(t&&!a8(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${mP.join(",")}`);yC=t;let e=[];for(let r of s8)o8(r)&&e.push(r.namespace);um.enable(e.join(","))}o(n8,"setLogLevel");function $0e(){return yC}o($0e,"getLogLevel");var ZW={verbose:400,info:300,warning:200,error:100};function V0e(t){let e=CC.extend(t);return i8(CC,e),{error:gC(e,"error"),warning:gC(e,"warning"),info:gC(e,"info"),verbose:gC(e,"verbose")}}o(V0e,"createClientLogger");function i8(t,e){e.log=(...r)=>{t.log(...r)}}o(i8,"patchLogMethod");function gC(t,e){let r=Object.assign(t.extend(e),{level:e});if(i8(t,r),o8(r)){let s=um.disable();um.enable(s+","+r.namespace)}return s8.add(r),r}o(gC,"createLogger");function o8(t){return!!(yC&&ZW[t.level]<=ZW[yC])}o(o8,"shouldEnable");function a8(t){return mP.includes(t)}o(a8,"isAzureLogLevel");qu.AzureLogger=CC;qu.createClientLogger=V0e;qu.getLogLevel=$0e;qu.setLogLevel=n8});var gP=g(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});var Gu=new WeakMap,IC=new WeakMap,Am=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Gu.set(this,[]),IC.set(this,!1)}get aborted(){if(!IC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return IC.get(this)}static get none(){return new t}addEventListener(e,r){if(!Gu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Gu.get(this).push(r)}removeEventListener(e,r){if(!Gu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Gu.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function l8(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Gu.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),IC.set(t,!0)}o(l8,"abortSignal");var hP=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},fP=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Am,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){l8(this._signal)}static timeout(e){let r=new Am,s=setTimeout(l8,e,r);return typeof s.unref=="function"&&s.unref(),r}};dm.AbortController=fP;dm.AbortError=hP;dm.AbortSignal=Am});var m8=g(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});var Y0e Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),Ru("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Ru("Creating `tls.Socket`: %o",this.connectOpts),i=XBe.connect(this.connectOpts)):(Ru("Creating `net.Socket`: %o",this.connectOpts),i=KBe.connect(this.connectOpts)),await(0,ewe.once)(i,"connect"),i}};$E.protocols=["http","https"];$s.HttpProxyAgent=$E;function rwe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(rwe,"omit")});var q3=g(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.state=void 0;iy.state={instrumenterImplementation:void 0}});var n4=g(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});uy.state=void 0;uy.state={operationRequestMap:new WeakMap}});var D8=g(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var qNe=require("os"),GNe=require("util");function HNe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(HNe,"_interopDefaultLegacy");var zNe=HNe(GNe);function $Ne(t,...e){process.stderr.write(`${zNe.default.format(t,...e)}${qNe.EOL}`)}o($Ne,"log");var b8=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Q8,kP=[],DP=[],vC=[];b8&&_P(b8);var N8=Object.assign(t=>S8(t),{enable:_P,enabled:LP,disable:VNe,log:$Ne});function _P(t){Q8=t,kP=[],DP=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?DP.push(new RegExp(`^${s.substr(1)}$`)):kP.push(new RegExp(`^${s}$`));for(let s of vC)s.enabled=LP(s.namespace)}o(_P,"enable");function LP(t){if(t.endsWith("*"))return!0;for(let e of DP)if(e.test(t))return!1;for(let e of kP)if(e.test(t))return!0;return!1}o(LP,"enabled");function VNe(){let t=Q8||"";return _P(""),t}o(VNe,"disable");function S8(t){let e=Object.assign(r,{enabled:LP(t),destroy:YNe,log:N8.log,namespace:t,extend:JNe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),vC.push(e),e}o(S8,"createDebugger");function YNe(){let t=vC.indexOf(this);return t>=0?(vC.splice(t,1),!0):!1}o(YNe,"destroy");function JNe(t){let e=S8(`${this.namespace}:${t}`);return e.log=this.log,e}o(JNe,"extend");var Im=N8,R8=new Set,RC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,PC,kC=Im("azure");kC.log=(...t)=>{Im.log(...t)};var MP=["verbose","info","warning","error"];RC&&(k8(RC)?T8(RC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${RC}'; logging is not enabled. Acceptable values: ${MP.join(", ")}.`));function T8(t){if(t&&!k8(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${MP.join(",")}`);PC=t;let e=[];for(let r of R8)P8(r)&&e.push(r.namespace);Im.enable(e.join(","))}o(T8,"setLogLevel");function WNe(){return PC}o(WNe,"getLogLevel");var x8={verbose:400,info:300,warning:200,error:100};function jNe(t){let e=kC.extend(t);return v8(kC,e),{error:TC(e,"error"),warning:TC(e,"warning"),info:TC(e,"info"),verbose:TC(e,"verbose")}}o(jNe,"createClientLogger");function v8(t,e){e.log=(...r)=>{t.log(...r)}}o(v8,"patchLogMethod");function TC(t,e){let r=Object.assign(t.extend(e),{level:e});if(v8(t,r),P8(r)){let s=Im.disable();Im.enable(s+","+r.namespace)}return R8.add(r),r}o(TC,"createLogger");function P8(t){return!!(PC&&x8[t.level]<=x8[PC])}o(P8,"shouldEnable");function k8(t){return MP.includes(t)}o(k8,"isAzureLogLevel");ju.AzureLogger=kC;ju.createClientLogger=jNe;ju.getLogLevel=WNe;ju.setLogLevel=T8});var UP=g(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});var Ku=new WeakMap,DC=new WeakMap,Bm=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Ku.set(this,[]),DC.set(this,!1)}get aborted(){if(!DC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return DC.get(this)}static get none(){return new t}addEventListener(e,r){if(!Ku.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Ku.get(this).push(r)}removeEventListener(e,r){if(!Ku.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Ku.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function _8(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Ku.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),DC.set(t,!0)}o(_8,"abortSignal");var OP=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},FP=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Bm,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){_8(this._signal)}static timeout(e){let r=new Bm,s=setTimeout(_8,e,r);return typeof s.unref=="function"&&s.unref(),r}};wm.AbortController=FP;wm.AbortError=OP;wm.AbortSignal=Bm});var U8=g(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});var KNe Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${A}
Polling status: ${E8.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(f8({state:r,stateProxy:s,isOperationError:c})),status:A}}return{response:u,status:A}}o(BNe,"pollOperationHelper");async function B8(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:A,processResult:d,getError:p,updateState:m,setDelay:h,isDone:f,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:y,status:I}=await BNe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(C8({status:I,response:y,state:r,stateProxy:s,isDone:f,processResult:d,getError:p,setErrorAsResult:C}),!E8.includes(I)){let B=A?.(y);B&&h(B);let N=c?.(y,r);if(N!==void 0){let R=E!==N;r.config.operationLocation=N,u?.(N,R)}else u?.(E,!1)}m?.(r,y)}}o(B8,"pollOperation");function w8(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(w8,"getOperationLocationPollingUrl");function b8(t){return t.headers.location}o(b8,"getLocationHeader");function x8(t){return t.headers["operation-location"]}o(x8,"getOperationLocationHeader");function Q8(t){return t.headers["azure-asyncoperation"]}o(Q8,"getAzureAsyncOperationHeader");function wNe(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(wNe,"findResourceLocation");function N8(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=x8(e),a=Q8(e),c=w8({operationLocation:i,azureAsyncOperation:a}),l=b8(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:wNe({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:n})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(N8,"inferLroMode");function S8(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 SP(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 kc.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(S8,"transformStatus");function bNe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return S8({status:r,statusCode:t.statusCode})}o(bNe,"getStatus");function xNe(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return S8({status:i,statusCode:t.statusCode})}o(xNe,"getProvisioningState");function SP(t){return t===202?"running":t<300?"succeeded":"failed"}o(SP,"toOperationStatus");function R8({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?QNe(new Date(e)):r*1e3}}o(R8,"parseRetryAfter");function T8(t){let e=t.flatResponse.error;if(!e){kc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){kc.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(T8,"getErrorFromResponse");function QNe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(QNe,"calculatePollingIntervalFromDate");function v8(t){let{response:e,state:r,operationLocation:s}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return SP(e.rawResponse.statusCode);case"Body":return RP(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(v8,"getStatusFromInitialResponse");async function NNe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return I8({init:o(async()=>{let a=await n.sendInitialRequest(),c=N8({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:s?({flatResponse:a},c)=>s(a,c):({flatResponse:a})=>a,getOperationStatus:v8,setErrorAsResult:i})}o(NNe,"initHttpOperation");function P8({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r==Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=i,n=1;break;case 1:r[s++]=a<<2|(i&48)>>4,a=i,n=2;break;case 2:r[s++]=(a&15)<<4|(i&60)>>2,a=i,n=3;break;case 3:r[s++]=(a&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(uSe,"base64decode");Ju.base64decode=uSe;function ASe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=fo[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=fo[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=fo[n|s>>6],e+=fo[s&63],r=0;break}return r&&(e+=fo[n],e+="=",r==1&&(e+="=")),e}o(ASe,"base64encode");Ju.base64encode=ASe});var A5=g(UC=>{"use strict";Object.defineProperty(UC,"__esModule",{value:!0});UC.utf8read=void 0;var UP=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function dSe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(UP(s)),n=0);return r.length?(n&&r.push(UP(s.slice(0,n))),r.join("")):UP(s.slice(0,n))}o(dSe,"utf8read");UC.utf8read=dSe});var Cm=g(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.WireType=Qi.mergeBinaryOptions=Qi.UnknownFieldHandler=void 0;var pSe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:a})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:a,data:c}of t.list(s))n.tag(i,a).raw(c)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(pSe=Qi.UnknownFieldHandler||(Qi.UnknownFieldHandler={}));function mSe(t,e){return Object.assign(Object.assign({},t),e)}o(mSe,"mergeBinaryOptions");Qi.mergeBinaryOptions=mSe;var hSe;(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"})(hSe=Qi.WireType||(Qi.WireType={}))});var GC=g(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.varint32read=Jr.varint32write=Jr.int64toString=Jr.int64fromString=Jr.varint64write=Jr.varint64read=void 0;function fSe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(fSe,"varint64read");Jr.varint64read=fSe;function gSe(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(gSe,"varint64write");Jr.varint64write=gSe;var qC=65536*65536;function ESe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let l=Number(t.slice(a,c));n*=r,s=s*r+l,s>=qC&&(n=n+(s/qC|0),s=s%qC)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(ESe,"int64fromString");Jr.int64fromString=ESe;function ySe(t,e){if(e>>>0<=2097151)return""+(qC*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(A,d){let p=A?String(A):"";return d?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(ySe,"int64toString");Jr.int64toString=ySe;function CSe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(CSe,"varint32write");Jr.varint32write=CSe;function ISe(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(ISe,"varint32read");Jr.varint32read=ISe});var pa=g(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.PbLong=da.PbULong=da.detectBi=void 0;var Im=GC(),De;function d5(){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" Line truncated
`)}};hI.RpcError=pk});var hk=g(gI=>{"use strict";Object.defineProperty(gI,"__esModule",{value:!0});gI.mergeRpcOptions=void 0;var z5=Ct();function HRe(t,e){if(!e)return t;let r={};fI(t,r),fI(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=z5.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=z5.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},fI(t.meta,r.meta),fI(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(HRe,"mergeRpcOptions");gI.mergeRpcOptions=HRe;function fI(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}o(fI,"copy")});var gk=g(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.Deferred=Oc.DeferredState=void 0;var Ri;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ri=Oc.DeferredState||(Oc.DeferredState={}));var fk=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Ri.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Ri.PENDING)throw new Error(`cannot resolve ${Ri[this.state].toLowerCase()}`);this._resolve(e),this._state=Ri.RESOLVED}reject(e){if(this.state!==Ri.PENDING)throw new Error(`cannot reject ${Ri[this.state].toLowerCase()}`);this._reject(e),this._state=Ri.REJECTED}resolvePending(e){this._state===Ri.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ri.PENDING&&this.reject(e)}};Oc.Deferred=fk});var yk=g(EI=>{"use strict";Object.defineProperty(EI,"__esModule",{value:!0});EI.RpcOutputStreamController=void 0;var $5=gk(),Fc=Ct(),Ek=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){Fc.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){Fc.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){Fc.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(){Fc.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;Fc.assert(e,"bad state"),Fc.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 $5.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Fc.assert(s.state==$5.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};EI.RpcOutputStreamController=Ek});var Ik=g(tA=>{"use strict";var zRe=tA&&tA.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(tA,"__esModule",{value:!0});tA.UnaryCall=void 0;var Ck=class{static{o(this,"UnaryCall")}constructor(e,r,s,n,i,a,c){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return zRe(this,void 0,void 0,function*(){let[e,r,s,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:s,trailers:n}})}};tA.UnaryCall=Ck});var wk=g(rA=>{"use strict";var $Re=rA&&rA.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){t Line truncated
Polling status: ${z8.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(G8({state:r,stateProxy:s,isOperationError:c})),status:A}}return{response:u,status:A}}o(QSe,"pollOperationHelper");async function J8(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:A,processResult:d,getError:p,updateState:m,setDelay:h,isDone:f,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await QSe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(V8({status:I,response:C,state:r,stateProxy:s,isDone:f,processResult:d,getError:p,setErrorAsResult:y}),!z8.includes(I)){let B=A?.(C);B&&h(B);let N=c?.(C,r);if(N!==void 0){let _=E!==N;r.config.operationLocation=N,u?.(N,_)}else u?.(E,!1)}m?.(r,C)}}o(J8,"pollOperation");function W8(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(W8,"getOperationLocationPollingUrl");function j8(t){return t.headers.location}o(j8,"getLocationHeader");function K8(t){return t.headers["operation-location"]}o(K8,"getOperationLocationHeader");function X8(t){return t.headers["azure-asyncoperation"]}o(X8,"getAzureAsyncOperationHeader");function NSe(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(NSe,"findResourceLocation");function Z8(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=K8(e),a=X8(e),c=W8({operationLocation:i,azureAsyncOperation:a}),l=j8(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:NSe({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:n})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(Z8,"inferLroMode");function e5(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 KP(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 Fc.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(e5,"transformStatus");function SSe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return e5({status:r,statusCode:t.statusCode})}o(SSe,"getStatus");function RSe(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return e5({status:i,statusCode:t.statusCode})}o(RSe,"getProvisioningState");function KP(t){return t===202?"running":t<300?"succeeded":"failed"}o(KP,"toOperationStatus");function t5({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?TSe(new Date(e)):r*1e3}}o(t5,"parseRetryAfter");function r5(t){let e=t.flatResponse.error;if(!e){Fc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Fc.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(r5,"getErrorFromResponse");function TSe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(TSe,"calculatePollingIntervalFromDate");function s5(t){let{response:e,state:r,operationLocation:s}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return KP(e.rawResponse.statusCode);case"Body":return XP(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(s5,"getStatusFromInitialResponse");async function vSe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return Y8({init:o(async()=>{let a=await n.sendInitialRequest(),c=Z8({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:s?({flatResponse:a},c)=>s(a,c):({flatResponse:a})=>a,getOperationStatus:s5,setErrorAsResult:i})}o(vSe,"initHttpOperation");function n5({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r==Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=i,n=1;break;case 1:r[s++]=a<<2|(i&48)>>4,a=i,n=2;break;case 2:r[s++]=(a&15)<<4|(i&60)>>2,a=i,n=3;break;case 3:r[s++]=(a&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(mRe,"base64decode");sA.base64decode=mRe;function hRe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=yo[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=yo[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=yo[n|s>>6],e+=yo[s&63],r=0;break}return r&&(e+=yo[n],e+="=",r==1&&(e+="=")),e}o(hRe,"base64encode");sA.base64encode=hRe});var M5=g(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});ZC.utf8read=void 0;var lk=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function fRe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(lk(s)),n=0);return r.length?(n&&r.push(lk(s.slice(0,n))),r.join("")):lk(s.slice(0,n))}o(fRe,"utf8read");ZC.utf8read=fRe});var vm=g(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.WireType=Ri.mergeBinaryOptions=Ri.UnknownFieldHandler=void 0;var gRe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:a})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:a,data:c}of t.list(s))n.tag(i,a).raw(c)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(gRe=Ri.UnknownFieldHandler||(Ri.UnknownFieldHandler={}));function ERe(t,e){return Object.assign(Object.assign({},t),e)}o(ERe,"mergeBinaryOptions");Ri.mergeBinaryOptions=ERe;var yRe;(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"})(yRe=Ri.WireType||(Ri.WireType={}))});var tI=g(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.varint32read=Jr.varint32write=Jr.int64toString=Jr.int64fromString=Jr.varint64write=Jr.varint64read=void 0;function CRe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(CRe,"varint64read");Jr.varint64read=CRe;function IRe(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(IRe,"varint64write");Jr.varint64write=IRe;var eI=65536*65536;function BRe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let l=Number(t.slice(a,c));n*=r,s=s*r+l,s>=eI&&(n=n+(s/eI|0),s=s%eI)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(BRe,"int64fromString");Jr.int64fromString=BRe;function wRe(t,e){if(e>>>0<=2097151)return""+(eI*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(A,d){let p=A?String(A):"";return d?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(wRe,"int64toString");Jr.int64toString=wRe;function bRe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(bRe,"varint32write");Jr.varint32write=bRe;function xRe(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(xRe,"varint32read");Jr.varint32read=xRe});var ha=g(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.PbLong=ma.PbULong=ma.detectBi=void 0;var Pm=tI(),De;function O5(){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" Line truncated
`)}};SI.RpcError=Lk});var Ok=g(TI=>{"use strict";Object.defineProperty(TI,"__esModule",{value:!0});TI.mergeRpcOptions=void 0;var fj=Ct();function YTe(t,e){if(!e)return t;let r={};RI(t,r),RI(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=fj.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=fj.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},RI(t.meta,r.meta),RI(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(YTe,"mergeRpcOptions");TI.mergeRpcOptions=YTe;function RI(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}o(RI,"copy")});var Uk=g(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.Deferred=zc.DeferredState=void 0;var Pi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Pi=zc.DeferredState||(zc.DeferredState={}));var Fk=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Pi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Pi.PENDING)throw new Error(`cannot resolve ${Pi[this.state].toLowerCase()}`);this._resolve(e),this._state=Pi.RESOLVED}reject(e){if(this.state!==Pi.PENDING)throw new Error(`cannot reject ${Pi[this.state].toLowerCase()}`);this._reject(e),this._state=Pi.REJECTED}resolvePending(e){this._state===Pi.PENDING&&this.resolve(e)}rejectPending(e){this._state===Pi.PENDING&&this.reject(e)}};zc.Deferred=Fk});var Gk=g(vI=>{"use strict";Object.defineProperty(vI,"__esModule",{value:!0});vI.RpcOutputStreamController=void 0;var gj=Uk(),$c=Ct(),qk=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){$c.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){$c.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){$c.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(){$c.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;$c.assert(e,"bad state"),$c.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 gj.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;$c.assert(s.state==gj.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};vI.RpcOutputStreamController=qk});var zk=g(uA=>{"use strict";var JTe=uA&&uA.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(uA,"__esModule",{value:!0});uA.UnaryCall=void 0;var Hk=class{static{o(this,"UnaryCall")}constructor(e,r,s,n,i,a,c){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return JTe(this,void 0,void 0,function*(){let[e,r,s,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:s,trailers:n}})}};uA.UnaryCall=Hk});var Vk=g(AA=>{"use strict";var WTe=AA&&AA.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){t Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(xve,"logUnexpecedPropertyAccessOnce");function Qve(){Object.keys(FI).forEach(function(t){delete FI[t]})}o(Qve,"resetLoggedProperties")});var qI=g(ki=>{"use strict";ki.__esModule=!0;ki.HandlebarsEnvironment=gD;function Jj(t){return t&&t.__esModule?t:{default:t}}o(Jj,"_interopRequireDefault");var Vc=Ar(),Nve=en(),hD=Jj(Nve),Sve=AD(),Rve=zj(),Tve=pD(),UI=Jj(Tve),vve=mD(),Pve="4.7.10";ki.VERSION=Pve;var kve=8;ki.COMPILER_REVISION=kve;var Dve=7;ki.LAST_COMPATIBLE_COMPILER_REVISION=Dve;var _ve={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};ki.REVISION_CHANGES=_ve;var fD="[object Object]";function gD(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Sve.registerDefaultHelpers(this),Rve.registerDefaultDecorators(this)}o(gD,"HandlebarsEnvironment");gD.prototype={constructor:gD,logger:UI.default,log:UI.default.log,registerHelper:o(function(e,r){if(Vc.toString.call(e)===fD){if(r)throw new hD.default("Arg not supported with multiple helpers");Vc.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(Vc.toString.call(e)===fD)Vc.extend(this.partials,e);else{if(typeof r>"u")throw new hD.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(Vc.toString.call(e)===fD){if(r)throw new hD.default("Arg not supported with multiple decorators");Vc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){vve.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Lve=UI.default.log;ki.log=Lve;ki.createFrame=Vc.createFrame;ki.logger=UI.default});var jj=g((GI,Wj)=>{"use strict";GI.__esModule=!0;function ED(t){this.string=t}o(ED,"SafeString");ED.prototype.toString=ED.prototype.toHTML=function(){return""+this.string};GI.default=ED;Wj.exports=GI.default});var Kj=g(yD=>{"use strict";yD.__esModule=!0;yD.wrapHelper=Mve;function Mve(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(Mve,"wrapHelper")});var r9=g(fa=>{"use strict";fa.__esModule=!0;fa.checkRevision=Hve;fa.template=zve;fa.wrapProgram=HI;fa.resolvePartial=$ve;fa.invokePartial=Vve;fa.noop=e9;function Ove(t){return t&&t.__esModule?t:{default:t}}o(Ove,"_interopRequireDefault");function Fve(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(Fve,"_interopRequireWildcard");var Uve=Ar(),Yc=Fve(Uve),qve=en(),vn=Ove(qve),go=qI(),Xj=AD(),Gve=Kj(),CD=mD();function Hve(t){var e=t&&t[0]||1,r=go.COMPILER_REVISION;if(!(e>=go.LAST_COMPATIBLE_COMPILER_REVISION&&e<=go.COMPILER_REVISION))if(e<go.LAST_COMPATIBLE_COMPILER_REVISION){var s=go.REVISION_CHANGES[r],n=go.REVISION_CHANGES[e];throw new vn.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new vn.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(Hve,"checkRevision");function zve(t,e){if(!e)throw new vn.default("No environment passed to template");if(!t||!t.main)throw new vn.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(a,c,l){l.hash&&(c=Yc.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&Yc.isFunction(a))throw new vn.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new vn.default("The partial "+l.name+" could not be compiled: partials must be strings or functions returning strings");l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)}if(u!=null){if(l.indent){for(var A=u.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(RPe,"logUnexpecedPropertyAccessOnce");function TPe(){Object.keys(XI).forEach(function(t){delete XI[t]})}o(TPe,"resetLoggedProperties")});var eB=g(Li=>{"use strict";Li.__esModule=!0;Li.HandlebarsEnvironment=UD;function C6(t){return t&&t.__esModule?t:{default:t}}o(C6,"_interopRequireDefault");var Xc=Ar(),vPe=rn(),OD=C6(vPe),PPe=DD(),kPe=f6(),DPe=LD(),ZI=C6(DPe),_Pe=MD(),LPe="4.7.10";Li.VERSION=LPe;var MPe=8;Li.COMPILER_REVISION=MPe;var OPe=7;Li.LAST_COMPATIBLE_COMPILER_REVISION=OPe;var FPe={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Li.REVISION_CHANGES=FPe;var FD="[object Object]";function UD(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},PPe.registerDefaultHelpers(this),kPe.registerDefaultDecorators(this)}o(UD,"HandlebarsEnvironment");UD.prototype={constructor:UD,logger:ZI.default,log:ZI.default.log,registerHelper:o(function(e,r){if(Xc.toString.call(e)===FD){if(r)throw new OD.default("Arg not supported with multiple helpers");Xc.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(Xc.toString.call(e)===FD)Xc.extend(this.partials,e);else{if(typeof r>"u")throw new OD.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(Xc.toString.call(e)===FD){if(r)throw new OD.default("Arg not supported with multiple decorators");Xc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){_Pe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var UPe=ZI.default.log;Li.log=UPe;Li.createFrame=Xc.createFrame;Li.logger=ZI.default});var B6=g((tB,I6)=>{"use strict";tB.__esModule=!0;function qD(t){this.string=t}o(qD,"SafeString");qD.prototype.toString=qD.prototype.toHTML=function(){return""+this.string};tB.default=qD;I6.exports=tB.default});var w6=g(GD=>{"use strict";GD.__esModule=!0;GD.wrapHelper=qPe;function qPe(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(qPe,"wrapHelper")});var S6=g(Ea=>{"use strict";Ea.__esModule=!0;Ea.checkRevision=YPe;Ea.template=JPe;Ea.wrapProgram=rB;Ea.resolvePartial=WPe;Ea.invokePartial=jPe;Ea.noop=Q6;function GPe(t){return t&&t.__esModule?t:{default:t}}o(GPe,"_interopRequireDefault");function HPe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(HPe,"_interopRequireWildcard");var zPe=Ar(),Zc=HPe(zPe),$Pe=rn(),kn=GPe($Pe),Co=eB(),b6=DD(),VPe=w6(),HD=MD();function YPe(t){var e=t&&t[0]||1,r=Co.COMPILER_REVISION;if(!(e>=Co.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Co.COMPILER_REVISION))if(e<Co.LAST_COMPATIBLE_COMPILER_REVISION){var s=Co.REVISION_CHANGES[r],n=Co.REVISION_CHANGES[e];throw new kn.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new kn.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(YPe,"checkRevision");function JPe(t,e){if(!e)throw new kn.default("No environment passed to template");if(!t||!t.main)throw new kn.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(a,c,l){l.hash&&(c=Zc.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&Zc.isFunction(a))throw new kn.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new kn.default("The partial "+l.name+" could not be compiled: partials must be strings or functions returning strings");l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)}if(u!=null){if(l.indent){for(var A=u.split(`
`),d=0,p=A.length;d<p&&!(!A[d]&&d+1===p);d++)A[d]=l.indent+A[d];u=A.join(`
`)}return u}else throw new vn.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var n={strict:o(function(c,l,u){if(!c||!(l in c))throw new vn.default('"'+l+'" not defined in '+c,{loc:u});return n.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)&&!CD.isPrototypeConstructor(c,l,u)||CD.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,A=0;A<u;A++){var d=c[A]&&n.lookupProperty(c[A],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Yc.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,A,d){var p=this.programs[c],m=this.fn(c);return l||d||A||u?p=HI(this,c,m,l,u,A,d):p||(p=this.programs[c]=HI(this,c,m)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Yc.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=Yve(a,l));var u=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function d(p){return""+t.main(n,p,n.helpers,n.partials,l,A,u)}return o(d,"main"),d=t9(t.main,d,n,c.depths||[],l,A),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};Zj(c,e.helpers,n),Zj(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Yc.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=CD.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;Xj.moveHelperToHooks(n,"helperMissing",l),Xj.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new vn.default("must pass block params");if(t.useDepths&&!u)throw new vn.default("must pass parent depths");return HI(n,a,t[a],c,0,l,u)},i}o(zve,"template");function HI(t,e,r,s,n,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(A=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),A)}return o(c,"prog"),c=t9(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(HI,"wrapProgram");function $ve(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=zI(r.partials,t)):r.name==="@partial-block"?t=zI(r.data,"partial-block"):t=zI(r.partials,r.name),t}o($ve,"resolvePartial");function Vve(t,e,r){var s=zI(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==e9&&(function(){r.data=go.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=go.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Yc.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new vn.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(Vve,"invokePartial");function e9(){return""}o(e9,"noop");function zI(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(zI,"lookupOwnProperty");function Yve(t,e){return(!e||!("root"in e))&&(e=e?go.createFrame(e):{},e.root=t),e}o(Yve,"initData");function t9(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),Yc.extend(e,a)}return e}o(t9,"executeDecorators");function Zj(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=Jve(n,r)})}o(Zj,"addHelpers");function Jve(t,e){var r=e.lookupProperty;return Gve.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(Jve,"passLookupPropertyOption")});var ID=g(($I,s9)=>{"use strict";$I.__esModule=!0;$I.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};s9.exports=$I.default});var c9=g((VI,a9)=>{"use strict";VI.__esModule=!0;function wD(t){return t&&t.__esModule?t:{default:t}}o(wD,"_interopRequireDefault");function bD(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(bD,"_interopRequireWildcard");var Wve=qI(),n9=bD(Wve),jve=jj(),Kve=wD(jve),Xve=en(),Zve=wD(Xve), Line truncated
`)}return u}else throw new kn.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var n={strict:o(function(c,l,u){if(!c||!(l in c))throw new kn.default('"'+l+'" not defined in '+c,{loc:u});return n.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)&&!HD.isPrototypeConstructor(c,l,u)||HD.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,A=0;A<u;A++){var d=c[A]&&n.lookupProperty(c[A],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Zc.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,A,d){var p=this.programs[c],m=this.fn(c);return l||d||A||u?p=rB(this,c,m,l,u,A,d):p||(p=this.programs[c]=rB(this,c,m)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Zc.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=KPe(a,l));var u=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function d(p){return""+t.main(n,p,n.helpers,n.partials,l,A,u)}return o(d,"main"),d=N6(t.main,d,n,c.depths||[],l,A),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};x6(c,e.helpers,n),x6(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Zc.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=HD.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;b6.moveHelperToHooks(n,"helperMissing",l),b6.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new kn.default("must pass block params");if(t.useDepths&&!u)throw new kn.default("must pass parent depths");return rB(n,a,t[a],c,0,l,u)},i}o(JPe,"template");function rB(t,e,r,s,n,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(A=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),A)}return o(c,"prog"),c=N6(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(rB,"wrapProgram");function WPe(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=sB(r.partials,t)):r.name==="@partial-block"?t=sB(r.data,"partial-block"):t=sB(r.partials,r.name),t}o(WPe,"resolvePartial");function jPe(t,e,r){var s=sB(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==Q6&&(function(){r.data=Co.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Co.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Zc.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new kn.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(jPe,"invokePartial");function Q6(){return""}o(Q6,"noop");function sB(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(sB,"lookupOwnProperty");function KPe(t,e){return(!e||!("root"in e))&&(e=e?Co.createFrame(e):{},e.root=t),e}o(KPe,"initData");function N6(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),Zc.extend(e,a)}return e}o(N6,"executeDecorators");function x6(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=XPe(n,r)})}o(x6,"addHelpers");function XPe(t,e){var r=e.lookupProperty;return VPe.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(XPe,"passLookupPropertyOption")});var zD=g((nB,R6)=>{"use strict";nB.__esModule=!0;nB.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};R6.exports=nB.default});var D6=g((iB,k6)=>{"use strict";iB.__esModule=!0;function VD(t){return t&&t.__esModule?t:{default:t}}o(VD,"_interopRequireDefault");function YD(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(YD,"_interopRequireWildcard");var ZPe=eB(),T6=YD(ZPe),eke=B6(),tke=VD(eke),rke=rn(),ske=VD(rke), Line truncated
`+this.lexer.showPosition()+`
Expecting `+de.join(", ")+", got '"+(this.terminals_[B]||B)+"'":mr="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(mr,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:de})}}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+B);switch(q[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(q[1]),B=null,N?(B=N,N=null):(p=this.lexer.yyleng,A=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,m>0&&m--);break;case 2:if(me=this.productions_[q[1]][1],ke.$=c[c.length-me],ke._$={first_line:l[l.length-(me||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(me||1)].first_column,last_column:l[l.length-1].last_column},E&&(ke._$.range=[l[l.length-(me||1)].range[0],l[l.length-1].range[1]]),et=this.performAction.call(ke,A,p,d,this.yy,q[1],c,l),typeof et<"u")return et;me&&(a=a.slice(0,-1*me*2),c=c.slice(0,-1*me),l=l.slice(0,-1*me)),a.push(this.productions_[q[1]][0]),c.push(ke.$),l.push(ke._$),bt=u[a[a.length-2]][a[a.length-1]],a.push(bt);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
Expecting `+de.join(", ")+", got '"+(this.terminals_[B]||B)+"'":hr="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(hr,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:y,expected:de})}}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+B);switch(R[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(R[1]),B=null,N?(B=N,N=null):(p=this.lexer.yyleng,A=this.lexer.yytext,d=this.lexer.yylineno,y=this.lexer.yylloc,m>0&&m--);break;case 2:if(me=this.productions_[R[1]][1],ke.$=c[c.length-me],ke._$={first_line:l[l.length-(me||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(me||1)].first_column,last_column:l[l.length-1].last_column},E&&(ke._$.range=[l[l.length-(me||1)].range[0],l[l.length-1].range[1]]),_e=this.performAction.call(ke,A,p,d,this.yy,R[1],c,l),typeof _e<"u")return _e;me&&(a=a.slice(0,-1*me*2),c=c.slice(0,-1*me),l=l.slice(0,-1*me)),a.push(this.productions_[R[1]][0]),c.push(ke.$),l.push(ke._$),bt=u[a[a.length-2]][a[a.length-1]],a.push(bt);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,l,u,A;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),p=0;p<d.length&&(c=this._input.match(this.rules[d[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);return a?(A=a[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,d[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return s.options={},s.performAction=o(function(i,a,c,l){function u(d,p){return a.yytext=a.yytext.substring(d,a.yyleng-p+d)}o(u,"strip");var A=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();JI.default=nPe;A9.exports=JI.default});var ND=g(QD=>{"use strict";QD.__esModule=!0;var iPe=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];QD.NODE_TYPES=iPe});var XI=g((KI,f9)=>{"use strict";KI.__esModule=!0;function oPe(t){return t&&t.__esModule?t:{default:t}}o(oPe,"_interopRequireDefault");var aPe=en(),SD=oPe(aPe),cPe=Ar(),lPe=ND();function jI(){this.parents=[]}o(jI,"Visitor");function p9(t,e){return cPe.indexOf(lPe.NODE_TYPES,e)!==-1||!(e in jI.prototype)&&typeof t[e]=="function"}o(p9,"isDispatchable");jI.prototype={constructor:jI,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!p9(this,s.type))throw new SD.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new SD.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},"acceptArray"),accept:o(function(e){if(e){if(!p9(this,e.type)||!this[e.type])throw new SD.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](eLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Kc(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Kc?e:(e=jD(e,this,r),new Kc(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return e=e+"",ike.test(e)?Z9(e):'"'+e+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var a=jD(e[i],r);a!=="undefined"&&s.push([r.quotedString(i),":",a])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(jD(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};aB.default=e6});var c6=g((cB,a6)=>{"use strict";cB.__esModule=!0;function n6(t){return t&&t.__esModule?t:{default:t}}o(n6,"_interopRequireDefault");var r6=qI(),lke=en(),XD=n6(lke),uke=Ar(),i6=t6(),s6=n6(i6);function EA(t){this.value=t}o(EA,"Literal");function yA(){}o(yA,"JavaScriptCompiler");yA.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=r6.COMPILER_REVISION,r=r6.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return uke.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new XD.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return s.options={},s.performAction=o(function(i,a,c,l){function u(d,p){return a.yytext=a.yytext.substring(d,a.yyleng-p+d)}o(u,"strip");var A=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();aB.default=cke;M6.exports=aB.default});var jD=g(WD=>{"use strict";WD.__esModule=!0;var lke=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];WD.NODE_TYPES=lke});var AB=g((uB,G6)=>{"use strict";uB.__esModule=!0;function uke(t){return t&&t.__esModule?t:{default:t}}o(uke,"_interopRequireDefault");var Ake=rn(),KD=uke(Ake),dke=Ar(),pke=jD();function lB(){this.parents=[]}o(lB,"Visitor");function F6(t,e){return dke.indexOf(pke.NODE_TYPES,e)!==-1||!(e in lB.prototype)&&typeof t[e]=="function"}o(F6,"isDispatchable");lB.prototype={constructor:lB,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!F6(this,s.type))throw new KD.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new KD.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},"acceptArray"),accept:o(function(e){if(e){if(!F6(this,e.type)||!this[e.type])throw new KD.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](eLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new sl(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof sl?e:(e=y_(e,this,r),new sl(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return e=e+"",lDe.test(e)?x9(e):'"'+e+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var a=y_(e[i],r);a!=="undefined"&&s.push([r.quotedString(i),":",a])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(y_(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};CB.default=Q9});var D9=g((IB,k9)=>{"use strict";IB.__esModule=!0;function T9(t){return t&&t.__esModule?t:{default:t}}o(T9,"_interopRequireDefault");var S9=eB(),pDe=rn(),I_=T9(pDe),mDe=Ar(),v9=N9(),R9=T9(v9);function NA(t){this.value=t}o(NA,"Literal");function SA(){}o(SA,"JavaScriptCompiler");SA.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=S9.COMPILER_REVISION,r=S9.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return mDe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new I_.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var A=this.createFunctionContext(n);if(this.isChild)return A;var d={compiler:this.compilerInfo(),main:A};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var p=this.context,m=p.programs,h=p.decorators;for(l=0,u=m.length;l<u;l++)d[l]=m[l],h[l]&&(d[l+"_d"]=h[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),n?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new s6.default(this.options.srcName),this.decorators=new s6.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(s+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`),this.decorators=this.decorators.merge()));var A=this.createFunctionContext(n);if(this.isChild)return A;var d={compiler:this.compilerInfo(),main:A};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var p=this.context,m=p.programs,h=p.decorators;for(l=0,u=m.length;l<u;l++)d[l]=m[l],h[l]&&(d[l+"_d"]=h[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),n?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new R9.default(this.options.srcName),this.decorators=new R9.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(s+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(i?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),i=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -82,52 +82,55 @@ Expecting `+de.join(", ")+", got '"+(this.terminals_[B]||B)+"'":mr="Parse error
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Ake(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(A){a.replaceStack(function(d){var p=a.nameLookup(d,r[A],e);return n?[" && ",p]:[" != null ? ",p," : ",d]})},"_loop"),u=s;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),a=[];s&&a.push(i.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",s,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};dt.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};dt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};dt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};dt.prototype.BlockStatement=dt.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};dt.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};dt.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};dt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};dt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};dt.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};dt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};dt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};dt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};dt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};dt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};dt.prototype.NullLiteral=function(){return"NULL"};dt.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};dt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var t_=g((zut,h6)=>{var AB=A6().default,m6=d6();AB.PrintVisitor=m6.PrintVisitor;AB.print=m6.print;h6.exports=AB;function p6(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=AB.compile(s)}o(p6,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=p6,require.extensions[".hbs"]=p6)});var k6=g((Vut,Co)=>{var Pe=require("fs"),pB=require("os"),Ft=require("path"),f6=require("crypto"),_i={fs:Pe.constants,os:pB.constants},g6="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",I6=/XXXXXX/,Nke=3,B6=(_i.O_CREAT||_i.fs.O_CREAT)|(_i.O_EXCL||_i.fs.O_EXCL)|(_i.O_RDWR||_i.fs.O_RDWR),Ske=pB.platform()==="win32",Rke=_i.EBADF||_i.os.errno.EBADF,Tke=_i.ENOENT||_i.os.errno.ENOENT,w6=448,b6=384,vke="exit",IA=[],x6=Pe.rmdirSync.bind(Pe),Q6=!1;function Pke(t,e){return Pe.rm(t,{recursive:!0},e)}o(Pke,"rimraf");function N6(t){return Pe.rmSync(t,{recursive:!0})}o(N6,"FN_RIMRAF_SYNC");function i_(t,e){let r=BA(t,e),s=r[0],n=r[1];Gke(s,function(i,a){if(i)return n(i);let c=a.tries;o((function l(){try{let u=R6(a);Pe.stat(u,function(A){if(!A)return c-- >0?l():n(new Error("Could not get a unique tmp filename, max tries reached "+u));n(null,u)})}catch(u){n(u)}}),"_getUniqueName")()})}o(i_,"tmpName");function o_(t){let e=BA(t),r=e[0],s=Hke(r),n=s.tries;do{let i=R6(s);try{Pe.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}o(o_,"tmpNameSync");function kke(t,e){let r=BA(t,e),s=r[0],n=r[1];i_(s,o(function(a,c){if(a)return n(a);Pe.open(c,B6,s.mode||b6,o(function(u,A){if(u)return n(u);if(s.discardDescriptor)return Pe.close(A,o(function(p){return n(p,c,void 0,s_(c,-1,s,!1))},"_discardCallback"));{let d=s.discardDescriptor||s.detachDescriptor;n(null,c,A,s_(c,d?-1:A,s,!1))}},"_fileCreated"))},"_tmpNameCreated"))}o(kke,"file");function Dke(t){let e=BA(t),r=e[0],s=r.discardDescriptor||r.detachDescriptor,n=o_(r),i=Pe.openSync(n,B6,r.mode||b6);return r.discardDescriptor&&(Pe.closeSync(i),i=void 0),{name:n,fd:i,removeCallback:s_(n,s?-1:i,r,!0)}}o(Dke,"fileSync");function _ke(t,e){let r=BA(t,e),s=r[0],n=r[1];i_(s,o(function(a,c){if(a)return n(a);Pe.mkdir(c,s.mode||w6,o(function(u){if(u)return n(u);n(null,c,S6(c,s,!1))},"_dirCreated"))},"_tmpNameCreated"))}o(_ke,"dir");function Lke(t){let e=BA(t),r=e[0],s=o_(r);return Pe.mkdirSync(s,r.mode||w6),{name:s,removeCallback:S6(s,r,!0)}}o(Lke,"dirSync");function Mke(t,e){let r=o(function(s){if(s&&!n_(s))return e(s);e()},"_handler");0<=t[0]?Pe.close(t[0],function(){Pe.unlink(t[1],r)}):Pe.unlink(t[1],r)}o(Mke,"_removeFileAsync");function Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Hd,"getBooleanInput");function VQ(t,e){if(process.env.GITHUB_OUTPUT||"")return vA("OUTPUT",fh(t,e));process.stdout.write($Q.EOL),_n("set-output",{name:t},Dn(e))}o(VQ,"setOutput");function cH(t){process.exitCode=zQ.Failure,su(t)}o(cH,"setFailed");function sc(){return process.env.RUNNER_DEBUG==="1"}o(sc,"isDebug");function b(t){_n("debug",{},t)}o(b,"debug");function su(t,e={}){_n("error",XB(e),t instanceof Error?t.toString():t)}o(su,"error");function Xe(t,e={}){_n("warning",XB(e),t instanceof Error?t.toString():t)}o(Xe,"warning");function S(t){process.stdout.write(t+$Q.EOL)}o(S,"info");function Kde(t){ew("group",t)}o(Kde,"startGroup");function Xde(){ew("endgroup")}o(Xde,"endGroup");function fe(t,e){return jde(this,void 0,void 0,function*(){Kde(t);let r;try{r=yield e()}finally{Xde()}return r})}o(fe,"group");function nu(t,e){if(process.env.GITHUB_STATE||"")return vA("STATE",fh(t,e));_n("save-state",{name:t},Dn(e))}o(nu,"saveState");function lH(t){return process.env[`STATE_${t}`]||""}o(lH,"getState");var Lm=w(require("fs"),1),sD=w(require("os"),1),nD=w(require("path"),1);var AH=w(require("os"),1);function zd(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(zd,"toCommandValue");function dH(t,e,r){let s=new YQ(t,e,r);process.stdout.write(s.toString()+AH.EOL)}o(dH,"issueCommand");var uH="::",YQ=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=uH+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let n=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${epe(n)}`)}}return e+=`${uH}${Zde(this.message)}`,e}};function Zde(t){return zd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Zde,"escapeData");function epe(t){return zd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(epe,"escapeProperty");var fH=w(require("os"),1);var mH=require("os"),$d=require("fs");var JQ=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:tpe,appendFile:rpe,writeFile:spe}=$d.promises,pH="GITHUB_STEP_SUMMARY";var WQ=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return JQ(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[pH];if(!e)throw new Error(`Unable to find environment variable for $${pH}. Check if your runtime environment supports job summaries.`);try{yield tpe(e,$d.constants.R_OK|$d.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,s={}){let n=Object.entries(s).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return JQ(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?spe:rpe)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return JQ(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(mH.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(s,n);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(n=>{let i=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:A}=a,d=c?"th":"td",p=Object.assign(Object.assign({},u&&{colspan:u}),A&&{rowspan:A});return this.wrap(d,l,p)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},a=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let s=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(n,e);return this.addRaw(i).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 s=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(hDe(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(A){a.replaceStack(function(d){var p=a.nameLookup(d,r[A],e);return n?[" && ",p]:[" != null ? ",p," : ",d]})},"_loop"),u=s;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),a=[];s&&a.push(i.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",s,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};dt.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};dt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};dt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};dt.prototype.BlockStatement=dt.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};dt.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};dt.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};dt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};dt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};dt.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};dt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};dt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};dt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};dt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};dt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};dt.prototype.NullLiteral=function(){return"NULL"};dt.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};dt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var b_=g((Vdt,q9)=>{var bB=M9().default,U9=O9();bB.PrintVisitor=U9.PrintVisitor;bB.print=U9.print;q9.exports=bB;function F9(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=bB.compile(s)}o(F9,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=F9,require.extensions[".hbs"]=F9)});var iK=g((Jdt,wo)=>{var Pe=require("fs"),QB=require("os"),Ft=require("path"),G9=require("crypto"),Oi={fs:Pe.constants,os:QB.constants},H9="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Y9=/XXXXXX/,vDe=3,J9=(Oi.O_CREAT||Oi.fs.O_CREAT)|(Oi.O_EXCL||Oi.fs.O_EXCL)|(Oi.O_RDWR||Oi.fs.O_RDWR),PDe=QB.platform()==="win32",kDe=Oi.EBADF||Oi.os.errno.EBADF,DDe=Oi.ENOENT||Oi.os.errno.ENOENT,W9=448,j9=384,_De="exit",TA=[],K9=Pe.rmdirSync.bind(Pe),X9=!1;function LDe(t,e){return Pe.rm(t,{recursive:!0},e)}o(LDe,"rimraf");function Z9(t){return Pe.rmSync(t,{recursive:!0})}o(Z9,"FN_RIMRAF_SYNC");function S_(t,e){let r=vA(t,e),s=r[0],n=r[1];VDe(s,function(i,a){if(i)return n(i);let c=a.tries;o((function l(){try{let u=tK(a);Pe.stat(u,function(A){if(!A)return c-- >0?l():n(new Error("Could not get a unique tmp filename, max tries reached "+u));n(null,u)})}catch(u){n(u)}}),"_getUniqueName")()})}o(S_,"tmpName");function R_(t){let e=vA(t),r=e[0],s=YDe(r),n=s.tries;do{let i=tK(s);try{Pe.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}o(R_,"tmpNameSync");function MDe(t,e){let r=vA(t,e),s=r[0],n=r[1];S_(s,o(function(a,c){if(a)return n(a);Pe.open(c,J9,s.mode||j9,o(function(u,A){if(u)return n(u);if(s.discardDescriptor)return Pe.close(A,o(function(p){return n(p,c,void 0,Q_(c,-1,s,!1))},"_discardCallback"));{let d=s.discardDescriptor||s.detachDescriptor;n(null,c,A,Q_(c,d?-1:A,s,!1))}},"_fileCreated"))},"_tmpNameCreated"))}o(MDe,"file");function ODe(t){let e=vA(t),r=e[0],s=r.discardDescriptor||r.detachDescriptor,n=R_(r),i=Pe.openSync(n,J9,r.mode||j9);return r.discardDescriptor&&(Pe.closeSync(i),i=void 0),{name:n,fd:i,removeCallback:Q_(n,s?-1:i,r,!0)}}o(ODe,"fileSync");function FDe(t,e){let r=vA(t,e),s=r[0],n=r[1];S_(s,o(function(a,c){if(a)return n(a);Pe.mkdir(c,s.mode||W9,o(function(u){if(u)return n(u);n(null,c,eK(c,s,!1))},"_dirCreated"))},"_tmpNameCreated"))}o(FDe,"dir");function UDe(t){let e=vA(t),r=e[0],s=R_(r);return Pe.mkdirSync(s,r.mode||W9),{name:s,removeCallback:eK(s,r,!0)}}o(UDe,"dirSync");function qDe(t,e){let r=o(function(s){if(s&&!N_(s))return e(s);e()},"_handler");0<=t[0]?Pe.close(t[0],function(){Pe.unlink(t[1],r)}):Pe.unlink(t[1],r)}o(qDe,"_removeFileAsync");function Line truncated
`,"\v","\f","\r"," ","\xA0","\u1680","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005","\u2006","\u2007","\u2008","\u2009","\u200A","\u2028","\u2029","\u202F","\u205F","\u3000","\uFEFF"],ILe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fX.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ELe,MAX_SAFE_BUILD_LENGTH:yLe,MAX_SAFE_INTEGER:gLe,WHITESPACE_CHARACTERS:CLe,RELEASE_TYPES:ILe,SEMVER_SPEC_VERSION:fLe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var dh=g((yht,gX)=>{"use strict";var BLe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};gX.exports=BLe});var OA=g((Fi,EX)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:nL,MAX_SAFE_BUILD_LENGTH:wLe,MAX_LENGTH:bLe}=cl(),xLe=dh();Fi=EX.exports={};var QLe=Fi.re=[],NLe=Fi.safeRe=[],U=Fi.src=[],SLe=Fi.safeSrc=[],q=Fi.t={},RLe=0,iL="[a-zA-Z0-9-]",TLe=[["\\s",1],["\\d",bLe],[iL,wLe]],vLe=o(t=>{for(let[e,r]of TLe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),ae=o((t,e,r)=>{let s=vLe(e),n=RLe++;xLe(t,n,e),q[t]=n,U[n]=e,SLe[n]=s,QLe[n]=new RegExp(e,r?"g":void 0),NLe[n]=new RegExp(s,r?"g":void 0)},"createToken");ae("NUMERICIDENTIFIER","0|[1-9]\\d*");ae("NUMERICIDENTIFIERLOOSE","\\d+");ae("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${iL}*`);ae("MAINVERSION",`(${U[q.NUMERICIDENTIFIER]})\\.(${U[q.NUMERICIDENTIFIER]})\\.(${U[q.NUMERICIDENTIFIER]})`);ae("MAINVERSIONLOOSE",`(${U[q.NUMERICIDENTIFIERLOOSE]})\\.(${U[q.NUMERICIDENTIFIERLOOSE]})\\.(${U[q.NUMERICIDENTIFIERLOOSE]})`);ae("PRERELEASEIDENTIFIER",`(?:${U[q.NONNUMERICIDENTIFIER]}|${U[q.NUMERICIDENTIFIER]})`);ae("PRERELEASEIDENTIFIERLOOSE",`(?:${U[q.NONNUMERICIDENTIFIER]}|${U[q.NUMERICIDENTIFIERLOOSE]})`);ae("PRERELEASE",`(?:-(${U[q.PRERELEASEIDENTIFIER]}(?:\\.${U[q.PRERELEASEIDENTIFIER]})*))`);ae("PRERELEASELOOSE",`(?:-?(${U[q.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${U[q.PRERELEASEIDENTIFIERLOOSE]})*))`);ae("BUILDIDENTIFIER",`${iL}+`);ae("BUILD",`(?:\\+(${U[q.BUILDIDENTIFIER]}(?:\\.${U[q.BUILDIDENTIFIER]})*))`);ae("FULLPLAIN",`v?${U[q.MAINVERSION]}${U[q.PRERELEASE]}?${U[q.BUILD]}?`);ae("FULL",`^${U[q.FULLPLAIN]}$`);ae("LOOSEPLAIN",`[v=\\s]*${U[q.MAINVERSIONLOOSE]}${U[q.PRERELEASELOOSE]}?${U[q.BUILD]}?`);ae("LOOSE",`^${U[q.LOOSEPLAIN]}$`);ae("GTLT","((?:<|>)?=?)");ae("XRANGEIDENTIFIERLOOSE",`${U[q.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ae("XRANGEIDENTIFIER",`${U[q.NUMERICIDENTIFIER]}|x|X|\\*`);ae("XRANGEPLAIN",`[v=\\s]*(${U[q.XRANGEIDENTIFIER]})(?:\\.(${U[q.XRANGEIDENTIFIER]})(?:\\.(${U[q.XRANGEIDENTIFIER]})(?:${U[q.PRERELEASE]})?${U[q.BUILD]}?)?)?`);ae("XRANGEPLAINLOOSE",`[v=\\s]*(${U[q.XRANGEIDENTIFIERLOOSE]})(?:\\.(${U[q.XRANGEIDENTIFIERLOOSE]})(?:\\.(${U[q.XRANGEIDENTIFIERLOOSE]})(?:${U[q.PRERELEASELOOSE]})?${U[q.BUILD]}?)?)?`);ae("XRANGE",`^${U[q.GTLT]}\\s*${U[q.XRANGEPLAIN]}$`);ae("XRANGELOOSE",`^${U[q.GTLT]}\\s*${U[q.XRANGEPLAINLOOSE]}$`);ae("COERCEPLAIN",`(^|[^\\d])(\\d{1,${nL}})(?:\\.(\\d{1,${nL}}))?(?:\\.(\\d{1,${nL}}))?`);ae("COERCE",`${U[q.COERCEPLAIN]}(?:$|[^\\d])`);ae("COERCEFULL",U[q.COERCEPLAIN]+`(?:${U[q.PRERELEASE]})?(?:${U[q.BUILD]})?(?:$|[^\\d])`);ae("COERCERTL",U[q.COERCE],!0);ae("COERCERTLFULL",U[q.COERCEFULL],!0);ae("LONETILDE","(?:~>?)");ae("TILDETRIM",`(\\s*)${U[q.LONETILDE]}\\s+`,!0);Fi.tildeTrimReplace="$1~";ae("TILDE",`^${U[q.LONETILDE]}${U[q.XRANGEPLAIN]}$`);ae("TILDELOOSE",`^${U[q.LONETILDE]}${U[q.XRANGEPLAINLOOSE]}$`);ae("LONECARET","(?:\\^)");ae("CARETTRIM",`(\\s*)${U[q.LONECARET]}\\s+`,!0);Fi.caretTrimReplace="$1^";ae("CARET",`^${U[q.LONECARET]}${U[q.XRANGEPLAIN]}$`);ae("CARETLOOSE",`^${U[q.LONECARET]}${U[q.XRANGEPLAINLOOSE]}$`);ae("COMPARATORLOOSE",`^${U[q.GTLT]}\\s*(${U[q.LOOSEPLAIN]})$|^$`);ae("COMPARATOR",`^${U[q.GTLT]}\\s*(${U[q.FULLPLAIN]})$|^$`);ae("COMPARATORTRIM",`(\\s*)${U[q.GTLT]}\\s*(${U[q.LOOSEPLAIN]}|${U[q.XRANGEPLAIN]})`,!0);Fi.comparatorTrimReplace="$1$2$3";ae("HYPHENRANGE",`^\\s*(${U[q.XRANGEPLAIN]})\\s+-\\s+(${U[q.XRANGEPLAIN]})\\s*$`);ae("HYPHENRANGELOOSE",`^\\s*(${U[q.XRANGEPLAINLOOSE]})\\s+-\\s+(${U[q.XRANGEPLAINLOOSE]})\\s*$`);ae("STAR","(<|>)?=?\\s*\\*");ae("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ae("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var $B=g((Iht,yX)=>{"use strict";var PLe=Object.freeze({loose:!0}),kLe=Object.freeze({}),DLe=o(t=>t?typeof t!="object"?PLe:t:kLe,"parseOptions");yX.exports=DLe});var oL=g((wht,BX)=>{"use strict";var CX=/^[0-9]+$/,IX=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=CX.test(t),s=CX.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},"compareIdentifiers"),_Le=o((t,e)=>IX(e,t),"rcompareIdentifiers");BX.exports={compareIdentifiers:IX,rcompareIdentifiers:_Le}});var sr=g((xht,bX)=>{"use strict";var VB=dh(),{MAX_LENGTH:wX,MAX_SAFE_INTEGER:YB}=cl(),{safeRe:JB,t:WB}=OA(),LLe=$B(),{compareIdentifiers:aL}=oL(),MLe=o((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let s=0;s<r.length;s++)if(aL(t[s],r[s])!==0)return!1;return Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Kd,"getBooleanInput");function iQ(t,e){if(process.env.GITHUB_OUTPUT||"")return FA("OUTPUT",Sh(t,e));process.stdout.write(nQ.EOL),Mn("set-output",{name:t},Ln(e))}o(iQ,"setOutput");function LH(t){process.exitCode=sQ.Failure,uu(t)}o(LH,"setFailed");function ic(){return process.env.RUNNER_DEBUG==="1"}o(ic,"isDebug");function b(t){Mn("debug",{},t)}o(b,"debug");function uu(t,e={}){Mn("error",Aw(e),t instanceof Error?t.toString():t)}o(uu,"error");function Ze(t,e={}){Mn("warning",Aw(e),t instanceof Error?t.toString():t)}o(Ze,"warning");function S(t){process.stdout.write(t+nQ.EOL)}o(S,"info");function _pe(t){pw("group",t)}o(_pe,"startGroup");function Lpe(){pw("endgroup")}o(Lpe,"endGroup");function fe(t,e){return Dpe(this,void 0,void 0,function*(){_pe(t);let r;try{r=yield e()}finally{Lpe()}return r})}o(fe,"group");function Au(t,e){if(process.env.GITHUB_STATE||"")return FA("STATE",Sh(t,e));Mn("save-state",{name:t},Ln(e))}o(Au,"saveState");function MH(t){return process.env[`STATE_${t}`]||""}o(MH,"getState");var Ym=w(require("fs"),1),QD=w(require("os"),1),ND=w(require("path"),1);var FH=w(require("os"),1);function Xd(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Xd,"toCommandValue");function UH(t,e,r){let s=new oQ(t,e,r);process.stdout.write(s.toString()+FH.EOL)}o(UH,"issueCommand");var OH="::",oQ=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=OH+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let n=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${Ope(n)}`)}}return e+=`${OH}${Mpe(this.message)}`,e}};function Mpe(t){return Xd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Mpe,"escapeData");function Ope(t){return Xd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Ope,"escapeProperty");var zH=w(require("os"),1);var GH=require("os"),Zd=require("fs");var aQ=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:Fpe,appendFile:Upe,writeFile:qpe}=Zd.promises,qH="GITHUB_STEP_SUMMARY";var cQ=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return aQ(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[qH];if(!e)throw new Error(`Unable to find environment variable for $${qH}. Check if your runtime environment supports job summaries.`);try{yield Fpe(e,Zd.constants.R_OK|Zd.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,s={}){let n=Object.entries(s).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return aQ(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?qpe:Upe)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return aQ(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(GH.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(s,n);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(n=>{let i=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:A}=a,d=c?"th":"td",p=Object.assign(Object.assign({},u&&{colspan:u}),A&&{rowspan:A});return this.wrap(d,l,p)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},a=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let s=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(n,e);return this.addRaw(i).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 s=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new op(i));return s.searchPaths.push(...R0(s.patterns)),s})}static stat(e,r,s){return O0(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield lu.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Ls(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield lu.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield lu.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){Ls(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var vge=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function G$(t,e){return vge(this,void 0,void 0,function*(){return yield qg.create(t,e)})}o(G$,"create");var nE=w(require("crypto"),1),pu=w(require("fs"),1),lc=w(require("path"),1),_Y=w(kY(),1),LY=w(require("util"),1);var pp;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(pp||(pp={}));var wr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(wr||(wr={}));var ps;(function(t){t.GNU="gnu",t.BSD="bsd"})(ps||(ps={}));var tE=2,rE=5e3,iN=5e3,oN=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,DY=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,mp="cache.tar",aN="manifest.txt",MVe=10*Math.pow(1024,3),sE="cache read denied:";var du=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},UCe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),n(c,l,a.done,a.value)})}}function n(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},qCe="1.0";function uc(){return du(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=lc.join(s,"actions","temp")}let r=lc.join(e,nE.randomUUID());return yield Ps(r),r})}o(uc,"createTempDirectory");function Kn(t){return pu.statSync(t).size}o(Kn,"getArchiveFileSizeInBytes");function cN(t){return du(this,void 0,void 0,function*(){var e,r,s,n,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield G$(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,A=UCe(l.globGenerator()),d;d=yield A.next(),e=d.done,!e;u=!0){n=d.value,u=!1;let m=lc.relative(c,n).replace(new RegExp(`\\${lc.sep}`,"g"),"/");b(`Matched: ${m}`),m===""?a.push("."):a.push(`${m}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=A.return)&&(yield s.call(A))}finally{if(r)throw r.error}}return a})}o(cN,"resolvePaths");function hp(t){return du(this,void 0,void 0,function*(){return LY.promisify(pu.unlink)(t)})}o(hp,"unlinkFile");function MY(t){return du(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),b(`Checking ${e} ${r.join(" ")}`);try{yield ds(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){b(n.message)}return s=s.trim(),b(s),s})}o(MY,"getVersion");function fp(){return du(this,void 0,void 0,function*(){let t=yield MY("zstd",["--quiet"]),e=_Y.clean(t);return b(`zstd version: ${e}`),t===""?wr.Gzip:wr.ZstdWithoutLong})}o(fp,"getCompressionMethod");function Xo(t){return t===wr.Gzip?pp.Gzip:pp.Zstd}o(Xo,"getCacheFileName");function OY(){return du(this,void 0,void 0,function*(){return pu.existsSync(oN)?oN:(yield MY("tar")).toLowerCase().includes("gnu tar")?rt("tar"):""})}o(OY,"getGnuTarPathOnWindows");function lN(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(lN,"assertDefined");function mu(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(qCe),nE.createHash("sha256").update(s.join("|")).digest("hex")}o(mu,"getCacheVersion");function FY(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(FY,"getRuntimeToken");var Ep=w(require("http"),1),dN=w(require("https"),1);function uN(t){let e=t.protocol==="https:";if(GCe(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 oE(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new oE(`http://${r}`)}else return}o(uN,"getProxyUrl");function GCe(t){if(!t.hostname)return!1;let e=t.hostname;if(HCe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(GCe,"checkBypass");function HCe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(HCe,"isLoopbackAddress");var oE=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Zo=w(PA(),1),UY=w(Xl(),1);var ft=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},nt;(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"})(nt||(nt={}));var br;(function(t){t.Accept="accept",t.ContentType="content-type"})(br||(br={}));var eo;(function(t){t.ApplicationJson="application/json"})(eo||(eo={}));var $Ce=[nt.MovedPermanently,nt.ResourceMoved,nt.SeeOther,nt.TemporaryRedirect,nt.PermanentRedirect],VCe=[nt.BadGateway,nt.ServiceUnavailable,nt.GatewayTimeout],YCe=["OPTIONS","GET","DELETE","HEAD"],JCe=10,WCe=5,Xn=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${nIe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function dE(t){return t instanceof xr?!0:dc(t)&&t.name==="RestError"}o(dE,"isRestError");function Ur(t,e){return Buffer.from(t,e)}o(Ur,"stringToUint8Array");var pE=w(require("node:http"),1),mE=w(require("node:https"),1),BN=w(require("node:zlib"),1),nJ=require("node:stream");var Us=yp("ts-http-runtime");var iIe={};function Cp(t){return t&&typeof t.pipe=="function"}o(Cp,"isReadableStream");function sJ(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(sJ,"isStreamComplete");function iJ(t){return t&&typeof t.byteLength=="number"}o(iJ,"isArrayBuffer");var hE=class extends nJ.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},wN=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Zn("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new In;Us.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=lIe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,f=new hE(h);f.on("error",C=>{Us.error("Error in upload progress",C)}),Cp(c)?c.pipe(f):f.end(c),c=f}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let A=oIe(u),p={status:u.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?aIe(u,A):u;let m=e.onDownloadProgress;if(m){let h=new hE(m);h.on("error",f=>{Us.error("Error in download progress",f)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await cIe(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();Cp(c)&&(u=sJ(c));let A=Promise.resolve();Cp(l)&&(A=sJ(l)),Promise.all([u,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Us.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let A=i?pE.default.request(c,l):mE.default.request(c,l);A.once("error",d=>{u(new xr(d.message,{code:d.code??xr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new Zn("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(d),u(d)}),s&&Cp(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):iJ(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Us.error("Unrecognized body type",s),u(new xr("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?pE.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new pE.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return mE.default.globalAgent;let n=e.tlsSettings??iIe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Us.info("No cached TLS Agent exist, creating a new Agent"),i=new mE.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function oIe(t){let e=ms();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}o(oIe,"getResponseHeaders");function aIe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=BN.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=BN.default.createInflate();return t.pipe(s),s}return t}o(aIe,"getDecodedResponseStream");function cIe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new xr(`Error reading response as text: ${n.message}`,{code:xr.PARSE_ERROR}))})})}o(cIe,"streamToText");function lIe(t){return t?Buffer.isBuffer(t)?t.length:Cp(t)?nul Line truncated
`;return e}o(TBe,"encodeHeaders");function vBe(t){return t instanceof Uint8Array?t.byteLength:OE(t)?t.size===-1?void 0:t.size:void 0}o(vBe,"getLength");function PBe(t){let e=0;for(let r of t){let s=vBe(r);if(s===void 0)return;e+=s}return e}o(PBe,"getTotalLength");async function kBe(t,e,r){let s=[Ur(`--${r}`,"utf-8"),...e.flatMap(i=>[Ur(`\r
`,"utf-8"),Ur(TBe(i.headers),"utf-8"),Ur(`\r
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new mp(i));return s.searchPaths.push(...GQ(s.patterns)),s})}static stat(e,r,s){return KQ(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield fu.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Os(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield fu.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield fu.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){Os(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var hEe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function fV(t,e){return hEe(this,void 0,void 0,function*(){return yield Zg.create(t,e)})}o(fV,"create");var fE=w(require("crypto"),1),Cu=w(require("fs"),1),Ac=w(require("path"),1),lJ=w(aJ(),1),uJ=w(require("util"),1);var Ip;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Ip||(Ip={}));var br;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(br||(br={}));var ms;(function(t){t.GNU="gnu",t.BSD="bsd"})(ms||(ms={}));var pE=2,mE=5e3,EN=5e3,yN=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cJ=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Bp="cache.tar",CN="manifest.txt",JYe=10*Math.pow(1024,3),hE="cache read denied:";var yu=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},bIe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),n(c,l,a.done,a.value)})}}function n(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},xIe="1.0";function dc(){return yu(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Ac.join(s,"actions","temp")}let r=Ac.join(e,fE.randomUUID());return yield Ds(r),r})}o(dc,"createTempDirectory");function Zn(t){return Cu.statSync(t).size}o(Zn,"getArchiveFileSizeInBytes");function IN(t){return yu(this,void 0,void 0,function*(){var e,r,s,n,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield fV(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,A=bIe(l.globGenerator()),d;d=yield A.next(),e=d.done,!e;u=!0){n=d.value,u=!1;let m=Ac.relative(c,n).replace(new RegExp(`\\${Ac.sep}`,"g"),"/");b(`Matched: ${m}`),m===""?a.push("."):a.push(`${m}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=A.return)&&(yield s.call(A))}finally{if(r)throw r.error}}return a})}o(IN,"resolvePaths");function wp(t){return yu(this,void 0,void 0,function*(){return uJ.promisify(Cu.unlink)(t)})}o(wp,"unlinkFile");function AJ(t){return yu(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),b(`Checking ${e} ${r.join(" ")}`);try{yield ps(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){b(n.message)}return s=s.trim(),b(s),s})}o(AJ,"getVersion");function bp(){return yu(this,void 0,void 0,function*(){let t=yield AJ("zstd",["--quiet"]),e=lJ.clean(t);return b(`zstd version: ${e}`),t===""?br.Gzip:br.ZstdWithoutLong})}o(bp,"getCompressionMethod");function ta(t){return t===br.Gzip?Ip.Gzip:Ip.Zstd}o(ta,"getCacheFileName");function dJ(){return yu(this,void 0,void 0,function*(){return Cu.existsSync(yN)?yN:(yield AJ("tar")).toLowerCase().includes("gnu tar")?rt("tar"):""})}o(dJ,"getGnuTarPathOnWindows");function BN(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(BN,"assertDefined");function Iu(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(xIe),fE.createHash("sha256").update(s.join("|")).digest("hex")}o(Iu,"getCacheVersion");function pJ(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(pJ,"getRuntimeToken");var Qp=w(require("http"),1),xN=w(require("https"),1);function wN(t){let e=t.protocol==="https:";if(QIe(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 EE(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new EE(`http://${r}`)}else return}o(wN,"getProxyUrl");function QIe(t){if(!t.hostname)return!1;let e=t.hostname;if(NIe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(QIe,"checkBypass");function NIe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(NIe,"isLoopbackAddress");var EE=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var ra=w(UA(),1),mJ=w(iu(),1);var ft=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},nt;(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"})(nt||(nt={}));var xr;(function(t){t.Accept="accept",t.ContentType="content-type"})(xr||(xr={}));var so;(function(t){t.ApplicationJson="application/json"})(so||(so={}));var RIe=[nt.MovedPermanently,nt.ResourceMoved,nt.SeeOther,nt.TemporaryRedirect,nt.PermanentRedirect],TIe=[nt.BadGateway,nt.ServiceUnavailable,nt.GatewayTimeout],vIe=["OPTIONS","GET","DELETE","HEAD"],PIe=10,kIe=5,ei=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${GIe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function bE(t){return t instanceof Qr?!0:mc(t)&&t.name==="RestError"}o(bE,"isRestError");function Ur(t,e){return Buffer.from(t,e)}o(Ur,"stringToUint8Array");var xE=w(require("node:http"),1),QE=w(require("node:https"),1),_N=w(require("node:zlib"),1),PJ=require("node:stream");var Gs=Np("ts-http-runtime");var HIe={};function Sp(t){return t&&typeof t.pipe=="function"}o(Sp,"isReadableStream");function vJ(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(vJ,"isStreamComplete");function kJ(t){return t&&typeof t.byteLength=="number"}o(kJ,"isArrayBuffer");var NE=class extends PJ.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},LN=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new ti("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new wn;Gs.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=YIe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,f=new NE(h);f.on("error",y=>{Gs.error("Error in upload progress",y)}),Sp(c)?c.pipe(f):f.end(c),c=f}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let A=zIe(u),p={status:u.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?$Ie(u,A):u;let m=e.onDownloadProgress;if(m){let h=new NE(m);h.on("error",f=>{Gs.error("Error in download progress",f)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await VIe(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();Sp(c)&&(u=vJ(c));let A=Promise.resolve();Sp(l)&&(A=vJ(l)),Promise.all([u,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Gs.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let A=i?xE.default.request(c,l):QE.default.request(c,l);A.once("error",d=>{u(new Qr(d.message,{code:d.code??Qr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new ti("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(d),u(d)}),s&&Sp(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):kJ(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Gs.error("Unrecognized body type",s),u(new Qr("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?xE.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new xE.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return QE.default.globalAgent;let n=e.tlsSettings??HIe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Gs.info("No cached TLS Agent exist, creating a new Agent"),i=new QE.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function zIe(t){let e=hs();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}o(zIe,"getResponseHeaders");function $Ie(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=_N.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=_N.default.createInflate();return t.pipe(s),s}return t}o($Ie,"getDecodedResponseStream");function VIe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new Qr(`Error reading response as text: ${n.message}`,{code:Qr.PARSE_ERROR}))})})}o(VIe,"streamToText");function YIe(t){return t?Buffer.isBuffer(t)?t.length:Sp(t)?nul Line truncated
`;return e}o(mwe,"encodeHeaders");function hwe(t){return t instanceof Uint8Array?t.byteLength:jE(t)?t.size===-1?void 0:t.size:void 0}o(hwe,"getLength");function fwe(t){let e=0;for(let r of t){let s=hwe(r);if(s===void 0)return;e+=s}return e}o(fwe,"getTotalLength");async function gwe(t,e,r){let s=[Ur(`--${r}`,"utf-8"),...e.flatMap(i=>[Ur(`\r
`,"utf-8"),Ur(mwe(i.headers),"utf-8"),Ur(`\r
`,"utf-8"),i.body,Ur(`\r
--${r}`,"utf-8")]),Ur(`--\r
\r
`,"utf-8")],n=PBe(s);n&&t.headers.set("Content-Length",n),t.body=await t3(s)}o(kBe,"buildRequestBody");var bp="multipartPolicy",DBe=70,_Be=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function LBe(t){if(t.length>DBe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!_Be.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(LBe,"assertValidBoundary");function UE(){return{name:bp,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,a]=n;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?LBe(r):r=RBe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await kBe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(UE,"multipartPolicy");function qE(){return AE()}o(qE,"createEmptyPipeline");var r3=cE({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),vWe=r3.logger;function ti(t){return r3.createClientLogger(t)}o(ti,"createClientLogger");var ri=ti("core-rest-pipeline");function qN(t={}){return gE({logger:ri.info,...t})}o(qN,"logPolicy");var GN=EE;function HN(t={}){return yE(t)}o(HN,"redirectPolicy");var GE=w(require("node:os"),1),HE=w(require("node:process"),1);function s3(){return"User-Agent"}o(s3,"getHeaderName");async function n3(t){if(HE.default&&HE.default.versions){let e=`${GE.default.type()} ${GE.default.release()}; ${GE.default.arch()}`,r=HE.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(n3,"setPlatformSpecificData");var zE="1.22.2";function zBe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(zBe,"getUserAgentString");function i3(){return s3()}o(i3,"getUserAgentHeaderName");async function $E(t){let e=new Map;e.set("core-rest-pipeline",zE),await n3(e);let r=zBe(e);return t?`${t} ${r}`:r}o($E,"getUserAgentValue");var o3=i3(),a3="userAgentPolicy";function zN(t={}){let e=$E(t.userAgentPrefix);return{name:a3,async sendRequest(r,s){return r.headers.has(o3)||r.headers.set(o3,await e),s(r)}}}o(zN,"userAgentPolicy");var gs=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function $N(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new gs(n??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(A=>{l(),i(A)},A=>{l(),a(A)})}catch(A){a(A)}s?.addEventListener("abort",u)})}o($N,"createAbortablePromise");var WBe="The delay was aborted.";function xp(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return $N(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??WBe})}o(xp,"delay");function ta(t){if(dc(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(ta,"getErrorMessage");function c3(t){return dc(t)}o(c3,"isError");function wu(){return Ac()}o(wu,"randomUUID");var xe=hc;var l3=Symbol("rawContent");function YN(t){return typeof t[l3]=="function"}o(YN,"hasRawContent");function u3(t){return YN(t)?t[l3]():t}o(u3,"getRawContent");var VE=bp;function JN(){let t=UE();return{name:VE,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)YN(s.body)&&(s.body=u3(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(JN,"multipartPolicy");var WN=CE;function jN(){return IE()}o(jN,"decompressResponsePolicy");function KN(t={}){return bE(t)}o(KN,"defaultRetryPolicy");function XN(){return xE()}o(XN,"formDataPolicy");function ra(t){return LN(t)}o(ra,"getDefaultProxySettings");function ZN(t,e){return _E(t,e)}o(ZN,"proxyPolicy");var A3="setClientRequestIdPolicy";function eS(t="x-ms-client-request-id"){return{name:A3,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(eS,"setClientRequestIdPolicy");function tS(t){return LE(t)}o(tS,"agentPolicy");function rS(t){return ME(t)}o(rS,"tlsPolicy");var bu={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function d3(t={}){let e=new sS(t.parentContext);return t.span&&(e=e.setValue(bu.span,t.span)),t.namespace&&(e=e.setValue(bu.namespace,t.namespace)),e}o(d3,"createTracingContext");var sS=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context Line truncated
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!ybe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",gt("InvalidTag",d,Qr(t,i))}let u=mbe(t,i);if(u===!1)return gt("InvalidAttr","Attributes for '"+l+"' have open quote.",Qr(t,i));let A=u.value;if(i=u.index,A[A.length-1]==="/"){let d=i-A.length;A=A.substring(0,A.length-1);let p=W3(A,e);if(p===!0)s=!0;else return gt(p.err.code,p.err.msg,Qr(t,d+p.err.line))}else if(c)if(u.tagClosed){if(A.trim().length>0)return gt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Qr(t,a));if(r.length===0)return gt("InvalidTag","Closing tag '"+l+"' has not been opened.",Qr(t,a));{let d=r.pop();if(l!==d.tagName){let p=Qr(t,d.tagStartPos);return gt("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",Qr(t,a))}r.length==0&&(n=!0)}}else return gt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Qr(t,i));else{let d=W3(A,e);if(d!==!0)return gt(d.err.code,d.err.msg,Qr(t,i-A.length+d.err.line));if(n===!0)return gt("InvalidXml","Multiple possible root nodes found.",Qr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=J3(t,i);continue}else if(t[i+1]==="?"){if(i=Y3(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=gbe(t,i);if(d==-1)return gt("InvalidChar","char '&' is not expected.",Qr(t,i));i=d}else if(n===!0&&!V3(t[i]))return gt("InvalidXml","Extra text at the end",Qr(t,i));t[i]==="<"&&i--}}else{if(V3(t[i]))continue;return gt("InvalidChar","char '"+t[i]+"' is not expected.",Qr(t,i))}if(s){if(r.length==1)return gt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Qr(t,r[0].tagStartPos));if(r.length>0)return gt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return gt("InvalidXml","Start tag expected.",1);return!0}o(iy,"validate");function V3(t){return t===" "||t===" "||t===`
`||t==="\r"}o(V3,"isWhiteSpace");function Y3(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return gt("InvalidXml","XML declaration allowed only at the start of the document.",Qr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(Y3,"readPI");function J3(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(J3,"readCommentAndCDATA");var dbe='"',pbe="'";function mbe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===dbe||t[e]===pbe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}o(mbe,"readAttributeStr");var hbe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function W3(t,e){let r=sy(t,hbe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return gt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Mp(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return gt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Mp(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return gt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Mp(r[n]));let i=r[n][2];if(!Ebe(i))return gt("InvalidAttr","Attribute '"+i+"' is an invalid name.",Mp(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return gt("InvalidAttr","Attribute '"+i+"' is repeated.",Mp(r[n]))}return!0}o(W3,"validateAttributeString");function fbe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(fbe,"validateNumberAmpersand");function gbe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,fbe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(gbe,"validateAmpersand");function gt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(gt,"getErrorObject");function Ebe(t){return Nu(t)}o(Ebe,"validateAttrName");function ybe(t){return Nu(t)}o(ybe,"validateTagName");function Qr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Qr,"getLineNumberForPosition");function Mp(t){return t.startIndex+t[1].length}o(Mp,"getPositionFromMatch");var j3={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},K3={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},X3={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",HstLine truncated
`);let e=new Hr("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new Up(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let A=Tu(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,A).trim();if(n.removeNSPrefix){let m=d.indexOf(":");m!==-1&&(d=d.substr(m+1))}d=NS(n.transformTagName,d,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(d&&n.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);p&&n.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=A}else if(u===63){let A=SS(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(d){let p=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1)}if(!(n.ignoreDeclaration&&A.tagName==="?xml"||n.ignorePiTags)){let p=new Hr(A.tagName);p.add(n.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&n.ignoreAttributes!==!0&&(p[":@"]=d),this.addChild(r,p,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=Tu(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let d=t.substring(c+4,A-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:d}])}c=A}else if(u===33&&t.charCodeAt(c+2)===68){let A=i.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(u===33&&t.charCodeAt(c+2)===91){let A=Tu(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,A);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let p=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:d}]):r.add(n.textNodeName,p),c=A+2}else{let A=SS(t,c,n.removeNSPrefix);if(!A){let R=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${R}"`)}let d=A.tagName,p=A.rawTagName,m=A.tagExp,h=A.attrExpPresent,f=A.closeIndex;if({tagName:d,tagExp:m}=NS(n.transformTagName,d,m,n),n.strictReservedNames&&(d===n.commentPropName||d===n.cdataPropName||d===n.textNodeName||d===n.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&n.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),m=d):m=m.substr(0,m.length-1),h=d!==m);let y=null,I={},B;B=Lbe(p),d!==e.tagname&&this.matcher.push(d,{},B),d!==m&&h&&(y=this.buildAttributesMap(m,this.matcher,d),y&&(I=_be(y,n))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let R="";if(E)c=A.closeIndex;else if(n.unpairedTagsSet.has(d))c=A.closeIndex;else{let Ae=this.readStopNodeData(t,p,f+1);if(!Ae)throw new Error(`Unexpected end of ${p}`);c=Ae.i,R=Ae.tagContent}let q=new Hr(d);y&&(q[":@"]=y),q.add(n.textNodeName,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,q,this.readonlyMatcher,N)}else{if(E){({tagName:d,tagExp:m}=NS(n.transformTagName,d,m,n));let R=new Hr(d);y&&(R[":@"]=y),this.addChild(r,R,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(d)){let R=new Hr(d);y&&(R[":@"]=y),this.addChild(r,R,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let R=new Hr(d);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),y&&(R[":@"]=y),this.addChild(r,R,this.readonlyMatcher,N),r=R}s="",c=f}}}else s+=t[c];return e.child},"parseXml");function Gbe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}o(Gbe,"addChild");function Hbe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}o(Hbe,"replaceEntitiesValue");function zbe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(zbe,"saveTextToParentTag");function $be(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.mLine truncated
`;function ixe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(DS(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(ixe,"detectXmlVersionFromArray");function E4(t,e,r,s,n){return!r.sanitizeName||Ay(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(E4,"resolveTagName");function kS(t,e){let r="";e.format&&(r=nxe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?s.push(new Cs(c)):c instanceof Cs&&s.push(c)}let n=ixe(t,e),i=new ii;return y4(t,e,r,i,s,n)}o(kS,"toXml");function y4(t,e,r,s,n,i){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=PS(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],A=DS(u);if(A===void 0)continue;let p=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:E4(A,!1,e,s,i),m=oxe(u[":@"],e);s.push(p,m);let h=cxe(s,n);if(p===e.textNodeName){let I=u[A];h||(I=e.tagValueProcessor(p,I),I=PS(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[A][0][e.textNodeName],B=uy(I);a+=`<![CDATA[${B}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[A][0][e.textNodeName],B=ly(I);a+=r+`<!--${B}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=g4(u[":@"],e,h,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let f=r;f!==""&&(f+=e.indentBy);let C=g4(u[":@"],e,h,s,i),E=r+`<${p}${C}`,y;h?y=C4(u[A],e):y=y4(u[A],e,f,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!y||y.length===0)&&e.suppressEmptyNode?a+=E+"/>":y&&y.endsWith(">")?a+=E+`>${y}${r}</${p}>`:(a+=E+">",y&&r!==""&&(y.includes("/>")||y.includes("</"))?a+=r+e.indentBy+y+r:a+=y,a+=`</${p}>`),c=!0,s.pop()}return a}o(y4,"arrToStr");function oxe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=ia(t[n]),s=!0}return s?r:null}o(oxe,"extractAttributeValues");function C4(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=DS(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=axe(n[":@"],e),c=C4(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(C4,"getRawContent");function axe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${ia(n)}"`}return r}o(axe,"attr_to_str_raw");function DS(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}o(DS,"propName");function g4(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:E4(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=PS(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${ia(u)}"`}return i}o(g4,"attr_to_str");function cxe(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(cxe,"checkStopNode");function PS(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}o(PS,"replaceEntitiesValue");function _S(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(_S,"getIgnoreAttributesFn");var lxe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function $r(t){if(this.options=Object.assign({},lxe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.oLine truncated
`,"utf-8")],n=fwe(s);n&&t.headers.set("Content-Length",n),t.body=await R3(s)}o(gwe,"buildRequestBody");var Pp="multipartPolicy",Ewe=70,ywe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Cwe(t){if(t.length>Ewe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ywe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(Cwe,"assertValidBoundary");function XE(){return{name:Pp,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,a]=n;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?Cwe(r):r=pwe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await gwe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(XE,"multipartPolicy");function ZE(){return wE()}o(ZE,"createEmptyPipeline");var T3=CE({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),G8e=T3.logger;function si(t){return T3.createClientLogger(t)}o(si,"createClientLogger");var ni=si("core-rest-pipeline");function eS(t={}){return RE({logger:ni.info,...t})}o(eS,"logPolicy");var tS=TE;function rS(t={}){return vE(t)}o(rS,"redirectPolicy");var ey=w(require("node:os"),1),ty=w(require("node:process"),1);function v3(){return"User-Agent"}o(v3,"getHeaderName");async function P3(t){if(ty.default&&ty.default.versions){let e=`${ey.default.type()} ${ey.default.release()}; ${ey.default.arch()}`,r=ty.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(P3,"setPlatformSpecificData");var ry="1.22.2";function Swe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(Swe,"getUserAgentString");function k3(){return v3()}o(k3,"getUserAgentHeaderName");async function sy(t){let e=new Map;e.set("core-rest-pipeline",ry),await P3(e);let r=Swe(e);return t?`${t} ${r}`:r}o(sy,"getUserAgentValue");var D3=k3(),_3="userAgentPolicy";function sS(t={}){let e=sy(t.userAgentPrefix);return{name:_3,async sendRequest(r,s){return r.headers.has(D3)||r.headers.set(D3,await e),s(r)}}}o(sS,"userAgentPolicy");var Es=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function nS(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new Es(n??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(A=>{l(),i(A)},A=>{l(),a(A)})}catch(A){a(A)}s?.addEventListener("abort",u)})}o(nS,"createAbortablePromise");var kwe="The delay was aborted.";function kp(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return nS(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??kwe})}o(kp,"delay");function na(t){if(mc(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(na,"getErrorMessage");function L3(t){return mc(t)}o(L3,"isError");function Tu(){return pc()}o(Tu,"randomUUID");var xe=gc;var M3=Symbol("rawContent");function oS(t){return typeof t[M3]=="function"}o(oS,"hasRawContent");function O3(t){return oS(t)?t[M3]():t}o(O3,"getRawContent");var ny=Pp;function aS(){let t=XE();return{name:ny,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)oS(s.body)&&(s.body=O3(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(aS,"multipartPolicy");var cS=PE;function lS(){return kE()}o(lS,"decompressResponsePolicy");function uS(t={}){return LE(t)}o(uS,"defaultRetryPolicy");function AS(){return ME()}o(AS,"formDataPolicy");function ia(t){return WN(t)}o(ia,"getDefaultProxySettings");function dS(t,e){return YE(t,e)}o(dS,"proxyPolicy");var F3="setClientRequestIdPolicy";function pS(t="x-ms-client-request-id"){return{name:F3,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(pS,"setClientRequestIdPolicy");function mS(t){return JE(t)}o(mS,"agentPolicy");function hS(t){return WE(t)}o(hS,"tlsPolicy");var vu={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function U3(t={}){let e=new fS(t.parentContext);return t.span&&(e=e.setValue(vu.span,t.span)),t.namespace&&(e=e.setValue(vu.namespace,t.namespace)),e}o(U3,"createTracingContext");var fS=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context Line truncated
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!sxe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",gt("InvalidTag",d,Nr(t,i))}let u=Xbe(t,i);if(u===!1)return gt("InvalidAttr","Attributes for '"+l+"' have open quote.",Nr(t,i));let A=u.value;if(i=u.index,A[A.length-1]==="/"){let d=i-A.length;A=A.substring(0,A.length-1);let p=w4(A,e);if(p===!0)s=!0;else return gt(p.err.code,p.err.msg,Nr(t,d+p.err.line))}else if(c)if(u.tagClosed){if(A.trim().length>0)return gt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Nr(t,a));if(r.length===0)return gt("InvalidTag","Closing tag '"+l+"' has not been opened.",Nr(t,a));{let d=r.pop();if(l!==d.tagName){let p=Nr(t,d.tagStartPos);return gt("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",Nr(t,a))}r.length==0&&(n=!0)}}else return gt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Nr(t,i));else{let d=w4(A,e);if(d!==!0)return gt(d.err.code,d.err.msg,Nr(t,i-A.length+d.err.line));if(n===!0)return gt("InvalidXml","Multiple possible root nodes found.",Nr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=B4(t,i);continue}else if(t[i+1]==="?"){if(i=I4(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=txe(t,i);if(d==-1)return gt("InvalidChar","char '&' is not expected.",Nr(t,i));i=d}else if(n===!0&&!Du(t[i]))return gt("InvalidXml","Extra text at the end",Nr(t,i));t[i]==="<"&&i--}}else{if(Du(t[i]))continue;return gt("InvalidChar","char '"+t[i]+"' is not expected.",Nr(t,i))}if(s){if(r.length==1)return gt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Nr(t,r[0].tagStartPos));if(r.length>0)return gt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return gt("InvalidXml","Start tag expected.",1);return!0}o(fy,"validate");function Du(t){return t===" "||t===" "||t===`
`||t==="\r"}o(Du,"isWhiteSpace");function I4(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return gt("InvalidXml","XML declaration allowed only at the start of the document.",Nr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(I4,"readPI");function B4(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(B4,"readCommentAndCDATA");var jbe='"',Kbe="'";function Xbe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===jbe||t[e]===Kbe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}o(Xbe,"readAttributeStr");function Zbe(t){let e=[],r=t.length,s=0;for(;s<r;){let n=s;for(;s<r&&Du(t[s]);)s++;if(s>=r)break;if(t[s]==="="){s=n+1;continue}let i=t.slice(n,s),a=s;for(;s<r&&!Du(t[s])&&t[s]!=="=";)s++;let c=t.slice(a,s),l,u=s;for(;u<r&&Du(t[u]);)u++;u<r&&t[u]==="="&&(l=t.slice(s,u+1),s=u+1);let A,d,p=s;for(;p<r&&Du(t[p]);)p++;if(p<r&&(t[p]==='"'||t[p]==="'")){let h=p+1,f=t.indexOf(t[p],h);f!==-1&&(A=t[p],d=t.slice(h,f),s=f+1)}let m={startIndex:n};m[1]=i,m[2]=c,m[3]=l,m[4]=A!==void 0?!0:void 0,m[5]=A,m[6]=d,e.push(m)}return e}o(Zbe,"scanAttributeTokens");function w4(t,e){let r=Zbe(t),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return gt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",$p(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return gt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",$p(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return gt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",$p(r[n]));let i=r[n][2];if(!rxe(i))return gt("InvalidAttr","Attribute '"+i+"' is an invalid name.",$p(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return gt("InvalidAttr","Attribute '"+i+"' is repeated.",$p(r[n]))}return!0}o(w4,"validateAttributeString");function exe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(exe,"validateNumberAmpersand");function txe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,exe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(txe,"validateAmpersand");function gt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(gt,"getErrorObject");function rxe(t){return DS(t)}o(rxe,"validateAttrName");function sxe(t){return DS(t)}o(sxe,"validateTagName");function Nr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Nr,"getLineNumberForPosition");function $p(t){return t.startIndex+t[1].length}o($p,"getPositionFromMatch");var _S={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Vp={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},LS={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var _u=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),nxe=new Set("!?\\\\/[]$%{}^&*()<>|+");function b4(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(nxe.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}o(b4,"validateEntityName");function Yp(...t){let e=Object.create(null);for(let r of t)if(r)for(let s of Object.keys(r)){let n=r[s];if(typeof n=="string")e[s]=n;else if(n&&typeof n=="object"&&n.val!==void 0){let i=n.val;typeof i=="string"&&(e[s]=i)}}return e}o(Yp,"mergeEntityMaps");var Ic="external",gy="base",MS="all";function ixe(t){return!t||t===Ic?new Set([Ic]):t===MS?new Set([MS]):t===gy?new Set([gy]):Array.isArray(t)?new Set(t):new Set([Ic])}o(ixe,"parseLimitTiers");var Gr=Object.freeze({allow:0,leave:1,remove:2,throw:3}),oxe=new Set([9,10,13]);function axe(t){if(!t)return{xmlVersion:1,onLevel:Gr.allow,nullLevel:Gr.remove};let e=t.xmlVersion===1.1?1.1:1,r=Gr[t.onNCR]??Gr.allow,s=Gr[t.nullNCR]??Gr.remove,n=Math.max(s,Gr.remove);return{xmlVersion:e,onLevel:r,nullLevel:n}}o(axe,"parseNCRConfig");var Lu=class{static{o(this,"EntityDecoder")}constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,th Line truncated
`}),Oxe=/&(?:#[xX]0*([0-9a-fA-F]{1,6});?|#0*([0-9]{1,7});?|([a-zA-Z][a-zA-Z0-9]{1,15});)/g;function WS(t){return t.indexOf("&")===-1?t:t.replace(Oxe,(e,r,s,n)=>{if(n!==void 0)return Object.prototype.hasOwnProperty.call(F4,n)?F4[n]:e;let i=r!==void 0?parseInt(r,16):parseInt(s,10);return!Number.isFinite(i)||i>1114111?e:String.fromCodePoint(i)})}o(WS,"decodeEntities");bc.label="HTML";xc.label="XML";wy.label="SVG";bc.decodeEntities=!0;xc.decodeEntities=!0;wy.decodeEntities=!0;jp.label="SQL";JS.label="SQL-STRICT";zS.label="SHELL";$S.label="REDOS";VS.label="NOSQL";YS.label="LOG";var oet=Object.freeze({HTML:bc,XML:xc,SVG:wy,SQL:jp,"SQL-STRICT":JS,SHELL:zS,REDOS:$S,NOSQL:VS,LOG:YS});function Fxe(t){if(typeof t!="string")throw new TypeError(`is-unsafe: first argument must be a string, got ${typeof t}`)}o(Fxe,"assertString");function Uxe(t){if(!(t instanceof RegExp)){if(Array.isArray(t)){if(t.length===0)throw new TypeError("is-unsafe: context must not be an empty array");if(Array.isArray(t[0])){for(let e of t)if(!Array.isArray(e)||e.length===0)throw new TypeError("is-unsafe: each context in the array must be a non-empty pattern array (PatternList)")}return}throw new TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof t}`)}}o(Uxe,"assertContext");function qxe(t){return t instanceof RegExp?{lists:null,regex:t}:Array.isArray(t[0])?{lists:t,regex:null}:{lists:[t],regex:null}}o(qxe,"normalise");function Gxe(t,e){if(!e.decodeEntities)return null;let r=WS(t);return r===t?null:r}o(Gxe,"decodedCopy");function Hxe(t,e){let r=e.label??"CUSTOM",s=Gxe(t,e);for(let n of e)if(n.pattern.test(t)||s!==null&&n.pattern.test(s))return{context:r,id:n.id,description:n.description,pattern:n.pattern};return null}o(Hxe,"matchList");function U4(t,e){Fxe(t),Uxe(e);let{lists:r,regex:s}=qxe(e);if(s)return s.test(t);for(let n of r)if(Hxe(t,n)!==null)return!0;return!1}o(U4,"isUnsafe");function zxe(t,e){if(!t)return{};let r=e.attributesGroupName?t[e.attributesGroupName]:t;if(!r)return{};let s={};for(let n in r)if(n.startsWith(e.attributeNamePrefix)){let i=n.substring(e.attributeNamePrefix.length);s[i]=r[n]}else s[n]=r[n];return s}o(zxe,"extractRawAttributes");function $xe(t){if(!t||typeof t!="string")return;let e=t.indexOf(":");if(e!==-1&&e>0){let r=t.substring(0,e);if(r!=="xmlns")return r}}o($xe,"extractNamespace");var Kp=class{static{o(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=jxe,this.parseTextData=Vxe,this.resolveNameSpace=Yxe,this.buildAttributesMap=Wxe,this.isItStopNode=e0e,this.replaceEntitiesValue=Xxe,this.readStopNodeData=s0e,this.saveTextToParentTag=Zxe,this.addChild=Kxe,this.ignoreAttributesFn=GS(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let s={...Vp};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?s=this.options.htmlEntities:this.options.htmlEntities===!0&&(s={...LS,..._S}),this.entityDecoder=new Lu({namedEntities:{...s,...r},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo},onInputEntity:o((i,a)=>U4(a,[bc,xc])?_u.BLOCK:_u.ALLOW,"onInputEntity")})),this.matcher=new ai,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Ou;let n=this.options.stopNodes;if(n&&n.length>0){for(let i=0;i<n.length;i++){let a=n[i];typeof a=="string"?this.stopNodeExpressionsSet.add(new Is(a)):a instanceof Is&&this.stopNodeExpressionsSet.add(a)}this.stopNodeExpressionsSet.seal()}}};function Vxe(t,e,r,s,n,i,a){let c=this.options;if(t!==void 0&&(c.trimValues&&!s&&(t=t.trim()),t.length>0)){a||(t=this.replaceEntitiesValue(t,e,r));let l=c.jPath?r.toString():r,u=c.tagValueProcessor(e,t,l,n,i);return u==null?t:typeof u!=typeof t||u!==t?u:c.trimValues||t.trim()===t?XS(t,c.parseTagValue,c.numberParseOptions):t}}o(Vxe,"parseTextData");function Yxe(t){if(this.options.removeNSPrefix){let e=t.split(":"),r=t.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(t=r+e[1])}return t}o(Yxe,"resolveNameSpace");var Jxe=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Wxe(t,e,r,s=!1){let n=this.options;if(s===!0||n.ignoreAttributes!==!0&&typeof t=="string"){let i=y4(t,Jxe),a=i.length,c={},l=new Array(a),u=!1,A={};for(let m=0;m<a;m++){let h=this.resolveNameSpace(i[m][1]),f=i[m][4];if(h.length&&f!==void 0){let y=f;n.trimValues&&(y=y.trim()),y=this.replaceEntitiesValue(y,r,this.readonlyMatcher),l[m]=y,A[h]=y,u=!0}}u&&typeof e=="object"&&e.updateCurrent&&e.updateCurrent(A);let d=n.jPath?e.toString():this.readonlyMatcher,p=!1;for(let m=0;m<a;m++){let h=this.resolveNameSpace(i[m][1]);if(this.ignoreAttributesFn(h,d))continue;lLine truncated
`):`
`);let s=new Hr("!xml"),n=s,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let a=new Wp(e.processEntities),c=t.length;for(let l=0;l<c;l++)if(t[l]==="<"){let A=t.charCodeAt(l+1);if(A===47){let d=Fu(t,">",l,"Closing Tag is not closed."),p=t.substring(l+2,d).trim();if(e.removeNSPrefix){let h=p.indexOf(":");h!==-1&&(p=p.substr(h+1))}p=jS(e.transformTagName,p,"",e).tagName,n&&(i=this.saveTextToParentTag(i,n,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(p&&e.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: </${p}>`);m&&e.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop()||s,e.captureMetaData&&n&&n.addEndIndex(Qc(d+1,r)),i="",l=d}else if(A===63){let d=KS(t,l,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");i=this.saveTextToParentTag(i,n,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let m=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),a.setXmlVersion(Number(m)||1)}if(!(e.ignoreDeclaration&&d.tagName==="?xml"||e.ignorePiTags)){let m=new Hr(d.tagName);m.add(e.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&e.ignoreAttributes!==!0&&(m[":@"]=p);let h=e.captureMetaData?Qc(l,r):l;this.addChild(n,m,this.readonlyMatcher,h),e.captureMetaData&&n.addEndIndex(Qc(d.closeIndex+2,r))}l=d.closeIndex+1}else if(A===33&&t.charCodeAt(l+2)===45&&t.charCodeAt(l+3)===45){let d=Fu(t,"-->",l+4,"Comment is not closed.");if(e.commentPropName){let p=t.substring(l+4,d-2);i=this.saveTextToParentTag(i,n,this.readonlyMatcher),n.add(e.commentPropName,[{[e.textNodeName]:p}])}l=d}else if(A===33&&t.charCodeAt(l+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let d=a.readDocType(t,l);this.entityDecoder.addInputEntities(d.entities),l=d.i}else if(A===33&&t.charCodeAt(l+2)===91){let d=Fu(t,"]]>",l,"CDATA is not closed.")-2,p=t.substring(l+9,d);i=this.saveTextToParentTag(i,n,this.readonlyMatcher);let m=this.parseTextData(p,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),e.cdataPropName?n.add(e.cdataPropName,[{[e.textNodeName]:p}]):n.add(e.textNodeName,m),l=d+2}else{let d=KS(t,l,e.removeNSPrefix);if(!d){let R=t.substring(Math.max(0,l-50),Math.min(c,l+50));throw new Error(`readTagExp returned undefined at position ${l}. Context: "${R}"`)}let p=d.tagName,m=d.rawTagName,h=d.tagExp,f=d.attrExpPresent,y=d.closeIndex;if({tagName:p,tagExp:h}=jS(e.transformTagName,p,h,e),e.strictReservedNames&&(p===e.commentPropName||p===e.cdataPropName||p===e.textNodeName||p===e.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);n&&i&&n.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,n,this.readonlyMatcher,!1));let E=n;E&&e.unpairedTagsSet.has(E.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let C=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(C=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),h=p):h=h.substr(0,h.length-1),f=p!==h);let I=null,B={},N;N=$xe(m),p!==s.tagname&&this.matcher.push(p,{},N),p!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,p),I&&(B=zxe(I,e))),p!==s.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=e.captureMetaData?Qc(l,r):l;if(this.isCurrentNodeStopNode){let R="";if(C)l=d.closeIndex;else if(e.unpairedTagsSet.has(p))l=d.closeIndex;else{let _e=this.readStopNodeData(t,m,y+1);if(!_e)throw new Error(`Unexpected end of ${m}`);l=_e.i,R=_e.tagContent}let Ae=new Hr(p);I&&(Ae[":@"]=I),Ae.add(e.textNodeName,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,Ae,this.readonlyMatcher,_),e.captureMetaData&&n.addEndIndex(Qc(l+1,r))}else{if(C){({tagName:p,tagExp:h}=jS(e.transformTagName,p,h,e));let R=new Hr(p);I&&(R[":@"]=I),this.addChild(n,R,this.readonlyMatcher,_),e.captureMetaData&&n.addEndIndex(Qc(y+1,r)),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(e.unpairedTagsSet.has(p)){let R=new Hr(p);I&&(R[":@"]=I),this.addChild(n,R,this.readonlyMatcher,_),e.captureMetaData&&n.addEndIndex(Qc(d.closeIndex+1,r)),this.matcher.pop(),this.isCurrentNodeStopNode=!1,l=d.closeIndex;continue}else{let R=new Hr(p);if(this.tagsNodeStack.length>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),I&&(R[":@"]=I),this.addChild(n,R,this.readonlyMatcher,_),n=R}i="",l=y}}}else i+=t[l];return s.child},"parseXml");function Qc(t,e){let r=0,s=e.length;for(;r<s;){let n=Math.floor((r+s)/2);e[n]<t?r=n+1:s=n}return t+r}o(Qc,"getOriginalIndex");function Kxe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}o(Kxe,"addChild");function Xxe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toLine truncated
`;function l0e(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(sR(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(l0e,"detectXmlVersionFromArray");function z4(t,e,r,s,n){return!r.sanitizeName||n(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(z4,"resolveTagName");function rR(t,e){let r="";e.format&&(r=c0e);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let c=0;c<e.stopNodes.length;c++){let l=e.stopNodes[c];typeof l=="string"?s.push(new Is(l)):l instanceof Is&&s.push(l)}let n=l0e(t,e),i=Ey("qName",{xmlVersion:n}),a=new ai;return $4(t,e,r,a,s,i)}o(rR,"toXml");function $4(t,e,r,s,n,i){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=tr(t);return l=tR(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],A=sR(u);if(A===void 0)continue;let p=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:z4(A,!1,e,s,i),m=u0e(u[":@"],e);s.push(p,m);let h=d0e(s,n);if(p===e.textNodeName){let I=u[A];h||(I=e.tagValueProcessor(p,I),I=tR(I,e)),I=tr(I),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[A][0][e.textNodeName],B=by(I);a+=`<![CDATA[${B}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[A][0][e.textNodeName],B=Xp(I);a+=r+`<!--${B}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=H4(u[":@"],e,h,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let f=r;f!==""&&(f+=e.indentBy);let y=H4(u[":@"],e,h,s,i),E=r+`<${p}${y}`,C;h?C=V4(u[A],e):C=$4(u[A],e,f,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=E+"/>":C&&C.endsWith(">")?a+=E+`>${C}${r}</${p}>`:(a+=E+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${p}>`),c=!0,s.pop()}return a}o($4,"arrToStr");function u0e(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=ci(t[n]),s=!0}return s?r:null}o(u0e,"extractAttributeValues");function V4(t,e){if(!Array.isArray(t))return t!=null?tr(t):"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=sR(n);if(i===e.textNodeName)r+=tr(n[i]);else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=A0e(n[":@"],e),c=V4(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(V4,"getRawContent");function A0e(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${ci(n)}"`}return r}o(A0e,"attr_to_str_raw");function sR(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}o(sR,"propName");function H4(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:z4(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=tR(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${ci(u)}"`}return i}o(H4,"attr_to_str");function d0e(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(d0e,"checkStopNode");function tR(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}o(tR,"replaceEntitiesValue");function nR(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(nR,"getIgnoreAttributesFn");var p0e={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function $r(t){if(this.options=Object.assign({},p0e,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isALine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o($r,"Builder");function uxe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}o(uxe,"detectXmlVersionFromObj");function LS(t,e,r,s,n){return!r.sanitizeName||Ay(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(LS,"resolveTagName");$r.prototype.build=function(t){if(this.options.preserveOrder)return kS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ii,r=uxe(t,this.options);return this.j2x(t,0,e,r).val}};$r.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let A=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:LS(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||A===this.options.cdataPropName||A===this.options.commentPropName?i+="":A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],A,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let p=LS(d,!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(A);let p=this.checkStopNode(r);if(r.pop(),p){let m=""+t[l];m===""?i+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:i+=this.indentate(e)+"<"+A+">"+m+"</"+A+this.tagEndChar}else i+=this.buildTextValNode(t[l],A,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,p="",m="";for(let h=0;h<d;h++){let f=t[l][h];if(!(typeof f>"u"))if(f===null)A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){r.push(A);let C=this.j2x(f,e+1,r,s);r.pop(),p+=C.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(m+=C.attrStr)}else p+=this.processTextOrObjNode(f,A,e,r,s);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(A,f);C=this.replaceEntitiesValue(C),p+=C}else{r.push(A);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+f;E===""?p+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:p+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else p+=this.buildTextValNode(f,A,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,A,m,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),p=d.length;for(let m=0;m<p;m++){let h=LS(d[m],!0,this.options,r,s);n+=this.buildAttrPairStr(h,""+t[l][d[m]],c)}}else i+=this.processTextOrObjNode(t[l],A,e,r,s)}return{attrStr:n,val:i}};$r.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+ia(e)+'"'};function Axe(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(Axe,"processTextOrObjNode");$r.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=ia(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=ia(t[s]),r=!0)}return r?e:null};$r.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o($r,"Builder");function m0e(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}o(m0e,"detectXmlVersionFromObj");function iR(t,e,r,s,n){return!r.sanitizeName||n(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(iR,"resolveTagName");$r.prototype.build=function(t){if(this.options.preserveOrder)return rR(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ai,r=m0e(t,this.options),s=Ey("qName",{xmlVersion:r});return this.j2x(t,0,e,s).val}};$r.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let A=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:iR(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||A===this.options.cdataPropName||A===this.options.commentPropName?i+="":A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],A,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let p=iR(d,!0,this.options,r,s);n+=this.buildAttrPairStr(p,tr(t[l]),c)}else if(!d)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,tr(t[l]));i+=this.replaceEntitiesValue(p)}else{r.push(A);let p=this.checkStopNode(r);if(r.pop(),p){let m=tr(t[l]);m===""?i+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:i+=this.indentate(e)+"<"+A+">"+m+"</"+A+this.tagEndChar}else i+=this.buildTextValNode(t[l],A,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,p="",m="";for(let h=0;h<d;h++){let f=t[l][h];if(!(typeof f>"u"))if(f===null)A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){r.push(A);let y=this.j2x(f,e+1,r,s);r.pop(),p+=y.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(m+=y.attrStr)}else p+=this.processTextOrObjNode(f,A,e,r,s);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(A,f);y=this.replaceEntitiesValue(y),y=tr(y),p+=y}else{r.push(A);let y=this.checkStopNode(r);if(r.pop(),y){let E=tr(f);E===""?p+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:p+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else p+=this.buildTextValNode(f,A,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,A,m,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),p=d.length;for(let m=0;m<p;m++){let h=iR(d[m],!0,this.options,r,s);n+=this.buildAttrPairStr(h,tr(t[l][d[m]]),c)}}else i+=this.processTextOrObjNode(t[l],A,e,r,s)}return{attrStr:n,val:i}};$r.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,tr(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+ci(e)+'"'};function h0e(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(h0e,"processTextOrObjNode");$r.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=ci(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=ci(t[s]),r=!0)}return r?e:null};$r.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attr Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(re.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===re.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(re.PREFIX_FOR_STORAGE));r.sort((n,i)=>By(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,a)=>!(i>0&&n.name.toLowerCase()===a[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=yy(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=Cy(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let l=c.toLowerCase();i[l]=n[c],a.push(l)}a.sort();for(let c of a)s+=`
${c}:${decodeURIComponent(i[c])}`}return s}};var it=class extends Bc{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new $p(e,r,this)}computeHMACSHA256(e){return(0,S4.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Dt=ti("storage-common");var zs;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(zs||(zs={}));var aa={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Cxe=new gs("The operation was aborted."),Vp=class extends oi{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=aa){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:aa.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):aa.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:aa.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:aa.maxRetryDelayInMs):aa.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:aa.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:aa.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=Ey(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=oa(n.url,io.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Dt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(Dt.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return Dt.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return Dt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return Dt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Dt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(re.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(Dt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case zs.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case zs.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Dt.info(`RetryPolicy: Delay for ${n}ms`),Iy(n,s,Cxe)}};var Yp=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Vp(e,r,this.retryOptions)}};var Ixe="storageBrowserPolicy";function R4(){return{name:Ixe,async sendRequest(t,e){return xe||((t.method==="GET"||t.method==="HEAD")&&(t.url=oa(t.url,io.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(re.COOKIE),t.headers.delete(re.CONTENT_LENGTH)),e(t)}}}o(R4,"storageBrowserPolicy");var Bxe="StorageCorrectContentLengthPolicy";function T4(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(re.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:Bxe,async sendRequest(e,r){return t(e),r(e)}}}o(T4,"storageCorrectContentLengthPolicy");var wxe="storageRetryPolicy",Pu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},bxe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],xxe=new gs("The operation was aborted.");function v4(t={}){let e=t.retryPolicyType??Pu.retryPolicyType,r=t.maxTries??Pu.maxTries,s=t.retryDelayInMs??Pu.retryDelayInMs,n=t.maxRetryDelayInMs??Pu.maxRetryDelayInMs,i=t.secondaryHost??Pu.secondaryHost,a=t.tryTimeoutInMs??Pu.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:A,response:d,error:p}){if(A>=r)return Dt.inf Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(re.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===re.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(re.PREFIX_FOR_STORAGE));r.sort((n,i)=>_y(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,a)=>!(i>0&&n.name.toLowerCase()===a[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=Py(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=ky(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let l=c.toLowerCase();i[l]=n[c],a.push(l)}a.sort();for(let c of a)s+=`
${c}:${decodeURIComponent(i[c])}`}return s}};var it=class extends Sc{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new rm(e,r,this)}computeHMACSHA256(e){return(0,eW.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Dt=si("storage-common");var Vs;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Vs||(Vs={}));var la={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Vs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},b0e=new Es("The operation was aborted."),sm=class extends li{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=la){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:la.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):la.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:la.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:la.maxRetryDelayInMs):la.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:la.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:la.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=vy(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=ca(n.url,co.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Dt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(Dt.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return Dt.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return Dt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return Dt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Dt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(re.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(Dt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Vs.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Vs.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Dt.info(`RetryPolicy: Delay for ${n}ms`),Dy(n,s,b0e)}};var nm=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new sm(e,r,this.retryOptions)}};var x0e="storageBrowserPolicy";function tW(){return{name:x0e,async sendRequest(t,e){return xe||((t.method==="GET"||t.method==="HEAD")&&(t.url=ca(t.url,co.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(re.COOKIE),t.headers.delete(re.CONTENT_LENGTH)),e(t)}}}o(tW,"storageBrowserPolicy");var Q0e="StorageCorrectContentLengthPolicy";function rW(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(re.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:Q0e,async sendRequest(e,r){return t(e),r(e)}}}o(rW,"storageCorrectContentLengthPolicy");var N0e="storageRetryPolicy",qu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Vs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},S0e=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],R0e=new Es("The operation was aborted.");function sW(t={}){let e=t.retryPolicyType??qu.retryPolicyType,r=t.maxTries??qu.maxTries,s=t.retryDelayInMs??qu.retryDelayInMs,n=t.maxRetryDelayInMs??qu.maxRetryDelayInMs,i=t.secondaryHost??qu.secondaryHost,a=t.tryTimeoutInMs??qu.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:A,response:d,error:p}){if(A>=r)return Dt.inf Line truncated
`)+`
`+s(i)+n(i),c=(0,P4.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(re.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===re.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(re.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>By(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,A)=>!(u>0&&l.name.toLowerCase()===A[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=yy(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=Cy(i.url),u={};if(l){let A=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let p=d.toLowerCase();u[p]=l[d],A.push(p)}A.sort();for(let d of A)c+=`
${d}:${decodeURIComponent(u[d])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:Qxe,async sendRequest(i,a){return e(i),a(i)}}}o(qS,"storageSharedKeyCredentialPolicy");var Nxe="storageRequestFailureDetailsParserPolicy";function k4(){return{name:Nxe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(k4,"storageRequestFailureDetailsParserPolicy");var D4=require("node:crypto");var wy=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,D4.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var by="12.31.0",xy="2026-02-06";var Qy="https://storage.azure.com/.default",oo={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Bn="",GS="*",Sxe=1*1024*1024;var Rxe=4*Sxe;var _4="AES256",L4="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",M4=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],O4=["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"],F4="BlobUsesCustomerSpecifiedEncryption",U4="BlobDoesNotUseCustomerSpecifiedEncryption",q4=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function ao(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(ao,"isPipelineLike");var Jp=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Et(t,e={}){t||(t=new Je);let r=new Jp([],e);return r._credential=t,r}o(Et,"newPipeline");function Txe(t){let e=[vxe,G4,Pxe,kxe,Dxe,_xe,Mxe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>Lxe(n));return{wrappedPolicies:yS(r),afterRetry:s}}}}o(Txe,"processDownlevelPipeline");function HS(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?CS(e):US(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${by}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=Tp({...r,loggingOptions:{additionalAllowedHeaderNames:M4,additionalAllowedQueryParameters:O4,logger:py.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:dy,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:OS,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:WN}),n.addPolicy(T4()),n.addPolicy(v4(r.retryOptions),{phase:"Retry"}),n.addPo Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Nn(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}o(T0e,"generateBlobSASQueryParameters20150405");function v0e(t,e){if(t=vc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=wi.parse(t.permissions.toString()).toString():n=bi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Tc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Qn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Nn(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),stringToSign:i}}o(v0e,"generateBlobSASQueryParameters20181109");function P0e(t,e){if(t=vc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=wi.parse(t.permissions.toString()).toString():n=bi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Tc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Qn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,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(i);return{sasQueryParameters:new Nn(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),stringToSign:i}}o(P0e,"generateBlobSASQueryParameters20201206");function k0e(t,e){if(t=vc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=wi.parse(t.permissions.toString()).toString():n=bi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Tc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Qn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Nn(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),stringToSign:i}}o(k0e,"generateBlobSASQueryParametersUDK20181109");function D0e(t,e){if(t=vc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=wi.parse(t.permissions.toString()).toString():n=bi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Tc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Qn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Nn(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),stringToSign:i}}o(D0e,"generateBlobSASQueryParametersUDK20200210");function _0e(t,e){if(t=vc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=wi.parse(t.permissions.toString()).toString():n=bi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Tc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Qn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Nn(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),stringToSign:i}}o(_0e,"generateBlobSASQueryParametersUDK20201206");function L0e(t,e){if(t=vc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=wi.parse(t.permissions.toString()).toString():n=bi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Tc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Qn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Nn(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,t.delegatedUserObjectId),stringToSign:i}}o(L0e,"generateBlobSASQueryParametersUDK20250705");function Tc(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(Tc,"getCanonicalName");function vc(t){let e=t.version?t.version:xy;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(vc,"SASSignatureValuesSanityCheckAndAutofill");var om=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=wu()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Bn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Bn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-acquireLease",r,async s=>W(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Bn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Bn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=W(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Bn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Bn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-releaseLease",e,async r=>W(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Bn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Bn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values ar 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"}};zu.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var _c=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};_c.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var fm=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var VNe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},kP=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);S(`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=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function $8(t,e,r){return VNe(this,void 0,void 0,function*(){var s;let n=new ho(t),i=n.getBlockBlobClient(),a=new kP((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new TC(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Xe(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o($8,"uploadCacheArchiveSDK");var Y8=w(require("buffer"),1),xi=w(require("fs"),1),J8=w(require("stream"),1),W8=w(require("util"),1);var vC=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function PC(t){return t?t>=200&&t<300:!1}o(PC,"isSuccessStatusCode");function YNe(t){return t?t>=500:!0}o(YNe,"isServerErrorStatusCode");function JNe(t){return t?[nt.BadGateway,nt.ServiceUnavailable,nt.GatewayTimeout].includes(t):!1}o(JNe,"isRetryableStatusCode");function WNe(t){return vC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(WNe,"sleep");function V8(t,e,r){return vC(this,arguments,void 0,function*(s,n,i,a=tE,c=rE,l=void 0){let u="",A=1;for(;A<=a;){let d,p,m=!1;try{d=yield n()}catch(h){l&&(d=l(h)),m=!0,u=h.message}if(d&&(p=i(d),!YNe(p)))return d;if(p&&(m=JNe(p),u=`Cache service responded with ${p}`),b(`${s} - Attempt ${A} of ${a} failed with error: ${u}`),!m){b(`${s} - Error is not retryable`);break}yield WNe(c),A++}throw Error(`${s} failed: ${u}`)})}o(V8,"retry");function gm(t,e){return vC(this,arguments,void 0,function*(r,s,n=tE,i=rE){return yield V8(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Xn)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(gm,"retryTypedResponse");function $u(t,e){return vC(this,arguments,void 0,function*(r,s,n=tE,i=rE){return yield V8(r,s,a=>a.message.statusCode,n,i)})}o($u,"retryHttpClientResponse");var Ws=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function jNe(t,e){return Ws(this,void 0,void 0,function*(){yield W8.promisify(J8.pipeline)(t.message,e)})}o(jNe,"pipeResponseToStream");var kC=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,b(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.received Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])b(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(sSe,"printCachesListForDiagnostics");function OP(t,e,r){return Yr(this,void 0,void 0,function*(){let s=new c5.URL(t),n=Z8(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield K8(t,e,n):n.concurrentBlobDownloads?yield j8(t,e,n):yield DC(t,e):yield DC(t,e)})}o(OP,"downloadCache");function u5(t,e,r){return Yr(this,void 0,void 0,function*(){let s=MP(),n=mu(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield gm("reserveCache",()=>Yr(this,void 0,void 0,function*(){return s.postJson(ym("caches"),i)}))})}o(u5,"reserveCache");function a5(t,e){return`bytes ${t}-${e}/*`}o(a5,"getContentRange");function nSe(t,e,r,s,n){return Yr(this,void 0,void 0,function*(){b(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${a5(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":a5(s,n)},a=yield $u(`uploadChunk (start: ${s}, end: ${n})`,()=>Yr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!PC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(nSe,"uploadChunk");function iSe(t,e,r,s){return Yr(this,void 0,void 0,function*(){let n=Kn(r),i=ym(`caches/${e.toString()}`),a=Vu.openSync(r,"r"),c=DP(s),l=lN("uploadConcurrency",c.uploadConcurrency),u=lN("uploadChunkSize",c.uploadChunkSize),A=[...new Array(l).keys()];b("Awaiting all uploads");let d=0;try{yield Promise.all(A.map(()=>Yr(this,void 0,void 0,function*(){for(;d<n;){let p=Math.min(n-d,u),m=d,h=d+p-1;d+=u,yield nSe(t,i,()=>Vu.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),m,h)}})))}finally{Vu.closeSync(a)}})}o(iSe,"uploadFile");function oSe(t,e,r){return Yr(this,void 0,void 0,function*(){let s={size:r};return yield gm("commitCache",()=>Yr(this,void 0,void 0,function*(){return t.postJson(ym(`caches/${e.toString()}`),s)}))})}o(oSe,"commitCache");function FP(t,e,r,s){return Yr(this,void 0,void 0,function*(){if(DP(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield $8(r,e,s)}else{let i=MP();b("Upload cache"),yield iSe(i,t,e,s),b("Commiting cache");let a=Kn(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield oSe(i,t,a);if(!PC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(FP,"saveCache");var nj=w(K5(),1),It=w(Ct(),1),ws=w(Ct(),1),Uc=w(Ct(),1),qc=w(Ct(),1),Gc=w(Ct(),1);var kk=w(Ct(),1),Dk=w(Ct(),1),tj=w(Ct(),1),rj=w(Ct(),1),sj=w(Ct(),1);var Tk=w(Ct(),1),vk=w(Ct(),1),X5=w(Ct(),1),Z5=w(Ct(),1),ej=w(Ct(),1);var Pk=class extends ej.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Z5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,X5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?vk.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Tk.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Tk.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?vk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},II=new Pk;var _k=class extends sj.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>II,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,rj.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,tj.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(II.internalBinaryRead(e,e.uint32(),s));break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?Dk.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,kk.WireType. Line truncated
`));let{commands:s}=yield aj(r,"create");yield lj(s,t)})}o(Xk,"createTar");var cA=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Tn=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Hc=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Zk="cache write denied:",xI=class t extends Hc{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Aj=sE,QI=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},NI=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function dj(t){if(!t||t.length===0)throw new Tn("Path Validation Error: At least one directory or file path is required")}o(dj,"checkPaths");function eD(t){if(t.length>512)throw new Tn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Tn(`Key Validation Error: ${t} cannot contain commas.`)}o(eD,"checkKey");function tD(){return Em()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(tD,"isFeatureAvailable");function pj(t,e,r,s){return cA(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=Em();b(`Cache service version: ${u}`),dj(n);let A=LP();if(!t5(A)){S(`Cache restore skipped: the effective cache-mode '${A}' does not permit reads.`),b(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield ITe(n,i,a,c,l):yield CTe(n,i,a,c,l)})}o(pj,"restoreCache");function CTe(t,e,r,s){return cA(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new Tn("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of A)eD(m);let d=yield fp(),p="";try{let m;try{m=yield l5(A,n,{compressionMethod:d,enableCrossOsArchive:l})}catch(f){let C=(u=f?.message)!==null&&u!==void 0?u:"";throw C.includes(Aj)?new QI(C):f}if(!m?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),m.cacheKey;p=_m.join(yield uc(),Xo(d)),b(`Archive Path: ${p}`),yield OP(m.archiveLocation,p,c),sc()&&(yield Dm(p,d));let h=Kn(p);return S(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield Kk(p,d),S("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===Tn.name)throw m;h instanceof Xn&&typeof h.statusCode=="number"&&h.statusCode>=500?su(`Failed to restore: ${m.message}`):Xe(`Failed to restore: ${m.message}`)}finally{try{yield hp(p)}catch(m){b(`Failed to delete archive: ${m}`)}}})}o(CTe,"restoreCacheV1");function ITe(t,e,r,s){return cA(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new Tn("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of A)eD(p);let d="";try{let p=Wk(),m=yield fp(),h={key:i,restoreKeys:a,version:mu(n,m,l)},f;try{f=yield p.GetCacheEntryDownloadURL(h)}catch(y){let I=(u=y?.message)!==null&&u!==void 0?u:"";throw I.includes(Aj)?new QI(I):y}if(!f.ok){b(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?S(`Cache hit for restore-key: ${f.matchedKey}`):S(`Cache hit for: ${f.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),f.matchedKey;d=_m.join(yield uc(),Xo(m)),b(`Archive path: ${d}`),b(`Starting download of archive to: ${d}`),yield OP(f.signedDownloadUrl,d,c);let E=Kn(d);return S(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),sc()&&(yield Dm(d,m)),yield Kk(d,m),S("Cache restored successfully"),f.matchedKey}catch(p){let m=p;if(m.name===Tn.name)throw p;m instanceof Xn&&typeof m.statusCode=="number"&&m.statusCode>=500?su(`Failed to restore: ${p.message}`):Xe(`Failed to restore: ${p.message}`)}finally{try{d&&(yield hp(d))}catch(p){b(`Failed to delete archive: ${p}`)}}})}o(ITe,"restoreCacheV2");function rD(t,e,r){return cA(this,arguments,void 0,function*(s,n,i,a=!1){let c=Em();b(`Cache service version: ${c}`),dj(s),eD(n);let l=LP();return r5(l)?c==="v2"?yield wTe(s,n,i,a):yield BTe(s,n,i,a):(S(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),b(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}o(rD,"saveCache");function BTe(t,e,r){return cA(this,arguments,void 0 Line truncated
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return p<m},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:A,from_line:d,ltrim:p,max_record_size:m,raw:h,relax_quotes:f,rtrim:C,skip_empty_lines:E,to:y,to_line:I}=this.options,{comment:B,escape:N,quote:R,record_delimiter:q}=this.options,{bomSkipped:Ae,delimiterDiscovered:et,delimiterBufPrevious:ke,rawBuffer:_e,escapeIsQuote:me}=this.state;if(!et&&u){let Re;if(ke===void 0?Re=s:ke!==void 0&&s===void 0?Re=ke:Re=Buffer.concat([ke,s]),s=void 0,n||Re.length>u.size)this.options.delimiter=[Buffer.from(F6(Re,this.options.delimiter_auto))],this.state.previousBuf=Re,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Re;return}}let{previousBuf:bt}=this.state,de;if(bt===void 0)if(s===void 0){a();return}else de=s;else bt!==void 0&&s===void 0?de=bt:de=Buffer.concat([bt,s]);if(Ae===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(n===!1){this.state.previousBuf=de;return}}else{for(let Re in bA)if(bA[Re].compare(de,0,bA[Re].length)===0){let bo=bA[Re].length;this.state.bufBytesStart+=bo,de=de.slice(bo);let Ah=wA({...this.original_options,encoding:Re});for(let vt in Ah)this.options[vt]=Ah[vt];({comment:B,escape:N,quote:R}=this.options);break}this.state.bomSkipped=!0}let mr=de.length,$;for($=0;$<mr&&!this.__needMoreData($,mr,n);$++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&q.length===0&&this.__autoDiscoverRecordDelimiter(de,$)&&(q=this.options.record_delimiter);let Re=de[$];if(h===!0&&_e.append(Re),(Re===Jke||Re===Wke)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(de,$,Re)&&$+N.length<mr)if(me){if(this.__isQuote(de,$+N.length)){this.state.escaping=!0,$+=N.length-1;continue}}else{this.state.escaping=!0,$+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(de,$))if(this.state.quoting===!0){let vt=de[$+R.length],wa=C&&this.__isCharTrimable(de,$+R.length),Mi=B!==null&&this.__compareBytes(B,de,$+R.length,vt),ba=this.__isDelimiter(de,$+R.length,vt),dh=q.length===0?this.__autoDiscoverRecordDelimiter(de,$+R.length):this.__isRecordDelimiter(vt,de,$+R.length);if(N!==null&&this.__isEscape(de,$,Re)&&this.__isQuote(de,$+N.length))$+=N.length-1;else if(!vt||ba||dh||Mi||wa){this.state.quoting=!1,this.state.wasQuoting=!0,$+=R.length-1;continue}else if(f===!1){let oL=this.__error(new Ee("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(vt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(oL!==void 0)return oL}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(R),$+=R.length-1}else if(this.state.field.length!==0){if(f===!1){let vt=this.__infoField(),wa=Object.keys(bA).map(ba=>bA[ba].equals(this.state.field.toString())?ba:!1).filter(Boolean)[0],Mi=this.__error(new Ee("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(vt.column)} at line ${vt.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,wa?`(${wa} bom)`:void 0],this.options,vt,{field:this.state.field}));if(Mi!==void 0)return Mi}}else{this.state.quoting=!0,$+=R.length-1;continue}if(this.state.quoting===!1){let vt=this.__isRecordDelimiter(Re,de,$);if(vt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),$+=vt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=vt-1;continue}this.info.bytes=this.state.bufBytesStart+$;let ba=this.__onField();if(ba!==void 0)return ba;this.info.bytes=this.state.bufBytesStart+$+vt;let dh=this.__onRecord(i);if(dh!==void 0)return dh;if(y!==-1&&this.info.records>=y){this.state.stop=!0,a();return}}this.state.commenting=!1,$+=vt-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,de,$,Re)!==0){this.state.commenting=!0;continue}let wa=this.__isDelimiter(de,$,Re);if(wa!==0){this.info.bytes=this.state.bufBytesStart+$;let Mi=this.__onField();if(Mi!==void 0)return Mi;$+=wa-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new Ee("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let bo=p===!1||thi Line truncated
`+s(i)+n(i),c=(0,nW.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(re.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===re.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(re.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>_y(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,A)=>!(u>0&&l.name.toLowerCase()===A[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=Py(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=ky(i.url),u={};if(l){let A=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let p=d.toLowerCase();u[p]=l[d],A.push(p)}A.sort();for(let d of A)c+=`
${d}:${decodeURIComponent(u[d])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:T0e,async sendRequest(i,a){return e(i),a(i)}}}o(uR,"storageSharedKeyCredentialPolicy");var v0e="storageRequestFailureDetailsParserPolicy";function iW(){return{name:v0e,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(iW,"storageRequestFailureDetailsParserPolicy");var oW=require("node:crypto");var Ly=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,oW.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var My="12.31.0",Oy="2026-02-06";var Fy="https://storage.azure.com/.default",lo={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var bn="",AR="*",P0e=1*1024*1024;var k0e=4*P0e;var aW="AES256",cW="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",lW=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],uW=["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"],AW="BlobUsesCustomerSpecifiedEncryption",dW="BlobDoesNotUseCustomerSpecifiedEncryption",pW=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function uo(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(uo,"isPipelineLike");var im=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Et(t,e={}){t||(t=new We);let r=new im([],e);return r._credential=t,r}o(Et,"newPipeline");function D0e(t){let e=[_0e,mW,L0e,M0e,O0e,F0e,q0e];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>U0e(n));return{wrappedPolicies:PS(r),afterRetry:s}}}}o(D0e,"processDownlevelPipeline");function dR(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?kS(e):lR(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${My}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=Op({...r,loggingOptions:{additionalAllowedHeaderNames:lW,additionalAllowedQueryParameters:uW,logger:Qy.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:xy,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:aR,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:cS}),n.addPolicy(rW()),n.addPolicy(sW(r.retryOptions),{phase:"Retry"}),n.addPo Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Rn(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}o(DNe,"generateBlobSASQueryParameters20150405");function _Ne(t,e){if(t=Mc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Qi.parse(t.permissions.toString()).toString():n=Ni.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Lc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Sn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Rn(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),stringToSign:i}}o(_Ne,"generateBlobSASQueryParameters20181109");function LNe(t,e){if(t=Mc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Qi.parse(t.permissions.toString()).toString():n=Ni.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Lc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Sn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,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(i);return{sasQueryParameters:new Rn(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),stringToSign:i}}o(LNe,"generateBlobSASQueryParameters20201206");function MNe(t,e){if(t=Mc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Qi.parse(t.permissions.toString()).toString():n=Ni.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Lc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Sn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Rn(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),stringToSign:i}}o(MNe,"generateBlobSASQueryParametersUDK20181109");function ONe(t,e){if(t=Mc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Qi.parse(t.permissions.toString()).toString():n=Ni.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Lc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Sn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Rn(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),stringToSign:i}}o(ONe,"generateBlobSASQueryParametersUDK20200210");function FNe(t,e){if(t=Mc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Qi.parse(t.permissions.toString()).toString():n=Ni.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Lc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Sn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Rn(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),stringToSign:i}}o(FNe,"generateBlobSASQueryParametersUDK20201206");function UNe(t,e){if(t=Mc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Qi.parse(t.permissions.toString()).toString():n=Ni.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Lc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Sn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Rn(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,t.delegatedUserObjectId),stringToSign:i}}o(UNe,"generateBlobSASQueryParametersUDK20250705");function Lc(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(Lc,"getCanonicalName");function Mc(t){let e=t.version?t.version:Oy;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(Mc,"SASSignatureValuesSanityCheckAndAutofill");var gm=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Tu()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==bn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==bn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-acquireLease",r,async s=>W(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==bn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==bn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=W(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==bn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==bn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-releaseLease",e,async r=>W(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==bn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==bn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values ar 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"}};Zu.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var qc=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};qc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Nm=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var jSe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},rk=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);S(`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=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function g5(t,e,r){return jSe(this,void 0,void 0,function*(){var s;let n=new Eo(t),i=n.getBlockBlobClient(),a=new rk((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new HC(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(g5,"uploadCacheArchiveSDK");var y5=w(require("buffer"),1),Si=w(require("fs"),1),C5=w(require("stream"),1),I5=w(require("util"),1);var zC=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function $C(t){return t?t>=200&&t<300:!1}o($C,"isSuccessStatusCode");function KSe(t){return t?t>=500:!0}o(KSe,"isServerErrorStatusCode");function XSe(t){return t?[nt.BadGateway,nt.ServiceUnavailable,nt.GatewayTimeout].includes(t):!1}o(XSe,"isRetryableStatusCode");function ZSe(t){return zC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(ZSe,"sleep");function E5(t,e,r){return zC(this,arguments,void 0,function*(s,n,i,a=pE,c=mE,l=void 0){let u="",A=1;for(;A<=a;){let d,p,m=!1;try{d=yield n()}catch(h){l&&(d=l(h)),m=!0,u=h.message}if(d&&(p=i(d),!KSe(p)))return d;if(p&&(m=XSe(p),u=`Cache service responded with ${p}`),b(`${s} - Attempt ${A} of ${a} failed with error: ${u}`),!m){b(`${s} - Error is not retryable`);break}yield ZSe(c),A++}throw Error(`${s} failed: ${u}`)})}o(E5,"retry");function Sm(t,e){return zC(this,arguments,void 0,function*(r,s,n=pE,i=mE){return yield E5(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof ei)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Sm,"retryTypedResponse");function eA(t,e){return zC(this,arguments,void 0,function*(r,s,n=pE,i=mE){return yield E5(r,s,a=>a.message.statusCode,n,i)})}o(eA,"retryHttpClientResponse");var Ks=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function eRe(t,e){return Ks(this,void 0,void 0,function*(){yield I5.promisify(C5.pipeline)(t.message,e)})}o(eRe,"pipeResponseToStream");var VC=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,b(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.received Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])b(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(aRe,"printCachesListForDiagnostics");function ak(t,e,r){return Yr(this,void 0,void 0,function*(){let s=new D5.URL(t),n=x5(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield w5(t,e,n):n.concurrentBlobDownloads?yield B5(t,e,n):yield YC(t,e):yield YC(t,e)})}o(ak,"downloadCache");function L5(t,e,r){return Yr(this,void 0,void 0,function*(){let s=ok(),n=Iu(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Sm("reserveCache",()=>Yr(this,void 0,void 0,function*(){return s.postJson(Tm("caches"),i)}))})}o(L5,"reserveCache");function k5(t,e){return`bytes ${t}-${e}/*`}o(k5,"getContentRange");function cRe(t,e,r,s,n){return Yr(this,void 0,void 0,function*(){b(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${k5(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":k5(s,n)},a=yield eA(`uploadChunk (start: ${s}, end: ${n})`,()=>Yr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!$C(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(cRe,"uploadChunk");function lRe(t,e,r,s){return Yr(this,void 0,void 0,function*(){let n=Zn(r),i=Tm(`caches/${e.toString()}`),a=tA.openSync(r,"r"),c=sk(s),l=BN("uploadConcurrency",c.uploadConcurrency),u=BN("uploadChunkSize",c.uploadChunkSize),A=[...new Array(l).keys()];b("Awaiting all uploads");let d=0;try{yield Promise.all(A.map(()=>Yr(this,void 0,void 0,function*(){for(;d<n;){let p=Math.min(n-d,u),m=d,h=d+p-1;d+=u,yield cRe(t,i,()=>tA.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),m,h)}})))}finally{tA.closeSync(a)}})}o(lRe,"uploadFile");function uRe(t,e,r){return Yr(this,void 0,void 0,function*(){let s={size:r};return yield Sm("commitCache",()=>Yr(this,void 0,void 0,function*(){return t.postJson(Tm(`caches/${e.toString()}`),s)}))})}o(uRe,"commitCache");function ck(t,e,r,s){return Yr(this,void 0,void 0,function*(){if(sk(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield g5(r,e,s)}else{let i=ok();b("Upload cache"),yield lRe(i,t,e,s),b("Commiting cache");let a=Zn(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield uRe(i,t,a);if(!$C(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(ck,"saveCache");var Tj=w(wj(),1),It=w(Ct(),1),xs=w(Ct(),1),Vc=w(Ct(),1),Yc=w(Ct(),1),Jc=w(Ct(),1);var rD=w(Ct(),1),sD=w(Ct(),1),Nj=w(Ct(),1),Sj=w(Ct(),1),Rj=w(Ct(),1);var Zk=w(Ct(),1),eD=w(Ct(),1),bj=w(Ct(),1),xj=w(Ct(),1),Qj=w(Ct(),1);var tD=class extends Qj.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,xj.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,bj.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?eD.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Zk.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Zk.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?eD.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},DI=new tD;var nD=class extends Rj.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>DI,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Sj.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Nj.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(DI.internalBinaryRead(e,e.uint32(),s));break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?sD.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,rD.WireType. Line truncated
`));let{commands:s}=yield kj(r,"create");yield _j(s,t)})}o(ID,"createTar");var gA=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Pn=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Wc=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},BD="cache write denied:",OI=class t extends Wc{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Mj=hE,FI=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},UI=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Oj(t){if(!t||t.length===0)throw new Pn("Path Validation Error: At least one directory or file path is required")}o(Oj,"checkPaths");function wD(t){if(t.length>512)throw new Pn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Pn(`Key Validation Error: ${t} cannot contain commas.`)}o(wD,"checkKey");function bD(){return Rm()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(bD,"isFeatureAvailable");function Fj(t,e,r,s){return gA(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=Rm();b(`Cache service version: ${u}`),Oj(n);let A=ik();if(!N5(A)){S(`Cache restore skipped: the effective cache-mode '${A}' does not permit reads.`),b(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield xve(n,i,a,c,l):yield bve(n,i,a,c,l)})}o(Fj,"restoreCache");function bve(t,e,r,s){return gA(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new Pn("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of A)wD(m);let d=yield bp(),p="";try{let m;try{m=yield _5(A,n,{compressionMethod:d,enableCrossOsArchive:l})}catch(f){let y=(u=f?.message)!==null&&u!==void 0?u:"";throw y.includes(Mj)?new FI(y):f}if(!m?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),m.cacheKey;p=Vm.join(yield dc(),ta(d)),b(`Archive Path: ${p}`),yield ak(m.archiveLocation,p,c),ic()&&(yield $m(p,d));let h=Zn(p);return S(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield CD(p,d),S("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===Pn.name)throw m;h instanceof ei&&typeof h.statusCode=="number"&&h.statusCode>=500?uu(`Failed to restore: ${m.message}`):Ze(`Failed to restore: ${m.message}`)}finally{try{yield wp(p)}catch(m){b(`Failed to delete archive: ${m}`)}}})}o(bve,"restoreCacheV1");function xve(t,e,r,s){return gA(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new Pn("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of A)wD(p);let d="";try{let p=ED(),m=yield bp(),h={key:i,restoreKeys:a,version:Iu(n,m,l)},f;try{f=yield p.GetCacheEntryDownloadURL(h)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(Mj)?new FI(I):C}if(!f.ok){b(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?S(`Cache hit for restore-key: ${f.matchedKey}`):S(`Cache hit for: ${f.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),f.matchedKey;d=Vm.join(yield dc(),ta(m)),b(`Archive path: ${d}`),b(`Starting download of archive to: ${d}`),yield ak(f.signedDownloadUrl,d,c);let E=Zn(d);return S(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),ic()&&(yield $m(d,m)),yield CD(d,m),S("Cache restored successfully"),f.matchedKey}catch(p){let m=p;if(m.name===Pn.name)throw p;m instanceof ei&&typeof m.statusCode=="number"&&m.statusCode>=500?uu(`Failed to restore: ${p.message}`):Ze(`Failed to restore: ${p.message}`)}finally{try{d&&(yield wp(d))}catch(p){b(`Failed to delete archive: ${p}`)}}})}o(xve,"restoreCacheV2");function xD(t,e,r){return gA(this,arguments,void 0,function*(s,n,i,a=!1){let c=Rm();b(`Cache service version: ${c}`),Oj(s),wD(n);let l=ik();return S5(l)?c==="v2"?yield Nve(s,n,i,a):yield Qve(s,n,i,a):(S(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),b(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}o(xD,"saveCache");function Qve(t,e,r){return gA(this,arguments,void 0 Line truncated
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return p<m},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:A,from_line:d,ltrim:p,max_record_size:m,raw:h,relax_quotes:f,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:B,escape:N,quote:_,record_delimiter:R}=this.options,{bomSkipped:Ae,delimiterDiscovered:_e,delimiterBufPrevious:ke,rawBuffer:Le,escapeIsQuote:me}=this.state;if(!_e&&u){let Re;if(ke===void 0?Re=s:ke!==void 0&&s===void 0?Re=ke:Re=Buffer.concat([ke,s]),s=void 0,n||Re.length>u.size)this.options.delimiter=[Buffer.from(AK(Re,this.options.delimiter_auto))],this.state.previousBuf=Re,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Re;return}}let{previousBuf:bt}=this.state,de;if(bt===void 0)if(s===void 0){a();return}else de=s;else bt!==void 0&&s===void 0?de=bt:de=Buffer.concat([bt,s]);if(Ae===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(n===!1){this.state.previousBuf=de;return}}else{for(let Re in kA)if(kA[Re].compare(de,0,kA[Re].length)===0){let No=kA[Re].length;this.state.bufBytesStart+=No,de=de.slice(No);let wh=PA({...this.original_options,encoding:Re});for(let vt in wh)this.options[vt]=wh[vt];({comment:B,escape:N,quote:_}=this.options);break}this.state.bomSkipped=!0}let hr=de.length,$;for($=0;$<hr&&!this.__needMoreData($,hr,n);$++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&R.length===0&&this.__autoDiscoverRecordDelimiter(de,$)&&(R=this.options.record_delimiter);let Re=de[$];if(h===!0&&Le.append(Re),(Re===XDe||Re===ZDe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(de,$,Re)&&$+N.length<hr)if(me){if(this.__isQuote(de,$+N.length)){this.state.escaping=!0,$+=N.length-1;continue}}else{this.state.escaping=!0,$+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(de,$))if(this.state.quoting===!0){let vt=de[$+_.length],xa=y&&this.__isCharTrimable(de,$+_.length),Ui=B!==null&&this.__compareBytes(B,de,$+_.length,vt),Qa=this.__isDelimiter(de,$+_.length,vt),bh=R.length===0?this.__autoDiscoverRecordDelimiter(de,$+_.length):this.__isRecordDelimiter(vt,de,$+_.length);if(N!==null&&this.__isEscape(de,$,Re)&&this.__isQuote(de,$+N.length))$+=N.length-1;else if(!vt||Qa||bh||Ui||xa){this.state.quoting=!1,this.state.wasQuoting=!0,$+=_.length-1;continue}else if(f===!1){let DL=this.__error(new Ee("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(vt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(DL!==void 0)return DL}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(_),$+=_.length-1}else if(this.state.field.length!==0){if(f===!1){let vt=this.__infoField(),xa=Object.keys(kA).map(Qa=>kA[Qa].equals(this.state.field.toString())?Qa:!1).filter(Boolean)[0],Ui=this.__error(new Ee("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(vt.column)} at line ${vt.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,xa?`(${xa} bom)`:void 0],this.options,vt,{field:this.state.field}));if(Ui!==void 0)return Ui}}else{this.state.quoting=!0,$+=_.length-1;continue}if(this.state.quoting===!1){let vt=this.__isRecordDelimiter(Re,de,$);if(vt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),$+=vt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=vt-1;continue}this.info.bytes=this.state.bufBytesStart+$;let Qa=this.__onField();if(Qa!==void 0)return Qa;this.info.bytes=this.state.bufBytesStart+$+vt;let bh=this.__onRecord(i);if(bh!==void 0)return bh;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,$+=vt-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,de,$,Re)!==0){this.state.commenting=!0;continue}let xa=this.__isDelimiter(de,$,Re);if(xa!==0){this.info.bytes=this.state.bufBytesStart+$;let Ui=this.__onField();if(Ui!==void 0)return Ui;$+=xa-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new Ee("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let No=p===!1||thi Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==s[n+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(s){let{encoding:n,raw:i,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(n):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var fB=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=hB(e),n=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=s.parse(t,!0,n,i);if(a!==void 0)throw a;return r},"parse");var Rr=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(gn(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=fB(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=gn(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await rt("powershell",!0),n=e.replace(/'/g,"''"),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${n}' ${i.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return q6.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return u_.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return u_.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return G6.default.compile(e,r)(s)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=Ym.default.resolve(e);return Ym.default.resolve(r).startsWith(s.endsWith(Ym.default.sep)?s:`${s}${Ym.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,a=[];return s&&a.push(`${s}h`),n&&a.push(`${n}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var pr=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Jm.default.join(H6.default.homedir(),".docker")}static configFile(){let e=Jm.default.join(t.configDir,"config.json");if(A_.default.existsSync(e))return JSON.parse(A_.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await rt("docker",!0).then(e=>(b(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(b(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca Line truncated
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var GK=w(require("crypto"),1);var gB=require("fs"),V6=require("os");var xA=class{static{o(this,"Context")}constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,gB.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,gB.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${V6.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var h_=w(K6(),1),X6=w(Xl(),1);var cDe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Z6(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(Z6,"getAuthString");function eK(t){return new h_.HttpClient().getAgent(t)}o(eK,"getProxyAgent");function lDe(t){return new h_.HttpClient().getAgentDispatcher(t)}o(lDe,"getProxyAgentDispatcher");function tK(t){let e=lDe(t);return o((s,n)=>cDe(this,void 0,void 0,function*(){return(0,X6.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))}),"proxyFetch")}o(tK,"getProxyFetch");function rK(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(rK,"getApiBaseUrl");function f_(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}o(f_,"getUserAgentWithOrchestrationId");function ya(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(ya,"getUserAgent");function bB(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>bB.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}o(bB,"register");function sK(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=o((i,a)=>Promise.resolve().then(n.bind(null,a)).then(i.bind(null,a)),"hook")),e==="after"&&(s=o((i,a)=>{let c;return Promise.resolve().then(i.bind(null,a)).then(l=>(c=l,n(c,a))).then(()=>c)},"hook")),e==="error"&&(s=o((i,a)=>Promise.resolve().then(i.bind(null,a)).catch(c=>n(c,a)),"hook")),t.registry[r].push({hook:s,orig:n})}o(sK,"addHook");function nK(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}o(nK,"removeHook");var iK=Function.bind,oK=iK.bind(iK);function aK(t,e,r){let s=oK(nK,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=oK(sK,null).apply(null,i)})}o(aK,"bindApi");function ADe(){let t=Symbol("Singular"),e={registry:{}},r=bB.bind(null,e,t);return aK(r,e,t),r}o(ADe,"Singular");function dDe(){let t={registry:{}},e=bB.bind(null,t);return aK(e,t),e}o(dDe,"Co Line truncated
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==s[n+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(s){let{encoding:n,raw:i,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(n):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var RB=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=SB(e),n=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=s.parse(t,!0,n,i);if(a!==void 0)throw a;return r},"parse");var Tr=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(yn(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=RB(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=yn(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await rt("powershell",!0),n=e.replace(/'/g,"''"),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${n}' ${i.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return pK.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return k_.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return k_.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return mK.default.compile(e,r)(s)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=nh.default.resolve(e);return nh.default.resolve(r).startsWith(s.endsWith(nh.default.sep)?s:`${s}${nh.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,a=[];return s&&a.push(`${s}h`),n&&a.push(`${n}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var pr=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||ih.default.join(hK.default.homedir(),".docker")}static configFile(){let e=ih.default.join(t.configDir,"config.json");if(D_.default.existsSync(e))return JSON.parse(D_.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await rt("docker",!0).then(e=>(b(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(b(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca Line truncated
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var mX=w(require("crypto"),1);var TB=require("fs"),EK=require("os");var DA=class{static{o(this,"Context")}constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,TB.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,TB.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${EK.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var O_=w(wK(),1),bK=w(iu(),1);var d_e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function xK(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(xK,"getAuthString");function QK(t){return new O_.HttpClient().getAgent(t)}o(QK,"getProxyAgent");function p_e(t){return new O_.HttpClient().getAgentDispatcher(t)}o(p_e,"getProxyAgentDispatcher");function NK(t){let e=p_e(t);return o((s,n)=>d_e(this,void 0,void 0,function*(){return(0,bK.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))}),"proxyFetch")}o(NK,"getProxyFetch");function SK(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(SK,"getApiBaseUrl");function F_(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}o(F_,"getUserAgentWithOrchestrationId");function Ia(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(Ia,"getUserAgent");function MB(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>MB.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}o(MB,"register");function RK(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=o((i,a)=>Promise.resolve().then(n.bind(null,a)).then(i.bind(null,a)),"hook")),e==="after"&&(s=o((i,a)=>{let c;return Promise.resolve().then(i.bind(null,a)).then(l=>(c=l,n(c,a))).then(()=>c)},"hook")),e==="error"&&(s=o((i,a)=>Promise.resolve().then(i.bind(null,a)).catch(c=>n(c,a)),"hook")),t.registry[r].push({hook:s,orig:n})}o(RK,"addHook");function TK(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}o(TK,"removeHook");var vK=Function.bind,PK=vK.bind(vK);function kK(t,e,r){let s=PK(TK,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=PK(RK,null).apply(null,i)})}o(kK,"bindApi");function h_e(){let t=Symbol("Singular"),e={registry:{}},r=MB.bind(null,e,t);return kK(r,e,t),r}o(h_e,"Singular");function f_e(){let t={registry:{}},e=MB.bind(null,t);return kK(e,t),e}o(f_e,"Co Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(DDe,"_buildMessageForResponseErrors");var _De=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(DDe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},LDe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],MDe=["query","method","url"],NK=/\/api\/v3\/?$/;function ODe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(MDe.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>LDe.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return NK.test(i)&&(n.url=i.replace(NK,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new _De(n,c,a.data)}return a.data.data})}o(ODe,"graphql");function B_(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>ODe(r,n,i),"newApi"),{defaults:B_.bind(null,r),endpoint:r.endpoint})}o(B_,"withDefaults");var xdt=B_(Xm,{headers:{"user-agent":`octokit-graphql.js/${kDe} ${ya()}`},method:"POST",url:"/graphql"});function SK(t){return B_(t,{method:"POST",url:"/graphql"})}o(SK,"withCustomRequest");var w_="(?:[a-zA-Z0-9_-]+)",RK="\\.",TK=new RegExp(`^${w_}${RK}${w_}${RK}${w_}$`),FDe=TK.test.bind(TK);async function UDe(t){let e=FDe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(UDe,"auth");function qDe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(qDe,"withAuthorizationPrefix");async function GDe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=qDe(t),e(n)}o(GDe,"hook");var vK=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(UDe.bind(null,e),{hook:GDe.bind(null,e)})},"createTokenAuth2");var b_="7.0.6";var PK=o(()=>{},"noop"),HDe=console.warn.bind(console),zDe=console.error.bind(console);function $De(t={}){return typeof t.debug!="function"&&(t.debug=PK),typeof t.info!="function"&&(t.info=PK),typeof t.warn!="function"&&(t.warn=HDe),typeof t.error!="function"&&(t.error=zDe),t}o($De,"createLogger");var kK=`octokit-core.js/${b_} ${ya()}`,SB=class{static{o(this,"Octokit")}static VERSION=b_;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new cK.Collection,s={baseUrl:Xm.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${kK}`:kK,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Xm.defaults(s),this.graphql=SK(this.request).defaults(s),this.log=$De(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=vK(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var x_="17.0.0";var VDe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerF Line truncated
`)}o(O_e,"_buildMessageForResponseErrors");var F_e=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(O_e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},U_e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],q_e=["query","method","url"],ZK=/\/api\/v3\/?$/;function G_e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(q_e.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>U_e.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return ZK.test(i)&&(n.url=i.replace(ZK,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new F_e(n,c,a.data)}return a.data.data})}o(G_e,"graphql");function $_(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>G_e(r,n,i),"newApi"),{defaults:$_.bind(null,r),endpoint:r.endpoint})}o($_,"withDefaults");var Nmt=$_(lh,{headers:{"user-agent":`octokit-graphql.js/${M_e} ${Ia()}`},method:"POST",url:"/graphql"});function eX(t){return $_(t,{method:"POST",url:"/graphql"})}o(eX,"withCustomRequest");var V_="(?:[a-zA-Z0-9_-]+)",tX="\\.",rX=new RegExp(`^${V_}${tX}${V_}${tX}${V_}$`),H_e=rX.test.bind(rX);async function z_e(t){let e=H_e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(z_e,"auth");function $_e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o($_e,"withAuthorizationPrefix");async function V_e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=$_e(t),e(n)}o(V_e,"hook");var sX=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(z_e.bind(null,e),{hook:V_e.bind(null,e)})},"createTokenAuth2");var Y_="7.0.6";var nX=o(()=>{},"noop"),Y_e=console.warn.bind(console),J_e=console.error.bind(console);function W_e(t={}){return typeof t.debug!="function"&&(t.debug=nX),typeof t.info!="function"&&(t.info=nX),typeof t.warn!="function"&&(t.warn=Y_e),typeof t.error!="function"&&(t.error=J_e),t}o(W_e,"createLogger");var iX=`octokit-core.js/${Y_} ${Ia()}`,qB=class{static{o(this,"Octokit")}static VERSION=Y_;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new DK.Collection,s={baseUrl:lh.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${iX}`:iX,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=lh.defaults(s),this.graphql=eX(this.request).defaults(s),this.log=W_e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=sX(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var J_="17.0.0";var j_e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerF Line truncated
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
@@ -176,8 +179,8 @@ Write-Host "DOCKER_HOST: $env:DOCKER_HOST"
if ($DaemonConfig) {
Write-Host "Writing Docker daemon config"
New-Item -ItemType Directory -Force -Path "$env:ProgramData\\Docker\\config"
$DaemonConfig | Out-File -FilePath "$env:ProgramData\\Docker\\config\\daemon.json"
$daemonConfigPath = "$RunDir\\daemon.json"
[System.IO.File]::WriteAllText($daemonConfigPath, $DaemonConfig, (New-Object System.Text.UTF8Encoding($false)))
}
$arguments = @(
@@ -187,6 +190,9 @@ $arguments = @(
"--pidfile=$RunDir\\\\docker.pid",
"--register-service"
)
if ($DaemonConfig) {
$arguments += '--config-file="' + $daemonConfigPath + '"'
}
if ($DockerHostTCP) {
$arguments += "--host=$DockerHostTCP"
}
@@ -216,12 +222,12 @@ While ($true) {
Start-Sleep -Seconds 1
}
Write-Host "Docker daemon started successfully!"
`,COe=`
`,vFe=`
Get-WinEvent -ea SilentlyContinue \`
-FilterHashtable @{ProviderName= "docker"; LogName = "application"} |
Sort-Object @{Expression="TimeCreated";Descending=$false} |
ForEach-Object {"$($_.TimeCreated.ToUniversalTime().ToString("o")) [$($_.LevelDisplayName)] $($_.Message)"}
`,FZ=`
`,w7=`
# Source:
# - https://github.com/lima-vm/lima/blob/master/templates/docker-rootful.yaml
# - https://github.com/lima-vm/lima/blob/master/templates/_images/ubuntu-lts.yaml
@@ -247,19 +253,19 @@ images:
arch: "{{arch}}"
digest: "{{digest}}"
{{/each}}
- location: "https://cloud-images.ubuntu.com/releases/noble/release-20260926/ubuntu-24.04-server-cloudimg-amd64.img"
- location: "https://cloud-images.ubuntu.com/releases/noble/release-20261017/ubuntu-24.04-server-cloudimg-amd64.img"
arch: "x86_64"
digest: "sha256:6a81c37564db9b1ee84e141922625e1d7c5b389b99bb3c572e0243607d5bb4d2"
digest: "sha256:04e8f2461a16a44e78a370284471f29616cdd9baf1893df25807b71f985b6c94"
kernel:
location: "https://cloud-images.ubuntu.com/releases/noble/release-20260926/unpacked/ubuntu-24.04-server-cloudimg-amd64-vmlinuz-generic"
digest: "sha256:cd5fcfd260b91782637b7b4e221a48e656358f6eef549602540e62380b6f2f2c"
location: "https://cloud-images.ubuntu.com/releases/noble/release-20261017/unpacked/ubuntu-24.04-server-cloudimg-amd64-vmlinuz-generic"
digest: "sha256:41ba36d860aa0b0cd995f4ca8856d80249b244577e704929b55be13fbd1ebd2f"
cmdline: "root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyAMA0 no_timer_check"
initrd:
location: "https://cloud-images.ubuntu.com/releases/noble/release-20260926/unpacked/ubuntu-24.04-server-cloudimg-amd64-initrd-generic"
digest: "sha256:9bae8913b2d33360b91cac6f2566821d2a9589d2a4750a20e548591fcda185cd"
- location: "https://cloud-images.ubuntu.com/releases/noble/release-20260926/ubuntu-24.04-server-cloudimg-arm64.img"
location: "https://cloud-images.ubuntu.com/releases/noble/release-20261017/unpacked/ubuntu-24.04-server-cloudimg-amd64-initrd-generic"
digest: "sha256:bf276ffc12872256080890698b42db0dc9c5a469c896d8b59af6bc4e723cd186"
- location: "https://cloud-images.ubuntu.com/releases/noble/release-20261017/ubuntu-24.04-server-cloudimg-arm64.img"
arch: "aarch64"
digest: "sha256:1d6bffe64b848468ac97f821d369a4846d983de1800ccf6b5ec8853e85cefc55"
digest: "sha256:50e24e1fb79e89116e939d90aa7738f7af48c442fa1bc2510131e0b39c50348e"
# Fallback to the latest release image.
# Hint: run \`limactl prune\` to invalidate the cache
- location: https://cloud-images.ubuntu.com/releases/noble/release/ubuntu-24.04-server-cloudimg-amd64.img
@@ -430,13 +436,13 @@ audio:
# Choosing "none" will mute the audio output, and not play any sound.
# Builtin default: ""
device: none
`;var ah=class t{static{o(this,"Install")}runDir;source;contextName;daemonConfig;rootless;localTCPPort;regctl;undock;githubToken;_version;_toolDir;gitCommit;limaInstanceName="docker-actions-toolkit";constructor(e){this.runDir=e.runDir,this.source=e.source||{type:"archive",version:"latest",channel:"stable"},this.contextName=e.contextName||"setup-docker-action",this.daemonConfig=e.daemonConfig,this.rootless=e.rootless||!1,this.localTCPPort=e.localTCPPort,this.regctl=e.regctl||new zB,this.undock=e.undock||new $B,this.githubToken=e.githubToken||process.env.GITHUB_TOKEN}get toolDir(){return this._toolDir||Xr.tmpDir()}async download(){let e,r,s=Zr.default.platform();switch(this.source.type){case"image":{this._version=this.source.tag,r="docker-image",e=await this.downloadSourceImage(s);break}case"archive":{let i=this.source.version;if(r=`docker-archive-${this.source.channel}`,this._version=i,S(`Downloading Docker ${i} from ${this.source.channel} at download.docker.com`),e=await this.downloadSourceArchive("docker",this.source),this.rootless){S(`Downloading Docker rootless extras ${i} from ${this.source.channel} at download.docker.com`);let c=await this.downloadSourceArchive("docker-rootless-extras",this.source);Wt.default.readdirSync(c).forEach(l=>{let u=Tt.default.join(c,l),A=Tt.default.join(e,l);Wt.default.copyFileSync(u,A)})}break}}S("Fixing perms"),Wt.default.readdir(Tt.default.join(e),function(i,a){if(i)throw i;a.forEach(function(c,l){Rr.isDirectory(Tt.default.join(e,c))||Wt.default.chmodSync(Tt.default.join(e,c),"0755")})});let n=await Lg(e,r,this._version.replace(/(0+)([1-9]+)/,"$2"));return ru(n),S("Added Docker to PATH"),this._toolDir=n,n}async downloadSourceImage(e){let r=Tt.default.join(Xr.tmpDir(),"docker-install-image"),s=`dockereng/cli-bin:${this._version}`,n=`moby/moby-bin:${this._version}`;if(S(`Downloading Docker CLI from ${s}`),await this.undock.run({source:s,dist:r}),["win32","linux"].includes(e))S(`Downloading Docker engine from ${n}`),await this.undock.run({source:n,dist:r});else if(e=="darwin"){try{let i=await this.imageConfig(n,"linux/arm64");if(b(`docker.Install.downloadSourceImage engineImageConfig: ${JSON.stringify(i)}`),this.gitCommit=i.config?.Labels?.["org.opencontainers.image.revision"],!this.gitCommit)throw new Error("No git revision can be determined from the image")}catch(i){Xe(i),this.gitCommit="master"}b(`docker.Install.downloadSourceImage gitCommit: ${this.gitCommit}`)}else Xe(`Docker engine not supported on ${e}, only the Docker cli will be available`);return r}async downloadSourceArchive(e,r){let s=await t.getRelease(r.version,this.githubToken);this._version=s.tag_name.replace(/^(docker-)?v+/,""),b(`docker.Install.downloadSourceArchive version: ${this._version}`);let n=this.downloadURL(e,this._version,r.channel);S(`Downloading ${n}`);let i=await ic(n);b(`docker.Install.downloadSourceArchive downloadPath: ${i}`);let a;return Zr.default.platform()=="win32"?a=await _g(i,a):a=await Dg(i,a),Rr.isDirectory(Tt.default.join(a,e))&&(a=Tt.default.join(a,e)),b(`docker.Install.downloadSourceArchive extractFolder: ${a}`),a}async install(){if(!this.toolDir)throw new Error("toolDir must be set. Run download first.");if(!this.runDir)throw new Error("runDir must be set");let e=Zr.default.platform();if(this.rootless&&e!="linux")throw new Error("rootless is only supported on linux");switch(e){case"darwin":return await this.installDarwin();case"linux":return await this.installLinux();case"win32":return await this.installWindows();default:throw new Error(`Unsupported platform: ${Zr.default.platform()}`)}}async installDarwin(){if(this.source.type=="image"&&!this.gitCommit)throw new Error("gitCommit must be set. Run download first.");let e=this.source,r=Tt.default.join(Zr.default.homedir(),".lima",this.limaInstanceName);await Ps(r);let s=`unix://${r}/docker.sock`;if(await t.limaInstalled()||await this.brewInstall("lima"),await fe("Lima version",async()=>{await ue.exec("lima",["--version"])}),await fe("Creating lima config",async()=>{let i={};this.daemonConfig&&(i=JSON.parse(this.daemonConfig)),VB.default.registerHelper("stringify",function(l){return new VB.default.SafeString(JSON.stringify(l))});let a=e,c=VB.default.compile(FZ)({customImages:t.limaCustomImages(),daemonConfig:i,dockerSock:`${r}/docker.sock`,localTCPPort:this.localTCPPort,gitCommit:this.gitCommit,srcType:e.type,srcArchiveVersion:this._version,srcArchiveChannel:a.channel,srcImageTag:e.tag,undockVersion:MZ});S(`Writing lima config to ${Tt.default.join(r,"lima.yaml")}`),Wt.default.writeFileSync(Tt.default.join(r,"lima.yaml"),c),S(c)}),t.limaNeedsQemu()){await t.qemuInstalled()||await this.brewInstall("qemu");let i=await t.qemuBin();await fe("QEMU version",async()=>{await ue.exec(i,["--version"])})}let n=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`});return await fe("Starting lima instance",async()=>{let i=["start",`--name=${this.limaInstanceName}`,`--timeout=${process.env.LIMA_START_TIMEOUT??"15m"}`];process.e Line truncated
${A}`)})}).catch(()=>{}),a}}),await fe("Create Docker context",async()=>{await pr.exec(["context","create",this.contextName,"--docker",`host=${s}`]),await pr.exec(["context","use",this.contextName])}),s}async installLinux(){let e=`unix://${Tt.default.join(this.runDir,"docker.sock")}`;await Ps(this.runDir);let r=Tt.default.join(this.runDir,"daemon.json");await Wt.default.writeFileSync(r,"{}");let s,n="/etc/docker/daemon.json";if(Wt.default.existsSync(n)&&(await fe("Default Docker daemon config found",async()=>{S(JSON.stringify(JSON.parse(Wt.default.readFileSync(n,{encoding:"utf8"})),null,2))}),s=JSON.parse(Wt.default.readFileSync(n,{encoding:"utf8"}))),this.daemonConfig&&(s=Object.assign(s||{},JSON.parse(this.daemonConfig))),s){let a=JSON.stringify(s,null,2);await fe("Writing Docker daemon config",async()=>{Wt.default.writeFileSync(r,a),S(a)})}let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`,XDG_RUNTIME_DIR:this.rootless&&this.runDir||void 0});return await fe("Start Docker daemon",async()=>{let a=await rt("bash",!0),c=`${this.toolDir}/dockerd`;this.rootless&&(c=`${this.toolDir}/dockerd-rootless.sh`,process.env.RUNNER_ENVIRONMENT==="github-hosted"&&Wt.default.existsSync("/proc/sys/kernel/apparmor_restrict_unprivileged_userns")&&await rt("sudo",!1)&&await ue.exec("sudo",["-n","sh","-c","echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns"],{ignoreReturnCode:!0}));let l=`${c} --host="${e}" --config-file="${r}" --exec-root="${this.runDir}/execroot" --data-root="${this.runDir}/data" --pidfile="${this.runDir}/docker.pid"`;this.localTCPPort&&(l+=` --host="tcp://127.0.0.1:${this.localTCPPort}"`),S(`[command] ${l}`);let u=this.rootless?"":"sudo ";(await UZ.spawn(`${u}env "PATH=$PATH" "XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR" ${a} << EOF
`;var yh=class t{static{o(this,"Install")}runDir;source;contextName;daemonConfig;rootless;localTCPPort;regctl;undock;githubToken;_version;_toolDir;gitCommit;limaInstanceName="docker-actions-toolkit";constructor(e){this.runDir=e.runDir,this.source=e.source||{type:"archive",version:"latest",channel:"stable"},this.contextName=e.contextName||"setup-docker-action",this.daemonConfig=e.daemonConfig,this.rootless=e.rootless||!1,this.localTCPPort=e.localTCPPort,this.regctl=e.regctl||new sw,this.undock=e.undock||new nw,this.githubToken=e.githubToken||process.env.GITHUB_TOKEN}get toolDir(){return this._toolDir||Xr.tmpDir()}async download(){let e,r,s=es.default.platform();switch(this.source.type){case"image":{this._version=this.source.tag,r="docker-image",e=await this.downloadSourceImage(s);break}case"archive":{let i=this.source.version;if(r=`docker-archive-${this.source.channel}`,this._version=i,S(`Downloading Docker ${i} from ${this.source.channel} at download.docker.com`),e=await this.downloadSourceArchive("docker",this.source),this.rootless){S(`Downloading Docker rootless extras ${i} from ${this.source.channel} at download.docker.com`);let c=await this.downloadSourceArchive("docker-rootless-extras",this.source);Wt.default.readdirSync(c).forEach(l=>{let u=Tt.default.join(c,l),A=Tt.default.join(e,l);Wt.default.copyFileSync(u,A)})}break}}S("Fixing perms"),Wt.default.readdir(Tt.default.join(e),function(i,a){if(i)throw i;a.forEach(function(c,l){Tr.isDirectory(Tt.default.join(e,c))||Wt.default.chmodSync(Tt.default.join(e,c),"0755")})});let n=await Jg(e,r,this._version.replace(/(0+)([1-9]+)/,"$2"));return lu(n),S("Added Docker to PATH"),this._toolDir=n,n}async downloadSourceImage(e){let r=Tt.default.join(Xr.tmpDir(),"docker-install-image"),s=`dockereng/cli-bin:${this._version}`,n=`moby/moby-bin:${this._version}`;if(S(`Downloading Docker CLI from ${s}`),await this.undock.run({source:s,dist:r}),["win32","linux"].includes(e))S(`Downloading Docker engine from ${n}`),await this.undock.run({source:n,dist:r});else if(e=="darwin"){try{let i=await this.imageConfig(n,"linux/arm64");if(b(`docker.Install.downloadSourceImage engineImageConfig: ${JSON.stringify(i)}`),this.gitCommit=i.config?.Labels?.["org.opencontainers.image.revision"],!this.gitCommit)throw new Error("No git revision can be determined from the image")}catch(i){Ze(i),this.gitCommit="master"}b(`docker.Install.downloadSourceImage gitCommit: ${this.gitCommit}`)}else Ze(`Docker engine not supported on ${e}, only the Docker cli will be available`);return r}async downloadSourceArchive(e,r){let s=await t.getRelease(r.version,this.githubToken);this._version=s.tag_name.replace(/^(docker-)?v+/,""),b(`docker.Install.downloadSourceArchive version: ${this._version}`);let n=this.downloadURL(e,this._version,r.channel);S(`Downloading ${n}`);let i=await ac(n);b(`docker.Install.downloadSourceArchive downloadPath: ${i}`);let a;return es.default.platform()=="win32"?a=await Yg(i,a):a=await Vg(i,a),Tr.isDirectory(Tt.default.join(a,e))&&(a=Tt.default.join(a,e)),b(`docker.Install.downloadSourceArchive extractFolder: ${a}`),a}async install(){if(!this.toolDir)throw new Error("toolDir must be set. Run download first.");if(!this.runDir)throw new Error("runDir must be set");let e=es.default.platform();if(this.rootless&&e!="linux")throw new Error("rootless is only supported on linux");switch(e){case"darwin":return await this.installDarwin();case"linux":return await this.installLinux();case"win32":return await this.installWindows();default:throw new Error(`Unsupported platform: ${es.default.platform()}`)}}async installDarwin(){if(this.source.type=="image"&&!this.gitCommit)throw new Error("gitCommit must be set. Run download first.");let e=this.source,r=Tt.default.join(es.default.homedir(),".lima",this.limaInstanceName);await Ds(r);let s=`unix://${r}/docker.sock`;if(await t.limaInstalled()||await this.brewInstall("lima"),await fe("Lima version",async()=>{await ue.exec("lima",["--version"])}),await fe("Creating lima config",async()=>{let i={};this.daemonConfig&&(i=JSON.parse(this.daemonConfig)),iw.default.registerHelper("stringify",function(l){return new iw.default.SafeString(JSON.stringify(l))});let a=e,c=iw.default.compile(w7)({customImages:t.limaCustomImages(),daemonConfig:i,dockerSock:`${r}/docker.sock`,localTCPPort:this.localTCPPort,gitCommit:this.gitCommit,srcType:e.type,srcArchiveVersion:this._version,srcArchiveChannel:a.channel,srcImageTag:e.tag,undockVersion:I7});S(`Writing lima config to ${Tt.default.join(r,"lima.yaml")}`),Wt.default.writeFileSync(Tt.default.join(r,"lima.yaml"),c),S(c)}),t.limaNeedsQemu()){await t.qemuInstalled()||await this.brewInstall("qemu");let i=await t.qemuBin();await fe("QEMU version",async()=>{await ue.exec(i,["--version"])})}let n=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`});return await fe("Starting lima instance",async()=>{let i=["start",`--name=${this.limaInstanceName}`,`--timeout=${process.env.LIMA_START_TIMEOUT??"15m"}`];process.e Line truncated
${A}`)})}).catch(()=>{}),a}}),await fe("Create Docker context",async()=>{await pr.exec(["context","create",this.contextName,"--docker",`host=${s}`]),await pr.exec(["context","use",this.contextName])}),s}async installLinux(){let e=`unix://${Tt.default.join(this.runDir,"docker.sock")}`;await Ds(this.runDir);let r=Tt.default.join(this.runDir,"daemon.json");await Wt.default.writeFileSync(r,"{}");let s,n="/etc/docker/daemon.json";if(Wt.default.existsSync(n)&&(await fe("Default Docker daemon config found",async()=>{S(JSON.stringify(JSON.parse(Wt.default.readFileSync(n,{encoding:"utf8"})),null,2))}),s=JSON.parse(Wt.default.readFileSync(n,{encoding:"utf8"}))),this.daemonConfig&&(s=Object.assign(s||{},JSON.parse(this.daemonConfig))),s){let a=JSON.stringify(s,null,2);await fe("Writing Docker daemon config",async()=>{Wt.default.writeFileSync(r,a),S(a)})}let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`,XDG_RUNTIME_DIR:this.rootless&&this.runDir||void 0});return await fe("Start Docker daemon",async()=>{let a=await rt("bash",!0),c=`${this.toolDir}/dockerd`;this.rootless&&(c=`${this.toolDir}/dockerd-rootless.sh`,process.env.RUNNER_ENVIRONMENT==="github-hosted"&&Wt.default.existsSync("/proc/sys/kernel/apparmor_restrict_unprivileged_userns")&&await rt("sudo",!1)&&await ue.exec("sudo",["-n","sh","-c","echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns"],{ignoreReturnCode:!0}));let l=`${c} --host="${e}" --config-file="${r}" --exec-root="${this.runDir}/execroot" --data-root="${this.runDir}/data" --pidfile="${this.runDir}/docker.pid"`;this.localTCPPort&&(l+=` --host="tcp://127.0.0.1:${this.localTCPPort}"`),S(`[command] ${l}`);let u=this.rootless?"":"sudo ";(await b7.spawn(`${u}env "PATH=$PATH" "XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR" ${a} << EOF
( ${l} 2>&1 | tee "${this.runDir}/dockerd.log" ) &
EOF`,[],{env:i,detached:!0,shell:!0,stdio:["ignore",process.stdout,process.stderr]})).unref(),await Rr.sleep(3);let d=10;await(0,HZ.default)(async p=>{try{await ue.getExecOutput("docker version",void 0,{silent:!0,env:Object.assign({},i,{DOCKER_HOST:e,DOCKER_CONTENT_TRUST:"false"})})}catch(m){p(m)}},{retries:d,minTimeout:1e3,onRetry:o((p,m)=>{S(`${p}. Retrying (${m}/${d})...`)},"onRetry")}),S("Docker daemon started started successfully")}),await fe("Create Docker context",async()=>{await pr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await pr.exec(["context","use",this.contextName])}),e}async installWindows(){let e="npipe:////./pipe/setup_docker_action",r,s=Tt.default.join(this.runDir,"daemon.json");Wt.default.existsSync(s)&&(await fe("Default Docker daemon config found",async()=>{S(JSON.stringify(JSON.parse(Wt.default.readFileSync(s,{encoding:"utf8"})),null,2))}),r=JSON.parse(Wt.default.readFileSync(s,{encoding:"utf8"}))),this.daemonConfig&&(r=Object.assign(r||{},JSON.parse(this.daemonConfig)));let n="{}";r&&(n=JSON.stringify(r,null,2),await fe("Docker daemon config",async()=>{S(n)}));let i={ToolDir:this.toolDir,RunDir:this.runDir,DockerHostSocket:e,DaemonConfig:n};return this.localTCPPort&&(i.DockerHostTCP=`tcp://127.0.0.1:${this.localTCPPort}`),await fe("Install Docker daemon service",async()=>{let a=await Rr.powershellCommand(LZ(),i);await ue.exec(a.command,a.args);let c=await Rr.powershellCommand(rL());await ue.exec(c.command,c.args)}),await fe("Create Docker context",async()=>{await pr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await pr.exec(["context","use",this.contextName])}),e}async tearDown(){if(!this.runDir)throw new Error("runDir must be set");switch(Zr.default.platform()){case"darwin":{await this.tearDownDarwin();break}case"linux":{await this.tearDownLinux();break}case"win32":{await this.tearDownWindows();break}default:throw new Error(`Unsupported platform: ${Zr.default.platform()}`)}await fe("Cleaning up toolDir",async()=>{this._toolDir&&Wt.default.rmSync(this._toolDir,{recursive:!0,force:!0})})}async tearDownDarwin(){await this.printDarwinDiagnostics(),await fe("Stopping lima instance",async()=>{await ue.exec("limactl",["stop","--tty=false",this.limaInstanceName,"--force"])}),await fe("Removing lima instance",async()=>{await ue.exec("limactl",["delete","--tty=false",this.limaInstanceName,"--force"])}),await fe("Removing Docker context",async()=>{await pr.exec(["context","rm","-f",this.contextName])}),await fe("Cleaning up runDir",async()=>{await ue.exec("sudo",["rm","-rf",this.runDir])})}async printDarwinDiagnostics(){await this.printDarwinGuestCommandOutput("Cloud-init output log",["sudo","cat","/var/log/cloud-init-output.log"]),await this.printDarwinGuestCommandOutput("Cloud-init status",["sudo","timeout","300s","cloud-init","status","--wait"]),await this.printDarwinGuestCommandOutput("Docker unit file",["sudo","systemctl","cat","docker.service"]),await this.printDarwinGuestCommandOutput("Docker service status",["sudo","systemctl","status","docker.service","docker.socket","-l","--no-pager"]),await this.printDarwinGuestCommandOutput("Archive install script log",["sudo","cat","/var/log/docker-actions-toolkit-archive-install.log"]),await this.printDarwinGuestCommandOutput("Docker daemon logs",["sudo","journalctl","-u","docker.service","-l","--no-pager"])}async printDarwinGuestCommandOutput(e,r){await fe(e,async()=>{let s=await ue.getExecOutput("limactl",["shell","--tty=false",this.limaInstanceName,...r],{ignoreReturnCode:!0,silent:!0}).catch(i=>{S(`Failed to get ${e}: ${i}`)});if(!s)return;let n=[s.stdout.trim(),s.stderr.trim()].filter(Boolean).join(`
`);n.length>0?S(n):s.exitCode!==0&&S(`${e} exited with code ${s.exitCode}`)})}async tearDownLinux(){await fe("Docker daemon logs",async()=>{let e=[Tt.default.join(this.runDir,"dockerd.log")];await ue.exec(this.rootless?"cat":"sudo",this.rootless?e:["cat",...e],{ignoreReturnCode:!0})}),await fe("Stopping Docker daemon",async()=>{let e=["-s","SIGTERM",Wt.default.readFileSync(Tt.default.join(this.runDir,"docker.pid")).toString().trim()];await ue.exec(this.rootless?"kill":"sudo",this.rootless?e:["kill",...e]),await Rr.sleep(5)}),await fe("Removing Docker context",async()=>{await pr.exec(["context","rm","-f",this.contextName])}),await fe("Cleaning up runDir",async()=>{await ue.exec(this.rootless?"rootlesskit":"sudo",["rm","-rf",this.runDir],{ignoreReturnCode:!0,failOnStdErr:!1})})}async tearDownWindows(){await fe("Docker daemon logs",async()=>{let e=await Rr.powershellCommand(rL());await ue.exec(e.command,e.args)}),await fe("Removing Docker context",async()=>{await pr.exec(["context","rm","-f",this.contextName])}),await fe("Stopping Docker daemon service",async()=>{await ue.exec("powershell",["-Command","Stop-Service -Name docker -Force"])})}downloadURL(e,r,s){let n=t.platformOS(),i=t.platformArch();return`https://download.docker.com/${n}/static/${s}/${i}/${e}-${r}${n==="win"?".zip":".tgz"}`}static platformOS(){switch(Zr.default.platform()){case"darwin":return"mac";case"linux":return"linux";case"win32":return"win";default:return Zr.default.platform()}}static platformArch(){switch(Zr.default.arch()){case"x64":return"x86_64";case"ppc64":return"ppc64le";case"arm64":return"aarch64";case"arm":{let e=process.config.variables.arm_version;switch(e){case 6:return"armel";case 7:return"armhf";default:return`v${e}`}}default:return Zr.default.arch()}}static async limaInstalled(){return await rt("lima",!0).then(e=>(b(`docker.Install.limaInstalled ok: ${e}`),!0)).catch(e=>(b(`docker.Install.limaInstalled error: ${e}`),!1))}static async qemuBin(){switch(Zr.default.arch()){case"x64":return"qemu-system-x86_64";case"arm64":return"qemu-system-aarch64";default:return`qemu-system-${Zr.default.arch()}`}}static async qemuInstalled(){return await rt(await t.qemuBin(),!0).then(e=>(b(`docker.Install.qemuInstalled ok: ${e}`),!0)).catch(e=>(b(`docker.Install.qemuInstalled error: ${e}`),!1))}static async getRelease(e,r){let n=await new Ia({token:r}).releases("Docker",{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/docker-releases.json"});if(!n[e]){if(!n["v"+e])throw new Error(`Cannot find Docker release ${e} in releases JSON`);return n["v"+e]}return n[e]}static limaNeedsQemu(){let e=(process.env.LIMA_START_ARGS||"").match(/(?:[^\s"]|"[^"]*")+/g)||[],{values:r}=(0,GZ.parseArgs)({args:e.map(s=>s.replace(/"/g,"")),options:{"vm-type":{type:"string"},set:{type:"string"}},strict:!1,allowPositionals:!0});return r.set!==void 0||r["vm-type"]!=="vz"}static limaCustomImages(){let e=[],r=process.env.LIMA_IMAGES;if(!r)return e;for(let s of Rr.getList(r,{ignoreComma:!0,comment:"#"})){let n=s.indexOf(":"),i=s.substring(0,n).trim(),a=s.indexOf("@"),c=s.substring(n+1,a!==-1?a:void 0).trim(),l=a!==-1?s.substring(a+1).trim():"";e.push({location:c,arch:i,digest:l})}return e}async imageConfig(e,r){let n=(await this.regctl.manifestGet({image:e,platform:r}))?.config?.digest;if(!n)throw new Error(`No config digest found for image ${e}`);let i=await this.regctl.blobGet({repository:e,digest:n});return JSON.parse(i)}async brewInstall(e,r){let s=Object.assign({},process.env,{HOMEBREW_NO_AUTO_UPDATE:"1",HOMEBREW_NO_INSTALL_UPGRADE:"1",HOMEBREW_NO_INSTALL_CLEANUP:"1"});await fe(`Installing ${e}`,async()=>{if(!r)await ue.exec("brew",["install",e]);else{let n="docker-actions-toolkit/tap";await ue.getExecOutput("brew",["tap"],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);for(let A of u.stdout.trim().split(`
`))if(A.includes(n))return!0;return!1})||await ue.exec("brew",["tap-new",n],{env:s});let a=await ue.getExecOutput("brew",["--repo",n],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);return u.stdout.trim()}),c=`https://raw.githubusercontent.com/Homebrew/homebrew-core/${r}/Formula/${e.charAt(0)}/${e}.rb`;await ic(c,Tt.default.join(a,"Formula",`${e}.rb`)),await ue.getExecOutput("brew",["ls","-1"],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);for(let A of u.stdout.trim().split(`
`))if(A.trim()==e)return!0;return!1})&&await ue.exec("brew",["uninstall",e,"--ignore-dependencies"],{env:s}),await ue.exec("brew",["install",`${n}/${e}`],{env:s})}})}};var ch=w(require("fs"),1),wo=w(require("os"),1),YB=w(require("path"),1);var WB=w(oh(),1),sL=w(require("util"),1);var JB=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);b(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);b(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);b(`Install.download vspec: ${i}`);let a=WB.clean(i)||"";if(!WB.valid(a))throw new Error(`Invalid regclient version "${i}".`);let c=new Pi({htcName:"regctl-dl-bin",htcVersion:i,baseCacheDir:YB.default.join(wo.default.homedir(),".bin"),cacheFile:wo.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),l=await c.find();if(l)return S(`regctl binary found in ${l}`),l;let u=sL.format(s.downloadURL,i,this.filename());S(`Downloading ${u}`);let A=await ic(u,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${A}`);let d=await c.save(A);return S(`Cached to ${d}`),d}async install(e,r){r=r||Xr.tmpDir();let s=YB.default.join(r,"regctl-bin");ch.default.existsSync(s)||ch.default.mkdirSync(s,{recursive:!0});let n=wo.default.platform()=="win32"?"regctl.exe":"regctl",i=YB.default.join(s,n);return ch.default.copyFileSync(e,i),S("Fixing perms"),ch.default.chmodSync(i,"0755"),ru(s),S("Added regctl to PATH"),S(`Binary path: ${i}`),i}filename(){let e;switch(wo.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}case"arm":{let n=process.config.variables.arm_version;e=n?"armv"+n:"arm";break}default:{e=wo.default.arch();break}}let r=wo.default.platform()=="win32"?"windows":wo.default.platform(),s=wo.default.platform()=="win32"?".exe":"";return sL.format("regctl-%s-%s%s",r,e,s)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return S(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/regclient/regclient/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/regclient-releases.json"}}}static async getRelease(e,r){let n=await new Ia({token:r}).releases("regclient",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find regclient release ${e.version} in releases JSON`);return n[e.version]}};var lh=w(require("fs"),1),kn=w(require("os"),1),uh=w(require("path"),1);var KB=w(oh(),1),nL=w(require("util"),1);var jB=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);b(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);b(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);b(`Install.download vspec: ${i}`);let a=KB.clean(i)||"";if(!KB.valid(a))throw new Error(`Invalid Undock version "${i}".`);let c=new Pi({htcName:"undock-dl-bin",htcVersion:i,baseCacheDir:uh.default.join(kn.default.homedir(),".bin"),cacheFile:kn.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),l=await c.find();if(l)return S(`Undock binary found in ${l}`),l;let u=nL.format(s.downloadURL,i,this.filename(i));S(`Downloading ${u}`);let A=await ic(u,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${A}`);let d;kn.default.platform()=="win32"?d=await _g(A):d=await Dg(A),S(`Extracted to ${d}`);let p=uh.default.join(d,kn.default.platform()=="win32"?"undock.exe":"undock");b(`Install.download exePath: ${p}`);let m=await c.save(p);return S(`Cached to ${m}`),m}async install(e,r){r=r||Xr.tmpDir();let s=uh.default.join(r,"undock-bin");lh.default.existsSync(s)||lh.default.mkdirSync(s,{recursive:!0});let n=kn.default.platform()=="win32"?"undock.exe":"undock",i=uh.default.join(s,n);return lh.default.copyFileSync(e,i),S("Fixing perms"),lh.default.chmodSync(i,"0755"),ru(s),S("Added Undock to PATH"),S(`Binary path: ${i}`),i}filename(e){let r;switch(kn.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;r=i?"armv"+i:"arm";break}default:{r=kn.default.arch();break}}let s=kn.default.platform()=="win32"?"windows":kn.default.platform(),n=kn.default.platform()=="win32"?".zip":".tar.gz";return nL.format("undock_%s_%s_%s%s",e,s,r,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return S(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/crazy-max/undock/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/undock-releases.json"}}}static async getRelease(e,r){let n=await new Ia({token:r}).releases("Undock",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Undock release ${e.version} iLine truncated
EOF`,[],{env:i,detached:!0,shell:!0,stdio:["ignore",process.stdout,process.stderr]})).unref(),await Tr.sleep(3);let d=10;await(0,N7.default)(async p=>{try{await ue.getExecOutput("docker version",void 0,{silent:!0,env:Object.assign({},i,{DOCKER_HOST:e,DOCKER_CONTENT_TRUST:"false"})})}catch(m){p(m)}},{retries:d,minTimeout:1e3,onRetry:o((p,m)=>{S(`${p}. Retrying (${m}/${d})...`)},"onRetry")}),S("Docker daemon started started successfully")}),await fe("Create Docker context",async()=>{await pr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await pr.exec(["context","use",this.contextName])}),e}async installWindows(){let e="npipe:////./pipe/setup_docker_action",r,s=Tt.default.join(this.runDir,"daemon.json");Wt.default.existsSync(s)&&(await fe("Default Docker daemon config found",async()=>{S(JSON.stringify(JSON.parse(Wt.default.readFileSync(s,{encoding:"utf8"})),null,2))}),r=JSON.parse(Wt.default.readFileSync(s,{encoding:"utf8"}))),this.daemonConfig&&(r=Object.assign(r||{},JSON.parse(this.daemonConfig)));let n="{}";r&&(n=JSON.stringify(r,null,2),await fe("Docker daemon config",async()=>{S(n)}));let i={ToolDir:this.toolDir,RunDir:this.runDir,DockerHostSocket:e,DaemonConfig:n};return this.localTCPPort&&(i.DockerHostTCP=`tcp://127.0.0.1:${this.localTCPPort}`),await fe("Install Docker daemon service",async()=>{let a=await Tr.powershellCommand(C7(),i);await ue.exec(a.command,a.args);let c=await Tr.powershellCommand(TL());await ue.exec(c.command,c.args)}),await fe("Create Docker context",async()=>{await pr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await pr.exec(["context","use",this.contextName])}),e}async tearDown(){if(!this.runDir)throw new Error("runDir must be set");switch(es.default.platform()){case"darwin":{await this.tearDownDarwin();break}case"linux":{await this.tearDownLinux();break}case"win32":{await this.tearDownWindows();break}default:throw new Error(`Unsupported platform: ${es.default.platform()}`)}await fe("Cleaning up toolDir",async()=>{this._toolDir&&Wt.default.rmSync(this._toolDir,{recursive:!0,force:!0})})}async tearDownDarwin(){await this.printDarwinDiagnostics(),await fe("Stopping lima instance",async()=>{await ue.exec("limactl",["stop","--tty=false",this.limaInstanceName,"--force"])}),await fe("Removing lima instance",async()=>{await ue.exec("limactl",["delete","--tty=false",this.limaInstanceName,"--force"])}),await fe("Removing Docker context",async()=>{await pr.exec(["context","rm","-f",this.contextName])}),await fe("Cleaning up runDir",async()=>{await ue.exec("sudo",["rm","-rf",this.runDir])})}async printDarwinDiagnostics(){await this.printDarwinGuestCommandOutput("Cloud-init output log",["sudo","cat","/var/log/cloud-init-output.log"]),await this.printDarwinGuestCommandOutput("Cloud-init status",["sudo","timeout","300s","cloud-init","status","--wait"]),await this.printDarwinGuestCommandOutput("Docker unit file",["sudo","systemctl","cat","docker.service"]),await this.printDarwinGuestCommandOutput("Docker service status",["sudo","systemctl","status","docker.service","docker.socket","-l","--no-pager"]),await this.printDarwinGuestCommandOutput("Archive install script log",["sudo","cat","/var/log/docker-actions-toolkit-archive-install.log"]),await this.printDarwinGuestCommandOutput("Docker daemon logs",["sudo","journalctl","-u","docker.service","-l","--no-pager"])}async printDarwinGuestCommandOutput(e,r){await fe(e,async()=>{let s=await ue.getExecOutput("limactl",["shell","--tty=false",this.limaInstanceName,...r],{ignoreReturnCode:!0,silent:!0}).catch(i=>{S(`Failed to get ${e}: ${i}`)});if(!s)return;let n=[s.stdout.trim(),s.stderr.trim()].filter(Boolean).join(`
`);n.length>0?S(n):s.exitCode!==0&&S(`${e} exited with code ${s.exitCode}`)})}async tearDownLinux(){await fe("Docker daemon logs",async()=>{let e=[Tt.default.join(this.runDir,"dockerd.log")];await ue.exec(this.rootless?"cat":"sudo",this.rootless?e:["cat",...e],{ignoreReturnCode:!0})}),await fe("Stopping Docker daemon",async()=>{let e=["-s","SIGTERM",Wt.default.readFileSync(Tt.default.join(this.runDir,"docker.pid")).toString().trim()];await ue.exec(this.rootless?"kill":"sudo",this.rootless?e:["kill",...e]),await Tr.sleep(5)}),await fe("Removing Docker context",async()=>{await pr.exec(["context","rm","-f",this.contextName])}),await fe("Cleaning up runDir",async()=>{await ue.exec(this.rootless?"rootlesskit":"sudo",["rm","-rf",this.runDir],{ignoreReturnCode:!0,failOnStdErr:!1})})}async tearDownWindows(){await fe("Docker daemon logs",async()=>{let e=await Tr.powershellCommand(TL());await ue.exec(e.command,e.args)}),await fe("Removing Docker context",async()=>{await pr.exec(["context","rm","-f",this.contextName])}),await fe("Stopping Docker daemon service",async()=>{await ue.exec("powershell",["-Command","Stop-Service -Name docker -Force"])})}downloadURL(e,r,s){let n=t.platformOS(),i=t.platformArch();return`https://download.docker.com/${n}/static/${s}/${i}/${e}-${r}${n==="win"?".zip":".tgz"}`}static platformOS(){switch(es.default.platform()){case"darwin":return"mac";case"linux":return"linux";case"win32":return"win";default:return es.default.platform()}}static platformArch(){switch(es.default.arch()){case"x64":return"x86_64";case"ppc64":return"ppc64le";case"arm64":return"aarch64";case"arm":{let e=process.config.variables.arm_version;switch(e){case 6:return"armel";case 7:return"armhf";default:return`v${e}`}}default:return es.default.arch()}}static async limaInstalled(){return await rt("lima",!0).then(e=>(b(`docker.Install.limaInstalled ok: ${e}`),!0)).catch(e=>(b(`docker.Install.limaInstalled error: ${e}`),!1))}static async qemuBin(){switch(es.default.arch()){case"x64":return"qemu-system-x86_64";case"arm64":return"qemu-system-aarch64";default:return`qemu-system-${es.default.arch()}`}}static async qemuInstalled(){return await rt(await t.qemuBin(),!0).then(e=>(b(`docker.Install.qemuInstalled ok: ${e}`),!0)).catch(e=>(b(`docker.Install.qemuInstalled error: ${e}`),!1))}static async getRelease(e,r){let n=await new wa({token:r}).releases("Docker",{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/docker-releases.json"});if(!n[e]){if(!n["v"+e])throw new Error(`Cannot find Docker release ${e} in releases JSON`);return n["v"+e]}return n[e]}static limaNeedsQemu(){let e=(process.env.LIMA_START_ARGS||"").match(/(?:[^\s"]|"[^"]*")+/g)||[],{values:r}=(0,Q7.parseArgs)({args:e.map(s=>s.replace(/"/g,"")),options:{"vm-type":{type:"string"},set:{type:"string"}},strict:!1,allowPositionals:!0});return r.set!==void 0||r["vm-type"]!=="vz"}static limaCustomImages(){let e=[],r=process.env.LIMA_IMAGES;if(!r)return e;for(let s of Tr.getList(r,{ignoreComma:!0,comment:"#"})){let n=s.indexOf(":"),i=s.substring(0,n).trim(),a=s.indexOf("@"),c=s.substring(n+1,a!==-1?a:void 0).trim(),l=a!==-1?s.substring(a+1).trim():"";e.push({location:c,arch:i,digest:l})}return e}async imageConfig(e,r){let n=(await this.regctl.manifestGet({image:e,platform:r}))?.config?.digest;if(!n)throw new Error(`No config digest found for image ${e}`);let i=await this.regctl.blobGet({repository:e,digest:n});return JSON.parse(i)}async brewInstall(e,r){let s=Object.assign({},process.env,{HOMEBREW_NO_AUTO_UPDATE:"1",HOMEBREW_NO_INSTALL_UPGRADE:"1",HOMEBREW_NO_INSTALL_CLEANUP:"1"});await fe(`Installing ${e}`,async()=>{if(!r)await ue.exec("brew",["install",e]);else{let n="docker-actions-toolkit/tap";await ue.getExecOutput("brew",["tap"],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);for(let A of u.stdout.trim().split(`
`))if(A.includes(n))return!0;return!1})||await ue.exec("brew",["tap-new",n],{env:s});let a=await ue.getExecOutput("brew",["--repo",n],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);return u.stdout.trim()}),c=`https://raw.githubusercontent.com/Homebrew/homebrew-core/${r}/Formula/${e.charAt(0)}/${e}.rb`;await ac(c,Tt.default.join(a,"Formula",`${e}.rb`)),await ue.getExecOutput("brew",["ls","-1"],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);for(let A of u.stdout.trim().split(`
`))if(A.trim()==e)return!0;return!1})&&await ue.exec("brew",["uninstall",e,"--ignore-dependencies"],{env:s}),await ue.exec("brew",["install",`${n}/${e}`],{env:s})}})}};var Ch=w(require("fs"),1),Qo=w(require("os"),1),ow=w(require("path"),1);var cw=w(Eh(),1),vL=w(require("util"),1);var aw=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);b(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);b(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);b(`Install.download vspec: ${i}`);let a=cw.clean(i)||"";if(!cw.valid(a))throw new Error(`Invalid regclient version "${i}".`);let c=new _i({htcName:"regctl-dl-bin",htcVersion:i,baseCacheDir:ow.default.join(Qo.default.homedir(),".bin"),cacheFile:Qo.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),l=await c.find();if(l)return S(`regctl binary found in ${l}`),l;let u=vL.format(s.downloadURL,i,this.filename());S(`Downloading ${u}`);let A=await ac(u,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${A}`);let d=await c.save(A);return S(`Cached to ${d}`),d}async install(e,r){r=r||Xr.tmpDir();let s=ow.default.join(r,"regctl-bin");Ch.default.existsSync(s)||Ch.default.mkdirSync(s,{recursive:!0});let n=Qo.default.platform()=="win32"?"regctl.exe":"regctl",i=ow.default.join(s,n);return Ch.default.copyFileSync(e,i),S("Fixing perms"),Ch.default.chmodSync(i,"0755"),lu(s),S("Added regctl to PATH"),S(`Binary path: ${i}`),i}filename(){let e;switch(Qo.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}case"arm":{let n=process.config.variables.arm_version;e=n?"armv"+n:"arm";break}default:{e=Qo.default.arch();break}}let r=Qo.default.platform()=="win32"?"windows":Qo.default.platform(),s=Qo.default.platform()=="win32"?".exe":"";return vL.format("regctl-%s-%s%s",r,e,s)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return S(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/regclient/regclient/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/regclient-releases.json"}}}static async getRelease(e,r){let n=await new wa({token:r}).releases("regclient",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find regclient release ${e.version} in releases JSON`);return n[e.version]}};var Ih=w(require("fs"),1),_n=w(require("os"),1),Bh=w(require("path"),1);var uw=w(Eh(),1),PL=w(require("util"),1);var lw=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);b(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);b(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);b(`Install.download vspec: ${i}`);let a=uw.clean(i)||"";if(!uw.valid(a))throw new Error(`Invalid Undock version "${i}".`);let c=new _i({htcName:"undock-dl-bin",htcVersion:i,baseCacheDir:Bh.default.join(_n.default.homedir(),".bin"),cacheFile:_n.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),l=await c.find();if(l)return S(`Undock binary found in ${l}`),l;let u=PL.format(s.downloadURL,i,this.filename(i));S(`Downloading ${u}`);let A=await ac(u,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${A}`);let d;_n.default.platform()=="win32"?d=await Yg(A):d=await Vg(A),S(`Extracted to ${d}`);let p=Bh.default.join(d,_n.default.platform()=="win32"?"undock.exe":"undock");b(`Install.download exePath: ${p}`);let m=await c.save(p);return S(`Cached to ${m}`),m}async install(e,r){r=r||Xr.tmpDir();let s=Bh.default.join(r,"undock-bin");Ih.default.existsSync(s)||Ih.default.mkdirSync(s,{recursive:!0});let n=_n.default.platform()=="win32"?"undock.exe":"undock",i=Bh.default.join(s,n);return Ih.default.copyFileSync(e,i),S("Fixing perms"),Ih.default.chmodSync(i,"0755"),lu(s),S("Added Undock to PATH"),S(`Binary path: ${i}`),i}filename(e){let r;switch(_n.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;r=i?"armv"+i:"arm";break}default:{r=_n.default.arch();break}}let s=_n.default.platform()=="win32"?"windows":_n.default.platform(),n=_n.default.platform()=="win32"?".zip":".tar.gz";return PL.format("undock_%s_%s_%s%s",e,s,r,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return S(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/crazy-max/undock/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/undock-releases.json"}}}static async getRelease(e,r){let n=await new wa({token:r}).releases("Undock",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Undock release ${e.version} iLine truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ooBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,GAAA,gBAMT,SAASC,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,GAAA,iBAQT,SAASC,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,GAAA,iBAMT,SAASC,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,GAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,GAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ooBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,GAAA,gBAMT,SAASC,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,GAAA,iBAQT,SAASC,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,GAAA,iBAMT,SAASC,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,GAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,GAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
Generated Vendored
+15 -11
View File
@@ -216,7 +216,7 @@ Apache License
The following npm package may be included in this product:
- @docker/[email protected]7.0
- @docker/[email protected]9.0
This package contains the following license:
@@ -2872,13 +2872,12 @@ terms above.
The following npm packages may be included in this product:
- @nodable/entities@2.1.0
- @nodable/entities@3.1.0
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
These packages each contain the following license:
@@ -3010,7 +3009,7 @@ SOFTWARE.
The following npm package may be included in this product:
- fast-xml-parser@5.7.1
- fast-xml-parser@5.12.0
This package contains the following license:
@@ -3100,7 +3099,7 @@ SOFTWARE.
The following npm package may be included in this product:
- strnum@2.2.3
- strnum@2.5.1
This package contains the following license:
@@ -3226,7 +3225,7 @@ SOFTWARE.
The following npm package may be included in this product:
- path-expression-matcher@1.5.0
- path-expression-matcher@1.6.2
This package contains the following license:
@@ -3254,11 +3253,14 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
This package contains the following license:
These packages each contain the following license:
MIT License
@@ -3830,6 +3832,7 @@ The following npm packages may be included in this product:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
@@ -3948,11 +3951,12 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- [email protected]
- [email protected]
This package contains the following license:
These packages each contain the following license:
The MIT License (MIT)
+1 -1
View File
@@ -24,7 +24,7 @@
"packageManager": "[email protected]",
"dependencies": {
"@actions/core": "^3.0.1",
"@docker/actions-toolkit": "^0.107.0"
"@docker/actions-toolkit": "^0.109.0"
},
"devDependencies": {
"@eslint/js": "^9.39.3",
+70 -35
View File
@@ -421,9 +421,9 @@ __metadata:
languageName: node
linkType: hard
"@docker/actions-toolkit@npm:^0.107.0":
version: 0.107.0
resolution: "@docker/actions-toolkit@npm:0.107.0"
"@docker/actions-toolkit@npm:^0.109.0":
version: 0.109.0
resolution: "@docker/actions-toolkit@npm:0.109.0"
dependencies:
"@actions/artifact": "npm:^6.3.1"
"@actions/cache": "npm:^6.3.0"
@@ -438,15 +438,16 @@ __metadata:
"@sigstore/verify": "npm:^4.1.2"
async-retry: "npm:^1.3.3"
csv-parse: "npm:^7.0.3"
csv-stringify: "npm:^6.9.0"
gunzip-maybe: "npm:^1.4.2"
handlebars: "npm:^4.7.10"
he: "npm:^2.0.0"
js-yaml: "npm:^5.5.0"
jwt-decode: "npm:^4.0.0"
semver: "npm:^7.8.5"
semver: "npm:^7.8.6"
tar-stream: "npm:^3.2.2"
tmp: "npm:^0.2.7"
checksum: 10/bb43d11ece07be4b07613ea3e4a308233a7daa789cb3f54cf3d399f08ae7f1ad9756bb72457ea5e28408b838787fed0221921be4ed9ae135e55608f66b250b4f
checksum: 10/55a4c83878e7f729b186542fb84267b3fe667977c2efb9e336b913d9d9e57fa4af2e6642b35a4befeb12a9bfc87ed72c30927483a8b78d77534c9ff2920f3b89
languageName: node
linkType: hard
@@ -1054,10 +1055,10 @@ __metadata:
languageName: node
linkType: hard
"@nodable/entities@npm:^2.1.0":
version: 2.1.0
resolution: "@nodable/entities@npm:2.1.0"
checksum: 10/355c55e82aebe45d4b962d16530951df51e19e3e63a27ea61ad3260c0807064619b270b9c83db10e8394f42760abd5b7f7c5b5117678c4246ce8364a4aafc637
"@nodable/entities@npm:^3.1.0":
version: 3.1.0
resolution: "@nodable/entities@npm:3.1.0"
checksum: 10/b07d97b1dac8e0bc8a124ea52cdb6d6a50a8a750592acf540e47c4740a8b96b5add8d9dcce4dfbe74e08b2ab95303c1a2078cf4ba01a085a6de88a879f45576e
languageName: node
linkType: hard
@@ -2242,6 +2243,13 @@ __metadata:
languageName: node
linkType: hard
"anynum@npm:^1.0.1":
version: 1.0.1
resolution: "anynum@npm:1.0.1"
checksum: 10/096acef76cc8b9f34d43ec37ae9ba7a3d4e2e8c722a0dd59a78995248a8eb4021713ee91b55de106366ac4eaa47578ceb0fffe9829ef01d78b20f9fd6d412a88
languageName: node
linkType: hard
"aproba@npm:^1.0.3 || ^2.0.0":
version: 2.0.0
resolution: "aproba@npm:2.0.0"
@@ -2879,6 +2887,13 @@ __metadata:
languageName: node
linkType: hard
"csv-stringify@npm:^6.9.0":
version: 6.9.0
resolution: "csv-stringify@npm:6.9.0"
checksum: 10/af8bb8999ee023183fcec2b95693cb7fda90466e1961509936eda55886963e4e01ce9109fce7e22da4c2c42ebdaf8bcddf178974c5508e8e2ea12fe42670e524
languageName: node
linkType: hard
"debug@npm:4, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4":
version: 4.3.4
resolution: "debug@npm:4.3.4"
@@ -2931,7 +2946,7 @@ __metadata:
resolution: "docker-setup-docker@workspace:."
dependencies:
"@actions/core": "npm:^3.0.1"
"@docker/actions-toolkit": "npm:^0.107.0"
"@docker/actions-toolkit": "npm:^0.109.0"
"@eslint/js": "npm:^9.39.3"
"@types/node": "npm:^24.11.0"
"@typescript-eslint/eslint-plugin": "npm:^8.56.1"
@@ -3468,27 +3483,29 @@ __metadata:
languageName: node
linkType: hard
"fast-xml-builder@npm:^1.1.5":
version: 1.2.0
resolution: "fast-xml-builder@npm:1.2.0"
"fast-xml-builder@npm:^1.3.1":
version: 1.3.1
resolution: "fast-xml-builder@npm:1.3.1"
dependencies:
path-expression-matcher: "npm:^1.5.0"
xml-naming: "npm:^0.1.0"
checksum: 10/5948add7796879d03b6c779cbb17f2f203a41cdf23dfaaa4789c65078a36376cd0709a6586701e980e3d244ebd5fdb35db1235ccb5e4fb9e9abfd8c51e7b8813
path-expression-matcher: "npm:^1.6.2"
xml-naming: "npm:^0.3.0"
checksum: 10/6e2774b07a089c325dbf9d193325a1bf78592e7f3877dfdb643f4898d89a154aa17054cea7270b8b3cc4a7a1145988b0d8a5a974c7086f0e28a6af22a536f55f
languageName: node
linkType: hard
"fast-xml-parser@npm:^5.0.7":
version: 5.7.1
resolution: "fast-xml-parser@npm:5.7.1"
version: 5.12.0
resolution: "fast-xml-parser@npm:5.12.0"
dependencies:
"@nodable/entities": "npm:^2.1.0"
fast-xml-builder: "npm:^1.1.5"
path-expression-matcher: "npm:^1.5.0"
strnum: "npm:^2.2.3"
"@nodable/entities": "npm:^3.1.0"
fast-xml-builder: "npm:^1.3.1"
is-unsafe: "npm:^2.0.3"
path-expression-matcher: "npm:^1.6.2"
strnum: "npm:^2.5.1"
xml-naming: "npm:^0.3.0"
bin:
fxparser: src/cli/cli.js
checksum: 10/ce7de013cae7707d12b9da8cb294265da3780bb8bfa36b17f98053654628a0142159d78746747b1ed38bdefca8b6817f051171183e69a527ba18e1df067e9bce
checksum: 10/86b16fd9f4458350e95b5fcfe0bfe2b76a6c508dcc5fdeda128ecf8ed41f419a7e33acaf2718f2fd7b694392d7e204d242a0fd871368efbfb24f96b457e556d5
languageName: node
linkType: hard
@@ -4079,6 +4096,13 @@ __metadata:
languageName: node
linkType: hard
"is-unsafe@npm:^2.0.3":
version: 2.0.3
resolution: "is-unsafe@npm:2.0.3"
checksum: 10/c3287873db0107ff00933b6cea08bb732479af2fefe3a9fe3f49086e094ba7dc7ce09d3e5ce90417a4d604cf8aaedc74c554257a75e1cacbb93e99460bb732ef
languageName: node
linkType: hard
"isarray@npm:~1.0.0":
version: 1.0.0
resolution: "isarray@npm:1.0.0"
@@ -5150,10 +5174,10 @@ __metadata:
languageName: node
linkType: hard
"path-expression-matcher@npm:^1.5.0":
version: 1.5.0
resolution: "path-expression-matcher@npm:1.5.0"
checksum: 10/28303bb9ee6831e6df14c10cd3f3f7b2d7c8d7f788d8bdb7440136fd696064c82a3e264999a0764d28e39f698275fc03a5493bec93c57ef4a22566280367dd64
"path-expression-matcher@npm:^1.6.2":
version: 1.6.2
resolution: "path-expression-matcher@npm:1.6.2"
checksum: 10/d7786b170933dd82ed897144daed7d54dbe2e7b7d8684182ee9bf51a966cc92548788e2f49280922202a0186409008d816aefa37ed4650e4038184181a73c4bd
languageName: node
linkType: hard
@@ -5621,6 +5645,15 @@ __metadata:
languageName: node
linkType: hard
"semver@npm:^7.8.6":
version: 7.8.6
resolution: "semver@npm:7.8.6"
bin:
semver: bin/semver.js
checksum: 10/76fd62a781a9c58464e4d4b1b9c99c404063d8133fff8a0753e66b1bd826bfb720d843664e7ab1268c0fb7134d04df9f3b8788eb2f1000c509648e0eeac03921
languageName: node
linkType: hard
"set-blocking@npm:^2.0.0":
version: 2.0.0
resolution: "set-blocking@npm:2.0.0"
@@ -5907,10 +5940,12 @@ __metadata:
languageName: node
linkType: hard
"strnum@npm:^2.2.3":
version: 2.2.3
resolution: "strnum@npm:2.2.3"
checksum: 10/fb70206301858c319f59ed34fecedf90ac3b821692c2accd403d9d4a3384223a09df8fd92b130bbd4e885b67b7790715c003405ce5f959d9cabbf07d41d62aa8
"strnum@npm:^2.5.1":
version: 2.5.1
resolution: "strnum@npm:2.5.1"
dependencies:
anynum: "npm:^1.0.1"
checksum: 10/97918f9e6a30a9a79b4de616e09778e846f8cbce1230ed67c1b68db06e3baaf8c89e4c255ef6eafb2404b26f2bd59627e94647c2389388e5897e5707dbe98178
languageName: node
linkType: hard
@@ -6477,10 +6512,10 @@ __metadata:
languageName: node
linkType: hard
"xml-naming@npm:^0.1.0":
version: 0.1.0
resolution: "xml-naming@npm:0.1.0"
checksum: 10/45abd94ba64a508bda3f4d0b70e49811a3c3542596252c213caf47c858bbe9bba365ebba8eeff68e2a876e22a1bf6855d90cd2019b2f28012cebb167a4df2293
"xml-naming@npm:^0.3.0":
version: 0.3.0
resolution: "xml-naming@npm:0.3.0"
checksum: 10/1a09c3f14747bf243d4bbcfdb9917c40e9cbb4b6464f2b9fe6927976770dfa38eedfe94190b5b6db470f22429fd4bda688b1831ca36a769a6745ccb9bb595150
languageName: node
linkType: hard