varbOe=Object.create;varzD=Object.defineProperty;varwOe=Object.getOwnPropertyDescriptor;varSOe=Object.getOwnPropertyNames;varBOe=Object.getPrototypeOf,xOe=Object.prototype.hasOwnProperty;varNOe=(t,e)=>()=>(t&&(e=t(t=0)),e);varm=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),aK=(t,e)=>{for(varrine)zD(t,r,{get:e[r],enumerable:!0})},ROe=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letiofSOe(e))!xOe.call(t,i)&&i!==r&&zD(t,i,{get:()=>e[i],enumerable:!(s=wOe(e,i))||s.enumerable});returnt};varF=(t,e,r)=>(r=t!=null?bOe(BOe(t)):{},ROe(e||!t||!t.__esModule?zD(r,"default",{value:t,enumerable:!0}):r,t));varOK=m(WA=>{"use strict";vardPt=require("net"),zOe=require("tls"),XD=require("http"),_K=require("https"),$Oe=require("events"),fPt=require("assert"),jOe=require("util");WA.httpOverHttp=JOe;WA.httpsOverHttp=YOe;WA.httpOverHttps=WOe;WA.httpsOverHttps=KOe;functionJOe(t){vare=newau(t);returne.request=XD.request,e}functionYOe(t){vare=newau(t);returne.request=XD.request,e.createSocket=QK,e.defaultPort=443,e}functionWOe(t){vare=newau(t);returne.request=_K.request,e}functionKOe(t){vare=newau(t);returne.request=_K.request,e.createSocket=QK,e.defaultPort=443,e}functionau(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||XD.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,i,n,o){for(vara=PK(i,n,o),c=0,l=e.requests.length;c<l;++c){varu=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}jOe.inherits(au,$Oe.EventEmitter);au.prototype.addRequest=function(e,r,s,i){varn=this,o=ZD({request:e},n.options,PK(r,s,i));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return}n.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);functionc(){n.emit("free",a,o)}functionl(u){n.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};au.prototype.createSocket=function(e,r){vars=this,i={};s.sockets.push(i);varn=ZD({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+newBuffer(n.proxyAuth).toString("base64")),qh("making CONNECT request");varo=s.request(n);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",u),o.end();functiona(h){h.upgrade=!0}functionc(h,d,f){process.nextTick(function(){l(h,d,f)})}functionl(h,d,f){if(o.removeAllListeners(),d.removeAllListeners(),h.statusCode!==200){qh("tunneling socket could not be established, statusCode=%d",h.statusCode),d.destroy();varp=newError("tunneling socket could not be established, statusCode="+h.statusCode);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}if(f.length>0){qh("got illegal response body from proxy"),d.destroy();varp=newError("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}returnqh("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=d,r(d)}functionu(h){o.removeAllListeners(),qh(`tunneling socket could not be established, cause=%s
`);d.push(g),n+=g.byteLength,p&&(n=null),i=t,s=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data;boundary=${c}`}else if(GZ(t))i=t,n=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(EC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:ALe(t)}if((typeof i=="string"||EC.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(l){let{value:u,done:h}=await c.next();if(h)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!$Z(r)){let d=new Uint8Array(u);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:i,length:n},o]}function RLe(t,e=!1){return t instanceof ReadableStream&&(sM(!EC.isDisturbed(t),"The body has already been consumed."),sM(!t.locked,"The stream is locked.")),YZ(t,e)}function vLe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function TLe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function _Le(t){return{blob(){return lm(this,r=>{let s=VZ(this);return s===null?s="":s&&(s=BLe(s)),new bLe([r],{type:s})},t)},arrayBuffer(){return lm(this,r=>new Uint8Array(r).buffer,t)},text(){return lm(this,zZ,t)},json(){return lm(this,PLe,t)},formData(){return lm(this,r=>{let s=VZ(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let i=xLe(r,s);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new HZ;return n[um]=i,n}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),n=new HZ;for(let[o,a]of i)n.append(o,a);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return lm(this,r=>new Uint8Array(r),t)}}}function QLe(t){Object.assign(t.prototype,_Le(t))}async function lm(t,e,r){if(ILe.brandCheck(t,r),WZ(t))throw new TypeError("Body is unusable: Body has already been read");TLe(t[um]);let s=yLe(),i=o=>s.reject(o),n=o=>{try{s.resolve(e(o))}catch(a){i(a)}};return t[um].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(await ELe(t[um].body,n,i),s.promise)}function WZ(t){let e=t[um].body;return e!=null&&(e.stream.locked||EC.isDisturbed(e.stream))}function PLe(t){return JSON.parse(zZ(t))}function VZ(t){let e=t[um].headersList,r=CLe(e);return r==="failure"?null:r}KZ.exports={extractBody:YZ,safelyExtractBody:RLe,cloneBody:vLe,mixinBody:QLe,streamRegistry:JZ,hasFinalizationRegistry:jZ,bodyUnusable:WZ}});var c7=m((HPt,a7)=>{"use strict";var Ke=require("node:assert"),it=Bt(),{channels:XZ}=XA(),nM=Uk(),{RequestContentLengthMismatchError:_f,ResponseContentLengthMismatchError:OLe,RequestAbortedError:i7,HeadersTimeoutError:DLe,HeadersOverflowError:kLe,SocketError:AB,InformationalError:dm,BodyTimeoutError:MLe,HTTPParserError:LLe,ResponseExceededMaxSizeError:FLe}=Mt(),{kUrl:n7,kReset:Cn,kClient:lM,kParser:Fr,kBlocking:bC,kRunning:fi,kPending:ULe,kSize:ZZ,kWriting:Vh,kQueue:La,kNoRef:CC,kKeepAliveDefaultTimeout:qLe,kHostHeader:GLe,kPendingIdx:HLe,kRunningIdx:Fo,kError:Uo,kPipelining:fB,kSocket:fm,kKeepAliveTimeoutValue:mB,kMaxHeadersSize:oM,kKeepAliveMaxTimeout:VLe,kKeepAliveTimeoutThreshold:zLe,kHeadersTimeout:$Le,kBodyTimeout:jLe,kStrictContentLength:uM,kMaxRequests:e7,kCounter:JLe,kMaxResponseSize:YLe,kOnError:WLe,kResume:Hh,kHTTPContext:o7}=Rr(),wc=JX(),KLe=Buffer.alloc(0),uB=Buffer[Symbol.species],hB=it.addListener,XLe=it.removeAllListeners,aM;async function ZLe(){let t=process.env.JEST_WORKER_ID?Hk():void 0,e;try{e=await WebAssembly.compile(KX())}catch{e=await WebAssembly.compile(t||Hk())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,i)=>0,wasm_on_status:(r,s,i)=>{Ke(bs.ptr===r);let n=s-Bc+Sc.byteOffset;return bs.onStatus(new uB(Sc.buffer,n,i))||0},wasm_on_message_begin:r=>(Ke(bs.ptr===r),bs.onMessageBegin()||0),wasm_on_header_field:(r,s,i)=>{Ke(bs.
`}return XZ.sendHeaders.hasSubscribers&&XZ.sendHeaders.publish({request:e,headers:g,socket:f}),!c||d===0?r7(p,null,t,e,f,u,g,h):it.isBuffer(c)?r7(p,c,t,e,f,u,g,h):it.isBlobLike(c)?typeof c.stream=="function"?s7(p,c.stream(),t,e,f,u,g,h):o2e(p,c,t,e,f,u,g,h):it.isStream(c)?n2e(p,c,t,e,f,u,g,h):it.isIterable(c)?s7(p,c,t,e,f,u,g,h):Ke(!1),!0}function n2e(t,e,r,s,i,n,o,a){Ke(n!==0||r[fi]===0,"stream body cannot be pipelined");let c=!1,l=new gB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o}),u=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(g){it.destroy(this,g)}},h=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!c){let p=new i7;queueMicrotask(()=>f(p))}},f=function(p){if(!c){if(c=!0,Ke(i.destroyed||i[Vh]&&r[fi]<=1),i.off("drain",h).off("error",f),e.removeListener("data",u).removeListener("end",f).removeListener("close",d),!p)try{l.end()}catch(g){p=g}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?it.destroy(e,p):it.destroy(e)}};e.on("data",u).on("end",f).on("error",f).on("close",d),e.resume&&e.resume(),i.on("drain",h).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function r7(t,e,r,s,i,n,o,a){try{e?it.isBuffer(e)&&(Ke(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${o}content-length:${n}\r
`,"latin1"):(Ke(n===null,"no body must not have content length"),i.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Hh]()}catch(c){t(c)}}async function o2e(t,e,r,s,i,n,o,a){Ke(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new _f;let c=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${o}content-length:${n}\r
`,"latin1"),i.write(c),i.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(i[Cn]=!0),r[Hh]()}catch(c){t(c)}}async function s7(t,e,r,s,i,n,o,a){Ke(n!==0||r[fi]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,f)=>{Ke(c===null),i[Uo]?f(i[Uo]):c=d});i.on("close",l).on("drain",l);let h=new gB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(i[Uo])throw i[Uo];h.write(d)||await u()}h.end()}catch(d){h.destroy(d)}finally{i.off("close",l).off("drain",l)}}var gB=class{constructor({abort:e,socket:r,request:s,contentLength:i,client:n,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Vh]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Uo])throw r[Uo];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&o+l>i){if(n[uM])throw new _f;process.emitWarning(new _f)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Cn]=!0),i===null?r.write(`${c}transfer-encoding:chunked\r
`,"latin1"),r!==null&&i!==r){if(s[uM])throw new _f;process.emitWarning(new _f)}e[Fr].timeout&&e[Fr].timeoutType===pm&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),s[Hh]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[Vh]=!1,e&&(Ke(s[fi]<=1,"pipeline should only contain this request"),i(e))}};a7.exports=t2e});var m7=m((VPt,A7)=>{"use strict";var qo=require("node:assert"),{pipeline:a2e}=require("node:stream"),Tt=Bt(),{RequestContentLengthMismatchError:pM,RequestAbortedError:l7,SocketError:wC,InformationalError:AM}=Mt(),{kUrl:yB,kReset:CB,kClient:Am,kRunning:IB,kPending:c2e,kQueue:zh,kPendingIdx:mM,kRunningIdx:Fa,kError:qa,kSocket:Os,kStrictContentLength:l2e,kOnError:gM,kMaxConcurrentStreams:p7,kHTTP2Session:Ua,kResume:$h,kSize:u2e,kHTTPContext:h2e}=Rr(),fu=Symbol("open streams"),u7,h7=!1,EB;try{EB=require("node:http2")}catch{EB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:d2e,HTTP2_HEADER_METHOD:f2e,HTTP2_HEADER_PATH:p2e,HTTP2_HEADER_SCHEME:A2e,HTTP2_HEADER_CONTENT_LENGTH:m2e,HTTP2_HEADER_EXPECT:g2e,HTTP2_HEADER_STATUS:y2e}}=EB;function E2e(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let i of s)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(s));return e}async function C2e(t,e){t[Os]=e,h7||(h7=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=EB.connect(t[yB],{createConnection:()=>e,peerMaxConcurrentStreams:t[p7]});r[fu]=0,r[Am]=t,r[Os]=e,Tt.addListener(r,"error",b2e),Tt.addListener(r,"frameError",w2e),Tt.addListener(r,"end",S2e),Tt.addListener(r,"goaway",B2e),Tt.addListener(r,"close",function(){let{[Am]:i}=this,{[Os]:n}=i,o=this[Os][qa]||this[qa]||new wC("closed",Tt.getSocketInfo(n));if(i[Ua]=null,i.destroyed){qo(i[c2e]===0);let a=i[zh].splice(i[Fa]);for(let c=0;c<a.length;c++){let l=a[c];Tt.errorRequest(i,l,o)}}}),r.unref(),t[Ua]=r,e[Ua]=r,Tt.addListener(e,"error",function(i){qo(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qa]=i,this[Am][gM](i)}),Tt.addListener(e,"end",function(){Tt.destroy(this,new wC("other side closed",Tt.getSocketInfo(this)))}),Tt.addListener(e,"close",function(){let i=this[qa]||new wC("closed",Tt.getSocketInfo(this));t[Os]=null,this[Ua]!=null&&this[Ua].destroy(i),t[mM]=t[Fa],qo(t[IB]===0),t.emit("disconnect",t[yB],[t],i),t[$h]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return N2e(t,...i)},resume(){I2e(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function I2e(t){let e=t[Os];e?.destroyed===!1&&(t[u2e]===0&&t[p7]===0?(e.unref(),t[Ua].unref()):(e.ref(),t[Ua].ref()))}function b2e(t){qo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Os][qa]=t,this[Am][gM](t)}function w2e(t,e,r){if(r===0){let s=new AM(`HTTP/2:"frameError"received-type${t},code${e}`);this[Os][qa]=s,this[Am][gM](s)}}function S2e(){let t=new wC("other side closed",Tt.getSocketInfo(this[Os]));this.destroy(t),Tt.destroy(this[Os],t)}function B2e(t){let e=this[qa]||new wC(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,Tt.getSocketInfo(this)),r=this[Am];if(r[Os]=null,r[h2e]=null,this[Ua]!=null&&(this[Ua].destroy(e),this[Ua]=null),Tt.destroy(this[Os],e),r[Fa]<r[zh].length){let s=r[zh][r[Fa]];r[zh][r[Fa]++]=null,Tt.errorRequest(r,s,e),r[mM]=r[Fa]}qo(r[IB]===0),r.emit("disconnect",r[yB],[r],e),r[$h]()}function x2e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function N2e(t,e){let r=t[Ua],{method:s,path:i,host:n,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return Tt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let x=0;x<l.length;x+=2){let v=l[x+0],Q=l[x+1];if(Array.isArray(Q))for(let D=0;D<Q.length;D++)h[v]?h[v]+=`,${Q[D]}`:h[v]=Q[D];else h[v]=Q}let d,{hostname:f,port:p}=t[yB];h[d2e]=n||`${f}${p?`:${p}`:""}`,h[f2e]=s;let g=x=>{e.aborted||e.completed||(x=x||new l7,Tt.errorRequest(t,e,x),d!=null&&Tt.destroy(d,x),Tt.destroy(u,x),t[zh][t[Fa]++]=null,t[$h]())};try{e.onConnect(g)}catch(x){Tt.errorRequest(t,e,x)}if(e
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}:${n[d]}\r
`)+4,e.outputData[0].data=e._header+s.substring(i),Ag("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(Ag("Creating `tls.Socket`: %o",this.connectOpts),n=aWe.connect(this.connectOpts)):(Ag("Creating `net.Socket`: %o",this.connectOpts),n=oWe.connect(this.connectOpts)),await(0,lWe.once)(n,"connect"),n}};JN.protocols=["http","https"];ra.HttpProxyAgent=JN;function hWe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Hhe=m(cR=>{"use strict";Object.defineProperty(cR,"__esModule",{value:!0});cR.state=void 0;cR.state={instrumenterImplementation:void 0}});var ode=m(fR=>{"use strict";Object.defineProperty(fR,"__esModule",{value:!0});fR.state=void 0;fR.state={operationRequestMap:new WeakMap}});var Lpe=m(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});var Pet=require("os"),Oet=require("util");function Det(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var ket=Det(Oet);function Met(t,...e){process.stderr.write(`${ket.default.format(t,...e)}${Pet.EOL}`)}var Rpe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Tpe,t8=[],r8=[],Qv=[];Rpe&&s8(Rpe);var _pe=Object.assign(t=>Qpe(t),{enable:s8,enabled:i8,disable:Let,log:Met});function s8(t){Tpe=t,t8=[],r8=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?r8.push(new RegExp(`^${s.substr(1)}$`)):t8.push(new RegExp(`^${s}$`));for(let s of Qv)s.enabled=i8(s.namespace)}function i8(t){if(t.endsWith("*"))return!0;for(let e of r8)if(e.test(t))return!1;for(let e of t8)if(e.test(t))return!0;return!1}function Let(){let t=Tpe||"";return s8(""),t}function Qpe(t){let e=Object.assign(r,{enabled:i8(t),destroy:Fet,log:_pe.log,namespace:t,extend:Uet});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}return Qv.push(e),e}function Fet(){let t=Qv.indexOf(this);return t>=0?(Qv.splice(t,1),!0):!1}function Uet(t){let e=Qpe(`${this.namespace}:${t}`);return e.log=this.log,e}var O0=_pe,Ppe=new Set,Tv=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Pv,Ov=O0("azure");Ov.log=(...t)=>{O0.log(...t)};var n8=["verbose","info","warning","error"];Tv&&(Mpe(Tv)?Ope(Tv):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${Tv}';loggingisnotenabled.Acceptablevalues:${n8.join(", ")}.`));function Ope(t){if(t&&!Mpe(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${n8.join(",")}`);Pv=t;let e=[];for(let r of Ppe)kpe(r)&&e.push(r.namespace);O0.enable(e.join(","))}function qet(){return Pv}var vpe={verbose:400,info:300,warning:200,error:100};function Get(t){let e=Ov.extend(t);return Dpe(Ov,e),{error:_v(e,"error"),warning:_v(e,"warning"),info:_v(e,"info"),verbose:_v(e,"verbose")}}function Dpe(t,e){e.log=(...r)=>{t.log(...r)}}function _v(t,e){let r=Object.assign(t.extend(e),{level:e});if(Dpe(t,r),kpe(r)){let s=O0.disable();O0.enable(s+","+r.namespace)}return Ppe.add(r),r}function kpe(t){return!!(Pv&&vpe[t.level]<=vpe[Pv])}function Mpe(t){return n8.includes(t)}Pg.AzureLogger=Ov;Pg.createClientLogger=Get;Pg.getLogLevel=qet;Pg.setLogLevel=Ope});var c8=m(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0});var Og=new WeakMap,Dv=new WeakMap,D0=class t{constructor(){this.onabort=null,Og.set(this,[]),Dv.set(this,!1)}get aborted(){if(!Dv.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Dv.get(this)}static get none(){return new t}addEventListener(e,r){if(!Og.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Og.get(this).push(r)}removeEventListener(e,r){if(!Og.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Og.get(this),i=s.indexOf(r);i>-1&&s.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function Fpe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Og.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Dv.set(t,!0)}var o8=class extends Error{constructor(e){super(e),t
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function vct(){Object.keys(f_).forEach(function(t){delete f_[t]})}});var A_=m(Cl=>{"use strict";Cl.__esModule=!0;Cl.HandlebarsEnvironment=vV;function bEe(t){return t&&t.__esModule?t:{default:t}}var Up=en(),Tct=So(),NV=bEe(Tct),_ct=wV(),Qct=yEe(),Pct=BV(),p_=bEe(Pct),Oct=xV(),Dct="4.7.9";Cl.VERSION=Dct;var kct=8;Cl.COMPILER_REVISION=kct;var Mct=7;Cl.LAST_COMPATIBLE_COMPILER_REVISION=Mct;var Lct={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"};Cl.REVISION_CHANGES=Lct;var RV="[object Object]";function vV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},_ct.registerDefaultHelpers(this),Qct.registerDefaultDecorators(this)}vV.prototype={constructor:vV,logger:p_.default,log:p_.default.log,registerHelper:function(e,r){if(Up.toString.call(e)===RV){if(r)throw new NV.default("Arg not supported with multiple helpers");Up.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Up.toString.call(e)===RV)Up.extend(this.partials,e);else{if(typeof r>"u")throw new NV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(Up.toString.call(e)===RV){if(r)throw new NV.default("Arg not supported with multiple decorators");Up.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){Oct.resetLoggedProperties()}};var Fct=p_.default.log;Cl.log=Fct;Cl.createFrame=Up.createFrame;Cl.logger=p_.default});var SEe=m((m_,wEe)=>{"use strict";m_.__esModule=!0;function TV(t){this.string=t}TV.prototype.toString=TV.prototype.toHTML=function(){return""+this.string};m_.default=TV;wEe.exports=m_.default});var BEe=m(_V=>{"use strict";_V.__esModule=!0;_V.wrapHelper=Uct;function Uct(t,e){if(typeof t!="function")return t;var r=function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)};return r}});var _Ee=m(Pd=>{"use strict";Pd.__esModule=!0;Pd.checkRevision=$ct;Pd.template=jct;Pd.wrapProgram=g_;Pd.resolvePartial=Jct;Pd.invokePartial=Yct;Pd.noop=vEe;function qct(t){return t&&t.__esModule?t:{default:t}}function Gct(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var Hct=en(),ay=Gct(Hct),Vct=So(),zu=qct(Vct),$u=A_(),xEe=wV(),zct=BEe(),NEe=xV();function $ct(t){var e=t&&t[0]||1,r=$u.COMPILER_REVISION;if(!(e>=$u.LAST_COMPATIBLE_COMPILER_REVISION&&e<=$u.COMPILER_REVISION))if(e<$u.LAST_COMPATIBLE_COMPILER_REVISION){var s=$u.REVISION_CHANGES[r],i=$u.REVISION_CHANGES[e];throw new zu.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+i+").")}else throw new zu.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function jct(t,e){if(!e)throw new zu.default("No environment passed to template");if(!t||!t.main)throw new zu.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(o,a,c){c.hash&&(a=ay.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var u=l.split(`
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,o,a,c,l,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),d=0;d<h.length&&(a=this._input.match(this.rules[h[d]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=d,!this.options.flex)));d++);return o?(u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],n=this.performAction.call(this,this.yy,this,h[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
${eP(l)}${l}`)}catch(l){if(l.code==="ENOENT")return;throw l}return tP(t,c)}Po.exports.find=gIt;async function gIt(t,e){let r=vw(t,e);try{return(await ZQ(r)).reduce((i,n)=>n&&n.key===e?tP(t,n):i,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}Po.exports.delete=yIt;function yIt(t,e,r={}){if(!r.removeFully)return PNe(t,e,null,r);let s=vw(t,e);return QNe(s,{recursive:!0,force:!0})}Po.exports.lsStream=ONe;function ONe(t){let e=R6(t),r=new lIt({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(XQ(),KQ)),i=await x6(e);return await s(i,async n=>{let o=Ul.join(e,n),a=await x6(o);await s(a,async c=>{let l=Ul.join(o,c),u=await x6(l);await s(u,async h=>{let d=Ul.join(l,h);try{let p=(await ZQ(d)).reduce((g,C)=>(g.set(C.key,C),g),new Map);for(let g of p.values()){let C=tP(t,g);C&&r.write(C)}}catch(f){if(f.code==="ENOENT")return;throw f}},{concurrency:B6})},{concurrency:B6})},{concurrency:B6}),r.end(),r}).catch(s=>r.emit("error",s)),r}Po.exports.ls=EIt;async function EIt(t){return(await ONe(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}Po.exports.bucketEntries=ZQ;async function ZQ(t,e){let r=await oIt(t,"utf8");return CIt(r,e)}function CIt(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||eP(s[1])!==s[0])return;let i;try{i=JSON.parse(s[1])}catch{}i&&e.push(i)}),e}Po.exports.bucketDir=R6;function R6(t){return Ul.join(t,`index-v${pIt}`)}Po.exports.bucketPath=vw;function vw(t,e){let r=DNe(e);return Ul.join.apply(Ul,[R6(t)].concat(fIt(r)))}Po.exports.hashKey=DNe;function DNe(t){return kNe(t,"sha256")}Po.exports.hashEntry=eP;function eP(t){return kNe(t,"sha1")}function kNe(t,e){return iIt.createHash(e).update(t).digest("hex")}function tP(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?dIt(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function x6(t){return aIt(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var _w=m(iP=>{"use strict";Object.defineProperty(iP,"__esModule",{value:!0});iP.LRUCache=void 0;var IIt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,LNe=new Set,v6=typeof process=="object"&&process?process:{},FNe=(t,e,r,s)=>{typeof v6.emitWarning=="function"?v6.emitWarning(t,e,r,s):console.error(`[${r}]${e}:${t}`)},sP=globalThis.AbortController,MNe=globalThis.AbortSignal;if(typeof sP>"u"){MNe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s)}},sP=class{constructor(){e()}signal=new MNe;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let s of this.signal._onabort)s(r);this.signal.onabort?.(r)}}};let t=v6.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,FNe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var bIt=t=>!LNe.has(t),ef=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),UNe=t=>ef(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?rP:null:null,rP=class extends Array{constructor(t){super(t),this.fill(0)}},wIt=class Tw{heap;length;static#e=!1;static create(e){let r=UNe(e);if(!r)return[];Tw.#e=!0;let s=new Tw(e,r);return Tw.#e=!1,s}constructor(e,r){if(!Tw.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},SIt=class qNe{#e;#t;#s;#r;#i;#n;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#f;#p;#h;#o;#y;#I;#g;#A;#x;#m;#S;#B;#E;#C;#b;#R;#c;#O;static unsafeExposeInternals(e){return{starts:e.#B,ttls:e.#E,autopurgeTimers:e.#C,sizes:e.#S,keyMap:e.#p,keyList:e.#h,valList:e.#o,next:e.#y,prev:e.#I,get head(){return e.#g},get tail(){return e.#A},free:e.#x,isBackgroundFetch:r=>e.#d(r),backgroundFetch:(r,s,i,n)=>e.#G(r,s,i,n),moveToTail:r=>e.#P(r),indexes:r=>e.#v(r),rindexes:r=>e.#T(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#f}get size(){return this.#a}get fetchMethod(){return this.#n}get memoMethod(){return this.#u}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(e){let{max:r=0,ttl:s,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:l,onInsert:u,disposeAfter:h,noDisposeOnSet:d,noUpdateTTL:f,maxSize:p=0,maxEntrySize:g=0,sizeCalculation:C,fetchMethod:E,memoMethod:I,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:Q,ignoreFetchAbort:D,perf:q}=e;if(q!==void 0&&typeof q?.now!="function")throw new TypeError("perf option must have a now() method if s
globstarwhile`,T,pe,P,je,mt),this.matchOne(T.slice(pe),P.slice(je),L))return this.debug("globstar found match!",pe,_,mt),!0;if(mt==="."||mt===".."||!z.dot&&mt.charAt(0)==="."){this.debug("dot detected!",T,pe,P,je);break}this.debug("globstar swallow a segment, and continue"),pe++}return!!(L&&(this.debug(`
>>>nomatch,partial?`,T,pe,P,je),pe===_))}let at;if(typeof ie=="string"?(at=Ie===ie,this.debug("string match",ie,Ie,at)):(at=ie.test(Ie),this.debug("pattern match",ie,Ie,at)),!at)return!1}if(y===_&&N===H)return!0;if(y===_)return L;if(N===H)return y===_-1&&T[y]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(T){(0,r.assertValidPattern)(T);let P=this.options;if(T==="**")return t.GLOBSTAR;if(T==="")return"";let L,z=null;(L=T.match(E))?z=P.dot?S:I:(L=T.match(a))?z=(P.nocase?P.dot?h:u:P.dot?l:c)(L[1]):(L=T.match(x))?z=(P.nocase?P.dot?Q:v:P.dot?D:q)(L):(L=T.match(d))?z=P.dot?p:f:(L=T.match(g))&&(z=C);let ne=s.AST.fromGlob(T,this.options).toMMPattern();return z&&typeof ne=="object"&&Reflect.defineProperty(ne,"test",{value:z}),ne}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let T=this.set;if(!T.length)return this.regexp=!1,this.regexp;let P=this.options,L=P.noglobstar?te:P.dot?Ae:Se,z=new Set(P.nocase?["i"]:[]),ne=T.map(_=>{let H=_.map(Ie=>{if(Ie instanceof RegExp)for(let pe of Ie.flags.split(""))z.add(pe);return typeof Ie=="string"?Ft(Ie):Ie===t.GLOBSTAR?t.GLOBSTAR:Ie._src});H.forEach((Ie,pe)=>{let je=H[pe+1],mt=H[pe-1];Ie!==t.GLOBSTAR||mt===t.GLOBSTAR||(mt===void 0?je!==void 0&&je!==t.GLOBSTAR?H[pe+1]="(?:\\/|"+L+"\\/)?"+je:H[pe]=L:je===void 0?H[pe-1]=mt+"(?:\\/|\\/"+L+")?":je!==t.GLOBSTAR&&(H[pe-1]=mt+"(?:\\/|\\/"+L+"\\/)"+je,H[pe+1]=t.GLOBSTAR))});let ie=H.filter(Ie=>Ie!==t.GLOBSTAR);if(this.partial&&ie.length>=1){let Ie=[];for(let pe=1;pe<=ie.length;pe++)Ie.push(ie.slice(0,pe).join("/"));return"(?:"+Ie.join("|")+")"}return ie.join("/")}).join("|"),[y,N]=T.length>1?["(?:",")"]:["",""];ne="^"+y+ne+N+"$",this.partial&&(ne="^(?:\\/|"+y+ne.slice(1,-1)+N+")$"),this.negate&&(ne="^(?!"+ne+").+$");try{this.regexp=new RegExp(ne,[...z].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(T){return this.preserveMultipleSlashes?T.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(T)?["",...T.split(/\/+/)]:T.split(/\/+/)}match(T,P=this.partial){if(this.debug("match",T,this.pattern),this.comment)return!1;if(this.empty)return T==="";if(T==="/"&&P)return!0;let L=this.options;this.isWindows&&(T=T.split("\\").join("/"));let z=this.slashSplit(T);this.debug(this.pattern,"split",z);let ne=this.set;this.debug(this.pattern,"set",ne);let y=z[z.length-1];if(!y)for(let N=z.length-2;!y&&N>=0;N--)y=z[N];for(let N=0;N<ne.length;N++){let _=ne[N],H=z;if(L.matchBase&&_.length===1&&(H=[y]),this.matchOne(H,_,P))return L.flipNegate?!0:!this.negate}return L.flipNegate?!1:this.negate}static defaults(T){return t.minimatch.defaults(T).Minimatch}};t.Minimatch=ar;var Ts=uRe();Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return Ts.AST}});var ot=hRe();Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return ot.escape}});var Xr=V6();Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return Xr.unescape}}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=ar,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),A0t=di(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,s=typeof process=="object"&&process?process:{},i=(f,p,g,C)=>{typeof s.emitWarning=="function"?s.emitWarning(f,p,g,C):console.error(`[${g}]${p}:${f}`)},n=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof n>"u"){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(g,C){this._onabort.push(C)}},n=class{constructor(){p()}signal=new o;abort(g){if(!this.signal.aborted){this.signal.reason=g,this.signal.aborted=!0;for(let C of this.signal._onabort)C(g);this.signal.onabort?.(g)}}};let f=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",p=()=>{f&&(f=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortCo
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}:${n[d]}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",Zbt),r.secureEndpoint){Vw("Upgrading socket connection to TLS");let d=r.servername||r.host;return dve.connect({...fve(r,"host","path","port"),socket:i,servername:Hw.isIP(d)?void 0:d})}return i}i.destroy();let h=new Hw.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{Vw("Replaying proxy buffer for failed request"),(0,Jbt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),h}};bP.protocols=["http","https"];xa.HttpsProxyAgent=bP;function Zbt(t){t.resume()}function fve(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Cve=m(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});var gve=require("buffer"),NA={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Th.ERRORS=NA;function ewt(t){if(!gve.Buffer.isEncoding(t))throw new Error(NA.INVALID_ENCODING)}Th.checkEncoding=ewt;function yve(t){return typeof t=="number"&&isFinite(t)&&iwt(t)}Th.isFiniteInteger=yve;function Eve(t,e){if(typeof t=="number"){if(!yve(t)||t<0)throw new Error(e?NA.INVALID_OFFSET:NA.INVALID_LENGTH)}else throw new Error(e?NA.INVALID_OFFSET_NON_NUMBER:NA.INVALID_LENGTH_NON_NUMBER)}function twt(t){Eve(t,!1)}Th.checkLengthValue=twt;function rwt(t){Eve(t,!0)}Th.checkOffsetValue=rwt;function swt(t,e){if(t<0||t>e.length)throw new Error(NA.INVALID_TARGET_OFFSET)}Th.checkTargetOffset=swt;function iwt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function nwt(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof gve.Buffer.prototype[t]>"u")throw new Error(`PlatformdoesnotsupportBuffer.prototype.${t}.`)}Th.bigIntAndBufferInt64Check=nwt});var bve=m(pJ=>{"use strict";Object.defineProperty(pJ,"__esModule",{value:!0});var It=Cve(),Ive=4096,owt="utf8",fJ=class t{constructor(e){if(this.length=0,this._encoding=owt,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(It.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(It.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(It.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(It.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(Ive);else{if(typeof e<"u")throw new Error(It.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(Ive)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffe
`,fQt=/\u2014 (\S+) (\S+)\n/g;function pQt(t,e){let r=t.inclusionProof,s=kW.fromString(r.checkpoint.envelope),i=CD.fromString(s.note);if(!AQt(s,e))throw new wS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}function AQt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let i=e.find(n=>KQe.crypto.bufferEqual(n.logID.subarray(0,4),s.keyHint)&&n.baseURL.match(s.name));return i?KQe.crypto.verify(r,i.publicKey,s.signature):!1})}var kW=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(DW))throw new wS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(DW),s=e.slice(0,r+1),n=e.slice(r+DW.length).matchAll(fQt),o=Array.from(n,a=>{let[,c,l]=a,u=Buffer.from(l,"base64");if(u.length<5)throw new wS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:u.subarray(0,4),signature:u.subarray(4)}});if(o.length===0)throw new wS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,o)}},CD=class t{origin;logSize;logHash;rest;constructor(e,r,s,i){this.origin=e,this.logSize=r,this.logHash=s,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new wS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],i=BigInt(r[1]),n=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(s,i,n,o)}};SS.LogCheckpoint=CD});var ZQe=m(UW=>{"use strict";Object.defineProperty(UW,"__esModule",{value:!0});UW.verifyMerkleInclusion=yQt;var FW=gc(),MW=Di(),mQt=Buffer.from([0]),gQt=Buffer.from([1]);function yQt(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),i=BigInt(e.logSize);if(s<0n||s>=i)throw new MW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${s}`});let{inner:n,border:o}=EQt(s,i);if(r.hashes.length!==n+o)throw new MW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,n),c=r.hashes.slice(n),l=BQt(t.canonicalizedBody),u=IQt(CQt(l,a,s),c);if(!FW.crypto.bufferEqual(u,e.logHash))throw new MW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function EQt(t,e){let r=bQt(t,e),s=wQt(t>>BigInt(r));return{inner:r,border:s}}function CQt(t,e,r){return e.reduce((s,i,n)=>r>>BigInt(n)&BigInt(1)?LW(i,s):LW(s,i),t)}function IQt(t,e){return e.reduce((r,s)=>LW(s,r),t)}function bQt(t,e){return SQt(t^e-BigInt(1))}function wQt(t){return t.toString(2).split("1").length-1}function SQt(t){return t===0n?0:t.toString(2).length}function LW(t,e){return FW.crypto.digest("sha256",gQt,t,e)}function BQt(t){return FW.crypto.digest("sha256",mQt,t)}});var tPe=m(qW=>{"use strict";Object.defineProperty(qW,"__esModule",{value:!0});qW.verifyTLogSET=RQt;var ePe=gc(),xQt=Di(),NQt=WE();function RQt(t,e){if(!(0,NQt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let n=vQt(t),o=Buffer.from(ePe.json.canonicalize(n),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return ePe.crypto.verify(o,i.publicKey,a)}))throw new xQt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function vQt(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}});var sPe=m(ID=>{"use strict";Object.defineProperty(ID,"__esModule",{value:!0});ID.verifyTLogBody=OQt;ID.verifyTLogInclusion=DQt;var rPe=cY(),VW=Di(),GW=JQe(),HW=YQe(),TQt=WQe(),_Qt=XQe(),QQt=ZQe(),PQt=tPe();function OQt(t,e){let{kind:r,version:s}=t.kindVersion,i=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==i.kind||s!==i.apiVersion)throw new VW.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${s},received:${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(s==GW.DSSE_API_VERSION_V1)return(0,GW.verifyDSSETLogBody)(i,e);{let n=rPe.Entry.fromJSON(i);return(0,GW.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,TQt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(s==HW.HASHEDREKORD_API_VERSION_V1)return(0,HW.verifyHashedRekordTLogBody)(i,e);{let n=rPe.Entry.fromJSON(i);return(0,HW.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new VW.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}function DQt(t,e){let r=!1;if(kQt(t)&&((0,PQt.verifyTLogSET)(t,e),r=!0),MQt(t)){let s=(0,_Qt.verifyCheckpoint)(t,e);(0,QQt.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new VW.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function kQt(t){return t.inclusionPromise!==void 0}function MQt(t){return t.inclusionProof!==void 0}});var cPe=m(bD=>{"use strict";Object.defineProperty(bD,"__esModule",{value:!0});bD.Verifier=void 0;var LQt=require("util"),KE=Di(),iPe=HQe(),zW=VQe(),nPe=jQe(),oPe=sPe(),$W=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let s=this.verifyTimestamps(e),i=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifySi
`}return f.replace(/\n$/,"")}e.exports=n})),Mi=yr(((t,e)=>{var r=oC(),s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];function n(a){let c={};return a!==null&&Object.keys(a).forEach(function(l){a[l].forEach(function(u){c[String(u)]=l})}),c}function o(a,c){if(c=c||{},Object.keys(c).forEach(function(l){if(s.indexOf(l)===-1)throw new r('Unknown option "'+l+'" is met in definition of "'+a+'" YAML type.')}),this.options=c,this.tag=a,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(l){return l},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.representName=c.representName||null,this.defaultStyle=c.defaultStyle||null,this.multi=c.multi||!1,this.styleAliases=n(c.styleAliases||null),i.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}e.exports=o})),lK=yr(((t,e)=>{var r=oC(),s=Mi();function i(a,c){let l=[];return a[c].forEach(function(u){let h=l.length;l.forEach(function(d,f){d.tag===u.tag&&d.kind===u.kind&&d.multi===u.multi&&(h=f)}),l[h]=u}),l}function n(){let a={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function c(l){l.multi?(a.multi[l.kind].push(l),a.multi.fallback.push(l)):a[l.kind][l.tag]=a.fallback[l.tag]=l}for(let l=0,u=arguments.length;l<u;l+=1)arguments[l].forEach(c);return a}function o(a){return this.extend(a)}o.prototype.extend=function(c){let l=[],u=[];if(c instanceof s)u.push(c);else if(Array.isArray(c))u=u.concat(c);else if(c&&(Array.isArray(c.implicit)||Array.isArray(c.explicit)))c.implicit&&(l=l.concat(c.implicit)),c.explicit&&(u=u.concat(c.explicit));else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(d){if(!(d instanceof s))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(d.loadKind&&d.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(d.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),u.forEach(function(d){if(!(d instanceof s))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let h=Object.create(o.prototype);return h.implicit=(this.implicit||[]).concat(l),h.explicit=(this.explicit||[]).concat(u),h.compiledImplicit=i(h,"implicit"),h.compiledExplicit=i(h,"explicit"),h.compiledTypeMap=n(h.compiledImplicit,h.compiledExplicit),h},e.exports=o})),uK=yr(((t,e)=>{e.exports=new(Mi())("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})})),hK=yr(((t,e)=>{e.exports=new(Mi())("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})})),dK=yr(((t,e)=>{e.exports=new(Mi())("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})})),fK=yr(((t,e)=>{e.exports=new(lK())({explicit:[uK(),hK(),dK()]})})),pK=yr(((t,e)=>{var r=Mi();function s(o){if(o===null)return!0;let a=o.length;return a===1&&o==="~"||a===4&&(o==="null"||o==="Null"||o==="NULL")}function i(){return null}function n(o){return o===null}e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:s,construct:i,predicate:n,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})})),AK=yr(((t,e)=>{var r=Mi();function s(o){if(o===null)return!1;let a=o.length;return a===4&&(o==="true"||o==="True"||o==="TRUE")||a===5&&(o==="false"||o==="False"||o==="FALSE")}function i(o){return o==="true"||o==="True"||o==="TRUE"}function n(o){return Object.prototype.toString.call(o)==="[object Boolean]"}e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function j(A){return A<=65535?String.fromCharCode(A):String.fromCharCode((A-65536>>10)+55296,(A-65536&1023)+56320)}function J(A,M,V){M==="__proto__"?Object.defineProperty(A,M,{configurable:!0,enumerable:!0,writable:!0,value:V}):A[M]=V}var te=new Array(256),Ae=new Array(256);for(let A=0;A<256;A++)te[A]=G(A)?1:0,Ae[A]=G(A);function Se(A,M){this.input=A,this.filename=M.filename||null,this.schema=M.schema||n,this.onWarning=M.onWarning||null,this.legacy=M.legacy||!1,this.json=M.json||!1,this.listener=M.listener||null,this.maxDepth=typeof M.maxDepth=="number"?M.maxDepth:100,this.maxMergeSeqLength=typeof M.maxMergeSeqLength=="number"?M.maxMergeSeqLength:20,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=A.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function Pe(A,M){let V={name:A.filename,buffer:A.input.slice(0,-1),position:A.position,line:A.line,column:A.position-A.lineStart};return V.snippet=i(V),new s(M,V)}function Y(A,M){throw Pe(A,M)}function ut(A,M){A.onWarning&&A.onWarning.call(null,Pe(A,M))}function We(A,M,V){let X=A.anchorMapTransactions;if(X.length!==0){let $=X[X.length-1];o.call($,M)||($[M]={existed:o.call(A.anchorMap,M),value:A.anchorMap[M]})}A.anchorMap[M]=V}function vt(A){A.anchorMapTransactions.push(Object.create(null))}function qe(A){let M=A.anchorMapTransactions.pop(),V=A.anchorMapTransactions;if(V.length===0)return;let X=V[V.length-1],$=Object.keys(M);for(let le=0,B=$.length;le<B;le+=1){let U=$[le];o.call(X,U)||(X[U]=M[U])}}function bt(A){let M=A.anchorMapTransactions.pop(),V=Object.keys(M);for(let X=V.length-1;X>=0;X-=1){let $=M[V[X]];$.existed?A.anchorMap[V[X]]=$.value:delete A.anchorMap[V[X]]}}function Ft(A){return{position:A.position,line:A.line,lineStart:A.lineStart,lineIndent:A.lineIndent,firstTabInLine:A.firstTabInLine,tag:A.tag,anchor:A.anchor,kind:A.kind,result:A.result}}function ar(A,M){A.position=M.position,A.line=M.line,A.lineStart=M.lineStart,A.lineIndent=M.lineIndent,A.firstTabInLine=M.firstTabInLine,A.tag=M.tag,A.anchor=M.anchor,A.kind=M.kind,A.result=M.result}var Ts={YAML:function(M,V,X){M.version!==null&&Y(M,"duplication of %YAML directive"),X.length!==1&&Y(M,"YAML directive accepts exactly one argument");let $=/^([0-9]+)\.([0-9]+)$/.exec(X[0]);$===null&&Y(M,"ill-formed argument of the YAML directive");let le=parseInt($[1],10),B=parseInt($[2],10);le!==1&&Y(M,"unacceptable YAML version of the document"),M.version=X[0],M.checkLineBreaks=B<2,B!==1&&B!==2&&ut(M,"unsupported YAML version of the document")},TAG:function(M,V,X){let $;X.length!==2&&Y(M,"TAG directive accepts exactly two arguments");let le=X[0];$=X[1],E.test(le)||Y(M,"ill-formed tag handle (first argument) of the TAG directive"),o.call(M.tagMap,le)&&Y(M,'there is a previously declared suffix for "'+le+'" tag handle'),I.test($)||Y(M,"ill-formed tag prefix (second argument) of the TAG directive");try{$=decodeURIComponent($)}catch{Y(M,"tag prefix is malformed: "+$)}M.tagMap[le]=$}};function ot(A,M,V,X){if(M<V){let $=A.input.slice(M,V);if(X)for(let le=0,B=$.length;le<B;le+=1){let U=$.charCodeAt(le);U===9||U>=32&&U<=1114111||Y(A,"expected valid JSON character")}else p.test($)&&Y(A,"the stream contains non-printable characters");A.result+=$}}function Xr(A,M,V,X){r.isObject(V)||Y(A,"cannot merge mappings; the provided source object is unacceptable");let $=Object.keys(V);for(let le=0,B=$.length;le<B;le+=1){let U=$[le];o.call(M,U)||(J(M,U,V[U]),X[U]=!0)}}function T(A,M,V,X,$,le,B,U,ae){if(Array.isArray($)){$=Array.prototype.slice.call($);for(let Z=0,ee=$.length;Z<ee;Z+=1)Array.isArray($[Z])&&Y(A,"nested arrays are not supported inside keys"),typeof $=="object"&&S($[Z])==="[object Object]"&&($[Z]="[object Object]")}if(typeof $=
`,M-1))}function y(A,M,V){let X,$,le,B,U,ae,Z=A.kind,ee=A.result,oe=A.input.charCodeAt(A.position);if(Q(oe)||D(oe)||oe===35||oe===38||oe===42||oe===33||oe===124||oe===62||oe===39||oe===34||oe===37||oe===64||oe===96)return!1;if(oe===63||oe===45){let se=A.input.charCodeAt(A.position+1);if(Q(se)||V&&D(se))return!1}for(A.kind="scalar",A.result="",X=$=A.position,le=!1;oe!==0;){if(oe===58){let se=A.input.charCodeAt(A.position+1);if(Q(se)||V&&D(se))break}else if(oe===35){if(Q(A.input.charCodeAt(A.position-1)))break}else{if(A.position===A.lineStart&&z(A)||V&&D(oe))break;if(x(oe))if(B=A.line,U=A.lineStart,ae=A.lineIndent,L(A,!1,-1),A.lineIndent>=M){le=!0,oe=A.input.charCodeAt(A.position);continue}else{A.position=$,A.line=B,A.lineStart=U,A.lineIndent=ae;break}}le&&(ot(A,X,$,!1),ne(A,A.line-B),X=$=A.position,le=!1),v(oe)||($=A.position+1),oe=A.input.charCodeAt(++A.position)}return ot(A,X,$,!1),A.result?!0:(A.kind=Z,A.result=ee,!1)}function N(A,M){let V,X,$=A.input.charCodeAt(A.position);if($!==39)return!1;for(A.kind="scalar",A.result="",A.position++,V=X=A.position;($=A.input.charCodeAt(A.position))!==0;)if($===39)if(ot(A,V,A.position,!0),$=A.input.charCodeAt(++A.position),$===39)V=A.position,A.position++,X=A.position;else return!0;else x($)?(ot(A,V,X,!0),ne(A,L(A,!1,M)),V=X=A.position):A.position===A.lineStart&&z(A)?Y(A,"unexpected end of the document within a single quoted scalar"):(A.position++,v($)||(X=A.position));Y(A,"unexpected end of the stream within a single quoted scalar")}function _(A,M){let V,X,$,le=A.input.charCodeAt(A.position);if(le!==34)return!1;for(A.kind="scalar",A.result="",A.position++,V=X=A.position;(le=A.input.charCodeAt(A.position))!==0;){if(le===34)return ot(A,V,A.position,!0),A.position++,!0;if(le===92){if(ot(A,V,A.position,!0),le=A.input.charCodeAt(++A.position),x(le))L(A,!1,M);else if(le<256&&te[le])A.result+=Ae[le],A.position++;else if(($=K(le))>0){let B=$,U=0;for(;B>0;B--)le=A.input.charCodeAt(++A.position),($=q(le))>=0?U=(U<<4)+$:Y(A,"expected hexadecimal character");A.result+=j(U),A.position++}else Y(A,"unknown escape sequence");V=X=A.position}else x(le)?(ot(A,V,X,!0),ne(A,L(A,!1,M)),V=X=A.position):A.position===A.lineStart&&z(A)?Y(A,"unexpected end of the document within a double quoted scalar"):(A.position++,v(le)||(X=A.position))}Y(A,"unexpected end of the stream within a double quoted scalar")}function H(A,M){let V=!0,X,$,le,B=A.tag,U,ae=A.anchor,Z,ee,oe,se,Be=Object.create(null),we,Ue,He,Nt=A.input.charCodeAt(A.position);if(Nt===91)Z=93,se=!1,U=[];else if(Nt===123)Z=125,se=!0,U={};else return!1;for(A.anchor!==null&&We(A,A.anchor,U),Nt=A.input.charCodeAt(++A.position);Nt!==0;){if(L(A,!0,M),Nt=A.input.charCodeAt(A.position),Nt===Z)return A.position++,A.tag=B,A.anchor=ae,A.kind=se?"mapping":"sequence",A.result=U,!0;V?Nt===44&&Y(A,"expected the node content, but found ','"):Y(A,"missed comma between flow collection entries"),Ue=we=He=null,ee=oe=!1,Nt===63&&Q(A.input.charCodeAt(A.position+1))&&(ee=oe=!0,A.position++,L(A,!0,M)),X=A.line,$=A.lineStart,le=A.position,St(A,M,a,!1,!0),Ue=A.tag,we=A.result,L(A,!0,M),Nt=A.input.charCodeAt(A.position),(oe||A.line===X)&&Nt===58&&(ee=!0,Nt=A.input.charCodeAt(++A.position),L(A,!0,M),St(A,M,a,!1,!0),He=A.result),se?T(A,U,Be,Ue,we,He,X,$,le):ee?U.push(T(A,null,Be,Ue,we,He,X,$,le)):U.push(we),L(A,!0,M),Nt=A.input.charCodeAt(A.position),Nt===44?(V=!0,Nt=A.input.charCodeAt(++A.position)):V=!1}Y(A,"unexpected end of the stream within a flow collection")}function ie(A,M){let V,X=h,$=!1,le=!1,B=M,U=0,ae=!1,Z,ee=A.input.charCodeAt(A.position);if(ee===124)V=!1;else if(ee===62)V=!0;else return!1;for(A.kind="scalar",A.result="";ee!==0;)if(ee=A.input.charCodeAt(++A.position),ee===43||ee===45)h===X?X=ee===43?f:d:Y(A,"repeat of a chomping mode identifier");else if((Z=de(ee))>=0)Z===0?Y(A,"bad explicit indentation width of a block scalar; it cannot be less than one"):le?Y(A,"repeat of an indentation width identifier"):(B=M+Z-1,le=!0);else break;if(v(ee)){do ee=A.input.charCodeAt(++A.position);while(v(ee));if(ee===35)do ee=A.input.charCodeAt(++A.position);while(!x(ee)&&ee!==0)}f
`,$?1+U:U),$=!0,le=!0,U=0;let oe=A.position;for(;!x(ee)&&ee!==0;)ee=A.input.charCodeAt(++A.position);ot(A,oe,A.position,!1)}return!0}function Ie(A,M){let V=A.tag,X=A.anchor,$=[],le=!1;if(A.firstTabInLine!==-1)return!1;A.anchor!==null&&We(A,A.anchor,$);let B=A.input.charCodeAt(A.position);for(;B!==0&&(A.firstTabInLine!==-1&&(A.position=A.firstTabInLine,Y(A,"tab characters must not be used in indentation")),!(B!==45||!Q(A.input.charCodeAt(A.position+1))));){if(le=!0,A.position++,L(A,!0,-1)&&A.lineIndent<=M){$.push(null),B=A.input.charCodeAt(A.position);continue}let U=A.line;if(St(A,M,l,!1,!0),$.push(A.result),L(A,!0,-1),B=A.input.charCodeAt(A.position),(A.line===U||A.lineIndent>M)&&B!==0)Y(A,"bad indentation of a sequence entry");else if(A.lineIndent<M)break}return le?(A.tag=V,A.anchor=X,A.kind="sequence",A.result=$,!0):!1}function pe(A,M,V){let X,$,le,B,U=A.tag,ae=A.anchor,Z={},ee=Object.create(null),oe=null,se=null,Be=null,we=!1,Ue=!1;if(A.firstTabInLine!==-1)return!1;A.anchor!==null&&We(A,A.anchor,Z);let He=A.input.charCodeAt(A.position);for(;He!==0;){!we&&A.firstTabInLine!==-1&&(A.position=A.firstTabInLine,Y(A,"tab characters must not be used in indentation"));let Nt=A.input.charCodeAt(A.position+1),mr=A.line;if((He===63||He===58)&&Q(Nt))He===63?(we&&(T(A,Z,ee,oe,se,null,$,le,B),oe=se=Be=null),Ue=!0,we=!0,X=!0):we?(we=!1,X=!0):Y(A,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),A.position+=1,He=Nt;else{if($=A.line,le=A.lineStart,B=A.position,!St(A,V,c,!1,!0))break;if(A.line===mr){for(He=A.input.charCodeAt(A.position);v(He);)He=A.input.charCodeAt(++A.position);if(He===58)He=A.input.charCodeAt(++A.position),Q(He)||Y(A,"a whitespace character is expected after the key-value separator within a block mapping"),we&&(T(A,Z,ee,oe,se,null,$,le,B),oe=se=Be=null),Ue=!0,we=!1,X=!1,oe=A.tag,se=A.result;else if(Ue)Y(A,"can not read an implicit mapping pair; a colon is missed");else return A.tag=U,A.anchor=ae,!0}else if(Ue)Y(A,"can not read a block mapping entry; a multiline key may not be an implicit key");else return A.tag=U,A.anchor=ae,!0}if((A.line===mr||A.lineIndent>M)&&(we&&($=A.line,le=A.lineStart,B=A.position),St(A,M,u,!0,X)&&(we?se=A.result:Be=A.result),we||(T(A,Z,ee,oe,se,Be,$,le,B),oe=se=Be=null),L(A,!0,-1),He=A.input.charCodeAt(A.position)),(A.line===mr||A.lineIndent>M)&&He!==0)Y(A,"bad indentation of a mapping entry");else if(A.lineIndent<M)break}return we&&T(A,Z,ee,oe,se,null,$,le,B),Ue&&(A.tag=U,A.anchor=ae,A.kind="mapping",A.result=Z),Ue}function je(A){let M=!1,V=!1,X,$,le=A.input.charCodeAt(A.position);if(le!==33)return!1;A.tag!==null&&Y(A,"duplication of a tag property"),le=A.input.charCodeAt(++A.position),le===60?(M=!0,le=A.input.charCodeAt(++A.position)):le===33?(V=!0,X="!!",le=A.input.charCodeAt(++A.position)):X="!";let B=A.position;if(M){do le=A.input.charCodeAt(++A.position);while(le!==0&&le!==62);A.position<A.length?($=A.input.slice(B,A.position),le=A.input.charCodeAt(++A.position)):Y(A,"unexpected end of the stream within a verbatim tag")}else{for(;le!==0&&!Q(le);)le===33&&(V?Y(A,"tag suffix cannot contain exclamation marks"):(X=A.input.slice(B-1,A.position+1),E.test(X)||Y(A,"named tag handle cannot contain such characters"),V=!0,B=A.position+1)),le=A.input.charCodeAt(++A.position);$=A.input.slice(B,A.position),C.test($)&&Y(A,"tag suffix cannot contain flow indicator characters")}$&&!I.test($)&&Y(A,"tag name cannot contain such characters: "+$);try{$=decodeURIComponent($)}catch{Y(A,"tag name is malformed: "+$)}return M?A.tag=$:o.call(A.tagMap,X)?A.tag=A.tagMap[X]+$:X==="!"?A.tag="!"+$:X==="!!"?A.tag="tag:yaml.org,2002:"+$:Y(A,'undeclared tag handle "'+X+'"'),!0}function mt(A){let M=A.input.charCodeAt(A.position);if(M!==38)return!1;A.anchor!==null&&Y(A,"duplication of an anchor property"),M=A.input.charCodeAt(++A.position);let V=A.position;for(;M!==0&&!Q(M)&&!D(M);)M=A.input.charCodeAt(++A.position);return A.position===V&&Y(A,"name of an anchor node must contain at least one character"),A.anchor=A.input.slice(V,A.position),!0}function at(A){let M=A.input.ch
`),A.charCodeAt(0)===65279&&(A=A.slice(1)));let V=new Se(A,M),X=A.indexOf("\0");for(X!==-1&&(V.position=X,Y(V,"null byte is not allowed in input")),V.input+="\0";V.input.charCodeAt(V.position)===32;)V.lineIndent+=1,V.position+=1;for(;V.position<V.length-1;)cr(V);return V.documents}function Ut(A,M,V){M!==null&&typeof M=="object"&&typeof V>"u"&&(V=M,M=null);let X=lr(A,V);if(typeof M!="function")return X;for(let $=0,le=X.length;$<le;$+=1)M(X[$])}function Nr(A,M){let V=lr(A,M);if(V.length!==0){if(V.length===1)return V[0];throw new s("expected a single document in the stream, but found more")}}e.exports.loadAll=Ut,e.exports.load=Nr})),LOe=yr(((t,e)=>{var r=nC(),s=oC(),i=$D(),n=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=65279,c=9,l=10,u=13,h=32,d=33,f=34,p=35,g=37,C=38,E=39,I=42,S=44,x=45,v=58,Q=61,D=62,q=63,K=64,de=91,G=93,j=96,J=123,te=124,Ae=125,Se={};Se[0]="\\0",Se[7]="\\a",Se[8]="\\b",Se[9]="\\t",Se[10]="\\n",Se[11]="\\v",Se[12]="\\f",Se[13]="\\r",Se[27]="\\e",Se[34]='\\"',Se[92]="\\\\",Se[133]="\\N",Se[160]="\\_",Se[8232]="\\L",Se[8233]="\\P";var Pe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Y=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ut(B,U){if(U===null)return{};let ae={},Z=Object.keys(U);for(let ee=0,oe=Z.length;ee<oe;ee+=1){let se=Z[ee],Be=String(U[se]);se.slice(0,2)==="!!"&&(se="tag:yaml.org,2002:"+se.slice(2));let we=B.compiledTypeMap.fallback[se];we&&o.call(we.styleAliases,Be)&&(Be=we.styleAliases[Be]),ae[se]=Be}return ae}function We(B){let U,ae,Z=B.toString(16).toUpperCase();if(B<=255)U="x",ae=2;else if(B<=65535)U="u",ae=4;else if(B<=4294967295)U="U",ae=8;else throw new s("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+U+r.repeat("0",ae-Z.length)+Z}var vt=1,qe=2;function bt(B){this.schema=B.schema||i,this.indent=Math.max(1,B.indent||2),this.noArrayIndent=B.noArrayIndent||!1,this.skipInvalid=B.skipInvalid||!1,this.flowLevel=r.isNothing(B.flowLevel)?-1:B.flowLevel,this.styleMap=ut(this.schema,B.styles||null),this.sortKeys=B.sortKeys||!1,this.lineWidth=B.lineWidth||80,this.noRefs=B.noRefs||!1,this.noCompatMode=B.noCompatMode||!1,this.condenseFlow=B.condenseFlow||!1,this.quotingType=B.quotingType==='"'?qe:vt,this.forceQuotes=B.forceQuotes||!1,this.replacer=typeof B.replacer=="function"?B.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ft(B,U){let ae=r.repeat(" ",U),Z=0,ee="",oe=B.length;for(;Z<oe;){let se,Be=B.indexOf(`
`+B.slice(se+1):we+=B.slice(ee),we.slice(1)}function cr(B){let U="",ae=0;for(let Z=0;Z<B.length;ae>=65536?Z+=2:Z++){ae=ne(B,Z);let ee=Se[ae];!ee&&Xr(ae)?(U+=B[Z],ae>=65536&&(U+=B[Z+1])):U+=ee||We(ae)}return U}function lr(B,U,ae){let Z="",ee=B.tag;for(let oe=0,se=ae.length;oe<se;oe+=1){let Be=ae[oe];B.replacer&&(Be=B.replacer.call(ae,String(oe),Be)),(V(B,U,Be,!1,!1)||typeof Be>"u"&&V(B,U,null,!1,!1))&&(Z!==""&&(Z+=","+(B.condenseFlow?"":" ")),Z+=B.dump)}B.tag=ee,B.dump="["+Z+"]"}function Ut(B,U,ae,Z){let ee="",oe=B.tag;for(let se=0,Be=ae.length;se<Be;se+=1){let we=ae[se];B.replacer&&(we=B.replacer.call(ae,String(se),we)),(V(B,U+1,we,!0,!0,!1,!0)||typeof we>"u"&&V(B,U+1,null,!0,!0,!1,!0))&&((!Z||ee!=="")&&(ee+=ar(B,U)),B.dump&&l===B.dump.charCodeAt(0)?ee+="-":ee+="- ",ee+=B.dump)}B.tag=oe,B.dump=ee||"[]"}function Nr(B,U,ae){let Z="",ee=B.tag,oe=Object.keys(ae);for(let se=0,Be=oe.length;se<Be;se+=1){let we="";Z!==""&&(we+=", "),B.condenseFlow&&(we+='"');let Ue=oe[se],He=ae[Ue];B.replacer&&(He=B.replacer.call(ae,Ue,He)),V(B,U,Ue,!1,!1)&&(B.dump.length>1024&&(we+="? "),we+=B.dump+(B.condenseFlow?'"':"")+":"+(B.condenseFlow?"":" "),V(B,U,He,!1,!1)&&(we+=B.dump,Z+=we))}B.tag=ee,B.dump="{"+Z+"}"}function A(B,U,ae,Z){let ee="",oe=B.tag,se=Object.keys(ae);if(B.sortKeys===!0)se.sort();else if(typeof B.sortKeys=="function")se.sort(B.sortKeys);else if(B.sortKeys)throw new s("sortKeys must be a boolean or a function");for(let Be=0,we=se.length;Be<we;Be+=1){let Ue="";(!Z||ee!=="")&&(Ue+=ar(B,U));let He=se[Be],Nt=ae[He];if(B.replacer&&(Nt=B.replacer.call(ae,He,Nt)),!V(B,U+1,He,!0,!0,!0))continue;let mr=B.tag!==null&&B.tag!=="?"||B.dump&&B.dump.length>1024;mr&&(B.dump&&l===B.dump.charCodeAt(0)?Ue+="?":Ue+="? "),Ue+=B.dump,mr&&(Ue+=ar(B,U)),V(B,U+1,Nt,!0,mr)&&(B.dump&&l===B.dump.charCodeAt(0)?Ue+=":":Ue+=": ",Ue+=B.dump,ee+=Ue)}B.tag=oe,B.dump=ee||"{}"}function M(B,U,ae){let Z=ae?B.explicitTypes:B.implicitTypes;for(let ee=0,oe=Z.length;ee<oe;ee+=1){let se=Z[ee];if((se.instanceOf||se.predicate)&&(!se.instanceOf||typeof U=="object"&&U instanceof se.instanceOf)&&(!se.predicate||se.predicate(U))){if(ae?se.multi&&se.representName?B.tag=se.representName(U):B.tag=se.tag:B.tag="?",se.represent){let Be=B.styleMap[se.tag]||se.defaultStyle,we;if(n.call(se.represent)==="[object Function]")we=se.represent(U,Be);else if(o.call(se.represent,Be))we=se.represent[Be](U,Be);else throw new s("!<"+se.tag+'> tag resolver accepts not "'+Be+'" style');B.dump=we}return!0}}return!1}function V(B,U,ae,Z,ee,oe,se){B.tag=null,B.dump=ae,M(B,ae,!1)||M(B,ae,!0);let Be=n.call(B.dump),we=Z;Z&&(Z=B.flowLevel<0||B.flowLevel>U);let Ue=Be==="[object Object]"||Be==="[object Array]",He,Nt;if(Ue&&(He=B.duplicates.indexOf(ae),Nt=He!==-1),(B.tag!==null&&B.tag!=="?"||Nt||B.indent!==2&&U>0)&&(ee=!1),Nt&&B.usedDuplicates[He])B.dump="*ref_"+He;else{if(Ue&&Nt&&!B.usedDuplicates[He]&&(B.usedDuplicates[He]=!0),Be==="[object Object]")Z&&Object.keys(B.dump).length!==0?(A(B,U,B.dump,ee),Nt&&(B.dump="&ref_"+He+B.dump)):(Nr(B,U,B.dump),Nt&&(B.dump="&ref_"+He+" "+B.dump));else if(Be==="[object Array]")Z&&B.dump.length!==0?(B.noArrayIndent&&!se&&U>0?Ut(B,U-1,B.dump,ee):Ut(B,U,B.dump,ee),Nt&&(B.dump="&ref_"+He+B.dump)):(lr(B,U,B.dump),Nt&&(B.dump="&ref_"+He+" "+B.dump));else if(Be==="[object String]")B.tag!=="?"&&je(B,B.dump,U,oe,we);else{if(Be==="[object Undefined]")return!1;if(B.skipInvalid)return!1;throw new s("unacceptable kind of an object to dump "+Be)}if(B.tag!==null&&B.tag!=="?"){let mr=encodeURI(B.tag[0]==="!"?B.tag.slice(1):B.tag).replace(/!/g,"%21");B.tag[0]==="!"?mr="!"+mr:mr.slice(0,18)==="tag:yaml.org,2002:"?mr="!!"+mr.slice(18):mr="!<"+mr+">",B.dump=mr+" "+B.dump}}return!0}function X(B,U){let ae=[],Z=[];$(B,ae,Z);let ee=Z.length;for(let oe=0;oe<ee;oe+=1)U.duplicates.push(ae[Z[oe]]);U.usedDuplicates=new Array(ee)}function $(B,U,ae){if(B!==null&&typeof B=="object"){let Z=U.indexOf(B);if(Z!==-1)ae.indexOf(Z)===-1&&ae.push(Z);else if(U.push(B),Array.isArray(B))for(let ee=0,oe=B.length;ee<oe;ee+=1)$(B[ee],U,ae);else{let ee=Object.keys(B);for(let oe=0,se=ee.length;oe<se;oe+=1)$(B[ee[oe]
`:""}e.exports.dump=le})),xK=DOe(yr(((t,e)=>{var r=MOe(),s=LOe();function i(n,o){return function(){throw new Error("Function yaml."+n+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}e.exports.Type=Mi(),e.exports.Schema=lK(),e.exports.FAILSAFE_SCHEMA=fK(),e.exports.JSON_SCHEMA=yK(),e.exports.CORE_SCHEMA=EK(),e.exports.DEFAULT_SCHEMA=$D(),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.dump=s.dump,e.exports.YAMLException=oC(),e.exports.types={binary:bK(),float:gK(),map:dK(),null:pK(),pairs:SK(),set:BK(),timestamp:CK(),bool:AK(),int:mK(),merge:IK(),omap:wK(),seq:hK(),str:uK()},e.exports.safeLoad=i("safeLoad","load"),e.exports.safeLoadAll=i("safeLoadAll","loadAll"),e.exports.safeDump=i("safeDump","dump")}))(),1),{Type:jQt,Schema:JQt,FAILSAFE_SCHEMA:YQt,JSON_SCHEMA:WQt,CORE_SCHEMA:KQt,DEFAULT_SCHEMA:XQt,load:NK,loadAll:ZQt,dump:ePt,YAMLException:tPt,types:rPt,safeLoad:sPt,safeLoadAll:iPt,safeDump:nPt}=xK.default,oPt=xK.default;var vK=F(require("os"),1);function nu(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function jD(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function ou(t,e,r){let s=new JD(t,e,r);process.stdout.write(s.toString()+vK.EOL)}function YD(t,e=""){ou(t,{},e)}var RK="::",JD=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=RK+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let i=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${qOe(i)}`)}}return e+=`${RK}${UOe(this.message)}`,e}};function UOe(t){return nu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function qOe(t){return nu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var TK=F(require("crypto"),1),kS=F(require("fs"),1),DS=F(require("os"),1);function MS(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unabletofindenvironmentvariableforfilecommand${t}`);if(!kS.existsSync(r))throw new Error(`Missingfileatpath:${r}`);kS.appendFileSync(r,`${nu(e)}${DS.EOL}`,{encoding:"utf8"})}function WD(t,e){let r=`ghadelimiter_${TK.randomUUID()}`,s=nu(e);if(t.includes(r))throw new Error(`Unexpectedinput:nameshouldnotcontainthedelimiter"${r}"`);if(s.includes(r))throw new Error(`Unexpectedinput:valueshouldnotcontainthedelimiter"${r}"`);return`${t}<<${r}${DS.EOL}${s}${DS.EOL}${r}`}var k2=F(require("os"),1),Bne=F(require("path"),1);var cI=F(require("http"),1),w2=F(require("https"),1);function KD(t){let e=t.protocol==="https:";if(GOe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new LS(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new LS(`http://${r}`)}else return}function GOe(t){if(!t.hostname)return!1;let e=t.hostname;if(HOe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let i=[t.hostname.toUpperCase()];typeof s=="number"&&i.push(`${i[0]}:${s}`);for(let n of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(n==="*"||i.some(o=>o===n||o.endsWith(`.${n}`)||n.startsWith(".")&&o.endsWith(`${n}`)))return!0;return!1}function HOe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var LS=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var od=F(aC(),1),ine=F($m(),1),ts=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}functionpI(t,e){if(process.env.GITHUB_OUTPUT||"")returnMS("OUTPUT",WD(t,e));process.stdout.write(k2.EOL),ou("set-output",{name:t},nu(e))}functionxne(t){process.exitCode=D2.Failure,Ym(t)}functionwu(){returnprocess.env.RUNNER_DEBUG==="1"}functionk(t){ou("debug",{},t)}functionYm(t,e={}){ou("error",jD(e),tinstanceofError?t.toString():t)}functionZt(t,e={}){ou("warning",jD(e),tinstanceofError?t.toString():t)}functionW(t){process.stdout.write(t+k2.EOL)}functionwVe(t){YD("group",t)}functionSVe(){YD("endgroup")}functionCr(t,e){returnbVe(this,void0,void0,function*(){wVe(t);letr;try{r=yielde()}finally{SVe()}returnr})}functionBn(t,e){if(process.env.GITHUB_STATE||"")returnMS("STATE",WD(t,e));ou("save-state",{name:t},nu(e))}functionNne(t){returnprocess.env[`STATE_${t}`]||""}varUT=F(require("fs"),1),V3=F(require("os"),1),z3=F(require("path"),1);varvne=F(require("os"),1);functionAI(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functionTne(t,e,r){lets=newM2(t,e,r);process.stdout.write(s.toString()+vne.EOL)}varRne="::",M2=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){lete=Rne+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letsinthis.properties)if(this.properties.hasOwnProperty(s)){leti=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${xVe(i)}`)}}returne+=`${Rne}${BVe(this.message)}`,e}};functionBVe(t){returnAI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functionxVe(t){returnAI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}varOne=F(require("os"),1);varQne=require("os"),mI=require("fs"),L2=function(t,e,r,s){functioni(n){returnninstanceofr?n:newr(function(o){o(n)})}returnnew(r||(r=Promise))(function(n,o){functiona(u){try{l(s.next(u))}catch(h){o(h)}}functionc(u){try{l(s.throw(u))}catch(h){o(h)}}functionl(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},{access:NVe,appendFile:RVe,writeFile:vVe}=mI.promises,_ne="GITHUB_STEP_SUMMARY";varF2=class{constructor(){this._buffer=""}filePath(){returnL2(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[_ne];if(!e)thrownewError(`Unable to find environment variable for $${_ne}. Check if your runtime environment supports job summaries.`);try{yieldNVe(e,mI.constants.R_OK|mI.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,s={}){leti=Object.entries(s).map(([n,o])=>`${n}="${o}"`).join("");returnr?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){returnL2(this,void0,void0,function*(){letr=!!e?.overwrite,s=yieldthis.filePath();returnyield(r?vVe:RVe)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnL2(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(Qne.EOL)}addCodeBlock(e,r){lets=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),s);returnthis.addRaw(i).addEOL()}addList(e,r=!1){lets=r?"ol":"ul",i=e.map(o=>this.wrap("li",o)).join(""),n=this.wrap(s,i);returnthis.addRaw(n).addEOL()}addTable(e){letr=e.map(i=>{letn=i.map(o=>{if(typeofo=="string")returnthis.wrap("td",o);let{header:a,data:c,colspan:l,rowspan:u}=o,h=a?"th":"td",d=Object.assign(Object.assign({},l&&{colspan:l}),u&&{rowspan:u});returnthis.wrap(h,c,d)}).join("");returnthis.wrap("tr",n)}).join(""),s=this.wrap("table",r);returnthis.addRaw(s).addEOL()}addDetails(e,r){lets=this.wrap("details",this.wrap("summary",e)+r);returnthis.addRaw(s).addEOL()}addImage(e,r,s){let{width:i,height:n}=s||{},o=Object.assign(Object.assign({}
${qYe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function NN(t){return t instanceof ji?!0:op(t)&&t.name==="RestError"}function xn(t,e){return Buffer.from(t,e)}var RN=F(require("node:http"),1),vN=F(require("node:https"),1),lU=F(require("node:zlib"),1),Rue=require("node:stream");var Zo=HI("ts-http-runtime");var GYe={};function VI(t){return t&&typeof t.pipe=="function"}function Nue(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function vue(t){return t&&typeof t.byteLength=="number"}var TN=class extends Rue.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(i){s(i)}}constructor(e){super(),this.progressCallback=e}},uU=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Fc("The operation was aborted. Request has already been canceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let i;e.timeout>0&&(i=setTimeout(()=>{let l=new Ka;Zo.info(`requestto'${l.sanitizeUrl(e.url)}'timedout.canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),o=n?.includes("gzip")||n?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=$Ye(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let p=e.onUploadProgress,g=new TN(p);g.on("error",C=>{Zo.error("Error in upload progress",C)}),VI(a)?a.pipe(g):g.end(a),a=g}let l=await this.makeRequest(e,r,a);i!==void 0&&clearTimeout(i);let u=HYe(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?VYe(l,u):l;let f=e.onDownloadProgress;if(f){let p=new TN(f);p.on("error",g=>{Zo.error("Error in download progress",g)}),c.pipe(p),c=p}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await zYe(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();VI(a)&&(l=Nue(a));let u=Promise.resolve();VI(c)&&(u=Nue(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(h=>{Zo.warning("Error when cleaning up abortListener on httpRequest",h)})}}}makeRequest(e,r,s){let i=new URL(e.url),n=i.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);let a={agent:e.agent??this.getOrCreateAgent(e,n),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let u=n?RN.default.request(a,c):vN.default.request(a,c);u.once("error",h=>{l(new ji(h.message,{code:h.code??ji.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let h=new Fc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(h),l(h)}),s&&VI(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):vue(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Zo.error("Unrecognized body type",s),l(new ji("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?RN.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new RN.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return vN.default.globalAgent;let i=e.tlsSettings??GYe,n=this.cachedHttpsAgents.get(i);return n&&n.options.keepAlive===!s||(Zo.info("No cached TLS Agent exist, creating a new Agent"),n=new vN.default.Agent({keepAlive:!s,...i}),this.cachedHttpsAgents.set(i,n)),n}}};function HYe(t){let e=uo();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(
`;return e}function SWe(t){return t instanceof Uint8Array?t.byteLength:ZN(t)?t.size===-1?void 0:t.size:void 0}function BWe(t){let e=0;for(let r of t){let s=SWe(r);if(s===void 0)return;e+=s}return e}async function xWe(t,e,r){let s=[xn(`--${r}`,"utf-8"),...e.flatMap(n=>[xn(`\r
`,"utf-8")],i=BWe(s);i&&t.headers.set("Content-Length",i),t.body=await _he(s)}var JI="multipartPolicy",NWe=70,RWe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function vWe(t){if(t.length>NWe)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!RWe.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}function tR(){return{name:JI,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",i=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${s}`);let[,n,o]=i;if(o&&r&&o!==r)throw new Error(`Multipartboundarywasspecifiedas${o}intheheader,butgot${r}intherequestbody`);return r??=o,r?vWe(r):r=bWe(),t.headers.set("Content-Type",`${n};boundary=${r}`),await xWe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function rR(){return xN()}var Qhe=wN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Fqt=Qhe.logger;function Gc(t){return Qhe.createClientLogger(t)}var Hc=Gc("core-rest-pipeline");function TU(t={}){return QN({logger:Hc.info,...t})}var _U=PN;function QU(t={}){return ON(t)}var sR=F(require("node:os"),1),iR=F(require("node:process"),1);function Phe(){return"User-Agent"}async function Ohe(t){if(iR.default&&iR.default.versions){let e=`${sR.default.type()}${sR.default.release()};${sR.default.arch()}`,r=iR.default.versions;r.bun?t.set("Bun",`${r.bun}(${e})`):r.deno?t.set("Deno",`${r.deno}(${e})`):r.node&&t.set("Node",`${r.node}(${e})`)}}var nR="1.22.2";function MWe(t){let e=[];for(let[r,s]of t){let i=s?`${r}/${s}`:r;e.push(i)}return e.join(" ")}function Dhe(){return Phe()}async function oR(t){let e=new Map;e.set("core-rest-pipeline",nR),await Ohe(e);let r=MWe(e);return t?`${t}${r}`:r}var khe=Dhe(),Mhe="userAgentPolicy";function PU(t={}){let e=oR(t.userAgentPrefix);return{name:Mhe,async sendRequest(r,s){return r.headers.has(khe)||r.headers.set(khe,await e),s(r)}}}var Ao=class extends Error{constructor(e){super(e),this.name="AbortError"}};function OU(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new Ao(i??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),n(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var GWe="The delay was aborted.";function YI(t,e){let r,{abortSignal:s,abortErrorMsg:i}=e??{};return OU(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:i??GWe})}function gd(t){if(op(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}`}}function Lhe(t){return op(t)}function mg(){return np()}var $t=lp;var Fhe=Symbol("rawContent");function kU(t){return typeof t[Fhe]=="function"}function Uhe(t){return kU(t)?t[Fhe]():t}var aR=JI;function MU(){let t=tR();return{name:aR,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)kU(s.body)&&(s.body=Uhe(s.body));return t.sendRequest(e,r)}}}var LU=DN;function FU(){return kN()}function UU(t={}){return FN(t)}function qU(){return UN()}function yd(t){return BU(t)}function GU(t,e){return WN(t,e)}var qhe="setClientRequestIdPolicy";function HU(t="x-ms-client-request-id"){return{name:qhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function VU(t){return KN(t)}function zU(t){return XN(t)}var gg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Ghe(t={}){let e=new $U(t.parentContext);return t.span&&(e=e.setValue(gg.span,t.span)),t.namespace&&(e=e.setValue(gg.namespace,t.namespace)),e}var $U=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[n]!=="\r";n++)c+=t[n];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),n--),!dXe(c)){let h;return c.trim().length===0?h="Invalid space after '<'.":h="Tag '"+c+"' is an invalid name.",ss("InvalidTag",h,Ji(t,n))}let l=aXe(t,n);if(l===!1)return ss("InvalidAttr","Attributes for '"+c+"' have open quote.",Ji(t,n));let u=l.value;if(n=l.index,u[u.length-1]==="/"){let h=n-u.length;u=u.substring(0,u.length-1);let d=Bde(u,e);if(d===!0)s=!0;else return ss(d.err.code,d.err.msg,Ji(t,h+d.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return ss("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Ji(t,o));if(r.length===0)return ss("InvalidTag","Closing tag '"+c+"' has not been opened.",Ji(t,o));{let h=r.pop();if(c!==h.tagName){let d=Ji(t,h.tagStartPos);return ss("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Ji(t,o))}r.length==0&&(i=!0)}}else return ss("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Ji(t,n));else{let h=Bde(u,e);if(h!==!0)return ss(h.err.code,h.err.msg,Ji(t,n-u.length+h.err.line));if(i===!0)return ss("InvalidXml","Multiple possible root nodes found.",Ji(t,n));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=Sde(t,n);continue}else if(t[n+1]==="?"){if(n=wde(t,++n),n.err)return n}else break;else if(t[n]==="&"){let h=uXe(t,n);if(h==-1)return ss("InvalidChar","char '&' is not expected.",Ji(t,n));n=h}else if(i===!0&&!bde(t[n]))return ss("InvalidXml","Extra text at the end",Ji(t,n));t[n]==="<"&&n--}}else{if(bde(t[n]))continue;return ss("InvalidChar","char '"+t[n]+"' is not expected.",Ji(t,n))}if(s){if(r.length==1)return ss("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ji(t,r[0].tagStartPos));if(r.length>0)return ss("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ss("InvalidXml","Start tag expected.",1);return!0}function bde(t){return t===" "||t===" "||t===`
`||t==="\r"}function wde(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return ss("InvalidXml","XML declaration allowed only at the start of the document.",Ji(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Sde(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}var nXe='"',oXe="'";function aXe(t,e){let r="",s="",i=!1;for(;e<t.length;e++){if(t[e]===nXe||t[e]===oXe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){i=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:i}}var cXe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Bde(t,e){let r=yR(t,cXe),s={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return ss("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",a0(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return ss("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",a0(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return ss("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",a0(r[i]));let n=r[i][2];if(!hXe(n))return ss("InvalidAttr","Attribute '"+n+"' is an invalid name.",a0(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;else return ss("InvalidAttr","Attribute '"+n+"' is repeated.",a0(r[i]))}return!0}function lXe(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}function uXe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,lXe(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}function ss(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function hXe(t){return uq(t)}function dXe(t){return uq(t)}function Ji(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function a0(t){return t.startIndex+t[1].length}var xde={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"},Nde={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",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",tho
`);let e=new Tn("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,n=new u0(i.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=bg(t,">",a,"Closing Tag is not closed."),h=t.substring(a+2,u).trim();if(i.removeNSPrefix){let f=h.indexOf(":");f!==-1&&(h=h.substr(f+1))}h=yq(i.transformTagName,h,"",i).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(h&&i.unpairedTagsSet.has(h))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${h}>`);d&&i.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(l===63){let u=Eq(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let h=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(h){let d=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),n.setXmlVersion(Number(d)||1)}if(!(i.ignoreDeclaration&&u.tagName==="?xml"||i.ignorePiTags)){let d=new Tn(u.tagName);d.add(i.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&i.ignoreAttributes!==!0&&(d[":@"]=h),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=bg(t,"-->",a+4,"Comment is not closed.");if(i.commentPropName){let h=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:h}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=n.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=bg(t,"]]>",a,"CDATA is not closed.")-2,h=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(h,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:h}]):r.add(i.textNodeName,d),a=u+2}else{let u=Eq(t,a,i.removeNSPrefix);if(!u){let Q=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${Q}"`)}let h=u.tagName,d=u.rawTagName,f=u.tagExp,p=u.attrExpPresent,g=u.closeIndex;if({tagName:h,tagExp:f}=yq(i.transformTagName,h,f,i),i.strictReservedNames&&(h===i.commentPropName||h===i.cdataPropName||h===i.textNodeName||h===i.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&i.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),f=h):f=f.substr(0,f.length-1),p=h!==f);let I=null,S={},x;x=DXe(d),h!==e.tagname&&this.matcher.push(h,{},x),h!==f&&p&&(I=this.buildAttributesMap(f,this.matcher,h),I&&(S=OXe(I,i))),h!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let v=a;if(this.isCurrentNodeStopNode){let Q="";if(E)a=u.closeIndex;else if(i.unpairedTagsSet.has(h))a=u.closeIndex;else{let q=this.readStopNodeData(t,d,g+1);if(!q)throw new Error(`Unexpected end of ${d}`);a=q.i,Q=q.tagContent}let D=new Tn(h);I&&(D[":@"]=I),D.add(i.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,v)}else{if(E){({tagName:h,tagExp:f}=yq(i.transformTagName,h,f,i));let Q=new Tn(h);I&&(Q[":@"]=I),this.addChild(r,Q,this.readonlyMatcher,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(h)){let Q=new Tn(h);I&&(Q[":@"]=I),this.addChild(r,Q,this.readonlyMatcher,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let Q=new Tn(h);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),I&&(Q[":@"]=I),this.addChild(r,Q,this.readonlyMatcher,v),r=Q}s="",a=g}}}elses+=t[a];returne.child};functionq
`}),s}getCanonicalizedResourceString(e){let r=PR(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let i=OR(e.url),n={};if(i){let o=[];for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){let c=a.toLowerCase();n[c]=i[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(n[a])}`}return s}};var qr=class extends yp{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new A0(e,r,this)}computeHMACSHA256(e){return(0,ife.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Ss=Gc("storage-common");var sa;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(sa||(sa={}));var wd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:sa.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},pZe=new Ao("The operation was aborted."),m0=class extends jc{retryOptions;constructor(e,r,s=wd){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:wd.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):wd.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:wd.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:wd.maxRetryDelayInMs):wd.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:wd.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:wd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let i=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;n||(i.url=QR(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=bd(i.url,Qu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Ss.info(`RetryPolicy:=====>Try=${s}${n?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(i),!this.shouldRetry(n,s,o))return o;r=r||!n&&o.status===404}catch(a){if(Ss.error(`RetryPolicy:Caughterror,message:${a.message},code:${a.code}`),!this.shouldRetry(n,s,o,a))throw a}return await this.delay(n,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,i){if(r>=this.retryOptions.maxTries)return Ss.info(`RetryPolicy:Attempt(s)${r}>=maxTries${this.retryOptions.maxTries},nofurthertry.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let o of n)if(i.name.toUpperCase().includes(o)||i.message.toUpperCase().includes(o)||i.code&&i.code.toString().toUpperCase()===o)return Ss.info(`RetryPolicy:Networkerror${o}found,willretry.`),!0}if(s||i){let o=s?s.status:i?i.statusCode:0;if(!e&&o===404)return Ss.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Ss.info(`RetryPolicy:Willretryforstatuscode${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(st.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(Ss.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case sa.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case sa.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return Ss.info(`RetryPolicy:Delayfor${i}ms`),DR(i,s,pZe)}};var g0=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new m0(e,r,this.retryOptions)}};var AZe="storageBrowserPolicy";function nfe(){return{name:AZe,async sendRequest(t,e){return $t||((t.method==="GET"||t.method==="HEAD")&&(t.url=bd(t.url,Qu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(st.COOKIE),t.headers.delete(st.CONTENT_LENGTH)),e(t)}}}var mZe="StorageCorrectContentLengthPolicy";function ofe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(st.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:mZe,async send
`}),a}function i(n){let o=PR(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=OR(n.url),l={};if(c){let u=[];for(let h in c)if(Object.prototype.hasOwnProperty.call(c,h)){let d=h.toLowerCase();l[d]=c[h],u.push(d)}u.sort();for(let h of u)a+=`
`),n=e.computeHMACSHA256(i);return{sasQueryParameters:new sc(t.version,n,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:i}}function Net(t,e){if(t=Np(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=ul.parse(t.permissions.toString()).toString():i=hl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?jt(t.startsOn,!1):"",t.expiresOn?jt(t.expiresOn,!1):"",xp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?rc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sc(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function Ret(t,e){if(t=Np(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=ul.parse(t.permissions.toString()).toString():i=hl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?jt(t.startsOn,!1):"",t.expiresOn?jt(t.expiresOn,!1):"",xp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?rc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sc(t.version,o,i,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:n}}function vet(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=ul.parse(t.permissions.toString()).toString():i=hl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?jt(t.startsOn,!1):"",t.expiresOn?jt(t.expiresOn,!1):"",xp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?jt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?jt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?rc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sc(t.version,o,i,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:n}}function Tet(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=ul.parse(t.permissions.toString()).toString():i=hl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?jt(t.startsOn,!1):"",t.expiresOn?jt(t.expiresOn,!1):"",xp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?jt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?jt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?rc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sc(t.version,o,i,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:n}}function _et(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=ul.parse(t.permissions.toString()).toString():i=hl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?jt(t.startsOn,!1):"",t.expiresOn?jt(t.expiresOn,!1):"",xp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?jt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?jt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?rc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sc(t.version,o,i,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:n}}function Qet(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=ul.parse(t.permissions.toString()).toString():i=hl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?jt(t.startsOn,!1):"",t.expiresOn?jt(t.expiresOn,!1):"",xp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?jt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?jt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?rc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sc(t.version,o,i,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:n}}function xp(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function Np(t){let e=t.version?t.version:FR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var T0=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=mg()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Xa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Xa||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 Fe.withSpan("BlobLeaseClient-acquireLease",r,async s=>ze(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Xa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Xa||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 Fe.withSpan("BlobLeaseClient-changeLease",r,async s=>{let i=ze(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Xa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Xa||e.conditions?.tagConditions))throw new RangeError("The IfMatch,
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"}};kg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var _p=class extends Error{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"}};_p.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var U0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var vtt=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},I8=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);W(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function IAe(t,e,r){return vtt(this,void 0,void 0,function*(){var s;let i=new qu(t),n=i.getBlockBlobClient(),o=new I8((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),k(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new Vv(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Zt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var wAe=F(require("buffer"),1),dl=F(require("fs"),1),SAe=F(require("stream"),1),BAe=F(require("util"),1);var zv=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function $v(t){return t?t>=200&&t<300:!1}function Ttt(t){return t?t>=500:!0}function _tt(t){return t?[Ur.BadGateway,Ur.ServiceUnavailable,Ur.GatewayTimeout].includes(t):!1}function Qtt(t){return zv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function bAe(t,e,r){return zv(this,arguments,void 0,function*(s,i,n,o=gN,a=yN,c=void 0){let l="",u=1;for(;u<=o;){let h,d,f=!1;try{h=yield i()}catch(p){c&&(h=c(p)),f=!0,l=p.message}if(h&&(d=n(h),!Ttt(d)))return h;if(d&&(f=_tt(d),l=`Cache service responded with ${d}`),k(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!f){k(`${s} - Error is not retryable`);break}yield Qtt(a),u++}throw Error(`${s} failed: ${l}`)})}function q0(t,e){return zv(this,arguments,void 0,function*(r,s,i=gN,n=yN){return yield bAe(r,s,o=>o.statusCode,i,n,o=>{if(o instanceof Lc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Mg(t,e){return zv(this,arguments,void 0,function*(r,s,i=gN,n=yN){return yield bAe(r,s,o=>o.message.statusCode,i,n)})}var ca=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Ptt(t,e){return ca(this,void 0,void 0,function*(){yield BAe.promisify(SAe.pipeline)(t.message,e)})}var jv=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.s
Othercacheswithsimilarkey:`);for(let a of n?.artifactCaches||[])k(`CacheKey:${a?.cacheKey},CacheVersion:${a?.cacheVersion},CacheScope:${a?.scope},CacheCreated:${a?.creationTime}`)}}})}function B8(t,e,r){return On(this,void 0,void 0,function*(){let s=new DAe.URL(t),i=vAe(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield NAe(t,e,i):i.concurrentBlobDownloads?yield xAe(t,e,i):yield Jv(t,e):yield Jv(t,e)})}function MAe(t,e,r){return On(this,void 0,void 0,function*(){let s=S8(),i=ag(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield q0("reserveCache",()=>On(this,void 0,void 0,function*(){return s.postJson(H0("caches"),n)}))})}function OAe(t,e){return`bytes${t}-${e}/*`}function qtt(t,e,r,s,i){return On(this,void 0,void 0,function*(){k(`Uploadingchunkofsize${i-s+1}bytesatoffset${s}withcontentrange:${OAe(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":OAe(s,i)},o=yield Mg(`uploadChunk(start:${s},end:${i})`,()=>On(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!$v(o.message.statusCode))throw new Error(`Cacheservicerespondedwith${o.message.statusCode}duringuploadchunk.`)})}function Gtt(t,e,r,s){return On(this,void 0,void 0,function*(){let i=Mc(r),n=H0(`caches/${e.toString()}`),o=Lg.openSync(r,"r"),a=b8(s),c=WF("uploadConcurrency",a.uploadConcurrency),l=WF("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];k("Awaiting all uploads");let h=0;try{yield Promise.all(u.map(()=>On(this,void 0,void 0,function*(){for(;h<i;){let d=Math.min(i-h,l),f=h,p=h+d-1;h+=l,yield qtt(t,n,()=>Lg.createReadStream(r,{fd:o,start:f,end:p,autoClose:!1}).on("error",g=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${g.message}`)}),f,p)}})))}finally{Lg.closeSync(o)}})}function Htt(t,e,r){return On(this,void 0,void 0,function*(){let s={size:r};return yield q0("commitCache",()=>On(this,void 0,void 0,function*(){return t.postJson(H0(`caches/${e.toString()}`),s)}))})}function x8(t,e,r,s){return On(this,void 0,void 0,function*(){if(b8(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield IAe(r,e,s)}else{let n=S8();k("Upload cache"),yield Gtt(n,t,e,s),k("Commiting cache");let o=Mc(e);W(`CacheSize:~${Math.round(o/(1024*1024))}MB(${o}B)`);let a=yield Htt(n,t,o);if(!$v(a.statusCode))throw new Error(`Cacheservicerespondedwith${a.statusCode}duringcommitcache.`);W("Cache saved successfully")}})}var _me=F(Sme(),1),as=F(os(),1),Io=F(os(),1),kp=F(os(),1),Mp=F(os(),1),Lp=F(os(),1);var C3=F(os(),1),I3=F(os(),1),Rme=F(os(),1),vme=F(os(),1),Tme=F(os(),1);var g3=F(os(),1),y3=F(os(),1),Bme=F(os(),1),xme=F(os(),1),Nme=F(os(),1),E3=class extends Nme.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,xme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Bme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknownfield${a}(wiretype${c})for${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?y3.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,g3.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,g3.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?y3.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},DT=new E3;var b3=class extends Tme.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>DT}])}create(e){let r={repositoryId:"0",scope:[]};
`));let s=yield M3(r,"create");yield L3(s,t)})}var ty=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},oc=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},ey=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},FT=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Dme(t){if(!t||t.length===0)throw new oc("Path Validation Error: At least one directory or file path is required")}function q3(t){if(t.length>512)throw new oc(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new oc(`KeyValidationError:${t}cannotcontaincommas.`)}function G3(){return G0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function kme(t,e,r,s){return ty(this,arguments,void 0,function*(i,n,o,a,c=!1){let l=G0();return k(`Cacheserviceversion:${l}`),Dme(i),l==="v2"?yield iit(i,n,o,a,c):yield sit(i,n,o,a,c)})}function sit(t,e,r,s){return ty(this,arguments,void 0,function*(i,n,o,a,c=!1){o=o||[];let l=[n,...o];if(k("Resolved Keys:"),k(JSON.stringify(l)),l.length>10)throw new oc("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)q3(d);let u=yield UI(),h="";try{let d=yield kAe(l,i,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return W("Lookup only - skipping download"),d.cacheKey;h=nb.join(yield LI(),pd(u)),k(`ArchivePath:${h}`),yield B8(d.archiveLocation,h,a),wu()&&(yield ib(h,u));let f=Mc(h);return W(`CacheSize:~${Math.round(f/(1024*1024))}MB(${f}B)`),yield F3(h,u),W("Cache restored successfully"),d.cacheKey}catch(d){let f=d;if(f.name===oc.name)throw d;f instanceof Lc&&typeof f.statusCode=="number"&&f.statusCode>=500?Ym(`Failedtorestore:${d.message}`):Zt(`Failedtorestore:${d.message}`)}finally{try{yield FI(h)}catch(d){k(`Failedtodeletearchive:${d}`)}}})}function iit(t,e,r,s){return ty(this,arguments,void 0,function*(i,n,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[n,...o];if(k("Resolved Keys:"),k(JSON.stringify(l)),l.length>10)throw new oc("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)q3(h);let u="";try{let h=k3(),d=yield UI(),f={key:n,restoreKeys:o,version:ag(i,d,c)},p=yield h.GetCacheEntryDownloadURL(f);if(!p.ok){k(`Cachenotfoundforversion${f.version}ofkeys:${l.join(", ")}`);return}if(f.key!==p.matchedKey?W(`Cachehitforrestore-key:${p.matchedKey}`):W(`Cachehitfor:${p.matchedKey}`),a?.lookupOnly)return W("Lookup only - skipping download"),p.matchedKey;u=nb.join(yield LI(),pd(d)),k(`Archivepath:${u}`),k(`Startingdownloadofarchiveto:${u}`),yield B8(p.signedDownloadUrl,u,a);let C=Mc(u);return W(`CacheSize:~${Math.round(C/(1024*1024))}MB(${C}B)`),wu()&&(yield ib(u,d)),yield F3(u,d),W("Cache restored successfully"),p.matchedKey}catch(h){let d=h;if(d.name===oc.name)throw h;d instanceof Lc&&typeof d.statusCode=="number"&&d.statusCode>=500?Ym(`Failedtorestore:${h.message}`):Zt(`Failedtorestore:${h.message}`)}finally{try{u&&(yield FI(u))}catch(h){k(`Failedtodeletearchive:${h}`)}}})}function H3(t,e,r){return ty(this,arguments,void 0,function*(s,i,n,o=!1){let a=G0();return k(`Cacheserviceversion:${a}`),Dme(s),q3(i),a==="v2"?yield oit(s,i,n,o):yield nit(s,i,n,o)})}function nit(t,e,r){return ty(this,arguments,void 0,function*(s,i,n,o=!1){var a,c,l,u,h;let d=yield UI(),f=-1,p=yield YF(s);if(k("Cache Paths:"),k(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let g=yield LI(),C=nb.join(g,pd(d));k(`ArchivePath:${C}`);try{yie
`,o).length:h,l?(a===null?0:a.length)+c.length:0,l?c.length+h:0);return d<f},parse:function(s,i,n,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:h,max_record_size:d,raw:f,relax_quotes:p,rtrim:g,skip_empty_lines:C,to:E,to_line:I}=this.options,{comment:S,escape:x,quote:v,record_delimiter:Q}=this.options,{bomSkipped:D,previousBuf:q,rawBuffer:K,escapeIsQuote:de}=this.state,G;if(q===void 0)if(s===void 0){o();return}else G=s;else q!==void 0&&s===void 0?G=q:G=Buffer.concat([q,s]);if(D===!1)if(a===!1)this.state.bomSkipped=!0;else if(G.length<3){if(i===!1){this.state.previousBuf=G;return}}else{for(let te in my)if(my[te].compare(G,0,my[te].length)===0){let Ae=my[te].length;this.state.bufBytesStart+=Ae,G=G.slice(Ae);let Se=dz({...this.original_options,encoding:te});for(let Pe in Se)this.options[Pe]=Se[Pe];({comment:S,escape:x,quote:v}=this.options);break}this.state.bomSkipped=!0}let j=G.length,J;for(J=0;J<j&&!this.__needMoreData(J,j,i);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,o();return}this.state.quoting===!1&&Q.length===0&&this.__autoDiscoverRecordDelimiter(G,J)&&(Q=this.options.record_delimiter);let te=G[J];if(f===!0&&K.append(te),(te===Tut||te===_ut)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(x!==null&&this.state.quoting===!0&&this.__isEscape(G,J,te)&&J+x.length<j)if(de){if(this.__isQuote(G,J+x.length)){this.state.escaping=!0,J+=x.length-1;continue}}else{this.state.escaping=!0,J+=x.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(G,J))if(this.state.quoting===!0){let Pe=G[J+v.length],Y=g&&this.__isCharTrimable(G,J+v.length),ut=S!==null&&this.__compareBytes(S,G,J+v.length,Pe),We=this.__isDelimiter(G,J+v.length,Pe),vt=Q.length===0?this.__autoDiscoverRecordDelimiter(G,J+v.length):this.__isRecordDelimiter(Pe,G,J+v.length);if(x!==null&&this.__isEscape(G,J,te)&&this.__isQuote(G,J+x.length))J+=x.length-1;else if(!Pe||We||vt||ut||Y){this.state.quoting=!1,this.state.wasQuoting=!0,J+=v.length-1;continue}else if(p===!1){let qe=this.__error(new kt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got"${String.fromCharCode(Pe)}"`,`atline${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(qe!==void 0)return qe}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(v),J+=v.length-1}else if(this.state.field.length!==0){if(p===!1){let Pe=this.__infoField(),Y=Object.keys(my).map(We=>my[We].equals(this.state.field.toString())?We:!1).filter(Boolean)[0],ut=this.__error(new kt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`aquoteisfoundonfield${JSON.stringify(Pe.column)}atline${Pe.lines},valueis${JSON.stringify(this.state.field.toString(l))}`,Y?`(${Y}bom)`:void 0],this.options,Pe,{field:this.state.field}));if(ut!==void 0)return ut}}else{this.state.quoting=!0,J+=v.length-1;continue}if(this.state.quoting===!1){let Pe=this.__isRecordDelimiter(te,G,J);if(Pe!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=Pe-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=Pe-1;continue}this.info.bytes=this.state.bufBytesStart+J;let We=this.__onField();if(We!==void 0)return We;this.info.bytes=this.state.bufBytesStart+J+Pe;let vt=this.__onRecord(n);if(vt!==void 0)return vt;if(E!==-1&&this.info.records>=E){this.state.stop=!0,o();return}}this.state.commenting=!1,J+=Pe-1;continue}if(this.state.commenting)continue;if(S!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(S,G,J,te)!==0){this.state.commenting=!0;continue}let Y=this.__isDelimiter(G,J,te);if(Y!==0)
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let s=xo(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s)for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=xo(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let i of r)for(let n of i)try{let o=Ht.parseBool(n);s.push(`disabled=${!o}`)}catch{s.push(n)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),i=e.substring(0,s),n=e.substring(s+1);if(i.length==0||n.length==0)throw new Error(`${e}isnotavalidsecret`);return r&&_c(n),[i,n]}};var Uz=F(require("fs"),1),JIe=F(require("path"),1);var r1=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Lt,this.metadataFilename=`bake-metadata-${Ht.generateRandomString()}.json`}getMetadataFilePath(){return JIe.default.join(Gt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Uz.default.existsSync(e))return;let r=Uz.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let s=["bake"],i,n=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(l=>l?l.trim():""))if(c.length!=0){if(!Ht.isValidRef(c)){n.push(c);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=c}}i&&s.push(i);for(let c of n)s.push("--file",c);if(e.overrides)for(let c of e.overrides)s.push("--set",c);if(e.vars)for(let c of e.vars)s.push("--var",c);if(e.allow)for(let c of e.allow)s.push("--allow",c);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await $e.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannotparsebakedefinitions:${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let i=r.target[s];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(n=>t.parseAttestEntry(n))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(n=>t.parseCacheEntry(n))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(n=>t.parseCacheEntry(n))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(n=>t.parseExportEntry(n))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(n=>t.parseSecretEntry(n))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(n=>t.parseSSHEntry(n)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=xo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(n){case"type":r.type=o;break;case"disabled":r.disabled=Ht.parseBool(o);break;default:r[n]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=xo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/)
`).map(i=>i.trim()).filter(i=>i.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var gPe=require("crypto"),eu=F(require("fs"),1),If=F(require("path"),1);var BS=F(Ob(),1),tu=F(o_e(),1),yPe=F($9(),1),XE=F(uPe(),1);var jW=F(Ob(),1);var dPe=F(ac(),1);var hPe="application/vnd.oci.empty.v1+json";var kh=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await $e.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(k(`Cosign.isAvailablecmderr:${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(k(`Cosign.isAvailableerror:${r}`),!1));return k(`Cosign.isAvailable:${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await $e.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await $e.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return k("Cosign.versionSatisfies false: undefined version"),!1;let i=dPe.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return k(`Cosign.versionSatisfies${s}statisfies${e}:${i}`),i}static parseCommandOutput(e){let r,s,i,n;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(n=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let l=c.manifests[0];l?.artifactType===jW.BUNDLE_V03_MEDIA_TYPE&&typeof l.digest=="string"?r=l.digest:l?.artifactType===hPe&&typeof l.digest=="string"&&(s=l.digest)}if(!i&&c&&c.mediaType===jW.BUNDLE_V03_MEDIA_TYPE&&(i=c),i&&(r||s)){n=void 0;break}}return{bundle:i,signatureManifestDigest:r||s,errors:n}}};var JW=F(require("fs"),1);var wD=class t{buildx;constructor(e){this.buildx=e?.buildx||new Lt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`Nodescriptorfoundfor${e.name}`);let s=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let i=e.platform,n=new Map;for(let o of r.manifests)o.digest&&n.set(o.digest,o);return s.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=n.get(a);return c?c.platform?.os===i.os&&c.platform?.architecture===i.architecture&&(c.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=Gt.tmpName({tmpdir:Gt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],n=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&i.push(c);continue}n.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let a of i)r.push("--file",a);for(let a of n)r.push(a);let o=await this.getCreateComm
${o.message}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100))}throw o??new Error(`ImageToolsinspectcommandfailedfor${e.name}`)}async execInspect(e,r,s){return await $e.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return s(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var fPe="application/vnd.in-toto+json";var pPe="https://fulcio.sigstore.dev",APe="https://rekor.sigstore.dev",mPe="https://timestamp.sigstore.dev",JA="https://search.sigstore.dev";var GQt="slsaprovenance1",bf=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new kh,this.imageTools=e?.imageTools||new wD}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);W(`UsingSigstoresigningendpoint:${s.fulcioURL}`);let i=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await Cr("Creating Sigstore protobuf signing config",async()=>{let o=Gt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Gt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];i&&a.push("--no-default-rekor=true"),await $e.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),W(JSON.stringify(JSON.parse(eu.default.readFileSync(o,{encoding:"utf-8"})),null,2)),n.push(`--signing-config=${o}`)}):(n.push("--use-signing-config"),i&&n.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${o}@${c}`;await Cr(`Signingattestationmanifest${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];W(`[command]${this.cosign.binPath}${[...u,l].join(" ")}`);let h=await $e.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=kh.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(d.errors&&d.errors.length>0){let p=d.errors.map(g=>`-[${g.code}]${g.message}:${g.detail}`).join(`
${l}`),await new Promise(u=>setTimeout(u,Math.pow(2,o)*100));else throw n}else throw new Error(`Cosignverifycommandfailedwith:${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw n}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);W(`UsingSigstoresigningendpoint:${s.fulcioURL}`);let i=t.getProvenanceBlobs(e);for(let n of Object.keys(i))await Cr(`Signing${n}`,async()=>{let o=i[n],a=If.default.join(If.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){Zt(`Nosubjectsfoundinprovenance${n},skipsigning.`);return}let l=await t.signPayload({data:o,type:fPe},s),u=t.parseBundle(l);W("Provenance blob signed for:");for(let h of c){let[d,f]=Object.entries(h.digest)[0]||[];W(`-${h.name}(${d}:${f})`)}u.tlogID&&W(`AttestationsignatureuploadedtoRekortransparencylog:${JA}?logIndex=${u.tlogID}`),W(`WritingSigstorebundleto:${a}`),eu.default.writeFileSync(a,JSON.stringify(u.payload,null,2),{encoding:"utf-8"}),r[n]={...u,bundlePath:a,subjects:c}})}catch(s){throw new Error(`SigningBuildKitprovenanceblobsfailed:${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,n]of Object.entries(e)){let o=If.default.dirname(i);await Cr(`Verifyingsignaturebundle${n.bundlePath}`,async()=>{for(let a of n.subjects){let c=If.default.join(o,a.name);W(`Verifyingsignedartifact${c}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??GQt];(r.noTransparencyLog||!n.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let u=await $e.getExecOutput(this.cosign.binPath,[...l,"--bundle",n.bundlePath,c],{ignoreReturnCode:!0});if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);s[c]={bundlePath:n.bundlePath,cosignArgs:l}}})}return s}async verifyArtifact(e,r,s){W("Verifying keyless verification bundle signature");let i=JSON.parse(eu.default.readFileSync(r,"utf-8")),n=(0,BS.bundleFromJSON)(i);W("Fetching Sigstore TUF trusted root metadata");let o=await yPe.getTrustedRoot(),a=(0,XE.toTrustMaterial)(o);try{W("Verifying artifact signature");let c=(0,XE.toSignedEntity)(n,eu.default.readFileSync(e)),l=t.parseCertificate(n),u=n.verificationMaterial.tlogEntries,h=u.length>0?u[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let p=l.subjectAltName?.replace(/^uri:/i,"");if(p){if(!p.match(s.subjectAlternativeName))throw new Error(`SigningcertificatesubjectAlternativeName"${p}"doesnotmatchexpectedpattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new XE.Verifier(a).verify(c,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return k(`Sigstore.verifyArtifactsigner:${JSON.stringify(f)}`),{payload:i,certificate:l.toString(),tlogID:h}}catch(c){throw new Error(`Failedtoverifyartifactsignature:${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),W(`Uploadtotransparencylog:${e?"disabled":"enabled"}`),{fulcioURL:pPe,rekorURL:e?void 0:APe,tsaServerURL:mPe}}static noTransparencyLog(e){return e??tr.context.payload.repository?.private}static getProvenanceBlobs(e){let r=If.default.join(e.localExportDir,"provenance.json");if(eu.default.existsSync(r))return{[r]:eu.default.readFileSync(r)};let s=eu.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=s.filter(n=>n.isDirectory());if(i.length>0&&i.length===s.length&&i.every(n=>eu.default.existsSync(If.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let o of i){let a=