varhVe=Object.create;varCx=Object.defineProperty;varMVe=Object.getOwnPropertyDescriptor;varmVe=Object.getOwnPropertyNames;vargVe=Object.getPrototypeOf,zVe=Object.prototype.hasOwnProperty;varOVe=(t,e)=>()=>(t&&(e=t(t=0)),e);varb=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nre=(t,e)=>{for(varrine)Cx(t,r,{get:e[r],enumerable:!0})},EVe=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letnofmVe(e))!zVe.call(t,n)&&n!==r&&Cx(t,n,{get:()=>e[n],enumerable:!(s=MVe(e,n))||s.enumerable});returnt};varx=(t,e,r)=>(r=t!=null?hVe(gVe(t)):{},EVe(e||!t||!t.__esModule?Cx(r,"default",{value:t,enumerable:!0}):r,t));varlre=b(Kf=>{"use strict";varXrt=require("net"),IVe=require("tls"),Rx=require("http"),cre=require("https"),RVe=require("events"),Vrt=require("assert"),wVe=require("util");Kf.httpOverHttp=NVe;Kf.httpsOverHttp=SVe;Kf.httpOverHttps=FVe;Kf.httpsOverHttps=vVe;functionNVe(t){vare=newuu(t);returne.request=Rx.request,e}functionSVe(t){vare=newuu(t);returne.request=Rx.request,e.createSocket=ure,e.defaultPort=443,e}functionFVe(t){vare=newuu(t);returne.request=cre.request,e}functionvVe(t){vare=newuu(t);returne.request=cre.request,e.createSocket=ure,e.defaultPort=443,e}functionuu(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Rx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(vara=pre(n,i,o),c=0,u=e.requests.length;c<u;++c){varp=e.requests[c];if(p.host===a.host&&p.port===a.port){e.requests.splice(c,1),p.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}wVe.inherits(uu,RVe.EventEmitter);uu.prototype.addRequest=function(e,r,s,n){vari=this,o=wx({request:e},i.options,pre(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);functionc(){i.emit("free",a,o)}functionu(p){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};uu.prototype.createSocket=function(e,r){vars=this,n={};s.sockets.push(n);vari=wx({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+newBuffer(i.proxyAuth).toString("base64")),rl("making CONNECT request");varo=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",p),o.end();functiona(l){l.upgrade=!0}functionc(l,A,f){process.nextTick(function(){u(l,A,f)})}functionu(l,A,f){if(o.removeAllListeners(),A.removeAllListeners(),l.statusCode!==200){rl("tunneling socket could not be established, statusCode=%d",l.statusCode),A.destroy();varM=newError("tunneling socket could not be established, statusCode="+l.statusCode);M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}if(f.length>0){rl("got illegal response body from proxy"),A.destroy();varM=newError("got illegal response body from proxy");M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}returnrl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=A,r(A)}functionp(l){o.removeAllListeners(),rl(`tunneling socket could not be established, cause=%s
`);A.push(g),i+=g.byteLength,M&&(i=null),n=t,s=async function*(){for(let y of A)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(gne(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Ug.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:KYe(t)}if((typeof n=="string"||Ug.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:p,done:l}=await c.next();if(l)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!yne(r)){let A=new Uint8Array(p);A.byteLength&&u.enqueue(A)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function lJe(t,e=!1){return t instanceof ReadableStream&&(T_(!Ug.isDisturbed(t),"The body has already been consumed."),T_(!t.locked,"The stream is locked.")),Dne(t,e)}function AJe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function dJe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function fJe(t){return{blob(){return lb(this,r=>{let s=One(this);return s===null?s="":s&&(s=cJe(s)),new iJe([r],{type:s})},t)},arrayBuffer(){return lb(this,r=>new Uint8Array(r).buffer,t)},text(){return lb(this,Ene,t)},json(){return lb(this,hJe,t)},formData(){return lb(this,r=>{let s=One(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=uJe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new zne;return i[Ab]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new zne;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){return lb(this,r=>new Uint8Array(r),t)}}}function bJe(t){Object.assign(t.prototype,fJe(t))}async function lb(t,e,r){if(nJe.brandCheck(t,r),qne(t))throw new TypeError("Body is unusable: Body has already been read");dJe(t[Ab]);let s=tJe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Ab].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await rJe(t[Ab].body,i,n),s.promise)}function qne(t){let e=t[Ab].body;return e!=null&&(e.stream.locked||Ug.isDisturbed(e.stream))}function hJe(t){return JSON.parse(Ene(t))}function One(t){let e=t[Ab].headersList,r=sJe(e);return r==="failure"?null:r}Ine.exports={extractBody:Dne,safelyExtractBody:lJe,cloneBody:AJe,mixinBody:bJe,streamRegistry:Bne,hasFinalizationRegistry:Cne,bodyUnusable:qne}});var Lne=b((yst,Wne)=>{"use strict";var Fe=require("node:assert"),Ue=a0(),{channels:Rne}=eb(),__=m_(),{RequestContentLengthMismatchError:KA,ResponseContentLengthMismatchError:MJe,RequestAbortedError:Tne,HeadersTimeoutError:mJe,HeadersOverflowError:gJe,SocketError:cB,InformationalError:fb,BodyTimeoutError:zJe,HTTPParserError:OJe,ResponseExceededMaxSizeError:EJe}=B0(),{kUrl:xne,kReset:Ns,kClient:P_,kParser:Nt,kBlocking:Xg,kRunning:br,kPending:yJe,kSize:wne,kWriting:il,kQueue:zo,kNoRef:Gg,kKeepAliveDefaultTimeout:CJe,kHostHeader:BJe,kPendingIdx:DJe,kRunningIdx:ui,kError:pi,kPipelining:oB,kSocket:bb,kKeepAliveTimeoutValue:uB,kMaxHeadersSize:W_,kKeepAliveMaxTimeout:qJe,kKeepAliveTimeoutThreshold:IJe,kHeadersTimeout:RJe,kBodyTimeout:wJe,kStrictContentLength:k_,kMaxRequests:Nne,kCounter:NJe,kMaxResponseSize:SJe,kOnError:FJe,kResume:nl,kHTTPContext:_ne}=ft(),fa=Bse(),vJe=Buffer.alloc(0),sB=Buffer[Symbol.species],nB=Ue.addListener,TJe=Ue.removeAllListeners,L_;async function xJe(){let t=process.env.JEST_WORKER_ID?O_():void 0,e;try{e=await WebAssembly.compile(Ise())}catch{e=await WebAssembly.compile(t||O_())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{Fe(m1.ptr===r);let i=s-ha+ba.byteOffset;return m1.onStatus(new sB(ba.buffer,i,n))||0},wasm_on_message_begin:r=>(Fe(m1.ptr===r),m1.onMessageBegin()||0),wasm_on_he
`}return Rne.sendHeaders.hasSubscribers&&Rne.sendHeaders.publish({request:e,headers:g,socket:f}),!c||A===0?Fne(M,null,t,e,f,p,g,l):Ue.isBuffer(c)?Fne(M,c,t,e,f,p,g,l):Ue.isBlobLike(c)?typeof c.stream=="function"?vne(M,c.stream(),t,e,f,p,g,l):UJe(M,c,t,e,f,p,g,l):Ue.isStream(c)?kJe(M,c,t,e,f,p,g,l):Ue.isIterable(c)?vne(M,c,t,e,f,p,g,l):Fe(!1),!0}function kJe(t,e,r,s,n,i,o,a){Fe(i!==0||r[br]===0,"stream body cannot be pipelined");let c=!1,u=new pB({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),p=function(M){if(!c)try{!u.write(M)&&this.pause&&this.pause()}catch(g){Ue.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},A=function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!c){let M=new Tne;queueMicrotask(()=>f(M))}},f=function(M){if(!c){if(c=!0,Fe(n.destroyed||n[il]&&r[br]<=1),n.off("drain",l).off("error",f),e.removeListener("data",p).removeListener("end",f).removeListener("close",A),!M)try{u.end()}catch(g){M=g}u.destroy(M),M&&(M.code!=="UND_ERR_INFO"||M.message!=="reset")?Ue.destroy(e,M):Ue.destroy(e)}};e.on("data",p).on("end",f).on("error",f).on("close",A),e.resume&&e.resume(),n.on("drain",l).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(A)}function Fne(t,e,r,s,n,i,o,a){try{e?Ue.isBuffer(e)&&(Fe(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(Fe(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[nl]()}catch(c){t(c)}}async function UJe(t,e,r,s,n,i,o,a){Fe(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new KA;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[Ns]=!0),r[nl]()}catch(c){t(c)}}async function vne(t,e,r,s,n,i,o,a){Fe(i!==0||r[br]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let A=c;c=null,A()}}let p=()=>new Promise((A,f)=>{Fe(c===null),n[pi]?f(n[pi]):c=A});n.on("close",u).on("drain",u);let l=new pB({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let A of e){if(n[pi])throw n[pi];l.write(A)||await p()}l.end()}catch(A){l.destroy(A)}finally{n.off("close",u).off("drain",u)}}var pB=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[il]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[pi])throw r[pi];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&o+u>n){if(i[k_])throw new KA;process.emitWarning(new KA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ns]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),r!==null&&n!==r){if(s[k_])throw new KA;process.emitWarning(new KA)}e[Nt].timeout&&e[Nt].timeoutType===hb&&e[Nt].timeout.refresh&&e[Nt].timeout.refresh(),s[nl]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[il]=!1,e&&(Fe(s[br]<=1,"pipeline should only contain this request"),n(e))}};Wne.exports=WJe});var Vne=b((Cst,Xne)=>{"use strict";var li=require("node:assert"),{pipeline:GJe}=require("node:stream"),A0=a0(),{RequestContentLengthMismatchError:X_,RequestAbortedError:Qne,SocketError:Vg,InformationalError:V_}=B0(),{kUrl:lB,kReset:dB,kClient:Mb,kRunning:fB,kPending:HJe,kQueue:ol,kPendingIdx:j_,kRunningIdx:Oo,kError:yo,kSocket:I1,kStrictContentLength:XJe,kOnError:$_,kMaxConcurrentStreams:Hne,kHTTP2Session:Eo,kResume:al,kSize:VJe,kHTTPContext:jJe}=ft(),bu=Symbol("open streams"),Pne,kne=!1,AB;try{AB=require("node:http2")}catch{AB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:$Je,HTTP2_HEADER_METHOD:YJe,HTTP2_HEADER_PATH:JJe,HTTP2_HEADER_SCHEME:KJe,HTTP2_HEADER_CONTENT_LENGTH:ZJe,HTTP2_HEADER_EXPECT:eKe,HTTP2_HEADER_STATUS:tKe}}=AB;function rKe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function sKe(t,e){t[I1]=e,kne||(kne=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=AB.connect(t[lB],{createConnection:()=>e,peerMaxConcurrentStreams:t[Hne]});r[bu]=0,r[Mb]=t,r[I1]=e,A0.addListener(r,"error",iKe),A0.addListener(r,"frameError",oKe),A0.addListener(r,"end",aKe),A0.addListener(r,"goaway",cKe),A0.addListener(r,"close",function(){let{[Mb]:n}=this,{[I1]:i}=n,o=this[I1][yo]||this[yo]||new Vg("closed",A0.getSocketInfo(i));if(n[Eo]=null,n.destroyed){li(n[HJe]===0);let a=n[ol].splice(n[Oo]);for(let c=0;c<a.length;c++){let u=a[c];A0.errorRequest(n,u,o)}}}),r.unref(),t[Eo]=r,e[Eo]=r,A0.addListener(e,"error",function(n){li(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[yo]=n,this[Mb][$_](n)}),A0.addListener(e,"end",function(){A0.destroy(this,new Vg("other side closed",A0.getSocketInfo(this)))}),A0.addListener(e,"close",function(){let n=this[yo]||new Vg("closed",A0.getSocketInfo(this));t[I1]=null,this[Eo]!=null&&this[Eo].destroy(n),t[j_]=t[Oo],li(t[fB]===0),t.emit("disconnect",t[lB],[t],n),t[al]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return pKe(t,...n)},resume(){nKe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function nKe(t){let e=t[I1];e?.destroyed===!1&&(t[VJe]===0&&t[Hne]===0?(e.unref(),t[Eo].unref()):(e.ref(),t[Eo].ref()))}function iKe(t){li(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[I1][yo]=t,this[Mb][$_](t)}function oKe(t,e,r){if(r===0){let s=new V_(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[I1][yo]=s,this[Mb][$_](s)}}function aKe(){let t=new Vg("other side closed",A0.getSocketInfo(this[I1]));this.destroy(t),A0.destroy(this[I1],t)}function cKe(t){let e=this[yo]||new Vg(`HTTP/2: "GOAWAY" frame received with code ${t}`,A0.getSocketInfo(this)),r=this[Mb];if(r[I1]=null,r[jJe]=null,this[Eo]!=null&&(this[Eo].destroy(e),this[Eo]=null),A0.destroy(this[I1],e),r[Oo]<r[ol].length){let s=r[ol][r[Oo]];r[ol][r[Oo]++]=null,A0.errorRequest(r,s,e),r[j_]=r[Oo]}li(r[fB]===0),r.emit("disconnect",r[lB],[r],e),r[al]()}function uKe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function pKe(t,e){let r=t[Eo],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:p}=e;if(o)return A0.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<u.length;R+=2){let S=u[R+0],T=u[R+1];if(Array.isArray(T))for(let L=0;L<T.length;L++)l[S]?l[S]+=`,${T[L]}`:l[S]=T[L];else l[S]=T}let A,{hostname:f,port:M}=t[lB];l[$Je]=i||`${f}${M?`:${M}`:""}`,l[YJe]=s;let g=R=>{e.aborted||e.completed||(R=R||new Qne,A0.errorRequest(t,e,R),A!=null&&A0.destroy(A,R),A0.destroy(p,R),t[ol][t[Oo]++]=null,t[al]())};try{e.onConnect(g)}catch(R){A0.errorRequest
globstar while`,t,p,e,l,A),this.matchOne(t.slice(p),e.slice(l),r))return this.debug("globstar found match!",p,o,A),!0;if(A==="."||A===".."||!s.dot&&A.charAt(0)==="."){this.debug("dot detected!",t,p,e,l);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(r&&(this.debug(`
`;if(s.username||s.password){let A=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
`)+4,e.outputData[0].data=e._header+s.substring(n),fh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(fh("Creating `tls.Socket`: %o",this.connectOpts),i=l20.connect(this.connectOpts)):(fh("Creating `net.Socket`: %o",this.connectOpts),i=p20.connect(this.connectOpts)),await(0,d20.once)(i,"connect"),i}};kq.protocols=["http","https"];Bi.HttpProxyAgent=kq;function b20(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var nhe=b(rI=>{"use strict";Object.defineProperty(rI,"__esModule",{value:!0});rI.state=void 0;rI.state={instrumenterImplementation:void 0}});var Ohe=b(aI=>{"use strict";Object.defineProperty(aI,"__esModule",{value:!0});aI.state=void 0;aI.state={operationRequestMap:new WeakMap}});var Zme=b(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var TM0=require("os"),xM0=require("util");function _M0(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var WM0=_M0(xM0);function LM0(t,...e){process.stderr.write(`${WM0.default.format(t,...e)}${TM0.EOL}`)}var Ume=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Hme,EU=[],yU=[],D5=[];Ume&&CU(Ume);var Xme=Object.assign(t=>Vme(t),{enable:CU,enabled:BU,disable:QM0,log:LM0});function CU(t){Hme=t,EU=[],yU=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?yU.push(new RegExp(`^${s.substr(1)}$`)):EU.push(new RegExp(`^${s}$`));for(let s of D5)s.enabled=BU(s.namespace)}function BU(t){if(t.endsWith("*"))return!0;for(let e of yU)if(e.test(t))return!1;for(let e of EU)if(e.test(t))return!0;return!1}function QM0(){let t=Hme||"";return CU(""),t}function Vme(t){let e=Object.assign(r,{enabled:BU(t),destroy:PM0,log:Xme.log,namespace:t,extend:kM0});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return D5.push(e),e}function PM0(){let t=D5.indexOf(this);return t>=0?(D5.splice(t,1),!0):!1}function kM0(t){let e=Vme(`${this.namespace}:${t}`);return e.log=this.log,e}var JO=Xme,jme=new Set,C5=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,q5,I5=JO("azure");I5.log=(...t)=>{JO.log(...t)};var DU=["verbose","info","warning","error"];C5&&(Kme(C5)?$me(C5):console.error(`AZURE_LOG_LEVEL set to unknown log level '${C5}'; logging is not enabled. Acceptable values: ${DU.join(", ")}.`));function $me(t){if(t&&!Kme(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${DU.join(",")}`);q5=t;let e=[];for(let r of jme)Jme(r)&&e.push(r.namespace);JO.enable(e.join(","))}function UM0(){return q5}var Gme={verbose:400,info:300,warning:200,error:100};function GM0(t){let e=I5.extend(t);return Yme(I5,e),{error:B5(e,"error"),warning:B5(e,"warning"),info:B5(e,"info"),verbose:B5(e,"verbose")}}function Yme(t,e){e.log=(...r)=>{t.log(...r)}}function B5(t,e){let r=Object.assign(t.extend(e),{level:e});if(Yme(t,r),Jme(r)){let s=JO.disable();JO.enable(s+","+r.namespace)}return jme.add(r),r}function Jme(t){return!!(q5&&Gme[t.level]<=Gme[q5])}function Kme(t){return DU.includes(t)}Sh.AzureLogger=I5;Sh.createClientLogger=GM0;Sh.getLogLevel=UM0;Sh.setLogLevel=$me});var RU=b(ZO=>{"use strict";Object.defineProperty(ZO,"__esModule",{value:!0});var Fh=new WeakMap,R5=new WeakMap,KO=class t{constructor(){this.onabort=null,Fh.set(this,[]),R5.set(this,!1)}get aborted(){if(!R5.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return R5.get(this)}static get none(){return new t}addEventListener(e,r){if(!Fh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Fh.get(this).push(r)}removeEventListener(e,r){if(!Fh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Fh.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function ege(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Fh.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),R5.set(t,!0)}var qU=class extends Error{constructor(e){super(e),t
Polling status: ${uge.includes(p)?"Stopped":"Running"}`),p==="succeeded"){let l=o(u,r);if(l!==void 0)return{response:await e(l).catch(age({state:r,stateProxy:s,isOperationError:a})),status:p}}return{response:u,status:p}}async function dge(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:p,processResult:l,getError:A,updateState:f,setDelay:M,isDone:g,setErrorAsResult:y}=t,{operationLocation:O}=r.config;if(O!==void 0){let{response:C,status:q}=await zm0({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:O,getResourceLocation:o,isOperationError:c,options:n});if(lge({status:q,response:C,state:r,stateProxy:s,isDone:g,processResult:l,getError:A,setErrorAsResult:y}),!uge.includes(q)){let R=p?.(C);R&&M(R);let S=a?.(C,r);if(S!==void 0){let T=O!==S;r.config.operationLocation=S,u?.(S,T)}else u?.(O,!1)}f?.(r,C)}}function fge(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function bge(t){return t.headers.location}function hge(t){return t.headers["operation-location"]}function Mge(t){return t.headers["azure-asyncoperation"]}function Om0(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function mge(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=hge(e),o=Mge(e),a=fge({operationLocation:i,azureAsyncOperation:o}),c=bge(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Om0({requestMethod:u,location:c,requestPath:s,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function gge(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn'tnecessarilyindicatetheoperationhasfailed.CheckyourAzuresubscriptionorresourcestatusformoreinformation.`);switch(e?.toLocaleLowerCase()){case void 0:return QU(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return J2.verbose(`LRO:unrecognizedoperationstatus:${e}`),e}}function Em0(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return gge({status:r,statusCode:t.statusCode})}function ym0(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return gge({status:i,statusCode:t.statusCode})}function QU(t){return t===202?"running":t<300?"succeeded":"failed"}function zge({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Cm0(new Date(e)):r*1e3}}function Oge(t){let e=t.flatResponse.error;if(!e){J2.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){J2.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function Cm0(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function Ege(t){let{response:e,state:r,operationLocation:s}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return QU(e.rawResponse.statusCode);case"Body":return PU(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function Bm0(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return Age({init:async()=>{let o=await n.sendInitialRequest(),a=mge({rawResponse:o.rawResponse,requestPath:n.requestPath,requestMethod:n.r
`)}});varTw=b(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.SHA2_HASH_ALGOS=Zl.RSA_SIGNATURE_ALGOS=Zl.ECDSA_SIGNATURE_ALGOS=void0;Zl.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Zl.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Zl.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});varNX=b(xw=>{"use strict";Object.defineProperty(xw,"__esModule",{value:!0});xw.RFC3161TimestampVerificationError=void0;varwX=classextendsError{};xw.RFC3161TimestampVerificationError=wX});varsCe=b(bc=>{"use strict";vareB0=bc&&bc.__createBinding||(Object.create?(function(t,e,r,s){s===void0&&(s=r);varn=Object.getOwnPropertyDescriptor(e,r);(!n||("get"inn?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void0&&(s=r),t[s]=e[r]})),tB0=bc&&bc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rB0=bc&&bc.__importStar||(function(){vart=function(e){returnt=Object.getOwnPropertyNames||function(r){vars=[];for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);returns},t(e)};returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(vars=t(e),n=0;n<s.length;n++)s[n]!=="default"&&eB0(r,e,s[n]);returntB0(r,e),r}})();Object.defineProperty(bc,"__esModule",{value:!0});bc.TSTInfo=void0;varrCe=rB0(lM()),sB0=Tw(),nB0=NX(),SX=class{root;constructor(e){this.root=e}getversion(){returnthis.root.subs[0].toInteger()}getgenTime(){returnthis.root.subs[4].toDate()}getmessageImprintHashAlgorithm(){lete=this.messageImprintObj.subs[0].subs[0].toOID();returnsB0.SHA2_HASH_ALGOS[e]}getmessageImprintHashedMessage(){returnthis.messageImprintObj.subs[1].value}getraw(){returnthis.root.toDER()}verify(e){letr=rCe.digest(this.messageImprintHashAlgorithm,e);if(!rCe.bufferEqual(r,this.messageImprintHashedMessage))thrownewnB0.RFC3161TimestampVerificationError("message imprint does not match artifact")}getmessageImprintObj(){returnthis.root.subs[2]}};bc.TSTInfo=SX});variCe=b(hc=>{"use strict";variB0=hc&&hc.__createBinding||(Object.create?(function(t,e,r,s){s===void0&&(s=r);varn=Object.getOwnPropertyDescriptor(e,r);(!n||("get"inn?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void0&&(s=r),t[s]=e[r]})),oB0=hc&&hc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aB0=hc&&hc.__importStar||(function(){vart=function(e){returnt=Object.getOwnPropertyNames||function(r){vars=[];for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);returns},t(e)};returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(vars=t(e),n=0;n<s.length;n++)s[n]!=="default"&&iB0(r,e,s[n]);returnoB0(r,e),r}})();Object.defineProperty(hc,"__esModule",{value:!0});hc.RFC3161Timestamp=void0;varcB0=Sw(),FX=aB0(lM()),nCe=Tw(),Q3=NX(),uB0=sCe(),pB0="1.2.840.113549.1.7.2",lB0="1.2.840.113549.1.9.16.1.4",AB0="1.2.840.113549.1.9.4",vX=classt{root;constructor(e){this.root=e}staticparse(e){letr=cB0.ASN1Obj.parseBuffer(e);returnnewt(r)}getstatus(){returnthis.pkiStatusInfoObj.subs[0].toInteger()}getcontentType(){returnthis.contentTypeObj.toOID()}geteContentType(){returnthis.eContentTypeObj.toOID()}getsigningTime(){returnthis.tstInfo.genTime}getsignerIssuer(){returnthis.signerSidObj.subs[0].value}getsignerSerialNumber(){returnthis.signerSidObj.subs[1].value}getsignerDigestAlgorithm(){lete=this.signerDigestAlgorithmObj.subs[0].toOID();returnnCe.SHA2_HASH_ALGOS[e]}getsignatureAlgorithm(){lete=this.signatureAlgorithmObj.subs[0].toOID();returnnCe
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});varf4e=b(d4e=>{"use strict";varzj=rp().Buffer;d4e._dbcs=np;varlr=-1,A4e=-2,Gi=-10,bs=-1e3,BM=newArray(256),iE=-1;for(ON=0;ON<256;ON++)BM[ON]=lr;varON;functionnp(t,e){if(this.encodingName=t.encodingName,!t)thrownewError("DBCS codec is called without the data.");if(!t.table)thrownewError("Encoding '"+this.encodingName+"' has no data.");varr=t.table();this.decodeTables=[]
Found: ${t.length}`);throwa.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{leta=newError(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throwa.code="EINTEGRITY",a.found=i,a.expected=e,a.algorithm=s,a.sri=e,a}}Dc.exports.checkStream=qI0;functionqI0(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=$n(e,r),!e||!Object.keys(e).length)returnPromise.reject(Object.assign(newError("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));lets=Hj(r);returnnewPromise((n,i)=>{t.pipe(s),t.on("error",i),s.on("error",i);leto;s.on("verified",a=>{o=a}),s.on("end",()=>n(o)),s.resume()})}Dc.exports.integrityStream=Hj;functionHj(t=Object.create(null)){returnnewUj(t)}Dc.exports.create=II0;functionII0(t){lete=t?.algorithms||[...Gj],r=fE(t?.options),s=e.map(dE.createHash);return{update:function(n,i){returns.forEach(o=>o.update(n,i)),this},digest:function(){returne.reduce((i,o)=>{leta=s.shift().digest("base64"),c=newcp(`${o}-${a}${r}`,t);returni[c.algorithm]||(i[c.algorithm]=[]),i[c.algorithm].push(c),i},newRd)}}}functionRI0(t,e){returnzBe.indexOf(t.toLowerCase())>=zBe.indexOf(e.toLowerCase())?t:e}});varjj=b((Dqt,qBe)=>{varyBe=Z4e(),CBe=gBe(),wI0=Xj(),BBe={shared:!1,ignoreCargoCult:!0},NI0={status:200,headers:{}},IM=t=>{lete={method:t.method,url:t.url,headers:{},compress:t.compress};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},DBe=t=>{lete={status:t.status,headers:{}};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},Vj=class{constructor({entry:e,request:r,response:s,options:n}){this.entry=e,this.request=IM(r),this.response=DBe(s),this.options=n,this.policy=newyBe(this.request,this.response,BBe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}staticstorable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:newyBe(IM(e),NI0,BBe).storable()}satisfies(e){letr=IM(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;lets=newCBe(this.request),n=newCBe(r);returnJSON.stringify(s.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(n.languages())||JSON.stringify(s.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?wI0.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){returnthis.policy.storable()}getmustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){letr=IM(e);returnr.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){returnthis.policy.responseHeaders()}revalidationHeaders(e){letr=IM(e);returnthis.policy.revalidationHeaders(r)}revalidated(e,r){lets=IM(e),n=DBe(r);return!this.policy.revalidatedPolicy(s,n).modified}};qBe.exports=Vj});varRBe=b((qqt,IBe)=>{var$j=classextendsError{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};IBe.exports={NotCachedError:$j}});varLBe=b((Iqt,WBe)=>{"use strict";varwBe=typeofprocess=="object"&&process?process:{stdout:null,stderr:null},SI0=require("events"),NBe=require("stream"),SBe=require("string_decoder").StringDecoder,up=Symbol("EOF"),pp=Symbol("maybeEmitEnd"),aA=Symbol("emittedEnd"),vN=Symbol("emittingEnd"),bE=Symbol("emittedError"),TN=Symbol("closed"),FBe=Symbol("read"),xN=Symbol("flush"),vBe=Symbol("flushChunk"),Ks=Symbol("encoding"),lp=Symbol("decoder"),_N=Symbol("flowing"),hE=Symbol("paused"),RM=Symbol("resume"),H1=Symbol("bufferLength"),Yj=Symbol("bufferPush"),Jj=Symbol("bufferShift"),Fr=Symbol("objectMode"),vr=Symbol("destroyed"),Kj=Symbol("emitData"),TBe=Symbol("emitEnd"),Zj=Symbol("emitEnd2"),Ap=Symbol("async"),ME=t=>Promise.resolve().then(t),xBe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",FI0=xBe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),vI0=xBe&&Symbol.iterator||Symbol("iterator not implemented"),TI0=t=>t==="end"||t==="finish"||t==="prefinish",xI0=t=>tinstanceofArrayBuffer||typeoft=="object"&&t.constructor&&t.constructor.name==="Arra
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||pS(s[1])!==s[0])return;let n;try{n=JSON.parse(s[1])}catch{}n&&e.push(n)}),e}Kn.exports.bucketDir=tY;function tY(t){return Rc.join(t,`index-v${wS0}`)}Kn.exports.bucketPath=xE;function xE(t,e){let r=e5e(e);return Rc.join.apply(Rc,[tY(t)].concat(RS0(r)))}Kn.exports.hashKey=e5e;function e5e(t){return t5e(t,"sha256")}Kn.exports.hashEntry=pS;function pS(t){return t5e(t,"sha1")}function t5e(t,e){return zS0.createHash(e).update(t).digest("hex")}function lS(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?IS0(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function Z$(t){return yS0(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var UM=b(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});dS.LRUCache=void 0;var _S0=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,s5e=new Set,rY=typeof process=="object"&&process?process:{},n5e=(t,e,r,s)=>{typeof rY.emitWarning=="function"?rY.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},AS=globalThis.AbortController,r5e=globalThis.AbortSignal;if(typeof AS>"u"){r5e=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},AS=class{constructor(){e()}signal=new r5e;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let t=rY.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,n5e("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var WS0=t=>!s5e.has(t),uA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),i5e=t=>uA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?kM:null:null,kM=class extends Array{constructor(e){super(e),this.fill(0)}},sY=class t{heap;length;static#e=!1;static create(e){let r=i5e(e);if(!r)return[];t.#e=!0;let s=new t(e,r);return t.#e=!1,s}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},nY=class t{#e;#t;#s;#r;#n;#i;#c;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#l;#d;#A;#a;#h;#O;#M;#m;#B;#g;#y;#C;#b;#E;#D;#z;#p;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#b,sizes:e.#y,keyMap:e.#d,keyList:e.#A,valList:e.#a,next:e.#h,prev:e.#O,get head(){return e.#M},get tail(){return e.#m},free:e.#B,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,s,n,i)=>e.#U(r,s,n,i),moveToTail:r=>e.#_(r),indexes:r=>e.#w(r),rindexes:r=>e.#S(r),isStale:r=>e.#I(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#o}get fetchMethod(){return this.#i}get memoMethod(){return this.#c}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:s,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:p,disposeAfter:l,noDisposeOnSet:A,noUpdateTTL:f,maxSize:M=0,maxEntrySize:g=0,sizeCalculation:y,fetchMethod:O,memoMethod:C,noDeleteOnFetchRejection:q,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:T,ignoreFetchAbort:L,perf:$}=e;if($!==void 0&&typeof $?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=$??_S0,r!==
globstar while`,e,A,r,f,M),this.matchOne(e.slice(A),r.slice(f),s))return this.debug("globstar found match!",A,c,M),!0;if(M==="."||M===".."||!n.dot&&M.charAt(0)==="."){this.debug("dot detected!",e,A,r,f);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(s&&(this.debug(`
`;if(s.username||s.password){let A=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
`);let{connect:u,buffered:p}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",QT0),r.secureEndpoint){hy("Upgrading socket connection to TLS");let A=r.servername||r.host;return cwe.connect({...uwe(r,"host","path","port"),socket:n,servername:by.isIP(A)?void 0:A})}return n}n.destroy();let l=new by.Socket({writable:!1});return l.readable=!0,e.once("socket",A=>{hy("Replaying proxy buffer for failed request"),(0,TT0.default)(A.listenerCount("data")>0),A.push(p),A.push(null)}),l}};d6.protocols=["http","https"];Ji.HttpsProxyAgent=d6;function QT0(t){t.resume()}function uwe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var hwe=b(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var dwe=require("buffer"),Vd={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};wp.ERRORS=Vd;function PT0(t){if(!dwe.Buffer.isEncoding(t))throw new Error(Vd.INVALID_ENCODING)}wp.checkEncoding=PT0;function fwe(t){return typeof t=="number"&&isFinite(t)&&HT0(t)}wp.isFiniteInteger=fwe;function bwe(t,e){if(typeof t=="number"){if(!fwe(t)||t<0)throw new Error(e?Vd.INVALID_OFFSET:Vd.INVALID_LENGTH)}else throw new Error(e?Vd.INVALID_OFFSET_NON_NUMBER:Vd.INVALID_LENGTH_NON_NUMBER)}function kT0(t){bwe(t,!1)}wp.checkLengthValue=kT0;function UT0(t){bwe(t,!0)}wp.checkOffsetValue=UT0;function GT0(t,e){if(t<0||t>e.length)throw new Error(Vd.INVALID_TARGET_OFFSET)}wp.checkTargetOffset=GT0;function HT0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function XT0(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof dwe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}wp.bigIntAndBufferInt64Check=XT0});var mwe=b(bJ=>{"use strict";Object.defineProperty(bJ,"__esModule",{value:!0});var s0=hwe(),Mwe=4096,VT0="utf8",fJ=class t{constructor(e){if(this.length=0,this._encoding=VT0,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(s0.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(s0.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(s0.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(s0.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(Mwe);else{if(typeof e<"u")throw new Error(s0.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(Mwe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffe
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function L90(){Object.keys(Bv).forEach(function(t){delete Bv[t]})}});var qv=b(jc=>{"use strict";jc.__esModule=!0;jc.HandlebarsEnvironment=Eee;function nve(t){return t&&t.__esModule?t:{default:t}}var ff=Bs(),Q90=si(),zee=nve(Q90),P90=hee(),k90=eve(),U90=mee(),Dv=nve(U90),G90=gee(),H90="4.7.9";jc.VERSION=H90;var X90=8;jc.COMPILER_REVISION=X90;var V90=7;jc.LAST_COMPATIBLE_COMPILER_REVISION=V90;var j90={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"};jc.REVISION_CHANGES=j90;var Oee="[object Object]";function Eee(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},P90.registerDefaultHelpers(this),k90.registerDefaultDecorators(this)}Eee.prototype={constructor:Eee,logger:Dv.default,log:Dv.default.log,registerHelper:function(e,r){if(ff.toString.call(e)===Oee){if(r)throw new zee.default("Arg not supported with multiple helpers");ff.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(ff.toString.call(e)===Oee)ff.extend(this.partials,e);else{if(typeof r>"u")throw new zee.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(ff.toString.call(e)===Oee){if(r)throw new zee.default("Arg not supported with multiple decorators");ff.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){G90.resetLoggedProperties()}};var $90=Dv.default.log;jc.log=$90;jc.createFrame=ff.createFrame;jc.logger=Dv.default});var ove=b((Iv,ive)=>{"use strict";Iv.__esModule=!0;function yee(t){this.string=t}yee.prototype.toString=yee.prototype.toHTML=function(){return""+this.string};Iv.default=yee;ive.exports=Iv.default});var ave=b(Cee=>{"use strict";Cee.__esModule=!0;Cee.wrapHelper=Y90;function Y90(t,e){if(typeof t!="function")return t;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)};return r}});var dve=b(NA=>{"use strict";NA.__esModule=!0;NA.checkRevision=rU0;NA.template=sU0;NA.wrapProgram=Rv;NA.resolvePartial=nU0;NA.invokePartial=iU0;NA.noop=lve;function J90(t){return t&&t.__esModule?t:{default:t}}function K90(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}var Z90=Bs(),Xm=K90(Z90),eU0=si(),Lp=J90(eU0),Qp=qv(),cve=hee(),tU0=ave(),uve=gee();function rU0(t){var e=t&&t[0]||1,r=Qp.COMPILER_REVISION;if(!(e>=Qp.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Qp.COMPILER_REVISION))if(e<Qp.LAST_COMPATIBLE_COMPILER_REVISION){var s=Qp.REVISION_CHANGES[r],n=Qp.REVISION_CHANGES[e];throw new Lp.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new Lp.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function sU0(t,e){if(!e)throw new Lp.default("No environment passed to template");if(!t||!t.main)throw new Lp.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(o,a,c){c.hash&&(a=Xm.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(var p=u.split(`
`+o+"^"},next:function(){if(this.done)returnthis.EOF;this._input||(this.done=!0);vari,o,a,c,u,p;this._more||(this.yytext="",this.match="");for(varl=this._currentRules(),A=0;A<l.length&&(a=this._input.match(this.rules[l[A]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=A,!this.options.flex)));A++);returno?(p=o[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],i=this.performAction.call(this,this.yy,this,l[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){vari=this.next();returntypeofi<"u"?i:this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){returnthis.conditionStack.pop()},_currentRules:function(){returnthis.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){returnthis.conditionStack[this.conditionStack.length-2]},pushState:function(i){this.begin(i)}};returns.options={},s.performAction=function(i,o,a,c){functionu(l,A){returno.yytext=o.yytext.substring(l,o.yyleng-A+l)}varp=c;switch(a){case0:if(o.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return15;break;case1:return15;case2:returnthis.popState(),15;break;case3:returnthis.begin("raw"),15;break;case4:returnthis.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case5:return15;case6:returnthis.popState(),14;break;case7:return65;case8:return68;case9:return19;case10:returnthis.popState(),this.begin("raw"),23;break;case11:return55;case12:return60;case13:return29;case14:return47;case15:returnthis.popState(),44;break;case16:returnthis.popState(),44;break;case17:return34;case18:return39;case19:return51;case20:return48;case21:this.unput(o.yytext),this.popState(),this.begin("com");break;case22:returnthis.popState(),14;break;case23:return48;case24:return73;case25:return72;case26:return72;case27:return87;case28:break;case29:returnthis.popState(),54;break;case30:returnthis.popState(),33;break;case31:returno.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case32:returno.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case33:return85;case34:return82;case35:return82;case36:return83;case37:return84;case38:return81;case39:return75;case40:return77;case41:return72;case42:returno.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case43:return"INVALID";case44:return5}},s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;functionr(){this.yy={}}returnr.prototype=t,t.Parser=r,newr})();vv.default=MU0;Eve.exports=vv.default});varWv=b((_v,Dve)=>{"use strict";_v.__esModule=!0;functionmU0(t){returnt&&t.__esModule?t:{default:t}}vargU0=si(),wee=mU0(gU0);functionTv(){this.parents=[]}Tv.prototype={constructor:Tv,mutating:!1,acceptKey:function(e,r){vars=this.accept(e[r]);if(this.mutating){if(s&&!Tv.prototype[s.type])thrownewwee.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])thrownewwee.default(e.type+" requires "+r)},acceptArray:function(e){for(varr=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},accept:function(e){
`])}),e},each:function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new mf(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof mf?e:(e=Kee(e,this,r),new mf(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var o=Kee(e[i],r);o!=="undefined"&&s.push([r.quotedString(i),":",o])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(Kee(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};Xv.default=aTe;cTe.exports=Xv.default});var fTe=b((Vv,dTe)=>{"use strict";Vv.__esModule=!0;function ATe(t){return t&&t.__esModule?t:{default:t}}var pTe=qv(),hG0=si(),e0e=ATe(hG0),MG0=Bs(),mG0=uTe(),lTe=ATe(mG0);function Km(t){this.value=t}function Zm(){}Zm.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=pTe.COMPILER_REVISION,r=pTe.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return MG0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,o=void 0,a=void 0,c=void 0,u=void 0;for(c=0,u=i.length;c<u;c++)o=i[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new e0e.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}WC.exports=Bet,WC.exports.__esModule=!0,WC.exports.default=WC.exports});varDke=b((z_t,LC)=>{varDet=pPe(),qet=tke(),Iet=Cke(),Ret=Bke();functionwet(t,e){returnDet(t)||qet(t,e)||Iet(t,e)||Ret()}LC.exports=wet,LC.exports.__esModule=!0,LC.exports.default=LC.exports});varIke=b((O_t,qke)=>{"use strict";varNet=RT().forEach,Fet=FC(),vet=Fet("forEach");qke.exports=vet?[].forEach:function(e){returnNet(this,e,arguments.length>1?arguments[1]:void0)}});varwke=b(()=>{"use strict";varTet=rt(),Rke=Ike();Tet({target:"Array",proto:!0,forced:[].forEach!==Rke},{forEach:Rke})});varSke=b((C_t,Nke)=>{"use strict";wke();varxet=aa();Nke.exports=xet("Array","forEach")});varvke=b((B_t,Fke)=>{"use strict";var_et=Ske();Fke.exports=_et});varTke=b(()=>{});var_ke=b((I_t,xke)=>{"use strict";varWet=lg(),Let=Ds(),Qet=cn(),Pet=vke();Tke();varXte=Array.prototype,ket={DOMTokenList:!0,NodeList:!0};xke.exports=function(t){vare=t.forEach;returnt===Xte||Qet(Xte,t)&&e===Xte.forEach||Let(ket,Wet(t))?Pet:e}});varVte=b((R_t,Wke)=>{Wke.exports=_ke()});varLke=b(()=>{"use strict";varUet=rt(),Get=AT().includes,Het=Gt(),Xet=q0e(),Vet=Het(function(){return!Array(1).includes()});Uet({target:"Array",proto:!0,forced:Vet},{includes:function(e){returnGet(this,e,arguments.length>1?arguments[1]:void0)}});Xet("includes")});varPke=b((S_t,Qke)=>{"use strict";Lke();varjet=aa();Qke.exports=jet("Array","includes")});varUke=b((F_t,kke)=>{"use strict";var$et=ii(),Yet=kp(),Jet=u1(),Ket=Jet("match");kke.exports=function(t){vare;return$et(t)&&((e=t[Ket])!==void0?!!e:Yet(t)==="RegExp")}});varHke=b((v_t,Gke)=>{"use strict";varZet=Uke(),e0t=TypeError;Gke.exports=function(t){if(Zet(t))thrownewe0t("The method doesn't accept regular expressions");returnt}});varVke=b((T_t,Xke)=>{"use strict";vart0t=u1(),r0t=t0t("match");Xke.exports=function(t){vare=/./;try{"/./"[t](e)}catch{try{returne[r0t]=!1,"/./"[t](e)}catch{}}return!1}});var$ke=b(()=>{"use strict";vars0t=rt(),n0t=It(),i0t=Hke(),o0t=gf(),jke=eu(),a0t=Vke(),c0t=n0t("".indexOf);s0t({target:"String",proto:!0,forced:!a0t("includes")},{includes:function(e){return!!~c0t(jke(o0t(this)),jke(i0t(e)),arguments.length>1?arguments[1]:void0)}})});varJke=b((W_t,Yke)=>{"use strict";$ke();varu0t=aa();Yke.exports=u0t("String","includes")});vare7e=b((L_t,Zke)=>{"use strict";varKke=cn(),p0t=Pke(),l0t=Jke(),jte=Array.prototype,$te=String.prototype;Zke.exports=function(t){vare=t.includes;returnt===jte||Kke(jte,t)&&e===jte.includes?p0t:typeoft=="string"||t===$te||Kke($te,t)&&e===$te.includes?l0t:e}});varr7e=b((Q_t,t7e)=>{"use strict";varA0t=e7e();t7e.exports=A0t});varQC=b((P_t,s7e)=>{s7e.exports=r7e()});varYte=b((k_t,n7e)=>{"use strict";n7e.exports=`
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}var i=!0,o=!1,a;return{s:function(){r=(0,utt.default)(t)},n:function(){var u=r.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function Mtt(t,e){var r;if(t){if(typeof t=="string")return g9e(t,e);var s=(0,lo.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,dtt.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return g9e(t,e)}}function g9e(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}var lt="xregexp",wf={astral:!1,namespacing:!1},Ht={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},tu={},kC={},bg={},r1e=[],hg="default",z9e="class",mtt={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},gtt=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,ztt=Ht.exec.call(/()??/,"")[1]===void 0,Ott=(0,Rf.default)(/x/)!==void 0,Ett={},B9e=Ett.toString;function n1e(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),s=".a".replace(new RegExp("a",r),".")==="..";s&&(e=!1)}}catch{e=!1}return e}var D9e=n1e("u"),i1e=n1e("y"),q9e={g:!0,i:!0,m:!0,u:D9e,y:i1e};function I9e(t,e,r,s,n){var i;if(t[lt]={captureNames:e},n)return t;if(t.__proto__)t.__proto__=ae.prototype;else for(var o in ae.prototype)t[o]=ae.prototype[o];return t[lt].source=r,t[lt].flags=s&&(0,htt.default)(i=s.split("")).call(i).join(""),t}function UC(t){return Ht.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}function Sf(t,e){var r;if(!ae.isRegExp(t))throw new TypeError("Type RegExp expected");var s=t[lt]||{},n=ytt(t),i="",o="",a=null,c=null;return e=e||{},e.removeG&&(o+="g"),e.removeY&&(o+="y"),o&&(n=Ht.replace.call(n,new RegExp("[".concat(o,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(n=UC(n+i)),e.isInternalOnly||(s.source!==void 0&&(a=s.source),(0,Rf.default)(s)!=null&&(c=i?UC((0,Rf.default)(s)+i):(0,Rf.default)(s))),t=I9e(new RegExp(e.source||t.source,n),Ctt(t)?(0,lo.default)(r=s.captureNames).call(r,0):null,a,c,e.isInternalOnly),t}function R9e(t){return(0,C9e.default)(t,16)}function w9e(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||Ht.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||Btt(t.input,t.index+t[0].length,r)?"":"(?:)"}function ytt(t){return Ott?(0,Rf.default)(t):Ht.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}function Ctt(t){return!!(t[lt]&&t[lt].captureNames)}function N9e(t){return(0,C9e.default)(t,10).toString(16)}function Btt(t,e,r){var s="\\(\\?#[^)]*\\)",n="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return Ht.test.call((0,Nf.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,lo.default)(t).call(t,e))}function o1e(t,e){return B9e.call(t)==="[object ".concat(e,"]")}function S9e(t){for(;t.length<4;)t="0".concat(t);return t}function Dtt(t,e){if(UC(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=Ht.replace.call(t,/^\(\?([\w$]+)\)/,function(i,o){if(Ht.test.call(/[gy]/,o))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=UC(e+o),""});var r=GC(e),s;try{for(r.s();!(s=r.n()).done;){var n=s.value;if(!q9e[n])throw new SyntaxError("Unknown regex flag ".concat(n))}}catch(i){r.e(i)}finally{r.f()}return{pattern:t,flags:e}}function F9e(t){var e={};return o1e(t,"String")?((0,s1e.default)(ae).call(ae,t,/[^\s,]+/,function(r){e[r]=!0}),e):t}function O9e(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}vari=!0,o=!1,a;return{s:function(){r=(0,c1t.default)(t)},n:function(){varu=r.next();returni=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throwa}}}}functionM1t(t,e){varr;if(t){if(typeoft=="string")returngUe(t,e);vars=(0,d1t.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,A1t.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))returngUe(t,e)}}functiongUe(t,e){(e==null||e>t.length)&&(e=t.length);for(varr=0,s=newArray(e);r<e;r++)s[r]=t[r];returns}varm1t=function(e){varr={},s=e._dec,n=e._hex,i=e._pad4;functiono(A){returnA.replace(/[- _]+/g,"").toLowerCase()}functiona(A){varf=/^\\[xu](.+)/.exec(A);returnf?s(f[1]):A.charCodeAt(A[0]==="\\"?1:0)}functionc(A){varf="",M=-1;return(0,b1t.default)(e).call(e,A,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(g){vary=a(g[1]);y>M+1&&(f+="\\u".concat(i(n(M+1))),y>M+2&&(f+="-\\u".concat(i(n(y-1))))),M=a(g[2]||g[1])}),M<65535&&(f+="\\u".concat(i(n(M+1))),M<65534&&(f+="-\\uFFFF")),f}functionu(A){varf="b!";returnr[A][f]||(r[A][f]=c(r[A].bmp))}functionp(A,f){varM=r[A],g="";if(M.bmp&&!M.isBmpLast){vary;g=(0,p1e.default)(y="[".concat(M.bmp,"]")).call(y,M.astral?"|":"")}if(M.astral&&(g+=M.astral),M.isBmpLast&&M.bmp){varO;g+=(0,p1e.default)(O="".concat(M.astral?"|":"","[")).call(O,M.bmp,"]")}returnf?"(?:(?!".concat(g,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(g,")")}functionl(A,f){varM=f?"a!":"a=";returnr[A][M]||(r[A][M]=p(A,f))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(A,f,M){varg="Invalid double negation ",y="Unknown Unicode token ",O="Unicode token missing data ",C="Astral mode required for Unicode token ",q="Astral mode does not support Unicode tokens within character classes",R=A[1]==="P"||!!A[2],S=(0,f1t.default)(M).call(M,"A"),T=o(A[4]||A[3]),L=r[T];if(A[1]==="P"&&A[2])thrownewSyntaxError(g+A[0]);if(!r.hasOwnProperty(T))thrownewSyntaxError(y+A[0]);if(L.inverseOf){if(T=o(L.inverseOf),!r.hasOwnProperty(T)){var$;thrownewReferenceError((0,p1e.default)($="".concat(O+A[0]," -> ")).call($,L.inverseOf))}L=r[T],R=!R}if(!(L.bmp||S))thrownewSyntaxError(C+A[0]);if(S){if(f==="class")thrownewSyntaxError(q);returnl(T,R)}returnf==="class"?R?u(T):L.bmp:"".concat((R?"[^":"[")+L.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(A){varf="Unicode token requires name",M="Unicode token has no character data ",g=h1t(A),y;try{for(g.s();!(y=g.n()).done;){varO=y.value;if(!O.name)thrownewError(f);if(!(O.inverseOf||O.bmp||O.astral))thrownewError(M+O.name);r[o(O.name)]=O,O.alias&&(r[o(O.alias)]=O)}}catch(C){g.e(C)}finally{g.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(A){varf=o(A);returnr[f]}};YC.default=m1t;zUe.exports=YC.default});varyUe=b((SWt,EUe)=>{EUe.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",bmp:"\uFE70-\uFEFF"},{name:"InArabic_Supplement",bmp:"\u0750-\u077F"},{name:"InArmenian",bmp:"\u0530-\u058F"},{name:"InArrows",bmp:"\u2190-\u21FF"},{name:"InAvestan",astral:"\uD802[\uDF00-\uDF3F]"},{name:"InBalinese",bmp:"\u1B00-\u1B7F"},{name:"InBamum",
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}functionM8(t,e){if(process.env.GITHUB_OUTPUT||"")returnNg("OUTPUT",w4(t,e));process.stdout.write(h8.EOL),pa("set-output",{name:t},ua(e))}functionnle(t){process.exitCode=b8.Failure,Yb(t)}functionbi(){returnprocess.env.RUNNER_DEBUG==="1"}functionw(t){pa("debug",{},t)}functionYb(t,e={}){pa("error",Bx(e),tinstanceofError?t.toString():t)}functionD0(t,e={}){pa("warning",Bx(e),tinstanceofError?t.toString():t)}function_(t){process.stdout.write(t+h8.EOL)}functionz2(t){qx("group",t)}functionO2(){qx("endgroup")}functionar(t,e){returnii0(this,void0,void0,function*(){z2(t);letr;try{r=yielde()}finally{O2()}returnr})}functionSD(t,e){if(process.env.GITHUB_STATE||"")returnNg("STATE",w4(t,e));pa("save-state",{name:t},ua(e))}functionile(t){returnprocess.env[`STATE_${t}`]||""}varvR=x(require("fs"),1),fH=x(require("os"),1),bH=x(require("path"),1);varL8=x(require("crypto"),1),Or=x(require("fs"),1);vartc0=x(_8(),1);varVD=x(require("os"),1),wo=x(require("path"),1);varmi=x(_8(),1),$Ae=x(require("stream"),1),YAe=x(require("util"),1),Q8=require("assert");varjAe=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(p){try{u(s.next(p))}catch(l){o(l)}}functionc(p){try{u(s.throw(p))}catch(l){o(l)}}functionu(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},HD=class{constructor(e,r,s){if(e<1)thrownewError("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(s),this.minSeconds>this.maxSeconds)thrownewError("min seconds should be less than or equal to max seconds")}execute(e,r){returnjAe(this,void0,void0,function*(){lets=1;for(;s<this.maxAttempts;){try{returnyielde()}catch(i){if(r&&!r(i))throwi;_(i.message)}letn=this.getSleepAmount();_(`Waiting ${n} seconds before trying again`),yieldthis.sleep(n),s++}returnyielde()})}getSleepAmount(){returnMath.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){returnjAe(this,void0,void0,function*(){returnnewPromise(r=>setTimeout(r,e*1e3))})}};varqa=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(p){try{u(s.next(p))}catch(l){o(l)}}functionc(p){try{u(s.throw(p))}catch(l){o(l)}}functionu(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},XD=classextendsError{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},JAe=process.platform==="win32",Aot=process.platform==="darwin",sc0="actions/tool-cache";functiongi(t,e,r,s){returnqa(this,void0,void0,function*(){e=e||wo.join(s2e(),L8.randomUUID()),yieldCu(wo.dirname(e)),w(`Downloading ${t}`),w(`Destination ${e}`);letn=3,i=W8("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=W8("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);returnyieldnewHD(n,i,o).execute(()=>qa(this,void0,void0,function*(){returnyieldnc0(t,e||"",r,s)}),c=>!(cinstanceofXD&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}functionnc0(t,e,r,s){returnqa(this,void0,void0,function*(){if(Or.existsSync(e))thrownewError(`Destination file path ${e} already exists`);letn=newxs(sc0,[],{allowRetries:!1});r&&(w("set auth"),s===void0&&(s={}),s.authorization=r);leti=yieldn.get(t,s);if(i.message.statusCode!==200){letp=newXD(i.message.statusCode);throww(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),p}leto=YAe.promisify($Ae.pipeline),c=W8("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),u=!1;try{returnyieldo(c,Or.createWriteStream(e)),w("download complete"),u=!0,e}finally{if(!u){w("download failed");try{yieldRD(e)}catch(p){w(`Failed to delete '${e}'. ${p.message}`)}}}})}functionKAe(t,e){returnqa(this,arguments,void0,function*(r,s,n="xz"){if(!r)thrownewError("parameter
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Xz(i));return s.searchPaths.push(...G8(s.patterns)),s})}static stat(e,r,s){return Y8(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield sh.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){w(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield sh.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield sh.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){w(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Lc0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};function w2e(t,e){return Lc0(this,void 0,void 0,function*(){return yield KD.create(t,e)})}var fq=x(require("crypto"),1),oh=x(require("fs"),1),D2=x(require("path"),1),Ofe=x(gfe(),1),Efe=x(require("util"),1);var tO;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(tO||(tO={}));var es;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(es||(es={}));var In;(function(t){t.GNU="gnu",t.BSD="bsd"})(In||(In={}));var Aq=2,dq=5e3,hQ=5e3,MQ=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,zfe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,rO="cache.tar",mQ="manifest.txt",Eat=10*Math.pow(1024,3);var ih=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},xl0=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIteratorisnotdefined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),n(a,c,o.done,o.value)})}}function n(i,o,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},o)}},_l0="1.0";function sO(){return ih(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=D2.join(s,"actions","temp")}let r=D2.join(e,fq.randomUUID());return yield Cu(r),r})}function Ra(t){return oh.statSync(t).size}function gQ(t){return ih(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield w2e(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,p=xl0(c.globGenerator()),l;l=yield p.next(),e=l.done,!e;u=!0){n=l.value,u=!1;let f=D2.relative(a,n).replace(new RegExp(`\\${D2.sep}`,"g"),"/");w(`Matched: ${f}`),f===""?o.push("."):o.push(`${f}`)}}catch(A){r={error:A}}finally{try{!u&&!e&&(s=p.return)&&(yield s.call(p))}finally{if(r)throw r.error}}return o})}function nO(t){return ih(this,void 0,void 0,function*(){return Efe.promisify(oh.unlink)(t)})}function yfe(t){return ih(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),w(`Checking ${e} ${r.join("")}`);try{yield Bn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){w(n.message)}return s=s.trim(),w(s),s})}function iO(){return ih(this,void 0,void 0,function*(){let t=yield yfe("zstd",["--quiet"]),e=Ofe.clean(t);return w(`zstd version: ${e}`),t===""?es.Gzip:es.ZstdWithoutLong})}function Il(t){return t===es.Gzip?tO.Gzip:tO.Zstd}function Cfe(){return ih(this,void 0,void 0,function*(){return oh.existsSync(MQ)?MQ:(yield yfe("tar")).toLowerCase().includes("gnutar")?or("tar"):""})}function zQ(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function ah(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(_l0),fq.createHash("sha256").update(s.join("|")).digest("hex")}function Bfe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("UnabletogettheACTIONS_RUNTIME_TOKENenvvariable");return t}var _h=x(require("fs"),1),Yge=require("url");var wa=class extends Error{constructor(e){super(e),this.name="AbortError"}};var Dfe=require("node:os"),qfe=x(require("node:util"),1),Ife=x(require("node:process"),1);function Rfe(t,...e){Ife.default.stderr.write(`${qfe.default.format(t,...e)}${Dfe.EOL}`)}var wfe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Sfe,OQ=[],EQ=[],hq=[];wfe&&yQ(wfe);var Ffe=Object.assign(t=>vfe(t),{enable:yQ,enabled:CQ,disable:Wl0,log:Rfe});function yQ(t){Sfe=t,OQ=[],EQ=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?EQ.push(r.substring(1)):OQ.push(r);for(let r of hq)r.enabled=CQ(r.namespace)}function CQ(t){if(t.endsWith("*"))return!0;for(let e of EQ)if(Nfe(t,e))return!1;for(let e of OQ)if(Nfe(t,e))return!0;return!1}function Nfe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let A=[],f="";for(let M of e)M==="*"&&f==="*"||(f=M,A.push(M));r=A.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,c=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else return!1;let u=s===t.length,p=n===r.length,l=n===r.length-1&&r[n]==="*";return u&&(p||l)}function Wl0(){let t=Sfe||"";return yQ(""),t}function vfe(t){let e=Object.assign(r,{enabled:CQ(t),destroy:Ll0,log:Ffe.log,namespace:t,extend:Ql0});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return hq.push(e),e}function Ll0(){let t=hq.indexOf(this);return t>=0?(hq.splice(t,1),!0):!1}function Ql0(t){let e=vfe(`${this.namespace}:${t}`);return e.log=this.log,e}var ch=Ffe;var BQ=["verbose","info","warning","error"],Tfe={verbose:400,info:300,warning:200,error:100};function xfe(t,e){e.log=(...r)=>{t.log(...r)}}function _fe(t){return BQ.includes(t)}function Mq(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=ch(t.namespace);n.log=(...p)=>{ch.log(...p)};function i(p){if(p&&!_fe(p))throw new Error(`Unknown log level '${p}'. Acceptable values: ${BQ.join(",")}`);s=p;let l=[];for(let A of e)o(A)&&l.push(A.namespace);ch.enable(l.join(","))}r&&(_fe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${BQ.join(",")}.`));function o(p){return!!(s&&Tfe[p.level]<=Tfe[s])}function a(p,l){let A=Object.assign(p.extend(l),{level:l});if(xfe(p,A),o(A)){let f=ch.disable();ch.enab
${Hl0.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Oq(t){return t instanceof ts?!0:I2(t)&&t.name==="RestError"}function _s(t,e){return Buffer.from(t,e)}var Eq=x(require("node:http"),1),yq=x(require("node:https"),1),wQ=x(require("node:zlib"),1),Ufe=require("node:stream");var Ei=oO("ts-http-runtime");var Xl0={};function aO(t){return t&&typeof t.pipe=="function"}function kfe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Gfe(t){return t&&typeof t.byteLength=="number"}var Cq=class extends Ufe.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},NQ=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new wa("Theoperationwasaborted.Requesthasalreadybeencanceled.");s=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new Fo;Ei.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let u=Yl0(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let M=e.onUploadProgress,g=new Cq(M);g.on("error",y=>{Ei.error("Errorinuploadprogress",y)}),aO(a)?a.pipe(g):g.end(a),a=g}let u=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let p=Vl0(u),A={status:u.statusCode??0,headers:p,request:e};if(e.method==="HEAD")return u.resume(),A;c=o?jl0(u,p):u;let f=e.onDownloadProgress;if(f){let M=new Cq(f);M.on("error",g=>{Ei.error("Errorindownloadprogress",g)}),c.pipe(M),c=M}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(A.status)?A.readableStreamBody=c:A.bodyAsText=await $l0(c),A}finally{if(e.abortSignal&&s){let u=Promise.resolve();aO(a)&&(u=kfe(a));let p=Promise.resolve();aO(c)&&(p=kfe(c)),Promise.all([u,p]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{Ei.warning("ErrorwhencleaningupabortListeneronhttpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,u)=>{let p=i?Eq.default.request(a,c):yq.default.request(a,c);p.once("error",l=>{u(new ts(l.message,{code:l.code??ts.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new wa("Theoperationwasaborted.Rejectingfromabortsignalcallbackwhilemakingrequest.");p.destroy(l),u(l)}),s&&aO(s)?s.pipe(p):s?typeof s=="string"||Buffer.isBuffer(s)?p.end(s):Gfe(s)?p.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Ei.error("Unrecognizedbodytype",s),u(new ts("Unrecognizedbodytype"))):p.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Eq.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Eq.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return yq.default.globalAgent;let n=e.tlsSettings??Xl0,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Ei.info("NocachedTLSAgentexist,creatinganewAgent"),i=new yq.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function Vl0(t){let e=Rn();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(
`;return e}function I20(t){return t instanceof Uint8Array?t.byteLength:Vq(t)?t.size===-1?void 0:t.size:void 0}function R20(t){let e=0;for(let r of t){let s=I20(r);if(s===void 0)return;e+=s}return e}async function w20(t,e,r){let s=[_s(`--${r}`,"utf-8"),...e.flatMap(i=>[_s(`\r
`,"utf-8")],n=R20(s);n&&t.headers.set("Content-Length",n),t.body=await Xbe(s)}var lO="multipartPolicy",N20=70,S20=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function F20(t){if(t.length>N20)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!S20.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function $q(){return{name:lO,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?F20(r):r=D20(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await w20(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Yq(){return zq()}var Vbe=Mq({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ilt=Vbe.logger;function Fa(t){return Vbe.createClientLogger(t)}var va=Fa("core-rest-pipeline");function JQ(t={}){return Dq({logger:va.info,...t})}var KQ=qq;function ZQ(t={}){return Iq(t)}var Jq=x(require("node:os"),1),Kq=x(require("node:process"),1);function jbe(){return"User-Agent"}async function $be(t){if(Kq.default&&Kq.default.versions){let e=`${Jq.default.type()} ${Jq.default.release()}; ${Jq.default.arch()}`,r=Kq.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})`)}}var Zq="1.22.2";function P20(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function Ybe(){return jbe()}async function eI(t){let e=new Map;e.set("core-rest-pipeline",Zq),await $be(e);let r=P20(e);return t?`${t} ${r}`:r}var Jbe=Ybe(),Kbe="userAgentPolicy";function eP(t={}){let e=eI(t.userAgentPrefix);return{name:Kbe,async sendRequest(r,s){return r.headers.has(Jbe)||r.headers.set(Jbe,await e),s(r)}}}var Fn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function tP(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Fn(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(s?.aborted)return a();try{t(p=>{c(),i(p)},p=>{c(),o(p)})}catch(p){o(p)}s?.addEventListener("abort",u)})}var X20="The delay was aborted.";function AO(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return tP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??X20})}function wl(t){if(I2(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Zbe(t){return I2(t)}function bh(){return q2()}var N0=N2;var ehe=Symbol("rawContent");function sP(t){return typeof t[ehe]=="function"}function the(t){return sP(t)?t[ehe]():t}var tI=lO;function nP(){let t=$q();return{name:tI,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)sP(s.body)&&(s.body=the(s.body));return t.sendRequest(e,r)}}}var iP=Rq;function oP(){return wq()}function aP(t={}){return Fq(t)}function cP(){return vq()}function Nl(t){return XQ(t)}function uP(t,e){return Gq(t,e)}var rhe="setClientRequestIdPolicy";function pP(t="x-ms-client-request-id"){return{name:rhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function lP(t){return Hq(t)}function AP(t){return Xq(t)}var hh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function she(t={}){let e=new dP(t.parentContext);return t.span&&(e=e.setValue(hh.span,t.span)),t.namespace&&(e=e.setValue(hh.namespace,t.namespace)),e}var dP=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!hf0(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Jt("InvalidTag",l,rs(t,i))}let u=lf0(t,i);if(u===!1)return Jt("InvalidAttr","Attributes for '"+c+"' have open quote.",rs(t,i));let p=u.value;if(i=u.index,p[p.length-1]==="/"){let l=i-p.length;p=p.substring(0,p.length-1);let A=Qhe(p,e);if(A===!0)s=!0;else return Jt(A.err.code,A.err.msg,rs(t,l+A.err.line))}else if(a)if(u.tagClosed){if(p.trim().length>0)return Jt("InvalidTag","Closing tag '"+c+"' can'thaveattributesorinvalidstarting.",rs(t,o));if(r.length===0)return Jt("InvalidTag","Closingtag'"+c+"'hasnotbeenopened.",rs(t,o));{let l=r.pop();if(c!==l.tagName){let A=rs(t,l.tagStartPos);return Jt("InvalidTag","Expectedclosingtag'"+l.tagName+"'(openedinline"+A.line+",col"+A.col+")insteadofclosingtag'"+c+"'.",rs(t,o))}r.length==0&&(n=!0)}}else return Jt("InvalidTag","Closingtag'"+c+"'doesn't have proper closing.",rs(t,i));else{let l=Qhe(p,e);if(l!==!0)return Jt(l.err.code,l.err.msg,rs(t,i-p.length+l.err.line));if(n===!0)return Jt("InvalidXml","Multiple possible root nodes found.",rs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Lhe(t,i);continue}else if(t[i+1]==="?"){if(i=Whe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=ff0(t,i);if(l==-1)return Jt("InvalidChar","char '&' is not expected.",rs(t,i));i=l}else if(n===!0&&!_he(t[i]))return Jt("InvalidXml","Extra text at the end",rs(t,i));t[i]==="<"&&i--}}else{if(_he(t[i]))continue;return Jt("InvalidChar","char '"+t[i]+"' is not expected.",rs(t,i))}if(s){if(r.length==1)return Jt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",rs(t,r[0].tagStartPos));if(r.length>0)return Jt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Jt("InvalidXml","Start tag expected.",1);return!0}function _he(t){return t===" "||t===" "||t===`
`);let e=new Ps("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new qO(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let u=t.charCodeAt(a+1);if(u===47){let p=Oh(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,p).trim();if(n.removeNSPrefix){let f=l.indexOf(":");f!==-1&&(l=l.substr(f+1))}l=LP(n.transformTagName,l,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let A=this.matcher.getCurrentTag();if(l&&n.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);A&&n.unpairedTagsSet.has(A)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=p}else if(u===63){let p=QP(t,a,!1,"?>");if(!p)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let l=this.buildAttributesMap(p.tagExp,this.matcher,p.tagName,!0);if(l){let A=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(A)||1),i.setXmlVersion(Number(A)||1)}if(!(n.ignoreDeclaration&&p.tagName==="?xml"||n.ignorePiTags)){let A=new Ps(p.tagName);A.add(n.textNodeName,""),p.tagName!==p.tagExp&&p.attrExpPresent&&n.ignoreAttributes!==!0&&(A[":@"]=l),this.addChild(r,A,this.readonlyMatcher,a)}a=p.closeIndex+1}else if(u===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let p=Oh(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let l=t.substring(a+4,p-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:l}])}a=p}else if(u===33&&t.charCodeAt(a+2)===68){let p=i.readDocType(t,a);this.entityDecoder.addInputEntities(p.entities),a=p.i}else if(u===33&&t.charCodeAt(a+2)===91){let p=Oh(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,p);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);A==null&&(A=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:l}]):r.add(n.textNodeName,A),a=p+2}else{let p=QP(t,a,n.removeNSPrefix);if(!p){let T=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${T}"`)}let l=p.tagName,A=p.rawTagName,f=p.tagExp,M=p.attrExpPresent,g=p.closeIndex;if({tagName:l,tagExp:f}=LP(n.transformTagName,l,f,n),n.strictReservedNames&&(l===n.commentPropName||l===n.cdataPropName||l===n.textNodeName||l===n.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let O=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(O=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),f=l):f=f.substr(0,f.length-1),M=l!==f);let C=null,q={},R;R=Lf0(A),l!==e.tagname&&this.matcher.push(l,{},R),l!==f&&M&&(C=this.buildAttributesMap(f,this.matcher,l),C&&(q=Wf0(C,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let S=a;if(this.isCurrentNodeStopNode){let T="";if(O)a=p.closeIndex;else if(n.unpairedTagsSet.has(l))a=p.closeIndex;else{let $=this.readStopNodeData(t,A,g+1);if(!$)throw new Error(`Unexpected end of ${A}`);a=$.i,T=$.tagContent}let L=new Ps(l);C&&(L[":@"]=C),L.add(n.textNodeName,T),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,L,this.readonlyMatcher,S)}else{if(O){({tagName:l,tagExp:f}=LP(n.transformTagName,l,f,n));let T=new Ps(l);C&&(T[":@"]=C),this.addChild(r,T,this.readonlyMatcher,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let T=new Ps(l);C&&(T[":@"]=C),this.addChild(r,T,this.readonlyMatcher,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=p.closeIndex;continue}else{let T=new Ps(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(T[":@"]=C),this.addChild(r,T,this.readonlyMatcher,S),r=T}s="",a=g}}}else s+=t[a];return e.child};function H
`}),s}getCanonicalizedResourceString(e){let r=qI(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=II(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();i[c]=n[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var St=class extends Q2{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new SO(e,r,this)}computeHMACSHA256(e){return(0,gMe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var z1=Fa("storage-common");var Di;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Di||(Di={}));var xl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Di.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},mb0=new Fn("The operation was aborted."),FO=class extends Wa{retryOptions;constructor(e,r,s=xl){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:xl.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):xl.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:xl.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:xl.maxRetryDelayInMs):xl.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:xl.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:xl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=DI(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Tl(n.url,Nu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(z1.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(z1.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return z1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return z1.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return z1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return z1.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Pe.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error"Error: Unclosed root tag')?(z1.info("RetryPolicy:IncompleteXMLresponselikelyduetoservicetimeout,willretry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Di.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Di.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return z1.info(`RetryPolicy: Delay for ${n}ms`),RI(n,s,mb0)}};var vO=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new FO(e,r,this.retryOptions)}};var gb0="storageBrowserPolicy";function zMe(){return{name:gb0,async sendRequest(t,e){return N0||((t.method==="GET"||t.method==="HEAD")&&(t.url=Tl(t.url,Nu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Pe.COOKIE),t.headers.delete(Pe.CONTENT_LENGTH)),e(t)}}}var zb0="StorageCorrectContentLengthPolicy";function OMe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Pe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:zb0,async send
`}),a}function n(i){let o=qI(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=II(i.url),u={};if(c){let p=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let A=l.toLowerCase();u[A]=c[l],p.push(A)}p.sort();for(let l of p)a+=`
${l}:${decodeURIComponent(u[l])}`}return a}return{name:Cb0,async sendRequest(i,o){return e(i),o(i)}}}var Bb0="storageRequestFailureDetailsParserPolicy";function CMe(){return{name:Bb0,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Lo(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function RM0(t,e){if(t=$2(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=tc.parse(t.permissions.toString()).toString():n=rc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?S0(t.startsOn,!1):"",t.expiresOn?S0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function wM0(t,e){if(t=$2(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=tc.parse(t.permissions.toString()).toString():n=rc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?S0(t.startsOn,!1):"",t.expiresOn?S0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function NM0(t,e){if(t=$2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=tc.parse(t.permissions.toString()).toString():n=rc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?S0(t.startsOn,!1):"",t.expiresOn?S0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?S0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?S0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function SM0(t,e){if(t=$2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=tc.parse(t.permissions.toString()).toString():n=rc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?S0(t.startsOn,!1):"",t.expiresOn?S0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?S0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?S0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function FM0(t,e){if(t=$2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=tc.parse(t.permissions.toString()).toString():n=rc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?S0(t.startsOn,!1):"",t.expiresOn?S0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?S0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?S0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function vM0(t,e){if(t=$2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=tc.parse(t.permissions.toString()).toString():n=rc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?S0(t.startsOn,!1):"",t.expiresOn?S0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?S0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?S0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function j2(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function $2(t){let e=t.version?t.version:FI;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}var VO=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=bh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==vo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vo||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 Oe.withSpan("BlobLeaseClient-acquireLease",r,async s=>Re(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==vo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vo||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 Oe.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=Re(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==vo||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==vo||e.conditions?.tagConditions))throw new RangeError("The IfMatch,
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Th.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;varZ2=classextendsError{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Z2.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;vars3=classextendsError{constructor(e){super(e),this.name="RateLimitError"}};varGm0=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(p){try{u(s.next(p))}catch(l){o(l)}}functionc(p){try{u(s.throw(p))}catch(l){o(l)}}functionu(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},HU=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){returnthis.sentBytes}isDone(){returnthis.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;lete=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);_(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){returne=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){letr=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void0),this.display()}};functionxge(t,e,r){returnGm0(this,void0,void0,function*(){vars;letn=newQu(t),i=n.getBlockBlobClient(),o=newHU((s=r?.archiveSizeBytes)!==null&&s!==void0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),w(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);letc=yieldi.uploadFile(e,a);if(c._response.status>=400)thrownewW5(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);returnc}catch(c){throwD0(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}varWge=x(require("buffer"),1),sc=x(require("fs"),1),Lge=x(require("stream"),1),Qge=x(require("util"),1);varL5=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(p){try{u(s.next(p))}catch(l){o(l)}}functionc(p){try{u(s.throw(p))}catch(l){o(l)}}functionu(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};functionQ5(t){returnt?t>=200&&t<300:!1}functionHm0(t){returnt?t>=500:!0}functionXm0(t){returnt?[Mt.BadGateway,Mt.ServiceUnavailable,Mt.GatewayTimeout].includes(t):!1}functionVm0(t){returnL5(this,void0,void0,function*(){returnnewPromise(e=>setTimeout(e,t))})}function_ge(t,e,r){returnL5(this,arguments,void0,function*(s,n,i,o=Aq,a=dq,c=void0){letu="",p=1;for(;p<=o;){letl,A,f=!1;try{l=yieldn()}catch(M){c&&(l=c(M)),f=!0,u=M.message}if(l&&(A=i(l),!Hm0(A)))returnl;if(A&&(f=Xm0(A),u=`Cache service responded with ${A}`),w(`${s} - Attempt ${p} of ${o} failed with error: ${u}`),!f){w(`${s} - Error is not retryable`);break}yieldVm0(a),p++}throwError(`${s} failed: ${u}`)})}functionn3(t,e){returnL5(this,arguments,void0,function*(r,s,n=Aq,i=dq){returnyield_ge(r,s,o=>o.statusCode,n,i,o=>{if(oinstanceofEa)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}functionxh(t,e){returnL5(this,arguments,void0,function*(r,s,n=Aq,i=dq){returnyield_ge(r,s,o=>o.message.statusCode,n,i)})}varNi=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(p){try{u(s.next(p))}catch(l){o(l)}}functionc(p){try{u(s.throw(p))}catch(l){o(l)}}functionu(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};functionjm0(t,e){returnNi(this,void0,void0,function*(){yieldQge.promisify(Lge.pipeline)(t.message,e)})}varP5=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.s
Othercacheswithsimilarkey:`);for(let a of i?.artifactCaches||[])w(`CacheKey:${a?.cacheKey},CacheVersion:${a?.cacheVersion},CacheScope:${a?.scope},CacheCreated:${a?.creationTime}`)}}})}function $U(t,e,r){return Hs(this,void 0,void 0,function*(){let s=new Yge.URL(t),n=Gge(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield kge(t,e,n):n.concurrentBlobDownloads?yield Pge(t,e,n):yield k5(t,e):yield k5(t,e)})}function Kge(t,e,r){return Hs(this,void 0,void 0,function*(){let s=jU(),n=ah(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield n3("reserveCache",()=>Hs(this,void 0,void 0,function*(){return s.postJson(o3("caches"),i)}))})}function $ge(t,e){return`bytes${t}-${e}/*`}function rg0(t,e,r,s,n){return Hs(this,void 0,void 0,function*(){w(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${$ge(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":$ge(s,n)},o=yield xh(`uploadChunk (start: ${s}, end: ${n})`,()=>Hs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Q5(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function sg0(t,e,r,s){return Hs(this,void 0,void 0,function*(){let n=Ra(r),i=o3(`caches/${e.toString()}`),o=_h.openSync(r,"r"),a=XU(s),c=zQ("uploadConcurrency",a.uploadConcurrency),u=zQ("uploadChunkSize",a.uploadChunkSize),p=[...new Array(c).keys()];w("Awaiting all uploads");let l=0;try{yield Promise.all(p.map(()=>Hs(this,void 0,void 0,function*(){for(;l<n;){let A=Math.min(n-l,u),f=l,M=l+A-1;l+=u,yield rg0(t,i,()=>_h.createReadStream(r,{fd:o,start:f,end:M,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,M)}})))}finally{_h.closeSync(o)}})}function ng0(t,e,r){return Hs(this,void 0,void 0,function*(){let s={size:r};return yield n3("commitCache",()=>Hs(this,void 0,void 0,function*(){return t.postJson(o3(`caches/${e.toString()}`),s)}))})}function YU(t,e,r,s){return Hs(this,void 0,void 0,function*(){if(XU(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield xge(r,e,s)}else{let i=jU();w("Upload cache"),yield sg0(i,t,e,s),w("Commiting cache");let o=Ra(e);_(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield ng0(i,t,o);if(!Q5(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);_("Cache saved successfully")}})}var Xze=x(Lze(),1),t1=x(e1(),1),Ln=x(e1(),1),nd=x(e1(),1),id=x(e1(),1),od=x(e1(),1);var GG=x(e1(),1),HG=x(e1(),1),Uze=x(e1(),1),Gze=x(e1(),1),Hze=x(e1(),1);var PG=x(e1(),1),kG=x(e1(),1),Qze=x(e1(),1),Pze=x(e1(),1),kze=x(e1(),1),UG=class extends kze.MessageType{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,Pze.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Qze.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let p=e.skip(c);u!==!1&&(u===!0?kG.UnknownFieldHandler.onRead:u)(this.typeName,i,a,c,p)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,PG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,PG.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?kG.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},RR=new UG;var XG=class extends Hze.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>RR}])}create(e){let r={repositoryId:"0",scope:[]};
`));let s=yield aH(r,"create");yield cH(s,t)})}var eM=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},ko=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Zh=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},FR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Yze(t){if(!t||t.length===0)throw new ko("Path Validation Error: At least one directory or file path is required")}function lH(t){if(t.length>512)throw new ko(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ko(`Key Validation Error: ${t} cannot contain commas.`)}function AH(){return i3()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Jze(t,e,r,s){return eM(this,arguments,void 0,function*(n,i,o,a,c=!1){let u=i3();return w(`Cache service version: ${u}`),Yze(n),u==="v2"?yield gO0(n,i,o,a,c):yield mO0(n,i,o,a,c)})}function mO0(t,e,r,s){return eM(this,arguments,void 0,function*(n,i,o,a,c=!1){o=o||[];let u=[i,...o];if(w("Resolved Keys:"),w(JSON.stringify(u)),u.length>10)throw new ko("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of u)lH(A);let p=yield iO(),l="";try{let A=yield Jge(u,n,{compressionMethod:p,enableCrossOsArchive:c});if(!A?.archiveLocation)return;if(a?.lookupOnly)return _("Lookup only - skipping download"),A.cacheKey;l=E3.join(yield sO(),Il(p)),w(`Archive Path: ${l}`),yield $U(A.archiveLocation,l,a),bi()&&(yield O3(l,p));let f=Ra(l);return _(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield uH(l,p),_("Cache restored successfully"),A.cacheKey}catch(A){let f=A;if(f.name===ko.name)throw A;f instanceof Ea&&typeof f.statusCode=="number"&&f.statusCode>=500?Yb(`Failed to restore: ${A.message}`):D0(`Failed to restore: ${A.message}`)}finally{try{yield nO(l)}catch(A){w(`Failed to delete archive: ${A}`)}}})}function gO0(t,e,r,s){return eM(this,arguments,void 0,function*(n,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(w("Resolved Keys:"),w(JSON.stringify(u)),u.length>10)throw new ko("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of u)lH(l);let p="";try{let l=oH(),A=yield iO(),f={key:i,restoreKeys:o,version:ah(n,A,c)},M=yield l.GetCacheEntryDownloadURL(f);if(!M.ok){w(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==M.matchedKey?_(`Cache hit for restore-key: ${M.matchedKey}`):_(`Cache hit for: ${M.matchedKey}`),a?.lookupOnly)return _("Lookup only - skipping download"),M.matchedKey;p=E3.join(yield sO(),Il(A)),w(`Archive path: ${p}`),w(`Starting download of archive to: ${p}`),yield $U(M.signedDownloadUrl,p,a);let y=Ra(p);return _(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),bi()&&(yield O3(p,A)),yield uH(p,A),_("Cache restored successfully"),M.matchedKey}catch(l){let A=l;if(A.name===ko.name)throw l;A instanceof Ea&&typeof A.statusCode=="number"&&A.statusCode>=500?Yb(`Failed to restore: ${l.message}`):D0(`Failed to restore: ${l.message}`)}finally{try{p&&(yield nO(p))}catch(l){w(`Failed to delete archive: ${l}`)}}})}function dH(t,e,r){return eM(this,arguments,void 0,function*(s,n,i,o=!1){let a=i3();return w(`Cache service version: ${a}`),Yze(s),lH(n),a==="v2"?yield OO0(s,n,i,o):yield zO0(s,n,i,o)})}function zO0(t,e,r){return eM(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,u,p,l;let A=yield iO(),f=-1,M=yield gQ(s);if(w("Cache Paths:"),w(`${JSON.stringify(M)}`),M.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let g=yield sO(),y=E3.join(g,Il(A));w(`Archive Path: ${y}`);try{yie
`)}var h30=class extends Error{constructor(t,e,r){super(b30(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},M30=["method","baseUrl","url","headers","request","query","mediaType","operationName"],m30=["query","method","url"],WOe=/\/api\/v3\/?$/;function g30(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 o in r)if(m30.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>M30.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return WOe.test(i)&&(n.url=i.replace(WOe,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new h30(n,a,o.data)}return o.data.data})}function BH(t,e){let r=t.defaults(e);return Object.assign((n,i)=>g30(r,n,i),{defaults:BH.bind(null,r),endpoint:r.endpoint})}var zCt=BH(D3,{headers:{"user-agent":`octokit-graphql.js/${f30} ${Hl()}`},method:"POST",url:"/graphql"});function LOe(t){return BH(t,{method:"POST",url:"/graphql"})}var DH="(?:[a-zA-Z0-9_-]+)",QOe="\\.",POe=new RegExp(`^${DH}${QOe}${DH}${QOe}${DH}$`),z30=POe.test.bind(POe);async function O30(t){let e=z30(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function E30(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function y30(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=E30(t),e(n)}var kOe=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(O30.bind(null,e),{hook:y30.bind(null,e)})};var qH="7.0.6";var UOe=()=>{},C30=console.warn.bind(console),B30=console.error.bind(console);function D30(t={}){return typeof t.debug!="function"&&(t.debug=UOe),typeof t.info!="function"&&(t.info=UOe),typeof t.warn!="function"&&(t.warn=C30),typeof t.error!="function"&&(t.error=B30),t}var GOe=`octokit-core.js/${qH} ${Hl()}`,XR=class{static VERSION=qH;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new MOe.Collection,s={baseUrl:D3.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${GOe}`:GOe,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=D3.defaults(s),this.graphql=LOe(this.request).defaults(s),this.log=D30(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=kOe(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var IH="17.0.0";var q30={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /or
`,o).length:l,u?(a===null?0:a.length)+c.length:0,u?c.length+l:0);return A<f},parse:function(s,n,i,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:p,ltrim:l,max_record_size:A,raw:f,relax_quotes:M,rtrim:g,skip_empty_lines:y,to:O,to_line:C}=this.options,{comment:q,escape:R,quote:S,record_delimiter:T}=this.options,{bomSkipped:L,previousBuf:$,rawBuffer:Me,escapeIsQuote:Ne}=this.state,k;if($===void 0)if(s===void 0){o();return}else k=s;else $!==void 0&&s===void 0?k=$:k=Buffer.concat([$,s]);if(L===!1)if(a===!1)this.state.bomSkipped=!0;else if(k.length<3){if(n===!1){this.state.previousBuf=k;return}}else{for(let ne in aM)if(aM[ne].compare(k,0,aM[ne].length)===0){let De=aM[ne].length;this.state.bufBytesStart+=De,k=k.slice(De);let i0=aX({...this.original_options,encoding:ne});for(let qe in i0)this.options[qe]=i0[qe];({comment:q,escape:R,quote:S}=this.options);break}this.state.bomSkipped=!0}let Ce=k.length,Q;for(Q=0;Q<Ce&&!this.__needMoreData(Q,Ce,n);Q++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),C!==-1&&this.info.lines>C){this.state.stop=!0,o();return}this.state.quoting===!1&&T.length===0&&this.__autoDiscoverRecordDelimiter(k,Q)&&(T=this.options.record_delimiter);let ne=k[Q];if(f===!0&&Me.append(ne),(ne===r40||ne===s40)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(R!==null&&this.state.quoting===!0&&this.__isEscape(k,Q,ne)&&Q+R.length<Ce)if(Ne){if(this.__isQuote(k,Q+R.length)){this.state.escaping=!0,Q+=R.length-1;continue}}else{this.state.escaping=!0,Q+=R.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(k,Q))if(this.state.quoting===!0){let qe=k[Q+S.length],p0=g&&this.__isCharTrimable(k,Q+S.length),C0=q!==null&&this.__compareBytes(q,k,Q+S.length,qe),b0=this.__isDelimiter(k,Q+S.length,qe),Rt=T.length===0?this.__autoDiscoverRecordDelimiter(k,Q+S.length):this.__isRecordDelimiter(qe,k,Q+S.length);if(R!==null&&this.__isEscape(k,Q,ne)&&this.__isQuote(k,Q+R.length))Q+=R.length-1;else if(!qe||b0||Rt||C0||p0){this.state.quoting=!1,this.state.wasQuoting=!0,Q+=S.length-1;continue}else if(M===!1){let At=this.__error(new E0("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(qe)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(At!==void 0)return At}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(S),Q+=S.length-1}else if(this.state.field.length!==0){if(M===!1){let qe=this.__infoField(),p0=Object.keys(aM).map(b0=>aM[b0].equals(this.state.field.toString())?b0:!1).filter(Boolean)[0],C0=this.__error(new E0("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(qe.column)} at line ${qe.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,p0?`(${p0} bom)`:void 0],this.options,qe,{field:this.state.field}));if(C0!==void 0)return C0}}else{this.state.quoting=!0,Q+=S.length-1;continue}if(this.state.quoting===!1){let qe=this.__isRecordDelimiter(ne,k,Q);if(qe!==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)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Q+=qe-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Q+=qe-1;continue}this.info.bytes=this.state.bufBytesStart+Q;let b0=this.__onField();if(b0!==void 0)return b0;this.info.bytes=this.state.bufBytesStart+Q+qe;let Rt=this.__onRecord(i);if(Rt!==void 0)return Rt;if(O!==-1&&this.info.records>=O){this.state.stop=!0,o();return}}this.state.commenting=!1,Q+=qe-1;continue}if(this.state.commenting)continue;if(q!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(q,k,Q,ne)!==0){this.state.commenting=!0;continue}let p0=this.__isDelimiter(k,Q,n
More info: ${c.url}`);let f=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,M=!1;for(let g of o)if(g.remote||g.path.endsWith(u)&&g.content===p){a.push({title:l,message:A,file:g.path,startLine:f}),M=!0;break}M||w(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${l}`)}return a}};var Xl=x(require("fs"),1),pX=x(require("path"),1);var pw=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Z0,this.iidFilename=`build-iidfile-${x0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${x0.generateRandomString()}.json`}getImageIDFilePath(){return pX.default.join(F0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Xl.default.existsSync(e))return Xl.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return pX.default.join(F0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Xl.default.existsSync(e))return;let r=Xl.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,n]=t.parseSecretKvp(e,r?.redact),i=F0.tmpName({tmpdir:F0.tmpDir()});if(r?.asFile){if(!Xl.default.existsSync(n))throw new Error(`secret file ${n} not found`);Xl.default.copyFileSync(n,i)}else Xl.default.writeFileSync(i,n);return[s,i]}static getProvenanceInput(e){let r=Dn(e);if(!r)return r;try{return sle(e)?`builder-id=${O0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${O0.workflowRunURL(!0)}`;let r=Un(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${O0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",o=Un(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let a of o){let c=a.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());c[0]==="type"?s=c[1]:c[0]==="repository"?n=c[1]:c[0]==="ghtoken"&&(i=c[1])}return s==="gha"&&(n||(e=`${e},repository=${O0.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let s=Un(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[i,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let s=Un(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s)for(let[i,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Un(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let n of r)for(let i of n)try{let o=x0.parseBool(i);s.push(`disabled=${!o}`)}catch{s.push(i)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),n=e.substring(0,s),i=e.substring(s+1);if(n.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&ya(i),[n,i]}};var lX=x(require("fs"),1),fye=x(require("path"),1);var lw=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Z0,this.metadataFilename=`bake-metadata-${x0.generateRandomString()}.json`}getMetadataFilePath(){return fye.default.join(F0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!lX.default.existsSync(e))return;let r=lX.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 s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["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 s=["bake"],n,i=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(u=>u?u.trim():""))if(c.length!=0){if(!x0.isValidRef(c)){i.push(c);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=c}}n&&s.push(n);for(let c of i)s.push("--file",c);if(e.overrides)for(let c of e.overrides)s.push("--set",c);if(e.allow)for(let c of e.allow)s.push("--allow",c);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await _e.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let n=r.target[s];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(i=>t.parseAttestEntry(i))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(i=>t.parseCacheEntry(i))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(i=>t.parseCacheEntry(i))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(i=>t.parseExportEntry(i))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(i=>t.parseSecretEntry(i))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=Un(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let[i,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(i){case"type":r.type=o;break;case"disabled":r.disabled=x0.parseBool(o);break;default:r[i]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=Un(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let n of s){let[i,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());i==="type"?r.type=o:r[i]=o}ret
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);w(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let s=r.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let n=s[1].trim();if(n.startsWith("tag: "))return`refs/tags/${n.split(":")[1].trim()}`;if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let o=n.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=n.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await _e.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let i=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return i?`refs/heads/${i[1]}`:r}let s=await t.exec(["tag","--contains","HEAD"]),[n]=s.split(`
${u}`),c.errors.some(p=>p.code==="MANIFEST_UNKNOWN"))_(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${n}...
${u}`),await new Promise(p=>setTimeout(p,Math.pow(2,o)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){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 s=this.signingEndpoints(e.noTransparencyLog);_(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let i of Object.keys(n))await ar(`Signing ${i}`,async()=>{let o=n[i],a=IA.default.join(IA.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){D0(`No subjects found in provenance ${i}, skip signing.`);return}let u=await t.signPayload({data:o,type:OFe},s),p=t.parseBundle(u);_("Provenance blob signed for:");for(let l of c){let[A,f]=Object.entries(l.digest)[0]||[];_(` - ${l.name} (${A}:${f})`)}p.tlogID&&_(`Attestation signature uploaded to Rekor transparency log: ${Af}?logIndex=${p.tlogID}`),_(`Writing Sigstore bundle to: ${a}`),Gc.default.writeFileSync(a,JSON.stringify(p.payload,null,2),{encoding:"utf-8"}),r[i]={...p,bundlePath:a,subjects:c}})}catch(s){throw new Error(`Signing BuildKit provenance blobs failed: ${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,i]of Object.entries(e)){let o=IA.default.dirname(n);await ar(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let a of i.subjects){let c=IA.default.join(o,a.name);_(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let p=await _e.getExecOutput("cosign",[...u,"--bundle",i.bundlePath,c],{ignoreReturnCode:!0});if(p.stderr.length>0&&p.exitCode!=0)throw new Error(p.stderr);s[c]={bundlePath:i.bundlePath,cosignArgs:u}}})}return s}async verifyArtifact(e,r,s){_("Verifying keyless verification bundle signature");let n=JSON.parse(Gc.default.readFileSync(r,"utf-8")),i=(0,Xy.bundleFromJSON)(n);_("Fetching Sigstore TUF trusted root metadata");let o=await DFe.getTrustedRoot(),a=(0,Lm.toTrustMaterial)(o);try{_("Verifying artifact signature");let c=(0,Lm.toSignedEntity)(i,Gc.default.readFileSync(e)),u=t.parseCertificate(i),p=i.verificationMaterial.tlogEntries,l=p.length>0?p[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let M=u.subjectAltName?.replace(/^uri:/i,"");if(M){if(!M.match(s.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${M}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new Lm.Verifier(a).verify(c,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return w(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:n,certificate:u.toString(),tlogID:l}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),_(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:EFe,rekorURL:e?void 0:yFe,tsaServerURL:CFe}}static noTransparencyLog(e){return e??O0.context.payload.repository?.private}static getProvenanceBlobs(e){let r=IA.default.join(e.localExportDir,"provenance.json");if(Gc.default.existsSync(r))return{[r]:Gc.default.readFileSync(r)};let s=Gc.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=s.filter(i=>i.isDirectory());if(n.length>0&&n.length===s.length&&n.every(i=>Gc.default.existsSync(IA.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let o of n){let a=IA.default.join(e.localExportDir,o.name,"
`,bakeTarget:Dn("bake-target")||"docker-metadata-action",githubToken:Dn("github-token")}}asyncfunctionSFe(t,e){switch(t){case"workflow":returnawaitP70(e);case"git":returnawaitk70();default:thrownewError(`Invalid context source: ${t}`)}}asyncfunctionP70(t){lete=O0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:awaitU70(e.sha,t),...e}}asyncfunctionk70(){lett=awaitHu.context();return{commitDate:awaitHu.commitDate(t.sha),...t}}asyncfunctionU70(t,e){letr=O0.context.payload;if(r.commits){lets=r.commits.find(n=>n.id===t)?.timestamp;if(s)returnnewDate(s)}if(r.head_commit&&r.head_commit.id===t)returnnewDate(r.head_commit.timestamp);try{lets=awaite.github.octokit.rest.repos.getCommit({owner:O0.context.repo.owner,repo:O0.context.repo.repo,ref:t});if(s.data.commit.committer?.date)returnnewDate(s.data.commit.committer.date);thrownewError("Committer date not found")}catch(s){returnw(`Failed to get commit date from GitHub API: ${s.message}`),newDate}}var$p=x(ETe(),1),gGe=x(require("fs"),1),zGe=x(require("path"),1),s4=x(ITe(),1),oi=x(uGe(),1),gg=x(Wi(),1);vary0=classtextendsError{constructor(e,r,s,...n){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void0&&Error.captureStackTrace(this,t),this.code=e;for(letiofn)for(letoini){leta=i[o];this[o]=Buffer.isBuffer(a)?a.toString(s.encoding):a==null?a:JSON.parse(JSON.stringify(a))}}};varpGe=function(t){returntypeoft=="object"&&t!==null&&!Array.isArray(t)};varkT=function(t){lete=[];for(letr=0,s=t.length;r<s;r++){letn=t[r];if(n==null||n===!1)e[r]={disabled:!0};elseif(typeofn=="string"||typeofn=="number")e[r]={name:`${n}`};elseif(pGe(n)){if(typeofn.name!="string")thrownewy0("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);e[r]=n}elsethrownewy0("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(n)} at position ${r}`])}returne};vary1e=class{constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){letr=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throwError("INVALID_BUFFER_STATE");lets=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),s.copy(this.buf,e.length),this.length+=e.length}else{letr=this.length++;r===this.size&&this.resize();lets=this.clone();this.buf[0]=e,s.copy(this.buf,1,0,r)}}append(e){letr=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){returnBuffer.from(this.buf.slice(0,this.length))}resize(){lete=this.length;this.size=this.size*2;letr=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){returne?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){returnthis.toString("utf8")}reset(){this.length=0}},C1e=y1e;varBrt=12,Drt=13,qrt=10,Irt=32,Rrt=9,lGe=function(t){return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,error:void0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void0,field:newC1e(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter.map(e=>e.length),t.quote!==null?t.quote.length:0),previousBuf:void0,quoting:!1,stop:!1,rawBuffer:newC1e(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?0:Math.max(...t.record_delimiter.map(e=>e.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDeli
`,o).length:l,u?(a===null?0:a.length)+c.length:0,u?c.length+l:0);return A<f},parse:function(s,n,i,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:p,ltrim:l,max_record_size:A,raw:f,relax_quotes:M,rtrim:g,skip_empty_lines:y,to:O,to_line:C}=this.options,{comment:q,escape:R,quote:S,record_delimiter:T}=this.options,{bomSkipped:L,previousBuf:$,rawBuffer:Me,escapeIsQuote:Ne}=this.state,k;if($===void 0)if(s===void 0){o();return}else k=s;else $!==void 0&&s===void 0?k=$:k=Buffer.concat([$,s]);if(L===!1)if(a===!1)this.state.bomSkipped=!0;else if(k.length<3){if(n===!1){this.state.previousBuf=k;return}}else{for(let ne in mg)if(mg[ne].compare(k,0,mg[ne].length)===0){let De=mg[ne].length;this.state.bufBytesStart+=De,k=k.slice(De);let i0=B1e({...this.original_options,encoding:ne});for(let qe in i0)this.options[qe]=i0[qe];({comment:q,escape:R,quote:S}=this.options);break}this.state.bomSkipped=!0}let Ce=k.length,Q;for(Q=0;Q<Ce&&!this.__needMoreData(Q,Ce,n);Q++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),C!==-1&&this.info.lines>C){this.state.stop=!0,o();return}this.state.quoting===!1&&T.length===0&&this.__autoDiscoverRecordDelimiter(k,Q)&&(T=this.options.record_delimiter);let ne=k[Q];if(f===!0&&Me.append(ne),(ne===wrt||ne===Nrt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(R!==null&&this.state.quoting===!0&&this.__isEscape(k,Q,ne)&&Q+R.length<Ce)if(Ne){if(this.__isQuote(k,Q+R.length)){this.state.escaping=!0,Q+=R.length-1;continue}}else{this.state.escaping=!0,Q+=R.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(k,Q))if(this.state.quoting===!0){let qe=k[Q+S.length],p0=g&&this.__isCharTrimable(k,Q+S.length),C0=q!==null&&this.__compareBytes(q,k,Q+S.length,qe),b0=this.__isDelimiter(k,Q+S.length,qe),Rt=T.length===0?this.__autoDiscoverRecordDelimiter(k,Q+S.length):this.__isRecordDelimiter(qe,k,Q+S.length);if(R!==null&&this.__isEscape(k,Q,ne)&&this.__isQuote(k,Q+R.length))Q+=R.length-1;else if(!qe||b0||Rt||C0||p0){this.state.quoting=!1,this.state.wasQuoting=!0,Q+=S.length-1;continue}else if(M===!1){let At=this.__error(new y0("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got"${String.fromCharCode(qe)}"`,`atline${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(At!==void 0)return At}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(S),Q+=S.length-1}else if(this.state.field.length!==0){if(M===!1){let qe=this.__infoField(),p0=Object.keys(mg).map(b0=>mg[b0].equals(this.state.field.toString())?b0:!1).filter(Boolean)[0],C0=this.__error(new y0("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`aquoteisfoundonfield${JSON.stringify(qe.column)}atline${qe.lines},valueis${JSON.stringify(this.state.field.toString(u))}`,p0?`(${p0}bom)`:void 0],this.options,qe,{field:this.state.field}));if(C0!==void 0)return C0}}else{this.state.quoting=!0,Q+=S.length-1;continue}if(this.state.quoting===!1){let qe=this.__isRecordDelimiter(ne,k,Q);if(qe!==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)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Q+=qe-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Q+=qe-1;continue}this.info.bytes=this.state.bufBytesStart+Q;let b0=this.__onField();if(b0!==void 0)return b0;this.info.bytes=this.state.bufBytesStart+Q+qe;let Rt=this.__onRecord(i);if(Rt!==void 0)return Rt;if(O!==-1&&this.info.records>=O){this.state.stop=!0,o();return}}this.state.commenting=!1,Q+=qe-1;continue}if(this.state.commenting)continue;if(q!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(q,k,Q,ne)!==0){this.state.commenting=!0;continue}let p0=this.__isDelimiter(k,Q,
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(leta=0;a<o.length;a++){letc=o[a].length;for(letu=0;u<c;u++)if(o[a][u]!==s[n+u])continuee;returnthis.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return0},__error:function(s){let{encoding:n,raw:i,skip_records_with_error:o}=this.options,a=typeofs=="string"?newError(s):s;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void0)try{this.options.on_skip(a,i?this.state.rawBuffer.toString(n):void0)}catch(c){returnc}return}elsereturna},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void0}},__infoField:function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};varFf=function(t,e={}){typeoft=="string"&&(t=Buffer.from(t));letr=e&&e.objname?{}:[],s=fGe(e),n=a=>{s.options.objname===void0?r.push(a):r[a[0]]=a[1]},i=()=>{},o=s.parse(t,!0,n,i);if(o!==void0)throwo;returnr};functionhGe(t){lete=[];if(t.length==1){letr=!1,s=Ff(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letnofs){leti=n.toString().split("=").map(o=>o.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)returnbGe(e)}e=[];for(letroft){lets={name:"",enable:!0},n=Ff(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letiofn){leto=i.toString().split("=").map(a=>a.trim());if(o.length==1)s.name=o[0];else{leta=o[0].toLowerCase(),c=o[1];switch(a){case"name":{s.name=c;break}case"enable":{if(!["true","false"].includes(c))thrownewError(`Invalid enable attribute value: ${r}`);s.enable=/true/i.test(c);break}default:thrownewError(`Unknown image attribute: ${r}`)}}}if(s.name.length==0)thrownewError(`Image name attribute empty: ${r}`);e.push(s)}returnbGe(e)}functionbGe(t){z2("Processing images input");for(leteoft)_(`name=${e.name},enable=${e.enable}`);returnO2(),t}varq1e=(c=>(c.Schedule="schedule",c.Semver="semver",c.Pep440="pep440",c.Match="match",c.Edge="edge",c.Ref="ref",c.Raw="raw",c.Sha="sha",c))(q1e||{}),UT=(s=>(s.Branch="branch",s.Tag="tag",s.PR="pr",s))(UT||{}),GT=(r=>(r.Short="short",r.Long="long",r))(GT||{}),D1e=class{type;attrs;constructor(){this.attrs={}}toString(){lete=[`type=${this.type}`];for(letrinthis.attrs)e.push(`${r}=${this.attrs[r]}`);returne.join(",")}},Frt={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};functionMGe(t){lete=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(letsoft)e.push(vrt(s));letr=e.sort((s,n)=>Number(s.attrs.priority)<Number(n.attrs.priority)?1:Number(s.attrs.priority)>Number(n.attrs.priority)?-1:0);z2("Processing tags input");for(letsofr)_(s.toString());returnO2(),r}functionvrt(t){lete=Ff(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=newD1e;for(letsofe){letn=s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(n.length==1)r.attrs.value=n[0];else{leti=n[0].toLowerCase(),o=n[1];switch(i){case"type":{if(!Object.values(q1e).includes(o))thrownewError(`Unknown tag type attribute: ${o}`);r.type=o;break}default:{r.attrs[i]=o;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))thrownewError(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value=""),Object.prototype.hasOwnProperty.call(r.attrs,"match")||(r.attrs.match="");break}case"match":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))thrownewError(`Missing pattern att