varZW=Object.create;varpy=Object.defineProperty;varej=Object.getOwnPropertyDescriptor;vartj=Object.getOwnPropertyNames;varrj=Object.getPrototypeOf,sj=Object.prototype.hasOwnProperty;varg=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nj=(t,e)=>{for(varrine)py(t,r,{get:e[r],enumerable:!0})},ij=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letnoftj(e))!sj.call(t,n)&&n!==r&&py(t,n,{get:()=>e[n],enumerable:!(s=ej(e,n))||s.enumerable});returnt};varQ=(t,e,r)=>(r=t!=null?ZW(rj(t)):{},ij(e||!t||!t.__esModule?py(r,"default",{value:t,enumerable:!0}):r,t));varMT=g(La=>{"use strict";varWIe=require("net"),uj=require("tls"),Iy=require("http"),DT=require("https"),dj=require("events"),jIe=require("assert"),mj=require("util");La.httpOverHttp=pj;La.httpsOverHttp=hj;La.httpOverHttps=gj;La.httpsOverHttps=fj;functionpj(t){vare=newqn(t);returne.request=Iy.request,e}functionhj(t){vare=newqn(t);returne.request=Iy.request,e.createSocket=kT,e.defaultPort=443,e}functiongj(t){vare=newqn(t);returne.request=DT.request,e}functionfj(t){vare=newqn(t);returne.request=DT.request,e.createSocket=kT,e.defaultPort=443,e}functionqn(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Iy.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(vara=vT(n,i,o),c=0,l=e.requests.length;c<l;++c){varA=e.requests[c];if(A.host===a.host&&A.port===a.port){e.requests.splice(c,1),A.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}mj.inherits(qn,dj.EventEmitter);qn.prototype.addRequest=function(e,r,s,n){vari=this,o=By({request:e},i.options,vT(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);functionc(){i.emit("free",a,o)}functionl(A){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};qn.prototype.createSocket=function(e,r){vars=this,n={};s.sockets.push(n);vari=By({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+newBuffer(i.proxyAuth).toString("base64")),wi("making CONNECT request");varo=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",A),o.end();functiona(u){u.upgrade=!0}functionc(u,d,m){process.nextTick(function(){l(u,d,m)})}functionl(u,d,m){if(o.removeAllListeners(),d.removeAllListeners(),u.statusCode!==200){wi("tunneling socket could not be established, statusCode=%d",u.statusCode),d.destroy();varp=newError("tunneling socket could not be established, statusCode="+u.statusCode);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n);return}if(m.length>0){wi("got illegal response body from proxy"),d.destroy();varp=newError("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n);return}returnwi("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}functionA(u){o.removeAllListeners(),wi(`tunneling socket could not be established, cause=%s
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function$a(t,e,r){lets=r.position;for(;s<e.length&&t(e[s]);)++s;returne.subarray(r.position,r.position=s)}functionxC(t,e,r,s){letn=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;returnn===0&&i===t.length-1?t:t.subarray(n,i+1)}functionfm(t,e,r){if(t.length<e.length)return!1;for(lets=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}GD.exports={multipartFormDataParser:k8,validateBoundary:D8}});varKa=g((wBe,XD)=>{"use strict";variA=ie(),{ReadableStreamFrom:M8,isBlobLike:HD,isReadableStreamLike:L8,readableStreamClose:F8,createDeferredPromise:U8,fullyReadBody:_8,extractMimeType:O8,utf8DecodeBytes:VD}=Ir(),{FormData:zD}=nA(),{kState:ja}=xi(),{webidl:G8}=Nt(),{Blob:q8}=require("node:buffer"),NC=require("node:assert"),{isErrored:JD,isDisturbed:H8}=require("node:stream"),{isArrayBuffer:z8}=require("node:util/types"),{serializeAMimeType:Y8}=tr(),{multipartFormDataParser:V8}=qD(),SC;try{lett=require("node:crypto");SC=e=>t.randomInt(0,e)}catch{SC=t=>Math.floor(Math.random(t))}varEm=newTextEncoder;functionJ8(){}var$D=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,WD;$D&&(WD=newFinalizationRegistry(t=>{lete=t.deref();e&&!e.locked&&!H8(e)&&!JD(e)&&e.cancel("Response object has been garbage collected").catch(J8)}));functionjD(t,e=!1){letr=null;tinstanceofReadableStream?r=t:HD(t)?r=t.stream():r=newReadableStream({asyncpull(c){letl=typeofn=="string"?Em.encode(n):n;l.byteLength&&c.enqueue(l),queueMicrotask(()=>F8(c))},start(){},type:"bytes"}),NC(L8(r));lets=null,n=null,i=null,o=null;if(typeoft=="string")n=t,o="text/plain;charset=UTF-8";elseif(tinstanceofURLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";elseif(z8(t))n=newUint8Array(t.slice());elseif(ArrayBuffer.isView(t))n=newUint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));elseif(iA.isFormDataLike(t)){letc=`----formdata-undici-0${`${SC(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
`);d.push(h),i+=h.byteLength,p&&(i=null),n=t,s=asyncfunction*(){for(letyofd)y.stream?yield*y.stream():yieldy},o=`multipart/form-data; boundary=${c}`}elseif(HD(t))n=t,i=t.size,t.type&&(o=t.type);elseif(typeoft[Symbol.asyncIterator]=="function"){if(e)thrownewTypeError("keepalive");if(iA.isDisturbed(t)||t.locked)thrownewTypeError("Response body object should not be disturbed or locked");r=tinstanceofReadableStream?t:M8(t)}if((typeofn=="string"||iA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){letc;r=newReadableStream({asyncstart(){c=s(t)[Symbol.asyncIterator]()},asyncpull(l){let{value:A,done:u}=awaitc.next();if(u)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});elseif(!JD(r)){letd=newUint8Array(A);d.byteLength&&l.enqueue(d)}returnl.desiredSize>0},asynccancel(l){awaitc.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function$8(t,e=!1){returntinstanceofReadableStream&&(NC(!iA.isDisturbed(t),"The body has already been consumed."),NC(!t.locked,"The stream is locked.")),jD(t,e)}functionW8(t,e){let[r,s]=e.stream.tee();returne.stream=r,{stream:s,length:e.length,source:e.source}}functionj8(t){if(t.aborted)thrownewDOMException("The operation was aborted.","AbortError")}functionK8(t){return{blob(){returnWa(this,r=>{lets=YD(this);returns===null?s="":s&&(s=Y8(s)),newq8([r],{type:s})},t)},arrayBuffer(){returnWa(this,r=>newUint8Array(r).buffer,t)},text(){returnWa(this,VD,t)},json(){returnWa(this,Z8,t)},formData(){returnWa(this,r=>{lets=YD(this);if(s!==null)switch(s.essence){case"multipart/form-data":{letn=V8(r,s);if(n==="failure")thrownewTypeError("Failed to parse body as FormData.");leti=newzD;returni[ja]=n,i}case"application/x-www-form-urlencoded":{letn=newURLSearchParams(r.toString()),i=newzD;for(let[o,a]ofn)i.append(o,a);returni}}thrownewTypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){returnWa(this,r=>newUint8Array(r),t)}}}functionX8(t){Object.assign(t.prototype,K8(t))}asyncfunctionWa(t,e,r){if(G8.brandCheck(t,r),KD(t))thrownewTypeError("Body is unusable: Body has already been read");j8(t[ja]);lets=U8(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};returnt[ja].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await_8(t[ja].body,i,n),s.promise)}functionKD(t){lete=t[ja].body;returne!=null&&(e.stream.locked||iA.isDisturbed(e.stream))}functionZ8(t){returnJSON.parse(VD(t))}functionYD(t){lete=t[ja].headersList,r=O8(e);returnr==="failure"?null:r}XD.exports={extractBody:jD,safelyExtractBody:$8,cloneBody:W8,mixinBody:X8,streamRegistry:WD,hasFinalizationRegistry:$D,bodyUnusable:KD}});vardk=g((xBe,uk)=>{"use strict";varz=require("node:assert"),X=ie(),{channels:ZD}=Ua(),RC=AC(),{RequestContentLengthMismatchError:bo,ResponseContentLengthMismatchError:ek,RequestAbortedError:ck,HeadersTimeoutError:eK,HeadersOverflowError:tK,SocketError:wm,InformationalError:Xa,BodyTimeoutError:rK,HTTPParserError:sK,ResponseExceededMaxSizeError:nK}=ge(),{kUrl:lk,kReset:rr,kClient:Bm,kParser:He,kBlocking:cA,kRunning:Dt,kPending:iK,kSize:tk,kWriting:Si,kQueue:ys,kNoRef:oA,kKeepAliveDefaultTimeout:oK,kHostHeader:aK,kPendingIdx:cK,kRunningIdx:Wr,kError:qt,kPipelining:Qm,kSocket:Za,kKeepAliveTimeoutValue:xm,kMaxHeadersSize:TC,kKeepAliveMaxTimeout:lK,kKeepAliveTimeoutThreshold:AK,kHeadersTimeout:uK,kBodyTimeout:dK,kStrictContentLength:kC,kMaxRequests:rk,kCounter:mK,kMaxResponseSize:pK,kOnError:sk,kResume:Ni,kHTTPContext:Ak}=ke(),Br=WP(),nk=Buffer.alloc(0),ym=Buffer[Symbol.species],Cm=X.addListener,hK=X.removeAllListeners,PC;asyncfunctiongK(){lett=process.env.JEST_WORKER_ID?mC():void0,e;try{e=awaitWebAssembly.compile(XP())}catch{e=awaitWebAssembly.compile(t||mC())}returnawaitWebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{z(qe.ptr===r);leti=s-Js+Vs.byteOffset;returnqe.onStatus(newym(Vs.buffer,i,n))||0},wasm_on_message_begin:r=>(z(qe.ptr===r),qe.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{z(qe.ptr===r);leti=s-Js+Vs.byteOffset;returnqe.onH
`}return ZD.sendHeaders.hasSubscribers&&ZD.sendHeaders.publish({request:e,headers:h,socket:m}),!c||d===0?ok(p,null,t,e,m,A,h,u):X.isBuffer(c)?ok(p,c,t,e,m,A,h,u):X.isBlobLike(c)?typeof c.stream=="function"?ak(p,c.stream(),t,e,m,A,h,u):QK(p,c,t,e,m,A,h,u):X.isStream(c)?BK(p,c,t,e,m,A,h,u):X.isIterable(c)?ak(p,c,t,e,m,A,h,u):z(!1),!0}function BK(t,e,r,s,n,i,o,a){z(i!==0||r[Dt]===0,"stream body cannot be pipelined");let c=!1,l=new Nm({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),A=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(h){X.destroy(this,h)}},u=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!c){let p=new ck;queueMicrotask(()=>m(p))}},m=function(p){if(!c){if(c=!0,z(n.destroyed||n[Si]&&r[Dt]<=1),n.off("drain",u).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",d),!p)try{l.end()}catch(h){p=h}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?X.destroy(e,p):X.destroy(e)}};e.on("data",A).on("end",m).on("error",m).on("close",d),e.resume&&e.resume(),n.on("drain",u).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function ok(t,e,r,s,n,i,o,a){try{e?X.isBuffer(e)&&(z(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length:${i}\r
`,"latin1"):(z(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Ni]()}catch(c){t(c)}}async function QK(t,e,r,s,n,i,o,a){z(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new bo;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length:${i}\r
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[rr]=!0),r[Ni]()}catch(c){t(c)}}async function ak(t,e,r,s,n,i,o,a){z(i!==0||r[Dt]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let A=()=>new Promise((d,m)=>{z(c===null),n[qt]?m(n[qt]):c=d});n.on("close",l).on("drain",l);let u=new Nm({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[qt])throw n[qt];u.write(d)||await A()}u.end()}catch(d){u.destroy(d)}finally{n.off("close",l).off("drain",l)}}var Nm=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Si]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[qt])throw r[qt];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&o+l>n){if(i[kC])throw new bo;process.emitWarning(new bo)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[rr]=!0),n===null?r.write(`${c}transfer-encoding:chunked\r
`,"latin1"),r!==null&&n!==r){if(s[kC])throw new bo;process.emitWarning(new bo)}e[He].timeout&&e[He].timeoutType===ec&&e[He].timeout.refresh&&e[He].timeout.refresh(),s[Ni]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Si]=!1,e&&(z(s[Dt]<=1,"pipeline should only contain this request"),n(e))}};uk.exports=EK});var Ck=g((NBe,yk)=>{"use strict";var jr=require("node:assert"),{pipeline:bK}=require("node:stream"),le=ie(),{RequestContentLengthMismatchError:FC,RequestAbortedError:mk,SocketError:lA,InformationalError:UC}=ge(),{kUrl:Sm,kReset:Tm,kClient:tc,kRunning:Pm,kPending:wK,kQueue:Ri,kPendingIdx:_C,kRunningIdx:Cs,kError:Bs,kSocket:Ct,kStrictContentLength:xK,kOnError:OC,kMaxConcurrentStreams:Ek,kHTTP2Session:Is,kResume:Ti,kSize:NK,kHTTPContext:SK}=ke(),$n=Symbol("open streams"),pk,hk=!1,Rm;try{Rm=require("node:http2")}catch{Rm={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:RK,HTTP2_HEADER_METHOD:TK,HTTP2_HEADER_PATH:PK,HTTP2_HEADER_SCHEME:DK,HTTP2_HEADER_CONTENT_LENGTH:kK,HTTP2_HEADER_EXPECT:vK,HTTP2_HEADER_STATUS:MK}}=Rm;function LK(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function FK(t,e){t[Ct]=e,hk||(hk=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Rm.connect(t[Sm],{createConnection:()=>e,peerMaxConcurrentStreams:t[Ek]});r[$n]=0,r[tc]=t,r[Ct]=e,le.addListener(r,"error",_K),le.addListener(r,"frameError",OK),le.addListener(r,"end",GK),le.addListener(r,"goaway",qK),le.addListener(r,"close",function(){let{[tc]:n}=this,{[Ct]:i}=n,o=this[Ct][Bs]||this[Bs]||new lA("closed",le.getSocketInfo(i));if(n[Is]=null,n.destroyed){jr(n[wK]===0);let a=n[Ri].splice(n[Cs]);for(let c=0;c<a.length;c++){let l=a[c];le.errorRequest(n,l,o)}}}),r.unref(),t[Is]=r,e[Is]=r,le.addListener(e,"error",function(n){jr(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bs]=n,this[tc][OC](n)}),le.addListener(e,"end",function(){le.destroy(this,new lA("other side closed",le.getSocketInfo(this)))}),le.addListener(e,"close",function(){let n=this[Bs]||new lA("closed",le.getSocketInfo(this));t[Ct]=null,this[Is]!=null&&this[Is].destroy(n),t[_C]=t[Cs],jr(t[Pm]===0),t.emit("disconnect",t[Sm],[t],n),t[Ti]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return zK(t,...n)},resume(){UK(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function UK(t){let e=t[Ct];e?.destroyed===!1&&(t[NK]===0&&t[Ek]===0?(e.unref(),t[Is].unref()):(e.ref(),t[Is].ref()))}function _K(t){jr(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ct][Bs]=t,this[tc][OC](t)}function OK(t,e,r){if(r===0){let s=new UC(`HTTP/2:"frameError"received-type${t},code${e}`);this[Ct][Bs]=s,this[tc][OC](s)}}function GK(){let t=new lA("other side closed",le.getSocketInfo(this[Ct]));this.destroy(t),le.destroy(this[Ct],t)}function qK(t){let e=this[Bs]||new lA(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,le.getSocketInfo(this)),r=this[tc];if(r[Ct]=null,r[SK]=null,this[Is]!=null&&(this[Is].destroy(e),this[Is]=null),le.destroy(this[Ct],e),r[Cs]<r[Ri].length){let s=r[Ri][r[Cs]];r[Ri][r[Cs]++]=null,le.errorRequest(r,s,e),r[_C]=r[Cs]}jr(r[Pm]===0),r.emit("disconnect",r[Sm],[r],e),r[Ti]()}function HK(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function zK(t,e){let r=t[Is],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:A}=e;if(o)return le.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let u={};for(let I=0;I<l.length;I+=2){let x=l[I+0],F=l[I+1];if(Array.isArray(F))for(let J=0;J<F.length;J++)u[x]?u[x]+=`,${F[J]}`:u[x]=F[J];else u[x]=F}let d,{hostname:m,port:p}=t[Sm];u[RK]=i||`${m}${p?`:${p}`:""}`,u[TK]=s;let h=I=>{e.aborted||e.completed||(I=I||new mk,le.errorRequest(t,e,I),d!=null&&le.destroy(d,I),le.destroy(A,I),t[Ri][t[Cs]++]=null,t[Ti]())};try{e.onConnect(h)}catch(I){le.errorRequest(t,e,I)}if(e.aborted)return!1;if(s==="CONNECT"
`.trim())}};ZM.exports=eB});var ep=g((cQe,nL)=>{"use strict";var tL=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:gZ}=ge(),fZ=oc();sL()===void 0&&rL(new fZ);function rL(t){if(!t||typeof t.dispatch!="function")throw new gZ("Argument agent must implement Agent");Object.defineProperty(globalThis,tL,{value:t,writable:!0,enumerable:!1,configurable:!1})}function sL(){return globalThis[tL]}nL.exports={setGlobalDispatcher:rL,getGlobalDispatcher:sL}});var tp=g((AQe,iL)=>{"use strict";iL.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var aL=g((uQe,oL)=>{"use strict";var EZ=km();oL.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let c=new EZ(r,o,n,i);return r(a,c)}}});var lL=g((dQe,cL)=>{"use strict";var yZ=zm();cL.exports=t=>e=>function(s,n){return e(s,new yZ({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var uL=g((mQe,AL)=>{"use strict";var CZ=ie(),{InvalidArgumentError:IZ,RequestAbortedError:BZ}=ge(),QZ=tp(),tB=class extends QZ{#e=1024*1024;#t=null;#r=!1;#i=!1;#n=0;#s=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new IZ("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#s=e}onHeaders(e,r,s,n){let o=CZ.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new BZ(`Responsesize(${o})largerthanmaxSize(${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#s):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function bZ({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new tB({maxSize:i},n);return e(s,o)}}AL.exports=bZ});var pL=g((pQe,mL)=>{"use strict";var{isIP:wZ}=require("node:net"),{lookup:xZ}=require("node:dns"),NZ=tp(),{InvalidArgumentError:gc,InformationalError:SZ}=ge(),dL=Math.pow(2,31)-1,rB=class{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#i,this.pick=e.pick??this.#n}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new SZ("No DNS entries found"));return}this.setRecords(e,a);let c=this.#r.get(e.hostname),l=this.pick(e,c,i.affinity),A;typeof l.port=="number"?A=`:${l.port}`:e.port!==""?A=`:${e.port}`:A="",s(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${A}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#i(e,r,s){xZ(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===dL?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s]
${i}`;break;case"retry":JU(i)&&(r[n]=i);break;case"id":$U(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&JU(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&$U(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}}};WU.exports={EventSourceStream:HB}});var n_=g((YQe,s_)=>{"use strict";var{pipeline:Fte}=require("node:stream"),{fetching:Ute}=PA(),{makeRequest:_te}=yc(),{webidl:ti}=Nt(),{EventSourceStream:Ote}=jU(),{parseMIMEType:Gte}=tr(),{createFastMessageEvent:qte}=wc(),{isNetworkError:KU}=RA(),{delay:Hte}=GB(),{kEnumerableProperty:qo}=ie(),{environmentSettingsObject:XU}=Ir(),ZU=!1,e_=3e3,zA=0,t_=1,YA=2,zte="anonymous",Yte="use-credentials",Tc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#i=zA;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),ti.util.markAsUncloneable(this);let s="EventSource constructor";ti.argumentLengthCheck(arguments,1,s),ZU||(ZU=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=ti.converters.USVString(e,s,"url"),r=ti.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:e_};let n=XU,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=zte;r.withCredentials&&(o=Yte,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=XU.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=_te(a),this.#c()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#c(){if(this.#i===YA)return;this.#i=zA;let e={request:this.#n,dispatcher:this.#o},r=s=>{KU(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(KU(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let n=s.headersList.get("content-type",!0),i=n!==null?Gte(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=t_,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let a=new Ote({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(qte(c.type,c.options))}});Fte(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Ute(e)}async#l(){this.#i!==YA&&(this.#i=zA,this.dispatchEvent(new Event("error")),await Hte(this.#a.reconnectionTime),this.#i===zA&&(this.#a.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){ti.brandCheck(this,t),this.#i!==YA&&(this.#i=YA,this.#s.abort(),this.#n=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}},r_={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:zA,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:t_,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:YA,writable:!1}};Object.defineProperties(Tc,r_);Object.defineProperties(Tc.prototype,r_);Obj
%s`,x,x,E,s);varF=E.type==="*"?MQ:E.type==="?"?vQ:"\\"+E.type;n=!0,s=s.slice(0,E.reStart)+F+"\\("+x}p(),i&&(s+="\\\\");varJ=!1;switch(s.charAt(0)){case"[":case".":case"(":J=!0}for(varae=a.length-1;ae>-1;ae--){varIe=a[ae],Oe=s.slice(0,Ie.reStart),H=s.slice(Ie.reStart,Ie.reEnd-8),ue=s.slice(Ie.reEnd-8,Ie.reEnd),_=s.slice(Ie.reEnd);ue+=_;varBe=Oe.split("(").length-1,Pt=_;for(h=0;h<Be;h++)Pt=Pt.replace(/\)[+*?]?/,"");_=Pt;varJr="";_===""&&e!==Ah&&(Jr="$");varXe=Oe+H+_+Jr+ue;s=Xe}if(s!==""&&n&&(s="(?=.)"+s),J&&(s=d+s),e===Ah)return[s,n];if(!n)returnuoe(t);varOn=r.nocase?"i":"";try{varCr=newRegExp("^"+s+"$",On)}catch{returnnewRegExp("$.")}returnCr._glob=t,Cr._src=s,Cr}Dr.makeRe=function(t,e){returnnewSt(t,e||{}).makeRe()};St.prototype.makeRe=Aoe;functionAoe(){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?MQ:e.dot?roe:soe,s=e.nocase?"i":"",n=t.map(function(i){returni.map(function(o){returno===LQ?r:typeofo=="string"?doe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=newRegExp(n,s)}catch{this.regexp=!1}returnthis.regexp}Dr.match=function(t,e,r){r=r||{};vars=newSt(e,r);returnt=t.filter(function(n){returns.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};St.prototype.match=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;vars=this.options;au.sep!=="/"&&(e=e.split(au.sep).join("/")),e=e.split(YG),this.debug(this.pattern,"split",e);varn=this.set;this.debug(this.pattern,"set",n);vari,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){vara=n[o],c=e;s.matchBase&&a.length===1&&(c=[i]);varl=this.matchOne(c,a,r);if(l)returns.flipNegate?!0:!this.negate}returns.flipNegate?!1:this.negate};St.prototype.matchOne=function(t,e,r){vars=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(varn=0,i=0,o=t.length,a=e.length;n<o&&i<a;n++,i++){this.debug("matchOne loop");varc=e[i],l=t[n];if(this.debug(e,c,l),c===!1)return!1;if(c===LQ){this.debug("GLOBSTAR",[e,c,l]);varA=n,u=i+1;if(u===a){for(this.debug("** at the end");n<o;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;A<o;){vard=t[A];if(this.debug(`
globstar while`,t,A,e,u,d),this.matchOne(t.slice(A),e.slice(u),r))returnthis.debug("globstar found match!",A,o,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,A,e,u);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newfAe.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;lets=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&deletethis.sockets[e])}getName(e){returnthis.isSecureEndpoint(e)?EAe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){letn={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),ainstanceofOH.Agent)try{returna.addRequest(e,n)}catch(c){returns(c)}this[on].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){lete=this[on].currentSocket;if(this[on].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[on].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[on]&&(this[on].defaultPort=e)}getprotocol(){returnthis[on].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[on]&&(this[on].protocol=e)}};Lr.Agent=Sb});varzH=g(Xc=>{"use strict";varyAe=Xc&&Xc.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(Xc,"__esModule",{value:!0});Xc.parseProxyResponse=void0;varCAe=yAe(Zh()),eg=(0,CAe.default)("https-proxy-agent:parse-proxy-response");functionIAe(t){returnnewPromise((e,r)=>{lets=0,n=[];functioni(){letA=t.read();A?l(A):t.once("readable",i)}functiono(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}functiona(){o(),eg("onend"),r(newError("Proxy connection ended before receiving CONNECT response"))}functionc(A){o(),eg("onerror %o",A),r(A)}functionl(A){n.push(A),s+=A.length;letu=Buffer.concat(n,s),d=u.indexOf(`\r
`);let{connect:l,buffered:A}=awaitc;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)returne.once("socket",RAe),r.secureEndpoint?(wu("Upgrading socket connection to TLS"),YH.connect({...JH(VH(r),"host","path","port"),socket:n})):n;n.destroy();letu=newtg.Socket({writable:!1});returnu.readable=!0,e.once("socket",d=>{wu("Replaying proxy buffer for failed request"),(0,bAe.default)(d.listenerCount("data")>0),d.push(A),d.push(null)}),u}};rg.protocols=["http","https"];as.HttpsProxyAgent=rg;functionRAe(t){t.resume()}functionJH(t,...e){letr={},s;for(sint)e.includes(s)||(r[s]=t[s]);returnr}});varZH=g(ur=>{"use strict";varTAe=ur&&ur.__createBinding||(Object.create?(function(t,e,r,s){s===void0&&(s=r);varn=Object.getOwnPropertyDescriptor(e,r);(!n||("get"inn?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void0&&(s=r),t[s]=e[r]})),PAe=ur&&ur.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),KH=ur&&ur.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&TAe(e,t,r);returnPAe(e,t),e};Object.defineProperty(ur,"__esModule",{value:!0});ur.req=ur.json=ur.toBuffer=void0;varDAe=KH(require("http")),kAe=KH(require("https"));asyncfunctionXH(t){lete=0,r=[];forawait(letsoft)e+=s.length,r.push(s);returnBuffer.concat(r,e)}ur.toBuffer=XH;asyncfunctionvAe(t){letr=(awaitXH(t)).toString("utf8");try{returnJSON.parse(r)}catch(s){letn=s;thrown.message+=` (input: ${r})`,n}}ur.json=vAe;functionMAe(t,e={}){lets=((typeoft=="string"?t:t.href).startsWith("https:")?kAe:DAe).request(t,e),n=newPromise((i,o)=>{s.once("response",i).once("error",o).end()});returns.then=n.then.bind(n),s}ur.req=MAe});vars2=g(Fr=>{"use strict";vart2=Fr&&Fr.__createBinding||(Object.create?(function(t,e,r,s){s===void0&&(s=r);varn=Object.getOwnPropertyDescriptor(e,r);(!n||("get"inn?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void0&&(s=r),t[s]=e[r]})),LAe=Fr&&Fr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),r2=Fr&&Fr.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&t2(e,t,r);returnLAe(e,t),e},FAe=Fr&&Fr.__exportStar||function(t,e){for(varrint)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&t2(e,t,r)};Object.defineProperty(Fr,"__esModule",{value:!0});Fr.Agent=void0;varUAe=r2(require("net")),e2=r2(require("http")),_Ae=require("https");FAe(ZH(),Fr);varan=Symbol("AgentBaseInternalState"),Rb=classextendse2.Agent{constructor(e){super(e),this[an]={}}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(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newUAe.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;lets=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&deletethis.sockets[e])}getName(e){return(typeofe.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?_Ae.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){letn={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),ainstanceofe2.Agent)returna.addRequest(e,n);this[an].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){lete=this[an].currentSocket;if(this[an].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[an].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[an]&&(this[an].defaultPort=e)}getprotocol(){returnthis[an].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[an]&&(this[an].protocol=e)}};Fr.Agent=Rb});varo2=g(cs=>{"use strict";varOAe=cs&&cs.__createBinding||(Object.create?(function(t,e,r,s){s===void0&&(s=r);varn=Object.getOwnPropertyDescriptor(e,r);(!n||("get"inn?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void0&&(s=r),t[s]=e[r]})),GAe=cs&&cs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),i2=cs&&cs.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&OAe(e,t,r);returnGAe(e,t),e},qAe=cs&&cs.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(cs,"__esModule",{value:!0});cs.HttpProxyAgent=void0;varHAe=i2(require("net")),zAe=i2(require("tls")),YAe=qAe(Zh()),VAe=require("events"),JAe=s2(),n2=require("url"),Zc=(0,YAe.default)("http-proxy-agent"),sg=classextendsJAe.Agent{constructor(e,r){super(r),this.proxy=typeofe=="string"?newn2.URL(e):e,this.proxyHeaders=r?.headers??{},Zc("Creating new HttpProxyAgent instance: %o",this.proxy.href);lets=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?$Ae(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=newn2.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);letc=typeofthis.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){letl=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(letlofObject.keys(c)){letA=c[l];A&&e.setHeader(l,A)}}asyncconnect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);lets,n;Zc("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Zc("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`)+4,e.outputData[0].data=e._header+s.substring(n),Zc("Output buffer: %o",e.outputData[0].data));leti;returnthis.proxy.protocol==="https:"?(Zc("Creating `tls.Socket`: %o",this.connectOpts),i=zAe.connect(this.connectOpts)):(Zc("Creating `net.Socket`: %o",this.connectOpts),i=HAe.connect(this.connectOpts)),await(0,VAe.once)(i,"connect"),i}};sg.protocols=["http","https"];cs.HttpProxyAgent=sg;function$Ae(t,...e){letr={},s;for(sint)e.includes(s)||(r[s]=t[s]);returnr}});varS2=g(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.state=void0;fg.state={instrumenterImplementation:void0}});varY2=g(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.state=void0;Bg.state={operationRequestMap:newWeakMap}});varQV=g(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});varpge=require("os"),hge=require("util");functiongge(t){returnt&&typeoft=="object"&&"default"int?t:{default:t}}varfge=gge(hge);functionEge(t,...e){process.stderr.write(`${fge.default.format(t,...e)}${pge.EOL}`)}varmV=typeofprocess<"u"&&process.env&&process.env.DEBUG||void0,hV,aS=[],cS=[],qf=[];mV&&lS(mV);vargV=Object.assign(t=>fV(t),{enable:lS,enabled:AS,disable:yge,log:Ege});functionlS(t){hV=t,aS=[],cS=[];lete=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(letsofr)s.startsWith("-")?cS.push(newRegExp(`^${s.substr(1)}$`)):aS.push(newRegExp(`^${s}$`));for(letsofqf)s.enabled=AS(s.namespace)}functionAS(t){if(t.endsWith("*"))return!0;for(leteofcS)if(e.test(t))return!1;for(leteofaS)if(e.test(t))return!0;return!1}functionyge(){lett=hV||"";returnlS(""),t}functionfV(t){lete=Object.assign(r,{enabled:AS(t),destroy:Cge,log:gV.log,namespace:t,extend:Ige});functionr(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}returnqf.push(e),e}functionCge(){lett=qf.indexOf(this);returnt>=0?(qf.splice(t,1),!0):!1}functionIge(t){lete=fV(`${this.namespace}:${t}`);returne.log=this.log,e}vardd=gV,EV=newSet,Of=typeofprocess<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void0,Hf,zf=dd("azure");zf.log=(...t)=>{dd.log(...t)};varuS=["verbose","info","warning","error"];Of&&(BV(Of)?yV(Of):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Of}'; logging is not enabled. Acceptable values: ${uS.join(", ")}.`));functionyV(t){if(t&&!BV(t))thrownewError(`Unknown log level '${t}'. Acceptable values: ${uS.join(",")}`);Hf=t;lete=[];for(letrofEV)IV(r)&&e.push(r.namespace);dd.enable(e.join(","))}functionBge(){returnHf}varpV={verbose:400,info:300,warning:200,error:100};functionQge(t){lete=zf.extend(t);returnCV(zf,e),{error:Gf(e,"error"),warning:Gf(e,"warning"),info:Gf(e,"info"),verbose:Gf(e,"verbose")}}functionCV(t,e){e.log=(...r)=>{t.log(...r)}}functionGf(t,e){letr=Object.assign(t.extend(e),{level:e});if(CV(t,r),IV(r)){lets=dd.disable();dd.enable(s+","+r.namespace)}returnEV.add(r),r}functionIV(t){return!!(Hf&&pV[t.level]<=pV[Hf])}functionBV(t){returnuS.includes(t)}fl.AzureLogger=zf;fl.createClientLogger=Qge;fl.getLogLevel=Bge;fl.setLogLevel=yV});varpS=g(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});varEl=newWeakMap,Yf=newWeakMap,md=classt{constructor(){this.onabort=null,El.set(this,[]),Yf.set(this,!1)}getaborted(){if(!Yf.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");returnYf.get(this)}staticgetnone(){returnnewt}addEventListener(e,r){if(!El.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");El.get(this).push(r)}removeEventListener(e,r){if(!El.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");lets=El.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){thrownewError("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};functionbV(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);lete=El.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Yf.set(t,!0)}vardS=classextendsError{constructor(e){super(e),this.name="AbortError"}},mS=class{c
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new cu(i));return s.searchPaths.push(...PQ(s.patterns)),s})}static stat(e,r,s){return FQ(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield qc.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){B(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield qc.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield qc.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){B(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Eoe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function KG(t,e){return Eoe(this,void 0,void 0,function*(){return yield dh.create(t,e)})}var Sh=Q(require("crypto"),1),Yc=Q(require("fs"),1),Ko=Q(require("path"),1),q1=Q(O1(),1),H1=Q(require("util"),1);var fu;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(fu||(fu={}));var Wt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Wt||(Wt={}));var kr;(function(t){t.GNU="gnu",t.BSD="bsd"})(kr||(kr={}));var xh=2,Nh=5e3,sb=5e3,nb=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,G1=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Eu="cache.tar",ib="manifest.txt",Nxe=10*Math.pow(1024,3);var zc=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},hle=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIteratorisnotdefined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),n(a,c,o.done,o.value)})}}function n(i,o,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},o)}},gle="1.0";function yu(){return zc(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Ko.join(s,"actions","temp")}let r=Ko.join(e,Sh.randomUUID());return yield Vo(r),r})}function sn(t){return Yc.statSync(t).size}function ob(t){return zc(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield KG(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,A=hle(c.globGenerator()),u;u=yield A.next(),e=u.done,!e;l=!0){n=u.value,l=!1;let m=Ko.relative(a,n).replace(new RegExp(`\\${Ko.sep}`,"g"),"/");B(`Matched: ${m}`),m===""?o.push("."):o.push(`${m}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=A.return)&&(yield s.call(A))}finally{if(r)throw r.error}}return o})}function Cu(t){return zc(this,void 0,void 0,function*(){return H1.promisify(Yc.unlink)(t)})}function z1(t){return zc(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),B(`Checking ${e} ${r.join("")}`);try{yield Vi(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){B(n.message)}return s=s.trim(),B(s),s})}function Iu(){return zc(this,void 0,void 0,function*(){let t=yield z1("zstd",["--quiet"]),e=q1.clean(t);return B(`zstd version: ${e}`),t===""?Wt.Gzip:Wt.ZstdWithoutLong})}function eo(t){return t===Wt.Gzip?fu.Gzip:fu.Zstd}function Y1(){return zc(this,void 0,void 0,function*(){return Yc.existsSync(nb)?nb:(yield z1("tar")).toLowerCase().includes("gnutar")?ar("tar"):""})}function ab(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Vc(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(gle),Sh.createHash("sha256").update(s.join("|")).digest("hex")}function V1(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("UnabletogettheACTIONS_RUNTIME_TOKENenvvariable");return t}var Bl=Q(require("fs"),1),CJ=require("url");var nn=class extends Error{constructor(e){super(e),this.name="AbortError"}};var J1=require("node:os"),$1=Q(require("node:util"),1),W1=Q(require("node:process"),1);function j1(t,...e){W1.default.stderr.write(`${$1.default.format(t,...e)}${J1.EOL}`)}var K1=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Z1,cb=[],lb=[],Th=[];K1&&Ab(K1);var eH=Object.assign(t=>tH(t),{enable:Ab,enabled:ub,disable:fle,log:j1});function Ab(t){Z1=t,cb=[],lb=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?lb.push(r.substring(1)):cb.push(r);for(let r of Th)r.enabled=ub(r.namespace)}function ub(t){if(t.endsWith("*"))return!0;for(let e of lb)if(X1(t,e))return!1;for(let e of cb)if(X1(t,e))return!0;return!1}function X1(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],m="";for(let p of e)p==="*"&&m==="*"||(m=p,d.push(p));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,c=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else return!1;let l=s===t.length,A=n===r.length,u=n===r.length-1&&r[n]==="*";return l&&(A||u)}function fle(){let t=Z1||"";return Ab(""),t}function tH(t){let e=Object.assign(r,{enabled:ub(t),destroy:Ele,log:eH.log,namespace:t,extend:yle});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return Th.push(e),e}function Ele(){let t=Th.indexOf(this);return t>=0?(Th.splice(t,1),!0):!1}function yle(t){let e=tH(`${this.namespace}:${t}`);return e.log=this.log,e}var Jc=eH;var db=["verbose","info","warning","error"],rH={verbose:400,info:300,warning:200,error:100};function sH(t,e){e.log=(...r)=>{t.log(...r)}}function nH(t){return db.includes(t)}function Ph(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=Jc(t.namespace);n.log=(...A)=>{Jc.log(...A)};function i(A){if(A&&!nH(A))throw new Error(`Unknown log level '${A}'. Acceptable values: ${db.join(",")}`);s=A;let u=[];for(let d of e)o(d)&&u.push(d.namespace);Jc.enable(u.join(","))}r&&(nH(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${db.join(",")}.`));function o(A){return!!(s&&rH[A.level]<=rH[s])}function a(A,u){let d=Object.assign(A.extend(u),{level:u});if(sH(A,d),o(d)){let m=Jc.disable();Jc.enable(m+","+d.namespace)}return e.add(d),d
${ble.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Mh(t){return t instanceof jt?!0:Zo(t)&&t.name==="RestError"}function lr(t,e){return Buffer.from(t,e)}var Lh=Q(require("node:http"),1),Fh=Q(require("node:https"),1),fb=Q(require("node:zlib"),1),AH=require("node:stream");var is=Bu("ts-http-runtime");var wle={};function Qu(t){return t&&typeof t.pipe=="function"}function lH(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function uH(t){return t&&typeof t.byteLength=="number"}var Uh=class extends AH.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},Eb=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new nn("Theoperationwasaborted.Requesthasalreadybeencanceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let l=new Ps;is.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=Rle(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let p=e.onUploadProgress,h=new Uh(p);h.on("error",y=>{is.error("Errorinuploadprogress",y)}),Qu(a)?a.pipe(h):h.end(a),a=h}let l=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let A=xle(l),d={status:l.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?Nle(l,A):l;let m=e.onDownloadProgress;if(m){let p=new Uh(m);p.on("error",h=>{is.error("Errorindownloadprogress",h)}),c.pipe(p),c=p}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Sle(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();Qu(a)&&(l=lH(a));let A=Promise.resolve();Qu(c)&&(A=lH(c)),Promise.all([l,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(u=>{is.warning("ErrorwhencleaningupabortListeneronhttpRequest",u)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let A=i?Lh.default.request(a,c):Fh.default.request(a,c);A.once("error",u=>{l(new jt(u.message,{code:u.code??jt.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let u=new nn("Theoperationwasaborted.Rejectingfromabortsignalcallbackwhilemakingrequest.");A.destroy(u),l(u)}),s&&Qu(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):uH(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(is.error("Unrecognizedbodytype",s),l(new jt("Unrecognizedbodytype"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Lh.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Lh.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Fh.default.globalAgent;let n=e.tlsSettings??wle,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(is.info("NocachedTLSAgentexist,creatinganewAgent"),i=new Fh.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function xle(t){let e=vr();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0])
`;return e}function aue(t){return t instanceof Uint8Array?t.byteLength:cg(t)?t.size===-1?void 0:t.size:void 0}function cue(t){let e=0;for(let r of t){let s=aue(r);if(s===void 0)return;e+=s}return e}async function lue(t,e,r){let s=[lr(`--${r}`,"utf-8"),...e.flatMap(i=>[lr(`\r
`,"utf-8")],n=cue(s);n&&t.headers.set("Content-Length",n),t.body=await g2(s)}var xu="multipartPolicy",Aue=70,uue=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function due(t){if(t.length>Aue)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!uue.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Ag(){return{name:xu,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?due(r):r=iue(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await lue(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function ug(){return vh()}var f2=Ph({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ARe=f2.logger;function cn(t){return f2.createClientLogger(t)}var ln=cn("core-rest-pipeline");function Lb(t={}){return Oh({logger:ln.info,...t})}var Fb=Gh;function Ub(t={}){return qh(t)}var dg=Q(require("node:os"),1),mg=Q(require("node:process"),1);function E2(){return"User-Agent"}async function y2(t){if(mg.default&&mg.default.versions){let e=`${dg.default.type()} ${dg.default.release()}; ${dg.default.arch()}`,r=mg.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var pg="1.22.2";function Cue(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function C2(){return E2()}async function hg(t){let e=new Map;e.set("core-rest-pipeline",pg),await y2(e);let r=Cue(e);return t?`${t} ${r}`:r}var I2=C2(),B2="userAgentPolicy";function _b(t={}){let e=hg(t.userAgentPrefix);return{name:B2,async sendRequest(r,s){return r.headers.has(I2)||r.headers.set(I2,await e),s(r)}}}var Ur=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Ob(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Ur(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(A=>{c(),i(A)},A=>{c(),o(A)})}catch(A){o(A)}s?.addEventListener("abort",l)})}var wue="The delay was aborted.";function Nu(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return Ob(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??wue})}function ro(t){if(Zo(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Q2(t){return Zo(t)}function el(){return Xo()}var Ee=ra;var b2=Symbol("rawContent");function qb(t){return typeof t[b2]=="function"}function w2(t){return qb(t)?t[b2]():t}var gg=xu;function Hb(){let t=Ag();return{name:gg,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)qb(s.body)&&(s.body=w2(s.body));return t.sendRequest(e,r)}}}var zb=Hh;function Yb(){return zh()}function Vb(t={}){return Jh(t)}function Jb(){return $h()}function so(t){return Pb(t)}function $b(t,e){return ig(t,e)}var x2="setClientRequestIdPolicy";function Wb(t="x-ms-client-request-id"){return{name:x2,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function jb(t){return og(t)}function Kb(t){return ag(t)}var tl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function N2(t={}){let e=new Xb(t.parentContext);return t.span&&(e=e.setValue(tl.span,t.span)),t.namespace&&(e=e.setValue(tl.namespace,t.namespace)),e}var Xb=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Wde(c)){let u;return c.trim().length===0?u="Invalid space after '<'.":u="Tag '"+c+"' is an invalid name.",rt("InvalidTag",u,Kt(t,i))}let l=zde(t,i);if(l===!1)return rt("InvalidAttr","Attributes for '"+c+"' have open quote.",Kt(t,i));let A=l.value;if(i=l.index,A[A.length-1]==="/"){let u=i-A.length;A=A.substring(0,A.length-1);let d=Az(A,e);if(d===!0)s=!0;else return rt(d.err.code,d.err.msg,Kt(t,u+d.err.line))}else if(a)if(l.tagClosed){if(A.trim().length>0)return rt("InvalidTag","Closing tag '"+c+"' can'thaveattributesorinvalidstarting.",Kt(t,o));if(r.length===0)return rt("InvalidTag","Closingtag'"+c+"'hasnotbeenopened.",Kt(t,o));{let u=r.pop();if(c!==u.tagName){let d=Kt(t,u.tagStartPos);return rt("InvalidTag","Expectedclosingtag'"+u.tagName+"'(openedinline"+d.line+",col"+d.col+")insteadofclosingtag'"+c+"'.",Kt(t,o))}r.length==0&&(n=!0)}}else return rt("InvalidTag","Closingtag'"+c+"'doesn't have proper closing.",Kt(t,i));else{let u=Az(A,e);if(u!==!0)return rt(u.err.code,u.err.msg,Kt(t,i-A.length+u.err.line));if(n===!0)return rt("InvalidXml","Multiple possible root nodes found.",Kt(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=lz(t,i);continue}else if(t[i+1]==="?"){if(i=cz(t,++i),i.err)return i}else break;else if(t[i]==="&"){let u=Jde(t,i);if(u==-1)return rt("InvalidChar","char '&' is not expected.",Kt(t,i));i=u}else if(n===!0&&!az(t[i]))return rt("InvalidXml","Extra text at the end",Kt(t,i));t[i]==="<"&&i--}}else{if(az(t[i]))continue;return rt("InvalidChar","char '"+t[i]+"' is not expected.",Kt(t,i))}if(s){if(r.length==1)return rt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Kt(t,r[0].tagStartPos));if(r.length>0)return rt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return rt("InvalidXml","Start tag expected.",1);return!0}function az(t){return t===" "||t===" "||t===`
`);let e=new mr("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new qu(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let A=ol(t,">",a,"Closing Tag is not closed."),u=t.substring(a+2,A).trim();if(n.removeNSPrefix){let m=u.indexOf(":");m!==-1&&(u=u.substr(m+1))}u=bw(n.transformTagName,u,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(u&&n.unpairedTagsSet.has(u))throw new Error(`Unpaired tag can not be used as closing tag: </${u}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=A}else if(l===63){let A=ww(t,a,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let u=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(u){let d=u[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&A.tagName==="?xml"||n.ignorePiTags)){let d=new mr(A.tagName);d.add(n.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=u),this.addChild(r,d,this.readonlyMatcher,a)}a=A.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let A=ol(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let u=t.substring(a+4,A-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:u}])}a=A}else if(l===33&&t.charCodeAt(a+2)===68){let A=i.readDocType(t,a);this.entityDecoder.addInputEntities(A.entities),a=A.i}else if(l===33&&t.charCodeAt(a+2)===91){let A=ol(t,"]]>",a,"CDATA is not closed.")-2,u=t.substring(a+9,A);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(u,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:u}]):r.add(n.textNodeName,d),a=A+2}else{let A=ww(t,a,n.removeNSPrefix);if(!A){let F=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${F}"`)}let u=A.tagName,d=A.rawTagName,m=A.tagExp,p=A.attrExpPresent,h=A.closeIndex;if({tagName:u,tagExp:m}=bw(n.transformTagName,u,m,n),n.strictReservedNames&&(u===n.commentPropName||u===n.cdataPropName||u===n.textNodeName||u===n.attributesGroupName))throw new Error(`Invalid tag name: ${u}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(f=!0,u[u.length-1]==="/"?(u=u.substr(0,u.length-1),m=u):m=m.substr(0,m.length-1),p=u!==m);let E=null,C={},I;I=Eme(d),u!==e.tagname&&this.matcher.push(u,{},I),u!==m&&p&&(E=this.buildAttributesMap(m,this.matcher,u),E&&(C=fme(E,n))),u!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let x=a;if(this.isCurrentNodeStopNode){let F="";if(f)a=A.closeIndex;else if(n.unpairedTagsSet.has(u))a=A.closeIndex;else{let ae=this.readStopNodeData(t,d,h+1);if(!ae)throw new Error(`Unexpected end of ${d}`);a=ae.i,F=ae.tagContent}let J=new mr(u);E&&(J[":@"]=E),J.add(n.textNodeName,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,J,this.readonlyMatcher,x)}else{if(f){({tagName:u,tagExp:m}=bw(n.transformTagName,u,m,n));let F=new mr(u);E&&(F[":@"]=E),this.addChild(r,F,this.readonlyMatcher,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(u)){let F=new mr(u);E&&(F[":@"]=E),this.addChild(r,F,this.readonlyMatcher,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=A.closeIndex;continue}else{let F=new mr(u);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),E&&(F[":@"]=E),this.addChild(r,F,this.readonlyMatcher,x),r=F}s="",a=h}}}else s+=t[a];return e.child};functi
`}),s}getCanonicalizedResourceString(e){let r=qg(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=Hg(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();i[c]=n[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var Ye=class extends Aa{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Ju(e,r,this)}computeHMACSHA256(e){return(0,Hz.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var pt=cn("storage-common");var ls;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ls||(ls={}));var co={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ls.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Kme=new Ur("The operation was aborted."),$u=class extends mn{retryOptions;constructor(e,r,s=co){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:co.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):co.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:co.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:co.maxRetryDelayInMs):co.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:co.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:co.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=Gg(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=ao(n.url,Ai.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(pt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(pt.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return pt.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return pt.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return pt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return pt.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(K.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error"Error: Unclosed root tag')?(pt.info("RetryPolicy:IncompleteXMLresponselikelyduetoservicetimeout,willretry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case ls.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ls.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return pt.info(`RetryPolicy: Delay for ${n}ms`),zg(n,s,Kme)}};var Wu=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new $u(e,r,this.retryOptions)}};var Xme="storageBrowserPolicy";function zz(){return{name:Xme,async sendRequest(t,e){return Ee||((t.method==="GET"||t.method==="HEAD")&&(t.url=ao(t.url,Ai.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(K.COOKIE),t.headers.delete(K.CONTENT_LENGTH)),e(t)}}}var Zme="StorageCorrectContentLengthPolicy";function Yz(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(K.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Zme,async sendRequest
`}),a}function n(i){let o=qg(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Hg(i.url),l={};if(c){let A=[];for(let u in c)if(Object.prototype.hasOwnProperty.call(c,u)){let d=u.toLowerCase();l[d]=c[u],A.push(d)}A.sort();for(let u of A)a+=`
${u}:${decodeURIComponent(l[u])}`}return a}return{name:spe,async sendRequest(i,o){return e(i),o(i)}}}var npe="storageRequestFailureDetailsParserPolicy";function $z(){return{name:npe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Fs(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function cge(t,e){if(t=ya(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function lge(t,e){if(t=ya(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function Age(t,e){if(t=ya(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function uge(t,e){if(t=ya(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function dge(t,e){if(t=ya(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function mge(t,e){if(t=ya(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Ea(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function ya(t){let e=t.version?t.version:$g;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var cd=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=el()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ds||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ds||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return U.withSpan("BlobLeaseClient-acquireLease",r,async s=>q(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ds||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ds||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return U.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=q(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ds||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ds||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfN
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Cl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;varQa=classextendsError{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Qa.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;varEd=classextendsError{constructor(e){super(e),this.name="RateLimitError"}};varQfe=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(A){try{l(s.next(A))}catch(u){o(u)}}functionc(A){try{l(s.throw(A))}catch(u){o(u)}}functionl(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},TS=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){returnthis.sentBytes}isDone(){returnthis.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;lete=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);oe(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){returne=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){letr=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void0),this.display()}};functionoJ(t,e,r){returnQfe(this,void0,void0,function*(){vars;letn=newyi(t),i=n.getBlockBlobClient(),o=newTS((s=r?.archiveSizeBytes)!==null&&s!==void0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),B(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);letc=yieldi.uploadFile(e,a);if(c._response.status>=400)throwneweE(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);returnc}catch(c){throwdt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}varcJ=Q(require("buffer"),1),Dn=Q(require("fs"),1),lJ=Q(require("stream"),1),AJ=Q(require("util"),1);vartE=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(A){try{l(s.next(A))}catch(u){o(u)}}functionc(A){try{l(s.throw(A))}catch(u){o(u)}}functionl(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};functionrE(t){returnt?t>=200&&t<300:!1}functionbfe(t){returnt?t>=500:!0}functionwfe(t){returnt?[ze.BadGateway,ze.ServiceUnavailable,ze.GatewayTimeout].includes(t):!1}functionxfe(t){returntE(this,void0,void0,function*(){returnnewPromise(e=>setTimeout(e,t))})}functionaJ(t,e,r){returntE(this,arguments,void0,function*(s,n,i,o=xh,a=Nh,c=void0){letl="",A=1;for(;A<=o;){letu,d,m=!1;try{u=yieldn()}catch(p){c&&(u=c(p)),m=!0,l=p.message}if(u&&(d=i(u),!bfe(d)))returnu;if(d&&(m=wfe(d),l=`Cache service responded with ${d}`),B(`${s} - Attempt ${A} of ${o} failed with error: ${l}`),!m){B(`${s} - Error is not retryable`);break}yieldxfe(a),A++}throwError(`${s} failed: ${l}`)})}functionyd(t,e){returntE(this,arguments,void0,function*(r,s,n=xh,i=Nh){returnyieldaJ(r,s,o=>o.statusCode,n,i,o=>{if(oinstanceofZs)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}functionIl(t,e){returntE(this,arguments,void0,function*(r,s,n=xh,i=Nh){returnyieldaJ(r,s,o=>o.message.statusCode,n,i)})}varps=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(A){try{l(s.next(A))}catch(u){o(u)}}functionc(A){try{l(s.throw(A))}catch(u){o(u)}}functionl(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};functionNfe(t,e){returnps(this,void0,void0,function*(){yieldAJ.promisify(lJ.pipeline)(t.message,e)})}varsE=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSi
Othercacheswithsimilarkey:`);for(let a of i?.artifactCaches||[])B(`CacheKey:${a?.cacheKey},CacheVersion:${a?.cacheVersion},CacheScope:${a?.scope},CacheCreated:${a?.creationTime}`)}}})}function vS(t,e,r){return fr(this,void 0,void 0,function*(){let s=new CJ.URL(t),n=pJ(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield dJ(t,e,n):n.concurrentBlobDownloads?yield uJ(t,e,n):yield nE(t,e):yield nE(t,e)})}function BJ(t,e,r){return fr(this,void 0,void 0,function*(){let s=kS(),n=Vc(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield yd("reserveCache",()=>fr(this,void 0,void 0,function*(){return s.postJson(Id("caches"),i)}))})}function yJ(t,e){return`bytes${t}-${e}/*`}function Mfe(t,e,r,s,n){return fr(this,void 0,void 0,function*(){B(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${yJ(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":yJ(s,n)},o=yield Il(`uploadChunk (start: ${s}, end: ${n})`,()=>fr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!rE(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Lfe(t,e,r,s){return fr(this,void 0,void 0,function*(){let n=sn(r),i=Id(`caches/${e.toString()}`),o=Bl.openSync(r,"r"),a=PS(s),c=ab("uploadConcurrency",a.uploadConcurrency),l=ab("uploadChunkSize",a.uploadChunkSize),A=[...new Array(c).keys()];B("Awaiting all uploads");let u=0;try{yield Promise.all(A.map(()=>fr(this,void 0,void 0,function*(){for(;u<n;){let d=Math.min(n-u,l),m=u,p=u+d-1;u+=l,yield Mfe(t,i,()=>Bl.createReadStream(r,{fd:o,start:m,end:p,autoClose:!1}).on("error",h=>{throw new Error(`Cache upload failed because file read failed with ${h.message}`)}),m,p)}})))}finally{Bl.closeSync(o)}})}function Ffe(t,e,r){return fr(this,void 0,void 0,function*(){let s={size:r};return yield yd("commitCache",()=>fr(this,void 0,void 0,function*(){return t.postJson(Id(`caches/${e.toString()}`),s)}))})}function MS(t,e,r,s){return fr(this,void 0,void 0,function*(){if(PS(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield oJ(r,e,s)}else{let i=kS();B("Upload cache"),yield Lfe(i,t,e,s),B("Commiting cache");let o=sn(e);oe(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Ffe(i,t,o);if(!rE(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);oe("Cache saved successfully")}})}var g$=Q(l$(),1),ot=Q(it(),1),zr=Q(it(),1),Sa=Q(it(),1),Ra=Q(it(),1),Ta=Q(it(),1);var RR=Q(it(),1),TR=Q(it(),1),m$=Q(it(),1),p$=Q(it(),1),h$=Q(it(),1);var xR=Q(it(),1),NR=Q(it(),1),A$=Q(it(),1),u$=Q(it(),1),d$=Q(it(),1),SR=class extends d$.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,u$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,A$.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let A=e.skip(c);l!==!1&&(l===!0?NR.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,A)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,xR.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,xR.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?NR.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},YE=new SR;var PR=class extends h$.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>YE}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.O
`));let s=yield VR(r,"create");yield JR(s,t)})}var _l=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Os=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ul=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},WE=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function C$(t){if(!t||t.length===0)throw new Os("Path Validation Error: At least one directory or file path is required")}function jR(t){if(t.length>512)throw new Os(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Os(`Key Validation Error: ${t} cannot contain commas.`)}function KR(){return Cd()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function I$(t,e,r,s){return _l(this,arguments,void 0,function*(n,i,o,a,c=!1){let l=Cd();return B(`Cache service version: ${l}`),C$(n),l==="v2"?yield Xye(n,i,o,a,c):yield Kye(n,i,o,a,c)})}function Kye(t,e,r,s){return _l(this,arguments,void 0,function*(n,i,o,a,c=!1){o=o||[];let l=[i,...o];if(B("Resolved Keys:"),B(JSON.stringify(l)),l.length>10)throw new Os("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)jR(d);let A=yield Iu(),u="";try{let d=yield IJ(l,n,{compressionMethod:A,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return oe("Lookup only - skipping download"),d.cacheKey;u=Fd.join(yield yu(),eo(A)),B(`Archive Path: ${u}`),yield vS(d.archiveLocation,u,a),Ji()&&(yield Ld(u,A));let m=sn(u);return oe(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield $R(u,A),oe("Cache restored successfully"),d.cacheKey}catch(d){let m=d;if(m.name===Os.name)throw d;m instanceof Zs&&typeof m.statusCode=="number"&&m.statusCode>=500?Lc(`Failed to restore: ${d.message}`):dt(`Failed to restore: ${d.message}`)}finally{try{yield Cu(u)}catch(d){B(`Failed to delete archive: ${d}`)}}})}function Xye(t,e,r,s){return _l(this,arguments,void 0,function*(n,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[i,...o];if(B("Resolved Keys:"),B(JSON.stringify(l)),l.length>10)throw new Os("Key Validation Error: Keys are limited to a maximum of 10.");for(let u of l)jR(u);let A="";try{let u=YR(),d=yield Iu(),m={key:i,restoreKeys:o,version:Vc(n,d,c)},p=yield u.GetCacheEntryDownloadURL(m);if(!p.ok){B(`Cache not found for version ${m.version} of keys: ${l.join(", ")}`);return}if(m.key!==p.matchedKey?oe(`Cache hit for restore-key: ${p.matchedKey}`):oe(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return oe("Lookup only - skipping download"),p.matchedKey;A=Fd.join(yield yu(),eo(d)),B(`Archive path: ${A}`),B(`Starting download of archive to: ${A}`),yield vS(p.signedDownloadUrl,A,a);let y=sn(A);return oe(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Ji()&&(yield Ld(A,d)),yield $R(A,d),oe("Cache restored successfully"),p.matchedKey}catch(u){let d=u;if(d.name===Os.name)throw u;d instanceof Zs&&typeof d.statusCode=="number"&&d.statusCode>=500?Lc(`Failed to restore: ${u.message}`):dt(`Failed to restore: ${u.message}`)}finally{try{A&&(yield Cu(A))}catch(u){B(`Failed to delete archive: ${u}`)}}})}function XR(t,e,r){return _l(this,arguments,void 0,function*(s,n,i,o=!1){let a=Cd();return B(`Cache service version: ${a}`),C$(s),jR(n),a==="v2"?yield eCe(s,n,i,o):yield Zye(s,n,i,o)})}function Zye(t,e,r){return _l(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,l,A,u;let d=yield Iu(),m=-1,p=yield ob(s);if(B("Cache Paths:"),B(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let h=yield yu(),y=Fd.join(h,eo(d));B(`Archive Path: ${y}`);try{
`)}var hIe=class extends Error{constructor(t,e,r){super(pIe(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},gIe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],fIe=["query","method","url"],xW=/\/api\/v3\/?$/;function EIe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(fIe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>gIe.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return xW.test(i)&&(n.url=i.replace(xW,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new hIe(n,a,o.data)}return o.data.data})}function pT(t,e){let r=t.defaults(e);return Object.assign((n,i)=>EIe(r,n,i),{defaults:pT.bind(null,r),endpoint:r.endpoint})}var xHe=pT(Gd,{headers:{"user-agent":`octokit-graphql.js/${mIe} ${Eo()}`},method:"POST",url:"/graphql"});function NW(t){return pT(t,{method:"POST",url:"/graphql"})}var hT="(?:[a-zA-Z0-9_-]+)",SW="\\.",RW=new RegExp(`^${hT}${SW}${hT}${SW}${hT}$`),yIe=RW.test.bind(RW);async function CIe(t){let e=yIe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function IIe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function BIe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=IIe(t),e(n)}var TW=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(CIe.bind(null,e),{hook:BIe.bind(null,e)})};var gT="7.0.6";var PW=()=>{},QIe=console.warn.bind(console),bIe=console.error.bind(console);function wIe(t={}){return typeof t.debug!="function"&&(t.debug=PW),typeof t.info!="function"&&(t.info=PW),typeof t.warn!="function"&&(t.warn=QIe),typeof t.error!="function"&&(t.error=bIe),t}var DW=`octokit-core.js/${gT} ${Eo()}`,Ay=class{static VERSION=gT;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new iW.Collection,s={baseUrl:Gd.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${DW}`:DW,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Gd.defaults(s),this.graphql=NW(this.request).defaults(s),this.log=wIe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=TW(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var fT="17.0.0";var xIe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/run
`,o).length:u,l?(a===null?0:a.length)+c.length:0,l?c.length+u:0);return d<m},parse:function(s,n,i,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:A,ltrim:u,max_record_size:d,raw:m,relax_quotes:p,rtrim:h,skip_empty_lines:y,to:f,to_line:E}=this.options,{comment:C,escape:I,quote:x,record_delimiter:F}=this.options,{bomSkipped:J,previousBuf:ae,rawBuffer:Ie,escapeIsQuote:Oe}=this.state,H;if(ae===void 0)if(s===void 0){o();return}else H=s;else ae!==void 0&&s===void 0?H=ae:H=Buffer.concat([ae,s]);if(J===!1)if(a===!1)this.state.bomSkipped=!0;else if(H.length<3){if(n===!1){this.state.previousBuf=H;return}}else{for(let Be in Vl)if(Vl[Be].compare(H,0,Vl[Be].length)===0){let Pt=Vl[Be].length;this.state.bufBytesStart+=Pt,H=H.slice(Pt);let Jr=xT({...this.original_options,encoding:Be});for(let Xe in Jr)this.options[Xe]=Jr[Xe];({comment:C,escape:I,quote:x}=this.options);break}this.state.bomSkipped=!0}let ue=H.length,_;for(_=0;_<ue&&!this.__needMoreData(_,ue,n);_++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,o();return}this.state.quoting===!1&&F.length===0&&this.__autoDiscoverRecordDelimiter(H,_)&&(F=this.options.record_delimiter);let Be=H[_];if(m===!0&&Ie.append(Be),(Be===OIe||Be===GIe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(I!==null&&this.state.quoting===!0&&this.__isEscape(H,_,Be)&&_+I.length<ue)if(Oe){if(this.__isQuote(H,_+I.length)){this.state.escaping=!0,_+=I.length-1;continue}}else{this.state.escaping=!0,_+=I.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(H,_))if(this.state.quoting===!0){let Xe=H[_+x.length],On=h&&this.__isCharTrimable(H,_+x.length),Cr=C!==null&&this.__compareBytes(C,H,_+x.length,Xe),qs=this.__isDelimiter(H,_+x.length,Xe),yo=F.length===0?this.__autoDiscoverRecordDelimiter(H,_+x.length):this.__isRecordDelimiter(Xe,H,_+x.length);if(I!==null&&this.__isEscape(H,_,Be)&&this.__isQuote(H,_+I.length))_+=I.length-1;else if(!Xe||qs||yo||Cr||On){this.state.quoting=!1,this.state.wasQuoting=!0,_+=x.length-1;continue}else if(p===!1){let Ma=this.__error(new he("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Xe)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Ma!==void 0)return Ma}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),_+=x.length-1}else if(this.state.field.length!==0){if(p===!1){let Xe=this.__infoField(),On=Object.keys(Vl).map(qs=>Vl[qs].equals(this.state.field.toString())?qs:!1).filter(Boolean)[0],Cr=this.__error(new he("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Xe.column)} at line ${Xe.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,On?`(${On} bom)`:void 0],this.options,Xe,{field:this.state.field}));if(Cr!==void 0)return Cr}}else{this.state.quoting=!0,_+=x.length-1;continue}if(this.state.quoting===!1){let Xe=this.__isRecordDelimiter(Be,H,_);if(Xe!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),_+=Xe-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,_+=Xe-1;continue}this.info.bytes=this.state.bufBytesStart+_;let qs=this.__onField();if(qs!==void 0)return qs;this.info.bytes=this.state.bufBytesStart+_+Xe;let yo=this.__onRecord(i);if(yo!==void 0)return yo;if(f!==-1&&this.info.records>=f){this.state.stop=!0,o();return}}this.state.commenting=!1,_+=Xe-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,H,_,Be)!==0){this.state.commenting=!0;continue}let On=this.__isDelimiter(