varNZe=Object.create;varh_=Object.defineProperty;varvZe=Object.getOwnPropertyDescriptor;varFZe=Object.getOwnPropertyNames;varTZe=Object.getPrototypeOf,xZe=Object.prototype.hasOwnProperty;varWZe=(t,e)=>()=>(t&&(e=t(t=0)),e);varf=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),zie=(t,e)=>{for(varrine)h_(t,r,{get:e[r],enumerable:!0})},_Ze=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letnofFZe(e))!xZe.call(t,n)&&n!==r&&h_(t,n,{get:()=>e[n],enumerable:!(s=vZe(e,n))||s.enumerable});returnt};varF=(t,e,r)=>(r=t!=null?NZe(TZe(t)):{},_Ze(e||!t||!t.__esModule?h_(r,"default",{value:t,enumerable:!0}):r,t));varqie=f(xh=>{"use strict";varP2t=require("net"),GZe=require("tls"),E_=require("http"),Cie=require("https"),HZe=require("events"),Q2t=require("assert"),XZe=require("util");xh.httpOverHttp=VZe;xh.httpsOverHttp=jZe;xh.httpOverHttps=$Ze;xh.httpsOverHttps=YZe;functionVZe(t){vare=newIu(t);returne.request=E_.request,e}functionjZe(t){vare=newIu(t);returne.request=E_.request,e.createSocket=Bie,e.defaultPort=443,e}function$Ze(t){vare=newIu(t);returne.request=Cie.request,e}functionYZe(t){vare=newIu(t);returne.request=Cie.request,e.createSocket=Bie,e.defaultPort=443,e}functionIu(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||E_.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(vara=Die(n,i,o),c=0,u=e.requests.length;c<u;++c){varp=e.requests[c];if(p.host===a.host&&p.port===a.port){e.requests.splice(c,1),p.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}XZe.inherits(Iu,HZe.EventEmitter);Iu.prototype.addRequest=function(e,r,s,n){vari=this,o=y_({request:e},i.options,Die(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);functionc(){i.emit("free",a,o)}functionu(p){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};Iu.prototype.createSocket=function(e,r){vars=this,n={};s.sockets.push(n);vari=y_({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+newBuffer(i.proxyAuth).toString("base64")),Dl("making CONNECT request");varo=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",p),o.end();functiona(l){l.upgrade=!0}functionc(l,A,h){process.nextTick(function(){u(l,A,h)})}functionu(l,A,h){if(o.removeAllListeners(),A.removeAllListeners(),l.statusCode!==200){Dl("tunneling socket could not be established, statusCode=%d",l.statusCode),A.destroy();varM=newError("tunneling socket could not be established, statusCode="+l.statusCode);M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}if(h.length>0){Dl("got illegal response body from proxy"),A.destroy();varM=newError("got illegal response body from proxy");M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}returnDl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=A,r(A)}functionp(l){o.removeAllListeners(),Dl(`tunneling socket could not be established, cause=%s
`);A.push(g),i+=g.byteLength,M&&(i=null),n=t,s=async function*(){for(let y of A)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(Tae(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Wz.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:f10(t)}if((typeof n=="string"||Wz.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:p,done:l}=await c.next();if(l)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Lae(r)){let A=new Uint8Array(p);A.byteLength&&u.enqueue(A)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function q10(t,e=!1){return t instanceof ReadableStream&&(qL(!Wz.isDisturbed(t),"The body has already been consumed."),qL(!t.locked,"The stream is locked.")),kae(t,e)}function I10(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function R10(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function w10(t){return{blob(){return $h(this,r=>{let s=Wae(this);return s===null?s="":s&&(s=C10(s)),new O10([r],{type:s})},t)},arrayBuffer(){return $h(this,r=>new Uint8Array(r).buffer,t)},text(){return $h(this,_ae,t)},json(){return $h(this,N10,t)},formData(){return $h(this,r=>{let s=Wae(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=B10(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new xae;return i[Yh]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new xae;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){return $h(this,r=>new Uint8Array(r),t)}}}function S10(t){Object.assign(t.prototype,w10(t))}async function $h(t,e,r){if(z10.brandCheck(t,r),Uae(t))throw new TypeError("Body is unusable: Body has already been read");R10(t[Yh]);let s=M10(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Yh].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await m10(t[Yh].body,i,n),s.promise)}function Uae(t){let e=t[Yh].body;return e!=null&&(e.stream.locked||Wz.isDisturbed(e.stream))}function N10(t){return JSON.parse(_ae(t))}function Wae(t){let e=t[Yh].headersList,r=g10(e);return r==="failure"?null:r}Gae.exports={extractBody:kae,safelyExtractBody:q10,cloneBody:I10,mixinBody:S10,streamRegistry:Qae,hasFinalizationRegistry:Pae,bodyUnusable:Uae}});var tce=f((Mft,ece)=>{"use strict";var Te=require("node:assert"),Xe=u0(),{channels:Hae}=_h(),RL=pL(),{RequestContentLengthMismatchError:Sd,ResponseContentLengthMismatchError:v10,RequestAbortedError:Jae,HeadersTimeoutError:F10,HeadersOverflowError:T10,SocketError:bD,InformationalError:Kh,BodyTimeoutError:x10,HTTPParserError:W10,ResponseExceededMaxSizeError:_10}=B0(),{kUrl:Kae,kReset:Vs,kClient:vL,kParser:Nt,kBlocking:Pz,kRunning:Br,kPending:L10,kSize:Xae,kWriting:Rl,kQueue:Fo,kNoRef:_z,kKeepAliveDefaultTimeout:P10,kHostHeader:Q10,kPendingIdx:k10,kRunningIdx:Oi,kError:Ei,kPipelining:fD,kSocket:Zh,kKeepAliveTimeoutValue:MD,kMaxHeadersSize:wL,kKeepAliveMaxTimeout:U10,kKeepAliveTimeoutThreshold:G10,kHeadersTimeout:H10,kBodyTimeout:X10,kStrictContentLength:FL,kMaxRequests:Vae,kCounter:V10,kMaxResponseSize:j10,kOnError:$10,kResume:Il,kHTTPContext:Zae}=bt(),Ia=Qoe(),Y10=Buffer.alloc(0),lD=Buffer[Symbol.species],AD=Xe.addListener,J10=Xe.removeAllListeners,SL;async function K10(){let t=process.env.JEST_WORKER_ID?dL():void 0,e;try{e=await WebAssembly.compile(Goe())}catch{e=await WebAssembly.compile(t||dL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{Te(B1.ptr===r);let i=s-wa+Ra.byteOffset;return B1.onStatus(new lD(Ra.buffer,i,n))||0},wasm_on_message_begin:r=>(Te(B1.ptr===r),B1.onMessageBegin()||0),wasm_on_he
`}return Hae.sendHeaders.hasSubscribers&&Hae.sendHeaders.publish({request:e,headers:g,socket:h}),!c||A===0?$ae(M,null,t,e,h,p,g,l):Xe.isBuffer(c)?$ae(M,c,t,e,h,p,g,l):Xe.isBlobLike(c)?typeof c.stream=="function"?Yae(M,c.stream(),t,e,h,p,g,l):ir0(M,c,t,e,h,p,g,l):Xe.isStream(c)?nr0(M,c,t,e,h,p,g,l):Xe.isIterable(c)?Yae(M,c,t,e,h,p,g,l):Te(!1),!0}function nr0(t,e,r,s,n,i,o,a){Te(i!==0||r[Br]===0,"stream body cannot be pipelined");let c=!1,u=new mD({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),p=function(M){if(!c)try{!u.write(M)&&this.pause&&this.pause()}catch(g){Xe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},A=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let M=new Jae;queueMicrotask(()=>h(M))}},h=function(M){if(!c){if(c=!0,Te(n.destroyed||n[Rl]&&r[Br]<=1),n.off("drain",l).off("error",h),e.removeListener("data",p).removeListener("end",h).removeListener("close",A),!M)try{u.end()}catch(g){M=g}u.destroy(M),M&&(M.code!=="UND_ERR_INFO"||M.message!=="reset")?Xe.destroy(e,M):Xe.destroy(e)}};e.on("data",p).on("end",h).on("error",h).on("close",A),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(A)}function $ae(t,e,r,s,n,i,o,a){try{e?Xe.isBuffer(e)&&(Te(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1")),s.onRequestSent(),r[Il]()}catch(c){t(c)}}async function ir0(t,e,r,s,n,i,o,a){Te(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Sd;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[Vs]=!0),r[Il]()}catch(c){t(c)}}async function Yae(t,e,r,s,n,i,o,a){Te(i!==0||r[Br]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let A=c;c=null,A()}}let p=()=>new Promise((A,h)=>{Te(c===null),n[Ei]?h(n[Ei]):c=A});n.on("close",u).on("drain",u);let l=new mD({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let A of e){if(n[Ei])throw n[Ei];l.write(A)||await p()}l.end()}catch(A){l.destroy(A)}finally{n.off("close",u).off("drain",u)}}var mD=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Rl]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ei])throw r[Ei];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&o+u>n){if(i[FL])throw new Sd;process.emitWarning(new Sd)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Vs]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),r!==null&&n!==r){if(s[FL])throw new Sd;process.emitWarning(new Sd)}e[Nt].timeout&&e[Nt].timeoutType===eb&&e[Nt].timeout.refresh&&e[Nt].timeout.refresh(),s[Il]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Rl]=!1,e&&(Te(s[Br]<=1,"pipeline should only contain this request"),n(e))}};ece.exports=er0});var uce=f((mft,cce)=>{"use strict";var yi=require("node:assert"),{pipeline:or0}=require("node:stream"),d0=u0(),{RequestContentLengthMismatchError:_L,RequestAbortedError:rce,SocketError:Qz,InformationalError:LL}=B0(),{kUrl:gD,kReset:OD,kClient:tb,kRunning:ED,kPending:ar0,kQueue:wl,kPendingIdx:PL,kRunningIdx:To,kError:Wo,kSocket:x1,kStrictContentLength:cr0,kOnError:QL,kMaxConcurrentStreams:ace,kHTTP2Session:xo,kResume:Sl,kSize:ur0,kHTTPContext:pr0}=bt(),Fu=Symbol("open streams"),sce,nce=!1,zD;try{zD=require("node:http2")}catch{zD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:lr0,HTTP2_HEADER_METHOD:Ar0,HTTP2_HEADER_PATH:dr0,HTTP2_HEADER_SCHEME:fr0,HTTP2_HEADER_CONTENT_LENGTH:hr0,HTTP2_HEADER_EXPECT:br0,HTTP2_HEADER_STATUS:Mr0}}=zD;function mr0(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function gr0(t,e){t[x1]=e,nce||(nce=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=zD.connect(t[gD],{createConnection:()=>e,peerMaxConcurrentStreams:t[ace]});r[Fu]=0,r[tb]=t,r[x1]=e,d0.addListener(r,"error",Or0),d0.addListener(r,"frameError",Er0),d0.addListener(r,"end",yr0),d0.addListener(r,"goaway",Cr0),d0.addListener(r,"close",function(){let{[tb]:n}=this,{[x1]:i}=n,o=this[x1][Wo]||this[Wo]||new Qz("closed",d0.getSocketInfo(i));if(n[xo]=null,n.destroyed){yi(n[ar0]===0);let a=n[wl].splice(n[To]);for(let c=0;c<a.length;c++){let u=a[c];d0.errorRequest(n,u,o)}}}),r.unref(),t[xo]=r,e[xo]=r,d0.addListener(e,"error",function(n){yi(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Wo]=n,this[tb][QL](n)}),d0.addListener(e,"end",function(){d0.destroy(this,new Qz("other side closed",d0.getSocketInfo(this)))}),d0.addListener(e,"close",function(){let n=this[Wo]||new Qz("closed",d0.getSocketInfo(this));t[x1]=null,this[xo]!=null&&this[xo].destroy(n),t[PL]=t[To],yi(t[ED]===0),t.emit("disconnect",t[gD],[t],n),t[Sl]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Dr0(t,...n)},resume(){zr0(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function zr0(t){let e=t[x1];e?.destroyed===!1&&(t[ur0]===0&&t[ace]===0?(e.unref(),t[xo].unref()):(e.ref(),t[xo].ref()))}function Or0(t){yi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[x1][Wo]=t,this[tb][QL](t)}function Er0(t,e,r){if(r===0){let s=new LL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[x1][Wo]=s,this[tb][QL](s)}}function yr0(){let t=new Qz("other side closed",d0.getSocketInfo(this[x1]));this.destroy(t),d0.destroy(this[x1],t)}function Cr0(t){let e=this[Wo]||new Qz(`HTTP/2: "GOAWAY" frame received with code ${t}`,d0.getSocketInfo(this)),r=this[tb];if(r[x1]=null,r[pr0]=null,this[xo]!=null&&(this[xo].destroy(e),this[xo]=null),d0.destroy(this[x1],e),r[To]<r[wl].length){let s=r[wl][r[To]];r[wl][r[To]++]=null,d0.errorRequest(r,s,e),r[PL]=r[To]}yi(r[ED]===0),r.emit("disconnect",r[gD],[r],e),r[Sl]()}function Br0(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Dr0(t,e){let r=t[xo],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:p}=e;if(o)return d0.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<u.length;R+=2){let N=u[R+0],T=u[R+1];if(Array.isArray(T))for(let W=0;W<T.length;W++)l[N]?l[N]+=`,${T[W]}`:l[N]=T[W];else l[N]=T}let A,{hostname:h,port:M}=t[gD];l[lr0]=i||`${h}${M?`:${M}`:""}`,l[Ar0]=s;let g=R=>{e.aborted||e.completed||(R=R||new rce,d0.errorRequest(t,e,R),A!=null&&d0.destroy(A,R),d0.destroy(p,R),t[wl][t[To]++]=null,t[Sl]())};try{e.onConnect(g)}catch(R){d0.errorRequest
globstar while`,t,p,e,l,A),this.matchOne(t.slice(p),e.slice(l),r))return this.debug("globstar found match!",p,o,A),!0;if(A==="."||A===".."||!s.dot&&A.charAt(0)==="."){this.debug("dot detected!",t,p,e,l);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(r&&(this.debug(`
`;if(s.username||s.password){let A=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
`)+4,e.outputData[0].data=e._header+s.substring(n),eM("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(eM("Creating `tls.Socket`: %o",this.connectOpts),i=Pm0.connect(this.connectOpts)):(eM("Creating `net.Socket`: %o",this.connectOpts),i=Lm0.connect(this.connectOpts)),await(0,km0.once)(i,"connect"),i}};eR.protocols=["http","https"];Li.HttpProxyAgent=eR;function Gm0(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var wge=f(fR=>{"use strict";Object.defineProperty(fR,"__esModule",{value:!0});fR.state=void 0;fR.state={instrumenterImplementation:void 0}});var Vge=f(gR=>{"use strict";Object.defineProperty(gR,"__esModule",{value:!0});gR.state=void 0;gR.state={operationRequestMap:new WeakMap}});var B3e=f(mM=>{"use strict";Object.defineProperty(mM,"__esModule",{value:!0});var py0=require("os"),ly0=require("util");function Ay0(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var dy0=Ay0(ly0);function fy0(t,...e){process.stderr.write(`${dy0.default.format(t,...e)}${py0.EOL}`)}var h3e=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,M3e,mH=[],gH=[],_5=[];h3e&&zH(h3e);var m3e=Object.assign(t=>g3e(t),{enable:zH,enabled:OH,disable:hy0,log:fy0});function zH(t){M3e=t,mH=[],gH=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?gH.push(new RegExp(`^${s.substr(1)}$`)):mH.push(new RegExp(`^${s}$`));for(let s of _5)s.enabled=OH(s.namespace)}function OH(t){if(t.endsWith("*"))return!0;for(let e of gH)if(e.test(t))return!1;for(let e of mH)if(e.test(t))return!0;return!1}function hy0(){let t=M3e||"";return zH(""),t}function g3e(t){let e=Object.assign(r,{enabled:OH(t),destroy:by0,log:m3e.log,namespace:t,extend:My0});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return _5.push(e),e}function by0(){let t=_5.indexOf(this);return t>=0?(_5.splice(t,1),!0):!1}function My0(t){let e=g3e(`${this.namespace}:${t}`);return e.log=this.log,e}var j3=m3e,z3e=new Set,x5=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,L5,P5=j3("azure");P5.log=(...t)=>{j3.log(...t)};var EH=["verbose","info","warning","error"];x5&&(C3e(x5)?O3e(x5):console.error(`AZURE_LOG_LEVEL set to unknown log level '${x5}'; logging is not enabled. Acceptable values: ${EH.join(", ")}.`));function O3e(t){if(t&&!C3e(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${EH.join(",")}`);L5=t;let e=[];for(let r of z3e)y3e(r)&&e.push(r.namespace);j3.enable(e.join(","))}function my0(){return L5}var b3e={verbose:400,info:300,warning:200,error:100};function gy0(t){let e=P5.extend(t);return E3e(P5,e),{error:W5(e,"error"),warning:W5(e,"warning"),info:W5(e,"info"),verbose:W5(e,"verbose")}}function E3e(t,e){e.log=(...r)=>{t.log(...r)}}function W5(t,e){let r=Object.assign(t.extend(e),{level:e});if(E3e(t,r),y3e(r)){let s=j3.disable();j3.enable(s+","+r.namespace)}return z3e.add(r),r}function y3e(t){return!!(L5&&b3e[t.level]<=b3e[L5])}function C3e(t){return EH.includes(t)}mM.AzureLogger=P5;mM.createClientLogger=gy0;mM.getLogLevel=my0;mM.setLogLevel=O3e});var BH=f(Y3=>{"use strict";Object.defineProperty(Y3,"__esModule",{value:!0});var gM=new WeakMap,Q5=new WeakMap,$3=class t{constructor(){this.onabort=null,gM.set(this,[]),Q5.set(this,!1)}get aborted(){if(!Q5.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Q5.get(this)}static get none(){return new t}addEventListener(e,r){if(!gM.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");gM.get(this).push(r)}removeEventListener(e,r){if(!gM.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=gM.get(this),n=s.indexOf(r);n>-1&&s.splice(n,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 D3e(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=gM.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Q5.set(t,!0)}var yH=class extends Error{constructor(e){super(e),t
Polling status: ${T3e.includes(p)?"Stopped":"Running"}`),p==="succeeded"){let l=o(u,r);if(l!==void 0)return{response:await e(l).catch(v3e({state:r,stateProxy:s,isOperationError:a})),status:p}}return{response:u,status:p}}async function L3e(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:p,processResult:l,getError:A,updateState:h,setDelay:M,isDone:g,setErrorAsResult:y}=t,{operationLocation:O}=r.config;if(O!==void 0){let{response:B,status:I}=await $y0({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:O,getResourceLocation:o,isOperationError:c,options:n});if(W3e({status:I,response:B,state:r,stateProxy:s,isDone:g,processResult:l,getError:A,setErrorAsResult:y}),!T3e.includes(I)){let R=p?.(B);R&&M(R);let N=a?.(B,r);if(N!==void 0){let T=O!==N;r.config.operationLocation=N,u?.(N,T)}else u?.(O,!1)}h?.(r,B)}}function P3e(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function Q3e(t){return t.headers.location}function k3e(t){return t.headers["operation-location"]}function U3e(t){return t.headers["azure-asyncoperation"]}function Yy0(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function G3e(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=k3e(e),o=U3e(e),a=P3e({operationLocation:i,azureAsyncOperation:o}),c=Q3e(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Yy0({requestMethod:u,location:c,requestPath:s,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function H3e(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn'tnecessarilyindicatetheoperationhasfailed.CheckyourAzuresubscriptionorresourcestatusformoreinformation.`);switch(e?.toLocaleLowerCase()){case void 0:return xH(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return S2.verbose(`LRO:unrecognizedoperationstatus:${e}`),e}}function Jy0(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return H3e({status:r,statusCode:t.statusCode})}function Ky0(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return H3e({status:i,statusCode:t.statusCode})}function xH(t){return t===202?"running":t<300?"succeeded":"failed"}function X3e({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Zy0(new Date(e)):r*1e3}}function V3e(t){let e=t.flatResponse.error;if(!e){S2.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){S2.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function Zy0(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function j3e(t){let{response:e,state:r,operationLocation:s}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return xH(e.rawResponse.statusCode);case"Body":return WH(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function eC0(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return _3e({init:async()=>{let o=await n.sendInitialRequest(),a=G3e({rawResponse:o.rawResponse,requestPath:n.requestPath,requestMethod:n.r
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}functionLw0(){Object.keys(FS).forEach(function(t){deleteFS[t]})}});varxS=f(Bc=>{"use strict";Bc.__esModule=!0;Bc.HandlebarsEnvironment=gj;functionaDe(t){returnt&&t.__esModule?t:{default:t}}varX2=Es(),Pw0=si(),Mj=aDe(Pw0),Qw0=dj(),kw0=sDe(),Uw0=hj(),TS=aDe(Uw0),Gw0=bj(),Hw0="4.7.9";Bc.VERSION=Hw0;varXw0=8;Bc.COMPILER_REVISION=Xw0;varVw0=7;Bc.LAST_COMPATIBLE_COMPILER_REVISION=Vw0;varjw0={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Bc.REVISION_CHANGES=jw0;varmj="[object Object]";functiongj(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Qw0.registerDefaultHelpers(this),kw0.registerDefaultDecorators(this)}gj.prototype={constructor:gj,logger:TS.default,log:TS.default.log,registerHelper:function(e,r){if(X2.toString.call(e)===mj){if(r)thrownewMj.default("Arg not supported with multiple helpers");X2.extend(this.helpers,e)}elsethis.helpers[e]=r},unregisterHelper:function(e){deletethis.helpers[e]},registerPartial:function(e,r){if(X2.toString.call(e)===mj)X2.extend(this.partials,e);else{if(typeofr>"u")thrownewMj.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){deletethis.partials[e]},registerDecorator:function(e,r){if(X2.toString.call(e)===mj){if(r)thrownewMj.default("Arg not supported with multiple decorators");X2.extend(this.decorators,e)}elsethis.decorators[e]=r},unregisterDecorator:function(e){deletethis.decorators[e]},resetLoggedPropertyAccesses:function(){Gw0.resetLoggedProperties()}};var$w0=TS.default.log;Bc.log=$w0;Bc.createFrame=X2.createFrame;Bc.logger=TS.default});varuDe=f((WS,cDe)=>{"use strict";WS.__esModule=!0;functionzj(t){this.string=t}zj.prototype.toString=zj.prototype.toHTML=function(){return""+this.string};WS.default=zj;cDe.exports=WS.default});varpDe=f(Oj=>{"use strict";Oj.__esModule=!0;Oj.wrapHelper=Yw0;functionYw0(t,e){if(typeoft!="function")returnt;varr=function(){varn=arguments[arguments.length-1];returnarguments[arguments.length-1]=e(n),t.apply(this,arguments)};returnr}});varbDe=f(OA=>{"use strict";OA.__esModule=!0;OA.checkRevision=rS0;OA.template=sS0;OA.wrapProgram=_S;OA.resolvePartial=nS0;OA.invokePartial=iS0;OA.noop=fDe;functionJw0(t){returnt&&t.__esModule?t:{default:t}}functionKw0(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);returne.default=t,e}varZw0=Es(),$M=Kw0(Zw0),eS0=si(),Ap=Jw0(eS0),dp=xS(),lDe=dj(),tS0=pDe(),ADe=bj();functionrS0(t){vare=t&&t[0]||1,r=dp.COMPILER_REVISION;if(!(e>=dp.LAST_COMPATIBLE_COMPILER_REVISION&&e<=dp.COMPILER_REVISION))if(e<dp.LAST_COMPATIBLE_COMPILER_REVISION){vars=dp.REVISION_CHANGES[r],n=dp.REVISION_CHANGES[e];thrownewAp.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}elsethrownewAp.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}functionsS0(t,e){if(!e)thrownewAp.default("No environment passed to template");if(!t||!t.main)thrownewAp.default("Unknown template object: "+typeoft);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);varr=t.compiler&&t.compiler[0]===7;functions(o,a,c){c.hash&&(a=$M.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;varu=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(varp=u.split(`
`)}returnu}elsethrownewAp.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}varn={strict:function(a,c,u){if(!a||!(cina))thrownewAp.default('"'+c+'" not defined in '+a,{loc:u});returnn.lookupProperty(a,c)},lookupProperty:function(a,c){varu=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||ADe.resultIsAllowed(u,n.protoAccessControl,c))returnu},lookup:function(a,c){for(varu=a.length,p=0;p<u;p++){varl=a[p]&&n.lookupProperty(a[p],c);if(l!=null)returnl}},lambda:function(a,c){returntypeofa=="function"?a.call(c):a},escapeExpression:$M.escapeExpression,invokePartial:s,fn:function(a){varc=t[a];returnc.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,p,l){varA=this.programs[a],h=this.fn(a);returnc||l||p||u?A=_S(this,a,h,c,u,p,l):A||(A=this.programs[a]=_S(this,a,h)),A},data:function(a,c){for(;a&&c--;)a=a._parent;returna},mergeIfNeeded:function(a,c){varu=a||c;returna&&c&&a!==c&&(u=$M.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};functioni(o){vara=arguments.length<=1||arguments[1]===void0?{}:arguments[1],c=a.data;i._setup(a),!a.partial&&t.useData&&(c=oS0(o,c));varu=void0,p=t.useBlockParams?[]:void0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);functionl(A){return""+t.main(n,A,n.helpers,n.partials,c,p,u)}returnl=hDe(t.main,l,n,a.depths||[],c,p),l(o,a)}returni.isTop=!0,i._setup=function(o){if(o.partial)n.protoAccessControl=o.protoAccessControl,n.helpers=o.helpers,n.partials=o.partials,n.decorators=o.decorators,n.hooks=o.hooks;else{vara={};dDe(a,e.helpers,n),dDe(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=$M.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=ADe.createProtoAccessControl(o);varc=o.allowCallsToHelperMissing||r;lDe.moveHelperToHooks(n,"helperMissing",c),lDe.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(o,a,c,u){if(t.useBlockParams&&!c)thrownewAp.default("must pass block params");if(t.useDepths&&!u)thrownewAp.default("must pass parent depths");return_S(n,o,t[o],a,0,c,u)},i}function_S(t,e,r,s,n,i,o){functiona(c){varu=arguments.length<=1||arguments[1]===void0?{}:arguments[1],p=o;returno&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(p=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),p)}returna=hDe(r,a,t,o,s,i),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}functionnS0(t,e,r){returnt?!t.call&&!r.name&&(r.name=t,t=LS(r.partials,t)):r.name==="@partial-block"?t=LS(r.data,"partial-block"):t=LS(r.partials,r.name),t}functioniS0(t,e,r){vars=LS(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);varn=void0;if(r.fn&&r.fn!==fDe&&(function(){r.data=dp.createFrame(r.data);vari=r.fn;n=r.data["partial-block"]=function(a){varc=arguments.length<=1||arguments[1]===void0?{}:arguments[1];returnc.data=dp.createFrame(c.data),c.data["partial-block"]=s,i(a,c)},i.partials&&(r.partials=$M.extend({},r.partials,i.partials))})(),t===void0&&n&&(t=n),t===void0)thrownewAp.default("The partial "+r.name+" could not be found");if(tinstanceofFunction)returnt(e,r)}functionfDe(){return""}functionLS(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))returnt[e]}functionoS0(t,e){return(!e||!("root"ine))&&(e=e?dp.createFrame(e):{},e.root=t),e}functionhDe(t,e,r,s,n,i){if(t.decorator){varo={};e=t.decorator(e,o,r,s&&s[0],n,i,s),$M.extend(e,o)}returne}functiondDe(t,e,r){e&&Object.keys(e).forEach(function(s){varn=e[s];t[s]=aS0(n,r)})}functionaS0(t,e){varr=e.lookupProperty;returntS0.wrapHelper(t,function(s){returns.lookupProperty=r,s})}});varEj=f((PS,MDe)=>{"use strict";PS.__esModule=!0;PS.default=function(t){(function(){typeofglobalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){returnthis}),__magic__.globalThis=__magic__,deleteObject.prototype.__magic__)})();vare=globalThis.Handlebars;t.noConflict=function(){returnglobalThis
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,a,c,u,p;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),A=0;A<l.length&&(a=this._input.match(this.rules[l[A]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=A,!this.options.flex)));A++);return o?(p=o[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.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],i=this.performAction.call(this,this.yy,this,l[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});varLRe=f(_Re=>{"use strict";varmJ=Dp().Buffer;_Re._dbcs=Ip;varEr=-1,WRe=-2,io=-10,ws=-1e3,ym=newArray(256),hy=-1;for(m6=0;m6<256;m6++)ym[m6]=Er;varm6;functionIp(t,e){if(this.encodingName=t.encodingName,!t)thrownewError("DBCS codec is called without the data.");if(!t.table)thrownewError("Encoding '"+this.encodingName+"' has no data.");varr=t.table();this.decodeTables=[]
Found: ${t.length}`);throwa.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{leta=newError(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throwa.code="EINTEGRITY",a.found=i,a.expected=e,a.algorithm=s,a.sri=e,a}}kc.exports.checkStream=fx0;functionfx0(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=ui(e,r),!e||!Object.keys(e).length)returnPromise.reject(Object.assign(newError("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));lets=HJ(r);returnnewPromise((n,i)=>{t.pipe(s),t.on("error",i),s.on("error",i);leto;s.on("verified",a=>{o=a}),s.on("end",()=>n(o)),s.resume()})}kc.exports.integrityStream=HJ;functionHJ(t=Object.create(null)){returnnewUJ(t)}kc.exports.create=hx0;functionhx0(t){lete=t?.algorithms||[...GJ],r=yy(t?.options),s=e.map(Ey.createHash);return{update:function(n,i){returns.forEach(o=>o.update(n,i)),this},digest:function(){returne.reduce((i,o)=>{leta=s.shift().digest("base64"),c=newvp(`${o}-${a}${r}`,t);returni[c.algorithm]||(i[c.algorithm]=[]),i[c.algorithm].push(c),i},newbf)}}}functionbx0(t,e){returnU5e.indexOf(t.toLowerCase())>=U5e.indexOf(e.toLowerCase())?t:e}});varVJ=f((D_t,Y5e)=>{varX5e=FJ(),V5e=PJ(),Mx0=Cy(),j5e={shared:!1,ignoreCargoCult:!0},mx0={status:200,headers:{}},Dm=t=>{lete={method:t.method,url:t.url,headers:{},compress:t.compress};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},$5e=t=>{lete={status:t.status,headers:{}};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},XJ=class{constructor({entry:e,request:r,response:s,options:n}){this.entry=e,this.request=Dm(r),this.response=$5e(s),this.options=n,this.policy=newX5e(this.request,this.response,j5e),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}staticstorable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:newX5e(Dm(e),mx0,j5e).storable()}satisfies(e){letr=Dm(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;lets=newV5e(this.request),n=newV5e(r);returnJSON.stringify(s.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(n.languages())||JSON.stringify(s.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?Mx0.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){returnthis.policy.storable()}getmustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){letr=Dm(e);returnr.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){returnthis.policy.responseHeaders()}revalidationHeaders(e){letr=Dm(e);returnthis.policy.revalidationHeaders(r)}revalidated(e,r){lets=Dm(e),n=$5e(r);return!this.policy.revalidatedPolicy(s,n).modified}};Y5e.exports=XJ});varK5e=f((q_t,J5e)=>{varjJ=classextendsError{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};J5e.exports={NotCachedError:jJ}});varcwe=f((I_t,awe)=>{"use strict";varZ5e=typeofprocess=="object"&&process?process:{stdout:null,stderr:null},gx0=require("events"),ewe=require("stream"),twe=require("string_decoder").StringDecoder,Fp=Symbol("EOF"),Tp=Symbol("maybeEmitEnd"),WA=Symbol("emittedEnd"),S6=Symbol("emittingEnd"),By=Symbol("emittedError"),N6=Symbol("closed"),rwe=Symbol("read"),v6=Symbol("flush"),swe=Symbol("flushChunk"),hn=Symbol("encoding"),xp=Symbol("decoder"),F6=Symbol("flowing"),Dy=Symbol("paused"),qm=Symbol("resume"),er=Symbol("bufferLength"),$J=Symbol("bufferPush"),YJ=Symbol("bufferShift"),Ur=Symbol("objectMode"),Gr=Symbol("destroyed"),JJ=Symbol("emitData"),nwe=Symbol("emitEnd"),KJ=Symbol("emitEnd2"),Wp=Symbol("async"),qy=t=>Promise.resolve().then(t),iwe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",zx0=iwe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Ox0=iwe&&Symbol.iterator||Symbol("iterator not implemented"),Ex0=t=>t==="end"||t==="finish"||t==="prefinish",yx0=t=>tinstanceofArrayBuffer||typeoft=="object"&&t.constructor&&t.constructor.name==="ArrayB
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||ov(s[1])!==s[0])return;let n;try{n=JSON.parse(s[1])}catch{}n&&e.push(n)}),e}Ai.exports.bucketDir=eZ;function eZ(t){return Hc.join(t,`index-v${MP0}`)}Ai.exports.bucketPath=Vy;function Vy(t,e){let r=y6e(e);return Hc.join.apply(Hc,[eZ(t)].concat(bP0(r)))}Ai.exports.hashKey=y6e;function y6e(t){return C6e(t,"sha256")}Ai.exports.hashEntry=ov;function ov(t){return C6e(t,"sha1")}function C6e(t,e){return aP0.createHash(e).update(t).digest("hex")}function av(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?hP0(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function KK(t){return pP0(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var Pm=f(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0});uv.LRUCache=void 0;var CP0=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,D6e=new Set,tZ=typeof process=="object"&&process?process:{},q6e=(t,e,r,s)=>{typeof tZ.emitWarning=="function"?tZ.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},cv=globalThis.AbortController,B6e=globalThis.AbortSignal;if(typeof cv>"u"){B6e=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},cv=class{constructor(){e()}signal=new B6e;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let t=tZ.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,q6e("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 BP0=t=>!D6e.has(t),LA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),I6e=t=>LA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Lm:null:null,Lm=class extends Array{constructor(e){super(e),this.fill(0)}},rZ=class t{heap;length;static#e=!1;static create(e){let r=I6e(e);if(!r)return[];t.#e=!0;let s=new t(e,r);return t.#e=!1,s}constructor(e,r){if(!t.#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]}},sZ=class t{#e;#t;#s;#r;#n;#i;#c;#a;get perf(){return this.#a}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#l;#d;#A;#u;#b;#O;#M;#m;#B;#g;#y;#C;#h;#E;#D;#z;#p;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#h,sizes:e.#y,keyMap:e.#d,keyList:e.#A,valList:e.#u,next:e.#b,prev:e.#O,get head(){return e.#M},get tail(){return e.#m},free:e.#B,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,s,n,i)=>e.#U(r,s,n,i),moveToTail:r=>e.#W(r),indexes:r=>e.#w(r),rindexes:r=>e.#N(r),isStale:r=>e.#I(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#o}get fetchMethod(){return this.#i}get memoMethod(){return this.#c}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:s,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:p,disposeAfter:l,noDisposeOnSet:A,noUpdateTTL:h,maxSize:M=0,maxEntrySize:g=0,sizeCalculation:y,fetchMethod:O,memoMethod:B,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:T,ignoreFetchAbort:W,perf:$}=e;if($!==void 0&&typeof $?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#a=$??CP0,r!==
globstar while`,e,A,r,h,M),this.matchOne(e.slice(A),r.slice(h),s))return this.debug("globstar found match!",A,c,M),!0;if(M==="."||M===".."||!n.dot&&M.charAt(0)==="."){this.debug("dot detected!",e,A,r,h);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(s&&(this.debug(`
`;if(s.username||s.password){let A=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
`);let{connect:u,buffered:p}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",Y90),r.secureEndpoint){qC("Upgrading socket connection to TLS");let A=r.servername||r.host;return PFe.connect({...QFe(r,"host","path","port"),socket:n,servername:DC.isIP(A)?void 0:A})}return n}n.destroy();let l=new DC.Socket({writable:!1});return l.readable=!0,e.once("socket",A=>{qC("Replaying proxy buffer for failed request"),(0,H90.default)(A.listenerCount("data")>0),A.push(p),A.push(null)}),l}};AF.protocols=["http","https"];Ao.HttpsProxyAgent=AF;function Y90(t){t.resume()}function QFe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var jFe=f(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var HFe=require("buffer"),Tf={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."};tl.ERRORS=Tf;function J90(t){if(!HFe.Buffer.isEncoding(t))throw new Error(Tf.INVALID_ENCODING)}tl.checkEncoding=J90;function XFe(t){return typeof t=="number"&&isFinite(t)&&tU0(t)}tl.isFiniteInteger=XFe;function VFe(t,e){if(typeof t=="number"){if(!XFe(t)||t<0)throw new Error(e?Tf.INVALID_OFFSET:Tf.INVALID_LENGTH)}else throw new Error(e?Tf.INVALID_OFFSET_NON_NUMBER:Tf.INVALID_LENGTH_NON_NUMBER)}function K90(t){VFe(t,!1)}tl.checkLengthValue=K90;function Z90(t){VFe(t,!0)}tl.checkOffsetValue=Z90;function eU0(t,e){if(t<0||t>e.length)throw new Error(Tf.INVALID_TARGET_OFFSET)}tl.checkTargetOffset=eU0;function tU0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function rU0(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof HFe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}tl.bigIntAndBufferInt64Check=rU0});var YFe=f(gee=>{"use strict";Object.defineProperty(gee,"__esModule",{value:!0});var a0=jFe(),$Fe=4096,sU0="utf8",mee=class t{constructor(e){if(this.length=0,this._encoding=sU0,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(a0.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(a0.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(a0.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(a0.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe($Fe);else{if(typeof e<"u")throw new Error(a0.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe($Fe)}}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(Bu
`,cZ0=/\u2014 (\S+) (\S+)\n/g;functionuZ0(t,e){letr=t.inclusionProof,s=P1e.fromString(r.checkpoint.envelope),n=lx.fromString(s.note);if(!pZ0(s,e))thrownewo4.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});returnn}functionpZ0(t,e){letr=Buffer.from(t.note,"utf-8");returnt.signatures.some(s=>{letn=e.find(i=>DLe.crypto.bufferEqual(i.logID.subarray(0,4),s.keyHint)&&i.baseURL.match(s.name));returnn?DLe.crypto.verify(r,n.publicKey,s.signature):!1})}varP1e=classt{note;signatures;constructor(e,r){this.note=e,this.signatures=r}staticfromString(e){if(!e.includes(L1e))thrownewo4.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});letr=e.indexOf(L1e),s=e.slice(0,r+1),i=e.slice(r+L1e.length).matchAll(cZ0),o=Array.from(i,a=>{let[,c,u]=a,p=Buffer.from(u,"base64");if(p.length<5)thrownewo4.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:p.subarray(0,4),signature:p.subarray(4)}});if(o.length===0)thrownewo4.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});returnnewt(s,o)}},lx=classt{origin;logSize;logHash;rest;constructor(e,r,s,n){this.origin=e,this.logSize=r,this.logHash=s,this.rest=n}staticfromString(e){letr=e.trimEnd().split(`
`);if(r.length<3)thrownewo4.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});lets=r[0],n=BigInt(r[1]),i=Buffer.from(r[2],"base64"),o=r.slice(3);returnnewt(s,n,i,o)}};a4.LogCheckpoint=lx});varILe=f(G1e=>{"use strict";Object.defineProperty(G1e,"__esModule",{value:!0});G1e.verifyMerkleInclusion=dZ0;varU1e=ba(),Q1e=Kr(),lZ0=Buffer.from([0]),AZ0=Buffer.from([1]);functiondZ0(t,e){letr=t.inclusionProof,s=BigInt(r.logIndex),n=BigInt(e.logSize);if(s<0n||s>=n)thrownewQ1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:i,border:o}=fZ0(s,n);if(r.hashes.length!==i+o)thrownewQ1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});leta=r.hashes.slice(0,i),c=r.hashes.slice(i),u=zZ0(t.canonicalizedBody),p=bZ0(hZ0(u,a,s),c);if(!U1e.crypto.bufferEqual(p,e.logHash))thrownewQ1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}functionfZ0(t,e){letr=MZ0(t,e),s=mZ0(t>>BigInt(r));return{inner:r,border:s}}functionhZ0(t,e,r){returne.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?k1e(n,s):k1e(s,n),t)}functionbZ0(t,e){returne.reduce((r,s)=>k1e(s,r),t)}functionMZ0(t,e){returngZ0(t^e-BigInt(1))}functionmZ0(t){returnt.toString(2).split("1").length-1}functiongZ0(t){returnt===0n?0:t.toString(2).length}functionk1e(t,e){returnU1e.crypto.digest("sha256",AZ0,t,e)}functionzZ0(t){returnU1e.crypto.digest("sha256",lZ0,t)}});varwLe=f(H1e=>{"use strict";Object.defineProperty(H1e,"__esModule",{value:!0});H1e.verifyTLogSET=yZ0;varRLe=ba(),OZ0=Kr(),EZ0=Qg();functionyZ0(t,e){if(!(0,EZ0.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:newDate(Number(t.integratedTime)*1e3)}).some(n=>{leti=CZ0(t),o=Buffer.from(RLe.json.canonicalize(i),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;returnRLe.crypto.verify(o,n.publicKey,a)}))thrownewOZ0.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}functionCZ0(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}});varNLe=f(Ax=>{"use strict";Object.defineProperty(Ax,"__esModule",{value:!0});Ax.verifyTLogBody=RZ0;Ax.verifyTLogInclusion=wZ0;varSLe=d0e(),j1e=Kr(),X1e=yLe(),V1e=CLe(),BZ0=BLe(),DZ0=qLe(),qZ0=ILe(),IZ0=wLe();functionRZ0(t,e){let{kind:r,version:s}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||s!==n.apiVersion)thrownewj1e.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(s==X1e.DSSE_API_VERSION_V1)return(0,X1e.verifyDSSETLogBody)(n,e);{leti=SLe.Entry.fromJSON(n);return(0,X1e.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,BZ0.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==V1e.HASHEDREKORD_API_VERSION_V1)return(0,V1e.verifyHashedRekordTLogBody)(n,e);{leti=SLe.Entry.fromJSON(n);return(0,V1e.verifyHashedRekordTLogBodyV2)(i,e)}default:thrownewj1e.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}functionwZ0(t,e){letr=!1;if(SZ0(t)&&((0,IZ0.verifyTLogSET)(t,e),r=!0),NZ0(t)){lets=(0,DZ0.verifyCheckpoint)(t,e);(0,qZ0.verifyMerkleInclusion)(t,s),r=!0}if(!r)thrownewj1e.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}functionSZ0(t){returnt.inclusionPromise!==void0}functionNZ0(t){returnt.inclusionProof!==void0}});var_Le=f(dx=>{"use strict";Object.defineProperty(dx,"__esModule",{value:!0});dx.Verifier=void0;varvZ0=require("util"),kg=Kr(),vLe=MLe(),FLe=gLe(),TLe=ELe(),xLe=NLe(),$1e=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){lets=this.verifyTimestamps(e),n=this.verifySigningKey(e,s);return
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}P4.exports=Nat,P4.exports.__esModule=!0,P4.exports.default=P4.exports});varnHe=f((RVt,Q4)=>{varvat=kUe(),Fat=vGe(),Tat=rHe(),xat=sHe();functionWat(t,e){returnvat(t)||Fat(t,e)||Tat(t,e)||xat()}Q4.exports=Wat,Q4.exports.__esModule=!0,Q4.exports.default=Q4.exports});varoHe=f((wVt,iHe)=>{"use strict";var_at=uW().forEach,Lat=T4(),Pat=Lat("forEach");iHe.exports=Pat?[].forEach:function(e){return_at(this,e,arguments.length>1?arguments[1]:void0)}});varcHe=f(()=>{"use strict";varQat=nt(),aHe=oHe();Qat({target:"Array",proto:!0,forced:[].forEach!==aHe},{forEach:aHe})});varpHe=f((vVt,uHe)=>{"use strict";cHe();varkat=ya();uHe.exports=kat("Array","forEach")});varAHe=f((FVt,lHe)=>{"use strict";varUat=pHe();lHe.exports=Uat});vardHe=f(()=>{});varhHe=f((WVt,fHe)=>{"use strict";varGat=iz(),Hat=Ps(),Xat=Cn(),Vat=AHe();dHe();varXse=Array.prototype,jat={DOMTokenList:!0,NodeList:!0};fHe.exports=function(t){vare=t.forEach;returnt===Xse||Xat(Xse,t)&&e===Xse.forEach||Hat(jat,Gat(t))?Vat:e}});varVse=f((_Vt,bHe)=>{bHe.exports=hHe()});varMHe=f(()=>{"use strict";var$at=nt(),Yat=Xx().includes,Jat=Vt(),Kat=qre(),Zat=Jat(function(){return!Array(1).includes()});$at({target:"Array",proto:!0,forced:Zat},{includes:function(e){returnYat(this,e,arguments.length>1?arguments[1]:void0)}});Kat("includes")});vargHe=f((QVt,mHe)=>{"use strict";MHe();varect=ya();mHe.exports=ect("Array","includes")});varOHe=f((kVt,zHe)=>{"use strict";vartct=Mi(),rct=ll(),sct=h1(),nct=sct("match");zHe.exports=function(t){vare;returntct(t)&&((e=t[nct])!==void0?!!e:rct(t)==="RegExp")}});varyHe=f((UVt,EHe)=>{"use strict";varict=OHe(),oct=TypeError;EHe.exports=function(t){if(ict(t))thrownewoct("The method doesn't accept regular expressions");returnt}});varBHe=f((GVt,CHe)=>{"use strict";varact=h1(),cct=act("match");CHe.exports=function(t){vare=/./;try{"/./"[t](e)}catch{try{returne[cct]=!1,"/./"[t](e)}catch{}}return!1}});varqHe=f(()=>{"use strict";varuct=nt(),pct=wt(),lct=yHe(),Act=sh(),DHe=Mu(),dct=BHe(),fct=pct("".indexOf);uct({target:"String",proto:!0,forced:!dct("includes")},{includes:function(e){return!!~fct(DHe(Act(this)),DHe(lct(e)),arguments.length>1?arguments[1]:void0)}})});varRHe=f((VVt,IHe)=>{"use strict";qHe();varhct=ya();IHe.exports=hct("String","includes")});varNHe=f((jVt,SHe)=>{"use strict";varwHe=Cn(),bct=gHe(),Mct=RHe(),jse=Array.prototype,$se=String.prototype;SHe.exports=function(t){vare=t.includes;returnt===jse||wHe(jse,t)&&e===jse.includes?bct:typeoft=="string"||t===$se||wHe($se,t)&&e===$se.includes?Mct:e}});varFHe=f(($Vt,vHe)=>{"use strict";varmct=NHe();vHe.exports=mct});vark4=f((YVt,THe)=>{THe.exports=FHe()});varYse=f((JVt,xHe)=>{"use strict";xHe.exports=`
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}var i=!0,o=!1,a;return{s:function(){r=(0,hut.default)(t)},n:function(){var u=r.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function yut(t,e){var r;if(t){if(typeof t=="string")return JXe(t,e);var s=(0,Co.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,gut.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return JXe(t,e)}}function JXe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}var dt="xregexp",fh={astral:!1,namespacing:!1},jt={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},mu={},G4={},uz={},rne=[],pz="default",KXe="class",Cut={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},But=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,Dut=jt.exec.call(/()??/,"")[1]===void 0,qut=(0,dh.default)(/x/)!==void 0,Iut={},sVe=Iut.toString;function nne(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),s=".a".replace(new RegExp("a",r),".")==="..";s&&(e=!1)}}catch{e=!1}return e}var nVe=nne("u"),ine=nne("y"),iVe={g:!0,i:!0,m:!0,u:nVe,y:ine};function oVe(t,e,r,s,n){var i;if(t[dt]={captureNames:e},n)return t;if(t.__proto__)t.__proto__=ae.prototype;else for(var o in ae.prototype)t[o]=ae.prototype[o];return t[dt].source=r,t[dt].flags=s&&(0,Eut.default)(i=s.split("")).call(i).join(""),t}function H4(t){return jt.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}function bh(t,e){var r;if(!ae.isRegExp(t))throw new TypeError("Type RegExp expected");var s=t[dt]||{},n=Rut(t),i="",o="",a=null,c=null;return e=e||{},e.removeG&&(o+="g"),e.removeY&&(o+="y"),o&&(n=jt.replace.call(n,new RegExp("[".concat(o,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(n=H4(n+i)),e.isInternalOnly||(s.source!==void 0&&(a=s.source),(0,dh.default)(s)!=null&&(c=i?H4((0,dh.default)(s)+i):(0,dh.default)(s))),t=oVe(new RegExp(e.source||t.source,n),wut(t)?(0,Co.default)(r=s.captureNames).call(r,0):null,a,c,e.isInternalOnly),t}function aVe(t){return(0,rVe.default)(t,16)}function cVe(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||jt.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||Sut(t.input,t.index+t[0].length,r)?"":"(?:)"}function Rut(t){return qut?(0,dh.default)(t):jt.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}function wut(t){return!!(t[dt]&&t[dt].captureNames)}function uVe(t){return(0,rVe.default)(t,10).toString(16)}function Sut(t,e,r){var s="\\(\\?#[^)]*\\)",n="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return jt.test.call((0,hh.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,Co.default)(t).call(t,e))}function one(t,e){return sVe.call(t)==="[object ".concat(e,"]")}function pVe(t){for(;t.length<4;)t="0".concat(t);return t}function Nut(t,e){if(H4(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=jt.replace.call(t,/^\(\?([\w$]+)\)/,function(i,o){if(jt.test.call(/[gy]/,o))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=H4(e+o),""});var r=X4(e),s;try{for(r.s();!(s=r.n()).done;){var n=s.value;if(!iVe[n])throw new SyntaxError("Unknown regex flag ".concat(n))}}catch(i){r.e(i)}finally{r.f()}return{pattern:t,flags:e}}function lVe(t){var e={};return one(t,"String")?((0,sne.default)(ae).call(ae,t,/[^\s,]+/,function(r){e[r]=!0}),e):t}function ZXe(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}vari=!0,o=!1,a;return{s:function(){r=(0,fpt.default)(t)},n:function(){varu=r.next();returni=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throwa}}}}functionypt(t,e){varr;if(t){if(typeoft=="string")returnJVe(t,e);vars=(0,gpt.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,mpt.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))returnJVe(t,e)}}functionJVe(t,e){(e==null||e>t.length)&&(e=t.length);for(varr=0,s=newArray(e);r<e;r++)s[r]=t[r];returns}varCpt=function(e){varr={},s=e._dec,n=e._hex,i=e._pad4;functiono(A){returnA.replace(/[- _]+/g,"").toLowerCase()}functiona(A){varh=/^\\[xu](.+)/.exec(A);returnh?s(h[1]):A.charCodeAt(A[0]==="\\"?1:0)}functionc(A){varh="",M=-1;return(0,Opt.default)(e).call(e,A,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(g){vary=a(g[1]);y>M+1&&(h+="\\u".concat(i(n(M+1))),y>M+2&&(h+="-\\u".concat(i(n(y-1))))),M=a(g[2]||g[1])}),M<65535&&(h+="\\u".concat(i(n(M+1))),M<65534&&(h+="-\\uFFFF")),h}functionu(A){varh="b!";returnr[A][h]||(r[A][h]=c(r[A].bmp))}functionp(A,h){varM=r[A],g="";if(M.bmp&&!M.isBmpLast){vary;g=(0,pne.default)(y="[".concat(M.bmp,"]")).call(y,M.astral?"|":"")}if(M.astral&&(g+=M.astral),M.isBmpLast&&M.bmp){varO;g+=(0,pne.default)(O="".concat(M.astral?"|":"","[")).call(O,M.bmp,"]")}returnh?"(?:(?!".concat(g,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(g,")")}functionl(A,h){varM=h?"a!":"a=";returnr[A][M]||(r[A][M]=p(A,h))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(A,h,M){varg="Invalid double negation ",y="Unknown Unicode token ",O="Unicode token missing data ",B="Astral mode required for Unicode token ",I="Astral mode does not support Unicode tokens within character classes",R=A[1]==="P"||!!A[2],N=(0,zpt.default)(M).call(M,"A"),T=o(A[4]||A[3]),W=r[T];if(A[1]==="P"&&A[2])thrownewSyntaxError(g+A[0]);if(!r.hasOwnProperty(T))thrownewSyntaxError(y+A[0]);if(W.inverseOf){if(T=o(W.inverseOf),!r.hasOwnProperty(T)){var$;thrownewReferenceError((0,pne.default)($="".concat(O+A[0]," -> ")).call($,W.inverseOf))}W=r[T],R=!R}if(!(W.bmp||N))thrownewSyntaxError(B+A[0]);if(N){if(h==="class")thrownewSyntaxError(I);returnl(T,R)}returnh==="class"?R?u(T):W.bmp:"".concat((R?"[^":"[")+W.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(A){varh="Unicode token requires name",M="Unicode token has no character data ",g=Ept(A),y;try{for(g.s();!(y=g.n()).done;){varO=y.value;if(!O.name)thrownewError(h);if(!(O.inverseOf||O.bmp||O.astral))thrownewError(M+O.name);r[o(O.name)]=O,O.alias&&(r[o(O.alias)]=O)}}catch(B){g.e(B)}finally{g.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(A){varh=o(A);returnr[h]}};K4.default=Cpt;KVe.exports=K4.default});vartje=f((Qjt,eje)=>{eje.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",bmp:"\uFE70-\uFEFF"},{name:"InArabic_Supplement",bmp:"\u0750-\u077F"},{name:"InArmenian",bmp:"\u0530-\u058F"},{name:"InArrows",bmp:"\u2190-\u21FF"},{name:"InAvestan",astral:"\uD802[\uDF00-\uDF3F]"},{name:"InBalinese",bmp:"\u1B00-\u1B7F"},{name:"InBamum",
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}functionw2e(t){process.exitCode=dQ.Failure,Nl0(t)}functionP(t){jl("debug",{},t)}functionNl0(t,e={}){jl("error",oQ(e),tinstanceofError?t.toString():t)}functionRi(t,e={}){jl("warning",oQ(e),tinstanceofError?t.toString():t)}functionG(t){process.stdout.write(t+q2e.EOL)}functionvl0(t){cQ("group",t)}functionFl0(){cQ("endgroup")}function$l(t,e){returnSl0(this,void0,void0,function*(){vl0(t);letr;try{r=yielde()}finally{Fl0()}returnr})}functionGq(t,e){if(process.env.GITHUB_STATE||"")returnuQ("STATE",E2e(t,e));jl("save-state",{name:t},Vl(e))}functionS2e(t){returnprocess.env[`STATE_${t}`]||""}varXw=F(require("fs"),1),pV=F(require("os"),1),lV=F(require("path"),1);varTQ=F(require("crypto"),1),Sr=F(require("fs"),1);varw20=F(vQ(),1);variI=F(require("os"),1),Go=F(require("path"),1);varNi=F(vQ(),1),Ohe=F(require("stream"),1),Ehe=F(require("util"),1),xQ=require("assert");varzhe=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(p){try{u(s.next(p))}catch(l){o(l)}}functionc(p){try{u(s.throw(p))}catch(l){o(l)}}functionu(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},sI=class{constructor(e,r,s){if(e<1)thrownewError("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(s),this.minSeconds>this.maxSeconds)thrownewError("min seconds should be less than or equal to max seconds")}execute(e,r){returnzhe(this,void0,void0,function*(){lets=1;for(;s<this.maxAttempts;){try{returnyielde()}catch(i){if(r&&!r(i))throwi;ve(i.message)}letn=this.getSleepAmount();ve(`Waiting ${n} seconds before trying again`),yieldthis.sleep(n),s++}returnyielde()})}getSleepAmount(){returnMath.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){returnzhe(this,void0,void0,function*(){returnnewPromise(r=>setTimeout(r,e*1e3))})}};varQa=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(p){try{u(s.next(p))}catch(l){o(l)}}functionc(p){try{u(s.throw(p))}catch(l){o(l)}}functionu(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},nI=classextendsError{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},yhe=process.platform==="win32",PMt=process.platform==="darwin",N20="actions/tool-cache";functionvi(t,e,r,s){returnQa(this,void0,void0,function*(){e=e||Go.join(Rhe(),TQ.randomUUID()),yieldUu(Go.dirname(e)),_(`Downloading ${t}`),_(`Destination ${e}`);letn=3,i=FQ("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=FQ("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);returnyieldnewsI(n,i,o).execute(()=>Qa(this,void0,void0,function*(){returnyieldv20(t,e||"",r,s)}),c=>!(cinstanceofnI&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}functionv20(t,e,r,s){returnQa(this,void0,void0,function*(){if(Sr.existsSync(e))thrownewError(`Destination file path ${e} already exists`);letn=newqi(N20,[],{allowRetries:!1});r&&(_("set auth"),s===void0&&(s={}),s.authorization=r);leti=yieldn.get(t,s);if(i.message.statusCode!==200){letp=newnI(i.message.statusCode);throw_(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),p}leto=Ehe.promisify(Ohe.pipeline),c=FQ("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),u=!1;try{returnyieldo(c,Sr.createWriteStream(e)),_("download complete"),u=!0,e}finally{if(!u){_("download failed");try{yieldxq(e)}catch(p){_(`Failed to delete '${e}'. ${p.message}`)}}}})}functionChe(t,e){returnQa(this,arguments,void0,function*(r,s,n="xz"){if(!r)thrownewError("parameter 'file' is required");s=yieldqhe(s),_("Checking tar --version");leti="";yieldQn("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:p=>i+=p.toString(),stderr:p=>i
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new UO(i));return s.searchPaths.push(...PQ(s.patterns)),s})}static stat(e,r,s){return XQ(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Ub.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){_(`Brokensymlink'${e.path}'`);return}throw new Error(`Noinformationfoundforthepath'${e.path}'.Thismayindicateabrokensymboliclink.`)}throw i}else n=yield Ub.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Ub.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){_(`Symlinkcycledetectedforpath'${e.path}'andrealpath'${i}'`);return}s.push(i)}return n})}};var ff0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};function rbe(t,e){return ff0(this,void 0,void 0,function*(){return yield pI.create(t,e)})}var DI=F(require("crypto"),1),Xb=F(require("fs"),1),o2=F(require("path"),1),VMe=F(HMe(),1),jMe=F(require("util"),1);var KO;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(KO||(KO={}));var As;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(As||(As={}));var Un;(function(t){t.GNU="gnu",t.BSD="bsd"})(Un||(Un={}));var CI=2,BI=5e3,Ak=5e3,dk=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,XMe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,ZO="cache.tar",fk="manifest.txt",Ymt=10*Math.pow(1024,3);var Hb=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},lM0=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),n(a,c,o.done,o.value)})}}function n(i,o,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},o)}},AM0="1.0";function e3(){return Hb(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=o2.join(s,"actions","temp")}let r=o2.join(e,DI.randomUUID());return yield Uu(r),r})}function Ua(t){return Xb.statSync(t).size}function hk(t){return Hb(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield rbe(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,p=lM0(c.globGenerator()),l;l=yield p.next(),e=l.done,!e;u=!0){n=l.value,u=!1;let h=o2.relative(a,n).replace(new RegExp(`\\${o2.sep}`,"g"),"/");_(`Matched:${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(A){r={error:A}}finally{try{!u&&!e&&(s=p.return)&&(yield s.call(p))}finally{if(r)throw r.error}}return o})}function t3(t){return Hb(this,void 0,void 0,function*(){return jMe.promisify(Xb.unlink)(t)})}function $Me(t){return Hb(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),_(`Checking${e}${r.join(" ")}`);try{yield Qn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){_(n.message)}return s=s.trim(),_(s),s})}function r3(){return Hb(this,void 0,void 0,function*(){let t=yield $Me("zstd",["--quiet"]),e=VMe.clean(t);return _(`zstdversion:${e}`),t===""?As.Gzip:As.ZstdWithoutLong})}function tA(t){return t===As.Gzip?KO.Gzip:KO.Zstd}function YMe(){return Hb(this,void 0,void 0,function*(){return Xb.existsSync(dk)?dk:(yield $Me("tar")).toLowerCase().includes("gnu tar")?br("tar"):""})}function bk(t,e){if(e===void 0)throw Error(`Expected${t}butvaluewasundefiend`);return e}function Vb(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(AM0),DI.createHash("sha256").update(s.join("|")).digest("hex")}function JMe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var yM=F(require("fs"),1),EEe=require("url");var Ga=class extends Error{constructor(e){super(e),this.name="AbortError"}};var KMe=require("node:os"),ZMe=F(require("node:util"),1),eme=F(require("node:process"),1);function tme(t,...e){eme.default.stderr.write(`${ZMe.default.format(t,...e)}${KMe.EOL}`)}var rme=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,nme,Mk=[],mk=[],II=[];rme&&gk(rme);var ime=Object.assign(t=>ome(t),{enable:gk,enabled:zk,disable:dM0,log:tme});function gk(t){nme=t,Mk=[],mk=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?mk.push(r.substring(1)):Mk.push(r);for(let r of II)r.enabled=zk(r.namespace)}function zk(t){if(t.endsWith("*"))return!0;for(let e of mk)if(sme(t,e))return!1;for(let e of Mk)if(sme(t,e))return!0;return!1}function sme(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let A=[],h="";for(let M of e)M==="*"&&h==="*"||(h=M,A.push(M));r=A.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,c=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else return!1;let u=s===t.length,p=n===r.length,l=n===r.length-1&&r[n]==="*";return u&&(p||l)}function dM0(){let t=nme||"";return gk(""),t}function ome(t){let e=Object.assign(r,{enabled:zk(t),destroy:fM0,log:ime.log,namespace:t,extend:hM0});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}return II.push(e),e}function fM0(){let t=II.indexOf(this);return t>=0?(II.splice(t,1),!0):!1}function hM0(t){let e=ome(`${this.namespace}:${t}`);return e.log=this.log,e}var jb=ime;var Ok=["verbose","info","warning","error"],ame={verbose:400,info:300,warning:200,error:100};function cme(t,e){e.log=(...r)=>{t.log(...r)}}function ume(t){return Ok.includes(t)}function RI(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=jb(t.namespace);n.log=(...p)=>{jb.log(...p)};function i(p){if(p&&!ume(p))throw new Error(`Unknownloglevel'${p}'.Acceptablevalues:${Ok.join(",")}`);s=p;let l=[];for(let A of e)o(A)&&l.push(A.namespace);jb.enable(l.join(","))}r&&(ume(r)?i(r):console.error(`${t.logLevelEnvVarName}settounknownloglevel'${r}';loggingisnotenabled.Acceptablevalues:${Ok.join(", ")}.`));function o(p){return!!(s&&ame[p.level]<=ame[s])}function a(p,l){let A=Object.assign(p.extend(l),{level:l});if(cme(p,A),o(A)){let h=jb.disable();jb.enab
${zM0.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};functionvI(t){returntinstanceofds?!0:c2(t)&&t.name==="RestError"}functionKs(t,e){returnBuffer.from(t,e)}varFI=F(require("node:http"),1),TI=F(require("node:https"),1),Dk=F(require("node:zlib"),1),hme=require("node:stream");varxi=s3("ts-http-runtime");varOM0={};functionn3(t){returnt&&typeoft.pipe=="function"}functionfme(t){returnt.readable===!1?Promise.resolve():newPromise(e=>{letr=()=>{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)})}functionbme(t){returnt&&typeoft.byteLength=="number"}varxI=classextendshme.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},qk=class{cachedHttpAgent;cachedHttpsAgents=newWeakMap;asyncsendRequest(e){letr=newAbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)thrownewGa("The operation was aborted. Request has already been canceled.");s=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}letn;e.timeout>0&&(n=setTimeout(()=>{letu=newVo;xi.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));leti=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeofe.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){letu=BM0(a);u!==null&&e.headers.set("Content-Length",u)}letc;try{if(a&&e.onUploadProgress){letM=e.onUploadProgress,g=newxI(M);g.on("error",y=>{xi.error("Error in upload progress",y)}),n3(a)?a.pipe(g):g.end(a),a=g}letu=awaitthis.makeRequest(e,r,a);n!==void0&&clearTimeout(n);letp=EM0(u),A={status:u.statusCode??0,headers:p,request:e};if(e.method==="HEAD")returnu.resume(),A;c=o?yM0(u,p):u;leth=e.onDownloadProgress;if(h){letM=newxI(h);M.on("error",g=>{xi.error("Error in download progress",g)}),c.pipe(M),c=M}returne.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(A.status)?A.readableStreamBody=c:A.bodyAsText=awaitCM0(c),A}finally{if(e.abortSignal&&s){letu=Promise.resolve();n3(a)&&(u=fme(a));letp=Promise.resolve();n3(c)&&(p=fme(c)),Promise.all([u,p]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{xi.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){letn=newURL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)thrownewError(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);leta={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};returnnewPromise((c,u)=>{letp=i?FI.default.request(a,c):TI.default.request(a,c);p.once("error",l=>{u(newds(l.message,{code:l.code??ds.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{letl=newGa("The operation was aborted. Rejecting from abort signal callback while making request.");p.destroy(l),u(l)}),s&&n3(s)?s.pipe(p):s?typeofs=="string"||Buffer.isBuffer(s)?p.end(s):bme(s)?p.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(xi.error("Unrecognized body type",s),u(newds("Unrecognized body type"))):p.end()})}getOrCreateAgent(e,r){lets=e.disableKeepAlive;if(r)returns?FI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=newFI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)returnTI.default.globalAgent;letn=e.tlsSettings??OM0,i=this.cachedHttpsAgents.get(n);returni&&i.options.keepAlive===!s||(xi.info("No cached TLS Agent exist, creating a new Agent"),i=newTI.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};functionEM0(t){lete=Gn();for(letrofObject.keys(t.headers)){lets=t.headers[r];Array.isArray(s)?s.length>0&&e.set(
`;return e}function sg0(t){return t instanceof Uint8Array?t.byteLength:iR(t)?t.size===-1?void 0:t.size:void 0}function ng0(t){let e=0;for(let r of t){let s=sg0(r);if(s===void 0)return;e+=s}return e}async function ig0(t,e,r){let s=[Ks(`--${r}`,"utf-8"),...e.flatMap(i=>[Ks(`\r
`,"utf-8")],n=ng0(s);n&&t.headers.set("Content-Length",n),t.body=await mge(s)}var c3="multipartPolicy",og0=70,ag0=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function cg0(t){if(t.length>og0)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!ag0.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}function aR(){return{name:c3,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipartboundarywasspecifiedas${o}intheheader,butgot${r}intherequestbody`);return r??=o,r?cg0(r):r=tg0(),t.headers.set("Content-Type",`${i};boundary=${r}`),await ig0(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function cR(){return NI()}var gge=RI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),v3t=gge.logger;function Va(t){return gge.createClientLogger(t)}var ja=Va("core-rest-pipeline");function Vk(t={}){return _I({logger:ja.info,...t})}var jk=LI;function $k(t={}){return PI(t)}var uR=F(require("node:os"),1),pR=F(require("node:process"),1);function zge(){return"User-Agent"}async function Oge(t){if(pR.default&&pR.default.versions){let e=`${uR.default.type()}${uR.default.release()};${uR.default.arch()}`,r=pR.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 lR="1.22.2";function bg0(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function Ege(){return zge()}async function AR(t){let e=new Map;e.set("core-rest-pipeline",lR),await Oge(e);let r=bg0(e);return t?`${t}${r}`:r}var yge=Ege(),Cge="userAgentPolicy";function Yk(t={}){let e=AR(t.userAgentPrefix);return{name:Cge,async sendRequest(r,s){return r.headers.has(yge)||r.headers.set(yge,await e),s(r)}}}var jn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Jk(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new jn(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(s?.aborted)return a();try{t(p=>{c(),i(p)},p=>{c(),o(p)})}catch(p){o(p)}s?.addEventListener("abort",u)})}var Og0="The delay was aborted.";function u3(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return Jk(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??Og0})}function sA(t){if(c2(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 Bge(t){return c2(t)}function tM(){return a2()}var N0=l2;var Dge=Symbol("rawContent");function Zk(t){return typeof t[Dge]=="function"}function qge(t){return Zk(t)?t[Dge]():t}var dR=c3;function e7(){let t=aR();return{name:dR,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)Zk(s.body)&&(s.body=qge(s.body));return t.sendRequest(e,r)}}}var t7=QI;function r7(){return kI()}function s7(t={}){return HI(t)}function n7(){return XI()}function nA(t){return kk(t)}function i7(t,e){return rR(t,e)}var Ige="setClientRequestIdPolicy";function o7(t="x-ms-client-request-id"){return{name:Ige,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function a7(t){return sR(t)}function c7(t){return nR(t)}var rM={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Rge(t={}){let e=new u7(t.parentContext);return t.span&&(e=e.setValue(rM.span,t.span)),t.namespace&&(e=e.setValue(rM.namespace,t.namespace)),e}var u7=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Hz0(c)){letl;returnc.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",r1("InvalidTag",l,fs(t,i))}letu=Pz0(t,i);if(u===!1)returnr1("InvalidAttr","Attributes for '"+c+"' have open quote.",fs(t,i));letp=u.value;if(i=u.index,p[p.length-1]==="/"){letl=i-p.length;p=p.substring(0,p.length-1);letA=Aze(p,e);if(A===!0)s=!0;elsereturnr1(A.err.code,A.err.msg,fs(t,l+A.err.line))}elseif(a)if(u.tagClosed){if(p.trim().length>0)returnr1("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",fs(t,o));if(r.length===0)returnr1("InvalidTag","Closing tag '"+c+"' has not been opened.",fs(t,o));{letl=r.pop();if(c!==l.tagName){letA=fs(t,l.tagStartPos);returnr1("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+A.line+", col "+A.col+") instead of closing tag '"+c+"'.",fs(t,o))}r.length==0&&(n=!0)}}elsereturnr1("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",fs(t,i));else{letl=Aze(p,e);if(l!==!0)returnr1(l.err.code,l.err.msg,fs(t,i-p.length+l.err.line));if(n===!0)returnr1("InvalidXml","Multiple possible root nodes found.",fs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=lze(t,i);continue}elseif(t[i+1]==="?"){if(i=pze(t,++i),i.err)returni}elsebreak;elseif(t[i]==="&"){letl=Uz0(t,i);if(l==-1)returnr1("InvalidChar","char '&' is not expected.",fs(t,i));i=l}elseif(n===!0&&!uze(t[i]))returnr1("InvalidXml","Extra text at the end",fs(t,i));t[i]==="<"&&i--}}else{if(uze(t[i]))continue;returnr1("InvalidChar","char '"+t[i]+"' is not expected.",fs(t,i))}if(s){if(r.length==1)returnr1("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",fs(t,r[0].tagStartPos));if(r.length>0)returnr1("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}elsereturnr1("InvalidXml","Start tag expected.",1);return!0}functionuze(t){returnt===" "||t===" "||t===`
`||t==="\r"}functionpze(t,e){letr=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){lets=t.substr(r,e-r);if(e>5&&s==="xml")returnr1("InvalidXml","XML declaration allowed only at the start of the document.",fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}elsecontinue}returne}functionlze(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}}elseif(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"){letr=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;elseif(t[e]===">"&&(r--,r===0))break}elseif(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}}returne}var_z0='"',Lz0="'";functionPz0(t,e){letr="",s="",n=!1;for(;e<t.length;e++){if(t[e]===_z0||t[e]===Lz0)s===""?s=t[e]:s!==t[e]||(s="");elseif(t[e]===">"&&s===""){n=!0;break}r+=t[e]}returns!==""?!1:{value:r,index:e,tagClosed:n}}varQz0=newRegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");functionAze(t,e){letr=CR(t,Qz0),s={};for(letn=0;n<r.length;n++){if(r[n][1].length===0)returnr1("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",O3(r[n]));if(r[n][3]!==void0&&r[n][4]===void0)returnr1("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",O3(r[n]));if(r[n][3]===void0&&!e.allowBooleanAttributes)returnr1("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",O3(r[n]));leti=r[n][2];if(!Gz0(i))returnr1("InvalidAttr","Attribute '"+i+"' is an invalid name.",O3(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;elsereturnr1("InvalidAttr","Attribute '"+i+"' is repeated.",O3(r[n]))}return!0}functionkz0(t,e){letr=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")returne;if(!t[e].match(r))break}return-1}functionUz0(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")returne++,kz0(t,e);letr=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}returne}functionr1(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}functionGz0(t){returnq7(t)}functionHz0(t){returnq7(t)}functionfs(t,e){letr=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}functionO3(t){returnt.startIndex+t[1].length}vardze={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"},fze={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 rn("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new C3(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let u=t.charCodeAt(a+1);if(u===47){let p=aM(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,p).trim();if(n.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=T7(n.transformTagName,l,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let A=this.matcher.getCurrentTag();if(l&&n.unpairedTagsSet.has(l))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${l}>`);A&&n.unpairedTagsSet.has(A)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=p}else if(u===63){let p=x7(t,a,!1,"?>");if(!p)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let l=this.buildAttributesMap(p.tagExp,this.matcher,p.tagName,!0);if(l){let A=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(A)||1),i.setXmlVersion(Number(A)||1)}if(!(n.ignoreDeclaration&&p.tagName==="?xml"||n.ignorePiTags)){let A=new rn(p.tagName);A.add(n.textNodeName,""),p.tagName!==p.tagExp&&p.attrExpPresent&&n.ignoreAttributes!==!0&&(A[":@"]=l),this.addChild(r,A,this.readonlyMatcher,a)}a=p.closeIndex+1}else if(u===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let p=aM(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let l=t.substring(a+4,p-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:l}])}a=p}else if(u===33&&t.charCodeAt(a+2)===68){let p=i.readDocType(t,a);this.entityDecoder.addInputEntities(p.entities),a=p.i}else if(u===33&&t.charCodeAt(a+2)===91){let p=aM(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,p);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);A==null&&(A=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:l}]):r.add(n.textNodeName,A),a=p+2}else{let p=x7(t,a,n.removeNSPrefix);if(!p){let T=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${T}"`)}let l=p.tagName,A=p.rawTagName,h=p.tagExp,M=p.attrExpPresent,g=p.closeIndex;if({tagName:l,tagExp:h}=T7(n.transformTagName,l,h,n),n.strictReservedNames&&(l===n.commentPropName||l===n.cdataPropName||l===n.textNodeName||l===n.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let O=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(O=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),M=l!==h);let B=null,I={},R;R=fO0(A),l!==e.tagname&&this.matcher.push(l,{},R),l!==h&&M&&(B=this.buildAttributesMap(h,this.matcher,l),B&&(I=dO0(B,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let T="";if(O)a=p.closeIndex;else if(n.unpairedTagsSet.has(l))a=p.closeIndex;else{let $=this.readStopNodeData(t,A,g+1);if(!$)throw new Error(`Unexpected end of ${A}`);a=$.i,T=$.tagContent}let W=new rn(l);B&&(W[":@"]=B),W.add(n.textNodeName,T),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,W,this.readonlyMatcher,N)}else{if(O){({tagName:l,tagExp:h}=T7(n.transformTagName,l,h,n));let T=new rn(l);B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let T=new rn(l);B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=p.closeIndex;continue}else{let T=new rn(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),r=T}s="",a=g}}}else s+=t[a];return e.child};function z
${a}:${decodeURIComponent(i[a])}`}returns}};varTt=classextendsz2{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewR3(e,r,this)}computeHMACSHA256(e){return(0,Hze.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varq1=Va("storage-common");varPi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Pi||(Pi={}));varuA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Pi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},VO0=newjn("The operation was aborted."),w3=classextendsKa{retryOptions;constructor(e,r,s=uA){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:uA.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):uA.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:uA.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:uA.maxRetryDelayInMs):uA.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:uA.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:uA.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,s){letn=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=_R(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=cA(n.url,Ju.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leto;try{if(q1.info(`RetryPolicy: =====> Try=${s}${i?"Primary":"Secondary"}`),o=awaitthis._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))returno;r=r||!i&&o.status===404}catch(a){if(q1.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throwa}returnawaitthis.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)returnq1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;leti=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(letoofi)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)returnq1.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){leto=s?s.status:n?n.statusCode:0;if(!e&&o===404)returnq1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)returnq1.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){leto=s.headers.get(Ue.X_MS_CopySourceErrorCode);if(o!==void0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returnn?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(q1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,s){letn=0;if(e)switch(this.retryOptions.retryPolicyType){casePi.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;casePi.FIXED:n=this.retryOptions.retryDelayInMs;break}elsen=Math.random()*1e3;returnq1.info(`RetryPolicy: Delay for ${n}ms`),QR(n,s,VO0)}};varS3=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnneww3(e,r,this.retryOptions)}};varjO0="storageBrowserPolicy";functionXze(){return{name:jO0,asyncsendRequest(t,e){returnN0||((t.method==="GET"||t.method==="HEAD")&&(t.url=cA(t.url,Ju.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(Ue.COOKIE),t.headers.delete(Ue.CONTENT_LENGTH)),e(t)}}}var$O0="StorageCorrectContentLengthPolicy";functionVze(){functiont(e){e.body&&(typeofe.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ue.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:$O0,asyncsend
`}),a}function n(i){let o=LR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=PR(i.url),u={};if(c){let p=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let A=l.toLowerCase();u[A]=c[l],p.push(A)}p.sort();for(let l of p)a+=`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:newZo(t.version,i,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}functionny0(t,e){if(t=R2(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=hc.parse(t.permissions.toString()).toString():n=bc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?v0(t.startsOn,!1):"",t.expiresOn?v0(t.expiresOn,!1):"",I2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ko(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newZo(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}functioniy0(t,e){if(t=R2(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=hc.parse(t.permissions.toString()).toString():n=bc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?v0(t.startsOn,!1):"",t.expiresOn?v0(t.expiresOn,!1):"",I2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ko(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newZo(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void0,void0,void0,t.encryptionScope),stringToSign:i}}functionoy0(t,e){if(t=R2(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=hc.parse(t.permissions.toString()).toString():n=bc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?v0(t.startsOn,!1):"",t.expiresOn?v0(t.expiresOn,!1):"",I2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?v0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?v0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ko(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newZo(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}functionay0(t,e){if(t=R2(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=hc.parse(t.permissions.toString()).toString():n=bc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?v0(t.startsOn,!1):"",t.expiresOn?v0(t.expiresOn,!1):"",I2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?v0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?v0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Ko(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newZo(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}functioncy0(t,e){if(t=R2(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=hc.parse(t.permissions.toString()).toString():n=bc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?v0(t.startsOn,!1):"",t.expiresOn?v0(t.expiresOn,!1):"",I2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?v0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?v0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Ko(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newZo(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}functionuy0(t,e){if(t=R2(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=hc.parse(t.permissions.toString()).toString():n=bc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?v0(t.startsOn,!1):"",t.expiresOn?v0(t.expiresOn,!1):"",I2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?v0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?v0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Ko(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newZo(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}functionI2(t,e,r){lets=[`/blob/${t}/${e}`];returnr&&s.push(`/${r}`),s.join("")}functionR2(t){lete=t.version?t.version:HR;if(t.snapshotTime&&e<"2018-11-09")throwRangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void0&&t.snapshotTime)throwRangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void0&&t.versionId)throwRangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throwRangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throwRangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throwRangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throwRangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throwRangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throwRangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");returnt.version=e,t}varG3=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){lets=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=tM()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==jo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==jo||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnye.withSpan("BlobLeaseClient-acquireLease",r,asyncs=>Ie(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==jo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==jo||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnye.withSpan("BlobLeaseClient-changeLease",r,asyncs=>{letn=Ie(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));returnthis._leaseId=e,n})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==jo||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==jo||e.conditions?.tagConditions))thrownewRangeError("The IfMatch,
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};OM.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var v2=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
Moreinfo:${c.url}`);let h=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,M=!1;for(let g of o)if(g.remote||g.path.endsWith(u)&&g.content===p){a.push({title:l,message:A,file:g.path,startLine:h}),M=!0;break}M||P(`Buildx.convertWarningsToGitHubAnnotations:skippingwarningwithoutmatchingDockerfile${u}:${l}`)}return a}};var J2=F(require("fs"),1),o$=F(require("path"),1);var aN=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new tt,this.iidFilename=`build-iidfile-${q0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${q0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},n=Object.entries(s).filter(([h])=>!r.has(h)),i=q0.parseBoolOrDefault(s["fetch-by-commit"]),o=e?.ref||s.ref||ms.ref;o.startsWith("refs/")?o.startsWith("refs/pull/")&&q0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(o=o.replace(/\/merge$/g,"/head")):o=`refs/heads/${o}`;let a=`${D0.serverURL}/${ms.repo.owner}/${ms.repo.repo}.git`,c=e?.checksum||s.checksum,u=e?.subdir||s.subdir,p=e?.format;if(!p){if(p="fragment",n.length>0)p="query";else if(q0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(p="query")}catch{}}let l=ms.sha||o;o.startsWith("refs/pull/")&&o.endsWith("/head")&&(l=typeof ms.payload.pull_request?.head?.sha=="string"?ms.payload.pull_request.head.sha:o);let A=c||l;if(p==="query"){let h=[`ref=${i||c?o:A}`],M=i?A:c;M&&h.push(`checksum=${M}`),u&&u!=="."&&h.push(`subdir=${u}`);for(let[g,y]of n)h.push(`${g}=${y}`);return`${a}?${h.join("&")}`}return`${a}#${A}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return o$.default.join(E0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(J2.default.existsSync(e))return J2.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return o$.default.join(E0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!J2.default.existsSync(e))return;let r=J2.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,n]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!J2.default.existsSync(n))throw new Error(`secretfile${n}notfound`);return[s,n]}let i=E0.tmpName({tmpdir:E0.tmpDir()});return J2.default.writeFileSync(i,n),[s,i]}static getProvenanceInput(e){let r=xb(e);if(!r)return r;try{return R2e(e)?`builder-id=${D0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${D0.workflowRunURL(!0)}`;let r=O1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${D0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",o=O1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let a of o){let c=a.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());c[0]==="type"?s=c[1]:c[0]==="repository"?n=c[1]:c[0]==="ghtoken"&&(i=c[1])}return s==="gha"&&(n||(e=`${e},repository=${D0.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}stat
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(letnofs){if(n.length==1&&!n[0].startsWith("type="))returne=="local";for(let[i,o]ofn.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0}return!1}statichasAttestationType(e,r){lets=O1(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(letnofs)for(let[i,o]ofn.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0;return!1}staticresolveAttestationAttrs(e){letr=O1(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(letnofr)for(letiofn)try{leto=q0.parseBool(i);s.push(`disabled=${!o}`)}catch{s.push(i)}returns.join(",")}statichasGitAuthTokenSecret(e,r){for(letsofe){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}staticparseSecretKvp(e,r){lets=e.indexOf("="),n=e.substring(0,s),i=e.substring(s+1);if(n.length==0||i.length==0)thrownewError(`${e} is not a valid secret`);returnr&&SO(i),[n,i]}};vara$=F(require("fs"),1),Fqe=F(require("path"),1);varcN=classt{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||newtt,this.metadataFilename=`bake-metadata-${q0.generateRandomString()}.json`}getMetadataFilePath(){returnFqe.default.join(E0.tmpDir(),this.metadataFilename)}resolveMetadata(){lete=this.getMetadataFilePath();if(!a$.default.existsSync(e))return;letr=a$.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")returnJSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;letr=newArray;for(letsine)"buildx.build.ref"ine[s]&&r.push(e[s]["buildx.build.ref"]);returnr.length>0?r:void0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"ine)returne["buildx.build.warnings"]}asyncgetDefinition(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}:{});lets=["bake"],n,i=[],o=[...e.files||[],e.source];if(o){for(letcofo.map(u=>u?u.trim():""))if(c.length!=0){if(!q0.isValidRef(c)){i.push(c);continue}if(n)thrownewError("Only one remote bake definition can be defined");n=c}}n&&s.push(n);for(letcofi)s.push("--file",c);if(e.overrides)for(letcofe.overrides)s.push("--set",c);if(e.vars)for(letcofe.vars)s.push("--var",c);if(e.allow)for(letcofe.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);leta=awaitthis.buildx.getCommand([...s,"--print",...e.targets||[]]);returnawaitLe.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)thrownewError(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);returnt.parseDefinition(c.stdout.trim())})}staticparseDefinition(e){letr=JSON.parse(e);for(letsinr.target){letn=r.target[s];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(i=>t.parseAttestEntry(i))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(i=>t.parseCacheEntry(i))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(i=>t.parseCacheEntry(i))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(i=>t.parseExportEntry(i))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(i=>t.parseSecretEntry(i))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(i=>t.parseSSHEntry(i)))}returnr}staticparseAttestEntry(e){if(typeofe!="string")returne;letr={type:""},s=O1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letnofs){let[i,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(i){case"type":r.type=o;break;case"disabled":r.disabled=q0.parseBool(o);break;default:r[i]=o}}returnr}staticparseCacheEntry(e){if(typeofe!="string")returne;letr={type:""},s=O1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))returnr.type="registry",r.ref=s[0],r;for(letnofs){let[i,o]=n.toString().split(/(?<=^[^=]+?)=/)
`;var Ex=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new tt,this.sigstore=e?.sigstore||new pd}async download(e){let r=await t.getDownloadVersion(e.version);P(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);P(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);P(`Install.download vspec: ${n}`);let i=jg.clean(n)||"";if(!jg.valid(i))throw new Error(`Invalid Cosign version "${n}".`);let o=new G1({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:Vg.default.join(Ma.default.homedir(),".bin"),cacheFile:Ma.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return G(`Cosign binary found in ${a}`),a;let c=ere.format(r.downloadURL,n,this.filename());G(`Downloading ${c}`);let u=await vi(c,void 0,this.githubToken);P(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&jg.satisfies(n,">=3.0.1")&&await this.verifySignature(u,c);let p=await o.save(u,e.skipState);return G(`Cached to ${p}`),p}async build(e,r,s){let n=await this.vspec(e);P(`Install.build vspec: ${n}`);let i=new G1({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:Vg.default.join(Ma.default.homedir(),".bin"),cacheFile:Ma.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await i.find();if(o)return G(`Cosign binary found in ${o}`),o;let a=Vg.default.join(E0.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await Le.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(YLe)}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`build failed with: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),p=await i.save(u,s);return G(`Cached to ${p}`),p}async install(e,r){r=r||E0.tmpDir();let s=Vg.default.join(r,"cosign-bin");u4.default.existsSync(s)||u4.default.mkdirSync(s,{recursive:!0});let n=Ma.default.platform()=="win32"?"cosign.exe":"cosign",i=Vg.default.join(s,n);return u4.default.copyFileSync(e,i),G("Fixing perms"),u4.default.chmodSync(i,"0755"),La(s),G("Added Cosign to PATH"),G(`Binary path: ${i}`),i}async buildCommand(e,r){let s=await new tt({standalone:!0}).isAvailable(),n=await new tt({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&s)P("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&n)P("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(s)P("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(n)P("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new tt({standalone:i}).getCommand(o)}async verifySignature(e,r){let s=`${r}.sigstore.json`;G(`Downloading keyless verification bundle at ${s}`);let n=await vi(s,void 0,this.githubToken);P(`Install.verifySignature bundlePath: ${n}`);let i=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});G(`Cosign binary signature verified! ${i.tlogID?`${rh}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(Ma.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Ma.default.arch();break}}let r=Ma.default.platform()=="win32"?"windows":Ma.default.platform(),s=Ma.default.platform()=="win32"?".exe":"";return ere.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!q0.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return G(`Use ${u} version spec cache key for ${e}`),u}let[r,s]=e.split("#");s.length==0&&(s="master");let n;s.match(/^[0-9a-fA-F]{40}$/)?n=s:n=await hp.remoteSha(r,s,process.env.GIT_AU
`,bakeTarget:Zd("bake-target")||"docker-metadata-action",githubToken:Zd("github-token")}}async function e8e(t,e){switch(t){case"workflow":return await _Z0(e);case"git":return await LZ0();default:throw new Error(`Invalid context source: ${t}`)}}async function _Z0(t){let e=D0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await PZ0(e.sha,t),...e}}async function LZ0(){let t=await hp.context();return{commitDate:await hp.commitDate(t.sha),...t}}async function PZ0(t,e){let r=D0.context.payload;if(r.commits){let s=r.commits.find(n=>n.id===t)?.timestamp;if(s)return new Date(s)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let s=await e.github.octokit.rest.repos.getCommit({owner:D0.context.repo.owner,repo:D0.context.repo.repo,ref:t});if(s.data.commit.committer?.date)return new Date(s.data.commit.committer.date);throw new Error("Committer date not found")}catch(s){return _(`Failed to get commit date from GitHub API: ${s.message}`),new Date}}var ml=F(e$(),1),TYe=F(require("fs"),1),xYe=F(require("path"),1),AB=F(o8e(),1),mi=F(Qje(),1),dz=F(wYe(),1);function NYe(t){let e=[];if(t.length==1){let r=!1,s=O1(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let i=n.toString().split("=").map(o=>o.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return SYe(e)}e=[];for(let r of t){let s={name:"",enable:!0},n=O1(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let o=i.toString().split("=").map(a=>a.trim());if(o.length==1)s.name=o[0];else{let a=o[0].toLowerCase(),c=o[1];switch(a){case"name":{s.name=c;break}case"enable":{if(!["true","false"].includes(c))throw new Error(`Invalid enable attribute value: ${r}`);s.enable=/true/i.test(c);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(s.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(s)}return SYe(e)}function SYe(t){e2("Processing images input");for(let e of t)ve(`name=${e.name},enable=${e.enable}`);return t2(),t}var Une=(c=>(c.Schedule="schedule",c.Semver="semver",c.Pep440="pep440",c.Match="match",c.Edge="edge",c.Ref="ref",c.Raw="raw",c.Sha="sha",c))(Une||{}),FW=(s=>(s.Branch="branch",s.Tag="tag",s.PR="pr",s))(FW||{}),TW=(r=>(r.Short="short",r.Long="long",r))(TW||{}),kne=class{type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},q2t={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function vYe(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let s of t)e.push(I2t(s));let r=e.sort((s,n)=>Number(s.attrs.priority)<Number(n.attrs.priority)?1:Number(s.attrs.priority)>Number(n.attrs.priority)?-1:0);e2("Processing tags input");for(let s of r)ve(s.toString());return t2(),r}function I2t(t){let e=O1(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new kne;for(let s of e){let n=s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(n.length==1)r.attrs.value=n[0];else{let i=n[0].toLowerCase(),o=n[1];switch(i){case"type":{if(!Object.values(Une).includes(o))throw new Error(`Unknown tag type attribute: ${o}`);r.type=o;break}default:{r.attrs[i]=o;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value=""),Object.prototype.hasOwnProperty.call(r.attrs,"match")||(r.attrs.match="");break}case"match":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missi