varGue=Object.create;varPE=Object.defineProperty;varHue=Object.getOwnPropertyDescriptor;varVue=Object.getOwnPropertyNames;varzue=Object.getPrototypeOf,Jue=Object.prototype.hasOwnProperty;varo=(t,e)=>PE(t,"name",{value:e,configurable:!0});varm=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$ue=(t,e)=>{for(varrine)PE(t,r,{get:e[r],enumerable:!0})},Yue=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsofVue(e))!Jue.call(t,s)&&s!==r&&PE(t,s,{get:()=>e[s],enumerable:!(n=Hue(e,s))||n.enumerable});returnt};varw=(t,e,r)=>(r=t!=null?Gue(zue(t)):{},Yue(e||!t||!t.__esModule?PE(r,"default",{value:t,enumerable:!0}):r,t));var_G=m(hd=>{"use strict";varC6e=require("net"),jAe=require("tls"),Qx=require("http"),TG=require("https"),KAe=require("events"),I6e=require("assert"),XAe=require("util");hd.httpOverHttp=ZAe;hd.httpsOverHttp=epe;hd.httpOverHttps=tpe;hd.httpsOverHttps=rpe;functionZAe(t){vare=newta(t);returne.request=Qx.request,e}o(ZAe,"httpOverHttp");functionepe(t){vare=newta(t);returne.request=Qx.request,e.createSocket=vG,e.defaultPort=443,e}o(epe,"httpsOverHttp");functiontpe(t){vare=newta(t);returne.request=TG.request,e}o(tpe,"httpOverHttps");functionrpe(t){vare=newta(t);returne.request=TG.request,e.createSocket=vG,e.defaultPort=443,e}o(rpe,"httpsOverHttps");functionta(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Qx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(varc=PG(s,i,a),l=0,u=e.requests.length;l<u;++l){vard=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(ta,"TunnelingAgent");XAe.inherits(ta,KAe.EventEmitter);ta.prototype.addRequest=o(function(e,r,n,s){vari=this,a=Rx({request:e},i.options,PG(r,n,s));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);functionl(){i.emit("free",c,a)}o(l,"onFree");functionu(d){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");ta.prototype.createSocket=o(function(e,r){varn=this,s={};n.sockets.push(s);vari=Rx({},n.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 "+newBuffer(i.proxyAuth).toString("base64")),rc("making CONNECT request");vara=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();functionc(A){A.upgrade=!0}o(c,"onResponse");functionl(A,p,f){process.nextTick(function(){u(A,p,f)})}o(l,"onUpgrade");functionu(A,p,f){if(a.removeAllListeners(),p.removeAllListeners(),A.statusCode!==200){rc("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();varh=newError("tunneling socket could not be established, statusCode="+A.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(f.length>0){rc("got illegal response body from proxy"),p.destroy();varh=newError("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}returnrc("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}o(u,"onConnect");functiond(A){a.removeAllListeners(),rc(`tunneling socket could not be established, cause=%s
`);p.push(g),i+=g.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data;boundary=${l}`}else if(UV(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Ff.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Cme(t)}if((typeof s=="string"||Ff.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:A}=await l.next();if(A)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!VV(r)){let p=new Uint8Array(d);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o($V,"extractBody");function _me(t,e=!1){return t instanceof ReadableStream&&(kQ(!Ff.isDisturbed(t),"The body has already been consumed."),kQ(!t.locked,"The stream is locked.")),$V(t,e)}o(_me,"safelyExtractBody");function kme(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(kme,"cloneBody");function Dme(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Dme,"throwIfAborted");function Ome(t){return{blob(){return Qd(this,r=>{let n=GV(this);return n===null?n="":n&&(n=Tme(n)),new xme([r],{type:n})},t)},arrayBuffer(){return Qd(this,r=>new Uint8Array(r).buffer,t)},text(){return Qd(this,HV,t)},json(){return Qd(this,Lme,t)},formData(){return Qd(this,r=>{let n=GV(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=vme(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new qV;return i[Rd]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new qV;for(let[a,c]of s)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 Qd(this,r=>new Uint8Array(r),t)}}}o(Ome,"bodyMixinMethods");function Mme(t){Object.assign(t.prototype,Ome(t))}o(Mme,"mixinBody");async function Qd(t,e,r){if(Nme.brandCheck(t,r),YV(t))throw new TypeError("Body is unusable: Body has already been read");Dme(t[Rd]);let n=bme(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Rd].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await wme(t[Rd].body,i,s),n.promise)}o(Qd,"consumeBody");function YV(t){let e=t[Rd].body;return e!=null&&(e.stream.locked||Ff.isDisturbed(e.stream))}o(YV,"bodyUnusable");function Lme(t){return JSON.parse(HV(t))}o(Lme,"parseJSONFromBytes");function GV(t){let e=t[Rd].headersList,r=Sme(e);return r==="failure"?null:r}o(GV,"bodyMimeType");WV.exports={extractBody:$V,safelyExtractBody:_me,cloneBody:kme,mixinBody:Mme,streamRegistry:JV,hasFinalizationRegistry:zV,bodyUnusable:YV}});var dz=m((fKe,uz)=>{"use strict";var X=require("node:assert"),te=Ie(),{channels:jV}=gd(),OQ=gQ(),{RequestContentLengthMismatchError:bl,ResponseContentLengthMismatchError:KV,RequestAbortedError:iz,HeadersTimeoutError:Fme,HeadersOverflowError:Ume,SocketError:vd,InformationalError:Pd,BodyTimeoutError:qme,HTTPParserError:Gme,ResponseExceededMaxSizeError:Hme}=ve(),{kUrl:oz,kReset:An,kClient:Cy,kParser:nt,kBlocking:Gf,kRunning:Vt,kPending:az,kSize:XV,kWriting:sc,kQueue:ni,kNoRef:Uf,kKeepAliveDefaultTimeout:Vme,kHostHeader:zme,kPendingIdx:Jme,kRunningIdx:ms,kError:Hr,kPipelining:Iy,kSocket:Sl,kKeepAliveTimeoutValue:by,kMaxHeadersSize:MQ,kKeepAliveMaxTimeout:$me,kKeepAliveTimeoutThreshold:Yme,kHeadersTimeout:Wme,kBodyTimeout:jme,kStrictContentLength:UQ,kMaxRequests:ZV,kCounter:Kme,kMaxResponseSize:Xme,kOnError:ez,kResume:aa,kHTTPContext:cz}=dt(),Fn=JH(),tz=Buffer.alloc(0),gy=Buffer[Symbol.species],Ey=te.addListener,Zme=te.removeAllListeners,Nl=Symbol("kIdleSocketValidation"),wl=Symbol("kIdleSocketValidationTimeout"),VQ=Symbol("kSocketUsed"),LQ;async function ege(){let t=process.env.JEST_WORKER_ID?CQ():voi
`}return jV.sendHeaders.hasSubscribers&&jV.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?nz(h,null,t,e,f,d,g,A):te.isBuffer(l)?nz(h,l,t,e,f,d,g,A):te.isBlobLike(l)?typeof l.stream=="function"?sz(h,l.stream(),t,e,f,d,g,A):cge(h,l,t,e,f,d,g,A):te.isStream(l)?age(h,l,t,e,f,d,g,A):te.isIterable(l)?sz(h,l,t,e,f,d,g,A):X(!1),!0}o(oge,"writeH1");function age(t,e,r,n,s,i,a,c){X(i!==0||r[Vt]===0,"stream body cannot be pipelined");let l=!1,u=new wy({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){te.destroy(this,g)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let h=new iz;queueMicrotask(()=>f(h))}},"onClose"),f=o(function(h){if(!l){if(l=!0,X(s.destroyed||s[sc]&&r[Vt]<=1),s.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?te.destroy(e,h):te.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),s.on("drain",A).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(age,"writeStream");function nz(t,e,r,n,s,i,a,c){try{e?te.isBuffer(e)&&(X(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length:${i}\r
`,"latin1")),n.onRequestSent(),r[aa]()}catch(l){t(l)}}o(nz,"writeBuffer");async function cge(t,e,r,n,s,i,a,c){X(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new bl;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length:${i}\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[An]=!0),r[aa]()}catch(l){t(l)}}o(cge,"writeBlob");async function sz(t,e,r,n,s,i,a,c){X(i!==0||r[Vt]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let d=o(()=>new Promise((p,f)=>{X(l===null),s[Hr]?f(s[Hr]):l=p}),"waitForDrain");s.on("close",u).on("drain",u);let A=new wy({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(s[Hr])throw s[Hr];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{s.off("close",u).off("drain",u)}}o(sz,"writeIterable");var wy=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[sc]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Hr])throw r[Hr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(i[UQ])throw new bl;process.emitWarning(new bl)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[An]=!0),s===null?r.write(`${l}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[UQ])throw new bl;process.emitWarning(new bl)}e[nt].timeout&&e[nt].timeoutType===_d&&e[nt].timeout.refresh&&e[nt].timeout.refresh(),n[aa]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[sc]=!1,e&&(X(n[Vt]<=1,"pipeline should only contain this request"),s(e))}};uz.exports=rge});var yz=m((mKe,Ez)=>{"use strict";var gs=require("node:assert"),{pipeline:lge}=require("node:stream"),we=Ie(),{RequestContentLengthMismatchError:zQ,RequestAbortedError:Az,SocketError:Hf,InformationalError:JQ}=ve(),{kUrl:Sy,kReset:xy,kClient:kd,kRunning:Qy,kPending:uge,kQueue:ic,kPendingIdx:$Q,kRunningIdx:si,kError:oi,kSocket:lr,kStrictContentLength:dge,kOnError:YQ,kMaxConcurrentStreams:gz,kHTTP2Session:ii,kResume:oc,kSize:Age,kHTTPContext:pge}=dt(),ca=Symbol("open streams"),pz,fz=!1,Ny;try{Ny=require("node:http2")}catch{Ny={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:fge,HTTP2_HEADER_METHOD:hge,HTTP2_HEADER_PATH:mge,HTTP2_HEADER_SCHEME:gge,HTTP2_HEADER_CONTENT_LENGTH:Ege,HTTP2_HEADER_EXPECT:yge,HTTP2_HEADER_STATUS:Cge}}=Ny;function Ige(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(Ige,"parseH2Headers");async function Bge(t,e){t[lr]=e,fz||(fz=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Ny.connect(t[Sy],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[gz]});r[ca]=0,r[kd]=t,r[lr]=e,we.addListener(r,"error",wge),we.addListener(r,"frameError",Sge),we.addListener(r,"end",Nge),we.addListener(r,"goaway",xge),we.addListener(r,"close",function(){let{[kd]:s}=this,{[lr]:i}=s,a=this[lr][oi]||this[oi]||new Hf("closed",we.getSocketInfo(i));if(s[ii]=null,s.destroyed){gs(s[uge]===0);let c=s[ic].splice(s[si]);for(let l=0;l<c.length;l++){let u=c[l];we.errorRequest(s,u,a)}}}),r.unref(),t[ii]=r,e[ii]=r,we.addListener(e,"error",function(s){gs(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[oi]=s,this[kd][YQ](s)}),we.addListener(e,"end",function(){we.destroy(this,new Hf("other side closed",we.getSocketInfo(this)))}),we.addListener(e,"close",function(){let s=this[oi]||new Hf("closed",we.getSocketInfo(this));t[lr]=null,this[ii]!=null&&this[ii].destroy(s),t[$Q]=t[si],gs(t[Qy]===0),t.emit("disconnect",t[Sy],[t],s),t[oc]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return Rge(t,...s)},resume(){bge(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(Bge,"connectH2");function bge(t){let e=t[lr];e?.destroyed===!1&&(t[Age]===0&&t[gz]===0?(e.unref(),t[ii].unref()):(e.ref(),t[ii].ref()))}o(bge,"resumeH2");function wge(t){gs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[lr][oi]=t,this[kd][YQ](t)}o(wge,"onHttp2SessionError");function Sge(t,e,r){if(r===0){let n=new JQ(`HTTP/2:"frameError"received-type${t},code${e}`);this[lr][oi]=n,this[kd][YQ](n)}}o(Sge,"onHttp2FrameError");function Nge(){let t=new Hf("other side closed",we.getSocketInfo(this[lr]));this.destroy(t),we.destroy(this[lr],t)}o(Nge,"onHttp2SessionEnd");function xge(t){let e=this[oi]||new Hf(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,we.getSocketInfo(this)),r=this[kd];if(r[lr]=null,r[pge]=null,this[ii]!=null&&(this[ii].destroy(e),this[ii]=null),we.destroy(this[lr],e),r[si]<r[ic].length){let n=r[ic][r[si]];r[ic][r[si]++]=null,we.errorRequest(r,n,e),r[$Q]=r[si]}gs(r[Qy]===0),r.emit("disconnect",r[Sy],[r],e),r[oc]()}o(xge,"onHTTP2GoAway");function Qge(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(Qge,"shouldSendContentLength");function Rge(t,e){let r=t[ii],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return we.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let B=0;B<u.length;B+=2){let N=u[B+0],Q=u[B+1];if(Array.isArray(Q))for(let D=0;D<Q.length;D++)A[N]?A[N]+=`,${Q[D]}`:A[N]=Q[D];else A[N]=Q}let p,{hostname:f,port:h}=t[Sy];A[fge]=i||`${f}$
`;if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.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
`)+4,e.outputData[0].data=e._header+n.substring(s),kA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(kA("Creating `tls.Socket`: %o",this.connectOpts),i=cke.connect(this.connectOpts)):(kA("Creating `net.Socket`: %o",this.connectOpts),i=ake.connect(this.connectOpts)),await(0,uke.once)(i,"connect"),i}};rB.protocols=["http","https"];Ps.HttpProxyAgent=rB;function Ake(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(Ake,"omit")});var YK=m(mB=>{"use strict";Object.defineProperty(mB,"__esModule",{value:!0});mB.state=void 0;mB.state={instrumenterImplementation:void 0}});var dX=m(IB=>{"use strict";Object.defineProperty(IB,"__esModule",{value:!0});IB.state=void 0;IB.state={operationRequestMap:new WeakMap}});var H7=m(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});var P1e=require("os"),_1e=require("util");function k1e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(k1e,"_interopDefaultLegacy");var D1e=k1e(_1e);function O1e(t,...e){process.stderr.write(`${D1e.default.format(t,...e)}${P1e.EOL}`)}o(O1e,"log");var _7=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,D7,PM=[],_M=[],Ub=[];_7&&kM(_7);var O7=Object.assign(t=>M7(t),{enable:kM,enabled:DM,disable:M1e,log:O1e});function kM(t){D7=t,PM=[],_M=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?_M.push(new RegExp(`^${n.substr(1)}$`)):PM.push(new RegExp(`^${n}$`));for(let n of Ub)n.enabled=DM(n.namespace)}o(kM,"enable");function DM(t){if(t.endsWith("*"))return!0;for(let e of _M)if(e.test(t))return!1;for(let e of PM)if(e.test(t))return!0;return!1}o(DM,"enabled");function M1e(){let t=D7||"";return kM(""),t}o(M1e,"disable");function M7(t){let e=Object.assign(r,{enabled:DM(t),destroy:L1e,log:O7.log,namespace:t,extend:F1e});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return o(r,"debug"),Ub.push(e),e}o(M7,"createDebugger");function L1e(){let t=Ub.indexOf(this);return t>=0?(Ub.splice(t,1),!0):!1}o(L1e,"destroy");function F1e(t){let e=M7(`${this.namespace}:${t}`);return e.log=this.log,e}o(F1e,"extend");var eg=O7,L7=new Set,Lb=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,qb,Gb=eg("azure");Gb.log=(...t)=>{eg.log(...t)};var OM=["verbose","info","warning","error"];Lb&&(G7(Lb)?F7(Lb):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${Lb}';loggingisnotenabled.Acceptablevalues:${OM.join(", ")}.`));function F7(t){if(t&&!G7(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${OM.join(",")}`);qb=t;let e=[];for(let r of L7)q7(r)&&e.push(r.namespace);eg.enable(e.join(","))}o(F7,"setLogLevel");function U1e(){return qb}o(U1e,"getLogLevel");var k7={verbose:400,info:300,warning:200,error:100};function q1e(t){let e=Gb.extend(t);return U7(Gb,e),{error:Fb(e,"error"),warning:Fb(e,"warning"),info:Fb(e,"info"),verbose:Fb(e,"verbose")}}o(q1e,"createClientLogger");function U7(t,e){e.log=(...r)=>{t.log(...r)}}o(U7,"patchLogMethod");function Fb(t,e){let r=Object.assign(t.extend(e),{level:e});if(U7(t,r),q7(r)){let n=eg.disable();eg.enable(n+","+r.namespace)}return L7.add(r),r}o(Fb,"createLogger");function q7(t){return!!(qb&&k7[t.level]<=k7[qb])}o(q7,"shouldEnable");function G7(t){return OM.includes(t)}o(G7,"isAzureLogLevel");XA.AzureLogger=Gb;XA.createClientLogger=q1e;XA.getLogLevel=U1e;XA.setLogLevel=F7});var FM=m(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});var ZA=new WeakMap,Hb=new WeakMap,tg=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,ZA.set(this,[]),Hb.set(this,!1)}get aborted(){if(!Hb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Hb.get(this)}static get none(){return new t}addEventListener(e,r){if(!ZA.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");ZA.get(this).push(r)}removeEventListener(e,r){if(!ZA.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=ZA.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){thro
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Rze,"logUnexpecedPropertyAccessOnce");function Tze(){Object.keys(I0).forEach(function(t){delete I0[t]})}o(Tze,"resetLoggedProperties")});var b0=m(ko=>{"use strict";ko.__esModule=!0;ko.HandlebarsEnvironment=aF;function xse(t){return t&&t.__esModule?t:{default:t}}o(xse,"_interopRequireDefault");var Du=sn(),vze=ds(),iF=xse(vze),Pze=tF(),_ze=bse(),kze=nF(),B0=xse(kze),Dze=sF(),Oze="4.7.9";ko.VERSION=Oze;var Mze=8;ko.COMPILER_REVISION=Mze;var Lze=7;ko.LAST_COMPATIBLE_COMPILER_REVISION=Lze;var Fze={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"};ko.REVISION_CHANGES=Fze;var oF="[object Object]";function aF(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Pze.registerDefaultHelpers(this),_ze.registerDefaultDecorators(this)}o(aF,"HandlebarsEnvironment");aF.prototype={constructor:aF,logger:B0.default,log:B0.default.log,registerHelper:o(function(e,r){if(Du.toString.call(e)===oF){if(r)throw new iF.default("Arg not supported with multiple helpers");Du.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(Du.toString.call(e)===oF)Du.extend(this.partials,e);else{if(typeof r>"u")throw new iF.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(Du.toString.call(e)===oF){if(r)throw new iF.default("Arg not supported with multiple decorators");Du.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Dze.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Uze=B0.default.log;ko.log=Uze;ko.createFrame=Du.createFrame;ko.logger=B0.default});var Rse=m((w0,Qse)=>{"use strict";w0.__esModule=!0;function cF(t){this.string=t}o(cF,"SafeString");cF.prototype.toString=cF.prototype.toHTML=function(){return""+this.string};w0.default=cF;Qse.exports=w0.default});var Tse=m(lF=>{"use strict";lF.__esModule=!0;lF.wrapHelper=qze;function qze(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(qze,"wrapHelper")});var Ose=m($c=>{"use strict";$c.__esModule=!0;$c.checkRevision=$ze;$c.template=Yze;$c.wrapProgram=S0;$c.resolvePartial=Wze;$c.invokePartial=jze;$c.noop=kse;function Gze(t){return t&&t.__esModule?t:{default:t}}o(Gze,"_interopRequireDefault");function Hze(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(Hze,"_interopRequireWildcard");var Vze=sn(),Np=Hze(Vze),zze=ds(),Ua=Gze(zze),qa=b0(),vse=tF(),Jze=Tse(),Pse=sF();function $ze(t){var e=t&&t[0]||1,r=qa.COMPILER_REVISION;if(!(e>=qa.LAST_COMPATIBLE_COMPILER_REVISION&&e<=qa.COMPILER_REVISION))if(e<qa.LAST_COMPATIBLE_COMPILER_REVISION){var n=qa.REVISION_CHANGES[r],s=qa.REVISION_CHANGES[e];throw new Ua.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Ua.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($ze,"checkRevision");function Yze(t,e){if(!e)throw new Ua.default("No environment passed to template");if(!t||!t.main)throw new Ua.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=Np.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),p=0;p<A.length&&(c=this._input.match(this.rules[A[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,A[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)+`.Unrecognizedtext.
`,N9e=/\u2014 (\S+) (\S+)\n/g;function x9e(t,e){let r=t.inclusionProof,n=_q.fromString(r.checkpoint.envelope),s=FN.fromString(n.note);if(!Q9e(n,e))throw new wE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}o(x9e,"verifyCheckpoint");function Q9e(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>Kle.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.match(n.name));return s?Kle.crypto.verify(r,s.publicKey,n.signature):!1})}o(Q9e,"verifySignedNote");var _q=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Pq))throw new wE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Pq),n=e.slice(0,r+1),i=e.slice(r+Pq.length).matchAll(N9e),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new wE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new wE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},FN=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,s){this.origin=e,this.logSize=r,this.logHash=n,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new wE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],s=BigInt(r[1]),i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,s,i,a)}};SE.LogCheckpoint=FN});var Zle=m(Mq=>{"use strict";Object.defineProperty(Mq,"__esModule",{value:!0});Mq.verifyMerkleInclusion=v9e;var Oq=Ri(),kq=Mr(),R9e=Buffer.from([0]),T9e=Buffer.from([1]);function v9e(t,e){let r=t.inclusionProof,n=BigInt(r.logIndex),s=BigInt(e.logSize);if(n<0n||n>=s)throw new kq.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${n}`});let{inner:i,border:a}=P9e(n,s);if(r.hashes.length!==i+a)throw new kq.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=L9e(t.canonicalizedBody),d=k9e(_9e(u,c,n),l);if(!Oq.crypto.bufferEqual(d,e.logHash))throw new kq.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(v9e,"verifyMerkleInclusion");function P9e(t,e){let r=D9e(t,e),n=O9e(t>>BigInt(r));return{inner:r,border:n}}o(P9e,"decompInclProof");function _9e(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?Dq(s,n):Dq(n,s),t)}o(_9e,"chainInner");function k9e(t,e){return e.reduce((r,n)=>Dq(n,r),t)}o(k9e,"chainBorderRight");function D9e(t,e){return M9e(t^e-BigInt(1))}o(D9e,"innerProofSize");function O9e(t){return t.toString(2).split("1").length-1}o(O9e,"onesCount");function M9e(t){return t===0n?0:t.toString(2).length}o(M9e,"bitLength");function Dq(t,e){return Oq.crypto.digest("sha256",T9e,t,e)}o(Dq,"hashChildren");function L9e(t){return Oq.crypto.digest("sha256",R9e,t)}o(L9e,"hashLeaf")});var tue=m(Lq=>{"use strict";Object.defineProperty(Lq,"__esModule",{value:!0});Lq.verifyTLogSET=q9e;var eue=Ri(),F9e=Mr(),U9e=pf();function q9e(t,e){if(!(0,U9e.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=G9e(t),a=Buffer.from(eue.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return eue.crypto.verify(a,s.publicKey,c)}))throw new F9e.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(q9e,"verifyTLogSET");function G9e(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(G9e,"toVerificationPayload")});var nue=m(UN=>{"use strict";Object.defineProperty(UN,"__esModule",{value:!0});UN.verifyTLogBody=$9e;UN.verifyTLogInclusion=Y9e;var rue=$le(),qq=Mr(),Fq=Yle(),Uq=Wle(),H9e=jle(),V9e=Xle(),z9e=Zle(),J9e=tue();function $9e(t,e){let{kind:r,version:n}=t.kindVersion,s=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==s.kind||n!==s.apiVersion)throw new qq.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${n},received:${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==Fq.DSSE_API_VERSION_V1)return(0,Fq.verifyDSSETLogBody)(s,e);{let i=rue.Entry.fromJSON(s);return(0,Fq.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,H9e.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==Uq.HASHEDREKORD_API_VERSION_V1)return(0,Uq.verifyHashedRekordTLogBody)(s,e);{let i=rue.Entry.fromJSON(s);return(0,Uq.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new qq.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}o($9e,"verifyTLogBody");function Y9e(t,e){let r=!1;if(W9e(t)&&((0,J9e.verifyTLogSET)(t,e),r=!0),j9e(t)){let n=(0,V9e.verifyCheckpoint)(t,e);(0,z9e.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new qq.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(Y9e,"verifyTLogInclusion");function W9e(t){return t.inclusionPromise!==void 0}o(W9e,"isTLogEntryWithInclusionPromise");function j9e(t){return t.inclusionProof!==void 0}o(j9e,"isTLogEntryWithInclusionProof")});var cue=m(qN=>{"use strict";Object.defineProperty(qN,"__esModule",{value:!0});qN.Verifier=void 0;var K9e=require("util"),
`),u="",d=!1,A=0,p=!1;for(let f of l){let h=0;for(;h<a&&f.charCodeAt(h)===32;)h++;if(n<0||h>=f.length){A++;continue}let g=f.slice(a),y=g.charCodeAt(0);i?y===32||y===9?(p=!0,u+=`
`),u}o(iG,"getBlockValue");function lAe(t,e){if(e.valueStart===rAe)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case 2:return aAe(t,r,n);case 3:return cAe(t,r,n);case 4:return iG(t,r,n,e.indent,e.chomping,!1);case 5:return iG(t,r,n,e.indent,e.chomping,!0);default:return oAe(t,r,n)}}o(lAe,"getScalarValue");var uAe={"!":"!","!!":"tag:yaml.org,2002:"};function gG(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return decodeURIComponent(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1),s=e?.[n]??uAe[n]??n;return decodeURIComponent(s)+decodeURIComponent(t.slice(n.length))}o(gG,"tagNameFull");var ud=-1,Ix={filename:"",schema:Xde,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function dAe(t){return"tagStart"in t&&t.tagStart!==ud?t.tagStart:"anchorStart"in t&&t.anchorStart!==ud?t.anchorStart:"valueStart"in t&&t.valueStart!==ud?t.valueStart:"start"in t?t.start:0}o(dAe,"eventPosition$1");function un(t,e){qE(t.source,t.position,e,t.filename)}o(un,"throwError$1");function EG(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof kE)throw s;qE(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}o(EG,"finalizeCollection");function _E(t,e,r){let n=t[r];if(n)return n;for(let s of e)if(r.startsWith(s.tagName))return s}o(_E,"lookupTag");function AAe(t,e,r,n,s){let i=_E(e,r,n);if(i)return i;un(t,`unknown${s}tag!<${n}>`)}o(AAe,"findExplicitTag");function pAe(t,e){let r=lAe(t.source,e),n=e.tagStart===ud?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let i=gG(n,t.tagHandlers),a=_E(t.schema.exact.scalar,t.schema.prefix.scalar,i);if(a){let l=a.resolve(r,!0,i);return l===Te&&un(t,`cannotresolveanodewith!<${i}>explicittag`),{value:l,tag:a}}let c=_E(t.schema.exact.mapping,t.schema.prefix.mapping,i)??_E(t.schema.exact.sequence,t.schema.prefix.sequence,i);if(c){r!==""&&un(t,`cannotresolveanodewith!<${i}>explicittag`);let l=c.create(i);return{value:c.carrierIsResult?l:EG(t,t.position,c,l),tag:c}}un(t,`unknownscalartag!<${i}>`)}if(e.style===1){let i=t.schema.implicitScalarByFirstChar.get(r.charAt(0))??t.schema.implicitScalarAnyFirstChar;for(let a of i){let c=a.resolve(r,!1,a.tagName);if(c!==Te)return{value:c,tag:a}}}return{value:s.resolve(r,!1,s.tagName),tag:s}}o(pAe,"constructScalar");function oG(t,e,r,n,s,i){let a=e.tagStart===ud?"":t.source.slice(e.tagStart,e.tagEnd),c=a===""||a==="!"?s:gG(a,t.tagHandlers);return{tagName:c,tag:AAe(t,r,n,c,i)}}o(oG,"collectionTag");function yG(t){return t.nodeKind==="mapping"}o(yG,"isMappingTag");function aG(t,e,r,n){for(let s of n.keys(r)){if(t.maxTotalMergeKeys!==-1&&++t.totalMergeKeys>t.maxTotalMergeKeys&&un(t,`mergekeysexceededmaxTotalMergeKeys(${t.maxTotalMergeKeys})`),e.tag.has(e.value,s))continue;let i=e.tag.addPair(e.value,s,n.get(r,s));i&&un(t,i),(e.overridable??=new Set).add(s)}}o(aG,"mergeKeys");function fAe(t,e,r,n){if(t.position=e.keyPosition,yG(n))aG(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r))for(let s of r)aG(t,e,s,e.tag);else un(t,"cannot merge mappings; the provided source object is unacceptable")}o(fAe,"mergeSource");function hAe(t,e,r,n,s){if(t.position=e.keyPosition,r===gx){fAe(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&un(t,"duplicated mapping key");let i=e.tag.addPair(e.value,r,n);i&&un(t,i),e.overridable?.delete(r)}o(hAe,"addMappingValue");function cx(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){n.merge&&(yG(r)||un(t,"cannot merge mappings; the provided source object is unacceptable"));let s=n.tag.addItem(n.value,e,n.index++);s&&un(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,hAe(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0}o(cx,"addValue");function lx(t,e,r,n,s){if(e.anchorStart!==ud){let i={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),i),i}return null}o(lx,"storeAnchor");function mAe(t,e){let r={...Ix,...e,events:t,documents:[],eventIndex:0,positio
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}o(Yl,"getBooleanInput");functionDh(t,e){if(process.env.GITHUB_OUTPUT||"")returnVE("OUTPUT",Nx(t,e));process.stdout.write(fv.EOL),ea("set-output",{name:t},Zo(e))}o(Dh,"setOutput");functionRj(t){process.exitCode=pv.Failure,fA(t)}o(Rj,"setFailed");functionEa(){returnprocess.env.RUNNER_DEBUG==="1"}o(Ea,"isDebug");functionb(t){ea("debug",{},t)}o(b,"debug");functionfA(t,e={}){ea("error",bx(e),tinstanceofError?t.toString():t)}o(fA,"error");functionVe(t,e={}){ea("warning",bx(e),tinstanceofError?t.toString():t)}o(Ve,"warning");functionS(t){process.stdout.write(t+fv.EOL)}o(S,"info");functionwSe(t){Sx("group",t)}o(wSe,"startGroup");functionSSe(){Sx("endgroup")}o(SSe,"endGroup");functionit(t,e){returnbSe(this,void0,void0,function*(){wSe(t);letr;try{r=yielde()}finally{SSe()}returnr})}o(it,"group");functiongn(t,e){if(process.env.GITHUB_STATE||"")returnVE("STATE",Nx(t,e));ea("save-state",{name:t},Zo(e))}o(gn,"saveState");functionTj(t){returnprocess.env[`STATE_${t}`]||""}o(Tj,"getState");varYw=w(require("fs"),1),B1=w(require("os"),1),b1=w(require("path"),1);varPj=w(require("os"),1);functionOh(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}o(Oh,"toCommandValue");function_j(t,e,r){letn=newhv(t,e,r);process.stdout.write(n.toString()+Pj.EOL)}o(_j,"issueCommand");varvj="::",hv=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=vj+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){lets=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${xSe(s)}`)}}returne+=`${vj}${NSe(this.message)}`,e}};functionNSe(t){returnOh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(NSe,"escapeData");functionxSe(t){returnOh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(xSe,"escapeProperty");varMj=w(require("os"),1);varDj=require("os"),Mh=require("fs");varmv=function(t,e,r,n){functions(i){returniinstanceofr?i:newr(function(a){a(i)})}returno(s,"adopt"),new(r||(r=Promise))(function(i,a){functionc(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");functionl(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");functionu(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:QSe,appendFile:RSe,writeFile:TSe}=Mh.promises,kj="GITHUB_STEP_SUMMARY";vargv=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){returnmv(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[kj];if(!e)thrownewError(`Unable to find environment variable for $${kj}. Check if your runtime environment supports job summaries.`);try{yieldQSe(e,Mh.constants.R_OK|Mh.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,n={}){lets=Object.entries(n).map(([i,a])=>`${i}="${a}"`).join("");returnr?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){returnmv(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?TSe:RSe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnmv(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){returnthis._buffer.length===0}emptyBuffer(){returnthis._buffer="",this}addRaw(e,r=!1){returnthis._buffer+=e,r?this.addEOL():this}addEOL(){returnthis.addRaw(Dj.EOL)}addCodeBlock(e,r){letn=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);returnthis.addRaw(s).addEOL()}addList(e,r=!1){letn=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);returnthis.addRaw(i).addEOL()}addTable(e){letr=e.map(s=>{leti=s.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);let{header:c,data:
${GPe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function kI(t){return t instanceof Xr?!0:tu(t)&&t.name==="RestError"}o(kI,"isRestError");function En(t,e){return Buffer.from(t,e)}o(En,"stringToUint8Array");var DI=w(require("node:http"),1),OI=w(require("node:https"),1),qP=w(require("node:zlib"),1),v6=require("node:stream");var Rs=um("ts-http-runtime");var HPe={};function dm(t){return t&&typeof t.pipe=="function"}o(dm,"isReadableStream");function T6(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(T6,"isStreamComplete");function P6(t){return t&&typeof t.byteLength=="number"}o(P6,"isArrayBuffer");var MI=class extends v6.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},GP=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Xi("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new mi;Rs.info(`requestto'${u.sanitizeUrl(e.url)}'timedout.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=$Pe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new MI(h);g.on("error",y=>{Rs.error("Error in upload progress",y)}),dm(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=VPe(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?zPe(u,d):u;let f=e.onDownloadProgress;if(f){let h=new MI(f);h.on("error",g=>{Rs.error("Error in download progress",g)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await JPe(l),p}finally{if(e.abortSignal&&n){let u=Promise.resolve();dm(c)&&(u=T6(c));let d=Promise.resolve();dm(l)&&(d=T6(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(A=>{Rs.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=i?DI.default.request(c,l):OI.default.request(c,l);d.once("error",A=>{u(new Xr(A.message,{code:A.code??Xr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new Xi("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(A),u(A)}),n&&dm(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):P6(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Rs.error("Unrecognized body type",n),u(new Xr("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?DI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new DI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return OI.default.globalAgent;let s=e.tlsSettings??HPe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Rs.info("No cached TLS Agent exist, creat
`;return e}o(wke,"encodeHeaders");function Ske(t){return t instanceof Uint8Array?t.byteLength:aB(t)?t.size===-1?void 0:t.size:void 0}o(Ske,"getLength");function Nke(t){let e=0;for(let r of t){let n=Ske(r);if(n===void 0)return;e+=n}return e}o(Nke,"getTotalLength");async function xke(t,e,r){let n=[En(`--${r}`,"utf-8"),...e.flatMap(i=>[En(`\r
`,"utf-8")],s=Nke(n);s&&t.headers.set("Content-Length",s),t.body=await OK(n)}o(xke,"buildRequestBody");var fm="multipartPolicy",Qke=70,Rke=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Tke(t){if(t.length>Qke)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!Rke.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}o(Tke,"assertValidBoundary");function lB(){return{name:fm,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${n}`);let[,i,a]=s;if(a&&r&&a!==r)throw new Error(`Multipartboundarywasspecifiedas${a}intheheader,butgot${r}intherequestbody`);return r??=a,r?Tke(r):r=bke(),t.headers.set("Content-Type",`${i};boundary=${r}`),await xke(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(lB,"multipartPolicy");function uB(){return _I()}o(uB,"createEmptyPipeline");var MK=TI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Xlt=MK.logger;function to(t){return MK.createClientLogger(t)}o(to,"createClientLogger");var ro=to("core-rest-pipeline");function a_(t={}){return FI({logger:ro.info,...t})}o(a_,"logPolicy");var c_=UI;function l_(t={}){return qI(t)}o(l_,"redirectPolicy");var dB=w(require("node:os"),1),AB=w(require("node:process"),1);function LK(){return"User-Agent"}o(LK,"getHeaderName");async function FK(t){if(AB.default&&AB.default.versions){let e=`${dB.default.type()}${dB.default.release()};${dB.default.arch()}`,r=AB.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(FK,"setPlatformSpecificData");var pB="1.22.2";function Lke(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(Lke,"getUserAgentString");function UK(){return LK()}o(UK,"getUserAgentHeaderName");async function fB(t){let e=new Map;e.set("core-rest-pipeline",pB),await FK(e);let r=Lke(e);return t?`${t}${r}`:r}o(fB,"getUserAgentValue");var qK=UK(),GK="userAgentPolicy";function u_(t={}){let e=fB(t.userAgentPrefix);return{name:GK,async sendRequest(r,n){return r.headers.has(qK)||r.headers.set(qK,await e),n(r)}}}o(u_,"userAgentPolicy");var rs=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function d_(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new rs(s??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(d_,"createAbortablePromise");var Hke="The delay was aborted.";function hm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return d_(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??Hke})}o(hm,"delay");function vc(t){if(tu(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`Unknownerror${e}`}}o(vc,"getErrorMessage");function HK(t){return tu(t)}o(HK,"isError");function DA(){return eu()}o(DA,"randomUUID");var Fe=su;var VK=Symbol("rawContent");function p_(t){return typeof t[VK]=="function"}o(p_,"hasRawContent");function zK(t){return p_(t)?t[VK]():t}o(zK,"getRawContent");var hB=fm;function f_(){let t=lB();return{name:hB,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)p_(n.body)&&(n.body=zK(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(f_,"multipartPolicy");var h_=GI;function m_(){return HI()}o(m_,"decompressResponsePolicy");function g_(t={}){return JI(t
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!pOe(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Mt("InvalidTag",A,Zr(t,i))}let u=cOe(t,i);if(u===!1)return Mt("InvalidAttr","Attributes for '"+l+"' have open quote.",Zr(t,i));let d=u.value;if(i=u.index,d[d.length-1]==="/"){let A=i-d.length;d=d.substring(0,d.length-1);let p=TX(d,e);if(p===!0)n=!0;else return Mt(p.err.code,p.err.msg,Zr(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Mt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Zr(t,a));if(r.length===0)return Mt("InvalidTag","Closing tag '"+l+"' has not been opened.",Zr(t,a));{let A=r.pop();if(l!==A.tagName){let p=Zr(t,A.tagStartPos);return Mt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",Zr(t,a))}r.length==0&&(s=!0)}}else return Mt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Zr(t,i));else{let A=TX(d,e);if(A!==!0)return Mt(A.err.code,A.err.msg,Zr(t,i-d.length+A.err.line));if(s===!0)return Mt("InvalidXml","Multiple possible root nodes found.",Zr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=RX(t,i);continue}else if(t[i+1]==="?"){if(i=QX(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=dOe(t,i);if(A==-1)return Mt("InvalidChar","char '&' is not expected.",Zr(t,i));i=A}else if(s===!0&&!xX(t[i]))return Mt("InvalidXml","Extra text at the end",Zr(t,i));t[i]==="<"&&i--}}else{if(xX(t[i]))continue;return Mt("InvalidChar","char '"+t[i]+"' is not expected.",Zr(t,i))}if(n){if(r.length==1)return Mt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Zr(t,r[0].tagStartPos));if(r.length>0)return Mt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Mt("InvalidXml","Start tag expected.",1);return!0}o(QB,"validate");function xX(t){return t===" "||t===" "||t===`
`||t==="\r"}o(xX,"isWhiteSpace");function QX(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Mt("InvalidXml","XML declaration allowed only at the start of the document.",Zr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(QX,"readPI");function RX(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(RX,"readCommentAndCDATA");var oOe='"',aOe="'";function cOe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===oOe||t[e]===aOe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(cOe,"readAttributeStr");var lOe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function TX(t,e){let r=NB(t,lOe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Mt("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",xm(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Mt("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",xm(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Mt("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",xm(r[s]));let i=r[s][2];if(!AOe(i))return Mt("InvalidAttr","Attribute '"+i+"' is an invalid name.",xm(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Mt("InvalidAttr","Attribute '"+i+"' is repeated.",xm(r[s]))}return!0}o(TX,"validateAttributeString");function uOe(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(uOe,"validateNumberAmpersand");function dOe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,uOe(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(dOe,"validateAmpersand");function Mt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Mt,"getErrorObject");function AOe(t){return q_(t)}o(AOe,"validateAttrName");function pOe(t){return q_(t)}o(pOe,"validateTagName");function Zr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Zr,"getLineNumberForPosition");function xm(t){return t.startIndex+t[1].length}o(xm,"getPositionFromMatch");var vX={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"},PX={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"
`);let e=new Bn("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Tm(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=qA(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=W_(s.transformTagName,A,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&s.unpairedTagsSet.has(A))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${A}>`);p&&s.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=j_(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let A=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(A){let p=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let p=new Bn(d.tagName);p.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(p[":@"]=A),this.addChild(r,p,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=qA(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let A=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:A}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=i.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=qA(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:A}]):r.add(s.textNodeName,p),c=d+2}else{let d=j_(t,c,s.removeNSPrefix);if(!d){let Q=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${Q}"`)}let A=d.tagName,p=d.rawTagName,f=d.tagExp,h=d.attrExpPresent,g=d.closeIndex;if({tagName:A,tagExp:f}=W_(s.transformTagName,A,f,s),s.strictReservedNames&&(A===s.commentPropName||A===s.cdataPropName||A===s.textNodeName||A===s.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),f=A):f=f.substr(0,f.length-1),h=A!==f);let C=null,I={},B;B=OOe(p),A!==e.tagname&&this.matcher.push(A,{},B),A!==f&&h&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=DOe(C,s))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let Q="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(A))c=d.closeIndex;else{let ue=this.readStopNodeData(t,p,g+1);if(!ue)throw new Error(`Unexpected end of ${p}`);c=ue.i,Q=ue.tagContent}let D=new Bn(A);C&&(D[":@"]=C),D.add(s.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=W_(s.transformTagName,A,f,s));let Q=new Bn(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(A)){let Q=new Bn(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let Q=new Bn(A);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}n="",c=g}}}else n+=t[c];return e.child},"parse
`}),n}getCanonicalizedResourceString(e){let r=qB(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=GB(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();i[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=qB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=GB(i.url),u={};if(l){let d=[];for(let A in l)if(Object.prototype.hasOwnProperty.call(l,A)){let p=A.toLowerCase();u[p]=l[A],d.push(p)}d.sort();for(let A of d)c+=`
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Bi(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(S1e,"generateBlobSASQueryParameters20150405");function N1e(t,e){if(t=Iu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=wo.parse(t.permissions.toString()).toString():s=So.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Cu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ii(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(N1e,"generateBlobSASQueryParameters20181109");function x1e(t,e){if(t=Iu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=wo.parse(t.permissions.toString()).toString():s=So.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Cu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ii(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(x1e,"generateBlobSASQueryParameters20201206");function Q1e(t,e){if(t=Iu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=wo.parse(t.permissions.toString()).toString():s=So.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Cu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ii(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(Q1e,"generateBlobSASQueryParametersUDK20181109");function R1e(t,e){if(t=Iu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=wo.parse(t.permissions.toString()).toString():s=So.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Cu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ii(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(R1e,"generateBlobSASQueryParametersUDK20200210");function T1e(t,e){if(t=Iu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=wo.parse(t.permissions.toString()).toString():s=So.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Cu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ii(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(T1e,"generateBlobSASQueryParametersUDK20201206");function v1e(t,e){if(t=Iu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=wo.parse(t.permissions.toString()).toString():s=So.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Cu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ii(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Bi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(v1e,"generateBlobSASQueryParametersUDK20250705");function Cu(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Cu,"getCanonicalName");function Iu(t){let e=t.version?t.version:$B;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(Iu,"SASSignatureValuesSanityCheckAndAutofill");var jm=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=DA()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==gi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==gi||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 n=>K(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==gi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==gi||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 n=>{let s=K(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMat
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints: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"}};tp.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Su=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
Moreinfoonstoragelimits:https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Su.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var og=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var QFe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},XM=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=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 Nee(t,e,r){return QFe(this,void 0,void 0,function*(){var n;let s=new Oa(t),i=s.getBlockBlobClient(),a=new XM((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new Xb(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Ve(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(Nee,"uploadCacheArchiveSDK");var Qee=w(require("buffer"),1),No=w(require("fs"),1),Ree=w(require("stream"),1),Tee=w(require("util"),1);var Zb=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function ew(t){return t?t>=200&&t<300:!1}o(ew,"isSuccessStatusCode");function RFe(t){return t?t>=500:!0}o(RFe,"isServerErrorStatusCode");function TFe(t){return t?[wt.BadGateway,wt.ServiceUnavailable,wt.GatewayTimeout].includes(t):!1}o(TFe,"isRetryableStatusCode");function vFe(t){return Zb(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(vFe,"sleep");function xee(t,e,r){return Zb(this,arguments,void 0,function*(n,s,i,a=wI,c=SI,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield s()}catch(h){l&&(A=l(h)),f=!0,u=h.message}if(A&&(p=i(A),!RFe(p)))return A;if(p&&(f=TFe(p),u=`Cache service responded with ${p}`),b(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){b(`${n} - Error is not retryable`);break}yield vFe(c),d++}throw Error(`${n} failed: ${u}`)})}o(xee,"retry");function ag(t,e){return Zb(this,arguments,void 0,function*(r,n,s=wI,i=SI){return yield xee(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof Ki)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(ag,"retryTypedResponse");function rp(t,e){return Zb(this,arguments,void 0,function*(r,n,s=wI,i=SI){return yield xee(r,n,a=>a.message.statusCode,s,i)})}o(rp,"retryHttpClientResponse");var Ls=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a
Othercacheswithsimilarkey:`);for(let c of i?.artifactCaches||[])b(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}o(FFe,"printCachesListForDiagnostics");function rL(t,e,r){return Nn(this,void 0,void 0,function*(){let n=new Uee.URL(t),s=kee(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Pee(t,e,s):s.concurrentBlobDownloads?yield vee(t,e,s):yield rw(t,e):yield rw(t,e)})}o(rL,"downloadCache");function Gee(t,e,r){return Nn(this,void 0,void 0,function*(){let n=tL(),s=NA(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield ag("reserveCache",()=>Nn(this,void 0,void 0,function*(){return n.postJson(lg("caches"),i)}))})}o(Gee,"reserveCache");function Fee(t,e){return`bytes${t}-${e}/*`}o(Fee,"getContentRange");function UFe(t,e,r,n,s){return Nn(this,void 0,void 0,function*(){b(`Uploadingchunkofsize${s-n+1}bytesatoffset${n}withcontentrange:${Fee(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Fee(n,s)},a=yield rp(`uploadChunk(start:${n},end:${s})`,()=>Nn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!ew(a.message.statusCode))throw new Error(`Cacheservicerespondedwith${a.message.statusCode}duringuploadchunk.`)})}o(UFe,"uploadChunk");function qFe(t,e,r,n){return Nn(this,void 0,void 0,function*(){let s=ji(r),i=lg(`caches/${e.toString()}`),a=np.openSync(r,"r"),c=ZM(n),l=QP("uploadConcurrency",c.uploadConcurrency),u=QP("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];b("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>Nn(this,void 0,void 0,function*(){for(;A<s;){let p=Math.min(s-A,u),f=A,h=A+p-1;A+=u,yield UFe(t,i,()=>np.createReadStream(r,{fd:a,start:f,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${g.message}`)}),f,h)}})))}finally{np.closeSync(a)}})}o(qFe,"uploadFile");function GFe(t,e,r){return Nn(this,void 0,void 0,function*(){let n={size:r};return yield ag("commitCache",()=>Nn(this,void 0,void 0,function*(){return t.postJson(lg(`caches/${e.toString()}`),n)}))})}o(GFe,"commitCache");function nL(t,e,r,n){return Nn(this,void 0,void 0,function*(){if(ZM(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Nee(r,e,n)}else{let i=tL();b("Upload cache"),yield qFe(i,t,e,n),b("Commiting cache");let a=ji(e);S(`CacheSize:~${Math.round(a/(1024*1024))}MB(${a}B)`);let c=yield GFe(i,t,a);if(!ew(c.statusCode))throw new Error(`Cacheservicerespondedwith${c.statusCode}duringcommitcache.`);S("Cache saved successfully")}})}o(nL,"saveCache");var Ote=w(Rte(),1),qt=w(Ut(),1),cs=w(Ut(),1),Tu=w(Ut(),1),vu=w(Ut(),1),Pu=w(Ut(),1);var KL=w(Ut(),1),XL=w(Ut(),1),_te=w(Ut(),1),kte=w(Ut(),1),Dte=w(Ut(),1);var YL=w(Ut(),1),WL=w(Ut(),1),Tte=w(Ut(),1),vte=w(Ut(),1),Pte=w(Ut(),1);var jL=class extends Pte.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,vte.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Tte.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??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=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknownfield${c}(wiretype${l})for${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?WL.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,YL.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,YL.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?WL.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Hw=new jL;var ZL=class extends Dte.Mess
`));let n=yield f1(r,"create");yield h1(n,t)})}o(g1,"createTar");var Cp=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Si=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},_u=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},E1="cache write denied:",yp=class t extends _u{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},$w=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Ute(t){if(!t||t.length===0)throw new Si("Path Validation Error: At least one directory or file path is required")}o(Ute,"checkPaths");function y1(t){if(t.length>512)throw new Si(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new Si(`KeyValidationError:${t}cannotcontaincommas.`)}o(y1,"checkKey");function C1(){return cg()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(C1,"isFeatureAvailable");function qte(t,e,r,n){return Cp(this,arguments,void 0,function*(s,i,a,c,l=!1){let u=cg();return b(`Cacheserviceversion:${u}`),Ute(s),u==="v2"?yield nqe(s,i,a,c,l):yield rqe(s,i,a,c,l)})}o(qte,"restoreCache");function rqe(t,e,r,n){return Cp(this,arguments,void 0,function*(s,i,a,c,l=!1){a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new Si("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of u)y1(p);let d=yield am(),A="";try{let p=yield qee(u,s,{compressionMethod:d,enableCrossOsArchive:l});if(!p?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),p.cacheKey;A=Sg.join(yield im(),Qc(d)),b(`ArchivePath:${A}`),yield rL(p.archiveLocation,A,c),Ea()&&(yield wg(A,d));let f=ji(A);return S(`CacheSize:~${Math.round(f/(1024*1024))}MB(${f}B)`),yield m1(A,d),S("Cache restored successfully"),p.cacheKey}catch(p){let f=p;if(f.name===Si.name)throw p;f instanceof Ki&&typeof f.statusCode=="number"&&f.statusCode>=500?fA(`Failedtorestore:${p.message}`):Ve(`Failedtorestore:${p.message}`)}finally{try{yield om(A)}catch(p){b(`Failedtodeletearchive:${p}`)}}})}o(rqe,"restoreCacheV1");function nqe(t,e,r,n){return Cp(this,arguments,void 0,function*(s,i,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new Si("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of u)y1(A);let d="";try{let A=p1(),p=yield am(),f={key:i,restoreKeys:a,version:NA(s,p,l)},h=yield A.GetCacheEntryDownloadURL(f);if(!h.ok){b(`Cachenotfoundforversion${f.version}ofkeys:${u.join(", ")}`);return}if(f.key!==h.matchedKey?S(`Cachehitforrestore-key:${h.matchedKey}`):S(`Cachehitfor:${h.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),h.matchedKey;d=Sg.join(yield im(),Qc(p)),b(`Archivepath:${d}`),b(`Startingdownloadofarchiveto:${d}`),yield rL(h.signedDownloadUrl,d,c);let y=ji(d);return S(`CacheSize:~${Math.round(y/(1024*1024))}MB(${y}B)`),Ea()&&(yield wg(d,p)),yield m1(d,p),S("Cache restored successfully"),h.matchedKey}catch(A){let p=A;if(p.name===Si.name)throw A;p instanceof Ki&&typeof p.statusCode=="number"&&p.statusCode>=500?fA(`Failedtorestore:${A.message}`):Ve(`Failedtorestore:${A.message}`)}finally{try{d&&(yield om(d))}catch(A){b(`Failedtodeletearchive:${A}`)}}})}o(nqe,"restoreCacheV2");function I1(t,e,r){return Cp(this,arguments,void 0,function*(n,s,i,a=!1)
`,a).length:A,u?(c===null?0:c.length)+l.length:0,u?l.length+A:0);return p<f},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:h,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:B,escape:N,quote:Q,record_delimiter:D}=this.options,{bomSkipped:ue,delimiterDiscovered:Ne,delimiterBufPrevious:_e,rawBuffer:qe,escapeIsQuote:Ce}=this.state;if(!Ne&&u){let Ge;if(_e===void 0?Ge=n:_e!==void 0&&n===void 0?Ge=_e:Ge=Buffer.concat([_e,n]),n=void 0,s||Ge.length>u.size)this.options.delimiter=[Buffer.from(Yie(Ge,this.options.delimiter_auto))],this.state.previousBuf=Ge,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ge;return}}let{previousBuf:Xe}=this.state,de;if(Xe===void 0)if(n===void 0){a();return}else de=n;else Xe!==void 0&&n===void 0?de=Xe:de=Buffer.concat([Xe,n]);if(ue===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(s===!1){this.state.previousBuf=de;return}}else{for(let Ge in Op)if(Op[Ge].compare(de,0,Op[Ge].length)===0){let Pi=Op[Ge].length;this.state.bufBytesStart+=Pi,de=de.slice(Pi);let ec=Dp({...this.original_options,encoding:Ge});for(let Bt in ec)this.options[Bt]=ec[Bt];({comment:B,escape:N,quote:Q}=this.options);break}this.state.bomSkipped=!0}let Lr=de.length,J;for(J=0;J<Lr&&!this.__needMoreData(J,Lr,s);J++){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&&D.length===0&&this.__autoDiscoverRecordDelimiter(de,J)&&(D=this.options.record_delimiter);let Ge=de[J];if(h===!0&&qe.append(Ge),(Ge===x$e||Ge===Q$e)&&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,J,Ge)&&J+N.length<Lr)if(Ce){if(this.__isQuote(de,J+N.length)){this.state.escaping=!0,J+=N.length-1;continue}}else{this.state.escaping=!0,J+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(de,J))if(this.state.quoting===!0){let Bt=de[J+Q.length],_i=y&&this.__isCharTrimable(de,J+Q.length),Mn=B!==null&&this.__compareBytes(B,de,J+Q.length,Bt),hl=this.__isDelimiter(de,J+Q.length,Bt),vE=D.length===0?this.__autoDiscoverRecordDelimiter(de,J+Q.length):this.__isRecordDelimiter(Bt,de,J+Q.length);if(N!==null&&this.__isEscape(de,J,Ge)&&this.__isQuote(de,J+N.length))J+=N.length-1;else if(!Bt||hl||vE||Mn||_i){this.state.quoting=!1,this.state.wasQuoting=!0,J+=Q.length-1;continue}else if(g===!1){let eG=this.__error(new be("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got"${String.fromCharCode(Bt)}"`,`atline${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(eG!==void 0)return eG}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(Q),J+=Q.length-1}else if(this.state.field.length!==0){if(g===!1){let Bt=this.__infoField(),_i=Object.keys(Op).map(hl=>Op[hl].equals(this.state.field.toString())?hl:!1).filter(Boolean)[0],Mn=this.__error(new be("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`aquoteisfoundonfield${JSON.stringify(Bt.column)}atline${Bt.lines},valueis${JSON.stringify(this.state.field.toString(d))}`,_i?`(${_i}bom)`:void 0],this.options,Bt,{field:this.state.field}));if(Mn!==void 0)return Mn}}else{this.state.quoting=!0,J+=Q.length-1;continue}if(this.state.quoting===!1){let Bt=this.__isRecordDelimiter(Ge,de,J);if(Bt!==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)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=Bt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=Bt-1;continue}this.info.bytes=this.state.bufBytesSt
`)}o(CYe,"_buildMessageForResponseErrors");var IYe=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(CYe(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},BYe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],bYe=["query","method","url"],Ooe=/\/api\/v3\/?$/;function wYe(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(bYe.includes(a))return Promise.reject(new Error(`[@octokit/graphql]"${a}"cannotbeusedasvariablename`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>BYe.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Ooe.test(i)&&(s.url=i.replace(Ooe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new IYe(s,c,a.data)}return a.data.data})}o(wYe,"graphql");function rU(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>wYe(r,s,i),"newApi"),{defaults:rU.bind(null,r),endpoint:r.endpoint})}o(rU,"withDefaults");var fPt=rU(Kg,{headers:{"user-agent":`octokit-graphql.js/${yYe}${Wc()}`},method:"POST",url:"/graphql"});function Moe(t){return rU(t,{method:"POST",url:"/graphql"})}o(Moe,"withCustomRequest");var nU="(?:[a-zA-Z0-9_-]+)",Loe="\\.",Foe=new RegExp(`^${nU}${Loe}${nU}${Loe}${nU}$`),SYe=Foe.test.bind(Foe);async function NYe(t){let e=SYe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(NYe,"auth");function xYe(t){return t.split(/\./).length===3?`bearer${t}`:`token${t}`}o(xYe,"withAuthorizationPrefix");async function QYe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=xYe(t),e(s)}o(QYe,"hook");var Uoe=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(NYe.bind(null,e),{hook:QYe.bind(null,e)})},"createTokenAuth2");var sU="7.0.6";var qoe=o(()=>{},"noop"),RYe=console.warn.bind(console),TYe=console.error.bind(console);function vYe(t={}){return typeof t.debug!="function"&&(t.debug=qoe),typeof t.info!="function"&&(t.info=qoe),typeof t.warn!="function"&&(t.warn=RYe),typeof t.error!="function"&&(t.error=TYe),t}o(vYe,"createLogger");var Goe=`octokit-core.js/${sU}${Wc()}`,oS=class{static{o(this,"Octokit")}static VERSION=sU;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent}${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new hoe.Collection,n={baseUrl:Kg.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent}${Goe}`:Goe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Kg.defaults(n),this.graphql=Moe(this.request).defaults(n),this.log=vYe(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=Uoe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)
Moreinfo:${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:A,message:p,file:g.path,startLine:f}),h=!0;break}h||b(`Buildx.convertWarningsToGitHubAnnotations:skippingwarningwithoutmatchingDockerfile${u}:${A}`)}return c}};var Kc=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new Pe}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),n=await Y.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(b(`Builder.existscmderr:${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(b(`Builder.existserror:${s}`),!1));return b(`Builder.exists:${n}`),n}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),n=["inspect"];e&&n.push(e);let s=await this.buildx.getCommand(n);return await Y.getExecOutput(s.command,s.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return t.parseInspect(i.stdout)})}static parseInspect(e){let r={nodes:[]},n,s={},i,a,c;for(let l of e.trim().split(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=ps(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n)for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=ps(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let s of r)for(let i of s)try{let a=Me.parseBool(i);n.push(`disabled=${!a}`)}catch{n.push(i)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),s=e.substring(0,n),i=e.substring(n+1);if(s.length==0||i.length==0)throw new Error(`${e}isnotavalidsecret`);return r&&Vi(i),[s,i]}};var gU=w(require("fs"),1),Xoe=w(require("path"),1);var dS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Pe,this.metadataFilename=`bake-metadata-${Me.generateRandomString()}.json`}getMetadataFilePath(){return Xoe.default.join(Oe.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!gU.default.existsSync(e))return;let r=gU.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],s,i=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Me.isValidRef(l)){i.push(l);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=l}}s&&n.push(s);for(let l of i)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Y.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannotparsebakedefinitions:${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let s=r.target[n];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(i=>t.parseAttestEntry(i))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(i=>t.parseCacheEntry(i))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(i=>t.parseCacheEntry(i))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(i=>t.parseExportEntry(i))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(i=>t.parseSecretEntry(i))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=ps(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=Me.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=ps(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let s of n){let[i,a]=s.toString().s
`).map(i=>i.trim()).filter(i=>i.length>0);if(s)return`refs/tags/${s}`;throw new Error("Cannot infer ref from detached HEAD")}static async findDetachedTagRef(e,r){let s=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"])).split(`
`).map(i=>i.trim()).filter(i=>i.length>0).sort((i,a)=>a.length-i.length);for(let i of s){let a=`tag:${i.slice(10)}`;if(e===a||e.startsWith(`${a},`))return i}if(s.length===1)return s[0];throw new Error(`Cannotfinddetachedtagrefin"${r}"`)}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[n]=r.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);return n}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var fue=require("crypto"),Yo=w(require("fs"),1),Wo=w(require("path"),1);var Ef=w(SU(),1),hue=w(U2(),1),yf=w(uue(),1);var Vq=w(SU(),1);var Aue=w(Ni(),1);var due="application/vnd.oci.empty.v1+json";var $o=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Y.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(b(`Cosign.isAvailablecmderr:${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(b(`Cosign.isAvailableerror:${r}`),!1));return b(`Cosign.isAvailable:${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Y.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Y.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return b("Cosign.versionSatisfies false: undefined version"),!1;let s=Aue.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return b(`Cosign.versionSatisfies${n}statisfies${e}:${s}`),s}static parseCommandOutput(e){let r,n,s,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(i=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===Vq.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===due&&typeof u.digest=="string"&&(n=u.digest)}if(!s&&l&&l.mediaType===Vq.BUNDLE_V03_MEDIA_TYPE&&(s=l),s&&(r||n)){i=void 0;break}}return{bundle:s,signatureManifestDigest:r||n,errors:i}}};var zq=w(require("fs"),1);var GN=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Pe}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`Nodescriptorfoundfor${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let s=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=i.get(c);return l?l.platform?.os===s.os&&l.platform?.architecture===s.architecture&&(l.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=Oe.tmpName({tmpdir:Oe.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&s.push(l);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of s)r.push("--file",c);for(let c of i)r.pus
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageToolsinspectcommandfailedfor${e.name}`)}async execInspect(e,r,n){return await Y.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return n(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var cd="https://search.sigstore.dev";var pue="slsaprovenance1",pl=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new $o,this.imageTools=e?.imageTools||new GN}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=await this.cosignSigningConfigArgs(e.noTransparencyLog);for(let s of e.imageNames){let i=await this.imageTools.attestationDigests({name:`${s}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let a of i){let c=`${s}@${a}`;await it(`Signingattestationmanifest${c}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];S(`[command]${this.cosign.binPath}${[...l,c].join(" ")}`);let u=await Y.getExecOutput(this.cosign.binPath,["--verbose",...l,c],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=$o.parseCommandOutput(u.stderr.trim());if(u.exitCode!=0)if(d.errors&&d.errors.length>0){let p=d.errors.map(f=>`-[${f.code}]${f.message}:${f.detail}`).join(`
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosignverifycommandfailedwith:${c.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=await this.cosignSigningConfigArgs(e.noTransparencyLog),s=t.getProvenanceBlobs(e);for(let i of Object.keys(s))await it(`Signing${i}`,async()=>{let a=s[i],c=Wo.default.join(Wo.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),l=t.getProvenanceSubjects(a);if(l.length===0){Ve(`Nosubjectsfoundinprovenance${i},skipsigning.`);return}let u=Wo.default.join(Wo.default.dirname(i),l[0].name),d=["attest-blob","--yes","--oidc-provider","github-actions","--new-bundle-format","--statement",i,"--type",pue,"--bundle",c,...n];S(`[command]${this.cosign.binPath}${[...d,u].join(" ")}`);let A=await Y.getExecOutput(this.cosign.binPath,["--verbose",...d,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),p=$o.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(p.errors&&p.errors.length>0){let h=p.errors.map(g=>`-[${g.code}]${g.message}:${g.detail}`).join(`