varWIe=Object.create;varmz=Object.defineProperty;varxIe=Object.getOwnPropertyDescriptor;varTIe=Object.getOwnPropertyNames;varvIe=Object.getPrototypeOf,LIe=Object.prototype.hasOwnProperty;vari=(t,e)=>mz(t,"name",{value:e,configurable:!0});varh=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),QIe=(t,e)=>{for(varrine)mz(t,r,{get:e[r],enumerable:!0})},_Ie=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letoofTIe(e))!LIe.call(t,o)&&o!==r&&mz(t,o,{get:()=>e[o],enumerable:!(n=xIe(e,o))||n.enumerable});returnt};varw=(t,e,r)=>(r=t!=null?WIe(vIe(t)):{},_Ie(e||!t||!t.__esModule?mz(r,"default",{value:t,enumerable:!0}):r,t));varK9=h(mA=>{"use strict";varCq0=require("net"),XIe=require("tls"),uI=require("http"),J9=require("https"),VIe=require("events"),yq0=require("assert"),YIe=require("util");mA.httpOverHttp=JIe;mA.httpsOverHttp=jIe;mA.httpOverHttps=$Ie;mA.httpsOverHttps=KIe;functionJIe(t){vare=newgi(t);returne.request=uI.request,e}i(JIe,"httpOverHttp");functionjIe(t){vare=newgi(t);returne.request=uI.request,e.createSocket=j9,e.defaultPort=443,e}i(jIe,"httpsOverHttp");function$Ie(t){vare=newgi(t);returne.request=J9.request,e}i($Ie,"httpOverHttps");functionKIe(t){vare=newgi(t);returne.request=J9.request,e.createSocket=j9,e.defaultPort=443,e}i(KIe,"httpsOverHttps");functiongi(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||uI.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,o,s,a){for(varc=$9(o,s,a),u=0,p=e.requests.length;u<p;++u){varA=e.requests[u];if(A.host===c.host&&A.port===c.port){e.requests.splice(u,1),A.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(gi,"TunnelingAgent");YIe.inherits(gi,VIe.EventEmitter);gi.prototype.addRequest=i(function(e,r,n,o){vars=this,a=pI({request:e},s.options,$9(r,n,o));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);functionu(){s.emit("free",c,a)}i(u,"onFree");functionp(A){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}i(p,"onCloseOrRemove")})},"addRequest");gi.prototype.createSocket=i(function(e,r){varn=this,o={};n.sockets.push(o);vars=pI({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+newBuffer(s.proxyAuth).toString("base64")),xa("making CONNECT request");vara=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",A),a.end();functionc(l){l.upgrade=!0}i(c,"onResponse");functionu(l,b,M){process.nextTick(function(){p(l,b,M)})}i(u,"onUpgrade");functionp(l,b,M){if(a.removeAllListeners(),b.removeAllListeners(),l.statusCode!==200){xa("tunneling socket could not be established, statusCode=%d",l.statusCode),b.destroy();varz=newError("tunneling socket could not be established, statusCode="+l.statusCode);z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}if(M.length>0){xa("got illegal response body from proxy"),b.destroy();varz=newError("got illegal response body from proxy");z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}returnxa("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=b,r(b)}i(p,"onConnect");functionA(l){a.removeAllListeners(),xa(`tunneling socket could not be established, cause=%s
`);b.push(g),s+=g.byteLength,z&&(s=null),o=t,n=i(async function*(){for(let y of b)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${u}`}else if(sH(t))o=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(mb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Mwe(t)}if((typeof o=="string"||mb.isBuffer(o))&&(s=Buffer.byteLength(o)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:A,done:l}=await u.next();if(l)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!uH(r)){let b=new Uint8Array(A);b.byteLength&&p.enqueue(b)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:o,length:s},a]}i(lH,"extractBody");function Rwe(t,e=!1){return t instanceof ReadableStream&&(b5(!mb.isDisturbed(t),"The body has already been consumed."),b5(!t.locked,"The stream is locked.")),lH(t,e)}i(Rwe,"safelyExtractBody");function Nwe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(Nwe,"cloneBody");function wwe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(wwe,"throwIfAborted");function Swe(t){return{blob(){return wA(this,r=>{let n=aH(this);return n===null?n="":n&&(n=qwe(n)),new Cwe([r],{type:n})},t)},arrayBuffer(){return wA(this,r=>new Uint8Array(r).buffer,t)},text(){return wA(this,cH,t)},json(){return wA(this,Wwe,t)},formData(){return wA(this,r=>{let n=aH(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let o=Dwe(r,n);if(o==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new iH;return s[SA]=o,s}case"application/x-www-form-urlencoded":{let o=new URLSearchParams(r.toString()),s=new iH;for(let[a,c]of o)s.append(a,c);return s}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){returnwA(this,r=>newUint8Array(r),t)}}}i(Swe,"bodyMixinMethods");functionFwe(t){Object.assign(t.prototype,Swe(t))}i(Fwe,"mixinBody");asyncfunctionwA(t,e,r){if(Ewe.brandCheck(t,r),dH(t))thrownewTypeError("Body is unusable: Body has already been read");wwe(t[SA]);letn=zwe(),o=i(a=>n.reject(a),"errorSteps"),s=i(a=>{try{n.resolve(e(a))}catch(c){o(c)}},"successSteps");returnt[SA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(awaitOwe(t[SA].body,s,o),n.promise)}i(wA,"consumeBody");functiondH(t){lete=t[SA].body;returne!=null&&(e.stream.locked||mb.isDisturbed(e.stream))}i(dH,"bodyUnusable");functionWwe(t){returnJSON.parse(cH(t))}i(Wwe,"parseJSONFromBytes");functionaH(t){lete=t[SA].headersList,r=gwe(e);returnr==="failure"?null:r}i(aH,"bodyMimeType");bH.exports={extractBody:lH,safelyExtractBody:Rwe,cloneBody:Nwe,mixinBody:Fwe,streamRegistry:AH,hasFinalizationRegistry:pH,bodyUnusable:dH}});varNH=h((hD0,RH)=>{"use strict";varhe=require("node:assert"),Oe=He(),{channels:fH}=OA(),M5=$I(),{RequestContentLengthMismatchError:uu,ResponseContentLengthMismatchError:MH,RequestAbortedError:yH,InvalidArgumentError:xwe,HeadersTimeoutError:Twe,HeadersOverflowError:vwe,SocketError:WA,InformationalError:xA,BodyTimeoutError:Lwe,HTTPParserError:Qwe,ResponseExceededMaxSizeError:_we}=c0(),{kUrl:BH,kReset:Zt,kClient:$z,kParser:F0,kBlocking:gb,kRunning:q1,kPending:qH,kSize:hH,kWriting:va,kQueue:no,kNoRef:zb,kKeepAliveDefaultTimeout:Pwe,kHostHeader:kwe,kPendingIdx:Uwe,kRunningIdx:pn,kError:wt,kPipelining:Kz,kSocket:Au,kKeepAliveTimeoutValue:eO,kMaxHeadersSize:h5,kKeepAliveMaxTimeout:Gwe,kKeepAliveTimeoutThreshold:Hwe,kHeadersTimeout:Xwe,kBodyTimeout:Vwe,kStrictContentLength:O5,kMaxRequests:mH,kCounter:Ywe,kMaxResponseSize:Jwe,kOnError:zH,kResume:Di,kHTTPContext:DH}=P0(),Rr=AG(),OH=Buffer.alloc(0),Yz=Buffer[Symbol.species],Jz=Oe.addListener,jwe=Oe.removeAllListeners,lu=Symbol("kIdleSocketValidation"),pu=Symbol("kIdleSocketValidationTimeout"),y5=Symbol("kSocketUsed"),m5;asyncfunction$we(){lett=process.e
`}return fH.sendHeaders.hasSubscribers&&fH.sendHeaders.publish({request:e,headers:g,socket:M}),!u||b===0?EH(z,null,t,e,M,A,g,l):Oe.isBuffer(u)?EH(z,u,t,e,M,A,g,l):Oe.isBlobLike(u)?typeof u.stream=="function"?CH(z,u.stream(),t,e,M,A,g,l):s6e(z,u,t,e,M,A,g,l):Oe.isStream(u)?o6e(z,u,t,e,M,A,g,l):Oe.isIterable(u)?CH(z,u,t,e,M,A,g,l):he(!1),!0}i(n6e,"writeH1");function o6e(t,e,r,n,o,s,a,c){he(s!==0||r[q1]===0,"stream body cannot be pipelined");let u=!1,p=new tO({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),A=i(function(z){if(!u)try{!p.write(z)&&this.pause&&this.pause()}catch(g){Oe.destroy(this,g)}},"onData"),l=i(function(){u||e.resume&&e.resume()},"onDrain"),b=i(function(){if(queueMicrotask(()=>{e.removeListener("error",M)}),!u){let z=new yH;queueMicrotask(()=>M(z))}},"onClose"),M=i(function(z){if(!u){if(u=!0,he(o.destroyed||o[va]&&r[q1]<=1),o.off("drain",l).off("error",M),e.removeListener("data",A).removeListener("end",M).removeListener("close",b),!z)try{p.end()}catch(g){z=g}p.destroy(z),z&&(z.code!=="UND_ERR_INFO"||z.message!=="reset")?Oe.destroy(e,z):Oe.destroy(e)}},"onFinished");e.on("data",A).on("end",M).on("error",M).on("close",b),e.resume&&e.resume(),o.on("drain",l).on("error",M),e.errorEmitted??e.errored?setImmediate(()=>M(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>M(null)),(e.closeEmitted??e.closed)&&setImmediate(b)}i(o6e,"writeStream");function EH(t,e,r,n,o,s,a,c){try{e?Oe.isBuffer(e)&&(he(s===e.byteLength,"buffer body must have content length"),o.cork(),o.write(`${a}content-length:${s}\r
`,"latin1"):(he(s===null,"no body must not have content length"),o.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Di]()}catch(u){t(u)}}i(EH,"writeBuffer");async function s6e(t,e,r,n,o,s,a,c){he(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new uu;let u=Buffer.from(await e.arrayBuffer());o.cork(),o.write(`${a}content-length:${s}\r
`,"latin1"),o.write(u),o.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(o[Zt]=!0),r[Di]()}catch(u){t(u)}}i(s6e,"writeBlob");async function CH(t,e,r,n,o,s,a,c){he(s!==0||r[q1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let b=u;u=null,b()}}i(p,"onDrain");let A=i(()=>new Promise((b,M)=>{he(u===null),o[wt]?M(o[wt]):u=b}),"waitForDrain");o.on("close",p).on("drain",p);let l=new tO({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let b of e){if(o[wt])throw o[wt];l.write(b)||await A()}l.end()}catch(b){l.destroy(b)}finally{o.off("close",p).off("drain",p)}}i(CH,"writeIterable");var tO=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:o,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=o,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[va]=!0}write(e){let{socket:r,request:n,contentLength:o,client:s,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[wt])throw r[wt];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(o!==null&&a+p>o){if(s[O5])throw new uu;process.emitWarning(new uu)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Zt]=!0),o===null?r.write(`${u}transfer-encoding:chunked\r
`,"latin1"),r!==null&&o!==r){if(n[O5])throw new uu;process.emitWarning(new uu)}e[F0].timeout&&e[F0].timeoutType===TA&&e[F0].timeout.refresh&&e[F0].timeout.refresh(),n[Di]()}}destroy(e){let{socket:r,client:n,abort:o}=this;r[va]=!1,e&&(he(n[q1]<=1,"pipeline should only contain this request"),o(e))}};RH.exports=Zwe});var LH=h((zD0,vH)=>{"use strict";var An=require("node:assert"),{pipeline:i6e}=require("node:stream"),$e=He(),{RequestContentLengthMismatchError:B5,RequestAbortedError:wH,SocketError:Eb,InformationalError:q5}=c0(),{kUrl:rO,kReset:oO,kClient:vA,kRunning:sO,kPending:a6e,kQueue:La,kPendingIdx:D5,kRunningIdx:oo,kError:io,kSocket:V1,kStrictContentLength:c6e,kOnError:I5,kMaxConcurrentStreams:TH,kHTTP2Session:so,kResume:Qa,kSize:u6e,kHTTPContext:p6e}=P0(),Ii=Symbol("open streams"),SH,FH=!1,nO;try{nO=require("node:http2")}catch{nO={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:A6e,HTTP2_HEADER_METHOD:l6e,HTTP2_HEADER_PATH:d6e,HTTP2_HEADER_SCHEME:b6e,HTTP2_HEADER_CONTENT_LENGTH:f6e,HTTP2_HEADER_EXPECT:M6e,HTTP2_HEADER_STATUS:h6e}}=nO;function m6e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let o of n)e.push(Buffer.from(r),Buffer.from(o));else e.push(Buffer.from(r),Buffer.from(n));return e}i(m6e,"parseH2Headers");async function z6e(t,e){t[V1]=e,FH||(FH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=nO.connect(t[rO],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[TH]});r[Ii]=0,r[vA]=t,r[V1]=e,$e.addListener(r,"error",g6e),$e.addListener(r,"frameError",E6e),$e.addListener(r,"end",C6e),$e.addListener(r,"goaway",y6e),$e.addListener(r,"close",function(){let{[vA]:o}=this,{[V1]:s}=o,a=this[V1][io]||this[io]||new Eb("closed",$e.getSocketInfo(s));if(o[so]=null,o.destroyed){An(o[a6e]===0);let c=o[La].splice(o[oo]);for(let u=0;u<c.length;u++){let p=c[u];$e.errorRequest(o,p,a)}}}),r.unref(),t[so]=r,e[so]=r,$e.addListener(e,"error",function(o){An(o.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io]=o,this[vA][I5](o)}),$e.addListener(e,"end",function(){$e.destroy(this,new Eb("other side closed",$e.getSocketInfo(this)))}),$e.addListener(e,"close",function(){let o=this[io]||new Eb("closed",$e.getSocketInfo(this));t[V1]=null,this[so]!=null&&this[so].destroy(o),t[D5]=t[oo],An(t[sO]===0),t.emit("disconnect",t[rO],[t],o),t[Qa]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...o){return q6e(t,...o)},resume(){O6e(t)},destroy(o,s){n?queueMicrotask(s):e.destroy(o).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}i(z6e,"connectH2");function O6e(t){let e=t[V1];e?.destroyed===!1&&(t[u6e]===0&&t[TH]===0?(e.unref(),t[so].unref()):(e.ref(),t[so].ref()))}i(O6e,"resumeH2");function g6e(t){An(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[V1][io]=t,this[vA][I5](t)}i(g6e,"onHttp2SessionError");function E6e(t,e,r){if(r===0){let n=new q5(`HTTP/2:"frameError"received-type${t},code${e}`);this[V1][io]=n,this[vA][I5](n)}}i(E6e,"onHttp2FrameError");function C6e(){let t=new Eb("other side closed",$e.getSocketInfo(this[V1]));this.destroy(t),$e.destroy(this[V1],t)}i(C6e,"onHttp2SessionEnd");function y6e(t){let e=this[io]||new Eb(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,$e.getSocketInfo(this)),r=this[vA];if(r[V1]=null,r[p6e]=null,this[so]!=null&&(this[so].destroy(e),this[so]=null),$e.destroy(this[V1],e),r[oo]<r[La].length){let n=r[La][r[oo]];r[La][r[oo]++]=null,$e.errorRequest(r,n,e),r[D5]=r[oo]}An(r[sO]===0),r.emit("disconnect",r[rO],[r],e),r[Qa]()}i(y6e,"onHTTP2GoAway");function B6e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(B6e,"shouldSendContentLength");function q6e(t,e){let r=t[so],{method:n,path:o,host:s,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:A}=e;if(a)return $e.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<p.length;R+=2){let v=p[R+0],x=p[R+1];if(Array.isArray(x))for(let L=0;L<x.length;L++)l[v]?l[v]+=`,${x[L]}`:l[v]=x[L];else l[v]=x}let b,{hostname:M,port:z}=t[rO];l[A6e]=s||`${M}
`.trim())}};mY.exports=kR});varIO=h((N40,CY)=>{"use strict";varOY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:KWe}=c0(),ZWe=kA();EY()===void0&&gY(newZWe);functiongY(t){if(!t||typeoft.dispatch!="function")thrownewKWe("Argument agent must implement Agent");Object.defineProperty(globalThis,OY,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(gY,"setGlobalDispatcher");functionEY(){returnglobalThis[OY]}i(EY,"getGlobalDispatcher");CY.exports={setGlobalDispatcher:gY,getGlobalDispatcher:EY}});varRO=h((F40,yY)=>{"use strict";yY.exports=class{static{i(this,"DecoratorHandler")}#e;constructor(e){if(typeofe!="object"||e===null)thrownewTypeError("handler must be an object");this.#e=e}onConnect(...e){returnthis.#e.onConnect?.(...e)}onError(...e){returnthis.#e.onError?.(...e)}onUpgrade(...e){returnthis.#e.onUpgrade?.(...e)}onResponseStarted(...e){returnthis.#e.onResponseStarted?.(...e)}onHeaders(...e){returnthis.#e.onHeaders?.(...e)}onData(...e){returnthis.#e.onData?.(...e)}onComplete(...e){returnthis.#e.onComplete?.(...e)}onBodySent(...e){returnthis.#e.onBodySent?.(...e)}}});varqY=h((x40,BY)=>{"use strict";varexe=aO();BY.exports=t=>{lete=t?.maxRedirections;returnr=>i(function(o,s){let{maxRedirections:a=e,...c}=o;if(!a)returnr(o,s);letu=newexe(r,a,o,s);returnr(c,u)},"redirectInterceptor")}});varIY=h((v40,DY)=>{"use strict";vartxe=mO();DY.exports=t=>e=>i(function(n,o){returne(n,newtxe({...n,retryOptions:{...t,...n.retryOptions}},{handler:o,dispatch:e}))},"retryInterceptor")});varNY=h((Q40,RY)=>{"use strict";varrxe=He(),{InvalidArgumentError:nxe,RequestAbortedError:oxe}=c0(),sxe=RO(),UR=classextendssxe{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#o=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))thrownewnxe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#i.bind(this))}#i(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,o){leta=rxe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)thrownewoxe(`Response size (${a}) larger than maxSize (${this.#e})`);returnthis.#r?!0:this.#a.onHeaders(e,r,n,o)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){returnthis.#o=this.#o+e.length,this.#o>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};functionixe({maxSize:t}={maxSize:1024*1024}){returne=>i(function(n,o){let{dumpMaxSize:s=t}=n,a=newUR({maxSize:s},o);returne(n,a)},"Intercept")}i(ixe,"createDumpInterceptor");RY.exports=ixe});varFY=h((P40,SY)=>{"use strict";var{isIP:axe}=require("node:net"),{lookup:cxe}=require("node:dns"),uxe=RO(),{InvalidArgumentError:ZA,InformationalError:pxe}=c0(),wY=Math.pow(2,31)-1,GR=class{static{i(this,"DNSInstance")}#e=0;#t=0;#n=newMap;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#o}getfull(){returnthis.#n.size===this.#t}runLookup(e,r,n){leto=this.#n.get(e.hostname);if(o==null&&this.full){n(null,e.origin);return}lets={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(o==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??newpxe("No DNS entries found"));return}this.setRecords(e,c);letu=this.#n.get(e.hostname),p=this.pick(e,u,s.affinity),A;typeofp.port=="number"?A=`:${p.port}`:e.port!==""?A=`:${e.port}`:A="",n(null,`${e.protocol}//${p.family===6?`[${p.address}]`:p.address}${A}`)});else{leta=this.pick(e,o,s.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}letc;typeofa.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){cxe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(o,s)=>
${s}`;break;case"retry":A$(s)&&(r[o]=s);break;case"id":l$(s)&&(r[o]=s);break;case"event":s.length>0&&(r[o]=s);break}}processEvent(e){e.retry&&A$(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&l$(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};d$.exports={EventSourceStream:WN}});var E$=h((GI0,g$)=>{"use strict";var{pipeline:mQe}=require("node:stream"),{fetching:zQe}=Ub(),{makeRequest:OQe}=rl(),{webidl:xi}=nt(),{EventSourceStream:gQe}=b$(),{parseMIMEType:EQe}=Kt(),{createFastMessageEvent:CQe}=cl(),{isNetworkError:f$}=Pb(),{delay:yQe}=SN(),{kEnumerableProperty:Nu}=He(),{environmentSettingsObject:M$}=Ir(),h$=!1,m$=3e3,nf=0,z$=1,of=2,BQe="anonymous",qQe="use-credentials",dl=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=nf;#o=null;#s=null;#a;#i;constructor(e,r={}){super(),xi.util.markAsUncloneable(this);let n="EventSource constructor";xi.argumentLengthCheck(arguments,1,n),h$||(h$=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=xi.converters.USVString(e,n,"url"),r=xi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:m$};let o=M$,s;try{s=new URL(e,o.settingsObject.baseUrl),this.#i.origin=s.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=s.href;let a=BQe;r.withCredentials&&(a=qQe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=M$.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#o=OQe(c),this.#u()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#u(){if(this.#r===of)return;this.#r=nf;let e={request:this.#o,dispatcher:this.#a},r=i(n=>{f$(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(f$(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let o=n.headersList.get("content-type",!0),s=o!==null?EQe(o):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=z$,this.dispatchEvent(new Event("open")),this.#i.origin=n.urlList[n.urlList.length-1].origin;let c=new gQe({eventSourceSettings:this.#i,push:i(u=>{this.dispatchEvent(CQe(u.type,u.options))},"push")});mQe(n.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=zQe(e)}async#c(){this.#r!==of&&(this.#r=nf,this.dispatchEvent(new Event("error")),await yQe(this.#i.reconnectionTime),this.#r===nf&&(this.#i.lastEventId.length&&this.#o.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#u()))}close(){xi.brandCheck(this,t),this.#r!==of&&(this.#r=of,this.#s.abort(),this.#o=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},O$={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:nf,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:z$,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:of,writable:!1}};Obj
%s`,v,v,B,n);varx=B.type==="*"?Qw:B.type==="?"?Lw:"\\"+B.type;o=!0,n=n.slice(0,B.reStart)+x+"\\("+v}z(),s&&(n+="\\\\");varL=!1;switch(n.charAt(0)){case"[":case".":case"(":L=!0}for(varue=c.length-1;ue>-1;ue--){varFe=c[ue],Ge=n.slice(0,Fe.reStart),ye=n.slice(Fe.reStart,Fe.reEnd-8),De=n.slice(Fe.reEnd-8,Fe.reEnd),Ye=n.slice(Fe.reEnd);De+=Ye;varle=Ge.split("(").length-1,f0=Ye;for(g=0;g<le;g++)f0=f0.replace(/\)[+*?]?/,"");Ye=f0;varJ="";Ye===""&&e!==_g&&(J="$");var_e=Ge+ye+Ye+J+De;n=_e}if(n!==""&&o&&(n="(?=.)"+n),L&&(n=b+n),e===_g)return[n,o];if(!o)returna7e(t);varD0=r.nocase?"i":"";try{varbt=newRegExp("^"+n+"$",D0)}catch{returnnewRegExp("$.")}returnbt._glob=t,bt._src=n,bt}i(s7e,"parse");Pr.makeRe=function(t,e){returnnewit(t,e||{}).makeRe()};it.prototype.makeRe=i7e;functioni7e(){if(this.regexp||this.regexp===!1)returnthis.regexp;vart=this.set;if(!t.length)returnthis.regexp=!1,this.regexp;vare=this.options,r=e.noglobstar?Qw:e.dot?Kke:Zke,n=e.nocase?"i":"",o=t.map(function(s){returns.map(function(a){returna===_w?r:typeofa=="string"?c7e(a):a._src}).join("\\/")}).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=newRegExp(o,n)}catch{this.regexp=!1}returnthis.regexp}i(i7e,"makeRe");Pr.match=function(t,e,r){r=r||{};varn=newit(e,r);returnt=t.filter(function(o){returnn.match(o)}),n.options.nonull&&!t.length&&t.push(e),t};it.prototype.match=i(function(e,r){if(typeofr>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)returne==="";if(e==="/"&&r)return!0;varn=this.options;If.sep!=="/"&&(e=e.split(If.sep).join("/")),e=e.split(wee),this.debug(this.pattern,"split",e);varo=this.set;this.debug(this.pattern,"set",o);vars,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<o.length;a++){varc=o[a],u=e;n.matchBase&&c.length===1&&(u=[s]);varp=this.matchOne(u,c,r);if(p)returnn.flipNegate?!0:!this.negate}returnn.flipNegate?!1:this.negate},"match");it.prototype.matchOne=function(t,e,r){varn=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(varo=0,s=0,a=t.length,c=e.length;o<a&&s<c;o++,s++){this.debug("matchOne loop");varu=e[s],p=t[o];if(this.debug(e,u,p),u===!1)return!1;if(u===_w){this.debug("GLOBSTAR",[e,u,p]);varA=o,l=s+1;if(l===c){for(this.debug("** at the end");o<a;o++)if(t[o]==="."||t[o]===".."||!n.dot&&t[o].charAt(0)===".")return!1;return!0}for(;A<a;){varb=t[A];if(this.debug(`
globstar while`,t,A,e,l,b),this.matchOne(t.slice(A),e.slice(l),r))returnthis.debug("globstar found match!",A,a,b),!0;if(b==="."||b===".."||!n.dot&&b.charAt(0)==="."){this.debug("dot detected!",t,A,e,l);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newSHe.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;letn=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&deletethis.sockets[e])}getName(e){returnthis.isSecureEndpoint(e)?FHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){leto={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),cinstanceofIte.Agent)try{returnc.addRequest(e,o)}catch(u){returnn(u)}this[is].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){lete=this[is].currentSocket;if(this[is].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[is].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[is]&&(this[is].defaultPort=e)}getprotocol(){returnthis[is].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[is]&&(this[is].protocol=e)}};Hr.Agent=v6});varSte=h(Tl=>{"use strict";varWHe=Tl&&Tl.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(Tl,"__esModule",{value:!0});Tl.parseProxyResponse=void0;varxHe=WHe(w3()),S3=(0,xHe.default)("https-proxy-agent:parse-proxy-response");functionTHe(t){returnnewPromise((e,r)=>{letn=0,o=[];functions(){letA=t.read();A?p(A):t.once("readable",s)}i(s,"read");functiona(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}i(a,"cleanup");functionc(){a(),S3("onend"),r(newError("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");functionu(A){a(),S3("onerror %o",A),r(A)}i(u,"onerror");functionp(A){o.push(A),n+=A.length;letl=Buffer.concat(o,n),b=l.indexOf(`\r
`);let{connect:p,buffered:A}=awaitu;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)returne.once("socket",GHe),r.secureEndpoint?(Xf("Upgrading socket connection to TLS"),Fte.connect({...xte(Wte(r),"host","path","port"),socket:o})):o;o.destroy();letl=newF3.Socket({writable:!1});returnl.readable=!0,e.once("socket",b=>{Xf("Replaying proxy buffer for failed request"),(0,QHe.default)(b.listenerCount("data")>0),b.push(A),b.push(null)}),l}};W3.protocols=["http","https"];Bn.HttpsProxyAgent=W3;functionGHe(t){t.resume()}i(GHe,"resume");functionxte(t,...e){letr={},n;for(nint)e.includes(n)||(r[n]=t[n]);returnr}i(xte,"omit")});varPte=h(ir=>{"use strict";varHHe=ir&&ir.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);varo=Object.getOwnPropertyDescriptor(e,r);(!o||("get"ino?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){returne[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),XHe=ir&&ir.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qte=ir&&ir.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&HHe(e,t,r);returnXHe(e,t),e};Object.defineProperty(ir,"__esModule",{value:!0});ir.req=ir.json=ir.toBuffer=void0;varVHe=Qte(require("http")),YHe=Qte(require("https"));asyncfunction_te(t){lete=0,r=[];forawait(letnoft)e+=n.length,r.push(n);returnBuffer.concat(r,e)}i(_te,"toBuffer");ir.toBuffer=_te;asyncfunctionJHe(t){letr=(await_te(t)).toString("utf8");try{returnJSON.parse(r)}catch(n){leto=n;throwo.message+=` (input: ${r})`,o}}i(JHe,"json");ir.json=JHe;functionjHe(t,e={}){letn=((typeoft=="string"?t:t.href).startsWith("https:")?YHe:VHe).request(t,e),o=newPromise((s,a)=>{n.once("response",s).once("error",a).end()});returnn.then=o.then.bind(o),n}i(jHe,"req");ir.req=jHe});varHte=h(Xr=>{"use strict";varUte=Xr&&Xr.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);varo=Object.getOwnPropertyDescriptor(e,r);(!o||("get"ino?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){returne[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),$He=Xr&&Xr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gte=Xr&&Xr.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ute(e,t,r);return$He(e,t),e},KHe=Xr&&Xr.__exportStar||function(t,e){for(varrint)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ute(e,t,r)};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Agent=void0;varZHe=Gte(require("net")),kte=Gte(require("http")),eXe=require("https");KHe(Pte(),Xr);varas=Symbol("AgentBaseInternalState"),L6=classextendskte.Agent{static{i(this,"Agent")}constructor(e){super(e),this[as]={}}isSecureEndpoint(e){if(e){if(typeofe.secureEndpoint=="boolean")returne.secureEndpoint;if(typeofe.protocol=="string")returne.protocol==="https:"}let{stack:r}=newError;returntypeofr!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newZHe.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;letn=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&deletethis.sockets[e])}getName(e){return(typeofe.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?eXe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){leto={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),cinstanceofkte.Agent)returnc.addRequest(e,o);this[as].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){lete=this[as].currentSocket;if(this[as].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[as].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[as]&&(this[as].defaultPort=e)}getprotocol(){returnthis[as].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[as]&&(this[as].protocol=e)}};Xr.Agent=L6});varYte=h(qn=>{"use strict";vartXe=qn&&qn.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);varo=Object.getOwnPropertyDescriptor(e,r);(!o||("get"ino?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){returne[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),rXe=qn&&qn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Vte=qn&&qn.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&tXe(e,t,r);returnrXe(e,t),e},nXe=qn&&qn.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(qn,"__esModule",{value:!0});qn.HttpProxyAgent=void0;varoXe=Vte(require("net")),sXe=Vte(require("tls")),iXe=nXe(w3()),aXe=require("events"),cXe=Hte(),Xte=require("url"),vl=(0,iXe.default)("http-proxy-agent"),x3=classextendscXe.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeofe=="string"?newXte.URL(e):e,this.proxyHeaders=r?.headers??{},vl("Creating new HttpProxyAgent instance: %o",this.proxy.href);letn=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?uXe(r,"headers"):null,host:n,port:o}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,o=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${o}//${s}`,c=newXte.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);letu=typeofthis.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){letp=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(letpofObject.keys(u)){letA=u[p];A&&e.setHeader(p,A)}}asyncconnect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);letn,o;vl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(vl("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,o=n.indexOf(`\r
`)+4,e.outputData[0].data=e._header+n.substring(o),vl("Output buffer: %o",e.outputData[0].data));lets;returnthis.proxy.protocol==="https:"?(vl("Creating `tls.Socket`: %o",this.connectOpts),s=sXe.connect(this.connectOpts)):(vl("Creating `net.Socket`: %o",this.connectOpts),s=oXe.connect(this.connectOpts)),await(0,aXe.once)(s,"connect"),s}};x3.protocols=["http","https"];qn.HttpProxyAgent=x3;functionuXe(t,...e){letr={},n;for(nint)e.includes(n)||(r[n]=t[n]);returnr}i(uXe,"omit")});varMre=h(J3=>{"use strict";Object.defineProperty(J3,"__esModule",{value:!0});J3.state=void0;J3.state={instrumenterImplementation:void0}});varFre=h(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});eE.state=void0;eE.state={operationRequestMap:newWeakMap}});varAse=h(t2=>{"use strict";Object.defineProperty(t2,"__esModule",{value:!0});varR$e=require("os"),N$e=require("util");functionw$e(t){returnt&&typeoft=="object"&&"default"int?t:{default:t}}i(w$e,"_interopDefaultLegacy");varS$e=w$e(N$e);functionF$e(t,...e){process.stderr.write(`${S$e.default.format(t,...e)}${R$e.EOL}`)}i(F$e,"log");vartse=typeofprocess<"u"&&process.env&&process.env.DEBUG||void0,nse,MT=[],hT=[],zC=[];tse&&mT(tse);varose=Object.assign(t=>sse(t),{enable:mT,enabled:zT,disable:W$e,log:F$e});functionmT(t){nse=t,MT=[],hT=[];lete=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(letnofr)n.startsWith("-")?hT.push(newRegExp(`^${n.substr(1)}$`)):MT.push(newRegExp(`^${n}$`));for(letnofzC)n.enabled=zT(n.namespace)}i(mT,"enable");functionzT(t){if(t.endsWith("*"))return!0;for(leteofhT)if(e.test(t))return!1;for(leteofMT)if(e.test(t))return!0;return!1}i(zT,"enabled");functionW$e(){lett=nse||"";returnmT(""),t}i(W$e,"disable");functionsse(t){lete=Object.assign(r,{enabled:zT(t),destroy:x$e,log:ose.log,namespace:t,extend:T$e});functionr(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}returni(r,"debug"),zC.push(e),e}i(sse,"createDebugger");functionx$e(){lett=zC.indexOf(this);returnt>=0?(zC.splice(t,1),!0):!1}i(x$e,"destroy");functionT$e(t){lete=sse(`${this.namespace}:${t}`);returne.log=this.log,e}i(T$e,"extend");varFM=ose,ise=newSet,hC=typeofprocess<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void0,OC,gC=FM("azure");gC.log=(...t)=>{FM.log(...t)};varOT=["verbose","info","warning","error"];hC&&(pse(hC)?ase(hC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${hC}'; logging is not enabled. Acceptable values: ${OT.join(", ")}.`));functionase(t){if(t&&!pse(t))thrownewError(`Unknown log level '${t}'. Acceptable values: ${OT.join(",")}`);OC=t;lete=[];for(letrofise)use(r)&&e.push(r.namespace);FM.enable(e.join(","))}i(ase,"setLogLevel");functionv$e(){returnOC}i(v$e,"getLogLevel");varrse={verbose:400,info:300,warning:200,error:100};functionL$e(t){lete=gC.extend(t);returncse(gC,e),{error:mC(e,"error"),warning:mC(e,"warning"),info:mC(e,"info"),verbose:mC(e,"verbose")}}i(L$e,"createClientLogger");functioncse(t,e){e.log=(...r)=>{t.log(...r)}}i(cse,"patchLogMethod");functionmC(t,e){letr=Object.assign(t.extend(e),{level:e});if(cse(t,r),use(r)){letn=FM.disable();FM.enable(n+","+r.namespace)}returnise.add(r),r}i(mC,"createLogger");functionuse(t){return!!(OC&&rse[t.level]<=rse[OC])}i(use,"shouldEnable");functionpse(t){returnOT.includes(t)}i(pse,"isAzureLogLevel");t2.AzureLogger=gC;t2.createClientLogger=L$e;t2.getLogLevel=v$e;t2.setLogLevel=ase});varCT=h(xM=>{"use strict";Object.defineProperty(xM,"__esModule",{value:!0});varr2=newWeakMap,EC=newWeakMap,WM=classt{static{i(this,"AbortSignal")}constructor(){this.onabort=null,r2.set(this,[]),EC.set(this,!1)}getaborted(){if(!EC.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");returnEC.get(this)}staticgetnone(){returnnewt}addEventListener(e,r){if(!r2.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");r2.get(this).push(r)}removeEventListener(e,r){if(!r2.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");letn=r2.get(this),o=n.indexOf(r);o>-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(us0,"logUnexpecedPropertyAccessOnce");function ps0(){Object.keys(hB).forEach(function(t){delete hB[t]})}i(ps0,"resetLoggedProperties")});var zB=h(_s=>{"usestrict";_s.__esModule=!0;_s.HandlebarsEnvironment=zQ;function iAe(t){return t&&t.__esModule?t:{default:t}}i(iAe,"_interopRequireDefault");var qp=Yt(),As0=rn(),hQ=iAe(As0),ls0=dQ(),ds0=rAe(),bs0=fQ(),mB=iAe(bs0),fs0=MQ(),Ms0="4.7.9";_s.VERSION=Ms0;var hs0=8;_s.COMPILER_REVISION=hs0;var ms0=7;_s.LAST_COMPATIBLE_COMPILER_REVISION=ms0;var zs0={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"};_s.REVISION_CHANGES=zs0;var mQ="[objectObject]";function zQ(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},ls0.registerDefaultHelpers(this),ds0.registerDefaultDecorators(this)}i(zQ,"HandlebarsEnvironment");zQ.prototype={constructor:zQ,logger:mB.default,log:mB.default.log,registerHelper:i(function(e,r){if(qp.toString.call(e)===mQ){if(r)throw new hQ.default("Argnotsupportedwithmultiplehelpers");qp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(qp.toString.call(e)===mQ)qp.extend(this.partials,e);else{if(typeof r>"u")throw new hQ.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(qp.toString.call(e)===mQ){if(r)throw new hQ.default("Argnotsupportedwithmultipledecorators");qp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){fs0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Os0=mB.default.log;_s.log=Os0;_s.createFrame=qp.createFrame;_s.logger=mB.default});var cAe=h((OB,aAe)=>{"usestrict";OB.__esModule=!0;function OQ(t){this.string=t}i(OQ,"SafeString");OQ.prototype.toString=OQ.prototype.toHTML=function(){return""+this.string};OB.default=OQ;aAe.exports=OB.default});var uAe=h(gQ=>{"usestrict";gQ.__esModule=!0;gQ.wrapHelper=gs0;function gs0(t,e){if(typeof t!="function")return t;var r=i(function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=e(o),t.apply(this,arguments)},"wrapper");return r}i(gs0,"wrapHelper")});var fAe=h(Ic=>{"usestrict";Ic.__esModule=!0;Ic.checkRevision=Ds0;Ic.template=Is0;Ic.wrapProgram=gB;Ic.resolvePartial=Rs0;Ic.invokePartial=Ns0;Ic.noop=dAe;function Es0(t){return t&&t.__esModule?t:{default:t}}i(Es0,"_interopRequireDefault");function Cs0(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(Cs0,"_interopRequireWildcard");var ys0=Yt(),w2=Cs0(ys0),Bs0=rn(),ca=Es0(Bs0),ua=zB(),pAe=dQ(),qs0=uAe(),AAe=MQ();function Ds0(t){var e=t&&t[0]||1,r=ua.COMPILER_REVISION;if(!(e>=ua.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ua.COMPILER_REVISION))if(e<ua.LAST_COMPATIBLE_COMPILER_REVISION){var n=ua.REVISION_CHANGES[r],o=ua.REVISION_CHANGES[e];throw new ca.default("TemplatewasprecompiledwithanolderversionofHandlebarsthanthecurrentruntime.Pleaseupdateyourprecompilertoanewerversion("+n+")ordowngradeyourruntimetoanolderversion("+o+").")}else throw new ca.default("TemplatewasprecompiledwithanewerversionofHandlebarsthanthecurrentruntime.Pleaseupdateyourruntimetoanewerversion("+t[1]+").")}i(Ds0,"checkRevision");function Is0(t,e){if(!e)throw new ca.default("Noenvironmentpassedtotemplate");if(!t||!t.main)throw new ca.default("Unknowntemplateobject:"+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,u){u.hash&&(c=w2.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.res
`)}i(al0,"fromDER")});varZq=h(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.SHA2_HASH_ALGOS=kc.RSA_SIGNATURE_ALGOS=kc.ECDSA_SIGNATURE_ALGOS=void0;kc.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};kc.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};kc.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});varU_=h(eD=>{"use strict";Object.defineProperty(eD,"__esModule",{value:!0});eD.RFC3161TimestampVerificationError=void0;vark_=classextendsError{static{i(this,"RFC3161TimestampVerificationError")}};eD.RFC3161TimestampVerificationError=k_});varKde=h(Ys=>{"use strict";varcl0=Ys&&Ys.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);varo=Object.getOwnPropertyDescriptor(e,r);(!o||("get"ino?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){returne[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),ul0=Ys&&Ys.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pl0=Ys&&Ys.__importStar||(function(){vart=i(function(e){returnt=Object.getOwnPropertyNames||function(r){varn=[];for(varoinr)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);returnn},t(e)},"ownKeys");returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(varn=t(e),o=0;o<n.length;o++)n[o]!=="default"&&cl0(r,e,n[o]);returnul0(r,e),r}})();Object.defineProperty(Ys,"__esModule",{value:!0});Ys.TSTInfo=void0;var$de=pl0(pd()),Al0=Zq(),ll0=U_(),G_=class{static{i(this,"TSTInfo")}root;constructor(e){this.root=e}getversion(){returnthis.root.subs[0].toInteger()}getgenTime(){returnthis.root.subs[4].toDate()}getmessageImprintHashAlgorithm(){lete=this.messageImprintObj.subs[0].subs[0].toOID();returnAl0.SHA2_HASH_ALGOS[e]}getmessageImprintHashedMessage(){returnthis.messageImprintObj.subs[1].value}getraw(){returnthis.root.toDER()}verify(e){letr=$de.digest(this.messageImprintHashAlgorithm,e);if(!$de.bufferEqual(r,this.messageImprintHashedMessage))thrownewll0.RFC3161TimestampVerificationError("message imprint does not match artifact")}getmessageImprintObj(){returnthis.root.subs[2]}};Ys.TSTInfo=G_});varebe=h(Js=>{"use strict";vardl0=Js&&Js.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);varo=Object.getOwnPropertyDescriptor(e,r);(!o||("get"ino?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){returne[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),bl0=Js&&Js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fl0=Js&&Js.__importStar||(function(){vart=i(function(e){returnt=Object.getOwnPropertyNames||function(r){varn=[];for(varoinr)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);returnn},t(e)},"ownKeys");returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(varn=t(e),o=0;o<n.length;o++)n[o]!=="default"&&dl0(r,e,n[o]);returnbl0(r,e),r}})();Object.defineProperty(Js,"__esModule",{value:!0});Js.RFC3161Timestamp=void0;varMl0=jq(),H_=fl0(pd()),Zde=Zq(),Zh=U_(),hl0=Kde(),ml0="1.2.840.113549.1.7.2",zl0="1.2.840.113549.1.9.16.1.4",Ol0="1.2.840.113549.1.9.4",X_=classt{static{i(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}staticparse(e){letr=Ml0.ASN1Obj.parseBuffer(e);returnnewt(r)}getstatus(){returnthis.pkiStatusInfoObj.subs[0].toInteger()}getcontentType(){returnthis.contentTypeObj.toOID()}geteContentType(){returnthis.eContentTypeObj.toOID()}getsigningTime(){returnthis.tstInfo.genTime}getsignerIssuer(){returnthis.signerSidObj.subs[0].value}getsignerSerialNumber(){returnthis.signerSidObj.subs[1].value}getsignerDigestAlgorith
`,_20=/\u2014 (\S+) (\S+)\n/g;function P20(t,e){let r=t.inclusionProof,n=EP.fromString(r.checkpoint.envelope),o=OD.fromString(n.note);if(!k20(n,e))throw new hd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return o}i(P20,"verifyCheckpoint");function k20(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let o=e.find(s=>Wbe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return o?Wbe.crypto.verify(r,o.publicKey,n.signature):!1})}i(k20,"verifySignedNote");var EP=class t{static{i(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(gP))throw new hd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(gP),n=e.slice(0,r+1),s=e.slice(r+gP.length).matchAll(_20),a=Array.from(s,c=>{let[,u,p]=c,A=Buffer.from(p,"base64");if(A.length<5)throw new hd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:A.subarray(0,4),signature:A.subarray(4)}});if(a.length===0)throw new hd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},OD=class t{static{i(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,o){this.origin=e,this.logSize=r,this.logHash=n,this.rest=o}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new hd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],o;try{o=BigInt(r[1])}catch{throw new hd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,o,s,a)}};om.LogCheckpoint=OD});var Tbe=h(BP=>{"use strict";Object.defineProperty(BP,"__esModule",{value:!0});BP.verifyMerkleInclusion=H20;var yP=Ro(),gD=Dt(),U20=Buffer.from([0]),G20=Buffer.from([1]);function H20(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new gD.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let o=BigInt(e.logSize);if(n<0n||n>=o)throw new gD.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${n}`});let{inner:s,border:a}=X20(n,o);if(r.hashes.length!==s+a)throw new gD.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),u=r.hashes.slice(s),p=K20(t.canonicalizedBody),A=Y20(V20(p,c,n),u);if(!yP.crypto.bufferEqual(A,e.logHash))throw new gD.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}i(H20,"verifyMerkleInclusion");function X20(t,e){let r=J20(t,e),n=j20(t>>BigInt(r));return{inner:r,border:n}}i(X20,"decompInclProof");function V20(t,e,r){return e.reduce((n,o,s)=>r>>BigInt(s)&BigInt(1)?CP(o,n):CP(n,o),t)}i(V20,"chainInner");function Y20(t,e){return e.reduce((r,n)=>CP(n,r),t)}i(Y20,"chainBorderRight");function J20(t,e){return $20(t^e-BigInt(1))}i(J20,"innerProofSize");function j20(t){return t.toString(2).split("1").length-1}i(j20,"onesCount");function $20(t){return t===0n?0:t.toString(2).length}i($20,"bitLength");function CP(t,e){return yP.crypto.digest("sha256",G20,t,e)}i(CP,"hashChildren");function K20(t){return yP.crypto.digest("sha256",U20,t)}i(K20,"hashLeaf")});var Lbe=h(qP=>{"use strict";Object.defineProperty(qP,"__esModule",{value:!0});qP.verifyTLogSET=td0;var vbe=Ro(),Z20=Dt(),ed0=dd();function td0(t,e){if(!(0,ed0.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(o=>{let s=rd0(t),a=Buffer.from(vbe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return vbe.crypto.verify(a,o.publicKey,c)}))throw new Z20.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}i(td0,"verifyTLogSET");function rd0(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:o}=t;return{body:o.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}i(rd0,"toVerificationPayload")});var _be=h(CD=>{"use strict";Object.defineProperty(CD,"__esModule",{value:!0});CD.verifyTLogBody=ad0;CD.verifyTLogInclusion=cd0;var Qbe=Nbe(),ED=Dt(),DP=wbe(),IP=Sbe(),nd0=Fbe(),od0=xbe(),sd0=Tbe(),id0=Lbe();function ad0(t,e){let{kind:r,version:n}=t.kindVersion,o;try{o=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new ED.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==o.kind||n!==o.apiVersion)throw new ED.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${n},received:${o.kind}/${o.apiVersion}`});switch(r){case"dsse":if(n==DP.DSSE_API_VERSION_V1)return(0,DP.verifyDSSETLogBody)(o,e);{let s=Qbe.Entry.fromJSON(o);return(0,DP.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,nd0.verifyIntotoTLogBody)(o,e);case"hashedrekord":if(n==IP.HASHEDREKORD_API_VERSION_V1)return(0,IP.verifyHashedRekordTLogBody)(o,e);{let s=Qbe.Entry.fromJSON(o);return(0,IP.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new ED.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}i(ad0,"verifyTLogBody");function cd0(t,e){let r=!1;if(ud0(t)&&((0,id0.verifyTLogSET)(t,e),r=!0),pd0(t)){let n=(0,od0.verifyCheckpoint)(t,e);(0,sd0.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new ED.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion c
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,UC0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(km,"_createForOfIteratorHelper");function $C0(t,e){var r;if(t){if(typeof t=="string")return rye(t,e);var n=(0,eo.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,VC0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rye(t,e)}}i($C0,"_unsupportedIterableToArray");function rye(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(rye,"_arrayLikeToArray");var Q0="xregexp",aA={astral:!1,namespacing:!1},l1={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},ci={},_m={},_d={},L7=[],Pd="default",nye="class",KC0={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]/},ZC0=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,ey0=l1.exec.call(/()??/,"")[1]===void 0,ty0=(0,iA.default)(/x/)!==void 0,ry0={},cye=ry0.toString;function _7(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),n=".a".replace(new RegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}return e}i(_7,"hasNativeFlag");var uye=_7("u"),P7=_7("y"),pye={g:!0,i:!0,m:!0,u:uye,y:P7};function Aye(t,e,r,n,o){var s;if(t[Q0]={captureNames:e},o)return t;if(t.__proto__)t.__proto__=Y.prototype;else for(var a in Y.prototype)t[a]=Y.prototype[a];return t[Q0].source=r,t[Q0].flags=n&&(0,jC0.default)(s=n.split("")).call(s).join(""),t}i(Aye,"augment");function Pm(t){return l1.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}i(Pm,"clipDuplicates");function uA(t,e){var r;if(!Y.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[Q0]||{},o=ny0(t),s="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(o=l1.replace.call(o,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(s+="g"),e.addY&&(s+="y"),s&&(o=Pm(o+s)),e.isInternalOnly||(n.source!==void 0&&(c=n.source),(0,iA.default)(n)!=null&&(u=s?Pm((0,iA.default)(n)+s):(0,iA.default)(n))),t=Aye(new RegExp(e.source||t.source,o),oy0(t)?(0,eo.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}i(uA,"copyRegex");function lye(t){return(0,aye.default)(t,16)}i(lye,"dec");function dye(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||l1.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||sy0(t.input,t.index+t[0].length,r)?"":"(?:)"}i(dye,"getContextualTokenSeparator");function ny0(t){return ty0?(0,iA.default)(t):l1.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}i(ny0,"getNativeFlags");function oy0(t){return!!(t[Q0]&&t[Q0].captureNames)}i(oy0,"hasNamedCapture");function bye(t){return(0,aye.default)(t,10).toString(16)}i(bye,"hex");function sy0(t,e,r){var n="\\(\\?#[^)]*\\)",o="#[^#\\n]*",s="[?*+]|{\\d+(?:,\\d*)?}";return l1.test.call((0,cA.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,eo.default)(t).call(t,e))}i(sy0,"isQuantifierNext");function k7(t,e){return cye.call(t)==="[object ".concat(e,"]")}i(k7,"isType");function fye(t){for(;t.length<4;)t="0".concat(t);return t}i(fye,"pad4");function iy0(t,e){if(Pm(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=l1.replace.call(t,/^\(\?([\w$]+)\)/,function(s,a){if(l1.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(s));return e=Pm(e+a),""});var
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,ky0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(jy0,"_createForOfIteratorHelper");function $y0(t,e){var r;if(t){if(typeof t=="string")return rBe(t,e);var n=(0,Vy0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,Xy0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rBe(t,e)}}i($y0,"_unsupportedIterableToArray");function rBe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(rBe,"_arrayLikeToArray");var Ky0=i(function(e){var r={},n=e._dec,o=e._hex,s=e._pad4;function a(b){return b.replace(/[- _]+/g,"").toLowerCase()}i(a,"normalize");function c(b){var M=/^\\[xu](.+)/.exec(b);return M?n(M[1]):b.charCodeAt(b[0]==="\\"?1:0)}i(c,"charCode");function u(b){var M="",z=-1;return(0,Jy0.default)(e).call(e,b,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(g){var y=c(g[1]);y>z+1&&(M+="\\u".concat(s(o(z+1))),y>z+2&&(M+="-\\u".concat(s(o(y-1))))),z=c(g[2]||g[1])}),z<65535&&(M+="\\u".concat(s(o(z+1))),z<65534&&(M+="-\\uFFFF")),M}i(u,"invertBmp");function p(b){var M="b!";return r[b][M]||(r[b][M]=u(r[b].bmp))}i(p,"cacheInvertedBmp");function A(b,M){var z=r[b],g="";if(z.bmp&&!z.isBmpLast){var y;g=(0,X7.default)(y="[".concat(z.bmp,"]")).call(y,z.astral?"|":"")}if(z.astral&&(g+=z.astral),z.isBmpLast&&z.bmp){var E;g+=(0,X7.default)(E="".concat(z.astral?"|":"","[")).call(E,z.bmp,"]")}return M?"(?:(?!".concat(g,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(g,")")}i(A,"buildAstral");function l(b,M){var z=M?"a!":"a=";return r[b][z]||(r[b][z]=A(b,M))}i(l,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(b,M,z){var g="Invalid double negation ",y="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",q="Astral mode does not support Unicode tokens within character classes",R=b[1]==="P"||!!b[2],v=(0,Yy0.default)(z).call(z,"A"),x=a(b[4]||b[3]),L=r[x];if(b[1]==="P"&&b[2])throw new SyntaxError(g+b[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(y+b[0]);if(L.inverseOf){if(x=a(L.inverseOf),!r.hasOwnProperty(x)){var ue;throw new ReferenceError((0,X7.default)(ue="".concat(E+b[0]," -> ")).call(ue,L.inverseOf))}L=r[x],R=!R}if(!(L.bmp||v))throw new SyntaxError(B+b[0]);if(v){if(M==="class")throw new SyntaxError(q);return l(x,R)}return M==="class"?R?p(x):L.bmp:"".concat((R?"[^":"[")+L.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(b){var M="Unicode token requires name",z="Unicode token has no character data ",g=jy0(b),y;try{for(g.s();!(y=g.n()).done;){var E=y.value;if(!E.name)throw new Error(M);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(z+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){g.e(B)}finally{g.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(b){var M=a(b);return r[M]}},"_default");Ym.default=Ky0;nBe.exports=Ym.default});var iBe=h((qM1,sBe)=>{sBe.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(s=>s.trim());for(let s of o)!s||s.startsWith("#")||n.patterns.push(new Rf(s));return n.searchPaths.push(...Ww(n.patterns)),n})}static stat(e,r,n){return Pw(this,void 0,void 0,function*(){let o;if(r.followSymbolicLinks)try{o=yield yl.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){On(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else o=yield yl.promises.lstat(e.path);if(o.isDirectory()&&r.followSymbolicLinks){let s=yield yl.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){On(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return o})}};var b7e=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function vee(t,e){return b7e(this,void 0,void 0,function*(){return yield kg.create(t,e)})}i(vee,"create");var s3=w(require("crypto"),1),Il=w(require("fs"),1),Qu=w(require("path"),1),N1e=w(I1e(),1),w1e=w(require("util"),1);var Tf;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Tf||(Tf={}));var Lt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Lt||(Lt={}));var kr;(function(t){t.GNU="gnu",t.BSD="bsd"})(kr||(kr={}));var r3=2,n3=5e3,c6=5e3,u6=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,R1e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,vf="cache.tar",p6="manifest.txt",rF0=10*Math.pow(1024,3),o3="cache read denied:";var Dl=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},gGe=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={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,u){a=t[s](a),o(c,u,a.done,a.value)})}}function o(s,a,c,u){Promise.resolve(u).then(function(p){s({value:p,done:c})},a)}},EGe="1.0";function Lf(){return Dl(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Qu.join(n,"actions","temp")}let r=Qu.join(e,s3.randomUUID());return yield vi(r),r})}i(Lf,"createTempDirectory");function ns(t){return Il.statSync(t).size}i(ns,"getArchiveFileSizeInBytes");function A6(t){return Dl(this,void 0,void 0,function*(){var e,r,n,o,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),u=yield vee(t.join(`
`),{implicitDescendants:!1});try{for(var p=!0,A=gGe(u.globGenerator()),l;l=yield A.next(),e=l.done,!e;p=!0){o=l.value,p=!1;let M=Qu.relative(c,o).replace(new RegExp(`\\${Qu.sep}`,"g"),"/");N(`Matched: ${M}`),M===""?a.push("."):a.push(`${M}`)}}catch(b){r={error:b}}finally{try{!p&&!e&&(n=A.return)&&(yield n.call(A))}finally{if(r)throw r.error}}return a})}i(A6,"resolvePaths");function Qf(t){return Dl(this,void 0,void 0,function*(){return w1e.promisify(Il.unlink)(t)})}i(Qf,"unlinkFile");function S1e(t){return Dl(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),N(`Checking ${e} ${r.join(" ")}`);try{yield Qr(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(o=>n+=o.toString(),"stdout"),stderr:i(o=>n+=o.toString(),"stderr")}})}catch(o){N(o.message)}return n=n.trim(),N(n),n})}i(S1e,"getVersion");function _f(){return Dl(this,void 0,void 0,function*(){let t=yield S1e("zstd",["--quiet"]),e=N1e.clean(t);return N(`zstd version: ${e}`),t===""?Lt.Gzip:Lt.ZstdWithoutLong})}i(_f,"getCompressionMethod");function ac(t){return t===Lt.Gzip?Tf.Gzip:Tf.Zstd}i(ac,"getCacheFileName");function F1e(){return Dl(this,void 0,void 0,function*(){return Il.existsSync(u6)?u6:(yield S1e("tar")).toLowerCase().includes("gnu tar")?ot("tar"):""})}i(F1e,"getGnuTarPathOnWindows");function l6(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(l6,"assertDefined");function Rl(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(EGe),s3.createHash("sha256").update(n.join("|")).digest("hex")}i(Rl,"getCacheVersion");function W1e(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(W1e,"getRuntimeToken");var kf=w(require("http"),1),f6=w(require("https"),1);function d6(t){let e=t.protocol==="https:";if(CGe(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 a3(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new a3(`http://${r}`)}else return}i(d6,"getProxyUrl");function CGe(t){if(!t.hostname)return!1;let e=t.hostname;if(yGe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let o=[t.hostname.toUpperCase()];typeof n=="number"&&o.push(`${o[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||o.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}i(CGe,"checkBypass");function yGe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(yGe,"isLoopbackAddress");var a3=class extends URL{static{i(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 cc=w(sb(),1),x1e=w(fl(),1);var h1=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},t1;(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
${QGe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function d3(t){return t instanceof _t?!0:Pu(t)&&t.name==="RestError"}i(d3,"isRestError");function or(t,e){return Buffer.from(t,e)}i(or,"stringToUint8Array");var b3=w(require("node:http"),1),f3=w(require("node:https"),1),B6=w(require("node:zlib"),1),Z1e=require("node:stream");var Cn=Uf("ts-http-runtime");var _Ge={};function Gf(t){return t&&typeof t.pipe=="function"}i(Gf,"isReadableStream");function K1e(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{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)})}i(K1e,"isStreamComplete");function ete(t){return t&&typeof t.byteLength=="number"}i(ete,"isArrayBuffer");var M3=class extends Z1e.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(o){n(o)}}constructor(e){super(),this.progressCallback=e}},q6=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ss("The operation was aborted. Request has already been canceled.");n=i(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let o;e.timeout>0&&(o=setTimeout(()=>{let p=new ho;Cn.info(`request to '${p.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=GGe(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let z=e.onUploadProgress,g=new M3(z);g.on("error",y=>{Cn.error("Error in upload progress",y)}),Gf(c)?c.pipe(g):g.end(c),c=g}let p=await this.makeRequest(e,r,c);o!==void 0&&clearTimeout(o);let A=PGe(p),b={status:p.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return p.resume(),b;u=a?kGe(p,A):p;let M=e.onDownloadProgress;if(M){let z=new M3(M);z.on("error",g=>{Cn.error("Error in download progress",g)}),u.pipe(z),u=z}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(b.status)?b.readableStreamBody=u:b.bodyAsText=await UGe(u),b}finally{if(e.abortSignal&&n){let p=Promise.resolve();Gf(c)&&(p=K1e(c));let A=Promise.resolve();Gf(u)&&(A=K1e(u)),Promise.all([p,A]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Cn.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let o=new URL(e.url),s=o.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let A=s?b3.default.request(c,u):f3.default.request(c,u);A.once("error",l=>{p(new _t(l.message,{code:l.code??_t.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new ss("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(l),p(l)}),n&&Gf(n)?n.pipe(A):n?typeof n=="string"||Buffer.isBuffer(n)?A.end(n):ete(n)?A.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Cn.error("Unrecognized body type",n),p(new _t("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?b3.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new b3.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return f3.default.globalAgent;let o=e.tlsSettings??_Ge,s=this.cachedHttpsAgents.get(o);return s&&s.options.keepAlive===!n||(Cn.info("No cached TLS Agent exi
`;return e}i(gXe,"encodeHeaders");function EXe(t){return t instanceof Uint8Array?t.byteLength:_3(t)?t.size===-1?void 0:t.size:void 0}i(EXe,"getLength");function CXe(t){let e=0;for(let r of t){let n=EXe(r);if(n===void 0)return;e+=n}return e}i(CXe,"getTotalLength");async function yXe(t,e,r){let n=[or(`--${r}`,"utf-8"),...e.flatMap(s=>[or(`\r
`,"utf-8")],o=CXe(n);o&&t.headers.set("Content-Length",o),t.body=await ore(n)}i(yXe,"buildRequestBody");var Vf="multipartPolicy",BXe=70,qXe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function DXe(t){if(t.length>BXe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!qXe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(DXe,"assertValidBoundary");function k3(){return{name:Vf,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBodyandregularbodycannotbesetatthesametime");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",o=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!o)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=o;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?DXe(r):r=OXe(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await yXe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(k3,"multipartPolicy");function U3(){return l3()}i(U3,"createEmptyPipeline");var sre=u3({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),eL0=sre.logger;function cs(t){return sre.createClientLogger(t)}i(cs,"createClientLogger");var us=cs("core-rest-pipeline");function H6(t={}){return m3({logger:us.info,...t})}i(H6,"logPolicy");var X6=z3;function V6(t={}){return O3(t)}i(V6,"redirectPolicy");var G3=w(require("node:os"),1),H3=w(require("node:process"),1);function ire(){return"User-Agent"}i(ire,"getHeaderName");async function are(t){if(H3.default&&H3.default.versions){let e=`${G3.default.type()} ${G3.default.release()}; ${G3.default.arch()}`,r=H3.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})`)}}i(are,"setPlatformSpecificData");var X3="1.22.2";function xXe(t){let e=[];for(let[r,n]of t){let o=n?`${r}/${n}`:r;e.push(o)}return e.join("")}i(xXe,"getUserAgentString");function cre(){return ire()}i(cre,"getUserAgentHeaderName");async function V3(t){let e=new Map;e.set("core-rest-pipeline",X3),await are(e);let r=xXe(e);return t?`${t} ${r}`:r}i(V3,"getUserAgentValue");var ure=cre(),pre="userAgentPolicy";function Y6(t={}){let e=V3(t.userAgentPrefix);return{name:pre,async sendRequest(r,n){return r.headers.has(ure)||r.headers.set(ure,await e),n(r)}}}i(Y6,"userAgentPolicy");var Vr=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function J6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:o}=e??{};return new Promise((s,a)=>{function c(){a(new Vr(o??"Theoperationwasaborted."))}i(c,"rejectOnAbort");function u(){n?.removeEventListener("abort",p)}i(u,"removeListeners");function p(){r?.(),u(),c()}if(i(p,"onAbort"),n?.aborted)return c();try{t(A=>{u(),s(A)},A=>{u(),a(A)})}catch(A){a(A)}n?.addEventListener("abort",p)})}i(J6,"createAbortablePromise");var _Xe="Thedelaywasaborted.";function Yf(t,e){let r,{abortSignal:n,abortErrorMsg:o}=e??{};return J6(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:o??_Xe})}i(Yf,"delay");function pc(t){if(Pu(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unabletostringifyinput]"}return`Unknown error ${e}`}}i(pc,"getErrorMessage");function Are(t){return Pu(t)}i(Are,"isError");function Ll(){return _u()}i(Ll,"randomUUID");var d0=Gu;var lre=Symbol("rawContent");function $6(t){return typeof t[lre]=="function"}i($6,"hasRawContent");function dre(t){return $6(t)?t[lre]():t}i(dre,"getRawContent");var Y3=Vf;function K6(){let t=k3();return{name:Y3,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)$6(n.body)&&(n.body=dre(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(K6,"multipartPolicy");var Z6=g3;function eS(){return E3()}i(eS,"decompressResponsePolicy");fun
`&&t[s]!=="\r";s++)u+=t[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!pYe(u)){let l;return u.trim().length===0?l="Invalidspaceafter'<'.":l="Tag'"+u+"'isaninvalidname.",m1("InvalidTag",l,Pt(t,s))}let p=sYe(t,s);if(p===!1)return m1("InvalidAttr","Attributesfor'"+u+"'haveopenquote.",Pt(t,s));let A=p.value;if(s=p.index,A[A.length-1]==="/"){let l=s-A.length;A=A.substring(0,A.length-1);let b=Kre(A,e);if(b===!0)n=!0;else return m1(b.err.code,b.err.msg,Pt(t,l+b.err.line))}else if(c)if(p.tagClosed){if(A.trim().length>0)return m1("InvalidTag","Closingtag'"+u+"'can't have attributes or invalid starting.",Pt(t,a));if(r.length===0)return m1("InvalidTag","Closing tag '"+u+"' has not been opened.",Pt(t,a));{let l=r.pop();if(u!==l.tagName){let b=Pt(t,l.tagStartPos);return m1("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+u+"'.",Pt(t,a))}r.length==0&&(o=!0)}}else return m1("InvalidTag","Closing tag '"+u+"' doesn'thaveproperclosing.",Pt(t,s));else{let l=Kre(A,e);if(l!==!0)return m1(l.err.code,l.err.msg,Pt(t,s-A.length+l.err.line));if(o===!0)return m1("InvalidXml","Multiplepossiblerootnodesfound.",Pt(t,s));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=$re(t,s);continue}else if(t[s+1]==="?"){if(s=jre(t,++s),s.err)return s}else break;else if(t[s]==="&"){let l=cYe(t,s);if(l==-1)return m1("InvalidChar","char'&'isnotexpected.",Pt(t,s));s=l}else if(o===!0&&!Jre(t[s]))return m1("InvalidXml","Extratextattheend",Pt(t,s));t[s]==="<"&&s--}}else{if(Jre(t[s]))continue;return m1("InvalidChar","char'"+t[s]+"'isnotexpected.",Pt(t,s))}if(n){if(r.length==1)return m1("InvalidTag","Unclosedtag'"+r[0].tagName+"'.",Pt(t,r[0].tagStartPos));if(r.length>0)return m1("InvalidXml","Invalid'"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"'found.",{line:1,col:1})}else return m1("InvalidXml","Starttagexpected.",1);return!0}i(aE,"validate");function Jre(t){return t===""||t===""||t===`
`||t==="\r"}i(Jre,"isWhiteSpace");function jre(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==""){let n=t.substr(r,e-r);if(e>5&&n==="xml")return m1("InvalidXml","XMLdeclarationallowedonlyatthestartofthedocument.",Pt(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(jre,"readPI");function $re(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}i($re,"readCommentAndCDATA");var nYe='"',oYe="'";function sYe(t,e){let r="",n="",o=!1;for(;e<t.length;e++){if(t[e]===nYe||t[e]===oYe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){o=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:o}}i(sYe,"readAttributeStr");var iYe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Kre(t,e){let r=sE(t,iYe),n={};for(let o=0;o<r.length;o++){if(r[o][1].length===0)return m1("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",iM(r[o]));if(r[o][3]!==void 0&&r[o][4]===void 0)return m1("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",iM(r[o]));if(r[o][3]===void 0&&!e.allowBooleanAttributes)return m1("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",iM(r[o]));let s=r[o][2];if(!uYe(s))return m1("InvalidAttr","Attribute '"+s+"' is an invalid name.",iM(r[o]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return m1("InvalidAttr","Attribute '"+s+"' is repeated.",iM(r[o]))}return!0}i(Kre,"validateAttributeString");function aYe(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}i(aYe,"validateNumberAmpersand");function cYe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,aYe(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}i(cYe,"validateAmpersand");function m1(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(m1,"getErrorObject");function uYe(t){return BS(t)}i(uYe,"validateAttrName");function pYe(t){return BS(t)}i(pYe,"validateTagName");function Pt(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(Pt,"getLineNumberForPosition");function iM(t){return t.startIndex+t[1].length}i(iM,"getPositionFromMatch");var Zre={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"},ene={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
`);lete=newcr("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;leto=this.options,s=newuM(o.processEntities),a=t.length;for(letc=0;c<a;c++)if(t[c]==="<"){letp=t.charCodeAt(c+1);if(p===47){letA=Gl(t,">",c,"Closing Tag is not closed."),l=t.substring(c+2,A).trim();if(o.removeNSPrefix){letM=l.indexOf(":");M!==-1&&(l=l.substr(M+1))}l=FS(o.transformTagName,l,"",o).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));letb=this.matcher.getCurrentTag();if(l&&o.unpairedTagsSet.has(l))thrownewError(`Unpaired tag can not be used as closing tag: </${l}>`);b&&o.unpairedTagsSet.has(b)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=A}elseif(p===63){letA=WS(t,c,!1,"?>");if(!A)thrownewError("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);letl=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(l){letb=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(b)||1),s.setXmlVersion(Number(b)||1)}if(!(o.ignoreDeclaration&&A.tagName==="?xml"||o.ignorePiTags)){letb=newcr(A.tagName);b.add(o.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&o.ignoreAttributes!==!0&&(b[":@"]=l),this.addChild(r,b,this.readonlyMatcher,c)}c=A.closeIndex+1}elseif(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){letA=Gl(t,"-->",c+4,"Comment is not closed.");if(o.commentPropName){letl=t.substring(c+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(o.commentPropName,[{[o.textNodeName]:l}])}c=A}elseif(p===33&&t.charCodeAt(c+2)===68){letA=s.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}elseif(p===33&&t.charCodeAt(c+2)===91){letA=Gl(t,"]]>",c,"CDATA is not closed.")-2,l=t.substring(c+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);letb=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);b==null&&(b=""),o.cdataPropName?r.add(o.cdataPropName,[{[o.textNodeName]:l}]):r.add(o.textNodeName,b),c=A+2}else{letA=WS(t,c,o.removeNSPrefix);if(!A){letx=t.substring(Math.max(0,c-50),Math.min(a,c+50));thrownewError(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}letl=A.tagName,b=A.rawTagName,M=A.tagExp,z=A.attrExpPresent,g=A.closeIndex;if({tagName:l,tagExp:M}=FS(o.transformTagName,l,M,o),o.strictReservedNames&&(l===o.commentPropName||l===o.cdataPropName||l===o.textNodeName||l===o.attributesGroupName))thrownewError(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));lety=r;y&&o.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());letE=!1;M.length>0&&M.lastIndexOf("/")===M.length-1&&(E=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),M=l):M=M.substr(0,M.length-1),z=l!==M);letB=null,q={},R;R=FYe(b),l!==e.tagname&&this.matcher.push(l,{},R),l!==M&&z&&(B=this.buildAttributesMap(M,this.matcher,l),B&&(q=SYe(B,o))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());letv=c;if(this.isCurrentNodeStopNode){letx="";if(E)c=A.closeIndex;elseif(o.unpairedTagsSet.has(l))c=A.closeIndex;else{letue=this.readStopNodeData(t,b,g+1);if(!ue)thrownewError(`Unexpected end of ${b}`);c=ue.i,x=ue.tagContent}letL=newcr(l);B&&(L[":@"]=B),L.add(o.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,L,this.readonlyMatcher,v)}else{if(E){({tagName:l,tagExp:M}=FS(o.transformTagName,l,M,o));letx=newcr(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1}elseif(o.unpairedTagsSet.has(l)){letx=newcr(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{letx=newcr(l);if(this.tagsNodeStack.length>o.maxNestedTags)thrownewError("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,v),r=x}n="",c=g}}}elsen+=t[c];returne.child},"parse
${c}:${decodeURIComponent(s[c])}`}returnn}};varr1=classextendsKu{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewbM(e,r,this)}computeHMACSHA256(e){return(0,wne.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varL1=cs("storage-common");varDn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Dn||(Dn={}));varMc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Dn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},lJe=newVr("The operation was aborted."),fM=classextendsds{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Mc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Mc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Mc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Mc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Mc.maxRetryDelayInMs):Mc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Mc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Mc.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,n){leto=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(o.url=zE(o.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(o.url=fc(o.url,Vi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leta;try{if(L1.info(`RetryPolicy: =====> Try=${n}${s?"Primary":"Secondary"}`),a=awaitthis._nextPolicy.sendRequest(o),!this.shouldRetry(s,n,a))returna;r=r||!s&&a.status===404}catch(c){if(L1.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throwc}returnawaitthis.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,o){if(r>=this.retryOptions.maxTries)returnL1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;lets=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(letaofs)if(o.name.toUpperCase().includes(a)||o.message.toUpperCase().includes(a)||o.code&&o.code.toString().toUpperCase()===a)returnL1.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||o){leta=n?n.status:o?o.statusCode:0;if(!e&&a===404)returnL1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)returnL1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){leta=n.headers.get(Re.X_MS_CopySourceErrorCode);if(a!==void0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returno?.code==="PARSE_ERROR"&&o?.message.startsWith('Error "Error: Unclosed root tag')?(L1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,n){leto=0;if(e)switch(this.retryOptions.retryPolicyType){caseDn.EXPONENTIAL:o=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseDn.FIXED:o=this.retryOptions.retryDelayInMs;break}elseo=Math.random()*1e3;returnL1.info(`RetryPolicy: Delay for ${o}ms`),EE(o,n,lJe)}};varMM=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewfM(e,r,this.retryOptions)}};vardJe="storageBrowserPolicy";functionSne(){return{name:dJe,asyncsendRequest(t,e){returnd0||((t.method==="GET"||t.method==="HEAD")&&(t.url=fc(t.url,Vi.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(Re.COOKIE),t.headers.delete(Re.CONTENT_LENGTH)),e(t)}}}i(Sne,"storageBrowserPolicy");varbJe="StorageCorrectContentLengthPolicy";functionFne(){functiont(e){e.body&&(
`}),c}i(n,"getCanonicalizedHeadersString");function o(s){let a=OE(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=gE(s.url),p={};if(u){let A=[];for(let l in u)if(Object.prototype.hasOwnProperty.call(u,l)){let b=l.toLowerCase();p[b]=u[l],A.push(b)}A.sort();for(let l of A)c+=`
`),s=e.computeHMACSHA256(o);return{sasQueryParameters:newCo(t.version,s,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(E$e,"generateBlobSASQueryParameters20150405");functionC$e(t,e){if(t=ap(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?b0(t.startsOn,!1):"",t.expiresOn?b0(t.expiresOn,!1):"",ip(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(C$e,"generateBlobSASQueryParameters20181109");functiony$e(t,e){if(t=ap(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?b0(t.startsOn,!1):"",t.expiresOn?b0(t.expiresOn,!1):"",ip(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void0,void0,void0,t.encryptionScope),stringToSign:s}}i(y$e,"generateBlobSASQueryParameters20201206");functionB$e(t,e){if(t=ap(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?b0(t.startsOn,!1):"",t.expiresOn?b0(t.expiresOn,!1):"",ip(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?b0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?b0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}i(B$e,"generateBlobSASQueryParametersUDK20181109");functionq$e(t,e){if(t=ap(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?b0(t.startsOn,!1):"",t.expiresOn?b0(t.expiresOn,!1):"",ip(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?b0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?b0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,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:s}}i(q$e,"generateBlobSASQueryParametersUDK20200210");functionD$e(t,e){if(t=ap(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?b0(t.startsOn,!1):"",t.expiresOn?b0(t.expiresOn,!1):"",ip(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?b0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?b0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,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:s}}i(D$e,"generateBlobSASQueryParametersUDK20201206");functionI$e(t,e){if(t=ap(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?b0(t.startsOn,!1):"",t.expiresOn?b0(t.expiresOn,!1):"",ip(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?b0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?b0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,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:s}}i(I$e,"generateBlobSASQueryParametersUDK20250705");functionip(t,e,r){letn=[`/blob/${t}/${e}`];returnr&&n.push(`/${r}`),n.join("")}i(ip,"getCanonicalName");functionap(t){lete=t.version?t.version:qE;if(t.snapshotTime&&e<"2018-11-09")throwRangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void0&&t.snapshotTime)throwRangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void0&&t.versionId)throwRangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throwRangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throwRangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throwRangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throwRangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throwRangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throwRangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");returnt.version=e,t}i(ap,"SASSignatureValuesSanityCheckAndAutofill");varRM=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){letn=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Ll()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==mo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==mo||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnpe.withSpan("BlobLeaseClient-acquireLease",r,asyncn=>fe(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==mo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==mo||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnpe.withSpan("BlobLeaseClient-changeLease",r,asyncn=>{leto=fe(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));returnthis._leaseId=e,o})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.i
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints:https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};o2.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ap=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
Moreinfoonstoragelimits:https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Ap.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var QM=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var LKe=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},QT=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,o=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${o} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{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 Yse(t,e,r){return LKe(this,void 0,void 0,function*(){var n;let o=new ra(t),s=o.getBlockBlobClient(),a=new QT((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),N(`BlobClient: ${o.name}:${o.accountName}:${o.containerName}`);let u=yield s.uploadFile(e,c);if(u._response.status>=400)throw new wC(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw o0(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}i(Yse,"uploadCacheArchiveSDK");var jse=w(require("buffer"),1),Ss=w(require("fs"),1),$se=w(require("stream"),1),Kse=w(require("util"),1);var SC=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function FC(t){return t?t>=200&&t<300:!1}i(FC,"isSuccessStatusCode");function QKe(t){return t?t>=500:!0}i(QKe,"isServerErrorStatusCode");function _Ke(t){return t?[t1.BadGateway,t1.ServiceUnavailable,t1.GatewayTimeout].includes(t):!1}i(_Ke,"isRetryableStatusCode");function PKe(t){return SC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(PKe,"sleep");function Jse(t,e,r){return SC(this,arguments,void 0,function*(n,o,s,a=r3,c=n3,u=void 0){let p="",A=1;for(;A<=a;){let l,b,M=!1;try{l=yield o()}catch(z){u&&(l=u(z)),M=!0,p=z.message}if(l&&(b=s(l),!QKe(b)))return l;if(b&&(M=_Ke(b),p=`Cache service responded with ${b}`),N(`${n} - Attempt ${A} of ${a} failed with error: ${p}`),!M){N(`${n} - Error is not retryable`);break}yield PKe(c),A++}throw Error(`${n} failed: ${p}`)})}i(Jse,"retry");function _M(t,e){return SC(this,arguments,void 0,function*(r,n,o=r3,s=n3){return yield Jse(r,n,a=>a.statusCode,o,s,a=>{if(a instanceof os)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(_M,"retryTypedResponse");function s2(t,e){return SC(this,arguments,void 0,function*(r,n,o=r3,s=n3){return yield Jse(r,n,a=>a.message.statusCode,o,s)})}i(s2,"retryHttpClientResponse");var Sn=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a
Othercacheswithsimilarkey:`);for(let c of s?.artifactCaches||[])N(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}i(JKe,"printCachesListForDiagnostics");function GT(t,e,r){return lr(this,void 0,void 0,function*(){let n=new Aie.URL(t),o=rie(r);n.hostname.endsWith(".blob.core.windows.net")?o.useAzureSdk?yield eie(t,e,o):o.concurrentBlobDownloads?yield Zse(t,e,o):yield xC(t,e):yield xC(t,e)})}i(GT,"downloadCache");function die(t,e,r){return lr(this,void 0,void 0,function*(){let n=UT(),o=Rl(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:o,cacheSize:r?.cacheSize};return yield _M("reserveCache",()=>lr(this,void 0,void 0,function*(){return n.postJson(kM("caches"),s)}))})}i(die,"reserveCache");function pie(t,e){return`bytes${t}-${e}/*`}i(pie,"getContentRange");function jKe(t,e,r,n,o){return lr(this,void 0,void 0,function*(){N(`Uploading chunk of size ${o-n+1} bytes at offset ${n} with content range: ${pie(n,o)}`);let s={"Content-Type":"application/octet-stream","Content-Range":pie(n,o)},a=yield s2(`uploadChunk (start: ${n}, end: ${o})`,()=>lr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!FC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(jKe,"uploadChunk");function $Ke(t,e,r,n){return lr(this,void 0,void 0,function*(){let o=ns(r),s=kM(`caches/${e.toString()}`),a=i2.openSync(r,"r"),c=_T(n),u=l6("uploadConcurrency",c.uploadConcurrency),p=l6("uploadChunkSize",c.uploadChunkSize),A=[...new Array(u).keys()];N("Awaiting all uploads");let l=0;try{yield Promise.all(A.map(()=>lr(this,void 0,void 0,function*(){for(;l<o;){let b=Math.min(o-l,p),M=l,z=l+b-1;l+=p,yield jKe(t,s,()=>i2.createReadStream(r,{fd:a,start:M,end:z,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),M,z)}})))}finally{i2.closeSync(a)}})}i($Ke,"uploadFile");function KKe(t,e,r){return lr(this,void 0,void 0,function*(){let n={size:r};return yield _M("commitCache",()=>lr(this,void 0,void 0,function*(){return t.postJson(kM(`caches/${e.toString()}`),n)}))})}i(KKe,"commitCache");function HT(t,e,r,n){return lr(this,void 0,void 0,function*(){if(_T(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Yse(r,e,n)}else{let s=UT();N("Upload cache"),yield $Ke(s,t,e,n),N("Commiting cache");let a=ns(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield KKe(s,t,a);if(!FC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}i(HT,"saveCache");var aae=w(eae(),1),E1=w(g1(),1),Zr=w(g1(),1),Mp=w(g1(),1),hp=w(g1(),1),mp=w(g1(),1);var Qv=w(g1(),1),_v=w(g1(),1),oae=w(g1(),1),sae=w(g1(),1),iae=w(g1(),1);var Tv=w(g1(),1),vv=w(g1(),1),tae=w(g1(),1),rae=w(g1(),1),nae=w(g1(),1);var Lv=class extends nae.MessageType{static{i(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,rae.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,tae.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let s=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?vv.UnknownFieldHandler.onRead:p)(this.typeName,s,c,u,A)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Tv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Tv.WireType.Varint).int64(e.permission);let o=n.writeUnknownFields;return o!==!1&&(o==!0?vv.UnknownFieldHandler.onWrite:o)(this.typeName,e,r),r}},Ey=new Lv;var Pv=class extends iae.Mess
`));let n=yield rL(r,"create");yield nL(n,t)})}i(sL,"createTar");var E2=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},qo=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},zp=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},iL="cache write denied:",qy=class t extends zp{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Aae=o3,Dy=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},Iy=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function lae(t){if(!t||t.length===0)throw new qo("Path Validation Error: At least one directory or file path is required")}i(lae,"checkPaths");function aL(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.`)}i(aL,"checkKey");function cL(){return PM()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(cL,"isFeatureAvailable");function dae(t,e,r,n){return E2(this,arguments,void 0,function*(o,s,a,c,u=!1){let p=PM();N(`Cache service version: ${p}`),lae(o);let A=kT();if(!oie(A)){S(`Cache restore skipped: the effective cache-mode '${A}' does not permit reads.`),N(`Skipped restore for paths [${o.join(", ")}] with primary key '${s}'.`);return}return p==="v2"?yield d00(o,s,a,c,u):yield l00(o,s,a,c,u)})}i(dae,"restoreCache");function l00(t,e,r,n){return E2(this,arguments,void 0,function*(o,s,a,c,u=!1){var p;a=a||[];let A=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(A)),A.length>10)throw new qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let M of A)aL(M);let l=yield _f(),b="";try{let M;try{M=yield lie(A,o,{compressionMethod:l,enableCrossOsArchive:u})}catch(g){let y=(p=g?.message)!==null&&p!==void 0?p:"";throw y.includes(Aae)?new Dy(y):g}if(!M?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),M.cacheKey;b=oh.join(yield Lf(),ac(l)),N(`Archive Path: ${b}`),yield GT(M.archiveLocation,b,c),Li()&&(yield nh(b,l));let z=ns(b);return S(`Cache Size: ~${Math.round(z/(1024*1024))} MB (${z} B)`),yield oL(b,l),S("Cache restored successfully"),M.cacheKey}catch(M){let z=M;if(z.name===qo.name)throw M;z instanceof os&&typeof z.statusCode=="number"&&z.statusCode>=500?ml(`Failed to restore: ${M.message}`):o0(`Failed to restore: ${M.message}`)}finally{try{yield Qf(b)}catch(M){N(`Failed to delete archive: ${M}`)}}})}i(l00,"restoreCacheV1");function d00(t,e,r,n){return E2(this,arguments,void 0,function*(o,s,a,c,u=!1){var p;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(A)),A.length>10)throw new qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let b of A)aL(b);let l="";try{let b=tL(),M=yield _f(),z={key:s,restoreKeys:a,version:Rl(o,M,u)},g;try{g=yield b.GetCacheEntryDownloadURL(z)}catch(B){let q=(p=B?.message)!==null&&p!==void 0?p:"";throw q.includes(Aae)?new Dy(q):B}if(!g.ok){N(`Cache not found for version ${z.version} of keys: ${A.join(", ")}`);return}if(z.key!==g.matchedKey?S(`Cache hit for restore-key: ${g.matchedKey}`):S(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),g.matchedKey;l=oh.join(yield Lf(),ac(M)),N(`Archive path: ${l}`),N(`Starting download of archive to: ${l}`)
`)}i(u10,"_buildMessageForResponseErrors");var p10=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(u10(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},A10=["method","baseUrl","url","headers","request","query","mediaType","operationName"],l10=["query","method","url"],ece=/\/api\/v3\/?$/;function d10(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(l10.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,o=Object.keys(n).reduce((a,c)=>A10.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return ece.test(s)&&(o.url=s.replace(ece,"/api/graphql")),t(o).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new p10(o,c,a.data)}return a.data.data})}i(d10,"graphql");function EL(t,e){let r=t.defaults(e);return Object.assign(i((o,s)=>d10(r,o,s),"newApi"),{defaults:EL.bind(null,r),endpoint:r.endpoint})}i(EL,"withDefaults");var We1=EL(uh,{headers:{"user-agent":`octokit-graphql.js/${c10} ${Bc()}`},method:"POST",url:"/graphql"});function tce(t){return EL(t,{method:"POST",url:"/graphql"})}i(tce,"withCustomRequest");var CL="(?:[a-zA-Z0-9_-]+)",rce="\\.",nce=new RegExp(`^${CL}${rce}${CL}${rce}${CL}$`),b10=nce.test.bind(nce);async function f10(t){let e=b10(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(f10,"auth");function M10(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(M10,"withAuthorizationPrefix");async function h10(t,e,r,n){let o=e.endpoint.merge(r,n);return o.headers.authorization=M10(t),e(o)}i(h10,"hook");var oce=i(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(f10.bind(null,e),{hook:h10.bind(null,e)})},"createTokenAuth2");var yL="7.0.6";var sce=i(()=>{},"noop"),m10=console.warn.bind(console),z10=console.error.bind(console);function O10(t={}){return typeof t.debug!="function"&&(t.debug=sce),typeof t.info!="function"&&(t.info=sce),typeof t.warn!="function"&&(t.warn=m10),typeof t.error!="function"&&(t.error=z10),t}i(O10,"createLogger");var ice=`octokit-core.js/${yL} ${Bc()}`,_y=class{static{i(this,"Octokit")}static VERSION=yL;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let o=n[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(o=>!r.includes(o)))}}constructor(e={}){let r=new Fae.Collection,n={baseUrl:uh.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${ice}`:ice,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=uh.defaults(n),this.graphql=tce(this.request).defaults(n),this.log=O10(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(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 s=oce(e.auth);r.wrap("request",s.hook),this.auth=s}let o=this.constructor;for(let s=0;s<o.plugins.length;++s)
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<M},"__needMoreData"),parse:i(function(n,o,s,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:M,raw:z,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:R,escape:v,quote:x,record_delimiter:L}=this.options,{bomSkipped:ue,delimiterDiscovered:Fe,delimiterBufPrevious:Ge,rawBuffer:ye,escapeIsQuote:De}=this.state;if(!Fe&&p){let _e;if(Ge===void 0?_e=n:Ge!==void 0&&n===void 0?_e=Ge:_e=Buffer.concat([Ge,n]),n=void 0,o||_e.length>p.size)this.options.delimiter=[Buffer.from(qle(_e,this.options.delimiter_auto))],this.state.previousBuf=_e,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=_e;return}}let{previousBuf:Ye}=this.state,le;if(Ye===void 0)if(n===void 0){a();return}else le=n;else Ye!==void 0&&n===void 0?le=Ye:le=Buffer.concat([Ye,n]);if(ue===!1)if(c===!1)this.state.bomSkipped=!0;else if(le.length<3){if(o===!1){this.state.previousBuf=le;return}}else{for(let _e in P2)if(P2[_e].compare(le,0,P2[_e].length)===0){let D0=P2[_e].length;this.state.bufBytesStart+=D0,le=le.slice(D0);let bt=_2({...this.original_options,encoding:_e});for(let Ze in bt)this.options[Ze]=bt[Ze];({comment:R,escape:v,quote:x}=this.options);break}this.state.bomSkipped=!0}let f0=le.length,J;for(J=0;J<f0&&!this.__needMoreData(J,f0,o);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&L.length===0&&this.__autoDiscoverRecordDelimiter(le,J)&&(L=this.options.record_delimiter);let _e=le[J];if(z===!0&&ye.append(_e),(_e===aa0||_e===ca0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(v!==null&&this.state.quoting===!0&&this.__isEscape(le,J,_e)&&J+v.length<f0)if(De){if(this.__isQuote(le,J+v.length)){this.state.escaping=!0,J+=v.length-1;continue}}else{this.state.escaping=!0,J+=v.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(le,J))if(this.state.quoting===!0){let Ze=le[J+x.length],x1=y&&this.__isCharTrimable(le,J+x.length),Je=R!==null&&this.__compareBytes(R,le,J+x.length,Ze),se=this.__isDelimiter(le,J+x.length,Ze),Ra=L.length===0?this.__autoDiscoverRecordDelimiter(le,J+x.length):this.__isRecordDelimiter(Ze,le,J+x.length);if(v!==null&&this.__isEscape(le,J,_e)&&this.__isQuote(le,J+v.length))J+=v.length-1;else if(!Ze||se||Ra||Je||x1){this.state.quoting=!1,this.state.wasQuoting=!0,J+=x.length-1;continue}else if(g===!1){let Zc=this.__error(new Ve("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(Zc!==void 0)return Zc}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),J+=x.length-1}else if(this.state.field.length!==0){if(g===!1){let Ze=this.__infoField(),x1=Object.keys(P2).map(se=>P2[se].equals(this.state.field.toString())?se:!1).filter(Boolean)[0],Je=this.__error(new Ve("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(A))}`,x1?`(${x1} bom)`:void 0],this.options,Ze,{field:this.state.field}));if(Je!==void 0)return Je}}else{this.state.quoting=!0,J+=x.length-1;continue}if(this.state.quoting===!1){let Ze=this.__isRecordDelimiter(_e,le,J);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(),J+=Ze-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=Ze-1;continue}this.info.bytes=this.state.bufBytesSt
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var z0=class t{static{i(this,"Buildx")}_version;_versionOnce;_standalone;static containerNamePrefix="buildx_buildkit_";constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}static get configDir(){return process.env.BUILDX_CONFIG||hr.default.join(yt.configDir,"buildx")}static get refsDir(){return hr.default.join(t.configDir,"refs")}static get refsGroupDir(){return hr.default.join(t.refsDir,"__group__")}static get certsDir(){return hr.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await yt.isAvailable();return N(`Buildx.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"buildx":"docker",args:r?e:["buildx",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Ce.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(N(`Buildx.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(N(`Buildx.isAvailable error: ${n}`),!1));return N(`Buildx.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Ce.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Ce.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse buildx version");return r[1]}static getErrorMessage(e){let r=(0,Fle.stripVTControlCharacters)(e).split(/[\r\n]/),n="";for(let o=r.length-1;o>=0;o--){let s=r[o].trim();if(s.startsWith("ERROR:"))return s.slice(6).trim()||"unknown error";n||=s}return n||"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return N("Buildx.versionSatisfies false: undefined version"),!1;let o=Wle.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return N(`Buildx.versionSatisfies ${n} statisfies ${e}: ${o}`),o}static resolveCertsDriverOpts(e,r,n){let o;try{o=new URL(r)}catch{return[]}if(o.protocol!="tcp:")return[];let s=[];if(Object.keys(n).length==0)return s;let a=o.hostname;if(o.port.length>0&&(a+=`-${o.port}`),n.cacert!==void 0){let c=hr.default.join(t.certsDir,`cacert_${a}.pem`);Un.default.writeFileSync(c,n.cacert),s.push(`cacert=${c}`)}if(n.cert!==void 0){let c=hr.default.join(t.certsDir,`cert_${a}.pem`);Un.default.writeFileSync(c,n.cert),s.push(`cert=${c}`)}if(n.key!==void 0){let c=hr.default.join(t.certsDir,`key_${a}.pem`);Un.default.writeFileSync(c,n.key),s.push(`key=${c}`)}return e!="remote"?[]:s}static localState(e,r){let[n,o,s]=e.split("/");if(!n||!o||!s)throw new Error(`Invalid build reference: ${e}`);let a=hr.default.join(r||t.refsDir,n,o,s);if(!Un.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Un.default.readFileSync(a,"utf8")))}static fixLocalState(e){let r=i(function(a){let c=a.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);if(c&&c.length==3){let u=c[1],p=c[2];return p.startsWith("https:/")&&!p.startsWith("https://")&&(p=p.replace("https:/","https://")),p.startsWith("http:/")&&!p.startsWith("http://")&&(p=p.replace("http:/","http://")),p.startsWith("ssh:/")&&!p.startsWith("ssh://")&&(p=p.replace("ssh:/","ssh://")),p.startsWith("git:/")&&!p.startsWith("git://")&&(p=p.replace("git:/","git://")),[p,u,!0]}return[a,"",!1]},"fnTrimToValidContext"),[n,o,s]=r(e.LocalPath);return s&&(e.LocalPath=n,e.DockerfilePath.indexOf(o)===0&&(e.DockerfilePa
More info: ${u.url}`);let M=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,z=!1;for(let g of a)if(g.remote||g.path.endsWith(p)&&g.content===A){c.push({title:l,message:b,file:g.path,startLine:M}),z=!0;break}z||N(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${p}: ${l}`)}return c}};var wp=w(require("fs"),1),s8=w(require("path"),1);var HB=class t{static{i(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new z0,this.iidFilename=`build-iidfile-${p0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${p0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},o=Object.entries(n).filter(([M])=>!r.has(M)),s=p0.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||Ht.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&p0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${u0.serverURL}/${Ht.repo.owner}/${Ht.repo.repo}.git`,u=e?.checksum||n.checksum,p=e?.subdir||n.subdir,A=e?.format;if(!A){if(A="fragment",o.length>0)A="query";else if(p0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(A="query")}catch{}}let l=Ht.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(l=typeof Ht.payload.pull_request?.head?.sha=="string"?Ht.payload.pull_request.head.sha:a);let b=u||l;if(A==="query"){let M=[`ref=${s||u?a:b}`],z=s?b:u;z&&M.push(`checksum=${z}`),p&&p!=="."&&M.push(`subdir=${p}`);for(let[g,y]of o)M.push(`${g}=${y}`);return`${c}?${M.join("&")}`}return`${c}#${b}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return s8.default.join(a0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(wp.default.existsSync(e))return wp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return s8.default.join(a0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!wp.default.existsSync(e))return;let r=wp.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,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,o]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!wp.default.existsSync(o))throw new Error(`secret file ${o} not found`);return[n,o]}let s=a0.tmpName({tmpdir:a0.tmpDir()});return wp.default.writeFileSync(s,o),[n,s]}static getProvenanceInput(e){let r=_r(e);if(!r)return r;try{return J$(e)?`builder-id=${u0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${u0.workflowRunURL(!0)}`;let r=w1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim())[0]=="builder-id")return e;return`${e},builder-id=${u0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",o="",s="",a=w1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?n=u[1]:u[0]==="repository"?o=u[1]:u[0]==="ghtoken"&&(s=u[1])}return n==="gha"&&(o||(e=`${e},repository=${u0.repository}`),!s&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExpo
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n){if(o.length==1&&!o[0].startsWith("type="))return e=="local";for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=w1(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n)for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=w1(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let o of r)for(let s of o)try{let a=p0.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),o=e.substring(0,n),s=e.substring(n+1);if(o.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&$o(s),[o,s]}};var i8=w(require("fs"),1),xle=w(require("path"),1);var XB=class t{static{i(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new z0,this.metadataFilename=`bake-metadata-${p0.generateRandomString()}.json`}getMetadataFilePath(){return xle.default.join(a0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!i8.default.existsSync(e))return;let r=i8.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],o,s=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!p0.isValidRef(u)){s.push(u);continue}if(o)throw new Error("Only one remote bake definition can be defined");o=u}}o&&n.push(o);for(let u of s)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Ce.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${z0.getErrorMessage(u.stderr)}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let o=r.target[n];o.attest&&Array.isArray(o.attest)&&(o.attest=o.attest.map(s=>t.parseAttestEntry(s))),o["cache-from"]&&Array.isArray(o["cache-from"])&&(o["cache-from"]=o["cache-from"].map(s=>t.parseCacheEntry(s))),o["cache-to"]&&Array.isArray(o["cache-to"])&&(o["cache-to"]=o["cache-to"].map(s=>t.parseCacheEntry(s))),o.output&&Array.isArray(o.output)&&(o.output=o.output.map(s=>t.parseExportEntry(s))),o.secret&&Array.isArray(o.secret)&&(o.secret=o.secret.map(s=>t.parseSecretEntry(s))),o.ssh&&Array.isArray(o.ssh)&&(o.ssh=o.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=w1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=p0.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=w1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c
`)[0])}static async isHeadDetached(e){return await t.exec(["branch","--show-current"],e).then(r=>r.length==0)}static async getDetachedRef(e){let r=await t.exec(["show","-s","--pretty=%D"],e);N(`detached HEAD ref: ${r}`);let n=r.replace(/^grafted, /,"").trim();if(n==="HEAD")return await t.inferRefFromHead(e);let o=n.match(/^HEAD, (.*)$/);if(!o||!o[1])throw new Error(`Cannot find detached HEAD ref in "${r}"`);let s=o[1].trim();if(s.startsWith("tag: "))return await t.findDetachedTagRef(s,r,e);if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let c=s.match(/^[^/]+\/[^/]+, (.+)$/);if(c)return`refs/heads/${c[1].trim()}`;let u=s.match(/^[^/]+\/(.+)$/);if(u)return`refs/heads/${u[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${r}"`)}static async exec(e=[],r){return await Ce.getExecOutput("git",e,{cwd:r,ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async inferRefFromHead(e){let r=await t.findContainingRef("refs/heads/",e);if(r)return r;let n=await t.findContainingRef("refs/remotes/",e);if(n){let a=n.match(/^refs\/remotes\/[^/]+\/(.+)$/);return a?`refs/heads/${a[1]}`:n}let o=await t.exec(["tag","--contains","HEAD"],e),[s]=o.split(`
`).map(a=>a.trim()).filter(a=>a.length>0).sort((a,c)=>c.length-a.length);for(let a of s){let c=`tag: ${a.slice(10)}`;if(e===c||e.startsWith(`${c}, `))return a}if(s.length===1)return s[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e,r){let n=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e],r),[o]=n.split(`
${p}`),await new Promise(A=>setTimeout(A,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${Cr.getErrorMessage(c.stderr)}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},o=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await st(`Signing ${a}`,async()=>{let c=s[a],u=ei.default.join(ei.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),p=t.getProvenanceSubjects(c);if(p.length===0){o0(`No subjects found in provenance ${a}, skip signing.`);return}let A=ei.default.join(ei.default.dirname(a),p[0].name),l=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",jbe,"--bundle",u,...o];S(`[command]${this.cosign.binPath} ${[...l,A].join(" ")}`);let b=await Ce.getExecOutput(this.cosign.binPath,["--verbose",...l,A],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),M=Cr.parseCommandOutput(b.stderr.trim());if(b.exitCode!=0)if(M.errors&&M.errors.length>0){let g=M.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
`,bakeTarget:_r("bake-target")||"docker-metadata-action",githubToken:_r("github-token")}}i(ofe,"getInputs");async function sfe(t,e){if(t.startsWith("git:"))return await nfe(t.slice(4));switch(t){case"workflow":return await fd0(e);case"git":return await nfe();default:throw new Error(`Invalidcontextsource:${t}`)}}i(sfe,"getContext");async function fd0(t){let e=u0.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 Md0(e.sha,t),...e}}i(fd0,"getContextFromWorkflow");async function nfe(t){let e=await Aa.context(t);return{commitDate:await Aa.commitDate(e.sha,t),...e}}i(nfe,"getContextFromGit");async function Md0(t,e){let r=u0.context.payload;if(r.commits){let n=r.commits.find(o=>o.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:u0.context.repo.owner,repo:u0.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return N(`FailedtogetcommitdatefromGitHubAPI:${n.message}`),new Date}}i(Md0,"getCommitDateFromWorkflow");var Ia=w(e8(),1),$Be=w(require("fs"),1),KBe=w(require("path"),1),tz=w(Afe(),1),an=w(XBe(),1),Ud=w(Qn(),1);function YBe(t){let e=[];if(t.length==1){let r=!1,n=w1(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let s=o.toString().split("=").map(a=>a.trim());if(s.length==1)e.push({name:s[0],enable:!0});else{r=!0;break}}if(!r)return VBe(e)}e=[];for(let r of t){let n={name:"",enable:!0},o=w1(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of o){let a=s.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalidenableattributevalue:${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknownimageattribute:${r}`)}}}if(n.name.length==0)throw new Error(`Imagenameattributeempty:${r}`);e.push(n)}return VBe(e)}i(YBe,"Transform");function VBe(t){Wu("Processing images input");for(let e of t)S(`name=${e.name},enable=${e.enable}`);return xu(),t}i(VBe,"output");var i9=(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))(i9||{}),F4=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(F4||{}),W4=(r=>(r.Short="short",r.Long="long",r))(W4||{}),s9=class{static{i(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(",")}},iq0={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function JBe(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(aq0(n));let r=e.sort((n,o)=>Number(n.attrs.priority)<Number(o.attrs.priority)?1:Number(n.attrs.priority)>Number(o.attrs.priority)?-1:0);Wu("Processing tags input");for(let n of r)S(n.toString());return xu(),r}i(JBe,"Transform");function aq0(t){let e=w1(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new s9;for(let n of e){let o=n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim());if(o.length==1)r.attrs.value=o[0];else{let s=o[0].toLowerCase(),a=o[1];switch(s){case"type":{if(!Object.values(i9).includes(a))throw new Error(`Unknowntagtypeattribute:${a}`);r.type=a;break}default:{r.attrs[s]=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