varaIe=Object.create;varcz=Object.defineProperty;varcIe=Object.getOwnPropertyDescriptor;varuIe=Object.getOwnPropertyNames;varpIe=Object.getPrototypeOf,AIe=Object.prototype.hasOwnProperty;vari=(t,e)=>cz(t,"name",{value:e,configurable:!0});varm=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),lIe=(t,e)=>{for(varrine)cz(t,r,{get:e[r],enumerable:!0})},dIe=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letoofuIe(e))!AIe.call(t,o)&&o!==r&&cz(t,o,{get:()=>e[o],enumerable:!(n=cIe(e,o))||n.enumerable});returnt};varw=(t,e,r)=>(r=t!=null?aIe(pIe(t)):{},dIe(e||!t||!t.__esModule?cz(r,"default",{value:t,enumerable:!0}):r,t));varP9=m(pA=>{"use strict";varG40=require("net"),zIe=require("tls"),YD=require("http"),L9=require("https"),OIe=require("events"),H40=require("assert"),gIe=require("util");pA.httpOverHttp=EIe;pA.httpsOverHttp=CIe;pA.httpOverHttps=yIe;pA.httpsOverHttps=BIe;functionEIe(t){vare=newzi(t);returne.request=YD.request,e}i(EIe,"httpOverHttp");functionCIe(t){vare=newzi(t);returne.request=YD.request,e.createSocket=Q9,e.defaultPort=443,e}i(CIe,"httpsOverHttp");functionyIe(t){vare=newzi(t);returne.request=L9.request,e}i(yIe,"httpOverHttps");functionBIe(t){vare=newzi(t);returne.request=L9.request,e.createSocket=Q9,e.defaultPort=443,e}i(BIe,"httpsOverHttps");functionzi(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||YD.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,o,s,a){for(varc=_9(o,s,a),u=0,p=e.requests.length;u<p;++u){varA=e.requests[u];if(A.host===c.host&&A.port===c.port){e.requests.splice(u,1),A.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(zi,"TunnelingAgent");gIe.inherits(zi,OIe.EventEmitter);zi.prototype.addRequest=i(function(e,r,n,o){vars=this,a=JD({request:e},s.options,_9(r,n,o));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);functionu(){s.emit("free",c,a)}i(u,"onFree");functionp(A){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}i(p,"onCloseOrRemove")})},"addRequest");zi.prototype.createSocket=i(function(e,r){varn=this,o={};n.sockets.push(o);vars=JD({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+newBuffer(s.proxyAuth).toString("base64")),Na("making CONNECT request");vara=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",A),a.end();functionc(l){l.upgrade=!0}i(c,"onResponse");functionu(l,b,f){process.nextTick(function(){p(l,b,f)})}i(u,"onUpgrade");functionp(l,b,f){if(a.removeAllListeners(),b.removeAllListeners(),l.statusCode!==200){Na("tunneling socket could not be established, statusCode=%d",l.statusCode),b.destroy();varz=newError("tunneling socket could not be established, statusCode="+l.statusCode);z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}if(f.length>0){Na("got illegal response body from proxy"),b.destroy();varz=newError("got illegal response body from proxy");z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}returnNa("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=b,r(b)}i(p,"onConnect");functionA(l){a.removeAllListeners(),Na(`tunneling socket could not be established, cause=%s
`);b.push(g),s+=g.byteLength,z&&(s=null),o=t,n=i(async function*(){for(let y of b)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${u}`}else if(YG(t))o=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(nb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:UNe(t)}if((typeof o=="string"||nb.isBuffer(o))&&(s=Buffer.byteLength(o)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:A,done:l}=await u.next();if(l)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!KG(r)){let b=new Uint8Array(A);b.byteLength&&p.enqueue(b)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:o,length:s},a]}i(tH,"extractBody");function rwe(t,e=!1){return t instanceof ReadableStream&&(e5(!nb.isDisturbed(t),"The body has already been consumed."),e5(!t.locked,"The stream is locked.")),tH(t,e)}i(rwe,"safelyExtractBody");function nwe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(nwe,"cloneBody");function owe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(owe,"throwIfAborted");function swe(t){return{blob(){return CA(this,r=>{let n=jG(this);return n===null?n="":n&&(n=ZNe(n)),new jNe([r],{type:n})},t)},arrayBuffer(){return CA(this,r=>new Uint8Array(r).buffer,t)},text(){return CA(this,$G,t)},json(){return CA(this,awe,t)},formData(){return CA(this,r=>{let n=jG(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let o=ewe(r,n);if(o==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new JG;return s[yA]=o,s}case"application/x-www-form-urlencoded":{let o=new URLSearchParams(r.toString()),s=new JG;for(let[a,c]of o)s.append(a,c);return s}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){return CA(this,r=>new Uint8Array(r),t)}}}i(swe,"bodyMixinMethods");function iwe(t){Object.assign(t.prototype,swe(t))}i(iwe,"mixinBody");async function CA(t,e,r){if(JNe.brandCheck(t,r),rH(t))throw new TypeError("Body is unusable: Body has already been read");owe(t[yA]);let n=XNe(),o=i(a=>n.reject(a),"errorSteps"),s=i(a=>{try{n.resolve(e(a))}catch(c){o(c)}},"successSteps");return t[yA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await VNe(t[yA].body,s,o),n.promise)}i(CA,"consumeBody");function rH(t){let e=t[yA].body;return e!=null&&(e.stream.locked||nb.isDisturbed(e.stream))}i(rH,"bodyUnusable");function awe(t){return JSON.parse($G(t))}i(awe,"parseJSONFromBytes");function jG(t){let e=t[yA].headersList,r=YNe(e);return r==="failure"?null:r}i(jG,"bodyMimeType");nH.exports={extractBody:tH,safelyExtractBody:rwe,cloneBody:nwe,mixinBody:iwe,streamRegistry:eH,hasFinalizationRegistry:ZG,bodyUnusable:rH}});var zH=m((LB0,hH)=>{"use strict";var be=require("node:assert"),me=He(),{channels:oH}=lA(),r5=vI(),{RequestContentLengthMismatchError:ru,ResponseContentLengthMismatchError:sH,RequestAbortedError:dH,HeadersTimeoutError:cwe,HeadersOverflowError:uwe,SocketError:qA,InformationalError:DA,BodyTimeoutError:pwe,HTTPParserError:Awe,ResponseExceededMaxSizeError:lwe}=i0(),{kUrl:bH,kReset:er,kClient:Pz,kParser:W0,kBlocking:ib,kRunning:I1,kPending:MH,kSize:iH,kWriting:Sa,kQueue:no,kNoRef:ob,kKeepAliveDefaultTimeout:dwe,kHostHeader:bwe,kPendingIdx:Mwe,kRunningIdx:An,kError:wt,kPipelining:kz,kSocket:ou,kKeepAliveTimeoutValue:Gz,kMaxHeadersSize:n5,kKeepAliveMaxTimeout:fwe,kKeepAliveTimeoutThreshold:mwe,kHeadersTimeout:hwe,kBodyTimeout:zwe,kStrictContentLength:i5,kMaxRequests:aH,kCounter:Owe,kMaxResponseSize:gwe,kOnError:cH,kResume:Bi,kHTTPContext:fH}=k0(),Rr=eG(),uH=Buffer.alloc(0),Lz=Buffer[Symbol.species],Qz=me.addListener,Ewe=me.removeAllListeners,su=Symbol("kIdleSocketValidation"),nu=Symbol("kIdleSocketValidationTimeout"),p5=Symbol("kSocketUsed"),o5;async function Cwe(){let t=process.env.JEST_WORKER_ID?_I():vo
`}return oH.sendHeaders.hasSubscribers&&oH.sendHeaders.publish({request:e,headers:g,socket:f}),!u||b===0?AH(z,null,t,e,f,A,g,l):me.isBuffer(u)?AH(z,u,t,e,f,A,g,l):me.isBlobLike(u)?typeof u.stream=="function"?lH(z,u.stream(),t,e,f,A,g,l):wwe(z,u,t,e,f,A,g,l):me.isStream(u)?Nwe(z,u,t,e,f,A,g,l):me.isIterable(u)?lH(z,u,t,e,f,A,g,l):be(!1),!0}i(Rwe,"writeH1");function Nwe(t,e,r,n,o,s,a,c){be(s!==0||r[I1]===0,"stream body cannot be pipelined");let u=!1,p=new Hz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),A=i(function(z){if(!u)try{!p.write(z)&&this.pause&&this.pause()}catch(g){me.destroy(this,g)}},"onData"),l=i(function(){u||e.resume&&e.resume()},"onDrain"),b=i(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!u){let z=new dH;queueMicrotask(()=>f(z))}},"onClose"),f=i(function(z){if(!u){if(u=!0,be(o.destroyed||o[Sa]&&r[I1]<=1),o.off("drain",l).off("error",f),e.removeListener("data",A).removeListener("end",f).removeListener("close",b),!z)try{p.end()}catch(g){z=g}p.destroy(z),z&&(z.code!=="UND_ERR_INFO"||z.message!=="reset")?me.destroy(e,z):me.destroy(e)}},"onFinished");e.on("data",A).on("end",f).on("error",f).on("close",b),e.resume&&e.resume(),o.on("drain",l).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(b)}i(Nwe,"writeStream");function AH(t,e,r,n,o,s,a,c){try{e?me.isBuffer(e)&&(be(s===e.byteLength,"buffer body must have content length"),o.cork(),o.write(`${a}content-length: ${s}\r
`,"latin1"):(be(s===null,"no body must not have content length"),o.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Bi]()}catch(u){t(u)}}i(AH,"writeBuffer");async function wwe(t,e,r,n,o,s,a,c){be(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new ru;let u=Buffer.from(await e.arrayBuffer());o.cork(),o.write(`${a}content-length: ${s}\r
`,"latin1"),o.write(u),o.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(o[er]=!0),r[Bi]()}catch(u){t(u)}}i(wwe,"writeBlob");async function lH(t,e,r,n,o,s,a,c){be(s!==0||r[I1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let b=u;u=null,b()}}i(p,"onDrain");let A=i(()=>new Promise((b,f)=>{be(u===null),o[wt]?f(o[wt]):u=b}),"waitForDrain");o.on("close",p).on("drain",p);let l=new Hz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let b of e){if(o[wt])throw o[wt];l.write(b)||await A()}l.end()}catch(b){l.destroy(b)}finally{o.off("close",p).off("drain",p)}}i(lH,"writeIterable");var Hz=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:o,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=o,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Sa]=!0}write(e){let{socket:r,request:n,contentLength:o,client:s,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[wt])throw r[wt];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(o!==null&&a+p>o){if(s[i5])throw new ru;process.emitWarning(new ru)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[er]=!0),o===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"),r!==null&&o!==r){if(n[i5])throw new ru;process.emitWarning(new ru)}e[W0].timeout&&e[W0].timeoutType===IA&&e[W0].timeout.refresh&&e[W0].timeout.refresh(),n[Bi]()}}destroy(e){let{socket:r,client:n,abort:o}=this;r[Sa]=!1,e&&(be(n[I1]<=1,"pipeline should only contain this request"),o(e))}};hH.exports=Bwe});var DH=m((_B0,qH)=>{"use strict";var ln=require("node:assert"),{pipeline:Swe}=require("node:stream"),Je=He(),{RequestContentLengthMismatchError:A5,RequestAbortedError:OH,SocketError:ab,InformationalError:l5}=i0(),{kUrl:Xz,kReset:Yz,kClient:RA,kRunning:Jz,kPending:Fwe,kQueue:Fa,kPendingIdx:d5,kRunningIdx:oo,kError:io,kSocket:J1,kStrictContentLength:Wwe,kOnError:b5,kMaxConcurrentStreams:BH,kHTTP2Session:so,kResume:Wa,kSize:xwe,kHTTPContext:Twe}=k0(),qi=Symbol("open streams"),gH,EH=!1,Vz;try{Vz=require("node:http2")}catch{Vz={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:vwe,HTTP2_HEADER_METHOD:Lwe,HTTP2_HEADER_PATH:Qwe,HTTP2_HEADER_SCHEME:_we,HTTP2_HEADER_CONTENT_LENGTH:Pwe,HTTP2_HEADER_EXPECT:kwe,HTTP2_HEADER_STATUS:Uwe}}=Vz;function Gwe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let o of n)e.push(Buffer.from(r),Buffer.from(o));else e.push(Buffer.from(r),Buffer.from(n));return e}i(Gwe,"parseH2Headers");async function Hwe(t,e){t[J1]=e,EH||(EH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Vz.connect(t[Xz],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[BH]});r[qi]=0,r[RA]=t,r[J1]=e,Je.addListener(r,"error",Vwe),Je.addListener(r,"frameError",Ywe),Je.addListener(r,"end",Jwe),Je.addListener(r,"goaway",jwe),Je.addListener(r,"close",function(){let{[RA]:o}=this,{[J1]:s}=o,a=this[J1][io]||this[io]||new ab("closed",Je.getSocketInfo(s));if(o[so]=null,o.destroyed){ln(o[Fwe]===0);let c=o[Fa].splice(o[oo]);for(let u=0;u<c.length;u++){let p=c[u];Je.errorRequest(o,p,a)}}}),r.unref(),t[so]=r,e[so]=r,Je.addListener(e,"error",function(o){ln(o.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io]=o,this[RA][b5](o)}),Je.addListener(e,"end",function(){Je.destroy(this,new ab("other side closed",Je.getSocketInfo(this)))}),Je.addListener(e,"close",function(){let o=this[io]||new ab("closed",Je.getSocketInfo(this));t[J1]=null,this[so]!=null&&this[so].destroy(o),t[d5]=t[oo],ln(t[Jz]===0),t.emit("disconnect",t[Xz],[t],o),t[Wa]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...o){return Kwe(t,...o)},resume(){Xwe(t)},destroy(o,s){n?queueMicrotask(s):e.destroy(o).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}i(Hwe,"connectH2");function Xwe(t){let e=t[J1];e?.destroyed===!1&&(t[xwe]===0&&t[BH]===0?(e.unref(),t[so].unref()):(e.ref(),t[so].ref()))}i(Xwe,"resumeH2");function Vwe(t){ln(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[J1][io]=t,this[RA][b5](t)}i(Vwe,"onHttp2SessionError");function Ywe(t,e,r){if(r===0){let n=new l5(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[J1][io]=n,this[RA][b5](n)}}i(Ywe,"onHttp2FrameError");function Jwe(){let t=new ab("other side closed",Je.getSocketInfo(this[J1]));this.destroy(t),Je.destroy(this[J1],t)}i(Jwe,"onHttp2SessionEnd");function jwe(t){let e=this[io]||new ab(`HTTP/2: "GOAWAY" frame received with code ${t}`,Je.getSocketInfo(this)),r=this[RA];if(r[J1]=null,r[Twe]=null,this[so]!=null&&(this[so].destroy(e),this[so]=null),Je.destroy(this[J1],e),r[oo]<r[Fa].length){let n=r[Fa][r[oo]];r[Fa][r[oo]++]=null,Je.errorRequest(r,n,e),r[d5]=r[oo]}ln(r[Jz]===0),r.emit("disconnect",r[Xz],[r],e),r[Wa]()}i(jwe,"onHTTP2GoAway");function $we(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i($we,"shouldSendContentLength");function Kwe(t,e){let r=t[so],{method:n,path:o,host:s,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:A}=e;if(a)return Je.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let I=0;I<p.length;I+=2){let W=p[I+0],x=p[I+1];if(Array.isArray(x))for(let Q=0;Q<x.length;Q++)l[W]?l[W]+=`,${x[Q]}`:l[W]=x[Q];else l[W]=x}let b,{hostname:f,port:z}=t[Xz];l[vwe]=s||`${f}
globstar while`,t,A,e,l,b),this.matchOne(t.slice(A),e.slice(l),r))return this.debug("globstar found match!",A,a,b),!0;if(b==="."||b===".."||!n.dot&&b.charAt(0)==="."){this.debug("dot detected!",t,A,e,l);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
`;if(n.username||n.password){let b=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(b).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let b of Object.keys(s))c+=`${b}: ${s[b]}\r
`)+4,e.outputData[0].data=e._header+n.substring(o),Il("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Il("Creating `tls.Socket`: %o",this.connectOpts),s=RHe.connect(this.connectOpts)):(Il("Creating `net.Socket`: %o",this.connectOpts),s=IHe.connect(this.connectOpts)),await(0,wHe.once)(s,"connect"),s}};y3.protocols=["http","https"];Dn.HttpProxyAgent=y3;function FHe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(FHe,"omit")});var ore=m(L3=>{"use strict";Object.defineProperty(L3,"__esModule",{value:!0});L3.state=void 0;L3.state={instrumenterImplementation:void 0}});var gre=m(U3=>{"use strict";Object.defineProperty(U3,"__esModule",{value:!0});U3.state=void 0;U3.state={operationRequestMap:new WeakMap}});var Zoe=m(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var Zje=require("os"),e$e=require("util");function t$e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(t$e,"_interopDefaultLegacy");var r$e=t$e(e$e);function n$e(t,...e){process.stderr.write(`${r$e.default.format(t,...e)}${Zje.EOL}`)}i(n$e,"log");var Uoe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Hoe,eT=[],tT=[],cC=[];Uoe&&rT(Uoe);var Xoe=Object.assign(t=>Voe(t),{enable:rT,enabled:nT,disable:o$e,log:n$e});function rT(t){Hoe=t,eT=[],tT=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?tT.push(new RegExp(`^${n.substr(1)}$`)):eT.push(new RegExp(`^${n}$`));for(let n of cC)n.enabled=nT(n.namespace)}i(rT,"enable");function nT(t){if(t.endsWith("*"))return!0;for(let e of tT)if(e.test(t))return!1;for(let e of eT)if(e.test(t))return!0;return!1}i(nT,"enabled");function o$e(){let t=Hoe||"";return rT(""),t}i(o$e,"disable");function Voe(t){let e=Object.assign(r,{enabled:nT(t),destroy:s$e,log:Xoe.log,namespace:t,extend:i$e});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),cC.push(e),e}i(Voe,"createDebugger");function s$e(){let t=cC.indexOf(this);return t>=0?(cC.splice(t,1),!0):!1}i(s$e,"destroy");function i$e(t){let e=Voe(`${this.namespace}:${t}`);return e.log=this.log,e}i(i$e,"extend");var zf=Xoe,Yoe=new Set,iC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,uC,pC=zf("azure");pC.log=(...t)=>{zf.log(...t)};var oT=["verbose","info","warning","error"];iC&&(Koe(iC)?Joe(iC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${iC}'; logging is not enabled. Acceptable values: ${oT.join(", ")}.`));function Joe(t){if(t&&!Koe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${oT.join(",")}`);uC=t;let e=[];for(let r of Yoe)$oe(r)&&e.push(r.namespace);zf.enable(e.join(","))}i(Joe,"setLogLevel");function a$e(){return uC}i(a$e,"getLogLevel");var Goe={verbose:400,info:300,warning:200,error:100};function c$e(t){let e=pC.extend(t);return joe(pC,e),{error:aC(e,"error"),warning:aC(e,"warning"),info:aC(e,"info"),verbose:aC(e,"verbose")}}i(c$e,"createClientLogger");function joe(t,e){e.log=(...r)=>{t.log(...r)}}i(joe,"patchLogMethod");function aC(t,e){let r=Object.assign(t.extend(e),{level:e});if(joe(t,r),$oe(r)){let n=zf.disable();zf.enable(n+","+r.namespace)}return Yoe.add(r),r}i(aC,"createLogger");function $oe(t){return!!(uC&&Goe[t.level]<=Goe[uC])}i($oe,"shouldEnable");function Koe(t){return oT.includes(t)}i(Koe,"isAzureLogLevel");Xl.AzureLogger=pC;Xl.createClientLogger=c$e;Xl.getLogLevel=a$e;Xl.setLogLevel=Joe});var aT=m(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var Vl=new WeakMap,AC=new WeakMap,Of=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Vl.set(this,[]),AC.set(this,!1)}get aborted(){if(!AC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return AC.get(this)}static get none(){return new t}addEventListener(e,r){if(!Vl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Vl.get(this).push(r)}removeEventListener(e,r){if(!Vl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Vl.get(this),o=n.indexOf(r);o>-
Polling status: ${use.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let l=a(p,r);if(l!==void 0)return{response:await e(l).catch(ase({state:r,stateProxy:n,isOperationError:c})),status:A}}return{response:p,status:A}}i(L$e,"pollOperationHelper");async function dse(t){let{poll:e,state:r,stateProxy:n,options:o,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:p,getPollingInterval:A,processResult:l,getError:b,updateState:f,setDelay:z,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:B,status:q}=await L$e({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:u,options:o});if(Ase({status:q,response:B,state:r,stateProxy:n,isDone:g,processResult:l,getError:b,setErrorAsResult:y}),!use.includes(q)){let I=A?.(B);I&&z(I);let W=c?.(B,r);if(W!==void 0){let x=E!==W;r.config.operationLocation=W,p?.(W,x)}else p?.(E,!1)}f?.(r,B)}}i(dse,"pollOperation");function bse(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(bse,"getOperationLocationPollingUrl");function Mse(t){return t.headers.location}i(Mse,"getLocationHeader");function fse(t){return t.headers["operation-location"]}i(fse,"getOperationLocationHeader");function mse(t){return t.headers["azure-asyncoperation"]}i(mse,"getAzureAsyncOperationHeader");function Q$e(t){var e;let{location:r,requestMethod:n,requestPath:o,resourceLocationConfig:s}=t;switch(n){case"PUT":return o;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:o;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return o;default:return r}}i(a,"getDefault")}i(Q$e,"findResourceLocation");function hse(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:o}=t,s=fse(e),a=mse(e),c=bse({operationLocation:s,azureAsyncOperation:a}),u=Mse(e),p=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Q$e({requestMethod:p,location:u,requestPath:n,resourceLocationConfig:o})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:p==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(hse,"inferLroMode");function zse(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 hT(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 rp.verbose(`LRO:unrecognizedoperationstatus:${e}`),e}}i(zse,"transformStatus");function _$e(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return zse({status:r,statusCode:t.statusCode})}i(_$e,"getStatus");function P$e(t){var e,r;let{properties:n,provisioningState:o}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:o;return zse({status:s,statusCode:t.statusCode})}i(P$e,"getProvisioningState");function hT(t){return t===202?"running":t<300?"succeeded":"failed"}i(hT,"toOperationStatus");function Ose({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?k$e(new Date(e)):r*1e3}}i(Ose,"parseRetryAfter");function gse(t){let e=t.flatResponse.error;if(!e){rp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){rp.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(gse,"getErrorFromResponse");function k$e(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(k$e,"calculatePollingIntervalFromDate");function Ese(t){let{response:e,state:r,operationLocation:n}=t;function o(){var a;switch
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(Ro0,"logUnexpecedPropertyAccessOnce");functionNo0(){Object.keys(o4).forEach(function(t){deleteo4[t]})}i(No0,"resetLoggedProperties")});vari4=m(_s=>{"use strict";_s.__esModule=!0;_s.HandlebarsEnvironment=rQ;functionxpe(t){returnt&&t.__esModule?t:{default:t}}i(xpe,"_interopRequireDefault");varhp=Yt(),wo0=rn(),eQ=xpe(wo0),So0=jL(),Fo0=wpe(),Wo0=KL(),s4=xpe(Wo0),xo0=ZL(),To0="4.7.9";_s.VERSION=To0;varvo0=8;_s.COMPILER_REVISION=vo0;varLo0=7;_s.LAST_COMPATIBLE_COMPILER_REVISION=Lo0;varQo0={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};_s.REVISION_CHANGES=Qo0;vartQ="[object Object]";functionrQ(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},So0.registerDefaultHelpers(this),Fo0.registerDefaultDecorators(this)}i(rQ,"HandlebarsEnvironment");rQ.prototype={constructor:rQ,logger:s4.default,log:s4.default.log,registerHelper:i(function(e,r){if(hp.toString.call(e)===tQ){if(r)throwneweQ.default("Arg not supported with multiple helpers");hp.extend(this.helpers,e)}elsethis.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){deletethis.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(hp.toString.call(e)===tQ)hp.extend(this.partials,e);else{if(typeofr>"u")throwneweQ.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){deletethis.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(hp.toString.call(e)===tQ){if(r)throwneweQ.default("Arg not supported with multiple decorators");hp.extend(this.decorators,e)}elsethis.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){deletethis.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){xo0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var_o0=s4.default.log;_s.log=_o0;_s.createFrame=hp.createFrame;_s.logger=s4.default});varvpe=m((a4,Tpe)=>{"use strict";a4.__esModule=!0;functionnQ(t){this.string=t}i(nQ,"SafeString");nQ.prototype.toString=nQ.prototype.toHTML=function(){return""+this.string};a4.default=nQ;Tpe.exports=a4.default});varLpe=m(oQ=>{"use strict";oQ.__esModule=!0;oQ.wrapHelper=Po0;functionPo0(t,e){if(typeoft!="function")returnt;varr=i(function(){varo=arguments[arguments.length-1];returnarguments[arguments.length-1]=e(o),t.apply(this,arguments)},"wrapper");returnr}i(Po0,"wrapHelper")});varGpe=m(Cc=>{"use strict";Cc.__esModule=!0;Cc.checkRevision=Vo0;Cc.template=Yo0;Cc.wrapProgram=c4;Cc.resolvePartial=Jo0;Cc.invokePartial=jo0;Cc.noop=kpe;functionko0(t){returnt&&t.__esModule?t:{default:t}}i(ko0,"_interopRequireDefault");functionUo0(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}i(Uo0,"_interopRequireWildcard");varGo0=Yt(),C2=Uo0(Go0),Ho0=rn(),ia=ko0(Ho0),aa=i4(),Qpe=jL(),Xo0=Lpe(),_pe=ZL();functionVo0(t){vare=t&&t[0]||1,r=aa.COMPILER_REVISION;if(!(e>=aa.LAST_COMPATIBLE_COMPILER_REVISION&&e<=aa.COMPILER_REVISION))if(e<aa.LAST_COMPATIBLE_COMPILER_REVISION){varn=aa.REVISION_CHANGES[r],o=aa.REVISION_CHANGES[e];thrownewia.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+o+").")}elsethrownewia.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(Vo0,"checkRevision");functionYo0(t,e){if(!e)thrownewia.default("No environment passed to template");if(!t||!t.main)thrownewia.default("Unknown template object: "+typeoft);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);varr=t.compiler&&t.compiler[0]===7;functionn(a,c,u){u.hash&&(c=C2.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.res
Expecting `+pe.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Ge="Parse error on line "+(l+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Ge,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:y,expected:pe})}}if(Q[0]instanceofArray&&Q.length>1)thrownewError("Parse Error: multiple actions possible at state: "+x+", token: "+I);switch(Q[0]){case1:a.push(I),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(Q[1]),I=null,W?(I=W,W=null):(b=this.lexer.yyleng,A=this.lexer.yytext,l=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case2:if(ge=this.productions_[Q[1]][1],Qe.$=c[c.length-ge],Qe._$={first_line:u[u.length-(ge||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ge||1)].first_column,last_column:u[u.length-1].last_column},E&&(Qe._$.range=[u[u.length-(ge||1)].range[0],u[u.length-1].range[1]]),qe=this.performAction.call(Qe,A,b,l,this.yy,Q[1],c,u),typeofqe<"u")returnqe;ge&&(a=a.slice(0,-1*ge*2),c=c.slice(0,-1*ge),u=u.slice(0,-1*ge)),a.push(this.productions_[Q[1]][0]),c.push(Qe.$),u.push(Qe._$),Ue=p[a[a.length-2]][a[a.length-1]],a.push(Ue);break;case3:return!0}}return!0},"parse")},e=(function(){varn={EOF:1,parseError:i(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);elsethrownewError(s)},"parseError"),setInput:i(function(s){returnthis._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){vars=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;vara=s.match(/(?:\r\n?|\n).*/g);returna?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:i(function(s){vara=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;varu=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);varp=this.yylloc.range;returnthis.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this},"unput"),more:i(function(){returnthis._more=!0,this},"more"),less:i(function(s){this.unput(this.match.slice(s))},"less"),pastInput:i(function(){vars=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){vars=this.match;returns.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){vars=this.pastInput(),a=newArray(s.length+1).join("-");returns+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:i(function(){if(this.done)returnthis.EOF;this._input||(this.done=!0);vars,a,c,u,p,A;this._more||(this.yytext="",this.match="");for(varl=this._currentRules(),b=0;b<l.length&&(c=this._input.match(this.rules[l[b]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=b,!this.options.flex)));b++);returna?(A=a[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,l[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){vars=this.next();returntypeofs<"u"?s:this.lex()},"lex"),begin:i(function(s){this.conditionStack.push(s)},"begin"),popState:i(function(){returnthis.conditionStack.pop()},"popState"),_currentRules:i(function(){returnthis.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){returnthis.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(s){this.begin(s)},"begin")};returnn.options={},n.performAction=i(function(s,a,c,u){functionp(l,b){returna.yytext=a.yytext.substring(l,a.yyleng-b+l)}i(p,"strip");varA=u;switch(c){case0:if(a.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(p(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return15;break;case1:return15;case2:returnthis.popState(),15;break;case3:returnthis.begin("raw"),15;break;case4:returnthis.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(p(5,9),"END_RAW_BLOCK");case5:return15;case6:returnthis.popState(),14;break;case7:return65;case8:return68;case9:return19;case10:returnthis.popState(),this.begin("raw"),23;break;case11:return55;case12:return60;case13:return29;case14:return47;case15:returnthis.popState(),44;break;case16:returnthis.popState(),44;break;case17:return34;case18:return39;case19:return51;case20:return48;case21:this.unput(a.yytext),this.popState(),this.begin("com");break;case22:returnthis.popState(),14;break;case23:return48;case24:return73;case25:return72;case26:return72;case27:return87;case28:break;case29:returnthis.popState(),54;break;case30:returnthis.popState(),33;break;case31:returna.yytext=p(1,2).replace(/\\"/g,'"'),80;break;case32:returna.yytext=p(1,2).replace(/\\'/g,"'"),80;break;case33:return85;case34:return82;case35:return82;case36:return83;case37:return84;case38:return81;case39:return75;case40:return77;case41:return72;case42:returna.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case43:return"INVALID";case44:return5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;functionr(){this.yy={}}returni(r,"Parser"),r.prototype=t,t.Parser=r,newr})();d4.default=cs0;Zpe.exports=d4.default});varm4=m((f4,nAe)=>{"use strict";f4.__esModule=!0;functionus0(t){returnt&&t.__esModule?t:{default:t}}i(us0,"_interopRequireDefault");varps0=rn(),pQ=us0(ps0);functionb4(){this.parents=[]}i(b4,"Visitor");b4.prototype={constructor:b4,mutating:!1,acceptKey:i(function(e,r){varn=this.accept(e[r]);if(this.mutating){if(n&&!b4.prototype[n.type])thrownewpQ.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.a
`])}),e},"merge"),each:i(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:i(function(){var e=this.currentLocation||{start:{}};return new Ep(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:i(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Ep?e:(e=SQ(e,this,r),new Ep(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:i(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:i(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(s){var a=SQ(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var o=this.generateList(n);return o.prepend("{"),o.add("}"),o},"objectLiteral"),generateList:i(function(e){for(var r=this.empty(),n=0,o=e.length;n<o;n++)n&&r.add(","),r.add(SQ(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};B4.default=LAe;QAe.exports=B4.default});var HAe=m((q4,GAe)=>{"use strict";q4.__esModule=!0;function UAe(t){return t&&t.__esModule?t:{default:t}}i(UAe,"_interopRequireDefault");var PAe=i4(),ai0=rn(),WQ=UAe(ai0),ci0=Yt(),ui0=_Ae(),kAe=UAe(ui0);function R2(t){this.value=t}i(R2,"Literal");function N2(){}i(N2,"JavaScriptCompiler");N2.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=PAe.COMPILER_REVISION,r=PAe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return ci0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,o){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=s.length;u<p;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new WQ.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`)}i(DA0,"fromDER")});var_B=m(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.SHA2_HASH_ALGOS=vc.RSA_SIGNATURE_ALGOS=vc.ECDSA_SIGNATURE_ALGOS=void0;vc.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};vc.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};vc.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});varq_=m(PB=>{"use strict";Object.defineProperty(PB,"__esModule",{value:!0});PB.RFC3161TimestampVerificationError=void0;varB_=classextendsError{static{i(this,"RFC3161TimestampVerificationError")}};PB.RFC3161TimestampVerificationError=B_});varyde=m(Ys=>{"use strict";varIA0=Ys&&Ys.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);varo=Object.getOwnPropertyDescriptor(e,r);(!o||("get"ino?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){returne[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),RA0=Ys&&Ys.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NA0=Ys&&Ys.__importStar||(function(){vart=i(function(e){returnt=Object.getOwnPropertyNames||function(r){varn=[];for(varoinr)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);returnn},t(e)},"ownKeys");returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(varn=t(e),o=0;o<n.length;o++)n[o]!=="default"&&IA0(r,e,n[o]);returnRA0(r,e),r}})();Object.defineProperty(Ys,"__esModule",{value:!0});Ys.TSTInfo=void0;varCde=NA0(rd()),wA0=_B(),SA0=q_(),D_=class{static{i(this,"TSTInfo")}root;constructor(e){this.root=e}getversion(){returnthis.root.subs[0].toInteger()}getgenTime(){returnthis.root.subs[4].toDate()}getmessageImprintHashAlgorithm(){lete=this.messageImprintObj.subs[0].subs[0].toOID();returnwA0.SHA2_HASH_ALGOS[e]}getmessageImprintHashedMessage(){returnthis.messageImprintObj.subs[1].value}getraw(){returnthis.root.toDER()}verify(e){letr=Cde.digest(this.messageImprintHashAlgorithm,e);if(!Cde.bufferEqual(r,this.messageImprintHashedMessage))thrownewSA0.RFC3161TimestampVerificationError("message imprint does not match artifact")}getmessageImprintObj(){returnthis.root.subs[2]}};Ys.TSTInfo=D_});varqde=m(Js=>{"use strict";varFA0=Js&&Js.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);varo=Object.getOwnPropertyDescriptor(e,r);(!o||("get"ino?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){returne[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),WA0=Js&&Js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xA0=Js&&Js.__importStar||(function(){vart=i(function(e){returnt=Object.getOwnPropertyNames||function(r){varn=[];for(varoinr)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);returnn},t(e)},"ownKeys");returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(varn=t(e),o=0;o<n.length;o++)n[o]!=="default"&&FA0(r,e,n[o]);returnWA0(r,e),r}})();Object.defineProperty(Js,"__esModule",{value:!0});Js.RFC3161Timestamp=void0;varTA0=vB(),I_=xA0(rd()),Bde=_B(),Lm=q_(),vA0=yde(),LA0="1.2.840.113549.1.7.2",QA0="1.2.840.113549.1.9.16.1.4",_A0="1.2.840.113549.1.9.4",R_=classt{static{i(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}staticparse(e){letr=TA0.ASN1Obj.parseBuffer(e);returnnewt(r)}getstatus(){returnthis.pkiStatusInfoObj.subs[0].toInteger()}getcontentType(){returnthis.contentTypeObj.toOID()}geteContentType(){returnthis.eContentTypeObj.toOID()}getsigningTime(){returnthis.tstInfo.genTime}getsignerIssuer(){returnthis.signerSidObj.subs[0].value}getsignerSerialNumber(){returnthis.signerSidObj.subs[1].value}getsignerDigestAlgorith
`);if(r.length<3)throw new Um.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],o=BigInt(r[1]),s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,o,s,a)}};Gm.LogCheckpoint=aq});var cbe=m(uP=>{"use strict";Object.defineProperty(uP,"__esModule",{value:!0});uP.verifyMerkleInclusion=A20;var cP=Ro(),iP=It(),u20=Buffer.from([0]),p20=Buffer.from([1]);function A20(t,e){let r=t.inclusionProof,n=BigInt(r.logIndex),o=BigInt(e.logSize);if(n<0n||n>=o)throw new iP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${n}`});let{inner:s,border:a}=l20(n,o);if(r.hashes.length!==s+a)throw new iP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),u=r.hashes.slice(s),p=h20(t.canonicalizedBody),A=b20(d20(p,c,n),u);if(!cP.crypto.bufferEqual(A,e.logHash))throw new iP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}i(A20,"verifyMerkleInclusion");function l20(t,e){let r=M20(t,e),n=f20(t>>BigInt(r));return{inner:r,border:n}}i(l20,"decompInclProof");function d20(t,e,r){return e.reduce((n,o,s)=>r>>BigInt(s)&BigInt(1)?aP(o,n):aP(n,o),t)}i(d20,"chainInner");function b20(t,e){return e.reduce((r,n)=>aP(n,r),t)}i(b20,"chainBorderRight");function M20(t,e){return m20(t^e-BigInt(1))}i(M20,"innerProofSize");function f20(t){return t.toString(2).split("1").length-1}i(f20,"onesCount");function m20(t){return t===0n?0:t.toString(2).length}i(m20,"bitLength");function aP(t,e){return cP.crypto.digest("sha256",p20,t,e)}i(aP,"hashChildren");function h20(t){return cP.crypto.digest("sha256",u20,t)}i(h20,"hashLeaf")});var pbe=m(pP=>{"use strict";Object.defineProperty(pP,"__esModule",{value:!0});pP.verifyTLogSET=g20;var ube=Ro(),z20=It(),O20=sd();function g20(t,e){if(!(0,O20.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(o=>{let s=E20(t),a=Buffer.from(ube.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return ube.crypto.verify(a,o.publicKey,c)}))throw new z20.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}i(g20,"verifyTLogSET");function E20(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:o}=t;return{body:o.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}i(E20,"toVerificationPayload")});var lbe=m(cq=>{"use strict";Object.defineProperty(cq,"__esModule",{value:!0});cq.verifyTLogBody=D20;cq.verifyTLogInclusion=I20;var Abe=rbe(),dP=It(),AP=nbe(),lP=obe(),C20=sbe(),y20=abe(),B20=cbe(),q20=pbe();function D20(t,e){let{kind:r,version:n}=t.kindVersion,o=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==o.kind||n!==o.apiVersion)throw new dP.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${n},received:${o.kind}/${o.apiVersion}`});switch(r){case"dsse":if(n==AP.DSSE_API_VERSION_V1)return(0,AP.verifyDSSETLogBody)(o,e);{let s=Abe.Entry.fromJSON(o);return(0,AP.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,C20.verifyIntotoTLogBody)(o,e);case"hashedrekord":if(n==lP.HASHEDREKORD_API_VERSION_V1)return(0,lP.verifyHashedRekordTLogBody)(o,e);{let s=Abe.Entry.fromJSON(o);return(0,lP.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new dP.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}i(D20,"verifyTLogBody");function I20(t,e){let r=!1;if(R20(t)&&((0,q20.verifyTLogSET)(t,e),r=!0),N20(t)){let n=(0,y20.verifyCheckpoint)(t,e);(0,B20.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new dP.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}i(I20,"verifyTLogInclusion");function R20(t){return t.inclusionPromise!==void 0}i(R20,"isTLogEntryWithInclusionPromise");function N20(t){return t.inclusionProof!==void 0}i(N20,"isTLogEntryWithInclusionProof")});var mbe=m(uq=>{"use strict";Object.defineProperty(uq,"__esModule",{value:!0});uq.Verifier=void 0;var w20=require("util"),
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}vars=!0,a=!1,c;return{s:i(function(){r=(0,pC0.default)(t)},"s"),n:i(function(){varp=r.next();returns=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throwc}},"f")}}i(Ih,"_createForOfIteratorHelper");functionhC0(t,e){varr;if(t){if(typeoft=="string")returnDCe(t,e);varn=(0,eo.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,bC0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))returnDCe(t,e)}}i(hC0,"_unsupportedIterableToArray");functionDCe(t,e){(e==null||e>t.length)&&(e=t.length);for(varr=0,n=newArray(e);r<e;r++)n[r]=t[r];returnn}i(DCe,"_arrayLikeToArray");var_0="xregexp",Zp={astral:!1,namespacing:!1},b1={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},ui={},qh={},wd={},E7=[],Sd="default",ICe="class",zC0={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]/},OC0=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,gC0=b1.exec.call(/()??/,"")[1]===void0,EC0=(0,Kp.default)(/x/)!==void0,CC0={},FCe=CC0.toString;functiony7(t){vare=!0;try{if(newRegExp("",t),t==="y"){varr=(function(){return"gy"})(),n=".a".replace(newRegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}returne}i(y7,"hasNativeFlag");varWCe=y7("u"),B7=y7("y"),xCe={g:!0,i:!0,m:!0,u:WCe,y:B7};functionTCe(t,e,r,n,o){vars;if(t[_0]={captureNames:e},o)returnt;if(t.__proto__)t.__proto__=Y.prototype;elsefor(varainY.prototype)t[a]=Y.prototype[a];returnt[_0].source=r,t[_0].flags=n&&(0,mC0.default)(s=n.split("")).call(s).join(""),t}i(TCe,"augment");functionDh(t){returnb1.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}i(Dh,"clipDuplicates");functiontA(t,e){varr;if(!Y.isRegExp(t))thrownewTypeError("Type RegExp expected");varn=t[_0]||{},o=yC0(t),s="",a="",c=null,u=null;returne=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(o=b1.replace.call(o,newRegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(s+="g"),e.addY&&(s+="y"),s&&(o=Dh(o+s)),e.isInternalOnly||(n.source!==void0&&(c=n.source),(0,Kp.default)(n)!=null&&(u=s?Dh((0,Kp.default)(n)+s):(0,Kp.default)(n))),t=TCe(newRegExp(e.source||t.source,o),BC0(t)?(0,eo.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}i(tA,"copyRegex");functionvCe(t){return(0,SCe.default)(t,16)}i(vCe,"dec");functionLCe(t,e,r){returnt.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||b1.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||qC0(t.input,t.index+t[0].length,r)?"":"(?:)"}i(LCe,"getContextualTokenSeparator");functionyC0(t){returnEC0?(0,Kp.default)(t):b1.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}i(yC0,"getNativeFlags");functionBC0(t){return!!(t[_0]&&t[_0].captureNames)}i(BC0,"hasNamedCapture");functionQCe(t){return(0,SCe.default)(t,10).toString(16)}i(QCe,"hex");functionqC0(t,e,r){varn="\\(\\?#[^)]*\\)",o="#[^#\\n]*",s="[?*+]|{\\d+(?:,\\d*)?}";returnb1.test.call((0,eA.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,eo.default)(t).call(t,e))}i(qC0,"isQuantifierNext");functionq7(t,e){returnFCe.call(t)==="[object ".concat(e,"]")}i(q7,"isType");function_Ce(t){for(;t.length<4;)t="0".concat(t);returnt}i(_Ce,"pad4");functionDC0(t,e){if(Dh(e)!==e)thrownewSyntaxError("Invalid duplicate regex flag ".concat(e));t=b1.replace.call(t,/^\(\?([\w$]+)\)/,function(s,a){if(b1.test.call(/[gy]/,a))thrownewSyntaxError("Cannot use flag g or y in mode modifier ".concat(s));returne=Dh(e+a),""});var
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,uy0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(my0,"_createForOfIteratorHelper");function hy0(t,e){var r;if(t){if(typeof t=="string")return Dye(t,e);var n=(0,by0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,dy0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dye(t,e)}}i(hy0,"_unsupportedIterableToArray");function Dye(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(Dye,"_arrayLikeToArray");var zy0=i(function(e){var r={},n=e._dec,o=e._hex,s=e._pad4;function a(b){return b.replace(/[- _]+/g,"").toLowerCase()}i(a,"normalize");function c(b){var f=/^\\[xu](.+)/.exec(b);return f?n(f[1]):b.charCodeAt(b[0]==="\\"?1:0)}i(c,"charCode");function u(b){var f="",z=-1;return(0,fy0.default)(e).call(e,b,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(g){var y=c(g[1]);y>z+1&&(f+="\\u".concat(s(o(z+1))),y>z+2&&(f+="-\\u".concat(s(o(y-1))))),z=c(g[2]||g[1])}),z<65535&&(f+="\\u".concat(s(o(z+1))),z<65534&&(f+="-\\uFFFF")),f}i(u,"invertBmp");function p(b){var f="b!";return r[b][f]||(r[b][f]=u(r[b].bmp))}i(p,"cacheInvertedBmp");function A(b,f){var z=r[b],g="";if(z.bmp&&!z.isBmpLast){var y;g=(0,N7.default)(y="[".concat(z.bmp,"]")).call(y,z.astral?"|":"")}if(z.astral&&(g+=z.astral),z.isBmpLast&&z.bmp){var E;g+=(0,N7.default)(E="".concat(z.astral?"|":"","[")).call(E,z.bmp,"]")}return f?"(?:(?!".concat(g,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(g,")")}i(A,"buildAstral");function l(b,f){var z=f?"a!":"a=";return r[b][z]||(r[b][z]=A(b,f))}i(l,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(b,f,z){var g="Invalid double negation ",y="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",q="Astral mode does not support Unicode tokens within character classes",I=b[1]==="P"||!!b[2],W=(0,My0.default)(z).call(z,"A"),x=a(b[4]||b[3]),Q=r[x];if(b[1]==="P"&&b[2])throw new SyntaxError(g+b[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(y+b[0]);if(Q.inverseOf){if(x=a(Q.inverseOf),!r.hasOwnProperty(x)){var ue;throw new ReferenceError((0,N7.default)(ue="".concat(E+b[0]," -> ")).call(ue,Q.inverseOf))}Q=r[x],I=!I}if(!(Q.bmp||W))throw new SyntaxError(B+b[0]);if(W){if(f==="class")throw new SyntaxError(q);return l(x,I)}return f==="class"?I?p(x):Q.bmp:"".concat((I?"[^":"[")+Q.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(b){var f="Unicode token requires name",z="Unicode token has no character data ",g=my0(b),y;try{for(g.s();!(y=g.n()).done;){var E=y.value;if(!E.name)throw new Error(f);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(z+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){g.e(B)}finally{g.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(b){var f=a(b);return r[f]}},"_default");Wh.default=zy0;Iye.exports=Wh.default});var wye=m((vM1,Nye)=>{Nye.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",
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(L$,"getBooleanInput");functionxN(t,e){if(process.env.GITHUB_OUTPUT||"")returnGd("OUTPUT",Az(t,e));process.stdout.write(WN.EOL),_o("set-output",{name:t},Qo(e))}i(xN,"setOutput");functionQ$(t){process.exitCode=FN.Failure,ul(t)}i(Q$,"setFailed");functionTi(){returnprocess.env.RUNNER_DEBUG==="1"}i(Ti,"isDebug");functionN(t){_o("debug",{},t)}i(N,"debug");functionul(t,e={}){_o("error",GD(e),tinstanceofError?t.toString():t)}i(ul,"error");functionKe(t,e={}){_o("warning",GD(e),tinstanceofError?t.toString():t)}i(Ke,"warning");functionS(t){process.stdout.write(t+WN.EOL)}i(S,"info");functionDu(t){XD("group",t)}i(Du,"startGroup");functionIu(){XD("endgroup")}i(Iu,"endGroup");functionat(t,e){returnXQe(this,void0,void0,function*(){Du(t);letr;try{r=yielde()}finally{Iu()}returnr})}i(at,"group");functionlg(t,e){if(process.env.GITHUB_STATE||"")returnGd("STATE",Az(t,e));_o("save-state",{name:t},Qo(e))}i(lg,"saveState");function_$(t){returnprocess.env[`STATE_${t}`]||""}i(_$,"getState");varfy=w(require("fs"),1),Vv=w(require("os"),1),Yv=w(require("path"),1);vark$=w(require("os"),1);functionZb(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}i(Zb,"toCommandValue");functionU$(t,e,r){letn=newTN(t,e,r);process.stdout.write(n.toString()+k$.EOL)}i(U$,"issueCommand");varP$="::",TN=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=P$+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){leto=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${YQe(o)}`)}}returne+=`${P$}${VQe(this.message)}`,e}};functionVQe(t){returnZb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(VQe,"escapeData");functionYQe(t){returnZb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(YQe,"escapeProperty");varV$=w(require("os"),1);varH$=require("os"),eM=require("fs");varvN=function(t,e,r,n){functiono(s){returnsinstanceofr?s:newr(function(a){a(s)})}returni(o,"adopt"),new(r||(r=Promise))(function(s,a){functionc(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");functionu(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");functionp(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},{access:JQe,appendFile:jQe,writeFile:$Qe}=eM.promises,G$="GITHUB_STEP_SUMMARY";varLN=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){returnvN(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[G$];if(!e)thrownewError(`Unable to find environment variable for $${G$}. Check if your runtime environment supports job summaries.`);try{yieldJQe(e,eM.constants.R_OK|eM.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,n={}){leto=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");returnr?`<${e}${o}>${r}</${e}>`:`<${e}${o}>`}write(e){returnvN(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?$Qe:jQe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnvN(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){returnthis._buffer.length===0}emptyBuffer(){returnthis._buffer="",this}addRaw(e,r=!1){returnthis._buffer+=e,r?this.addEOL():this}addEOL(){returnthis.addRaw(H$.EOL)}addCodeBlock(e,r){letn=Object.assign({},r&&{lang:r}),o=this.wrap("pre",this.wrap("code",e),n);returnthis.addRaw(o).addEOL()}addList(e,r=!1){letn=r?"ol":"ul",o=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,o);returnthis.addRaw(s).addEOL()}addTable(e){letr=e.map(o=>{lets=o.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);let{header:c,data:u,cols
`,"utf-8")],o=VHe(n);o&&t.headers.set("Content-Length",o),t.body=awaitXte(n)}i(YHe,"buildRequestBody");varSM="multipartPolicy",JHe=70,jHe=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function$He(t){if(t.length>JHe)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!jHe.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}i($He,"assertValidBoundary");functionw3(){return{name:SM,asyncsendRequest(t,e){if(!t.multipartBody)returne(t);if(t.body)thrownewError("multipartBody and regular body cannot be set at the same time");letr=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",o=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!o)thrownewError(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=o;if(a&&r&&a!==r)thrownewError(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);returnr??=a,r?$He(r):r=GHe(),t.headers.set("Content-Type",`${s}; boundary=${r}`),awaitYHe(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}i(w3,"multipartPolicy");functionS3(){returnt3()}i(S3,"createEmptyPipeline");varVte=Kg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Ov0=Vte.logger;functioncs(t){returnVte.createClientLogger(t)}i(cs,"createClientLogger");varus=cs("core-rest-pipeline");functionR6(t={}){returna3({logger:us.info,...t})}i(R6,"logPolicy");varN6=c3;functionw6(t={}){returnu3(t)}i(w6,"redirectPolicy");varF3=w(require("node:os"),1),W3=w(require("node:process"),1);functionYte(){return"User-Agent"}i(Yte,"getHeaderName");asyncfunctionJte(t){if(W3.default&&W3.default.versions){lete=`${F3.default.type()}${F3.default.release()}; ${F3.default.arch()}`,r=W3.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}i(Jte,"setPlatformSpecificData");varx3="1.22.2";functionsXe(t){lete=[];for(let[r,n]oft){leto=n?`${r}/${n}`:r;e.push(o)}returne.join(" ")}i(sXe,"getUserAgentString");functionjte(){returnYte()}i(jte,"getUserAgentHeaderName");asyncfunctionT3(t){lete=newMap;e.set("core-rest-pipeline",x3),awaitJte(e);letr=sXe(e);returnt?`${t}${r}`:r}i(T3,"getUserAgentValue");var$te=jte(),Kte="userAgentPolicy";functionS6(t={}){lete=T3(t.userAgentPrefix);return{name:Kte,asyncsendRequest(r,n){returnr.headers.has($te)||r.headers.set($te,awaite),n(r)}}}i(S6,"userAgentPolicy");varVr=classextendsError{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};functionF6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:o}=e??{};returnnewPromise((s,a)=>{functionc(){a(newVr(o??"The operation was aborted."))}i(c,"rejectOnAbort");functionu(){n?.removeEventListener("abort",p)}i(u,"removeListeners");functionp(){r?.(),u(),c()}if(i(p,"onAbort"),n?.aborted)returnc();try{t(A=>{u(),s(A)},A=>{u(),a(A)})}catch(A){a(A)}n?.addEventListener("abort",p)})}i(F6,"createAbortablePromise");varpXe="The delay was aborted.";functionFM(t,e){letr,{abortSignal:n,abortErrorMsg:o}=e??{};returnF6(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:o??pXe})}i(FM,"delay");functionsc(t){if(Wu(t))returnt.message;{lete;try{typeoft=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(sc,"getErrorMessage");functionZte(t){returnWu(t)}i(Zte,"isError");functionRl(){returnFu()}i(Rl,"randomUUID");varl0=vu;varere=Symbol("rawContent");functionx6(t){returntypeoft[ere]=="function"}i(x6,"hasRawContent");functiontre(t){returnx6(t)?t[ere]():t}i(tre,"getRawContent");varv3=SM;functionT6(){lett=w3();return{name:v3,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(letnofe.multipartBody.parts)x6(n.body)&&(n.body=tre(n.body));returnt.sendRequest(e,r)},"sendRequest")}}i(T6,"multipartPolicy");varv6=p3;functionL6(){returnA3()}i(L6,"decompressResponsePolicy");fun
`&&t[s]!=="\r";s++)u+=t[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!WVe(u)){let l;return u.trim().length===0?l="Invalid space after '<'.":l="Tag '"+u+"' is an invalid name.",O1("InvalidTag",l,Pt(t,s))}let p=RVe(t,s);if(p===!1)return O1("InvalidAttr","Attributes for '"+u+"' have open quote.",Pt(t,s));let A=p.value;if(s=p.index,A[A.length-1]==="/"){let l=s-A.length;A=A.substring(0,A.length-1);let b=_re(A,e);if(b===!0)n=!0;else return O1(b.err.code,b.err.msg,Pt(t,l+b.err.line))}else if(c)if(p.tagClosed){if(A.trim().length>0)return O1("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",Pt(t,a));if(r.length===0)return O1("InvalidTag","Closing tag '"+u+"' has not been opened.",Pt(t,a));{let l=r.pop();if(u!==l.tagName){let b=Pt(t,l.tagStartPos);return O1("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+u+"'.",Pt(t,a))}r.length==0&&(o=!0)}}else return O1("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",Pt(t,s));else{let l=_re(A,e);if(l!==!0)return O1(l.err.code,l.err.msg,Pt(t,s-A.length+l.err.line));if(o===!0)return O1("InvalidXml","Multiple possible root nodes found.",Pt(t,s));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=Qre(t,s);continue}else if(t[s+1]==="?"){if(s=Lre(t,++s),s.err)return s}else break;else if(t[s]==="&"){let l=SVe(t,s);if(l==-1)return O1("InvalidChar","char '&' is not expected.",Pt(t,s));s=l}else if(o===!0&&!vre(t[s]))return O1("InvalidXml","Extra text at the end",Pt(t,s));t[s]==="<"&&s--}}else{if(vre(t[s]))continue;return O1("InvalidChar","char '"+t[s]+"' is not expected.",Pt(t,s))}if(n){if(r.length==1)return O1("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Pt(t,r[0].tagStartPos));if(r.length>0)return O1("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return O1("InvalidXml","Start tag expected.",1);return!0}i(j3,"validate");function vre(t){return t===" "||t===" "||t===`
`||t==="\r"}i(vre,"isWhiteSpace");function Lre(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return O1("InvalidXml","XML declaration allowed only at the start of the document.",Pt(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(Lre,"readPI");function Qre(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}i(Qre,"readCommentAndCDATA");var DVe='"',IVe="'";function RVe(t,e){let r="",n="",o=!1;for(;e<t.length;e++){if(t[e]===DVe||t[e]===IVe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){o=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:o}}i(RVe,"readAttributeStr");var NVe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function _re(t,e){let r=Y3(t,NVe),n={};for(let o=0;o<r.length;o++){if(r[o][1].length===0)return O1("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",HM(r[o]));if(r[o][3]!==void 0&&r[o][4]===void 0)return O1("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",HM(r[o]));if(r[o][3]===void 0&&!e.allowBooleanAttributes)return O1("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",HM(r[o]));let s=r[o][2];if(!FVe(s))return O1("InvalidAttr","Attribute '"+s+"' is an invalid name.",HM(r[o]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return O1("InvalidAttr","Attribute '"+s+"' is repeated.",HM(r[o]))}return!0}i(_re,"validateAttributeString");function wVe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}i(wVe,"validateNumberAmpersand");function SVe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,wVe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}i(SVe,"validateAmpersand");function O1(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(O1,"getErrorObject");function FVe(t){return uS(t)}i(FVe,"validateAttrName");function WVe(t){return uS(t)}i(WVe,"validateTagName");function Pt(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(Pt,"getLineNumberForPosition");function HM(t){return t.startIndex+t[1].length}i(HM,"getPositionFromMatch");var Pre={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"},kre={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntil
`);let e=new ur("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let o=this.options,s=new YM(o.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let A=xl(t,">",c,"ClosingTagisnotclosed."),l=t.substring(c+2,A).trim();if(o.removeNSPrefix){let f=l.indexOf(":");f!==-1&&(l=l.substr(f+1))}l=mS(o.transformTagName,l,"",o).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let b=this.matcher.getCurrentTag();if(l&&o.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);b&&o.unpairedTagsSet.has(b)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=A}else if(p===63){let A=hS(t,c,!1,"?>");if(!A)throw new Error("PiTagisnotclosed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(l){let b=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(b)||1),s.setXmlVersion(Number(b)||1)}if(!(o.ignoreDeclaration&&A.tagName==="?xml"||o.ignorePiTags)){let b=new ur(A.tagName);b.add(o.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&o.ignoreAttributes!==!0&&(b[":@"]=l),this.addChild(r,b,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=xl(t,"-->",c+4,"Commentisnotclosed.");if(o.commentPropName){let l=t.substring(c+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(o.commentPropName,[{[o.textNodeName]:l}])}c=A}else if(p===33&&t.charCodeAt(c+2)===68){let A=s.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(p===33&&t.charCodeAt(c+2)===91){let A=xl(t,"]]>",c,"CDATAisnotclosed.")-2,l=t.substring(c+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let b=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);b==null&&(b=""),o.cdataPropName?r.add(o.cdataPropName,[{[o.textNodeName]:l}]):r.add(o.textNodeName,b),c=A+2}else{let A=hS(t,c,o.removeNSPrefix);if(!A){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let l=A.tagName,b=A.rawTagName,f=A.tagExp,z=A.attrExpPresent,g=A.closeIndex;if({tagName:l,tagExp:f}=mS(o.transformTagName,l,f,o),o.strictReservedNames&&(l===o.commentPropName||l===o.cdataPropName||l===o.textNodeName||l===o.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&o.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),f=l):f=f.substr(0,f.length-1),z=l!==f);let B=null,q={},I;I=nYe(b),l!==e.tagname&&this.matcher.push(l,{},I),l!==f&&z&&(B=this.buildAttributesMap(f,this.matcher,l),B&&(q=rYe(B,o))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let W=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=A.closeIndex;else if(o.unpairedTagsSet.has(l))c=A.closeIndex;else{let ue=this.readStopNodeData(t,b,g+1);if(!ue)throw new Error(`Unexpected end of ${b}`);c=ue.i,x=ue.tagContent}let Q=new ur(l);B&&(Q[":@"]=B),Q.add(o.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,W)}else{if(E){({tagName:l,tagExp:f}=mS(o.transformTagName,l,f,o));let x=new ur(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(o.unpairedTagsSet.has(l)){let x=new ur(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let x=new ur(l);if(this.tagsNodeStack.length>o.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),r=x}n="",c=g}}}else n+=t[c];return e.child},"parse
${c}:${decodeURIComponent(s[c])}`}returnn}};varo1=classextendsHu{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewZM(e,r,this)}computeHMACSHA256(e){return(0,zne.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varQ1=cs("storage-common");varIn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(In||(In={}));varAc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:In.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},TYe=newVr("The operation was aborted."),ef=classextendsds{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Ac){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Ac.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Ac.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Ac.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Ac.maxRetryDelayInMs):Ac.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Ac.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Ac.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,n){leto=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(o.url=cE(o.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(o.url=pc(o.url,Hi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leta;try{if(Q1.info(`RetryPolicy: =====> Try=${n}${s?"Primary":"Secondary"}`),a=awaitthis._nextPolicy.sendRequest(o),!this.shouldRetry(s,n,a))returna;r=r||!s&&a.status===404}catch(c){if(Q1.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throwc}returnawaitthis.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,o){if(r>=this.retryOptions.maxTries)returnQ1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;lets=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(letaofs)if(o.name.toUpperCase().includes(a)||o.message.toUpperCase().includes(a)||o.code&&o.code.toString().toUpperCase()===a)returnQ1.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||o){leta=n?n.status:o?o.statusCode:0;if(!e&&a===404)returnQ1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)returnQ1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){leta=n.headers.get(Be.X_MS_CopySourceErrorCode);if(a!==void0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returno?.code==="PARSE_ERROR"&&o?.message.startsWith('Error "Error: Unclosed root tag')?(Q1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,n){leto=0;if(e)switch(this.retryOptions.retryPolicyType){caseIn.EXPONENTIAL:o=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseIn.FIXED:o=this.retryOptions.retryDelayInMs;break}elseo=Math.random()*1e3;returnQ1.info(`RetryPolicy: Delay for ${o}ms`),AE(o,n,TYe)}};vartf=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewef(e,r,this.retryOptions)}};varvYe="storageBrowserPolicy";functionOne(){return{name:vYe,asyncsendRequest(t,e){returnl0||((t.method==="GET"||t.method==="HEAD")&&(t.url=pc(t.url,Hi.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(Be.COOKIE),t.headers.delete(Be.CONTENT_LENGTH)),e(t)}}}i(One,"storageBrowserPolicy");varLYe="StorageCorrectContentLengthPolicy";functiongne(){functiont(e){e.body&&(
`}),c}i(n,"getCanonicalizedHeadersString");function o(s){let a=uE(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=pE(s.url),p={};if(u){let A=[];for(let l in u)if(Object.prototype.hasOwnProperty.call(u,l)){let b=l.toLowerCase();p[b]=u[l],A.push(b)}A.sort();for(let l of A)c+=`
`),s=e.computeHMACSHA256(o);return{sasQueryParameters:newCo(t.version,s,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(Xje,"generateBlobSASQueryParameters20150405");functionVje(t,e){if(t=ep(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(Vje,"generateBlobSASQueryParameters20181109");functionYje(t,e){if(t=ep(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void0,void0,void0,t.encryptionScope),stringToSign:s}}i(Yje,"generateBlobSASQueryParameters20201206");functionJje(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}i(Jje,"generateBlobSASQueryParametersUDK20181109");functionjje(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}i(jje,"generateBlobSASQueryParametersUDK20200210");function$je(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}i($je,"generateBlobSASQueryParametersUDK20201206");functionKje(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leto;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());lets=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newCo(t.version,a,o,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}i(Kje,"generateBlobSASQueryParametersUDK20250705");functionZu(t,e,r){letn=[`/blob/${t}/${e}`];returnr&&n.push(`/${r}`),n.join("")}i(Zu,"getCanonicalName");functionep(t){lete=t.version?t.version:ME;if(t.snapshotTime&&e<"2018-11-09")throwRangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void0&&t.snapshotTime)throwRangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void0&&t.versionId)throwRangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throwRangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throwRangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throwRangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throwRangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throwRangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throwRangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");returnt.version=e,t}i(ep,"SASSignatureValuesSanityCheckAndAutofill");varMf=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){letn=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Rl()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ho||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ho||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.");returnce.withSpan("BlobLeaseClient-acquireLease",r,asyncn=>de(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ho||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ho||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.");returnce.withSpan("BlobLeaseClient-changeLease",r,asyncn=>{leto=de(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));returnthis._leaseId=e,o})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.i
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints:https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Jl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var op=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
Moreinfoonstoragelimits:https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};op.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Bf=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var cKe=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},CT=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,o=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${o} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Tse(t,e,r){return cKe(this,void 0,void 0,function*(){var n;let o=new ea(t),s=o.getBlockBlobClient(),a=new CT((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),N(`BlobClient: ${o.name}:${o.accountName}:${o.containerName}`);let u=yield s.uploadFile(e,c);if(u._response.status>=400)throw new OC(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw Ke(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}i(Tse,"uploadCacheArchiveSDK");var Lse=w(require("buffer"),1),Ss=w(require("fs"),1),Qse=w(require("stream"),1),_se=w(require("util"),1);var gC=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function EC(t){return t?t>=200&&t<300:!1}i(EC,"isSuccessStatusCode");function uKe(t){return t?t>=500:!0}i(uKe,"isServerErrorStatusCode");function pKe(t){return t?[n1.BadGateway,n1.ServiceUnavailable,n1.GatewayTimeout].includes(t):!1}i(pKe,"isRetryableStatusCode");function AKe(t){return gC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(AKe,"sleep");function vse(t,e,r){return gC(this,arguments,void 0,function*(n,o,s,a=Xg,c=Vg,u=void 0){let p="",A=1;for(;A<=a;){let l,b,f=!1;try{l=yield o()}catch(z){u&&(l=u(z)),f=!0,p=z.message}if(l&&(b=s(l),!uKe(b)))return l;if(b&&(f=pKe(b),p=`Cache service responded with ${b}`),N(`${n} - Attempt ${A} of ${a} failed with error: ${p}`),!f){N(`${n} - Error is not retryable`);break}yield AKe(c),A++}throw Error(`${n} failed: ${p}`)})}i(vse,"retry");function qf(t,e){return gC(this,arguments,void 0,function*(r,n,o=Xg,s=Vg){return yield vse(r,n,a=>a.statusCode,o,s,a=>{if(a instanceof os)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(qf,"retryTypedResponse");function jl(t,e){return gC(this,arguments,void 0,function*(r,n,o=Xg,s=Vg){return yield vse(r,n,a=>a.message.statusCode,o,s)})}i(jl,"retryHttpClientResponse");var Fn=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a
Othercacheswithsimilarkey:`);for(let c of s?.artifactCaches||[])N(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}i(zKe,"printCachesListForDiagnostics");function DT(t,e,r){return dr(this,void 0,void 0,function*(){let n=new jse.URL(t),o=Gse(r);n.hostname.endsWith(".blob.core.windows.net")?o.useAzureSdk?yield kse(t,e,o):o.concurrentBlobDownloads?yield Pse(t,e,o):yield yC(t,e):yield yC(t,e)})}i(DT,"downloadCache");function Kse(t,e,r){return dr(this,void 0,void 0,function*(){let n=qT(),o=Ol(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:o,cacheSize:r?.cacheSize};return yield qf("reserveCache",()=>dr(this,void 0,void 0,function*(){return n.postJson(If("caches"),s)}))})}i(Kse,"reserveCache");function Jse(t,e){return`bytes${t}-${e}/*`}i(Jse,"getContentRange");function OKe(t,e,r,n,o){return dr(this,void 0,void 0,function*(){N(`Uploading chunk of size ${o-n+1} bytes at offset ${n} with content range: ${Jse(n,o)}`);let s={"Content-Type":"application/octet-stream","Content-Range":Jse(n,o)},a=yield jl(`uploadChunk (start: ${n}, end: ${o})`,()=>dr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!EC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(OKe,"uploadChunk");function gKe(t,e,r,n){return dr(this,void 0,void 0,function*(){let o=ns(r),s=If(`caches/${e.toString()}`),a=$l.openSync(r,"r"),c=yT(n),u=jw("uploadConcurrency",c.uploadConcurrency),p=jw("uploadChunkSize",c.uploadChunkSize),A=[...new Array(u).keys()];N("Awaiting all uploads");let l=0;try{yield Promise.all(A.map(()=>dr(this,void 0,void 0,function*(){for(;l<o;){let b=Math.min(o-l,p),f=l,z=l+b-1;l+=p,yield OKe(t,s,()=>$l.createReadStream(r,{fd:a,start:f,end:z,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,z)}})))}finally{$l.closeSync(a)}})}i(gKe,"uploadFile");function EKe(t,e,r){return dr(this,void 0,void 0,function*(){let n={size:r};return yield qf("commitCache",()=>dr(this,void 0,void 0,function*(){return t.postJson(If(`caches/${e.toString()}`),n)}))})}i(EKe,"commitCache");function IT(t,e,r,n){return dr(this,void 0,void 0,function*(){if(yT(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Tse(r,e,n)}else{let s=qT();N("Upload cache"),yield gKe(s,t,e,n),N("Commiting cache");let a=ns(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield EKe(s,t,a);if(!EC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}i(IT,"saveCache");var Xie=w(Qie(),1),y1=w(C1(),1),Zr=w(C1(),1),up=w(C1(),1),pp=w(C1(),1),Ap=w(C1(),1);var Ev=w(C1(),1),Cv=w(C1(),1),Uie=w(C1(),1),Gie=w(C1(),1),Hie=w(C1(),1);var zv=w(C1(),1),Ov=w(C1(),1),_ie=w(C1(),1),Pie=w(C1(),1),kie=w(C1(),1);var gv=class extends kie.MessageType{static{i(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Pie.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,_ie.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let s=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?Ov.UnknownFieldHandler.onRead:p)(this.typeName,s,c,u,A)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,zv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,zv.WireType.Varint).int64(e.permission);let o=n.writeUnknownFields;return o!==!1&&(o==!0?Ov.UnknownFieldHandler.onWrite:o)(this.typeName,e,r),r}},Ay=new gv;var yv=class extends Hie.Mess
`));let n=yield Qv(r,"create");yield _v(n,t)})}i(kv,"createTar");var b2=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},qo=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},lp=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Uv="cache write denied:",d2=class t extends lp{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},My=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function jie(t){if(!t||t.length===0)throw new qo("Path Validation Error: At least one directory or file path is required")}i(jie,"checkPaths");function Gv(t){if(t.length>512)throw new qo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new qo(`Key Validation Error: ${t} cannot contain commas.`)}i(Gv,"checkKey");function Hv(){return Df()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(Hv,"isFeatureAvailable");function $ie(t,e,r,n){return b2(this,arguments,void 0,function*(o,s,a,c,u=!1){let p=Df();return N(`Cache service version: ${p}`),jie(o),p==="v2"?yield ve0(o,s,a,c,u):yield Te0(o,s,a,c,u)})}i($ie,"restoreCache");function Te0(t,e,r,n){return b2(this,arguments,void 0,function*(o,s,a,c,u=!1){a=a||[];let p=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(p)),p.length>10)throw new qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let b of p)Gv(b);let A=yield BM(),l="";try{let b=yield $se(p,o,{compressionMethod:A,enableCrossOsArchive:u});if(!b?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),b.cacheKey;l=Gf.join(yield CM(),rc(A)),N(`Archive Path: ${l}`),yield DT(b.archiveLocation,l,c),Ti()&&(yield Uf(l,A));let f=ns(l);return S(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield Pv(l,A),S("Cache restored successfully"),b.cacheKey}catch(b){let f=b;if(f.name===qo.name)throw b;f instanceof os&&typeof f.statusCode=="number"&&f.statusCode>=500?ul(`Failed to restore: ${b.message}`):Ke(`Failed to restore: ${b.message}`)}finally{try{yield yM(l)}catch(b){N(`Failed to delete archive: ${b}`)}}})}i(Te0,"restoreCacheV1");function ve0(t,e,r,n){return b2(this,arguments,void 0,function*(o,s,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let p=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(p)),p.length>10)throw new qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of p)Gv(l);let A="";try{let l=Lv(),b=yield BM(),f={key:s,restoreKeys:a,version:Ol(o,b,u)},z=yield l.GetCacheEntryDownloadURL(f);if(!z.ok){N(`Cache not found for version ${f.version} of keys: ${p.join(", ")}`);return}if(f.key!==z.matchedKey?S(`Cache hit for restore-key: ${z.matchedKey}`):S(`Cache hit for: ${z.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),z.matchedKey;A=Gf.join(yield CM(),rc(b)),N(`Archive path: ${A}`),N(`Starting download of archive to: ${A}`),yield DT(z.signedDownloadUrl,A,c);let y=ns(A);return S(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Ti()&&(yield Uf(A,b)),yield Pv(A,b),S("Cache restored successfully"),z.matchedKey}catch(l){let b=l;if(b.name===qo.name)throw l;b instanceof os&&typeof b.statusCode=="number"&&b.statusCode>=500?ul(`Failed to restore: ${l.message}`):Ke(`Failed to restore: ${l.message}`)}finally{try{A&&(yield yM(A))}catch(l){N(`Failed to delete archive: ${l}`)}}})}i(ve0,"restoreCacheV2");function Xv(t,e,r){return b2(this,arguments,void 0,function*(n,o,s,a=!1)
`)}i(F00,"_buildMessageForResponseErrors");var W00=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(F00(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},x00=["method","baseUrl","url","headers","request","query","mediaType","operationName"],T00=["query","method","url"],Lae=/\/api\/v3\/?$/;function v00(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(T00.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,o=Object.keys(n).reduce((a,c)=>x00.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Lae.test(s)&&(o.url=s.replace(Lae,"/api/graphql")),t(o).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new W00(o,c,a.data)}return a.data.data})}i(v00,"graphql");function sL(t,e){let r=t.defaults(e);return Object.assign(i((o,s)=>v00(r,o,s),"newApi"),{defaults:sL.bind(null,r),endpoint:r.endpoint})}i(sL,"withDefaults");var KZ0=sL(Yf,{headers:{"user-agent":`octokit-graphql.js/${S00} ${Oc()}`},method:"POST",url:"/graphql"});function Qae(t){return sL(t,{method:"POST",url:"/graphql"})}i(Qae,"withCustomRequest");var iL="(?:[a-zA-Z0-9_-]+)",_ae="\\.",Pae=new RegExp(`^${iL}${_ae}${iL}${_ae}${iL}$`),L00=Pae.test.bind(Pae);async function Q00(t){let e=L00(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(Q00,"auth");function _00(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(_00,"withAuthorizationPrefix");async function P00(t,e,r,n){let o=e.endpoint.merge(r,n);return o.headers.authorization=_00(t),e(o)}i(P00,"hook");var kae=i(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Q00.bind(null,e),{hook:P00.bind(null,e)})},"createTokenAuth2");var aL="7.0.6";var Uae=i(()=>{},"noop"),k00=console.warn.bind(console),U00=console.error.bind(console);function G00(t={}){return typeof t.debug!="function"&&(t.debug=Uae),typeof t.info!="function"&&(t.info=Uae),typeof t.warn!="function"&&(t.warn=k00),typeof t.error!="function"&&(t.error=U00),t}i(G00,"createLogger");var Gae=`octokit-core.js/${aL} ${Oc()}`,Iy=class{static{i(this,"Octokit")}static VERSION=aL;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let o=n[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(o=>!r.includes(o)))}}constructor(e={}){let r=new mae.Collection,n={baseUrl:Yf.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Gae}`:Gae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Yf.defaults(n),this.graphql=Qae(this.request).defaults(n),this.log=G00(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=kae(e.auth);r.wrap("request",s.hook),this.auth=s}let o=this.constructor;for(let s=0;s<o.plugins.length;++s)
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<f},"__needMoreData"),parse:i(function(n,o,s,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:f,raw:z,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:I,escape:W,quote:x,record_delimiter:Q}=this.options,{bomSkipped:ue,delimiterDiscovered:qe,delimiterBufPrevious:Qe,rawBuffer:Re,escapeIsQuote:ge}=this.state;if(!qe&&p){let _e;if(Qe===void 0?_e=n:Qe!==void 0&&n===void 0?_e=Qe:_e=Buffer.concat([Qe,n]),n=void 0,o||_e.length>p.size)this.options.delimiter=[Buffer.from(tle(_e,this.options.delimiter_auto))],this.state.previousBuf=_e,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=_e;return}}let{previousBuf:Ue}=this.state,pe;if(Ue===void 0)if(n===void 0){a();return}else pe=n;else Ue!==void 0&&n===void 0?pe=Ue:pe=Buffer.concat([Ue,n]);if(ue===!1)if(c===!1)this.state.bomSkipped=!0;else if(pe.length<3){if(o===!1){this.state.previousBuf=pe;return}}else{for(let _e in F2)if(F2[_e].compare(pe,0,F2[_e].length)===0){let g0=F2[_e].length;this.state.bufBytesStart+=g0,pe=pe.slice(g0);let ft=S2({...this.original_options,encoding:_e});for(let p0 in ft)this.options[p0]=ft[p0];({comment:I,escape:W,quote:x}=this.options);break}this.state.bomSkipped=!0}let Ge=pe.length,J;for(J=0;J<Ge&&!this.__needMoreData(J,Ge,o);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&Q.length===0&&this.__autoDiscoverRecordDelimiter(pe,J)&&(Q=this.options.record_delimiter);let _e=pe[J];if(z===!0&&Re.append(_e),(_e===Di0||_e===Ii0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(W!==null&&this.state.quoting===!0&&this.__isEscape(pe,J,_e)&&J+W.length<Ge)if(ge){if(this.__isQuote(pe,J+W.length)){this.state.escaping=!0,J+=W.length-1;continue}}else{this.state.escaping=!0,J+=W.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(pe,J))if(this.state.quoting===!0){let p0=pe[J+x.length],V1=y&&this.__isCharTrimable(pe,J+x.length),y0=I!==null&&this.__compareBytes(I,pe,J+x.length,p0),ne=this.__isDelimiter(pe,J+x.length,p0),vo=Q.length===0?this.__autoDiscoverRecordDelimiter(pe,J+x.length):this.__isRecordDelimiter(p0,pe,J+x.length);if(W!==null&&this.__isEscape(pe,J,_e)&&this.__isQuote(pe,J+W.length))J+=W.length-1;else if(!p0||ne||vo||y0||V1){this.state.quoting=!1,this.state.wasQuoting=!0,J+=x.length-1;continue}else if(g===!1){let cn=this.__error(new Ve("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(p0)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(cn!==void 0)return cn}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),J+=x.length-1}else if(this.state.field.length!==0){if(g===!1){let p0=this.__infoField(),V1=Object.keys(F2).map(ne=>F2[ne].equals(this.state.field.toString())?ne:!1).filter(Boolean)[0],y0=this.__error(new Ve("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(p0.column)} at line ${p0.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,V1?`(${V1} bom)`:void 0],this.options,p0,{field:this.state.field}));if(y0!==void 0)return y0}}else{this.state.quoting=!0,J+=x.length-1;continue}if(this.state.quoting===!1){let p0=this.__isRecordDelimiter(_e,pe,J);if(p0!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=p0-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=p0-1;continue}this.info.bytes=this.state.bufBytesSt
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n){if(o.length==1&&!o[0].startsWith("type="))return e=="local";for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=F1(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n)for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=F1(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let o of r)for(let s of o)try{let a=c0.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),o=e.substring(0,n),s=e.substring(n+1);if(o.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&$o(s),[o,s]}};var UQ=w(require("fs"),1),ale=w(require("path"),1);var F4=class t{static{i(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new N0,this.metadataFilename=`bake-metadata-${c0.generateRandomString()}.json`}getMetadataFilePath(){return ale.default.join(s0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!UQ.default.existsSync(e))return;let r=UQ.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],o,s=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!c0.isValidRef(u)){s.push(u);continue}if(o)throw new Error("Only one remote bake definition can be defined");o=u}}o&&n.push(o);for(let u of s)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Oe.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let o=r.target[n];o.attest&&Array.isArray(o.attest)&&(o.attest=o.attest.map(s=>t.parseAttestEntry(s))),o["cache-from"]&&Array.isArray(o["cache-from"])&&(o["cache-from"]=o["cache-from"].map(s=>t.parseCacheEntry(s))),o["cache-to"]&&Array.isArray(o["cache-to"])&&(o["cache-to"]=o["cache-to"].map(s=>t.parseCacheEntry(s))),o.output&&Array.isArray(o.output)&&(o.output=o.output.map(s=>t.parseExportEntry(s))),o.secret&&Array.isArray(o.secret)&&(o.secret=o.secret.map(s=>t.parseSecretEntry(s))),o.ssh&&Array.isArray(o.ssh)&&(o.ssh=o.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=c0.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let o of n){let[s,a]=o.toString().
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);N(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let n=r.match(/^HEAD, (.*)$/);if(!n||!n[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let o=n[1].trim();if(o.startsWith("tag: "))return await t.findDetachedTagRef(o,e);if(o.match(/^pull\/\d+\/(head|merge)$/))return`refs/${o}`;let a=o.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=o.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Oe.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let s=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return s?`refs/heads/${s[1]}`:r}let n=await t.exec(["tag","--contains","HEAD"]),[o]=n.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);if(o)return`refs/tags/${o}`;throw new Error("Cannot infer ref from detached HEAD")}static async findDetachedTagRef(e,r){let o=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"])).split(`
`).map(s=>s.trim()).filter(s=>s.length>0).sort((s,a)=>a.length-s.length);for(let s of o){let a=`tag: ${s.slice(10)}`;if(e===a||e.startsWith(`${a}, `))return s}if(o.length===1)return o[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[n]=r.split(`
`);if(s=new Error(`Cosign verify command failed with errors:
${p}`),u.errors.some(A=>A.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${o}...
${p}`),await new Promise(A=>setTimeout(A,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=await this.cosignSigningConfigArgs(e.noTransparencyLog),o=t.getProvenanceBlobs(e);for(let s of Object.keys(o))await at(`Signing ${s}`,async()=>{let a=o[s],c=ti.default.join(ti.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){Ke(`No subjects found in provenance ${s}, skip signing.`);return}let p=ti.default.join(ti.default.dirname(s),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions","--new-bundle-format","--statement",s,"--type",Ebe,"--bundle",c,...n];S(`[command]${this.cosign.binPath} ${[...A,p].join(" ")}`);let l=await Oe.getExecOutput(this.cosign.binPath,["--verbose",...A,p],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),b=Zs.parseCommandOutput(l.stderr.trim());if(l.exitCode!=0)if(b.errors&&b.errors.length>0){let z=b.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${z}`)}else throw new Error(`Cosign attest-blob command failed with: ${l.stderr.trim().split(/\r?\n/).filter(z=>z.length>0).pop()??"unknown error"}`);let f=t.parseBundle((0,pd.bundleFromJSON)(JSON.parse(ei.default.readFileSync(c,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let z of u){let[g,y]=Object.entries(z.digest)[0]||[];S(` - ${z.name} (${g}:${y})`)}f.tlogID&&S(`Attestation signature uploaded to Rekor transparency log: ${Pp}?logIndex=${f.tlogID}`),S(`Sigstore bundle written to: ${c}`),r[s]={...f,bundlePath:c,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[o,s]of Object.entries(e)){let a=ti.default.dirname(o);await at(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let u=ti.default.join(a,c.name);S(`Verifying signed artifact ${u}`);let p=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Ebe];(r.noTransparencyLog||!s.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let A=await Oe.getExecOutput(this.cosign.binPath,[...p,"--bundle",s.bundlePath,u],{ignoreReturnCode:!0});if(A.stderr.length>0&&A.exitCode!=0)throw new Error(A.stderr);n[u]={bundlePath:s.bundlePath,cosignArgs:p}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let o=JSON.parse(ei.default.readFileSync(r,"utf-8")),s=(0,pd.bundleFromJSON)(o);S("Fetching Sigstore TUF trusted root metadata");let a=await ybe.getTrustedRoot(),c=(0,Ad.toTrustMaterial)(a);try{S("Verifying artifact signature");let u=(0,Ad.toSignedEntity)(s,ei.default.readFileSync(e)),p=t.parseCertificate(s),A=s.verificationMaterial.tlogEntries,l=A.length>0?A[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let z=p.subjectAltName?.replace(/^uri:/i,"");if(z){if(!z.match(n.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${z}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new Ad.Verifier(c).verify(u,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return N(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:o,certificate:p.toString(),tlogID:l}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}static noTransparencyLog(e){return e??a0.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e);return S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")?await at("Creating Sigstore protobuf signing config",async()=>{let o=s0.tmpName({template:"signing-config-XXXXXX.json",tmpdir:s0.tmpDir()}),s=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&s.push("--no-default-rekor=true"),await Oe.exec(this.cosign.binPath,s,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(ei.default.readFileSync(o,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${o}`)}):(r.push("--use-signing-config"),n&&r.push("--tlog-upload=false")),r}static getProvenanceBlobs(e){let r=ti.default.join(e.localExportDir,"provenance.json");if(ei.default.existsSync(r))return{[r]:ei.default.readFileSync(r)};let n=ei.default.readdirSync(e.localExportDir,{withFileTypes:!0}),o=n.filter(s=>s.isDirectory());if(o.length>0&&o.length===n.length&&o.every(s=>ei.default.existsSync(ti.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of o){let c=ti.default.join(e.localExportDir,a.name,"provenance.json");s[c]=ei.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.
`,bakeTarget:_r("bake-target")||"docker-metadata-action",githubToken:_r("github-token")}}i(Rbe,"getInputs");async function Nbe(t,e){switch(t){case"workflow":return await x20(e);case"git":return await T20();default:throw new Error(`Invalidcontextsource:${t}`)}}i(Nbe,"getContext");async function x20(t){let e=a0.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 v20(e.sha,t),...e}}i(x20,"getContextFromWorkflow");async function T20(){let t=await ua.context();return{commitDate:await ua.commitDate(t.sha),...t}}i(T20,"getContextFromGit");async function v20(t,e){let r=a0.context.payload;if(r.commits){let n=r.commits.find(o=>o.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:a0.context.repo.owner,repo:a0.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return N(`FailedtogetcommitdatefromGitHubAPI:${n.message}`),new Date}}i(v20,"getCommitDateFromWorkflow");var qa=w(vQ(),1),E4e=w(require("fs"),1),C4e=w(require("path"),1),Ph=w(Tbe(),1),an=w(m4e(),1),Wd=w(_n(),1);function z4e(t){let e=[];if(t.length==1){let r=!1,n=F1(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let s=o.toString().split("=").map(a=>a.trim());if(s.length==1)e.push({name:s[0],enable:!0});else{r=!0;break}}if(!r)return h4e(e)}e=[];for(let r of t){let n={name:"",enable:!0},o=F1(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of o){let a=s.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalidenableattributevalue:${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknownimageattribute:${r}`)}}}if(n.name.length==0)throw new Error(`Imagenameattributeempty:${r}`);e.push(n)}return h4e(e)}i(z4e,"Transform");function h4e(t){Du("Processing images input");for(let e of t)S(`name=${e.name},enable=${e.enable}`);return Iu(),t}i(h4e,"output");var G7=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(G7||{}),hD=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(hD||{}),zD=(r=>(r.Short="short",r.Long="long",r))(zD||{}),U7=class{static{i(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},D40={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function O4e(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(I40(n));let r=e.sort((n,o)=>Number(n.attrs.priority)<Number(o.attrs.priority)?1:Number(n.attrs.priority)>Number(o.attrs.priority)?-1:0);Du("Processing tags input");for(let n of r)S(n.toString());return Iu(),r}i(O4e,"Transform");function I40(t){let e=F1(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new U7;for(let n of e){let o=n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim());if(o.length==1)r.attrs.value=o[0];else{let s=o[0].toLowerCase(),a=o[1];switch(s){case"type":{if(!Object.values(G7).includes(a))throw new Error(`Unknowntagtypeattribute:${a}`);r.type=a;break}default:{r.attrs[s]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missingpatternattributefor${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"val