varnHe=Object.create;varYy=Object.defineProperty;varsHe=Object.getOwnPropertyDescriptor;varoHe=Object.getOwnPropertyNames;variHe=Object.getPrototypeOf,aHe=Object.prototype.hasOwnProperty;vari=(t,e)=>Yy(t,"name",{value:e,configurable:!0});varg=(t,e)=>()=>(t&&(e=t(t=0)),e);varI=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mr=(t,e)=>{for(varrine)Yy(t,r,{get:e[r],enumerable:!0})},RK=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsofoHe(e))!aHe.call(t,s)&&s!==r&&Yy(t,s,{get:()=>e[s],enumerable:!(n=sHe(e,s))||n.enumerable});returnt};varR=(t,e,r)=>(r=t!=null?nHe(iHe(t)):{},RK(e||!t||!t.__esModule?Yy(r,"default",{value:t,enumerable:!0}):r,t)),te=t=>RK(Yy({},"__esModule",{value:!0}),t);varLK=I(Mm=>{"use strict";varf$t=require("net"),fHe=require("tls"),UM=require("http"),_K=require("https"),mHe=require("events"),m$t=require("assert"),AHe=require("util");Mm.httpOverHttp=hHe;Mm.httpsOverHttp=gHe;Mm.httpOverHttps=yHe;Mm.httpsOverHttps=EHe;functionhHe(t){vare=newhl(t);returne.request=UM.request,e}i(hHe,"httpOverHttp");functiongHe(t){vare=newhl(t);returne.request=UM.request,e.createSocket=DK,e.defaultPort=443,e}i(gHe,"httpsOverHttp");functionyHe(t){vare=newhl(t);returne.request=_K.request,e}i(yHe,"httpOverHttps");functionEHe(t){vare=newhl(t);returne.request=_K.request,e.createSocket=DK,e.defaultPort=443,e}i(EHe,"httpsOverHttps");functionhl(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||UM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(varc=kK(s,o,a),l=0,u=e.requests.length;l<u;++l){vard=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(hl,"TunnelingAgent");AHe.inherits(hl,mHe.EventEmitter);hl.prototype.addRequest=i(function(e,r,n,s){varo=this,a=qM({request:e},o.options,kK(r,n,s));if(o.sockets.length>=this.maxSockets){o.requests.push(a);return}o.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);functionl(){o.emit("free",c,a)}i(l,"onFree");functionu(d){o.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}i(u,"onCloseOrRemove")})},"addRequest");hl.prototype.createSocket=i(function(e,r){varn=this,s={};n.sockets.push(s);varo=qM({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+newBuffer(o.proxyAuth).toString("base64")),wu("making CONNECT request");vara=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();functionc(p){p.upgrade=!0}i(c,"onResponse");functionl(p,f,m){process.nextTick(function(){u(p,f,m)})}i(l,"onUpgrade");functionu(p,f,m){if(a.removeAllListeners(),f.removeAllListeners(),p.statusCode!==200){wu("tunneling socket could not be established, statusCode=%d",p.statusCode),f.destroy();varA=newError("tunneling socket could not be established, statusCode="+p.statusCode);A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}if(m.length>0){wu("got illegal response body from proxy"),f.destroy();varA=newError("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}returnwu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=f,r(f)}i(u,"onConnect");functiond(p){a.removeAllListeners(),wu(`tunneling socket could not be established, cause=%s
`);f.push(h),o+=h.byteLength,A&&(o=null),s=t,n=i(async function*(){for(let y of f)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data;boundary=${l}`}else if(H7(t))s=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(iE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:O3e(t)}if((typeof s=="string"||iE.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:p}=await l.next();if(p)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!W7(r)){let f=new Uint8Array(d);f.byteLength&&u.enqueue(f)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:o},a]}i(j7,"extractBody");function j3e(t,e=!1){return t instanceof ReadableStream&&(VF(!iE.isDisturbed(t),"The body has already been consumed."),VF(!t.locked,"The stream is locked.")),j7(t,e)}i(j3e,"safelyExtractBody");function K3e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(K3e,"cloneBody");function X3e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(X3e,"throwIfAborted");function Z3e(t){return{blob(){return Xm(this,r=>{let n=z7(this);return n===null?n="":n&&(n=W3e(n)),new $3e([r],{type:n})},t)},arrayBuffer(){return Xm(this,r=>new Uint8Array(r).buffer,t)},text(){return Xm(this,V7,t)},json(){return Xm(this,tVe,t)},formData(){return Xm(this,r=>{let n=z7(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=Y3e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new $7;return o[Zm]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new $7;for(let[a,c]of s)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Xm(this,r=>new Uint8Array(r),t)}}}i(Z3e,"bodyMixinMethods");function eVe(t){Object.assign(t.prototype,Z3e(t))}i(eVe,"mixinBody");async function Xm(t,e,r){if(H3e.brandCheck(t,r),K7(t))throw new TypeError("Body is unusable: Body has already been read");X3e(t[Zm]);let n=U3e(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Zm].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await q3e(t[Zm].body,o,s),n.promise)}i(Xm,"consumeBody");function K7(t){let e=t[Zm].body;return e!=null&&(e.stream.locked||iE.isDisturbed(e.stream))}i(K7,"bodyUnusable");function tVe(t){return JSON.parse(V7(t))}i(tVe,"parseJSONFromBytes");function z7(t){let e=t[Zm].headersList,r=G3e(e);return r==="failure"?null:r}i(z7,"bodyMimeType");X7.exports={extractBody:j7,safelyExtractBody:j3e,cloneBody:K3e,mixinBody:eVe,streamRegistry:J7,hasFinalizationRegistry:Y7,bodyUnusable:K7}});var mZ=I((azt,fZ)=>{"use strict";var fe=require("node:assert"),Ee=He(),{channels:Z7}=qm(),YF=TF(),{RequestContentLengthMismatchError:Ip,ResponseContentLengthMismatchError:eZ,RequestAbortedError:cZ,HeadersTimeoutError:rVe,HeadersOverflowError:nVe,SocketError:tA,InformationalError:rA,BodyTimeoutError:sVe,HTTPParserError:oVe,ResponseExceededMaxSizeError:iVe}=rt(),{kUrl:lZ,kReset:Es,kClient:Ib,kParser:vt,kBlocking:lE,kRunning:Nr,kPending:uZ,kSize:tZ,kWriting:xu,kQueue:Ti,kNoRef:aE,kKeepAliveDefaultTimeout:aVe,kHostHeader:cVe,kPendingIdx:lVe,kRunningIdx:Oo,kError:Vn,kPipelining:wb,kSocket:Sp,kKeepAliveTimeoutValue:xb,kMaxHeadersSize:JF,kKeepAliveMaxTimeout:uVe,kKeepAliveTimeoutThreshold:dVe,kHeadersTimeout:pVe,kBodyTimeout:fVe,kStrictContentLength:XF,kMaxRequests:rZ,kCounter:mVe,kMaxResponseSize:AVe,kOnError:nZ,kResume:wl,kHTTPContext:dZ}=Mt(),Js=JX(),sZ=Buffer.alloc(0),yb=Buffer[Symbol.species],Eb=Ee.addListener,hVe=Ee.removeAllListeners,xp=Symbol("kIdleSocketValidation"),wp=Symbol("kIdleSocketValidationTimeout"),rU=Symbol("kSocketUsed"),jF;async function gVe(){let t=process.env.JEST_WORKER_ID?QF():vo
`}return Z7.sendHeaders.hasSubscribers&&Z7.sendHeaders.publish({request:e,headers:h,socket:m}),!l||f===0?iZ(A,null,t,e,m,d,h,p):Ee.isBuffer(l)?iZ(A,l,t,e,m,d,h,p):Ee.isBlobLike(l)?typeof l.stream=="function"?aZ(A,l.stream(),t,e,m,d,h,p):bVe(A,l,t,e,m,d,h,p):Ee.isStream(l)?xVe(A,l,t,e,m,d,h,p):Ee.isIterable(l)?aZ(A,l,t,e,m,d,h,p):fe(!1),!0}i(SVe,"writeH1");function xVe(t,e,r,n,s,o,a,c){fe(o!==0||r[Nr]===0,"stream body cannot be pipelined");let l=!1,u=new bb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a}),d=i(function(A){if(!l)try{!u.write(A)&&this.pause&&this.pause()}catch(h){Ee.destroy(this,h)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),f=i(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let A=new cZ;queueMicrotask(()=>m(A))}},"onClose"),m=i(function(A){if(!l){if(l=!0,fe(s.destroyed||s[xu]&&r[Nr]<=1),s.off("drain",p).off("error",m),e.removeListener("data",d).removeListener("end",m).removeListener("close",f),!A)try{u.end()}catch(h){A=h}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?Ee.destroy(e,A):Ee.destroy(e)}},"onFinished");e.on("data",d).on("end",m).on("error",m).on("close",f),e.resume&&e.resume(),s.on("drain",p).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(f)}i(xVe,"writeStream");function iZ(t,e,r,n,s,o,a,c){try{e?Ee.isBuffer(e)&&(fe(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length:${o}\r
`,"latin1"):(fe(o===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[wl]()}catch(l){t(l)}}i(iZ,"writeBuffer");async function bVe(t,e,r,n,s,o,a,c){fe(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Ip;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length:${o}\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[Es]=!0),r[wl]()}catch(l){t(l)}}i(bVe,"writeBlob");async function aZ(t,e,r,n,s,o,a,c){fe(o!==0||r[Nr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}i(u,"onDrain");let d=i(()=>new Promise((f,m)=>{fe(l===null),s[Vn]?m(s[Vn]):l=f}),"waitForDrain");s.on("close",u).on("drain",u);let p=new bb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(s[Vn])throw s[Vn];p.write(f)||await d()}p.end()}catch(f){p.destroy(f)}finally{s.off("close",u).off("drain",u)}}i(aZ,"writeIterable");var bb=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[xu]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Vn])throw r[Vn];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[XF])throw new Ip;process.emitWarning(new Ip)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Es]=!0),s===null?r.write(`${l}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[XF])throw new Ip;process.emitWarning(new Ip)}e[vt].timeout&&e[vt].timeoutType===nA&&e[vt].timeout.refresh&&e[vt].timeout.refresh(),n[wl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[xu]=!1,e&&(fe(n[Nr]<=1,"pipeline should only contain this request"),s(e))}};fZ.exports=EVe});var wZ=I((lzt,IZ)=>{"use strict";var Mo=require("node:assert"),{pipeline:BVe}=require("node:stream"),Je=He(),{RequestContentLengthMismatchError:nU,RequestAbortedError:AZ,SocketError:uE,InformationalError:sU}=rt(),{kUrl:Bb,kReset:Nb,kClient:sA,kRunning:Tb,kPending:RVe,kQueue:bu,kPendingIdx:oU,kRunningIdx:vi,kError:Qi,kSocket:jr,kStrictContentLength:NVe,kOnError:iU,kMaxConcurrentStreams:CZ,kHTTP2Session:Pi,kResume:Bu,kSize:TVe,kHTTPContext:vVe}=Mt(),Sl=Symbol("open streams"),hZ,gZ=!1,Rb;try{Rb=require("node:http2")}catch{Rb={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:PVe,HTTP2_HEADER_METHOD:QVe,HTTP2_HEADER_PATH:_Ve,HTTP2_HEADER_SCHEME:DVe,HTTP2_HEADER_CONTENT_LENGTH:kVe,HTTP2_HEADER_EXPECT:LVe,HTTP2_HEADER_STATUS:OVe}}=Rb;function MVe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}i(MVe,"parseH2Headers");async function FVe(t,e){t[jr]=e,gZ||(gZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Rb.connect(t[Bb],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[CZ]});r[Sl]=0,r[sA]=t,r[jr]=e,Je.addListener(r,"error",qVe),Je.addListener(r,"frameError",GVe),Je.addListener(r,"end",HVe),Je.addListener(r,"goaway",$Ve),Je.addListener(r,"close",function(){let{[sA]:s}=this,{[jr]:o}=s,a=this[jr][Qi]||this[Qi]||new uE("closed",Je.getSocketInfo(o));if(s[Pi]=null,s.destroyed){Mo(s[RVe]===0);let c=s[bu].splice(s[vi]);for(let l=0;l<c.length;l++){let u=c[l];Je.errorRequest(s,u,a)}}}),r.unref(),t[Pi]=r,e[Pi]=r,Je.addListener(e,"error",function(s){Mo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Qi]=s,this[sA][iU](s)}),Je.addListener(e,"end",function(){Je.destroy(this,new uE("other side closed",Je.getSocketInfo(this)))}),Je.addListener(e,"close",function(){let s=this[Qi]||new uE("closed",Je.getSocketInfo(this));t[jr]=null,this[Pi]!=null&&this[Pi].destroy(s),t[oU]=t[vi],Mo(t[Tb]===0),t.emit("disconnect",t[Bb],[t],s),t[Bu]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return VVe(t,...s)},resume(){UVe(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(FVe,"connectH2");function UVe(t){let e=t[jr];e?.destroyed===!1&&(t[TVe]===0&&t[CZ]===0?(e.unref(),t[Pi].unref()):(e.ref(),t[Pi].ref()))}i(UVe,"resumeH2");function qVe(t){Mo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[jr][Qi]=t,this[sA][iU](t)}i(qVe,"onHttp2SessionError");function GVe(t,e,r){if(r===0){let n=new sU(`HTTP/2:"frameError"received-type${t},code${e}`);this[jr][Qi]=n,this[sA][iU](n)}}i(GVe,"onHttp2FrameError");function HVe(){let t=new uE("other side closed",Je.getSocketInfo(this[jr]));this.destroy(t),Je.destroy(this[jr],t)}i(HVe,"onHttp2SessionEnd");function $Ve(t){let e=this[Qi]||new uE(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,Je.getSocketInfo(this)),r=this[sA];if(r[jr]=null,r[vVe]=null,this[Pi]!=null&&(this[Pi].destroy(e),this[Pi]=null),Je.destroy(this[jr],e),r[vi]<r[bu].length){let n=r[bu][r[vi]];r[bu][r[vi]++]=null,Je.errorRequest(r,n,e),r[oU]=r[vi]}Mo(r[Tb]===0),r.emit("disconnect",r[Bb],[r],e),r[Bu]()}i($Ve,"onHTTP2GoAway");function zVe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(zVe,"shouldSendContentLength");function VVe(t,e){let r=t[Pi],{method:n,path:s,host:o,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return Je.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let p={};for(let b=0;b<u.length;b+=2){let N=u[b+0],v=u[b+1];if(Array.isArray(v))for(let Q=0;Q<v.length;Q++)p[N]?p[N]+=`,${v[Q]}`:p[N]=v[Q];else p[N]=v}let f,{hostname:m,port:A}=t[Bb];p[PVe]=o||`${m}
`);if(f===-1){rR("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r
`),A=m.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),y=+h[1],C=h.slice(2).join(" "),w={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`InvalidheaderfromproxyCONNECTresponse:"${x}"`));let N=x.slice(0,b).toLowerCase(),v=x.slice(b+1).trimStart(),Q=w[N];typeof Q=="string"?w[N]=[Q,v]:Array.isArray(Q)?Q.push(v):w[N]=v}rR("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:y,statusText:C,headers:w},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(ist,"parseProxyResponse");eh.parseProxyResponse=ist});var Ide=I(Ko=>{"use strict";var ast=Ko&&Ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cst=Ko&&Ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ede=Ko&&Ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ast(e,t,r);return cst(e,t),e},Cde=Ko&&Ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ko,"__esModule",{value:!0});Ko.HttpsProxyAgent=void 0;var nR=Ede(require("net")),hde=Ede(require("tls")),lst=Cde(require("assert")),ust=Cde(af()),dst=mde(),pst=require("url"),fst=Ade(),kC=(0,ust.default)("https-proxy-agent"),gde=i(t=>t.servername===void 0&&t.host&&!nR.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),sR=class extends dst.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new pst.URL(e):e,this.proxyHeaders=r?.headers??{},kC("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?yde(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(kC("Creating `tls.Socket`: %o",this.connectOpts),s=hde.connect(gde(this.connectOpts))):(kC("Creating `net.Socket`: %o",this.connectOpts),s=nR.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=nR.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT${a}:${r.port}HTTP/1.1\r
`;if(n.username||n.password){let f=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic${Buffer.from(f).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(o))c+=`${f}:${o[f]}\r
`)+4,e.outputData[0].data=e._header+n.substring(s),th("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(th("Creating `tls.Socket`: %o",this.connectOpts),o=Nst.connect(this.connectOpts)):(th("Creating `net.Socket`: %o",this.connectOpts),o=Rst.connect(this.connectOpts)),await(0,vst.once)(o,"connect"),o}};oR.protocols=["http","https"];Xo.HttpProxyAgent=oR;function Qst(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Qst,"omit")});var Xde=I(ER=>{"use strict";Object.defineProperty(ER,"__esModule",{value:!0});ER.state=void 0;ER.state={instrumenterImplementation:void 0}});var Ape=I(xR=>{"use strict";Object.defineProperty(xR,"__esModule",{value:!0});xR.state=void 0;xR.state={operationRequestMap:new WeakMap}});var Wme=I(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var Xlt=require("os"),Zlt=require("util");function eut(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(eut,"_interopDefaultLegacy");var tut=eut(Zlt);function rut(t,...e){process.stderr.write(`${tut.default.format(t,...e)}${Xlt.EOL}`)}i(rut,"log");var Ome=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Fme,M3=[],F3=[],HN=[];Ome&&U3(Ome);var Ume=Object.assign(t=>qme(t),{enable:U3,enabled:q3,disable:nut,log:rut});function U3(t){Fme=t,M3=[],F3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?F3.push(new RegExp(`^${n.substr(1)}$`)):M3.push(new RegExp(`^${n}$`));for(let n of HN)n.enabled=q3(n.namespace)}i(U3,"enable");function q3(t){if(t.endsWith("*"))return!0;for(let e of F3)if(e.test(t))return!1;for(let e of M3)if(e.test(t))return!0;return!1}i(q3,"enabled");function nut(){let t=Fme||"";return U3(""),t}i(nut,"disable");function qme(t){let e=Object.assign(r,{enabled:q3(t),destroy:sut,log:Ume.log,namespace:t,extend:out});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return i(r,"debug"),HN.push(e),e}i(qme,"createDebugger");function sut(){let t=HN.indexOf(this);return t>=0?(HN.splice(t,1),!0):!1}i(sut,"destroy");function out(t){let e=qme(`${this.namespace}:${t}`);return e.log=this.log,e}i(out,"extend");var wI=Ume,Gme=new Set,qN=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,$N,zN=wI("azure");zN.log=(...t)=>{wI.log(...t)};var G3=["verbose","info","warning","error"];qN&&(Vme(qN)?Hme(qN):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${qN}';loggingisnotenabled.Acceptablevalues:${G3.join(", ")}.`));function Hme(t){if(t&&!Vme(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${G3.join(",")}`);$N=t;let e=[];for(let r of Gme)zme(r)&&e.push(r.namespace);wI.enable(e.join(","))}i(Hme,"setLogLevel");function iut(){return $N}i(iut,"getLogLevel");var Mme={verbose:400,info:300,warning:200,error:100};function aut(t){let e=zN.extend(t);return $me(zN,e),{error:GN(e,"error"),warning:GN(e,"warning"),info:GN(e,"info"),verbose:GN(e,"verbose")}}i(aut,"createClientLogger");function $me(t,e){e.log=(...r)=>{t.log(...r)}}i($me,"patchLogMethod");function GN(t,e){let r=Object.assign(t.extend(e),{level:e});if($me(t,r),zme(r)){let n=wI.disable();wI.enable(n+","+r.namespace)}return Gme.add(r),r}i(GN,"createLogger");function zme(t){return!!($N&&Mme[t.level]<=Mme[$N])}i(zme,"shouldEnable");function Vme(t){return G3.includes(t)}i(Vme,"isAzureLogLevel");Eh.AzureLogger=zN;Eh.createClientLogger=aut;Eh.getLogLevel=iut;Eh.setLogLevel=Hme});var z3=I(xI=>{"use strict";Object.defineProperty(xI,"__esModule",{value:!0});var Ch=new WeakMap,VN=new WeakMap,SI=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Ch.set(this,[]),VN.set(this,!1)}get aborted(){if(!VN.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return VN.get(this)}static get none(){return new t}addEventListener(e,r){if(!Ch.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Ch.get(this).push(r)}removeEventListener(e,r){if(!Ch.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Ch.get(this),s=n.indexOf(r);s>-
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(zEt,"logUnexpecedPropertyAccessOnce");function VEt(){Object.keys(Lv).forEach(function(t){delete Lv[t]})}i(VEt,"resetLoggedProperties")});var Mv=I(bc=>{"use strict";bc.__esModule=!0;bc.HandlebarsEnvironment=PW;function cCe(t){return t&&t.__esModule?t:{default:t}}i(cCe,"_interopRequireDefault");var Uf=ds(),WEt=wo(),TW=cCe(WEt),YEt=bW(),JEt=sCe(),jEt=RW(),Ov=cCe(jEt),KEt=NW(),XEt="4.7.9";bc.VERSION=XEt;var ZEt=8;bc.COMPILER_REVISION=ZEt;var eCt=7;bc.LAST_COMPATIBLE_COMPILER_REVISION=eCt;var tCt={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};bc.REVISION_CHANGES=tCt;var vW="[object Object]";function PW(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},YEt.registerDefaultHelpers(this),JEt.registerDefaultDecorators(this)}i(PW,"HandlebarsEnvironment");PW.prototype={constructor:PW,logger:Ov.default,log:Ov.default.log,registerHelper:i(function(e,r){if(Uf.toString.call(e)===vW){if(r)throw new TW.default("Arg not supported with multiple helpers");Uf.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(Uf.toString.call(e)===vW)Uf.extend(this.partials,e);else{if(typeof r>"u")throw new TW.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(Uf.toString.call(e)===vW){if(r)throw new TW.default("Arg not supported with multiple decorators");Uf.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){KEt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var rCt=Ov.default.log;bc.log=rCt;bc.createFrame=Uf.createFrame;bc.logger=Ov.default});var uCe=I((Fv,lCe)=>{"use strict";Fv.__esModule=!0;function QW(t){this.string=t}i(QW,"SafeString");QW.prototype.toString=QW.prototype.toHTML=function(){return""+this.string};Fv.default=QW;lCe.exports=Fv.default});var dCe=I(_W=>{"use strict";_W.__esModule=!0;_W.wrapHelper=nCt;function nCt(t,e){if(typeof t!="function")return t;var r=i(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}i(nCt,"wrapHelper")});var gCe=I(hd=>{"use strict";hd.__esModule=!0;hd.checkRevision=lCt;hd.template=uCt;hd.wrapProgram=Uv;hd.resolvePartial=dCt;hd.invokePartial=pCt;hd.noop=ACe;function sCt(t){return t&&t.__esModule?t:{default:t}}i(sCt,"_interopRequireDefault");function oCt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(oCt,"_interopRequireWildcard");var iCt=ds(),Xh=oCt(iCt),aCt=wo(),eu=sCt(aCt),tu=Mv(),pCe=bW(),cCt=dCe(),fCe=NW();function lCt(t){var e=t&&t[0]||1,r=tu.COMPILER_REVISION;if(!(e>=tu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=tu.COMPILER_REVISION))if(e<tu.LAST_COMPATIBLE_COMPILER_REVISION){var n=tu.REVISION_CHANGES[r],s=tu.REVISION_CHANGES[e];throw new eu.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new eu.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(lCt,"checkRevision");function uCt(t,e){if(!e)throw new eu.default("No environment passed to template");if(!t||!t.main)throw new eu.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=Xh.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
Expecting`+q.join(", ")+", got '"+(this.terminals_[b]||b)+"'":wt="Parse error on line "+(p+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(wt,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:q})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+b);switch(Q[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(Q[1]),b=null,N?(b=N,N=null):(f=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,y=this.lexer.yylloc,m>0&&m--);break;case 2:if(ne=this.productions_[Q[1]][1],ae.$=c[c.length-ne],ae._$={first_line:l[l.length-(ne||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ne||1)].first_column,last_column:l[l.length-1].last_column},C&&(ae._$.range=[l[l.length-(ne||1)].range[0],l[l.length-1].range[1]]),pe=this.performAction.call(ae,d,f,p,this.yy,Q[1],c,l),typeof pe<"u")return pe;ne&&(a=a.slice(0,-1*ne*2),c=c.slice(0,-1*ne),l=l.slice(0,-1*ne)),a.push(this.productions_[Q[1]][0]),c.push(ae.$),l.push(ae._$),X=u[a[a.length-2]][a[a.length-1]],a.push(X);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:i(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:i(function(o){var a=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:i(function(){return this._more=!0,this},"more"),less:i(function(o){this.unput(this.match.slice(o))},"less"),pastInput:i(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),f=0;f<p.length&&(c=this._input.match(this.rules[p[f]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=f,!this.options.flex)));f++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,p[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Moreinformationcanbefoundat:https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var oSt,iSt,Mwe,Fwe=g(()=>{oSt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),iSt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Mwe=i(t=>({applyToStack:i(e=>{e.add(oSt(),iSt)},"applyToStack")}),"getLongPollPlugin")});function Id(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var Uwe=g(()=>{i(Id,"setCredentialFeature")});var qwe,kY,Gwe=g(()=>{qwe=require("node:stream"),kY=i(t=>t?.body instanceof qwe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var jf,wd,Sd,Hwe,$we,xP=g(()=>{jf=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),wd=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Sd=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((f,m)=>Hwe[m.step]-Hwe[f.step]||$we[m.priority||"normal"]-$we[f.priority||"normal"]),"sort"),o=i(p=>{let f=!1,m=i(A=>{let h=jf(A.name,A.aliases);if(h.includes(p)){f=!0;for(let y of h)n.delete(y);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByName"),a=i(p=>{let f=!1,m=i(A=>{if(A.middleware===p){f=!0;for(let h of jf(A.name,A.aliases))n.delete(h);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByReference"),c=i(p=>(t.forEach(f=>{p.add(f.middleware,{...f})}),e.forEach(f=>{p.addRelativeTo(f.middleware,{...f})}),p.identifyOnResolve?.(d.identifyOnResolve()),p),"cloneTo"),l=i(p=>{let f=[];return p.before.forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f.push(p),p.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f},"expandRelativeMiddlewareList"),u=i((p=!1)=>{let f=[],m=[],A={};return t.forEach(y=>{let C={...y,before:[],after:[]};for(let w of jf(C.name,C.aliases))A[w]=C;f.push(C)}),e.forEach(y=>{let C={...y,before:[],after:[]};for(let w of jf(C.name,C.aliases))A[w]=C;m.push(C)}),m.forEach(y=>{if(y.toMiddleware){let C=A[y.toMiddleware];if(C===void 0){if(p)return;throw new Error(`${y.toMiddleware} is not found when adding ${wd(y.name,y.aliases)} middleware ${y.relation} ${y.toMiddleware}`)}y.relation==="after"&&C.after.push(y),y.relation==="before"&&C.before.push(y)}}),s(f).map(l).reduce((y,C)=>(y.push(...C),y),[])},"getMiddlewareList"),d={add:i((p,f={})=>{let{name:m,override:A,aliases:h}=f,y={step:"initialize",priority:"normal",middleware:p,...f},C=jf(m,h);if(C.length>0){if(C.some(w=>n.has(w))){if(!A)throw new Error(`Duplicate middleware name '${wd(m,h)}'`);for(let w of C){let x=t.findIndex(N=>N.name===w||N.aliases?.some(v=>v===w));if(x===-1)continue;let b=t[x];if(b.step!==y.step||y.priority!==b.priority)throw new Error(`"${wd(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${wd(m,h)}" middleware with ${y.priority} priority in ${y.step} step.`);t.splice(x,1)}}for(let w of C)n.add(w)}t.push(y)},"add"),addRelativeTo:i((p,f)=>{let{name:m,override:A,aliases:h}=f,y={middleware:p,...f},C=jf(m,h);if(C.length>0){if(C.some(w=>n.has(w))){if(!A)throw new Error(`Duplicate middleware name '${wd(m,h)}'`);for(let w of C){let x=e.findIndex(N=>N.name===w||N.aliases?.some(v=>v===w));if(x===-1)continue;let b=e[x];if(b.toMiddleware!==y.toMiddleware||b.relation!==y.relation)throw new Error(`"${wd(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${wd(m,h)}" middleware ${y.relation} "${y.toMiddleware}" middleware.`);e.splice(x,1)}}for(let w of C)n.add(w)}e.push(y)},"addRelativeTo"),clone:i(()=>c(Sd()),"clone"),use:i(p=>{p.applyToStack(d)},"use"),remove:i(p=>typeof p=="string"?o(p):a(p),"remove"),removeByTag:i(p=>{let f=!1,m=i(A=>{let{tags:h,name:y,aliases:C}=A;if(h&&h.includes(p)){let w=jf(y,C);for(let x of w)n.delete(x);return f=!0,!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByTag"),concat:i(p=>{let f=c(Sd());return f.use(p),f.identifyOnResolve(r||f.identifyOnRes
`),"stackTraceWarning"),wg={warn:console.warn}});function Bo(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,p=c<10?`0${c}`:`${c}`;return`${BSt[n]},${l}${gJ[r]}${e}${u}:${d}:${p}GMT`}var BSt,gJ,RSt,Rxe,NSt,bg,TSt,vSt,PSt,Nd,Bg,Ow,QSt,_St,DSt,hJ,kSt,LSt,OSt,kc,MSt,FSt,xg,Nxe=g(()=>{AJ();BSt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],gJ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Bo,"dateToUtcString");RSt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Rxe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=RSt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=Rd(xg(n)),p=kc(s,"month",1,12),f=kc(o,"day",1,31);return Ow(d,p,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),NSt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),bg=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=NSt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u,d]=e,p=Rd(xg(n)),f=kc(s,"month",1,12),m=kc(o,"day",1,31),A=Ow(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&A.setTime(A.getTime()-FSt(d)),A},"parseRfc3339DateTimeWithOffset"),TSt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),vSt=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),PSt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Nd=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=TSt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return Ow(Rd(xg(o)),hJ(s),kc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=vSt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return DSt(Ow(QSt(o),hJ(s),kc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=PSt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Ow(Rd(xg(u)),hJ(n),kc(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Bg=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=Lw(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},"parseEpochTimestamp"),Ow=i((t,e,r,n)=>{let s=e-1;return LSt(t,s,r),new Date(Date.UTC(t,s,r,kc(n.hours,"hour",0,23),kc(n.minutes,"minute",0,59),kc(n.seconds,"seconds",0,60),MSt(n.fractionalMilliseconds)))},"buildDate"),QSt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Rd(xg(t));return r<e?r+100:r},"parseTwoDigitYear"),_St=50*365*24*60*60*1e3,DSt=i(t=>t.getTime()-new Date().getTime()>_St?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),hJ=i(t=>{let e=gJ.indexOf(t);if(e<0)throw new TypeError(`Invalidmonth:${t}`);return e+1},"parseMonthByShortName"),kSt=[31,28,31,30,31,30,31,31,30,31,30,31],LSt=i((t,e,r)=>{let n=kSt[e];if(e===1&&OSt(t)&&(n=29),r>n)throw new TypeError(`Invaliddayfor${gJ[e]}in${t}:${r}`)},"validateDayOfMonth"),OSt=i(t=>t%4===0&&(t%100!==0|
`+c}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(c):n.logger?.warn?.(c)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(sn.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:xJ(/^x-[\w-]+-request-?id$/,u),extendedRequestId:xJ(/^x-[\w-]+-id-2$/,u),cfId:xJ(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),xJ=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var Ro,Fw=g(()=>{Ro=class t extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(e,r=!0){let n,s=!0;typeof r=="boolean"?(n=void 0,s=r):r!=null&&typeof r=="object"&&(n=r.logger,s=r.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider${s?"->":"(!)"}${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var vd,KP=g(()=>{Fw();vd=class t extends Ro{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var XP,Uxe=g(()=>{Fw();XP=class t extends Ro{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var ZP,BJ=g(()=>{Fw();ZP=i((...t)=>async()=>{if(t.length===0)throw new Ro("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e},"chain")});var eQ,RJ=g(()=>{eQ=i(t=>()=>Promise.resolve(t),"fromValue")});var Tg,tQ=g(()=>{Tg=i((t,e,r)=>{let n,s,o,a=!1,c=i(async()=>{s||(s=t());try{n=await s,o=!0,a=!1}finally{s=void 0}return n},"coalesceProvider");return e===void 0?async l=>((!o||l?.forceRefresh)&&(n=await c()),n):async l=>((!o||l?.forceRefresh)&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(e(n)&&await c(),n))},"memoize")});var on,rQ=g(()=>{on=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannotload${r}"${e}".Expected"true"or"false",got${t[e]}.`)}},"booleanSelector")});var qxe,Gxe=g(()=>{qxe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannotload${r}'${e}'.Expectednumber,got'${t[e]}'.`);return n},"numberSelector")});var Lr,nQ=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Lr||(Lr={}))});var Hxe,$xe,NJ,zSt,Mc,vg=g(()=>{Hxe=require("node:os"),$xe=require("node:path"),NJ={},zSt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),Mc=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${$xe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=zSt();return NJ[s]||(NJ[s]=(0,Hxe.homedir)()),NJ[s]},"getHomeDir")});var TJ,vJ,sQ,PJ=g(()=>{TJ="AWS_PROFILE",vJ="default",sQ=i(t=>t.profile||process.env[TJ]||vJ,"getProfileName")});var zxe,Vxe,oQ,QJ=g(()=>{zxe=require("node:crypto"),Vxe=require("node:path");vg();oQ=i(t=>{let r=(0,zxe.createHash)("sha1").update(t).digest("hex");return(0,Vxe.join)(Mc(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var Wxe,Uw,Yxe,_J=g(()=>{Wxe=require("node:fs/promises");QJ();Uw={},Yxe=i(async t=>{if(Uw[t])return Uw[t];let e=oQ(t),r=await(0,Wxe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var Fc,Jxe=g(()=>{Fc="."});var DJ,jxe,Kxe=g(()=>{DJ=R(Nc()),jxe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(DJ.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===DJ.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var Xxe,VSt,iQ,kJ=g(()=>{Xxe=require("node:path");vg();VSt="AWS_CONFIG_FILE",iQ=i(()=>process.env[VSt]||(0,Xxe.join)(Mc(),".aws","config"),"getConfigFilepath")});var Zxe,WSt,ebe,tbe=g(()=>{Zxe=require("node:path");vg();WSt="AWS_SHARED_CREDENTIALS_FILE",ebe=i(()=>process.env[WSt]||(0,Zxe.join)(Mc(),".aws","credentials"),"getCredentialsFilepath")});var rbe,YSt
`)}p.push(null)}),p}var TBe,PBe=g(()=>{TBe=require("node:stream");NBe();oa();i(vBe,"getAwsChunkedEncodingStream")});async function QBe(t,e){let r=0,n=[],s=t.getReader(),o=!1;for(;!o;){let{done:l,value:u}=await s.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;o=l}s.releaseLock();let a=new Uint8Array(Math.min(e,r)),c=0;for(let l of n){if(l.byteLength>a.byteLength-c){a.set(l.subarray(0,a.byteLength-c),c);break}else a.set(l,c);c+=l.length}return a}var _Be=g(()=>{i(QBe,"headStream")});var DBe,kBe,v8,LBe=g(()=>{DBe=require("node:stream");Mw();_Be();oa();kBe=i((t,e)=>Yr(t)?QBe(t,e):new Promise((r,n)=>{let s=new v8;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=Oc(this.buffers);r(o)})}),"headStream"),v8=class extends DBe.Writable{static{i(this,"Collector")}buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let s=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-s),this.emit("finish")}n()}}});var OBe,MBe=g(()=>{OBe=i(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)},"toUtf8")});async function P8(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function Q8(t){let e=[],r=t.getReader(),n=0;for(;;){let{done:s,value:o}=await r.read();if(o&&(e.push(o),n+=o.length),s)break}return Oc(e,n)}var FBe,_8=g(()=>{Mw();oa();FBe=i(async t=>Pd(t)?P8(t):Q8(t),"streamCollector");i(P8,"collectBlob");i(Q8,"collectReadableStream")});var UBe,GBe,qBe,HBe=g(()=>{B8();wJ();MBe();_8();oa();UBe="The stream has already been transformed.",GBe=i(t=>{if(!qBe(t)&&!Yr(t)){let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpectedstreamimplementation,expectBloborReadableStream,got${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(UBe);return e=!0,await FBe(t)},"transformToByteArray"),n=i(s=>{if(typeof s.stream!="function")throw new Error(`CannottransformpayloadBlobtowebstream.PleasemakesuretheBlob.stream()ispolyfilled.
IfyouareusingReactNative,thisAPIisnotyetsupported,see:https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return s.stream()},"blobToWebStream");return Object.assign(t,{transformToByteArray:r,transformToString:i(async s=>{let o=await r();if(s==="base64")return QQ(o);if(s==="hex")return hi(o);if(s===void 0||s==="utf8"||s==="utf-8")return OBe(o);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(o);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(UBe);if(e=!0,qBe(t))return n(t);if(Yr(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),qBe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var $Be,DQ,D8,k8=g(()=>{$Be=require("node:stream");Mw();_8();oa();DQ=i(t=>Pd(t)?P8(t):Yr(t)?Q8(t):new Promise((e,r)=>{let n=new D8,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=Oc(this.bufferedBytes);e(o)})}),"streamCollector"),D8=class extends $Be.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var kQ,zBe,LQ,VBe=g(()=>{kQ=require("node:stream");Bd();HBe();k8();zBe="The stream has already been transformed.",LQ=i(t=>{if(!(t instanceof kQ.Readable))try{return GBe(t)}catch{let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(zBe);return e=!0,await DQ(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?sa(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(zBe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof kQ.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,kQ.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function WBe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var YBe=g(()=>{i(WBe,"splitStream")});async function JBe(t){if(Yr(t)||Pd(t))return WBe(t);let e=new L8.PassThrough,r=new L8.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var L8,jBe=g(()=>{L8=require("node:stream");YBe();oa();i(JBe,"splitStream")});var Mg={};Mr(Mg,{ChecksumStream:()=>Lg,Hash:()=>TQ,LazyJsonString:()=>kr,NumericValue:()=>Ye,Uint8ArrayBlobAdapter:()=>nm,_parseEpochTimestamp:()=>Td,_parseRfc3339DateTimeWithOffset:()=>zP,_parseRfc7231DateTime:()=>VP,calculateBodyLength:()=>Lc,concatBytes:()=>Oc,copyDocumentWithTransform:()=>fxe,createBufferedReadable:()=>bBe,createChecksumStream:()=>CBe,dateToUtcString:()=>Bo,deserializerMiddleware:()=>jP,deserializerMiddlewareOption:()=>w8,expectBoolean:()=>hxe,expectByte:()=>MP,expectFloat32:()=>kw,expectInt:()=>gxe,expectInt32:()=>LP,expectLong:()=>Ig,expectNonNull:()=>yxe,expectNumber:()=>Cg,expectObject:()=>fJ,expectShort:()=>OP,expectString:()=>Exe,expectUnion:()=>UP,fromArrayBuffer:()=>sa,fromBase64:()=>dr,fromHex:()=>JP,fromString:()=>bd,fromUtf8:()=>Wr,generateIdempotencyToken:()=>Qo,getAwsChunkedEncodingStream:()=>vBe,getSerdePlugin:()=>iBe,handleFloat:()=>Ixe,headStream:()=>kBe,isArrayBuffer:()=>_P,isBlob:()=>Pd,isReadableStream:()=>Yr,limitedParseDouble:()=>GP,limitedParseFloat:()=>wxe,limitedParseFloat32:()=>Sxe,logger:()=>wg,nv:()=>YP,parseBoolean:()=>Axe,parseEpochTimestamp:()=>Bg,parseRfc3339DateTime:()=>Rxe,parseRfc3339DateTimeWithOffset:()=>bg,parseRfc7231DateTime:()=>Nd,quoteHeader:()=>$P,sdkStreamMixin:()=>LQ,serializerMiddleware:()=>NQ,serializerMiddlewareOption:()=>S8,splitEvery:()=>WP,splitHeader:()=>Rg,splitStream:()=>JBe,streamCollector:()=>DQ,strictParseByte:()=>HP,strictParseDouble:()=>Lw,strictParseFloat:()=>Cxe,strictParseFloat32:()=>qP,strictParseInt:()=>bxe,
`));return r(s)},"httpAuthSchemeMiddleware")});var y_,ua,wNe=g(()=>{g_();y_={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},ua=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(cm(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),y_)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var E_,Fj,SNe=g(()=>{g_();E_={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},Fj=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(cm(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),E_)},"applyToStack")}),"getHttpAuthSchemePlugin")});var xNe=g(()=>{g_();wNe();SNe()});var Zxt,ebt,iS,Uj=g(()=>{he();It();Zxt=i(t=>e=>{throw e},"defaultErrorHandler"),ebt=i((t,e)=>{},"defaultSuccessHandler"),iS=i(t=>(e,r)=>async n=>{if(!$e.isInstance(n.request))return e(n);let o=Bt(r).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:l}=o,u=await e({...n,request:await l.sign(n.request,c,a)}).catch((l.errorHandler||Zxt)(a));return(l.successHandler||ebt)(u.response,a),u},"httpSigningMiddleware")});var C_,da,bNe=g(()=>{Uj();C_={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},da=i(t=>({applyToStack:i(e=>{e.addRelativeTo(iS(t),C_)},"applyToStack")}),"getHttpSigningPlugin")});var BNe=g(()=>{Uj();bNe()});var Ii,RNe=g(()=>{Ii=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function NNe(t,e,r,n,s){return i(async function*(a,c,...l){let u=c,d=a.startingToken??u[r],p=!0,f;for(;p;){if(u[r]=d,s&&(u[s]=u[s]??a.pageSize),a.client instanceof t)f=await tbt(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalidclient,expectedinstanceof${t.name}`);yield f;let m=d;d=rbt(f,n),p=!!(d&&(!a.stopOnSameToken||d!==m))}return void 0},"paginateOperation")}var tbt,rbt,TNe=g(()=>{tbt=i(async(t,e,r,n=o=>o,...s)=>{let o=new t(r);return o=n(o)??o,await e.send(o,...s)},"makePagedClientRequest");i(NNe,"createPaginator");rbt=i((t,e)=>{let r=t,n=e.split(".");for(let s of n){if(!r||typeof r!="object")return;r=r[s]}return r},"get")});function vNe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var PNe=g(()=>{i(vNe,"setFeature")});var Do,QNe=g(()=>{Do=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(e){for(let r in e){let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var qj,ry,_Ne=g(()=>{he();qj=R(Nc()),ry=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=$e.clone(e);if(n.in===qj.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===qj.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme}${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return s}}});var ny,DNe=g(()=>{he();ny=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=$e.clone(e);if(!r.token)throw new Error("request could not be signed with `token`
${lm(a)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let o of e.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return L_(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=fbt(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},iy={},M_=[],F_=i((t,e,r)=>`${t}/${e}/${r}/${I5}`,"createScope"),JTe=i(async(t,e,r,n,s)=>{let o=await PTe(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${lm(o)}:${e.sessionToken}`;if(a in iy)return iy[a];for(M_.push(a);M_.length>VTe;)delete iy[M_.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,I5])c=await PTe(t,c,l);return iy[a]=c},"getSigningKey"),Abt=i(()=>{M_.length=0,Object.keys(iy).forEach(t=>{delete iy[t]})},"clearCredentialCache"),PTe=i((t,e,r)=>{let n=new t(e);return n.update(gS(r)),n.digest()},"hmac"),f5=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(o in qTe||e?.has(o)||GTe.test(o)||HTe.test(o))&&(!r||r&&!r.has(o))||(n[o]=t[s].trim().replace(/\s+/g," "))}return n},"getCanonicalHeaders"),U_=i(async({headers:t,body:e},r)=>{for(let n of Object.keys(t))if(n.toLowerCase()===q_)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||abt(e)){let n=new r;return n.update(gS(e)),lm(await n.digest())}return zTe},"getPayloadHash"),jTe=i((t,e)=>{t=t.toLowerCase();for(let r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},"hasHeader"),KTe=i((t,e={})=>{let{headers:r,query:n={}}=QTe.clone(t);for(let s of Object.keys(r)){let o=s.toLowerCase();(o.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(o)||e.hoistableHeaders?.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},"moveHeadersToQuery"),m5=i(t=>{t=QTe.clone(t);for(let e of Object.keys(t.headers))MTe.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),A5=class extends G_{static{i(this,"SignatureV4")}headerFormatter=new d5;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:l,signingRegion:u,signingService:d}=r,p=await this.credentialProvider();this.validateResolvedCredentials(p);let f=u??await this.regionProvider(),{longDate:m,shortDate:A}=this.formatDate(n);if(s>WTe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let h=F_(A,f,d??this.service),y=KTe(m5(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(y.query[y5]=p.sessionToken),y.query[_Te]=O_,y.query[DTe]=`${p.accessKeyId}/${h}`,y.query[h5]=m,y.query[LTe]=s.toString(10);let C=f5(y,o,c);return y.query[kTe]=this.getCanonicalHeaderList(C),y.query[g5]=await this.getSignature(m,h,this.getSigningKey(p,f,A,d),this.createCanonicalRequest(y,C,await U_(e,this.sha256))),y}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:s,signingRegion:o,signingService:a,eventStreamCredentials:c}){let l=o??await this.regionProvider(),{shortDate:u,longDate:d}=this.formatDate(n),p=F_(u,l,a??this.service),f=await U_({headers:{},body:r},this.sha256),m=new this.sha256;m.update(e);let A=lm(await m.digest()),h=[$Te,d,p,s,A,f].join(`
-EKScontainerhost169.254.170.23or[fd00:ec2::23]`,{logger:e})}},"checkUrl");function y0t(t){return new d0t({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}i(y0t,"createGetRequest");async function E0t(t,e){let n=await p0t(t.body).transformToString();if(t.statusCode===200){let s=JSON.parse(n);if(typeof s.AccessKeyId!="string"||typeof s.SecretAccessKey!="string"||typeof s.Token!="string"||typeof s.Expiration!="string")throw new um("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.Token,expiration:f0t(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new um(`Serverrespondedwithstatus:${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new um(`Serverrespondedwithstatus:${t.statusCode}`,{logger:e})}i(E0t,"getCredentials");var C0t=i((t,e,r)=>async()=>{for(let n=0;n<e;++n)try{return await t()}catch{await new Promise(o=>setTimeout(o,r))}return await t()},"retryWrapper"),I0t="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",w0t="http://169.254.170.2",S0t="AWS_CONTAINER_CREDENTIALS_FULL_URI",x0t="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",b0t="AWS_CONTAINER_AUTHORIZATION_TOKEN",B0t=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[I0t],n=t.awsContainerCredentialsFullUri??process.env[S0t],s=t.awsContainerAuthorizationToken??process.env[b0t],o=t.awsContainerAuthorizationTokenFile??process.env[x0t],a=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsRelativeUri will take precedence.")),s&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${w0t}${r}`;else if(n)e=n;else throw new um(`NoHTTPcredentialproviderhostprovided.
`),this.z=this.x.length}parse(){let e=this,{z:r}=e;for(;e.i<r&&(e.trim(),!(e.i>=r));)if(e.isNext("<?"))e.readTo("?>"),e.trim();else if(e.isNext("<!--"))e.readTo("-->"),e.trim();else if(e.isNext("<!DOCTYPE",!1))e.skipDoctype(),e.trim();else if(e.x[e.i]==="<"){let n=e.parseTag();return{[n.tag]:n.value}}else throw new Error("@aws-sdk XML parse error: unexpected content.");throw new Error("@aws-sdk XML parse error: no root element.")}isNext(e,r=!0){let n=this;return r?n.x.startsWith(e,n.i):n.x.toLowerCase().startsWith(e.toLowerCase(),n.i)}readTo(e){let r=this,n=r.x.indexOf(e,r.i);if(n===-1)throw new Error(`@aws-sdkXMLparseerror:expected"${e}"notfound.`);let s=r.x.slice(r.i,n);return r.i=n+e.length,s}trim(){let e=this;for(;e.i<e.z&&`\r
>/?`.includes(e.x[e.i]);)d+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),d==="__proto__"&&g6(s),s[d]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-sdkXMLparseerror:expected>attheendofself-closingtag.");return++e.i,{tag:r,value:n?s:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdkXMLparseerror:expected>attheendofopeningtag.");++e.i;let o=[],a=[],c=!1;for(;e.i<e.z&&!e.isNext("</");)if(e.x[e.i]==="<")e.isNext("<!--")?e.readTo("-->"):e.isNext("<![CDATA[")?(e.i+=9,o.push(e.readTo("]]>"))):e.isNext("<?")?e.readTo("?>"):(c=!0,a.push(e.parseTag()));else{let d="";for(;e.i<e.z&&e.x[e.i]!=="<";)d+=e.x[e.i++];o.push(e.decodeEntities(d))}if(!e.isNext("</"))throw new Error(`@aws-sdk XML parse error: missing closing tag </${r}>.`);e.i+=2;let l=e.readTo(">").trim();if(l!==r)throw new Error(`@aws-sdk XML parse error: mismatched tags <${r}> and </${l}>.`);if(!n&&o.length===0&&!c)return{tag:r,value:""};if(!n&&!c){let d=o.length===1?o[0]:o.join("");return d.trim()===""&&d.includes(`
`)||(u["#text"]="#text"in u?u["#text"]+d:d);for(let d of a)d.tag==="__proto__"&&g6(u),d.tag in u?Array.isArray(u[d.tag])?u[d.tag].push(d.value):u[d.tag]=[u[d.tag],d.value]:u[d.tag]=d.value;for(let[d,p]of Object.entries(s))d==="__proto__"&&g6(u),u[d]=p;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<e.z;){let n=e.x[e.i];if(n==="[")++r;else if(n==="]")--r;else if(n===">"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,s,o)=>n?String.fromCharCode(parseInt(n,16)):s?String.fromCharCode(parseInt(s,10)):t.ENTITIES[o]??"")}};ND.XmlNode=y6;ND.XmlText=RD;ND.parseXML=aBt});var APe,ep,vD=g(()=>{APe=R(TD());we();he();We();Ne();ga();lD();vS();ep=class extends mr{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Od(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=k.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(u=>!!u.getMemberTraits().eventPayload)){let u={},d=Object.keys(o)[0];return o[d].isBlobSchema()?u[d]=r:u[d]=this.read(o[d],r),u}let c=(this.serdeContext?.utf8Encoder??jt)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=k.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[u];if(d==null)return l;let p=Array.isArray(d)?d:[d];for(let f of p)l.push(this.readSchema(c,f));return l}let a={};if(n.isMapSchema()){let c=n.getKeySchema(),l=n.getValueSchema(),u;o?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let d=c.getMergedTraits().xmlName??"key",p=l.getMergedTraits().xmlName??"value";for(let f of u){let m=f[d],A=f[p];m==="__proto__"&&bi(a),a[m]=this.readSchema(l,A)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new Kd(r,a));for(let[u,d]of n.structIterator()){let p=d.getMergedTraits(),f=p.httpPayload?p.xmlName??d.getName():d.getMemberTraits().xmlName??u;c&&l.mark(f),r[f]!=null&&(a[u]=this.readSchema(d,r[f]))}return c&&l.writeUnknown(),a}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols-xmldeserializerunhandledschematypefor${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,APe.parseXML)(e)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:e}),a}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),Zf(o)}return{}}}});var Sy,C6=g(()=>{he();We();Ne();Ne();ga();Sy=class extends mr{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=k.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Nt)(r)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):s.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(Qo()));else if(s.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(s.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof Ye?r.string:String(r)));else if(s.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),cn(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Bo(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(s.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?t
Reference:https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),tNt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t,{ssoClient:c}=t,l=KRt({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await XRt(t))[l];if(!d)throw new wa(`Profile ${l} was not found.`,{logger:t.logger});if(!f_e(d))throw new wa(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let C=(await ZRt(t))[d.sso_session],w=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==C.sso_region)throw new wa("Conflicting SSO region"+w,{tryNextLink:!1,logger:t.logger});if(r&&r!==C.sso_start_url)throw new wa("Conflicting SSO start_url"+w,{tryNextLink:!1,logger:t.logger});d.sso_region=C.sso_region,d.sso_start_url=C.sso_start_url}let{sso_start_url:p,sso_account_id:f,sso_region:m,sso_role_name:A,sso_session:h}=m_e(d,t.logger);return p_e({ssoStartUrl:p,ssoSession:h,ssoAccountId:f,ssoRegion:m,ssoRoleName:A,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new wa('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return p_e({ssoStartUrl:r,ssoSession:a,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}},"fromSSO");jD.fromSSO=tNt;jD.isSsoProfile=f_e;jD.validateSsoProfile=m_e});var j6=I(XD=>{var{SignatureV4:rNt,signatureV4aContainer:A_e}=w5(),tx={CrtSignerV4:null},Y6="X-Amz-S3session-Token",h_e=Y6.toLowerCase(),KD=class extends rNt{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=g_e(r);e.headers[h_e]=r.sessionToken;let o=this;return y_e(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=g_e(r);return delete e.headers[h_e],e.headers[Y6]=r.sessionToken,e.query=e.query??{},e.query[Y6]=r.sessionToken,y_e(this,s),this.presign(e,n)}};function g_e(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(g_e,"getCredentialsWithoutSessionToken");function y_e(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(y_e,"setSingleOverride");var J6=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof tx.CrtSignerV4=="function"?"crt":typeof A_e.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new KD(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),o=tx.CrtSignerV4;if(o&&s instanceof o)return s.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=tx.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT de
`),Jke=!0)),new yk("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),Nvt(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t;if(!r&&!n&&!s&&!o&&!a)throw new yk("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=W6();return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=Wke();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=L9();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=M9();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await Pvt(t))()),async()=>{throw new yk("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],jke),"defaultProvider"),kvt=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),jke=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");Ek.credentialsTreatedAsExpired=jke;Ek.credentialsWillNeedRefresh=kvt;Ek.defaultProvider=Dvt});var V1e=I(E=>{var{awsEndpointFunctions:Lvt,emitWarningIfUnsupportedVersion:Ovt,createDefaultUserAgentProvider:Mvt,NODE_APP_ID_CONFIG_OPTIONS:Fvt,getAwsRegionExtensionConfiguration:Uvt,resolveAwsRegionExtensionConfiguration:qvt,resolveUserAgentConfig:Gvt,resolveHostHeaderConfig:Hvt,getUserAgentPlugin:$vt,getHostHeaderPlugin:zvt,getLoggerPlugin:Vvt,getRecursionDetectionPlugin:Wvt}=(ft(),te(ma)),{getHttpAuthSchemeEndpointRuleSetPlugin:Yvt,DefaultIdentityProviderConfig:Jvt,getHttpSigningPlugin:jvt,createPaginator:Tm}=(hs(),te(Gj)),{normalizeProvider:rLe,getSmithyContext:Kvt,ServiceException:Xvt,NoOpLogger:Zvt,emitWarningIfUnsupportedVersion:ePt,loadConfigsForDefaultMode:tPt,getDefaultExtensionConfiguration:rPt,resolveDefaultRuntimeConfig:nPt,Client:nLe,makeBuilder:sPt,createWaiter:fO,checkExceptions:sLe,WaiterState:Qy,createAggregatedClient:oPt}=(we(),te(Eg)),{Command:iPt}=(we(),te(Eg));E.$Command=iPt;E.__Client=nLe;var{resolveDefaultsModeConfig:aPt,loadConfig:Bm,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:cPt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:lPt,NODE_REGION_CONFIG_OPTIONS:uPt,NODE_REGION_CONFIG_FILE_OPTIONS:dPt,resolveRegionConfig:pPt}=(pt(),te(To)),{BinaryDecisionDiagram:fPt,EndpointCache:mPt,decideEndpoint:APt,customEndpointFunctions:hPt,resolveEndpointConfig:gPt,getEndpointPlugin:yPt}=(Tt(),te(C8)),{parseUrl:EPt,getHttpHandlerExtensionConfiguration:CPt,resolveHttpHandlerRuntimeConfig:IPt,getContentLengthPlugin:wPt}=(he(),te(qd)),{DEFAULT_RETRY_MODE:SPt,NODE_RETRY_MODE_CONFIG_OPTIONS:xPt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:bPt,resolveRetryConfig:BPt,getRetryPlugin:RPt}=(_o(),te(Bj)),{TypeRegistry:oLe,getSchemaSerdePlugin:NPt}=(We(),te(eJ)),{resolveAwsSdkSigV4Config:TPt,AwsSdkSigV4Signer:vPt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:PPt}=(Gn(),te(H_)),{defaultProvider:QPt}=U9(),{toUtf8:_Pt,fromUtf8:DPt,toBase64:kPt,fromBase64:LPt,calculateBodyLength:OPt}=(Ne(),te(Mg)),{streamCollector:MPt,NodeHttpHandler:FPt}=mu(),{AwsJson1_1Protocol:UPt}=(mm(),te(B6)),{Sha256:qPt}=(du(),te(z8)),GPt=i(async(t,e,r)=>({operation:Kvt(e).operation,region:await rLe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");function HPt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(HPt,"createAwsAuthSigv4HttpAuthOption");var $Pt=i(t=>{let e=[];switch(t.operation){default:e.push(HPt(t))}return e},"defaultECRHttpAuthSchemeProvider"),zPt=i(t=>{let e=TPt(t);return Object.assign(e,{authSchemePreference:rLe(t.authSchemePreference??[
ErrorMessage:${a.message}`)})).result)===null||r===void 0?void 0:r.value;if(!o)throw new Error("Response json body do not have ID Token field");return o})}static getIDToken(e){return doe(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}P(`IDtokenurlis${r}`);let n=yield t.getCall(r);return _n(n),n}catch(r){throw new Error(`Errormessage:${r.message}`)}})}};var foe=require("os"),KE=require("fs");var m2=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:P9e,appendFile:Q9e,writeFile:_9e}=KE.promises,poe="GITHUB_STEP_SUMMARY";var A2=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return m2(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[poe];if(!e)throw new Error(`Unabletofindenvironmentvariablefor$${poe}.Checkifyourruntimeenvironmentsupportsjobsummaries.`);try{yield P9e(e,KE.constants.R_OK|KE.constants.W_OK)}catch{throw new Error(`Unabletoaccesssummaryfile:'${e}'.Checkifthefilehascorrectread/writepermissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>`${o}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){returnm2(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?_9e:Q9e)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnm2(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){returnthis._buffer.length===0}emptyBuffer(){returnthis._buffer="",this}addRaw(e,r=!1){returnthis._buffer+=e,r?this.addEOL():this}addEOL(){returnthis.addRaw(foe.EOL)}addCodeBlock(e,r){letn=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);returnthis.addRaw(s).addEOL()}addList(e,r=!1){letn=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);returnthis.addRaw(o).addEOL()}addTable(e){letr=e.map(s=>{leto=s.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",f=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});returnthis.wrap(p,l,f)}).join("");returnthis.wrap("tr",o)}).join(""),n=this.wrap("table",r);returnthis.addRaw(n).addEOL()}addDetails(e,r){letn=this.wrap("details",this.wrap("summary",e)+r);returnthis.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));returnthis.addRaw(c).addEOL()}addHeading(e,r){letn=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);returnthis.addRaw(o).addEOL()}addSeparator(){lete=this.wrap("hr",null);returnthis.addRaw(e).addEOL()}addBreak(){lete=this.wrap("br",null);returnthis.addRaw(e).addEOL()}addQuote(e,r){letn=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);returnthis.addRaw(s).addEOL()}addLink(e,r){letn=this.wrap("a",e,{href:r});returnthis.addRaw(n).addEOL()}},WVt=newA2;varb2=R(require("os"),1);varx2=require("string_decoder");varZE=R(require("os"),1),S2=R(require("events"),1),Boe=R(require("child_process"),1),Roe=R(require("path"),1);varIoe=require("assert"),so=R(require("path"),1);varXE=R(require("fs"),1),qu=R(require("path"),1);varh2=function(t,e,r,n){functions(o){returnoinstanceofr?o:newr(function(a){a(o)})}returni(s,"adopt"),new(r||(r=Promise))(function(o,a){functionc(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");functionl(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");functionu(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{chmod:g2,copyFile:Aoe,lstat:$0,mkdir:hoe,o
${lnt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function MB(t){return t instanceof rs?!0:tf(t)&&t.name==="RestError"}i(MB,"isRestError");function Bs(t,e){return Buffer.from(t,e)}i(Bs,"stringToUint8Array");var FB=R(require("node:http"),1),UB=R(require("node:https"),1),Yq=R(require("node:zlib"),1),kue=require("node:stream");var Jo=QC("ts-http-runtime");var unt={};function _C(t){return t&&typeof t.pipe=="function"}i(_C,"isReadableStream");function Due(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}i(Due,"isStreamComplete");function Lue(t){return t&&typeof t.byteLength=="number"}i(Lue,"isArrayBuffer");var qB=class extends kue.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},Jq=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new $a("The operation was aborted. Request has already been canceled.");n=i(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new Gi;Jo.info(`requestto'${u.sanitizeUrl(e.url)}'timedout.canceling...`),r.abort()},e.timeout));let o=e.headers.get("Accept-Encoding"),a=o?.includes("gzip")||o?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=mnt(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,h=new qB(A);h.on("error",y=>{Jo.error("Error in upload progress",y)}),_C(c)?c.pipe(h):h.end(c),c=h}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=dnt(u),f={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),f;l=a?pnt(u,d):u;let m=e.onDownloadProgress;if(m){let A=new qB(m);A.on("error",h=>{Jo.error("Error in download progress",h)}),l.pipe(A),l=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=l:f.bodyAsText=await fnt(l),f}finally{if(e.abortSignal&&n){let u=Promise.resolve();_C(c)&&(u=Due(c));let d=Promise.resolve();_C(l)&&(d=Due(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{Jo.warning("Error when cleaning up abortListener on httpRequest",p)})}}}makeRequest(e,r,n){let s=new URL(e.url),o=s.protocol!=="https:";if(o&&!e.allowInsecureConnection)throw new Error(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);let c={agent:e.agent??this.getOrCreateAgent(e,o),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=o?FB.default.request(c,l):UB.default.request(c,l);d.once("error",p=>{u(new rs(p.message,{code:p.code??rs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let p=new $a("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&_C(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):Lue(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Jo.error("Unrecognized body type",n),u(new rs("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?FB.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new FB.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return UB.default.globalAgent;let s=e.tlsSettings??unt,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(Jo.info("No cached TLS Agent exi
`;return e}i($st,"encodeHeaders");function zst(t){return t instanceof Uint8Array?t.byteLength:uR(t)?t.size===-1?void 0:t.size:void 0}i(zst,"getLength");function Vst(t){let e=0;for(let r of t){let n=zst(r);if(n===void 0)return;e+=n}return e}i(Vst,"getTotalLength");async function Wst(t,e,r){let n=[Bs(`--${r}`,"utf-8"),...e.flatMap(o=>[Bs(`\r
`,"utf-8")],s=Vst(n);s&&t.headers.set("Content-Length",s),t.body=await Ude(n)}i(Wst,"buildRequestBody");var LC="multipartPolicy",Yst=70,Jst=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function jst(t){if(t.length>Yst)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!Jst.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}i(jst,"assertValidBoundary");function pR(){return{name:LC,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${n}`);let[,o,a]=s;if(a&&r&&a!==r)throw new Error(`Multipartboundarywasspecifiedas${a}intheheader,butgot${r}intherequestbody`);return r??=a,r?jst(r):r=Hst(),t.headers.set("Content-Type",`${o};boundary=${r}`),await Wst(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(pR,"multipartPolicy");function fR(){return OB()}i(fR,"createEmptyPipeline");var qde=DB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),u7t=qde.logger;function Wa(t){return qde.createClientLogger(t)}i(Wa,"createClientLogger");var Ya=Wa("core-rest-pipeline");function fG(t={}){return HB({logger:Ya.info,...t})}i(fG,"logPolicy");var mG=$B;function AG(t={}){return zB(t)}i(AG,"redirectPolicy");var mR=R(require("node:os"),1),AR=R(require("node:process"),1);function Gde(){return"User-Agent"}i(Gde,"getHeaderName");async function Hde(t){if(AR.default&&AR.default.versions){let e=`${mR.default.type()}${mR.default.release()};${mR.default.arch()}`,r=AR.default.versions;r.bun?t.set("Bun",`${r.bun}(${e})`):r.deno?t.set("Deno",`${r.deno}(${e})`):r.node&&t.set("Node",`${r.node}(${e})`)}}i(Hde,"setPlatformSpecificData");var hR="1.22.2";function sot(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i(sot,"getUserAgentString");function $de(){return Gde()}i($de,"getUserAgentHeaderName");async function gR(t){let e=new Map;e.set("core-rest-pipeline",hR),await Hde(e);let r=sot(e);return t?`${t}${r}`:r}i(gR,"getUserAgentValue");var zde=$de(),Vde="userAgentPolicy";function hG(t={}){let e=gR(t.userAgentPrefix);return{name:Vde,async sendRequest(r,n){return r.headers.has(zde)||r.headers.set(zde,await e),n(r)}}}i(hG,"userAgentPolicy");var fo=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function gG(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new fo(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(gG,"createAbortablePromise");var lot="The delay was aborted.";function OC(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return gG(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??lot})}i(OC,"delay");function Zu(t){if(tf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknownerror${e}`}}i(Zu,"getErrorMessage");function Wde(t){return tf(t)}i(Wde,"isError");function rh(){return ef()}i(rh,"randomUUID");var it=sf;var Yde=Symbol("rawContent");function EG(t){return typeof t[Yde]=="function"}i(EG,"hasRawContent");function Jde(t){return EG(t)?t[Yde]():t}i(Jde,"getRawContent");var yR=LC;function CG(){let t=pR();return{name:yR,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)EG(n.body)&&(n.body=Jde(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(CG,"multipartPolicy");var IG=VB;function wG(){return WB()}i(wG,"decompressResponsePolicy");fun
`&&t[o]!=="\r";o++)l+=t[o];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),o--),!_it(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",Ir("InvalidTag",p,ns(t,o))}let u=Nit(t,o);if(u===!1)return Ir("InvalidAttr","Attributes for '"+l+"' have open quote.",ns(t,o));let d=u.value;if(o=u.index,d[d.length-1]==="/"){let p=o-d.length;d=d.substring(0,d.length-1);let f=Dpe(d,e);if(f===!0)n=!0;else return Ir(f.err.code,f.err.msg,ns(t,p+f.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Ir("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",ns(t,a));if(r.length===0)return Ir("InvalidTag","Closing tag '"+l+"' has not been opened.",ns(t,a));{let p=r.pop();if(l!==p.tagName){let f=ns(t,p.tagStartPos);return Ir("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",ns(t,a))}r.length==0&&(s=!0)}}else return Ir("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",ns(t,o));else{let p=Dpe(d,e);if(p!==!0)return Ir(p.err.code,p.err.msg,ns(t,o-d.length+p.err.line));if(s===!0)return Ir("InvalidXml","Multiple possible root nodes found.",ns(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="!"){o++,o=_pe(t,o);continue}else if(t[o+1]==="?"){if(o=Qpe(t,++o),o.err)return o}else break;else if(t[o]==="&"){let p=Pit(t,o);if(p==-1)return Ir("InvalidChar","char '&' is not expected.",ns(t,o));o=p}else if(s===!0&&!Ppe(t[o]))return Ir("InvalidXml","Extra text at the end",ns(t,o));t[o]==="<"&&o--}}else{if(Ppe(t[o]))continue;return Ir("InvalidChar","char '"+t[o]+"' is not expected.",ns(t,o))}if(n){if(r.length==1)return Ir("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ns(t,r[0].tagStartPos));if(r.length>0)return Ir("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ir("InvalidXml","Start tag expected.",1);return!0}i(PR,"validate");function Ppe(t){return t===" "||t===" "||t===`
`||t==="\r"}i(Ppe,"isWhiteSpace");function Qpe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Ir("InvalidXml","XML declaration allowed only at the start of the document.",ns(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(Qpe,"readPI");function _pe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}i(_pe,"readCommentAndCDATA");var Bit='"',Rit="'";function Nit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Bit||t[e]===Rit)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}i(Nit,"readAttributeStr");var Tit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Dpe(t,e){let r=TR(t,Tit),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ir("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",JC(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ir("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",JC(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ir("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",JC(r[s]));let o=r[s][2];if(!Qit(o))return Ir("InvalidAttr","Attribute '"+o+"' is an invalid name.",JC(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return Ir("InvalidAttr","Attribute '"+o+"' is repeated.",JC(r[s]))}return!0}i(Dpe,"validateAttributeString");function vit(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}i(vit,"validateNumberAmpersand");function Pit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vit(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}i(Pit,"validateAmpersand");function Ir(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(Ir,"getErrorObject");function Qit(t){return WG(t)}i(Qit,"validateAttrName");function _it(t){return WG(t)}i(_it,"validateTagName");function ns(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(ns,"getLineNumberForPosition");function JC(t){return t.startIndex+t[1].length}i(JC,"getPositionFromMatch");var kpe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Lpe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntil
`);let e=new vs("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,o=new XC(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=ch(t,">",c,"Closing Tag is not closed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let m=p.indexOf(":");m!==-1&&(p=p.substr(m+1))}p=tH(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${p}>`);f&&s.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=rH(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let f=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),o.setXmlVersion(Number(f)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let f=new vs(d.tagName);f.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(f[":@"]=p),this.addChild(r,f,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=ch(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let p=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:p}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=o.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=ch(t,"]]>",c,"CDATA is not closed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,f),c=d+2}else{let d=rH(t,c,s.removeNSPrefix);if(!d){let v=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${v}"`)}let p=d.tagName,f=d.rawTagName,m=d.tagExp,A=d.attrExpPresent,h=d.closeIndex;if({tagName:p,tagExp:m}=tH(s.transformTagName,p,m,s),s.strictReservedNames&&(p===s.commentPropName||p===s.cdataPropName||p===s.textNodeName||p===s.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let C=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(C=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),m=p):m=m.substr(0,m.length-1),A=p!==m);let w=null,x={},b;b=rat(f),p!==e.tagname&&this.matcher.push(p,{},b),p!==m&&A&&(w=this.buildAttributesMap(m,this.matcher,p),w&&(x=tat(w,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let v="";if(C)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let K=this.readStopNodeData(t,f,h+1);if(!K)throw new Error(`Unexpected end of ${f}`);c=K.i,v=K.tagContent}let Q=new vs(p);w&&(Q[":@"]=w),Q.add(s.textNodeName,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,N)}else{if(C){({tagName:p,tagExp:m}=tH(s.transformTagName,p,m,s));let v=new vs(p);w&&(v[":@"]=w),this.addChild(r,v,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let v=new vs(p);w&&(v[":@"]=w),this.addChild(r,v,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let v=new vs(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),w&&(v[":@"]=w),this.addChild(r,v,this.readonlyMatcher,N),r=v}n="",c=h}}}else n+=t[c];return e.child},"parseXml"
`}),n}getCanonicalizedResourceString(e){let r=$R(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=zR(e.url),o={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();o[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(o[c])}`}return n}};var nr=class extends mf{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new nI(e,r,this)}computeHMACSHA256(e){return(0,ffe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Ur=Wa("storage-common");var Zo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Zo||(Zo={}));var od={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Zo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},kat=new fo("The operation was aborted."),sI=class extends Xa{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=od){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:od.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):od.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:od.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:od.maxRetryDelayInMs):od.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:od.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:od.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),o=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;o||(s.url=HR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=sd(s.url,Fl.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Ur.info(`RetryPolicy:=====>Try=${n}${o?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,a))return a;r=r||!o&&a.status===404}catch(c){if(Ur.error(`RetryPolicy:Caughterror,message:${c.message},code:${c.code}`),!this.shouldRetry(o,n,a,c))throw c}return await this.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Ur.info(`RetryPolicy:Attempt(s)${r}>=maxTries${this.retryOptions.maxTries},nofurthertry.`),!1;let o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of o)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return Ur.info(`RetryPolicy:Networkerror${a}found,willretry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return Ur.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Ur.info(`RetryPolicy:Willretryforstatuscode${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Re.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Ur.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Zo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Zo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Ur.info(`RetryPolicy:Delayfor${s}ms`),VR(s,n,kat)}};var oI=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new sI(e,r,this.retryOptions)}};var Lat="storageBrowserPolicy";function mfe(){return{name:Lat,async sendRequest(t,e){return it||((t.method==="GET"||t.method==="HEAD")&&(t.url=sd(t.url,Fl.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Re.COOKIE),t.headers.delete(Re.CONTENT_LENGTH)),e(t)}}}i(mfe,"storageBrowserPolicy");var Oat="StorageCorrectContentLengthPolicy";function Afe(){function t(e){e.body&&(
`}),c}i(n,"getCanonicalizedHeadersString");function s(o){let a=$R(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=zR(o.url),u={};if(l){let d=[];for(let p in l)if(Object.prototype.hasOwnProperty.call(l,p)){let f=p.toLowerCase();u[f]=l[p],d.push(f)}d.sort();for(let p of d)c+=`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Yi(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:s}}i(zlt,"generateBlobSASQueryParameters20150405");function Vlt(t,e){if(t=Sf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ac.parse(t.permissions.toString()).toString():s=hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?at(t.startsOn,!1):"",t.expiresOn?at(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Yi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(Vlt,"generateBlobSASQueryParameters20181109");function Wlt(t,e){if(t=Sf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ac.parse(t.permissions.toString()).toString():s=hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?at(t.startsOn,!1):"",t.expiresOn?at(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Yi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}i(Wlt,"generateBlobSASQueryParameters20201206");function Ylt(t,e){if(t=Sf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ac.parse(t.permissions.toString()).toString():s=hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?at(t.startsOn,!1):"",t.expiresOn?at(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?at(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?at(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Yi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:o}}i(Ylt,"generateBlobSASQueryParametersUDK20181109");function Jlt(t,e){if(t=Sf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ac.parse(t.permissions.toString()).toString():s=hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?at(t.startsOn,!1):"",t.expiresOn?at(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?at(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?at(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Yi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:o}}i(Jlt,"generateBlobSASQueryParametersUDK20200210");function jlt(t,e){if(t=Sf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ac.parse(t.permissions.toString()).toString():s=hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?at(t.startsOn,!1):"",t.expiresOn?at(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?at(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?at(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Yi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:o}}i(jlt,"generateBlobSASQueryParametersUDK20201206");function Klt(t,e){if(t=Sf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ac.parse(t.permissions.toString()).toString():s=hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?at(t.startsOn,!1):"",t.expiresOn?at(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?at(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?at(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Yi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:o}}i(Klt,"generateBlobSASQueryParametersUDK20250705");function wf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(wf,"getCanonicalName");function Sf(t){let e=t.version?t.version:jR;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}i(Sf,"SASSignatureValuesSanityCheckAndAutofill");var yI=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=rh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Hi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Hi||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 ee.withSpan("BlobLeaseClient-acquireLease",r,async n=>ue(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Hi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Hi||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 ee.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ue(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.i
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints:https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};wh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Rf=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
Moreinfoonstoragelimits:https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Rf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var NI=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Yut=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},sV=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Be(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function vAe(t,e,r){return Yut(this,void 0,void 0,function*(){var n;let s=new Yl(t),o=s.getBlockBlobClient(),a=new sV((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),P(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield o.uploadFile(e,c);if(l._response.status>=400)throw new tT(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Er(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(vAe,"uploadCacheArchiveSDK");var QAe=R(require("buffer"),1),gc=R(require("fs"),1),_Ae=R(require("stream"),1),DAe=R(require("util"),1);var rT=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function nT(t){return t?t>=200&&t<300:!1}i(nT,"isSuccessStatusCode");function Jut(t){return t?t>=500:!0}i(Jut,"isServerErrorStatusCode");function jut(t){return t?[ht.BadGateway,ht.ServiceUnavailable,ht.GatewayTimeout].includes(t):!1}i(jut,"isRetryableStatusCode");function Kut(t){return rT(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(Kut,"sleep");function PAe(t,e,r){return rT(this,arguments,void 0,function*(n,s,o,a=RB,c=NB,l=void 0){let u="",d=1;for(;d<=a;){let p,f,m=!1;try{p=yield s()}catch(A){l&&(p=l(A)),m=!0,u=A.message}if(p&&(f=o(p),!Jut(f)))return p;if(f&&(m=jut(f),u=`Cache service responded with ${f}`),P(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!m){P(`${n} - Error is not retryable`);break}yield Kut(c),d++}throw Error(`${n} failed: ${u}`)})}i(PAe,"retry");function TI(t,e){return rT(this,arguments,void 0,function*(r,n,s=RB,o=NB){return yield PAe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof Ha)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(TI,"retryTypedResponse");function Sh(t,e){return rT(this,arguments,void 0,function*(r,n,s=RB,o=NB){return yield PAe(r,n,a=>a.message.statusCode,s,o)})}i(Sh,"retryHttpClientResponse");var si=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(
Othercacheswithsimilarkey:`);for(let c of o?.artifactCaches||[])P(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}i(odt,"printCachesListForDiagnostics");function lV(t,e,r){return Ds(this,void 0,void 0,function*(){let n=new WAe.URL(t),s=MAe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield LAe(t,e,s):s.concurrentBlobDownloads?yield kAe(t,e,s):yield oT(t,e):yield oT(t,e)})}i(lV,"downloadCache");function JAe(t,e,r){return Ds(this,void 0,void 0,function*(){let n=cV(),s=WA(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield TI("reserveCache",()=>Ds(this,void 0,void 0,function*(){return n.postJson(PI("caches"),o)}))})}i(JAe,"reserveCache");function VAe(t,e){return`bytes${t}-${e}/*`}i(VAe,"getContentRange");function idt(t,e,r,n,s){return Ds(this,void 0,void 0,function*(){P(`Uploadingchunkofsize${s-n+1}bytesatoffset${n}withcontentrange:${VAe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":VAe(n,s)},a=yield Sh(`uploadChunk(start:${n},end:${s})`,()=>Ds(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!nT(a.message.statusCode))throw new Error(`Cacheservicerespondedwith${a.message.statusCode}duringuploadchunk.`)})}i(idt,"uploadChunk");function adt(t,e,r,n){return Ds(this,void 0,void 0,function*(){let s=Ga(r),o=PI(`caches/${e.toString()}`),a=xh.openSync(r,"r"),c=oV(n),l=kq("uploadConcurrency",c.uploadConcurrency),u=kq("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];P("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Ds(this,void 0,void 0,function*(){for(;p<s;){let f=Math.min(s-p,u),m=p,A=p+f-1;p+=u,yield idt(t,o,()=>xh.createReadStream(r,{fd:a,start:m,end:A,autoClose:!1}).on("error",h=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${h.message}`)}),m,A)}})))}finally{xh.closeSync(a)}})}i(adt,"uploadFile");function cdt(t,e,r){return Ds(this,void 0,void 0,function*(){let n={size:r};return yield TI("commitCache",()=>Ds(this,void 0,void 0,function*(){return t.postJson(PI(`caches/${e.toString()}`),n)}))})}i(cdt,"commitCache");function uV(t,e,r,n){return Ds(this,void 0,void 0,function*(){if(oV(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield vAe(r,e,n)}else{let o=cV();P("Upload cache"),yield adt(o,t,e,n),P("Commiting cache");let a=Ga(e);Be(`CacheSize:~${Math.round(a/(1024*1024))}MB(${a}B)`);let c=yield cdt(o,t,a);if(!nT(c.statusCode))throw new Error(`Cacheservicerespondedwith${c.statusCode}duringcommitcache.`);Be("Cache saved successfully")}})}i(uV,"saveCache");var Hhe=R(Lhe(),1),br=R(xr(),1),Eo=R(xr(),1),Qf=R(xr(),1),_f=R(xr(),1),Df=R(xr(),1);var s4=R(xr(),1),o4=R(xr(),1),Uhe=R(xr(),1),qhe=R(xr(),1),Ghe=R(xr(),1);var t4=R(xr(),1),r4=R(xr(),1),Ohe=R(xr(),1),Mhe=R(xr(),1),Fhe=R(xr(),1);var n4=class extends Fhe.MessageType{static{i(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Mhe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ohe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:o.scope=e.string();break;case 2:o.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknownfield${c}(wiretype${l})for${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?r4.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,t4.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,t4.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?r4.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},VT=new n4;var i4=class extends Ghe.Me
`));let n=yield I4(r,"create");yield w4(n,t)})}i(x4,"createTar");var Uh=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Ki=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},kf=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},b4="cache write denied:",jT=class t extends kf{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Whe=TB,KT=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},XT=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Yhe(t){if(!t||t.length===0)throw new Ki("Path Validation Error: At least one directory or file path is required")}i(Yhe,"checkPaths");function B4(t){if(t.length>512)throw new Ki(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new Ki(`KeyValidationError:${t}cannotcontaincommas.`)}i(B4,"checkKey");function R4(){return vI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(R4,"isFeatureAvailable");function Jhe(t,e,r,n){return Uh(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=vI();P(`Cacheserviceversion:${u}`),Yhe(s);let d=aV();if(!UAe(d)){Be(`Cacherestoreskipped:theeffectivecache-mode'${d}'doesnotpermitreads.`),P(`Skippedrestoreforpaths[${s.join(", ")}]withprimarykey'${o}'.`);return}return u==="v2"?yield Sft(s,o,a,c,l):yield wft(s,o,a,c,l)})}i(Jhe,"restoreCache");function wft(t,e,r,n){return Uh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;a=a||[];let d=[o,...a];if(P("Resolved Keys:"),P(JSON.stringify(d)),d.length>10)throw new Ki("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)B4(m);let p=yield TC(),f="";try{let m;try{m=yield YAe(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(h){let y=(u=h?.message)!==null&&u!==void 0?u:"";throw y.includes(Whe)?new KT(y):h}if(!m?.archiveLocation)return;if(c?.lookupOnly)return Be("Lookup only - skipping download"),m.cacheKey;f=WI.join(yield RC(),ju(p)),P(`ArchivePath:${f}`),yield lV(m.archiveLocation,f,c),Wp()&&(yield VI(f,p));let A=Ga(f);return Be(`CacheSize:~${Math.round(A/(1024*1024))}MB(${A}B)`),yield S4(f,p),Be("Cache restored successfully"),m.cacheKey}catch(m){let A=m;if(A.name===Ki.name)throw m;A instanceof Ha&&typeof A.statusCode=="number"&&A.statusCode>=500?OA(`Failedtorestore:${m.message}`):Er(`Failedtorestore:${m.message}`)}finally{try{yield NC(f)}catch(m){P(`Failedtodeletearchive:${m}`)}}})}i(wft,"restoreCacheV1");function Sft(t,e,r,n){return Uh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[o,...a];if(P("Resolved Keys:"),P(JSON.stringify(d)),d.length>10)throw new Ki("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)B4(f);let p="";try{let f=C4(),m=yield TC(),A={key:o,restoreKeys:a,version:WA(s,m,l)},h;try{h=yield f.GetCacheEntryDownloadURL(A)}catch(w){let x=(u=w?.message)!==null&&u!==void 0?u:"";throw x.includes(Whe)?new KT(x):w}if(!h.ok){P(`Cachenotfoundforversion${A.version}ofkeys:${d.join(", ")}`);return}if(A.key!==h.matchedKey?Be(`Cachehitforrestore-key:${h.matchedKey}`):Be(`Cachehitfor:${h.matchedKey}`),c?.lookupOnly)return Be("Lookup only - skipping download"),h.matchedKey;p=WI.join(yield RC(),ju(m)),P(`Archivepath:${p}`),P(`Startingdownloadofarchiveto:
`),u="",d=!1,p=0,f=!1;for(let m of l){let A=0;for(;A<a&&m.charCodeAt(A)===32;)A++;if(n<0||A>=m.length){p++;continue}let h=m.slice(a),y=h.charCodeAt(0);o?y===32||y===9?(f=!0,u+=`
`)}i(Lwt,"_buildMessageForResponseErrors");var Owt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(Lwt(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},Mwt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Fwt=["query","method","url"],ywe=/\/api\/v3\/?$/;function Uwt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Fwt.includes(a))return Promise.reject(new Error(`[@octokit/graphql]"${a}"cannotbeusedasvariablename`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>Mwt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return ywe.test(o)&&(s.url=o.replace(ywe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new Owt(s,c,a.data)}return a.data.data})}i(Uwt,"graphql");function BY(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>Uwt(r,s,o),"newApi"),{defaults:BY.bind(null,r),endpoint:r.endpoint})}i(BY,"withDefaults");var LIr=BY(Iw,{headers:{"user-agent":`octokit-graphql.js/${kwt}${Cd()}`},method:"POST",url:"/graphql"});function Ewe(t){return BY(t,{method:"POST",url:"/graphql"})}i(Ewe,"withCustomRequest");var RY="(?:[a-zA-Z0-9_-]+)",Cwe="\\.",Iwe=new RegExp(`^${RY}${Cwe}${RY}${Cwe}${RY}$`),qwt=Iwe.test.bind(Iwe);async function Gwt(t){let e=qwt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(Gwt,"auth");function Hwt(t){return t.split(/\./).length===3?`bearer${t}`:`token${t}`}i(Hwt,"withAuthorizationPrefix");async function $wt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Hwt(t),e(s)}i($wt,"hook");var wwe=i(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Gwt.bind(null,e),{hook:$wt.bind(null,e)})},"createTokenAuth2");var NY="7.0.6";var Swe=i(()=>{},"noop"),zwt=console.warn.bind(console),Vwt=console.error.bind(console);function Wwt(t={}){return typeof t.debug!="function"&&(t.debug=Swe),typeof t.info!="function"&&(t.info=Swe),typeof t.warn!="function"&&(t.warn=zwt),typeof t.error!="function"&&(t.error=Vwt),t}i(Wwt,"createLogger");var xwe=`octokit-core.js/${NY}${Cd()}`,IP=class{static{i(this,"Octokit")}static VERSION=NY;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent}${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new KIe.Collection,n={baseUrl:Iw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent}${xwe}`:xwe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Iw.defaults(n),this.graphql=Ewe(this.request).defaults(n),this.log=Wwt(e.log),this.hook=r,e.authStrategy){let{authStrategy:o,...a}=e,c=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let o=wwe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o<s.plugins.length;++o)
Moreinfo:${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let h of a)if(h.remote||h.path.endsWith(u)&&h.content===d){c.push({title:p,message:f,file:h.path,startLine:m}),A=!0;break}A||P(`Buildx.convertWarningsToGitHubAnnotations:skippingwarningwithoutmatchingDockerfile${u}:${p}`)}return c}};function Dwe(){return{registry:Fi("registry"),username:Fi("username"),password:Fi("password"),scope:Fi("scope"),ecr:Fi("ecr"),logout:_oe("logout"),registryAuth:Fi("registry-auth")}}i(Dwe,"getInputs");function kwe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=xge(t.registryAuth).map(r=>{r.password&&_n(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:r.ecr||"auto",configDir:SP(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:SP(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(kwe,"getAuthList");function SP(t,e){if(sSt()||!e||e==="")return"";let r=Jf.default.resolve(wP.configDir,"config"),n=Jf.default.resolve(r,t==="docker.io"?"registry-1.docker.io":t);if(!_we(r,n))throw new Error(`Invalidregistry'${t}':resolvedconfigpathescapestheBuildxconfigdirectory`);let s=e.split("@");if(s.length>2)throw new Error(`Invalidscope'${e}':scopecancontainatmostone@separator`);let[o,a]=s;if(a!==void 0&&!/^[a-z]+(,[a-z]+)*$/.test(a))throw new Error(`Invalidscope'${e}':scopeactionsmustbelowercasenamesseparatedbycommas`);let c=a===void 0?"":`@${a}`;if(o==="")return`${n}${c}`;let l=Jf.default.resolve(n,o);if(!_we(n,l))throw new Error(`Invalidscope'${e}':resolvedconfigpathescapestheBuildxconfigdirectory`);return`${l}${c}`}i(SP,"scopeToConfigDir");function _we(t,e){let r=Jf.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${Jf.default.sep}`)&&!Jf.default.isAbsolute(r)}i(_we,"isChildPath");function sSt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?yd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(sSt,"scopeDisabled");var UGe=R(V1e(),1),qGe=R(xGe(),1),wK=R(mu(),1);var NGe=R(require("net"),1),TGe=R(require("tls"),1),vGe=R(af(),1),PGe=require("events");var bGe=R(require("net"),1),BGe=R(require("http"),1),RGe=require("https");var fl=Symbol("AgentBaseInternalState"),vM=class extends BGe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[fl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new bGe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?RGe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[fl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[fl].currentSocket;if(this[fl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[fl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[fl]&&(this[fl].defaultPort=e)}get protocol(){return this[fl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[fl]&&(this[fl].protocol=e)}};var EK=require("url");function PM(){return async({response:t,scheme:e})=>{if(e.toLowerCase()!=="negotiate")throw new Error(`ExpectedNegotiateschemebutgot"${e}"`);let r;try{r=await import("kerberos")}catch{throw new Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let n=t.headers["proxy-authenticate"]||"",s=Array.isArray(n)?n[0]:n,o=typeof s=="string"&&s.includes(" ")?s.split(" ").slice(1).join(" "):void 0,c=await(await r.initializeClient("HTTP@proxy",{mechOID:r.GSS_MECH_OID_SPNEGO})).step(o||"");if(!c)throw new Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate${c}`}}}}i(PM,"createNegotiateAuth");var Wy=(0,vGe.default)("http-proxy-agent"),Ux=class extends vM{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new EK.URL(e):e,this.proxyHeaders=r?.headers??{},Wy("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=PM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?OHt(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new EK.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Wy("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Wy("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`);if(f===-1){_M("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r
`),A=m.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),y=+h[1],C=h.slice(2).join(" "),w={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`InvalidheaderfromproxyCONNECTresponse:"${x}"`));let N=x.slice(0,b).toLowerCase(),v=x.slice(b+1).trimStart(),Q=w[N];typeof Q=="string"?w[N]=[Q,v]:Array.isArray(Q)?Q.push(v):w[N]=v}_M("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:y,statusText:C,headers:w},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(CK,"parseProxyResponse");var Om=(0,MGe.default)("https-proxy-agent"),DM=i(t=>t.servername===void 0&&t.host&&!Al.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),Gx=class extends QM{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new FGe.URL(e):e,this.proxyHeaders=r?.headers??{},Om("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=PM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?IK(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Om("Creating `tls.Socket`: %o",this.connectOpts),s=qx.connect(DM(this.connectOpts))):(Om("Creating `net.Socket`: %o",this.connectOpts),s=Al.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Al.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT${a}:${r.port}HTTP/1.1\r
`;if(n.username||n.password){let f=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic${Buffer.from(f).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(o))c+=`${f}:${o[f]}\r
`;if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;a["Proxy-Authorization"]=`Basic${Buffer.from(p).toString("base64")}`}Object.assign(a,n),a.Host=`${c}:${r.port}`,a["Proxy-Connection"]||(a["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(a))l+=`${p}:${a[p]}\r
`);let{connect:d}=await u;if(e.emit("proxyConnect",d),this.emit("proxyConnect",d,e),d.statusCode===200)return e.once("socket",LGe),r.secureEndpoint?(Om("Upgrading socket connection to TLS"),qx.connect({...IK(DM(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxyauthenticationfailedwithstatus${d.statusCode}afterretry`)}};Gx.protocols=["http","https"];function LGe(t){setImmediate(()=>{t.resume()})}i(LGe,"resume");function IK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(IK,"omit");var SK=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,MHt=/public\.ecr\.aws|ecr-public\.aws\.com/,GGe=i(t=>SK.test(t)||kM(t),"isECR"),kM=i(t=>MHt.test(t),"isPubECR"),FHt=i(t=>{if(kM(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(SK);return e?e[4]:""},"getRegion"),UHt=i(t=>{if(kM(t))return[];let e=t.match(SK);if(!e)return[];let r=[e[2]];return process.env.AWS_ACCOUNT_IDS&&r.push(...process.env.AWS_ACCOUNT_IDS.split(",")),r.filter((n,s)=>r.indexOf(n)===s)},"getAccountIDs"),HGe=i(async(t,e,r)=>{let n=FHt(t),s=UHt(t),o={};s.length>0&&(P(`RequestingAWSECRauthtokenfor${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(P(`Usinghttpproxy${c}`),a=new Ux(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(P(`Usinghttpsproxy${u}`),l=new Gx(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(kM(t)){Be(`AWSPublicECRdetectedwith${n}region`);let f=await new qGe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new wK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!f.authorizationData||!f.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let A=Buffer.from(f.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return _n(A[0]),_n(A[1]),[{registry:"public.ecr.aws",username:A[0],password:A[1]}]}else{Be(`AWSECRdetectedwith${n}region`);let f=await new UGe.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new wK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!Array.isArray(f.authorizationData)||!f.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let m=[];for(let A of f.authorizationData){let y=Buffer.from(A.authorizationToken||"","base64").toString("utf-8").split(":",2);_n(y[0]),_n(y[1]),m.push({registry:A.proxyEndpoint||"",username:y[0],password:y[1]})}return m}},"getRegistriesData");var $Ge=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function GHt(t){return typeof t=="string"&&$Ge.test(t)}i(GHt,"validate");var xK=GHt;var HHt=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),$Ht=300,zGe=300,VGe=21600,WGe=5,YGe=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&HHt.has(t),"isDockerHubOIDC"),JGe=i(async(t,e)=>{let r=process.env.DOCKERHUB_OIDC_CONNECTIONID?.trim();if(!r)throw new Error("DOCKERHUB_OIDC_CONNECTIONID is required for Docker Hub OIDC login");if(!xK(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=zHt(),s=t==="registry-1-stage.docker.io"?"identity-stage.docker.com":"identity.docker.com",o=`https://${s}`,a=await Loe(o),c=new ao("github.com/docker/login-action",[],{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=new URLSearchParams;l.set("grant_type","urn:ietf:params:oauth:grant-type:token-exchange"),l.set("subject_token_type","urn:ietf:params:oauth:token-type:id_token"),l.set("subject_token",a),l.set("connection_id",r),l.set("expires_in",n.toString());let u=await VHt(c,`https://${s}/oauth/token`,l.toString()),d=JSON.parse(await YHt(u));return _n(d.access_token),{username:e,token:d.access_token}},"getOIDCToken"),zHt=i(()=>{let t=process.env.DOCKERHUB_OIDC