varpVe=Object.create;varV4=Object.defineProperty;varlVe=Object.getOwnPropertyDescriptor;varAVe=Object.getOwnPropertyNames;vardVe=Object.getPrototypeOf,fVe=Object.prototype.hasOwnProperty;varo=(t,e)=>V4(t,"name",{value:e,configurable:!0});varhVe=(t,e)=>()=>(t&&(e=t(t=0)),e);varb=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Hre=(t,e)=>{for(varrine)V4(t,r,{get:e[r],enumerable:!0})},bVe=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letnofAVe(e))!fVe.call(t,n)&&n!==r&&V4(t,n,{get:()=>e[n],enumerable:!(s=lVe(e,n))||s.enumerable});returnt};var_=(t,e,r)=>(r=t!=null?pVe(dVe(t)):{},bVe(e||!t||!t.__esModule?V4(r,"default",{value:t,enumerable:!0}):r,t));varKre=b(nh=>{"use strict";varT1t=require("net"),EVe=require("tls"),HT=require("http"),$re=require("https"),yVe=require("events"),_1t=require("assert"),CVe=require("util");nh.httpOverHttp=BVe;nh.httpsOverHttp=DVe;nh.httpOverHttps=qVe;nh.httpsOverHttps=IVe;functionBVe(t){vare=newiu(t);returne.request=HT.request,e}o(BVe,"httpOverHttp");functionDVe(t){vare=newiu(t);returne.request=HT.request,e.createSocket=Yre,e.defaultPort=443,e}o(DVe,"httpsOverHttp");functionqVe(t){vare=newiu(t);returne.request=$re.request,e}o(qVe,"httpOverHttps");functionIVe(t){vare=newiu(t);returne.request=$re.request,e.createSocket=Yre,e.defaultPort=443,e}o(IVe,"httpsOverHttps");functioniu(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||HT.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(varc=Jre(n,i,a),u=0,p=e.requests.length;u<p;++u){varl=e.requests[u];if(l.host===c.host&&l.port===c.port){e.requests.splice(u,1),l.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(iu,"TunnelingAgent");CVe.inherits(iu,yVe.EventEmitter);iu.prototype.addRequest=o(function(e,r,s,n){vari=this,a=XT({request:e},i.options,Jre(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);functionu(){i.emit("free",c,a)}o(u,"onFree");functionp(l){i.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}o(p,"onCloseOrRemove")})},"addRequest");iu.prototype.createSocket=o(function(e,r){vars=this,n={};s.sockets.push(n);vari=XT({},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")),nl("making CONNECT request");vara=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",l),a.end();functionc(A){A.upgrade=!0}o(c,"onResponse");functionu(A,d,h){process.nextTick(function(){p(A,d,h)})}o(u,"onUpgrade");functionp(A,d,h){if(a.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){nl("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();varm=newError("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}if(h.length>0){nl("got illegal response body from proxy"),d.destroy();varm=newError("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}returnnl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}o(p,"onConnect");functionl(A){a.removeAllListeners(),nl(`tunneling socket could not be established, cause=%s
`);d.push(z),i+=z.byteLength,m&&(i=null),n=t,s=o(async function*(){for(let C of d)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${u}`}else if(iie(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(sz.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:XYe(t)}if((typeof n=="string"||sz.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let u;r=new ReadableStream({async start(){u=s(t)[Symbol.asyncIterator]()},async pull(p){let{value:l,done:A}=await u.next();if(A)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!uie(r)){let d=new Uint8Array(l);d.byteLength&&p.enqueue(d)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(Aie,"extractBody");function iJe(t,e=!1){return t instanceof ReadableStream&&(J_(!sz.isDisturbed(t),"The body has already been consumed."),J_(!t.locked,"The stream is locked.")),Aie(t,e)}o(iJe,"safelyExtractBody");function oJe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(oJe,"cloneBody");function aJe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(aJe,"throwIfAborted");function cJe(t){return{blob(){return Mh(this,r=>{let s=aie(this);return s===null?s="":s&&(s=rJe(s)),new ZYe([r],{type:s})},t)},arrayBuffer(){return Mh(this,r=>new Uint8Array(r).buffer,t)},text(){return Mh(this,cie,t)},json(){return Mh(this,pJe,t)},formData(){return Mh(this,r=>{let s=aie(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=sJe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new oie;return i[mh]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new oie;for(let[a,c]of n)i.append(a,c);return i}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){return Mh(this,r=>new Uint8Array(r),t)}}}o(cJe,"bodyMixinMethods");function uJe(t){Object.assign(t.prototype,cJe(t))}o(uJe,"mixinBody");async function Mh(t,e,r){if(KYe.brandCheck(t,r),die(t))throw new TypeError("Body is unusable: Body has already been read");aJe(t[mh]);let s=$Ye(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[mh].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await YYe(t[mh].body,i,n),s.promise)}o(Mh,"consumeBody");function die(t){let e=t[mh].body;return e!=null&&(e.stream.locked||sz.isDisturbed(e.stream))}o(die,"bodyUnusable");function pJe(t){return JSON.parse(cie(t))}o(pJe,"parseJSONFromBytes");function aie(t){let e=t[mh].headersList,r=JYe(e);return r==="failure"?null:r}o(aie,"bodyMimeType");fie.exports={extractBody:Aie,safelyExtractBody:iJe,cloneBody:oJe,mixinBody:uJe,streamRegistry:lie,hasFinalizationRegistry:pie,bodyUnusable:die}});var wie=b((wrt,Rie)=>{"use strict";var we=require("node:assert"),ve=i0(),{channels:hie}=oh(),Z_=v_(),{RequestContentLengthMismatchError:td,ResponseContentLengthMismatchError:bie,RequestAbortedError:Cie,HeadersTimeoutError:lJe,HeadersOverflowError:AJe,SocketError:zh,InformationalError:Oh,BodyTimeoutError:dJe,HTTPParserError:fJe,ResponseExceededMaxSizeError:hJe}=E0(),{kUrl:Bie,kReset:Ns,kClient:DB,kParser:ot,kBlocking:oz,kRunning:A1,kPending:Die,kSize:Mie,kWriting:ol,kQueue:mo,kNoRef:nz,kKeepAliveDefaultTimeout:bJe,kHostHeader:MJe,kPendingIdx:mJe,kRunningIdx:Ai,kError:Xr,kPipelining:qB,kSocket:sd,kKeepAliveTimeoutValue:RB,kMaxHeadersSize:eW,kKeepAliveMaxTimeout:gJe,kKeepAliveTimeoutThreshold:zJe,kHeadersTimeout:OJe,kBodyTimeout:EJe,kStrictContentLength:sW,kMaxRequests:mie,kCounter:yJe,kMaxResponseSize:CJe,kOnError:gie,kResume:lu,kHTTPContext:qie}=ft(),mn=lne(),zie=Buffer.alloc(0),yB=Buffer[Symbol.species],CB=ve.addListener,BJe=ve.removeAllListeners,nd=Symbol("kIdleSocketValidation"),rd=Symbol("kIdleSocketValidationTimeout"),aW=Symbol("kSocketUsed"),tW;async function DJe(){let t=p
`}return hie.sendHeaders.hasSubscribers&&hie.sendHeaders.publish({request:e,headers:z,socket:h}),!u||d===0?Eie(m,null,t,e,h,l,z,A):ve.isBuffer(u)?Eie(m,u,t,e,h,l,z,A):ve.isBlobLike(u)?typeof u.stream=="function"?yie(m,u.stream(),t,e,h,l,z,A):vJe(m,u,t,e,h,l,z,A):ve.isStream(u)?FJe(m,u,t,e,h,l,z,A):ve.isIterable(u)?yie(m,u,t,e,h,l,z,A):we(!1),!0}o(NJe,"writeH1");function FJe(t,e,r,s,n,i,a,c){we(i!==0||r[A1]===0,"stream body cannot be pipelined");let u=!1,p=new wB({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),l=o(function(m){if(!u)try{!p.write(m)&&this.pause&&this.pause()}catch(z){ve.destroy(this,z)}},"onData"),A=o(function(){u||e.resume&&e.resume()},"onDrain"),d=o(function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!u){let m=new Cie;queueMicrotask(()=>h(m))}},"onClose"),h=o(function(m){if(!u){if(u=!0,we(n.destroyed||n[ol]&&r[A1]<=1),n.off("drain",A).off("error",h),e.removeListener("data",l).removeListener("end",h).removeListener("close",d),!m)try{p.end()}catch(z){m=z}p.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?ve.destroy(e,m):ve.destroy(e)}},"onFinished");e.on("data",l).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",A).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}o(FJe,"writeStream");function Eie(t,e,r,s,n,i,a,c){try{e?ve.isBuffer(e)&&(we(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
`,"latin1"):(we(i===null,"no body must not have content length"),n.write(`${a}\r
`,"latin1")),s.onRequestSent(),r[lu]()}catch(u){t(u)}}o(Eie,"writeBuffer");async function vJe(t,e,r,s,n,i,a,c){we(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new td;let u=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
`,"latin1"),n.write(u),n.uncork(),s.onBodySent(u),s.onRequestSent(),!c&&s.reset!==!1&&(n[Ns]=!0),r[lu]()}catch(u){t(u)}}o(vJe,"writeBlob");async function yie(t,e,r,s,n,i,a,c){we(i!==0||r[A1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let d=u;u=null,d()}}o(p,"onDrain");let l=o(()=>new Promise((d,h)=>{we(u===null),n[Xr]?h(n[Xr]):u=d}),"waitForDrain");n.on("close",p).on("drain",p);let A=new wB({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let d of e){if(n[Xr])throw n[Xr];A.write(d)||await l()}A.end()}catch(d){A.destroy(d)}finally{n.off("close",p).off("drain",p)}}o(yie,"writeIterable");var wB=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[ol]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[Xr])throw r[Xr];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(n!==null&&a+p>n){if(i[sW])throw new td;process.emitWarning(new td)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[Ns]=!0),n===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"),r!==null&&n!==r){if(s[sW])throw new td;process.emitWarning(new td)}e[ot].timeout&&e[ot].timeoutType===Eh&&e[ot].timeout.refresh&&e[ot].timeout.refresh(),s[lu]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[ol]=!1,e&&(we(s[A1]<=1,"pipeline should only contain this request"),n(e))}};Rie.exports=IJe});var Wie=b((Nrt,_ie)=>{"use strict";var di=require("node:assert"),{pipeline:xJe}=require("node:stream"),l0=i0(),{RequestContentLengthMismatchError:cW,RequestAbortedError:Sie,SocketError:az,InformationalError:uW}=E0(),{kUrl:SB,kReset:FB,kClient:yh,kRunning:vB,kPending:TJe,kQueue:al,kPendingIdx:pW,kRunningIdx:go,kError:Oo,kSocket:w1,kStrictContentLength:_Je,kOnError:lW,kMaxConcurrentStreams:Tie,kHTTP2Session:zo,kResume:cl,kSize:WJe,kHTTPContext:LJe}=ft(),Au=Symbol("open streams"),Nie,Fie=!1,NB;try{NB=require("node:http2")}catch{NB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:QJe,HTTP2_HEADER_METHOD:PJe,HTTP2_HEADER_PATH:kJe,HTTP2_HEADER_SCHEME:UJe,HTTP2_HEADER_CONTENT_LENGTH:GJe,HTTP2_HEADER_EXPECT:HJe,HTTP2_HEADER_STATUS:XJe}}=NB;function VJe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}o(VJe,"parseH2Headers");async function jJe(t,e){t[w1]=e,Fie||(Fie=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=NB.connect(t[SB],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Tie]});r[Au]=0,r[yh]=t,r[w1]=e,l0.addListener(r,"error",YJe),l0.addListener(r,"frameError",JJe),l0.addListener(r,"end",KJe),l0.addListener(r,"goaway",ZJe),l0.addListener(r,"close",function(){let{[yh]:n}=this,{[w1]:i}=n,a=this[w1][Oo]||this[Oo]||new az("closed",l0.getSocketInfo(i));if(n[zo]=null,n.destroyed){di(n[TJe]===0);let c=n[al].splice(n[go]);for(let u=0;u<c.length;u++){let p=c[u];l0.errorRequest(n,p,a)}}}),r.unref(),t[zo]=r,e[zo]=r,l0.addListener(e,"error",function(n){di(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Oo]=n,this[yh][lW](n)}),l0.addListener(e,"end",function(){l0.destroy(this,new az("other side closed",l0.getSocketInfo(this)))}),l0.addListener(e,"close",function(){let n=this[Oo]||new az("closed",l0.getSocketInfo(this));t[w1]=null,this[zo]!=null&&this[zo].destroy(n),t[pW]=t[go],di(t[vB]===0),t.emit("disconnect",t[SB],[t],n),t[cl]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return tKe(t,...n)},resume(){$Je(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(jJe,"connectH2");function $Je(t){let e=t[w1];e?.destroyed===!1&&(t[WJe]===0&&t[Tie]===0?(e.unref(),t[zo].unref()):(e.ref(),t[zo].ref()))}o($Je,"resumeH2");function YJe(t){di(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[w1][Oo]=t,this[yh][lW](t)}o(YJe,"onHttp2SessionError");function JJe(t,e,r){if(r===0){let s=new uW(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[w1][Oo]=s,this[yh][lW](s)}}o(JJe,"onHttp2FrameError");function KJe(){let t=new az("other side closed",l0.getSocketInfo(this[w1]));this.destroy(t),l0.destroy(this[w1],t)}o(KJe,"onHttp2SessionEnd");function ZJe(t){let e=this[Oo]||new az(`HTTP/2: "GOAWAY" frame received with code ${t}`,l0.getSocketInfo(this)),r=this[yh];if(r[w1]=null,r[LJe]=null,this[zo]!=null&&(this[zo].destroy(e),this[zo]=null),l0.destroy(this[w1],e),r[go]<r[al].length){let s=r[al][r[go]];r[al][r[go]++]=null,l0.errorRequest(r,s,e),r[pW]=r[go]}di(r[vB]===0),r.emit("disconnect",r[SB],[r],e),r[cl]()}o(ZJe,"onHTTP2GoAway");function eKe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(eKe,"shouldSendContentLength");function tKe(t,e){let r=t[zo],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:l}=e;if(a)return l0.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let w=0;w<p.length;w+=2){let N=p[w+0],T=p[w+1];if(Array.isArray(T))for(let Q=0;Q<T.length;Q++)A[N]?A[N]+=`,${T[Q]}`:A[N]=T[Q];else A[N]=T}let d,{hostname:h,port:m}=t[SB];A[QJ
globstar while`,t,l,e,A,d),this.matchOne(t.slice(l),e.slice(A),r))return this.debug("globstar found match!",l,a,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,l,e,A);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(r&&(this.debug(`
`);if(d===-1){iI("have not received end of HTTP headers yet..."),i();return}let h=A.slice(0,d).toString("ascii").split(`\r
`),m=h.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let z=m.split(" "),C=+z[1],E=z.slice(2).join(" "),B={};for(let I of h){if(!I)continue;let w=I.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,w).toLowerCase(),T=I.slice(w+1).trimStart(),Q=B[N];typeof Q=="string"?B[N]=[Q,T]:Array.isArray(Q)?Q.push(T):B[N]=T}iI("got proxy server response: %o %o",m,B),a(),e({connect:{statusCode:C,statusText:E,headers:B},buffered:A})}o(p,"ondata"),t.on("error",u),t.on("end",c),i()})}o(ud0,"parseProxyResponse");Eb.parseProxyResponse=ud0});var Tbe=b(qi=>{"use strict";var pd0=qi&&qi.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),ld0=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vbe=qi&&qi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pd0(e,t,r);return ld0(e,t),e},xbe=qi&&qi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qi,"__esModule",{value:!0});qi.HttpsProxyAgent=void 0;var oI=vbe(require("net")),Sbe=vbe(require("tls")),Ad0=xbe(require("assert")),dd0=xbe(Wd()),fd0=Rbe(),hd0=require("url"),bd0=wbe(),wO=(0,dd0.default)("https-proxy-agent"),Nbe=o(t=>t.servername===void 0&&t.host&&!oI.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),aI=class extends fd0.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new hd0.URL(e):e,this.proxyHeaders=r?.headers??{},wO("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Fbe(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No"host"provided');let n;s.protocol==="https:"?(wO("Creating `tls.Socket`: %o",this.connectOpts),n=Sbe.connect(Nbe(this.connectOpts))):(wO("Creating `net.Socket`: %o",this.connectOpts),n=oI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=oI.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}: ${i[d]}\r
`)+4,e.outputData[0].data=e._header+s.substring(n),yb("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(yb("Creating `tls.Socket`: %o",this.connectOpts),i=Nd0.connect(this.connectOpts)):(yb("Creating `net.Socket`: %o",this.connectOpts),i=Sd0.connect(this.connectOpts)),await(0,vd0.once)(i,"connect"),i}};cI.protocols=["http","https"];Ii.HttpProxyAgent=cI;function Td0(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(Td0,"omit")});var AMe=b(EI=>{"use strict";Object.defineProperty(EI,"__esModule",{value:!0});EI.state=void 0;EI.state={instrumenterImplementation:void 0}});var RMe=b(qI=>{"use strict";Object.defineProperty(qI,"__esModule",{value:!0});qI.state=void 0;qI.state={operationRequestMap:new WeakMap}});var aze=b(Pb=>{"use strict";Object.defineProperty(Pb,"__esModule",{value:!0});var rm0=require("os"),sm0=require("util");function nm0(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(nm0,"_interopDefaultLegacy");var im0=nm0(sm0);function om0(t,...e){process.stderr.write(`${im0.default.format(t,...e)}${rm0.EOL}`)}o(om0,"log");var Jge=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Zge,KU=[],ZU=[],XR=[];Jge&&eG(Jge);var eze=Object.assign(t=>tze(t),{enable:eG,enabled:tG,disable:am0,log:om0});function eG(t){Zge=t,KU=[],ZU=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?ZU.push(new RegExp(`^${s.substr(1)}$`)):KU.push(new RegExp(`^${s}$`));for(let s of XR)s.enabled=tG(s.namespace)}o(eG,"enable");function tG(t){if(t.endsWith("*"))return!0;for(let e of ZU)if(e.test(t))return!1;for(let e of KU)if(e.test(t))return!0;return!1}o(tG,"enabled");function am0(){let t=Zge||"";return eG(""),t}o(am0,"disable");function tze(t){let e=Object.assign(r,{enabled:tG(t),destroy:cm0,log:eze.log,namespace:t,extend:um0});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),XR.push(e),e}o(tze,"createDebugger");function cm0(){let t=XR.indexOf(this);return t>=0?(XR.splice(t,1),!0):!1}o(cm0,"destroy");function um0(t){let e=tze(`${this.namespace}:${t}`);return e.log=this.log,e}o(um0,"extend");var m3=eze,rze=new Set,GR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,VR,jR=m3("azure");jR.log=(...t)=>{m3.log(...t)};var rG=["verbose","info","warning","error"];GR&&(oze(GR)?sze(GR):console.error(`AZURE_LOG_LEVEL set to unknown log level '${GR}'; logging is not enabled. Acceptable values: ${rG.join(", ")}.`));function sze(t){if(t&&!oze(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${rG.join(",")}`);VR=t;let e=[];for(let r of rze)ize(r)&&e.push(r.namespace);m3.enable(e.join(","))}o(sze,"setLogLevel");function pm0(){return VR}o(pm0,"getLogLevel");var Kge={verbose:400,info:300,warning:200,error:100};function lm0(t){let e=jR.extend(t);return nze(jR,e),{error:HR(e,"error"),warning:HR(e,"warning"),info:HR(e,"info"),verbose:HR(e,"verbose")}}o(lm0,"createClientLogger");function nze(t,e){e.log=(...r)=>{t.log(...r)}}o(nze,"patchLogMethod");function HR(t,e){let r=Object.assign(t.extend(e),{level:e});if(nze(t,r),ize(r)){let s=m3.disable();m3.enable(s+","+r.namespace)}return rze.add(r),r}o(HR,"createLogger");function ize(t){return!!(VR&&Kge[t.level]<=Kge[VR])}o(ize,"shouldEnable");function oze(t){return rG.includes(t)}o(oze,"isAzureLogLevel");Pb.AzureLogger=jR;Pb.createClientLogger=lm0;Pb.getLogLevel=pm0;Pb.setLogLevel=sze});var iG=b(z3=>{"use strict";Object.defineProperty(z3,"__esModule",{value:!0});var kb=new WeakMap,$R=new WeakMap,g3=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,kb.set(this,[]),$R.set(this,!1)}get aborted(){if(!$R.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return $R.get(this)}static get none(){return new t}addEventListener(e,r){if(!kb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");kb.get(this).push(r)}removeEventListener(e,r){if(!kb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=kb.get(this),n=s.indexOf(r);n>-
Polling status: ${Mze.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let A=a(p,r);if(A!==void 0)return{response:await e(A).catch(hze({state:r,stateProxy:s,isOperationError:c})),status:l}}return{response:p,status:l}}o(Pm0,"pollOperationHelper");async function Oze(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:p,getPollingInterval:l,processResult:A,getError:d,updateState:h,setDelay:m,isDone:z,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:B,status:I}=await Pm0({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:u,options:n});if(gze({status:I,response:B,state:r,stateProxy:s,isDone:z,processResult:A,getError:d,setErrorAsResult:C}),!Mze.includes(I)){let w=l?.(B);w&&m(w);let N=c?.(B,r);if(N!==void 0){let T=E!==N;r.config.operationLocation=N,p?.(N,T)}else p?.(E,!1)}h?.(r,B)}}o(Oze,"pollOperation");function Eze(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(Eze,"getOperationLocationPollingUrl");function yze(t){return t.headers.location}o(yze,"getLocationHeader");function Cze(t){return t.headers["operation-location"]}o(Cze,"getOperationLocationHeader");function Bze(t){return t.headers["azure-asyncoperation"]}o(Bze,"getAzureAsyncOperationHeader");function km0(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(km0,"findResourceLocation");function Dze(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=Cze(e),a=Bze(e),c=Eze({operationLocation:i,azureAsyncOperation:a}),u=yze(e),p=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:km0({requestMethod:p,location:u,requestPath:s,resourceLocationConfig:n})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:p==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(Dze,"inferLroMode");function qze(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 bG(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 r2.verbose(`LRO:unrecognizedoperationstatus:${e}`),e}}o(qze,"transformStatus");function Um0(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return qze({status:r,statusCode:t.statusCode})}o(Um0,"getStatus");function Gm0(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 qze({status:i,statusCode:t.statusCode})}o(Gm0,"getProvisioningState");function bG(t){return t===202?"running":t<300?"succeeded":"failed"}o(bG,"toOperationStatus");function Ize({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Hm0(new Date(e)):r*1e3}}o(Ize,"parseRetryAfter");function Rze(t){let e=t.flatResponse.error;if(!e){r2.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){r2.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(Rze,"getErrorFromResponse");function Hm0(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(Hm0,"calculatePollingIntervalFromDate");function wze(t){let{response:e,state:r,operationLocation:s}=t;function n(){var a;switch
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(By0,"logUnexpecedPropertyAccessOnce");functionDy0(){Object.keys(ww).forEach(function(t){deleteww[t]})}o(Dy0,"resetLoggedProperties")});varNw=b(ac=>{"use strict";ac.__esModule=!0;ac.HandlebarsEnvironment=FX;functionZEe(t){returnt&&t.__esModule?t:{default:t}}o(ZEe,"_interopRequireDefault");varM2=cs(),qy0=Xn(),SX=ZEe(qy0),Iy0=qX(),Ry0=$Ee(),wy0=RX(),Sw=ZEe(wy0),Sy0=wX(),Ny0="4.7.9";ac.VERSION=Ny0;varFy0=8;ac.COMPILER_REVISION=Fy0;varvy0=7;ac.LAST_COMPATIBLE_COMPILER_REVISION=vy0;varxy0={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"};ac.REVISION_CHANGES=xy0;varNX="[object Object]";functionFX(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Iy0.registerDefaultHelpers(this),Ry0.registerDefaultDecorators(this)}o(FX,"HandlebarsEnvironment");FX.prototype={constructor:FX,logger:Sw.default,log:Sw.default.log,registerHelper:o(function(e,r){if(M2.toString.call(e)===NX){if(r)thrownewSX.default("Arg not supported with multiple helpers");M2.extend(this.helpers,e)}elsethis.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){deletethis.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(M2.toString.call(e)===NX)M2.extend(this.partials,e);else{if(typeofr>"u")thrownewSX.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){deletethis.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(M2.toString.call(e)===NX){if(r)thrownewSX.default("Arg not supported with multiple decorators");M2.extend(this.decorators,e)}elsethis.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){deletethis.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Sy0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};varTy0=Sw.default.log;ac.log=Ty0;ac.createFrame=M2.createFrame;ac.logger=Sw.default});vartye=b((Fw,eye)=>{"use strict";Fw.__esModule=!0;functionvX(t){this.string=t}o(vX,"SafeString");vX.prototype.toString=vX.prototype.toHTML=function(){return""+this.string};Fw.default=vX;eye.exports=Fw.default});varrye=b(xX=>{"use strict";xX.__esModule=!0;xX.wrapHelper=_y0;function_y0(t,e){if(typeoft!="function")returnt;varr=o(function(){varn=arguments[arguments.length-1];returnarguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");returnr}o(_y0,"wrapHelper")});varcye=b(Yl=>{"use strict";Yl.__esModule=!0;Yl.checkRevision=Uy0;Yl.template=Gy0;Yl.wrapProgram=vw;Yl.resolvePartial=Hy0;Yl.invokePartial=Xy0;Yl.noop=oye;functionWy0(t){returnt&&t.__esModule?t:{default:t}}o(Wy0,"_interopRequireDefault");functionLy0(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);returne.default=t,e}o(Ly0,"_interopRequireWildcard");varQy0=cs(),bM=Ly0(Qy0),Py0=Xn(),Xu=Wy0(Py0),Vu=Nw(),sye=qX(),ky0=rye(),nye=wX();functionUy0(t){vare=t&&t[0]||1,r=Vu.COMPILER_REVISION;if(!(e>=Vu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Vu.COMPILER_REVISION))if(e<Vu.LAST_COMPATIBLE_COMPILER_REVISION){vars=Vu.REVISION_CHANGES[r],n=Vu.REVISION_CHANGES[e];thrownewXu.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+").")}elsethrownewXu.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(Uy0,"checkRevision");functionGy0(t,e){if(!e)thrownewXu.default("No environment passed to template");if(!t||!t.main)thrownewXu.default("Unknown template object: "+typeoft);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);varr=t.compiler&&t.compiler[0]===7;functions(a,c,u){u.hash&&(c=bM.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.res
Expecting `+J.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Fe="Parse error on line "+(A+1)+": Unexpected "+(w==1?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Fe,{text:this.lexer.match,token:this.terminals_[w]||w,line:this.lexer.yylineno,loc:C,expected:J})}}if(Q[0]instanceofArray&&Q.length>1)thrownewError("Parse Error: multiple actions possible at state: "+T+", token: "+w);switch(Q[0]){case1:a.push(w),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(Q[1]),w=null,N?(w=N,N=null):(d=this.lexer.yyleng,l=this.lexer.yytext,A=this.lexer.yylineno,C=this.lexer.yylloc,h>0&&h--);break;case2:if(qe=this.productions_[Q[1]][1],De.$=c[c.length-qe],De._$={first_line:u[u.length-(qe||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(qe||1)].first_column,last_column:u[u.length-1].last_column},E&&(De._$.range=[u[u.length-(qe||1)].range[0],u[u.length-1].range[1]]),me=this.performAction.call(De,l,d,A,this.yy,Q[1],c,u),typeofme<"u")returnme;qe&&(a=a.slice(0,-1*qe*2),c=c.slice(0,-1*qe),u=u.slice(0,-1*qe)),a.push(this.productions_[Q[1]][0]),c.push(De.$),u.push(De._$),Y=p[a[a.length-2]][a[a.length-1]],a.push(Y);break;case3:return!0}}return!0},"parse")},e=(function(){vars={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);elsethrownewError(i)},"parseError"),setInput:o(function(i){returnthis._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){vari=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;vara=i.match(/(?:\r\n?|\n).*/g);returna?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){vara=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;varu=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);varp=this.yylloc.range;returnthis.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this},"unput"),more:o(function(){returnthis._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){vari=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){vari=this.match;returni.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){vari=this.pastInput(),a=newArray(i.length+1).join("-");returni+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)returnthis.EOF;this._input||(this.done=!0);vari,a,c,u,p,l;this._more||(this.yytext="",this.match="");for(varA=this._currentRules(),d=0;d<A.length&&(c=this._input.match(this.rules[A[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);returna?(l=a[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,A[u],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})},"next"),lex:o(function(){vari=this.next();returntypeofi<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){returnthis.conditionStack.pop()},"popState"),_currentRules:o(function(){returnthis.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){returnthis.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};returns.options={},s.performAction=o(function(i,a,c,u){functionp(A,d){returna.yytext=a.yytext.substring(A,a.yyleng-d+A)}o(p,"strip");varl=u;switch(c){case0:if(a.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(p(0,1),this.begin("emu")):this.begin("mu"),a.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:(p(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(a.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:returna.yytext=p(1,2).replace(/\\"/g,'"'),80;break;case32:returna.yytext=p(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:returna.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case43:return"INVALID";case44:return5}},"anonymous"),s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;functionr(){this.yy={}}returno(r,"Parser"),r.prototype=t,t.Parser=r,newr})();Lw.default=nC0;Mye.exports=Lw.default});varUw=b((kw,Oye)=>{"use strict";kw.__esModule=!0;functioniC0(t){returnt&&t.__esModule?t:{default:t}}o(iC0,"_interopRequireDefault");varoC0=Xn(),PX=iC0(oC0);functionQw(){this.parents=[]}o(Qw,"Visitor");Qw.prototype={constructor:Qw,mutating:!1,acceptKey:o(function(e,r){vars=this.accept(e[r]);if(this.mutating){if(s&&!Qw.prototype[s.type])thrownewPX.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.a
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new O2(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof O2?e:(e=uV(e,this,r),new O2(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var a=uV(e[i],r);a!=="undefined"&&s.push([r.quotedString(i),":",a])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(uV(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};Jw.default=rCe;sCe.exports=Jw.default});var uCe=b((Kw,cCe)=>{"use strict";Kw.__esModule=!0;function aCe(t){return t&&t.__esModule?t:{default:t}}o(aCe,"_interopRequireDefault");var iCe=Nw(),s40=Xn(),lV=aCe(s40),n40=cs(),i40=nCe(),oCe=aCe(i40);function EM(t){this.value=t}o(EM,"Literal");function yM(){}o(yM,"JavaScriptCompiler");yM.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=iCe.COMPILER_REVISION,r=iCe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return n40.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=i.length;u<p;u++)a=i[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new lV.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(),`;
\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"}}});varSBe=b(wBe=>{"use strict";varS$=op().Buffer;wBe._dbcs=cp;varhr=-1,RBe=-2,Xi=-10,bs=-1e3,GM=newArray(256),vE=-1;for(fN=0;fN<256;fN++)GM[fN]=hr;varfN;functioncp(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}`);throwc.code="EBADSIZE",c.found=t.length,c.expected=r.size,c.sri=e,c}else{letc=newError(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throwc.code="EINTEGRITY",c.found=i,c.expected=e,c.algorithm=s,c.sri=e,c}}o(eR0,"checkData");Cc.exports.checkStream=tR0;functiontR0(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=ei(e,r),!e||!Object.keys(e).length)returnPromise.reject(Object.assign(newError("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));lets=nY(r);returnnewPromise((n,i)=>{t.pipe(s),t.on("error",i),s.on("error",i);leta;s.on("verified",c=>{a=c}),s.on("end",()=>n(a)),s.resume()})}o(tR0,"checkStream");Cc.exports.integrityStream=nY;functionnY(t=Object.create(null)){returnnewrY(t)}o(nY,"integrityStream");Cc.exports.create=rR0;functionrR0(t){lete=t?.algorithms||[...sY],r=kE(t?.options),s=e.map(PE.createHash);return{update:o(function(n,i){returns.forEach(a=>a.update(n,i)),this},"update"),digest:o(function(){returne.reduce((i,a)=>{letc=s.shift().digest("base64"),u=newdp(`${a}-${c}${r}`,t);returni[u.algorithm]||(i[u.algorithm]=[]),i[u.algorithm].push(u),i},newQ2)},"digest")}}o(rR0,"createIntegrity");functionsR0(t,e){returnxDe.indexOf(t.toLowerCase())>=xDe.indexOf(e.toLowerCase())?t:e}o(sR0,"getPrioritizedHash")});varoY=b((b_t,kDe)=>{varWDe=V$(),LDe=Z$(),nR0=UE(),QDe={shared:!1,ignoreCargoCult:!0},iR0={status:200,headers:{}},VM=o(t=>{lete={method:t.method,url:t.url,headers:{},compress:t.compress};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},"requestObject"),PDe=o(t=>{lete={status:t.status,headers:{}};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},"responseObject"),iY=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:s,options:n}){this.entry=e,this.request=VM(r),this.response=PDe(s),this.options=n,this.policy=newWDe(this.request,this.response,QDe),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:newWDe(VM(e),iR0,QDe).storable()}satisfies(e){letr=VM(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;lets=newLDe(this.request),n=newLDe(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?nR0.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){returnthis.policy.storable()}getmustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){letr=VM(e);returnr.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){returnthis.policy.responseHeaders()}revalidationHeaders(e){letr=VM(e);returnthis.policy.revalidationHeaders(r)}revalidated(e,r){lets=VM(e),n=PDe(r);return!this.policy.revalidatedPolicy(s,n).modified}};kDe.exports=iY});varGDe=b((m_t,UDe)=>{varaY=classextendsError{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};UDe.exports={NotCachedError:aY}});vareqe=b((z_t,ZDe)=>{"use strict";varHDe=typeofprocess=="object"&&process?process:{stdout:null,stderr:null},oR0=require("events"),XDe=require("stream"),VDe=require("string_decoder").StringDecoder,fp=Symbol("EOF"),hp=Symbol("maybeEmitEnd"),AA=Symbol("emittedEnd"),qN=Symbol("emittingEnd"),GE=Symbol("emittedError"),IN=Symbol("closed"),jDe=Symbol("read"),RN=Symbol("flush"),$De=Symbol("flushChunk"),Zs=Symbol("encoding"),bp=Symbol("decoder"),wN=Symbol("flowing"),HE=Symbol("paused"),jM=Symbol("resume"),V1=Symbol("bufferLength"),cY=Symbol("bufferPush"),uY=Symbol("bufferShift"),Nr=Symbol("objectMode"),Fr=Symbol("destroyed"),pY=Symbol("emitData"),YDe=Symbol("emitEnd"),lY=Symbol("emitEnd2"),Mp=Symbol("async"),XE=o(t=>Promise.resolve().then(t),"defer"),JDe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",aR0=JDe&&Symbol.asyncIter
`),m=h.shift();if(!m)return t.destroy(),r(new Error("NoheaderreceivedfromproxyCONNECTresponse"));let z=m.split(""),C=+z[1],E=z.slice(2).join(""),B={};for(let I of h){if(!I)continue;let w=I.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,w).toLowerCase(),T=I.slice(w+1).trimStart(),Q=B[N];typeof Q=="string"?B[N]=[Q,T]:Array.isArray(Q)?Q.push(T):B[N]=T}aF("gotproxyserverresponse:%o%o",m,B),a(),e({connect:{statusCode:C,statusText:E,headers:B},buffered:A})}o(p,"ondata"),t.on("error",u),t.on("end",c),i()})}o(RT0,"parseProxyResponse");Cm.parseProxyResponse=RT0});var TSe=b(Zi=>{"usestrict";var wT0=Zi&&Zi.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),ST0=Zi&&Zi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vSe=Zi&&Zi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&wT0(e,t,r);return ST0(e,t),e},xSe=Zi&&Zi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.HttpsProxyAgent=void 0;var Hy=vSe(require("net")),NSe=vSe(require("tls")),NT0=xSe(require("assert")),FT0=xSe(Wd()),vT0=SO(),xT0=require("url"),TT0=SSe(),Xy=(0,FT0.default)("https-proxy-agent"),cF=class extends vT0.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new xT0.URL(e):e,this.proxyHeaders=r?.headers??{},Xy("CreatingnewHttpsProxyAgentinstance:%o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?FSe(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(s.protocol==="https:"){Xy("Creating`tls.Socket`:%o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;n=NSe.connect({...this.connectOpts,servername:d&&Hy.isIP(d)?void 0:d})}else Xy("Creating`net.Socket`:%o",this.connectOpts),n=Hy.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Hy.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}: ${i[d]}\r
`);let{connect:p,buffered:l}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200){if(e.once("socket",_T0),r.secureEndpoint){Xy("UpgradingsocketconnectiontoTLS");let d=r.servername||r.host;return NSe.connect({...FSe(r,"host","path","port"),socket:n,servername:Hy.isIP(d)?void 0:d})}return n}n.destroy();let A=new Hy.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{Xy("Replayingproxybufferforfailedrequest"),(0,NT0.default)(d.listenerCount("data")>0),d.push(l),d.push(null)}),A}};cF.protocols=["http","https"];Zi.HttpsProxyAgent=cF;function _T0(t){t.resume()}o(_T0,"resume");function FSe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(FSe,"omit")});var QSe=b(xp=>{"usestrict";Object.defineProperty(xp,"__esModule",{value:!0});var _Se=require("buffer"),of={INVALID_ENCODING:"Invalidencodingprovided.PleasespecifyavalidencodingtheinternalNode.jsBuffersupports.",INVALID_SMARTBUFFER_SIZE:"Invalidsizeprovided.Sizemustbeavalidintegergreaterthanzero.",INVALID_SMARTBUFFER_BUFFER:"InvalidBufferprovidedinSmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"InvalidSmartBufferOptionsobjectsuppliedtoSmartBufferconstructororfactorymethods.",INVALID_OFFSET:"Aninvalidoffsetvaluewasprovided.",INVALID_OFFSET_NON_NUMBER:"Aninvalidoffsetvaluewasprovided.Anumericvalueisrequired.",INVALID_LENGTH:"Aninvalidlengthvaluewasprovided.",INVALID_LENGTH_NON_NUMBER:"Aninvalidlengthvaluewasprovived.Anumericvalueisrequired.",INVALID_TARGET_OFFSET:"TargetoffsetisbeyondtheboundsoftheinternalSmartBufferdata.",INVALID_TARGET_LENGTH:"SpecifiedlengthvaluemovescursorbeyongtheboundsoftheinternalSmartBufferdata.",INVALID_READ_BEYOND_BOUNDS:"Attemptedtoreadbeyondtheboundsofthemanageddata.",INVALID_WRITE_BEYOND_BOUNDS:"Attemptedtowritebeyondtheboundsofthemanageddata."};xp.ERRORS=of;function WT0(t){if(!_Se.Buffer.isEncoding(t))throw new Error(of.INVALID_ENCODING)}o(WT0,"checkEncoding");xp.checkEncoding=WT0;function WSe(t){return typeof t=="number"&&isFinite(t)&&kT0(t)}o(WSe,"isFiniteInteger");xp.isFiniteInteger=WSe;function LSe(t,e){if(typeof t=="number"){if(!WSe(t)||t<0)throw new Error(e?of.INVALID_OFFSET:of.INVALID_LENGTH)}else throw new Error(e?of.INVALID_OFFSET_NON_NUMBER:of.INVALID_LENGTH_NON_NUMBER)}o(LSe,"checkOffsetOrLengthValue");function LT0(t){LSe(t,!1)}o(LT0,"checkLengthValue");xp.checkLengthValue=LT0;function QT0(t){LSe(t,!0)}o(QT0,"checkOffsetValue");xp.checkOffsetValue=QT0;function PT0(t,e){if(t<0||t>e.length)throw new Error(of.INVALID_TARGET_OFFSET)}o(PT0,"checkTargetOffset");xp.checkTargetOffset=PT0;function kT0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(kT0,"isInteger");function UT0(t){if(typeof BigInt>"u")throw new Error("PlatformdoesnotsupportJSBigInttype.");if(typeof _Se.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}o(UT0,"bigIntAndBufferInt64Check");xp.bigIntAndBufferInt64Check=UT0});var kSe=b(NK=>{"usestrict";Object.defineProperty(NK,"__esModule",{value:!0});var s0=QSe(),PSe=4096,GT0="utf8",SK=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=GT0,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(PSe);else{if(typeof e<"u")throw new Error(s0.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(PSe)}}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)}read
`,X90=/\u2014 (\S+) (\S+)\n/g;function V90(t,e){let r=t.inclusionProof,s=q0e.fromString(r.checkpoint.envelope),n=Vv.fromString(s.note);if(!j90(s,e))throw new EC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}o(V90,"verifyCheckpoint");function j90(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let n=e.find(i=>Gve.crypto.bufferEqual(i.logID.subarray(0,4),s.keyHint)&&i.baseURL.match(s.name));return n?Gve.crypto.verify(r,n.publicKey,s.signature):!1})}o(j90,"verifySignedNote");var q0e=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(D0e))throw new EC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(D0e),s=e.slice(0,r+1),i=e.slice(r+D0e.length).matchAll(X90),a=Array.from(i,c=>{let[,u,p]=c,l=Buffer.from(p,"base64");if(l.length<5)throw new EC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(a.length===0)throw new EC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,a)}},Vv=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,s,n){this.origin=e,this.logSize=r,this.logHash=s,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new EC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],n=BigInt(r[1]),i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(s,n,i,a)}};yC.LogCheckpoint=Vv});var Xve=b(S0e=>{"use strict";Object.defineProperty(S0e,"__esModule",{value:!0});S0e.verifyMerkleInclusion=J90;var w0e=Yn(),I0e=Qr(),$90=Buffer.from([0]),Y90=Buffer.from([1]);function J90(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),n=BigInt(e.logSize);if(s<0n||s>=n)throw new I0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:i,border:a}=K90(s,n);if(r.hashes.length!==i+a)throw new I0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),u=r.hashes.slice(i),p=nU0(t.canonicalizedBody),l=eU0(Z90(p,c,s),u);if(!w0e.crypto.bufferEqual(l,e.logHash))throw new I0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(J90,"verifyMerkleInclusion");function K90(t,e){let r=tU0(t,e),s=rU0(t>>BigInt(r));return{inner:r,border:s}}o(K90,"decompInclProof");function Z90(t,e,r){return e.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?R0e(n,s):R0e(s,n),t)}o(Z90,"chainInner");function eU0(t,e){return e.reduce((r,s)=>R0e(s,r),t)}o(eU0,"chainBorderRight");function tU0(t,e){return sU0(t^e-BigInt(1))}o(tU0,"innerProofSize");function rU0(t){return t.toString(2).split("1").length-1}o(rU0,"onesCount");function sU0(t){return t===0n?0:t.toString(2).length}o(sU0,"bitLength");function R0e(t,e){return w0e.crypto.digest("sha256",Y90,t,e)}o(R0e,"hashChildren");function nU0(t){return w0e.crypto.digest("sha256",$90,t)}o(nU0,"hashLeaf")});var jve=b(N0e=>{"use strict";Object.defineProperty(N0e,"__esModule",{value:!0});N0e.verifyTLogSET=aU0;var Vve=Yn(),iU0=Qr(),oU0=ig();function aU0(t,e){if(!(0,oU0.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let i=cU0(t),a=Buffer.from(Vve.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Vve.crypto.verify(a,n.publicKey,c)}))throw new iU0.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(aU0,"verifyTLogSET");function cU0(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}o(cU0,"toVerificationPayload")});var Yve=b(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});jv.verifyTLogBody=dU0;jv.verifyTLogInclusion=fU0;var $ve=DZ(),x0e=Qr(),F0e=Pve(),v0e=kve(),uU0=Uve(),pU0=Hve(),lU0=Xve(),AU0=jve();function dU0(t,e){let{kind:r,version:s}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||s!==n.apiVersion)throw new x0e.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(s==F0e.DSSE_API_VERSION_V1)return(0,F0e.verifyDSSETLogBody)(n,e);{let i=$ve.Entry.fromJSON(n);return(0,F0e.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,uU0.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==v0e.HASHEDREKORD_API_VERSION_V1)return(0,v0e.verifyHashedRekordTLogBody)(n,e);{let i=$ve.Entry.fromJSON(n);return(0,v0e.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new x0e.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(dU0,"verifyTLogBody");function fU0(t,e){let r=!1;if(hU0(t)&&((0,AU0.verifyTLogSET)(t,e),r=!0),bU0(t)){let s=(0,pU0.verifyCheckpoint)(t,e);(0,lU0.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new x0e.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(fU0,"verifyTLogInclusion");function hU0(t){return t.inclusionPromise!==void 0}o(hU0,"isTLogEntryWithInclusionPromise");function bU0(t){return t.inclusionProof!==void 0}o(bU0,"isTLogEntryWithInclusionProof")});var txe=b($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0});$v.Verifier=v
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,Zet.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(c4,"_createForOfIteratorHelper");function a0t(t,e){var r;if(t){if(typeof t=="string")return f9e(t,e);var s=(0,po.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,s0t.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return f9e(t,e)}}o(a0t,"_unsupportedIterableToArray");function f9e(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}o(f9e,"_arrayLikeToArray");var At="xregexp",Tf={astral:!1,namespacing:!1},Gt={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},Jc={},o4={},qg={},G1e=[],Ig="default",h9e="class",c0t={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]/},u0t=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,p0t=Gt.exec.call(/()??/,"")[1]===void 0,l0t=(0,xf.default)(/x/)!==void 0,A0t={},z9e=A0t.toString;function X1e(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}o(X1e,"hasNativeFlag");var O9e=X1e("u"),V1e=X1e("y"),E9e={g:!0,i:!0,m:!0,u:O9e,y:V1e};function y9e(t,e,r,s,n){var i;if(t[At]={captureNames:e},n)return t;if(t.__proto__)t.__proto__=pe.prototype;else for(var a in pe.prototype)t[a]=pe.prototype[a];return t[At].source=r,t[At].flags=s&&(0,o0t.default)(i=s.split("")).call(i).join(""),t}o(y9e,"augment");function a4(t){return Gt.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}o(a4,"clipDuplicates");function Wf(t,e){var r;if(!pe.isRegExp(t))throw new TypeError("Type RegExp expected");var s=t[At]||{},n=d0t(t),i="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(n=Gt.replace.call(n,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(n=a4(n+i)),e.isInternalOnly||(s.source!==void 0&&(c=s.source),(0,xf.default)(s)!=null&&(u=i?a4((0,xf.default)(s)+i):(0,xf.default)(s))),t=y9e(new RegExp(e.source||t.source,n),f0t(t)?(0,po.default)(r=s.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}o(Wf,"copyRegex");function C9e(t){return(0,g9e.default)(t,16)}o(C9e,"dec");function B9e(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||Gt.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||h0t(t.input,t.index+t[0].length,r)?"":"(?:)"}o(B9e,"getContextualTokenSeparator");function d0t(t){return l0t?(0,xf.default)(t):Gt.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}o(d0t,"getNativeFlags");function f0t(t){return!!(t[At]&&t[At].captureNames)}o(f0t,"hasNamedCapture");function D9e(t){return(0,g9e.default)(t,10).toString(16)}o(D9e,"hex");function h0t(t,e,r){var s="\\(\\?#[^)]*\\)",n="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return Gt.test.call((0,_f.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,po.default)(t).call(t,e))}o(h0t,"isQuantifierNext");function j1e(t,e){return z9e.call(t)==="[object ".concat(e,"]")}o(j1e,"isType");function q9e(t){for(;t.length<4;)t="0".concat(t);return t}o(q9e,"pad4");function b0t(t,e){if(a4(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=Gt.replace.call(t,/^\(\?([\w$]+)\)/,function(i,a){if(Gt.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=a4(e
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,K0t.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(ott,"_createForOfIteratorHelper");function att(t,e){var r;if(t){if(typeof t=="string")return fUe(t,e);var s=(0,stt.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,rtt.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return fUe(t,e)}}o(att,"_unsupportedIterableToArray");function fUe(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}o(fUe,"_arrayLikeToArray");var ctt=o(function(e){var r={},s=e._dec,n=e._hex,i=e._pad4;function a(d){return d.replace(/[- _]+/g,"").toLowerCase()}o(a,"normalize");function c(d){var h=/^\\[xu](.+)/.exec(d);return h?s(h[1]):d.charCodeAt(d[0]==="\\"?1:0)}o(c,"charCode");function u(d){var h="",m=-1;return(0,itt.default)(e).call(e,d,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(z){var C=c(z[1]);C>m+1&&(h+="\\u".concat(i(n(m+1))),C>m+2&&(h+="-\\u".concat(i(n(C-1))))),m=c(z[2]||z[1])}),m<65535&&(h+="\\u".concat(i(n(m+1))),m<65534&&(h+="-\\uFFFF")),h}o(u,"invertBmp");function p(d){var h="b!";return r[d][h]||(r[d][h]=u(r[d].bmp))}o(p,"cacheInvertedBmp");function l(d,h){var m=r[d],z="";if(m.bmp&&!m.isBmpLast){var C;z=(0,K1e.default)(C="[".concat(m.bmp,"]")).call(C,m.astral?"|":"")}if(m.astral&&(z+=m.astral),m.isBmpLast&&m.bmp){var E;z+=(0,K1e.default)(E="".concat(m.astral?"|":"","[")).call(E,m.bmp,"]")}return h?"(?:(?!".concat(z,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(z,")")}o(l,"buildAstral");function A(d,h){var m=h?"a!":"a=";return r[d][m]||(r[d][m]=l(d,h))}o(A,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(d,h,m){var z="Invalid double negation ",C="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",I="Astral mode does not support Unicode tokens within character classes",w=d[1]==="P"||!!d[2],N=(0,ntt.default)(m).call(m,"A"),T=a(d[4]||d[3]),Q=r[T];if(d[1]==="P"&&d[2])throw new SyntaxError(z+d[0]);if(!r.hasOwnProperty(T))throw new SyntaxError(C+d[0]);if(Q.inverseOf){if(T=a(Q.inverseOf),!r.hasOwnProperty(T)){var $;throw new ReferenceError((0,K1e.default)($="".concat(E+d[0]," -> ")).call($,Q.inverseOf))}Q=r[T],w=!w}if(!(Q.bmp||N))throw new SyntaxError(B+d[0]);if(N){if(h==="class")throw new SyntaxError(I);return A(T,w)}return h==="class"?w?p(T):Q.bmp:"".concat((w?"[^":"[")+Q.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(d){var h="Unicode token requires name",m="Unicode token has no character data ",z=ott(d),C;try{for(z.s();!(C=z.n()).done;){var E=C.value;if(!E.name)throw new Error(h);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(m+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){z.e(B)}finally{z.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(d){var h=a(d);return r[h]}},"_default");f4.default=ctt;hUe.exports=f4.default});var mUe=b((rZt,MUe)=>{MUe.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",
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new dO(i));return s.searchPaths.push(...bQ(s.patterns)),s})}static stat(e,r,s){return EQ(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield pb.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Ei(`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 pb.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield pb.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){Ei(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Pc0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})};function T2e(t,e){return Pc0(this,void 0,void 0,function*(){return yield Mq.create(t,e)})}o(T2e,"create");var Fq=_(require("crypto"),1),fb=_(require("fs"),1),Sd=_(require("path"),1),Ihe=_(Sn(),1),Rhe=_(require("util"),1);var zO;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(zO||(zO={}));var Zr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Zr||(Zr={}));var Nn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Nn||(Nn={}));var Sq=2,Nq=5e3,UQ=5e3,GQ=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,qhe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,OO="cache.tar",HQ="manifest.txt",flt=10*Math.pow(1024,3);var db=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},jl0=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(a){return new Promise(function(c,u){a=t[i](a),n(c,u,a.done,a.value)})}}function n(i,a,c,u){Promise.resolve(u).then(function(p){i({value:p,done:c})},a)}},$l0="1.0";function EO(){return db(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=Sd.join(s,"actions","temp")}let r=Sd.join(e,Fq.randomUUID());return yield Ou(r),r})}o(EO,"createTempDirectory");function Ba(t){return fb.statSync(t).size}o(Ba,"getArchiveFileSizeInBytes");function XQ(t){return db(this,void 0,void 0,function*(){var e,r,s,n,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),u=yield T2e(t.join(`
`),{implicitDescendants:!1});try{for(var p=!0,l=jl0(u.globGenerator()),A;A=yield l.next(),e=A.done,!e;p=!0){n=A.value,p=!1;let h=Sd.relative(c,n).replace(new RegExp(`\\${Sd.sep}`,"g"),"/");x(`Matched: ${h}`),h===""?a.push("."):a.push(`${h}`)}}catch(d){r={error:d}}finally{try{!p&&!e&&(s=l.return)&&(yield s.call(l))}finally{if(r)throw r.error}}return a})}o(XQ,"resolvePaths");function yO(t){return db(this,void 0,void 0,function*(){return Rhe.promisify(fb.unlink)(t)})}o(yO,"unlinkFile");function whe(t){return db(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),x(`Checking ${e} ${r.join(" ")}`);try{yield In(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){x(n.message)}return s=s.trim(),x(s),s})}o(whe,"getVersion");function CO(){return db(this,void 0,void 0,function*(){let t=yield whe("zstd",["--quiet"]),e=Ihe.clean(t);return x(`zstd version: ${e}`),t===""?Zr.Gzip:Zr.ZstdWithoutLong})}o(CO,"getCompressionMethod");function wl(t){return t===Zr.Gzip?zO.Gzip:zO.Zstd}o(wl,"getCacheFileName");function She(){return db(this,void 0,void 0,function*(){return fb.existsSync(GQ)?GQ:(yield whe("tar")).toLowerCase().includes("gnu tar")?cr("tar"):""})}o(She,"getGnuTarPathOnWindows");function VQ(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(VQ,"assertDefined");function hb(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")}o(hb,"getCacheVersion");function Nhe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(Nhe,"getRuntimeToken");var DO=_(require("http"),1),YQ=_(require("https"),1);function jQ(t){let e=t.protocol==="https:";if(Yl0(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new xq(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new xq(`http://${r}`)}else return}o(jQ,"getProxyUrl");function Yl0(t){if(!t.hostname)return!1;let e=t.hostname;if(Jl0(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(Yl0,"checkBypass");function Jl0(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Jl0,"isLoopbackAddress");var xq=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Sl=_(Hg(),1),Fhe=_(eb(),1);var Yt=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},wt;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllo
${AA0.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Pq(t){return t instanceof ts?!0:Fd(t)&&t.name==="RestError"}o(Pq,"isRestError");function _s(t,e){return Buffer.from(t,e)}o(_s,"stringToUint8Array");var kq=_(require("node:http"),1),Uq=_(require("node:https"),1),oP=_(require("node:zlib"),1),Jhe=require("node:stream");var Bi=qO("ts-http-runtime");var dA0={};function IO(t){return t&&typeof t.pipe=="function"}o(IO,"isReadableStream");function Yhe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(Yhe,"isStreamComplete");function Khe(t){return t&&typeof t.byteLength=="number"}o(Khe,"isArrayBuffer");var Gq=class extends Jhe.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},aP=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new qa("The operation was aborted. Request has already been canceled.");s=o(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let p=new So;Bi.info(`request to '${p.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=MA0(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,z=new Gq(m);z.on("error",C=>{Bi.error("Error in upload progress",C)}),IO(c)?c.pipe(z):z.end(c),c=z}let p=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let l=fA0(p),d={status:p.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return p.resume(),d;u=a?hA0(p,l):p;let h=e.onDownloadProgress;if(h){let m=new Gq(h);m.on("error",z=>{Bi.error("Error in download progress",z)}),u.pipe(m),u=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=u:d.bodyAsText=await bA0(u),d}finally{if(e.abortSignal&&s){let p=Promise.resolve();IO(c)&&(p=Yhe(c));let l=Promise.resolve();IO(u)&&(l=Yhe(u)),Promise.all([p,l]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{Bi.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let l=i?kq.default.request(c,u):Uq.default.request(c,u);l.once("error",A=>{p(new ts(A.message,{code:A.code??ts.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new qa("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(A),p(A)}),s&&IO(s)?s.pipe(l):s?typeof s=="string"||Buffer.isBuffer(s)?l.end(s):Khe(s)?l.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Bi.error("Unrecognized body type",s),p(new ts("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?kq.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new kq.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Uq.default.globalAgent;let n=e.tlsSettings??dA0,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Bi.info("No cached TLS Agent exi
`;return e}o(jd0,"encodeHeaders");function $d0(t){return t instanceof Uint8Array?t.byteLength:dI(t)?t.size===-1?void 0:t.size:void 0}o($d0,"getLength");function Yd0(t){let e=0;for(let r of t){let s=$d0(r);if(s===void 0)return;e+=s}return e}o(Yd0,"getTotalLength");async function Jd0(t,e,r){let s=[_s(`--${r}`,"utf-8"),...e.flatMap(i=>[_s(`\r
`,"utf-8")],n=Yd0(s);n&&t.headers.set("Content-Length",n),t.body=await eMe(s)}o(Jd0,"buildRequestBody");var NO="multipartPolicy",Kd0=70,Zd0=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function e20(t){if(t.length>Kd0)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Zd0.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(e20,"assertValidBoundary");function hI(){return{name:NO,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,a]=n;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?e20(r):r=Vd0(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Jd0(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(hI,"multipartPolicy");function bI(){return Qq()}o(bI,"createEmptyPipeline");var tMe=_q({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Aht=tMe.logger;function wa(t){return tMe.createClientLogger(t)}o(wa,"createClientLogger");var Sa=wa("core-rest-pipeline");function qP(t={}){return Xq({logger:Sa.info,...t})}o(qP,"logPolicy");var IP=Vq;function RP(t={}){return jq(t)}o(RP,"redirectPolicy");var MI=_(require("node:os"),1),mI=_(require("node:process"),1);function rMe(){return"User-Agent"}o(rMe,"getHeaderName");async function sMe(t){if(mI.default&&mI.default.versions){let e=`${MI.default.type()} ${MI.default.release()}; ${MI.default.arch()}`,r=mI.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(sMe,"setPlatformSpecificData");var gI="1.22.2";function c20(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(c20,"getUserAgentString");function nMe(){return rMe()}o(nMe,"getUserAgentHeaderName");async function zI(t){let e=new Map;e.set("core-rest-pipeline",gI),await sMe(e);let r=c20(e);return t?`${t} ${r}`:r}o(zI,"getUserAgentValue");var iMe=nMe(),oMe="userAgentPolicy";function wP(t={}){let e=zI(t.userAgentPrefix);return{name:oMe,async sendRequest(r,s){return r.headers.has(iMe)||r.headers.set(iMe,await e),s(r)}}}o(wP,"userAgentPolicy");var _n=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function SP(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new _n(n??"The operation was aborted."))}o(c,"rejectOnAbort");function u(){s?.removeEventListener("abort",p)}o(u,"removeListeners");function p(){r?.(),u(),c()}if(o(p,"onAbort"),s?.aborted)return c();try{t(l=>{u(),i(l)},l=>{u(),a(l)})}catch(l){a(l)}s?.addEventListener("abort",p)})}o(SP,"createAbortablePromise");var d20="The delay was aborted.";function FO(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return SP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??d20})}o(FO,"delay");function Fl(t){if(Fd(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Fl,"getErrorMessage");function aMe(t){return Fd(t)}o(aMe,"isError");function Cb(){return Nd()}o(Cb,"randomUUID");var S0=Td;var cMe=Symbol("rawContent");function FP(t){return typeof t[cMe]=="function"}o(FP,"hasRawContent");function uMe(t){return FP(t)?t[cMe]():t}o(uMe,"getRawContent");var OI=NO;function vP(){let t=hI();return{name:OI,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)FP(s.body)&&(s.body=uMe(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(vP,"multipartPolicy");var xP=$q;function TP(){return Yq()}o(TP,"decompressResponsePolicy");fun
`&&t[i]!=="\r";i++)u+=t[i];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),i--),!_f0(u)){let A;return u.trim().length===0?A="Invalid space after '<'.":A="Tag '"+u+"' is an invalid name.",Jt("InvalidTag",A,rs(t,i))}let p=Nf0(t,i);if(p===!1)return Jt("InvalidAttr","Attributes for '"+u+"' have open quote.",rs(t,i));let l=p.value;if(i=p.index,l[l.length-1]==="/"){let A=i-l.length;l=l.substring(0,l.length-1);let d=jMe(l,e);if(d===!0)s=!0;else return Jt(d.err.code,d.err.msg,rs(t,A+d.err.line))}else if(c)if(p.tagClosed){if(l.trim().length>0)return Jt("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",rs(t,a));if(r.length===0)return Jt("InvalidTag","Closing tag '"+u+"' has not been opened.",rs(t,a));{let A=r.pop();if(u!==A.tagName){let d=rs(t,A.tagStartPos);return Jt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+u+"'.",rs(t,a))}r.length==0&&(n=!0)}}else return Jt("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",rs(t,i));else{let A=jMe(l,e);if(A!==!0)return Jt(A.err.code,A.err.msg,rs(t,i-l.length+A.err.line));if(n===!0)return Jt("InvalidXml","Multiple possible root nodes found.",rs(t,i));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=VMe(t,i);continue}else if(t[i+1]==="?"){if(i=XMe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=xf0(t,i);if(A==-1)return Jt("InvalidChar","char '&' is not expected.",rs(t,i));i=A}else if(n===!0&&!HMe(t[i]))return Jt("InvalidXml","Extra text at the end",rs(t,i));t[i]==="<"&&i--}}else{if(HMe(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}o(vI,"validate");function HMe(t){return t===" "||t===" "||t===`
`||t==="\r"}o(HMe,"isWhiteSpace");function XMe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Jt("InvalidXml","XML declaration allowed only at the start of the document.",rs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(XMe,"readPI");function VMe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(VMe,"readCommentAndCDATA");var wf0='"',Sf0="'";function Nf0(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===wf0||t[e]===Sf0)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}o(Nf0,"readAttributeStr");var Ff0=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function jMe(t,e){let r=NI(t,Ff0),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Jt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",HO(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Jt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",HO(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Jt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",HO(r[n]));let i=r[n][2];if(!Tf0(i))return Jt("InvalidAttr","Attribute '"+i+"' is an invalid name.",HO(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Jt("InvalidAttr","Attribute '"+i+"' is repeated.",HO(r[n]))}return!0}o(jMe,"validateAttributeString");function vf0(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(vf0,"validateNumberAmpersand");function xf0(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vf0(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(xf0,"validateAmpersand");function Jt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Jt,"getErrorObject");function Tf0(t){return ak(t)}o(Tf0,"validateAttrName");function _f0(t){return ak(t)}o(_f0,"validateTagName");function rs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(rs,"getLineNumberForPosition");function HO(t){return t.startIndex+t[1].length}o(HO,"getPositionFromMatch");var $Me={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},YMe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntil
`);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 jO(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let l=wb(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,l).trim();if(n.removeNSPrefix){let h=A.indexOf(":");h!==-1&&(A=A.substr(h+1))}A=hk(n.transformTagName,A,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(A&&n.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=l}else if(p===63){let l=bk(t,c,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.buildAttributesMap(l.tagExp,this.matcher,l.tagName,!0);if(A){let d=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&l.tagName==="?xml"||n.ignorePiTags)){let d=new Ps(l.tagName);d.add(n.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=A),this.addChild(r,d,this.readonlyMatcher,c)}c=l.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let l=wb(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let A=t.substring(c+4,l-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:A}])}c=l}else if(p===33&&t.charCodeAt(c+2)===68){let l=i.readDocType(t,c);this.entityDecoder.addInputEntities(l.entities),c=l.i}else if(p===33&&t.charCodeAt(c+2)===91){let l=wb(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,l);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:A}]):r.add(n.textNodeName,d),c=l+2}else{let l=bk(t,c,n.removeNSPrefix);if(!l){let T=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${T}"`)}let A=l.tagName,d=l.rawTagName,h=l.tagExp,m=l.attrExpPresent,z=l.closeIndex;if({tagName:A,tagExp:h}=hk(n.transformTagName,A,h,n),n.strictReservedNames&&(A===n.commentPropName||A===n.cdataPropName||A===n.textNodeName||A===n.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&n.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),h=A):h=h.substr(0,h.length-1),m=A!==h);let B=null,I={},w;w=oh0(d),A!==e.tagname&&this.matcher.push(A,{},w),A!==h&&m&&(B=this.buildAttributesMap(h,this.matcher,A),B&&(I=ih0(B,n))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let T="";if(E)c=l.closeIndex;else if(n.unpairedTagsSet.has(A))c=l.closeIndex;else{let $=this.readStopNodeData(t,d,z+1);if(!$)throw new Error(`Unexpected end of ${d}`);c=$.i,T=$.tagContent}let Q=new Ps(A);B&&(Q[":@"]=B),Q.add(n.textNodeName,T),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:h}=hk(n.transformTagName,A,h,n));let T=new Ps(A);B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(A)){let T=new Ps(A);B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=l.closeIndex;continue}else{let T=new Ps(A);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),r=T}s="",c=z}}}else s+=t[c];return e.child},"parseXml"
`}),s}getCanonicalizedResourceString(e){let r=VI(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=jI(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let u=c.toLowerCase();i[u]=n[c],a.push(u)}a.sort();for(let c of a)s+=`
${c}:${decodeURIComponent(i[c])}`}return s}};var St=class extends Hd{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new ZO(e,r,this)}computeHMACSHA256(e){return(0,qme.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var O1=wa("storage-common");var Ri;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ri||(Ri={}));var Ll={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ri.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Lh0=new _n("The operation was aborted."),e3=class extends xa{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Ll){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Ll.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Ll.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Ll.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Ll.maxRetryDelayInMs):Ll.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Ll.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Ll.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=XI(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Wl(n.url,Su.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(O1.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(O1.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return O1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return O1.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return O1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return O1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(Ue.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(O1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Ri.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ri.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return O1.info(`RetryPolicy: Delay for ${n}ms`),$I(n,s,Lh0)}};var t3=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new e3(e,r,this.retryOptions)}};var Qh0="storageBrowserPolicy";function Ime(){return{name:Qh0,async sendRequest(t,e){return S0||((t.method==="GET"||t.method==="HEAD")&&(t.url=Wl(t.url,Su.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ue.COOKIE),t.headers.delete(Ue.CONTENT_LENGTH)),e(t)}}}o(Ime,"storageBrowserPolicy");var Ph0="StorageCorrectContentLengthPolicy";function Rme(){function t(e){e.body&&(
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=VI(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=jI(i.url),p={};if(u){let l=[];for(let A in u)if(Object.prototype.hasOwnProperty.call(u,A)){let d=A.toLowerCase();p[d]=u[A],l.push(d)}l.sort();for(let A of l)c+=`
${A}:${decodeURIComponent(p[A])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:Hh0,async sendRequest(i,a){return e(i),a(i)}}}o(Rk,"storageSharedKeyCredentialPolicy");var Xh0="storageRequestFailureDetailsParserPolicy";function Nme(){return{name:Xh0,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 _o(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}o($M0,"generateBlobSASQueryParameters20150405");function YM0(t,e){if(t=e2(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=Ka.parse(t.permissions.toString()).toString():n=Za.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?N0(t.startsOn,!1):"",t.expiresOn?N0(t.expiresOn,!1):"",Zd(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?To(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(YM0,"generateBlobSASQueryParameters20181109");function JM0(t,e){if(t=e2(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=Ka.parse(t.permissions.toString()).toString():n=Za.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?N0(t.startsOn,!1):"",t.expiresOn?N0(t.expiresOn,!1):"",Zd(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?To(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(JM0,"generateBlobSASQueryParameters20201206");function KM0(t,e){if(t=e2(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=Ka.parse(t.permissions.toString()).toString():n=Za.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?N0(t.startsOn,!1):"",t.expiresOn?N0(t.expiresOn,!1):"",Zd(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?N0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?N0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?To(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(KM0,"generateBlobSASQueryParametersUDK20181109");function ZM0(t,e){if(t=e2(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=Ka.parse(t.permissions.toString()).toString():n=Za.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?N0(t.startsOn,!1):"",t.expiresOn?N0(t.expiresOn,!1):"",Zd(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?N0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?N0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?To(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(ZM0,"generateBlobSASQueryParametersUDK20200210");function em0(t,e){if(t=e2(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=Ka.parse(t.permissions.toString()).toString():n=Za.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?N0(t.startsOn,!1):"",t.expiresOn?N0(t.expiresOn,!1):"",Zd(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?N0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?N0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?To(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(em0,"generateBlobSASQueryParametersUDK20201206");function tm0(t,e){if(t=e2(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=Ka.parse(t.permissions.toString()).toString():n=Za.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?N0(t.startsOn,!1):"",t.expiresOn?N0(t.expiresOn,!1):"",Zd(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?N0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?N0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?To(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(tm0,"generateBlobSASQueryParametersUDK20250705");function Zd(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(Zd,"getCanonicalName");function e2(t){let e=t.version?t.version:ZI;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(e2,"SASSignatureValuesSanityCheckAndAutofill");var f3=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Cb()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==No||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==No||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 ye.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!==No||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==No||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 ye.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?.i
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"}};Gb.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var n2=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};n2.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var C3=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var lg0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},OG=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);W(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Gze(t,e,r){return lg0(this,void 0,void 0,function*(){var s;let n=new Qu(t),i=n.getBlockBlobClient(),a=new OG((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),x(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let u=yield i.uploadFile(e,c);if(u._response.status>=400)throw new n5(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw y0(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}o(Gze,"uploadCacheArchiveSDK");var Xze=_(require("buffer"),1),ec=_(require("fs"),1),Vze=_(require("stream"),1),jze=_(require("util"),1);var i5=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})};function o5(t){return t?t>=200&&t<300:!1}o(o5,"isSuccessStatusCode");function Ag0(t){return t?t>=500:!0}o(Ag0,"isServerErrorStatusCode");function dg0(t){return t?[wt.BadGateway,wt.ServiceUnavailable,wt.GatewayTimeout].includes(t):!1}o(dg0,"isRetryableStatusCode");function fg0(t){return i5(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(fg0,"sleep");function Hze(t,e,r){return i5(this,arguments,void 0,function*(s,n,i,a=Sq,c=Nq,u=void 0){let p="",l=1;for(;l<=a;){let A,d,h=!1;try{A=yield n()}catch(m){u&&(A=u(m)),h=!0,p=m.message}if(A&&(d=i(A),!Ag0(d)))return A;if(d&&(h=dg0(d),p=`Cache service responded with ${d}`),x(`${s} - Attempt ${l} of ${a} failed with error: ${p}`),!h){x(`${s} - Error is not retryable`);break}yield fg0(c),l++}throw Error(`${s} failed: ${p}`)})}o(Hze,"retry");function B3(t,e){return i5(this,arguments,void 0,function*(r,s,n=Sq,i=Nq){return yield Hze(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Da)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(B3,"retryTypedResponse");function Hb(t,e){return i5(this,arguments,void 0,function*(r,s,n=Sq,i=Nq){return yield Hze(r,s,a=>a.message.statusCode,n,i)})}o(Hb,"retryHttpClientResponse");var vi=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a
Other caches with similar key:`);for(let c of i?.artifactCaches||[])x(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(Eg0,"printCachesListForDiagnostics");function BG(t,e,r){return Hs(this,void 0,void 0,function*(){let s=new nOe.URL(t),n=Kze(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Yze(t,e,n):n.concurrentBlobDownloads?yield $ze(t,e,n):yield c5(t,e):yield c5(t,e)})}o(BG,"downloadCache");function oOe(t,e,r){return Hs(this,void 0,void 0,function*(){let s=CG(),n=hb(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield B3("reserveCache",()=>Hs(this,void 0,void 0,function*(){return s.postJson(q3("caches"),i)}))})}o(oOe,"reserveCache");function sOe(t,e){return`bytes ${t}-${e}/*`}o(sOe,"getContentRange");function yg0(t,e,r,s,n){return Hs(this,void 0,void 0,function*(){x(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${sOe(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":sOe(s,n)},a=yield Hb(`uploadChunk (start: ${s}, end: ${n})`,()=>Hs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!o5(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(yg0,"uploadChunk");function Cg0(t,e,r,s){return Hs(this,void 0,void 0,function*(){let n=Ba(r),i=q3(`caches/${e.toString()}`),a=Xb.openSync(r,"r"),c=EG(s),u=VQ("uploadConcurrency",c.uploadConcurrency),p=VQ("uploadChunkSize",c.uploadChunkSize),l=[...new Array(u).keys()];x("Awaiting all uploads");let A=0;try{yield Promise.all(l.map(()=>Hs(this,void 0,void 0,function*(){for(;A<n;){let d=Math.min(n-A,p),h=A,m=A+d-1;A+=p,yield yg0(t,i,()=>Xb.createReadStream(r,{fd:a,start:h,end:m,autoClose:!1}).on("error",z=>{throw new Error(`Cache upload failed because file read failed with ${z.message}`)}),h,m)}})))}finally{Xb.closeSync(a)}})}o(Cg0,"uploadFile");function Bg0(t,e,r){return Hs(this,void 0,void 0,function*(){let s={size:r};return yield B3("commitCache",()=>Hs(this,void 0,void 0,function*(){return t.postJson(q3(`caches/${e.toString()}`),s)}))})}o(Bg0,"commitCache");function DG(t,e,r,s){return Hs(this,void 0,void 0,function*(){if(EG(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Gze(r,e,s)}else{let i=CG();x("Upload cache"),yield Cg0(i,t,e,s),x("Commiting cache");let a=Ba(e);W(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield Bg0(i,t,a);if(!o5(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);W("Cache saved successfully")}})}o(DG,"saveCache");var e3e=_(VOe(),1),t1=_(e1(),1),Un=_(e1(),1),u2=_(e1(),1),p2=_(e1(),1),l2=_(e1(),1);var zH=_(e1(),1),OH=_(e1(),1),JOe=_(e1(),1),KOe=_(e1(),1),ZOe=_(e1(),1);var MH=_(e1(),1),mH=_(e1(),1),jOe=_(e1(),1),$Oe=_(e1(),1),YOe=_(e1(),1);var gH=class extends YOe.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,$Oe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,jOe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let p=s.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let l=e.skip(u);p!==!1&&(p===!0?mH.UnknownFieldHandler.onRead:p)(this.typeName,i,c,u,l)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,MH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,MH.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?mH.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},$5=new gH;var EH=class extends ZOe.Mess
`));let s=yield _H(r,"create");yield WH(s,t)})}o(QH,"createTar");var uM=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},Qo=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},cM=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Z5=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function n3e(t){if(!t||t.length===0)throw new Qo("Path Validation Error: At least one directory or file path is required")}o(n3e,"checkPaths");function PH(t){if(t.length>512)throw new Qo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Qo(`Key Validation Error: ${t} cannot contain commas.`)}o(PH,"checkKey");function kH(){return D3()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(kH,"isFeatureAvailable");function i3e(t,e,r,s){return uM(this,arguments,void 0,function*(n,i,a,c,u=!1){let p=D3();return x(`Cache service version: ${p}`),n3e(n),p==="v2"?yield QO0(n,i,a,c,u):yield LO0(n,i,a,c,u)})}o(i3e,"restoreCache");function LO0(t,e,r,s){return uM(this,arguments,void 0,function*(n,i,a,c,u=!1){a=a||[];let p=[i,...a];if(x("Resolved Keys:"),x(JSON.stringify(p)),p.length>10)throw new Qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of p)PH(d);let l=yield CO(),A="";try{let d=yield iOe(p,n,{compressionMethod:l,enableCrossOsArchive:u});if(!d?.archiveLocation)return;if(c?.lookupOnly)return W("Lookup only - skipping download"),d.cacheKey;A=U3.join(yield EO(),wl(l)),x(`Archive Path: ${A}`),yield BG(d.archiveLocation,A,c),Eu()&&(yield k3(A,l));let h=Ba(A);return W(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield LH(A,l),W("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Qo.name)throw d;h instanceof Da&&typeof h.statusCode=="number"&&h.statusCode>=500?sb(`Failed to restore: ${d.message}`):y0(`Failed to restore: ${d.message}`)}finally{try{yield yO(A)}catch(d){x(`Failed to delete archive: ${d}`)}}})}o(LO0,"restoreCacheV1");function QO0(t,e,r,s){return uM(this,arguments,void 0,function*(n,i,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let p=[i,...a];if(x("Resolved Keys:"),x(JSON.stringify(p)),p.length>10)throw new Qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of p)PH(A);let l="";try{let A=TH(),d=yield CO(),h={key:i,restoreKeys:a,version:hb(n,d,u)},m=yield A.GetCacheEntryDownloadURL(h);if(!m.ok){x(`Cache not found for version ${h.version} of keys: ${p.join(", ")}`);return}if(h.key!==m.matchedKey?W(`Cache hit for restore-key: ${m.matchedKey}`):W(`Cache hit for: ${m.matchedKey}`),c?.lookupOnly)return W("Lookup only - skipping download"),m.matchedKey;l=U3.join(yield EO(),wl(d)),x(`Archive path: ${l}`),x(`Starting download of archive to: ${l}`),yield BG(m.signedDownloadUrl,l,c);let C=Ba(l);return W(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),Eu()&&(yield k3(l,d)),yield LH(l,d),W("Cache restored successfully"),m.matchedKey}catch(A){let d=A;if(d.name===Qo.name)throw A;d instanceof Da&&typeof d.statusCode=="number"&&d.statusCode>=500?sb(`Failed to restore: ${A.message}`):y0(`Failed to restore: ${A.message}`)}finally{try{l&&(yield yO(l))}catch(A){x(`Failed to delete archive: ${A}`)}}})}o(QO0,"restoreCacheV2");function UH(t,e,r){return uM(this,arguments,void 0,function*(s,n,i,a=!1){let c=D3();return x(`Cache service version: ${c}`),n3e(s),PH(n),c==="v2"?yield kO0(s,n,i,a):yield PO0(s,n,i,a)})}o(UH,"saveCache");function PO0(t,e,r){return uM(this,arguments,void 0,fu
`)}o(T30,"_buildMessageForResponseErrors");var _30=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(T30(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},W30=["method","baseUrl","url","headers","request","query","mediaType","operationName"],L30=["query","method","url"],X3e=/\/api\/v3\/?$/;function Q30(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(L30.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>W30.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return X3e.test(i)&&(n.url=i.replace(X3e,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new _30(n,c,a.data)}return a.data.data})}o(Q30,"graphql");function rX(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>Q30(r,n,i),"newApi"),{defaults:rX.bind(null,r),endpoint:r.endpoint})}o(rX,"withDefaults");var GSt=rX(V3,{headers:{"user-agent":`octokit-graphql.js/${x30} ${jl()}`},method:"POST",url:"/graphql"});function V3e(t){return rX(t,{method:"POST",url:"/graphql"})}o(V3e,"withCustomRequest");var sX="(?:[a-zA-Z0-9_-]+)",j3e="\\.",$3e=new RegExp(`^${sX}${j3e}${sX}${j3e}${sX}$`),P30=$3e.test.bind($3e);async function k30(t){let e=P30(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(k30,"auth");function U30(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(U30,"withAuthorizationPrefix");async function G30(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=U30(t),e(n)}o(G30,"hook");var Y3e=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(k30.bind(null,e),{hook:G30.bind(null,e)})},"createTokenAuth2");var nX="7.0.6";var J3e=o(()=>{},"noop"),H30=console.warn.bind(console),X30=console.error.bind(console);function V30(t={}){return typeof t.debug!="function"&&(t.debug=J3e),typeof t.info!="function"&&(t.info=J3e),typeof t.warn!="function"&&(t.warn=H30),typeof t.error!="function"&&(t.error=X30),t}o(V30,"createLogger");var K3e=`octokit-core.js/${nX} ${jl()}`,Aw=class{static{o(this,"Octokit")}static VERSION=nX;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new B3e.Collection,s={baseUrl:V3.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} ${K3e}`:K3e,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=V3.defaults(s),this.graphql=V3e(this.request).defaults(s),this.log=V30(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Y3e(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)
`,a).length:A,p?(c===null?0:c.length)+u.length:0,p?u.length+A:0);return d<h},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:u,encoding:p,from_line:l,ltrim:A,max_record_size:d,raw:h,relax_quotes:m,rtrim:z,skip_empty_lines:C,to:E,to_line:B}=this.options,{comment:I,escape:w,quote:N,record_delimiter:T}=this.options,{bomSkipped:Q,previousBuf:$,rawBuffer:me,escapeIsQuote:De}=this.state,Z;if($===void 0)if(s===void 0){a();return}else Z=s;else $!==void 0&&s===void 0?Z=$:Z=Buffer.concat([$,s]);if(Q===!1)if(c===!1)this.state.bomSkipped=!0;else if(Z.length<3){if(n===!1){this.state.previousBuf=Z;return}}else{for(let J in BM)if(BM[J].compare(Z,0,BM[J].length)===0){let Fe=BM[J].length;this.state.bufBytesStart+=Fe,Z=Z.slice(Fe);let re=MV({...this.original_options,encoding:J});for(let ze in re)this.options[ze]=re[ze];({comment:I,escape:w,quote:N}=this.options);break}this.state.bomSkipped=!0}let qe=Z.length,Y;for(Y=0;Y<qe&&!this.__needMoreData(Y,qe,n);Y++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),B!==-1&&this.info.lines>B){this.state.stop=!0,a();return}this.state.quoting===!1&&T.length===0&&this.__autoDiscoverRecordDelimiter(Z,Y)&&(T=this.options.record_delimiter);let J=Z[Y];if(h===!0&&me.append(J),(J===q40||J===I40)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(w!==null&&this.state.quoting===!0&&this.__isEscape(Z,Y,J)&&Y+w.length<qe)if(De){if(this.__isQuote(Z,Y+w.length)){this.state.escaping=!0,Y+=w.length-1;continue}}else{this.state.escaping=!0,Y+=w.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(Z,Y))if(this.state.quoting===!0){let ze=Z[Y+N.length],a0=z&&this.__isCharTrimable(Z,Y+N.length),W0=I!==null&&this.__compareBytes(I,Z,Y+N.length,ze),Pe=this.__isDelimiter(Z,Y+N.length,ze),st=T.length===0?this.__autoDiscoverRecordDelimiter(Z,Y+N.length):this.__isRecordDelimiter(ze,Z,Y+N.length);if(w!==null&&this.__isEscape(Z,Y,J)&&this.__isQuote(Z,Y+w.length))Y+=w.length-1;else if(!ze||Pe||st||W0||a0){this.state.quoting=!1,this.state.wasQuoting=!0,Y+=N.length-1;continue}else if(m===!1){let R0=this.__error(new O0("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(ze)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(R0!==void 0)return R0}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),Y+=N.length-1}else if(this.state.field.length!==0){if(m===!1){let ze=this.__infoField(),a0=Object.keys(BM).map(Pe=>BM[Pe].equals(this.state.field.toString())?Pe:!1).filter(Boolean)[0],W0=this.__error(new O0("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(ze.column)} at line ${ze.lines}, value is ${JSON.stringify(this.state.field.toString(p))}`,a0?`(${a0} bom)`:void 0],this.options,ze,{field:this.state.field}));if(W0!==void 0)return W0}}else{this.state.quoting=!0,Y+=N.length-1;continue}if(this.state.quoting===!1){let ze=this.__isRecordDelimiter(J,Z,Y);if(ze!==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)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Y+=ze-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Y+=ze-1;continue}this.info.bytes=this.state.bufBytesStart+Y;let Pe=this.__onField();if(Pe!==void 0)return Pe;this.info.bytes=this.state.bufBytesStart+Y+ze;let st=this.__onRecord(i);if(st!==void 0)return st;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,Y+=ze-1;continue}if(this.state.commenting)continue;if(I!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,Z,Y,J)!==0){this.state.commenting=!0;continue}let a0=this.__isDelimite
More info: ${u.url}`);let h=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,m=!1;for(let z of a)if(z.remote||z.path.endsWith(p)&&z.content===l){c.push({title:A,message:d,file:z.path,startLine:h}),m=!0;break}m||x(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${p}: ${A}`)}return c}};var E2=_(require("fs"),1),zV=_(require("path"),1);var sS=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Z0,this.iidFilename=`build-iidfile-${B0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${B0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},n=Object.entries(s).filter(([h])=>!r.has(h)),i=B0.parseBoolOrDefault(s["fetch-by-commit"]),a=e?.ref||s.ref||os.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&B0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${C0.serverURL}/${os.repo.owner}/${os.repo.repo}.git`,u=e?.checksum||s.checksum,p=e?.subdir||s.subdir,l=e?.format;if(!l){if(l="fragment",n.length>0)l="query";else if(B0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(l="query")}catch{}}let A=os.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof os.payload.pull_request?.head?.sha=="string"?os.payload.pull_request.head.sha:a);let d=u||A;if(l==="query"){let h=[`ref=${i||u?a:d}`],m=i?d:u;m&&h.push(`checksum=${m}`),p&&p!=="."&&h.push(`subdir=${p}`);for(let[z,C]of n)h.push(`${z}=${C}`);return`${c}?${h.join("&")}`}return`${c}#${d}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return zV.default.join(z0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(E2.default.existsSync(e))return E2.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return zV.default.join(z0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!E2.default.existsSync(e))return;let r=E2.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);if(r?.asFile){if(!E2.default.existsSync(n))throw new Error(`secret file ${n} not found`);return[s,n]}let i=z0.tmpName({tmpdir:z0.tmpDir()});return E2.default.writeFileSync(i,n),[s,i]}static getProvenanceInput(e){let r=Rn(e);if(!r)return r;try{return $le(e)?`builder-id=${C0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${C0.workflowRunURL(!0)}`;let r=jn(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=${C0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",a=jn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?s=u[1]:u[0]==="repository"?n=u[1]:u[0]==="ghtoken"&&(i=u[1])}return s==="gha"&&(n||(e=`${e},repository=${C0.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExp
`),{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,a]of n.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let s=jn(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s)for(let[i,a]of n.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=jn(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let n of r)for(let i of n)try{let a=B0.parseBool(i);s.push(`disabled=${!a}`)}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&&ga(i),[n,i]}};var OV=_(require("fs"),1),DCe=_(require("path"),1);var nS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Z0,this.metadataFilename=`bake-metadata-${B0.generateRandomString()}.json`}getMetadataFilePath(){return DCe.default.join(z0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!OV.default.existsSync(e))return;let r=OV.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=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!B0.isValidRef(u)){i.push(u);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=u}}n&&s.push(n);for(let u of i)s.push("--file",u);if(e.overrides)for(let u of e.overrides)s.push("--set",u);if(e.vars)for(let u of e.vars)s.push("--var",u);if(e.allow)for(let u of e.allow)s.push("--allow",u);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 c=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await We.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.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=jn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=B0.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=jn(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,a]=n.toString().
`)[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"]);x(`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 a=n.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=n.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await We.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(`
`).map(i=>i.trim()).filter(i=>i.length>0);if(n)return`refs/tags/${n}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[s]=r.split(`
`).map(n=>n.trim()).filter(n=>n.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var pxe=require("crypto"),kc=_(require("fs"),1),vA=_(require("path"),1);var CC=_(dE(),1),Uc=_(D6e(),1),lxe=_(p0e(),1),ag=_(sxe(),1);var W0e=_(dE(),1);var ixe=_(Sn(),1);var nxe="application/vnd.oci.empty.v1+json";var Qp=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await We.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(x(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(x(`Cosign.isAvailable error: ${r}`),!1));return x(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await We.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await We.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return x("Cosign.versionSatisfies false: undefined version"),!1;let n=ixe.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return x(`Cosign.versionSatisfies ${s} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,s,n,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===W0e.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===nxe&&typeof p.digest=="string"&&(s=p.digest)}if(!n&&u&&u.mediaType===W0e.BUNDLE_V03_MEDIA_TYPE&&(n=u),n&&(r||s)){i=void 0;break}}return{bundle:n,signatureManifestDigest:r||s,errors:i}}};var L0e=_(require("fs"),1);var Yv=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Z0}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let s=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let n=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return s.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=i.get(c);return u?u.platform?.os===n.os&&u.platform?.architecture===n.architecture&&(u.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=z0.tmpName({tmpdir:z0.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&n.push(u);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let c of n)r.push("--file",c
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,s){return await We.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return s(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var oxe="application/vnd.in-toto+json";var axe="https://fulcio.sigstore.dev",cxe="https://rekor.sigstore.dev",uxe="https://timestamp.sigstore.dev",Cf="https://search.sigstore.dev";var OU0="slsaprovenance1",xA=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Qp,this.imageTools=e?.imageTools||new Yv}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);W(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),i=[];await this.cosign.versionSatisfies(">=3.0.4")?await ur("Creating Sigstore protobuf signing config",async()=>{let a=z0.tmpName({template:"signing-config-XXXXXX.json",tmpdir:z0.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];n&&c.push("--no-default-rekor=true"),await We.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),W(JSON.stringify(JSON.parse(kc.default.readFileSync(a,{encoding:"utf-8"})),null,2)),i.push(`--signing-config=${a}`)}):(i.push("--use-signing-config"),n&&i.push("--tlog-upload=false"));for(let a of e.imageNames){let c=await this.imageTools.attestationDigests({name:`${a}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let u of c){let p=`${a}@${u}`;await ur(`Signing attestation manifest ${p}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...i];W(`[command]${this.cosign.binPath} ${[...l,p].join(" ")}`);let A=await We.getExecOutput(this.cosign.binPath,["--verbose",...l,p],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=Qp.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(d.errors&&d.errors.length>0){let m=d.errors.map(z=>`- [${z.code}] ${z.message} : ${z.detail}`).join(`
${p}`),u.errors.some(l=>l.code==="MANIFEST_UNKNOWN"))W(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${n}...
${p}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(p=>p.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);W(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let i of Object.keys(n))await ur(`Signing ${i}`,async()=>{let a=n[i],c=vA.default.join(vA.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){y0(`No subjects found in provenance ${i}, skip signing.`);return}let p=await t.signPayload({data:a,type:oxe},s),l=t.parseBundle(p);W("Provenance blob signed for:");for(let A of u){let[d,h]=Object.entries(A.digest)[0]||[];W(` - ${A.name} (${d}:${h})`)}l.tlogID&&W(`Attestation signature uploaded to Rekor transparency log: ${Cf}?logIndex=${l.tlogID}`),W(`Writing Sigstore bundle to: ${c}`),kc.default.writeFileSync(c,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[i]={...l,bundlePath:c,subjects:u}})}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 a=vA.default.dirname(n);await ur(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let u=vA.default.join(a,c.name);W(`Verifying signed artifact ${u}`);let p=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??OU0];(r.noTransparencyLog||!i.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await We.getExecOutput(this.cosign.binPath,[...p,"--bundle",i.bundlePath,u],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);s[u]={bundlePath:i.bundlePath,cosignArgs:p}}})}return s}async verifyArtifact(e,r,s){W("Verifying keyless verification bundle signature");let n=JSON.parse(kc.default.readFileSync(r,"utf-8")),i=(0,CC.bundleFromJSON)(n);W("Fetching Sigstore TUF trusted root metadata");let a=await lxe.getTrustedRoot(),c=(0,ag.toTrustMaterial)(a);try{W("Verifying artifact signature");let u=(0,ag.toSignedEntity)(i,kc.default.readFileSync(e)),p=t.parseCertificate(i),l=i.verificationMaterial.tlogEntries,A=l.length>0?l[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let m=p.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 h=new ag.Verifier(c).verify(u,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return x(`Sigstore.verifyArtifact signer: ${JSON.stringify(h)}`),{payload:n,certificate:p.toString(),tlogID:A}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),W(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:axe,rekorURL:e?void 0:cxe,tsaServerURL:uxe}}static noTransparencyLog(e){return e??C0.context.payload.repository?.private}static getProvenanceBlobs(e){let r=vA.default.join(e.localExportDir,"provenance.json");if(kc.default.existsSync(r))return{[r]:kc.default.readFileSync(r)};let s=kc.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=s.filter(i=>i.isDirectory());if(n.length>0&&n.length===s.length&&n.every(i=>kc.default.existsSync(vA.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of n){let c=
`,bakeTarget:Rn("bake-target")||"docker-metadata-action",githubToken:Rn("github-token")}}o(bxe,"getInputs");async function Mxe(t,e){switch(t){case"workflow":return await EU0(e);case"git":return await yU0();default:throw new Error(`Invalidcontextsource:${t}`)}}o(Mxe,"getContext");async function EU0(t){let e=C0.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:await CU0(e.sha,t),...e}}o(EU0,"getContextFromWorkflow");async function yU0(){let t=await $u.context();return{commitDate:await $u.commitDate(t.sha),...t}}o(yU0,"getContextFromGit");async function CU0(t,e){let r=C0.context.payload;if(r.commits){let s=r.commits.find(n=>n.id===t)?.timestamp;if(s)return new Date(s)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let s=await e.github.octokit.rest.repos.getCommit({owner:C0.context.repo.owner,repo:C0.context.repo.repo,ref:t});if(s.data.commit.committer?.date)return new Date(s.data.commit.committer.date);throw new Error("Committer date not found")}catch(s){return x(`FailedtogetcommitdatefromGitHubAPI:${s.message}`),new Date}}o(CU0,"getCommitDateFromWorkflow");var Jp=_(fV(),1),dGe=_(require("fs"),1),fGe=_(require("path"),1),E4=_(yxe(),1),ci=_(nGe(),1),Ng=_(Sn(),1);var u0=class t extends Error{static{o(this,"CsvError")}constructor(e,r,s,...n){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let i of n)for(let a in i){let c=i[a];this[a]=Buffer.isBuffer(c)?c.toString(s.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var O4=o(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var nT=o(function(t){let e=[];for(let r=0,s=t.length;r<s;r++){let n=t[r];if(n==null||n===!1)e[r]={disabled:!0};else if(typeof n=="string"||typeof n=="number")e[r]={name:`${n}`};else if(O4(n)){if(typeof n.name!="string")throw new u0("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property"name"isrequiredatposition${r}`,"when column is an object literal"]);e[r]=n}else throw new u0("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got${JSON.stringify(n)}atposition${r}`])}return e},"normalize_columns_array");var lre=class{static{o(this,"ResizeableBuffer")}constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){let r=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let s=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),s.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let s=this.clone();this.buf[0]=e,s.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},Are=lre;var iGe=o(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((s,n)=>{let i=Buffer.from(String.fromCharCode(n),t.encoding);return n!==63&&i.length===1&&i[0]===63||s.push(i),s},[]),r=new Uint8Array(256);for(let s of e)r[s[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Arra
`,a).length:A,p?(c===null?0:c.length)+u.length:0,p?u.length+A:0);returnd<h},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:l,from_line:A,ltrim:d,max_record_size:h,raw:m,relax_quotes:z,rtrim:C,skip_empty_lines:E,to:B,to_line:I}=this.options,{comment:w,escape:N,quote:T,record_delimiter:Q}=this.options,{bomSkipped:$,delimiterDiscovered:me,delimiterBufPrevious:De,rawBuffer:Z,escapeIsQuote:qe}=this.state;if(!me&&p){letze;if(De===void0?ze=s:De!==void0&&s===void0?ze=De:ze=Buffer.concat([De,s]),s=void0,n||ze.length>p.size)this.options.delimiter=[Buffer.from(aGe(ze,this.options.delimiter_auto))],this.state.previousBuf=ze,this.state.delimiterBufPrevious=void0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=ze;return}}let{previousBuf:Y}=this.state,J;if(Y===void0)if(s===void0){a();return}elseJ=s;elseY!==void0&&s===void0?J=Y:J=Buffer.concat([Y,s]);if($===!1)if(c===!1)this.state.bomSkipped=!0;elseif(J.length<3){if(n===!1){this.state.previousBuf=J;return}}else{for(letzeinSg)if(Sg[ze].compare(J,0,Sg[ze].length)===0){leta0=Sg[ze].length;this.state.bufBytesStart+=a0,J=J.slice(a0);letW0=wg({...this.original_options,encoding:ze});for(letPeinW0)this.options[Pe]=W0[Pe];({comment:w,escape:N,quote:T}=this.options);break}this.state.bomSkipped=!0}letFe=J.length,re;for(re=0;re<Fe&&!this.__needMoreData(re,Fe,n);re++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&Q.length===0&&this.__autoDiscoverRecordDelimiter(J,re)&&(Q=this.options.record_delimiter);letze=J[re];if(m===!0&&Z.append(ze),(ze===b1t||ze===M1t)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(J,re,ze)&&re+N.length<Fe)if(qe){if(this.__isQuote(J,re+N.length)){this.state.escaping=!0,re+=N.length-1;continue}}else{this.state.escaping=!0,re+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(J,re))if(this.state.quoting===!0){letPe=J[re+T.length],st=C&&this.__isCharTrimable(J,re+T.length),R0=w!==null&&this.__compareBytes(w,J,re+T.length,Pe),ce=this.__isDelimiter(J,re+T.length,Pe),ui=Q.length===0?this.__autoDiscoverRecordDelimiter(J,re+T.length):this.__isRecordDelimiter(Pe,J,re+T.length);if(N!==null&&this.__isEscape(J,re,ze)&&this.__isQuote(J,re+N.length))re+=N.length-1;elseif(!Pe||ce||ui||R0||st){this.state.quoting=!1,this.state.wasQuoting=!0,re+=T.length-1;continue}elseif(z===!1){letIs=this.__error(newu0("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Pe)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Is!==void0)returnIs}elsethis.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(T),re+=T.length-1}elseif(this.state.field.length!==0){if(z===!1){letPe=this.__infoField(),st=Object.keys(Sg).map(ce=>Sg[ce].equals(this.state.field.toString())?ce:!1).filter(Boolean)[0],R0=this.__error(newu0("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Pe.column)} at line ${Pe.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,st?`(${st} bom)`:void0],this.options,Pe,{field:this.state.field}));if(R0!==void0)returnR0}}else{this.state.quoting=!0,re+=T.length-1;continue}if(this.state.quoting===!1){letPe=this.__isRecordDelimiter(ze,J,re);if(Pe!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),re+=Pe-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,re+=Pe-1;continue}this.info.bytes=this.state.bufBytesStart+r
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==s[n+p])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(s){let{encoding:n,raw:i,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(n):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var Lf=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=iT(e),n=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=s.parse(t,!0,n,i);if(a!==void 0)throw a;return r},"parse");function pGe(t){let e=[];if(t.length==1){let r=!1,s=Lf(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let i=n.toString().split("=").map(a=>a.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return uGe(e)}e=[];for(let r of t){let s={name:"",enable:!0},n=Lf(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let a=i.toString().split("=").map(c=>c.trim());if(a.length==1)s.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{s.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalidenableattributevalue:${r}`);s.enable=/true/i.test(u);break}default:throw new Error(`Unknownimageattribute:${r}`)}}}if(s.name.length==0)throw new Error(`Imagenameattributeempty:${r}`);e.push(s)}return uGe(e)}o(pGe,"Transform");function uGe(t){Dd("Processing images input");for(let e of t)W(`name=${e.name},enable=${e.enable}`);return qd(),t}o(uGe,"output");var fre=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(fre||{}),oT=(s=>(s.Branch="branch",s.Tag="tag",s.PR="pr",s))(oT||{}),aT=(r=>(r.Short="short",r.Long="long",r))(aT||{}),dre=class{static{o(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},g1t={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function lGe(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let s of t)e.push(z1t(s));let r=e.sort((s,n)=>Number(s.attrs.priority)<Number(n.attrs.priority)?1:Number(s.attrs.priority)>Number(n.attrs.priority)?-1:0);Dd("Processing tags input");for(let s of r)W(s.toString());return qd(),r}o(lGe,"Transform");function z1t(t){let e=Lf(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new dre;for(let s of e){let n=s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(n.length==1)r.attrs.value=n[0];else{let i=n[0].toLowerCase(),a=n[1];switch(i){case"type":{if(!Object.values(fre).includes(a))throw new Error(`Unknowntagtypeattribute:${a}`);r.type=a;break}default:{r.attrs[i]=a;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"))throw new Error(`Missingpatternattributefor${t}`);Object.prototype.hasOwnProp