varL5=Object.create;varYm=Object.defineProperty;var_5=Object.getOwnPropertyDescriptor;varF5=Object.getOwnPropertyNames;varU5=Object.getPrototypeOf,O5=Object.prototype.hasOwnProperty;varo=(t,e)=>Ym(t,"name",{value:e,configurable:!0});varg=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),q5=(t,e)=>{for(varrine)Ym(t,r,{get:e[r],enumerable:!0})},H5=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsofF5(e))!O5.call(t,s)&&s!==r&&Ym(t,s,{get:()=>e[s],enumerable:!(n=_5(e,s))||n.enumerable});returnt};varQ=(t,e,r)=>(r=t!=null?L5(U5(t)):{},H5(e||!t||!t.__esModule?Ym(r,"default",{value:t,enumerable:!0}):r,t));varXD=g(ac=>{"use strict";varv0e=require("net"),V5=require("tls"),VC=require("http"),$D=require("https"),J5=require("events"),D0e=require("assert"),W5=require("util");ac.httpOverHttp=$5;ac.httpsOverHttp=j5;ac.httpOverHttps=K5;ac.httpsOverHttps=X5;function$5(t){vare=newsi(t);returne.request=VC.request,e}o($5,"httpOverHttp");functionj5(t){vare=newsi(t);returne.request=VC.request,e.createSocket=jD,e.defaultPort=443,e}o(j5,"httpsOverHttp");functionK5(t){vare=newsi(t);returne.request=$D.request,e}o(K5,"httpOverHttps");functionX5(t){vare=newsi(t);returne.request=$D.request,e.createSocket=jD,e.defaultPort=443,e}o(X5,"httpsOverHttps");functionsi(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||VC.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(varc=KD(s,i,a),l=0,A=e.requests.length;l<A;++l){varu=e.requests[l];if(u.host===c.host&&u.port===c.port){e.requests.splice(l,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(si,"TunnelingAgent");W5.inherits(si,J5.EventEmitter);si.prototype.addRequest=o(function(e,r,n,s){vari=this,a=JC({request:e},i.options,KD(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",A),c.on("agentRemove",A),e.onSocket(c);functionl(){i.emit("free",c,a)}o(l,"onFree");functionA(u){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",A),c.removeListener("agentRemove",A)}o(A,"onCloseOrRemove")})},"addRequest");si.prototype.createSocket=o(function(e,r){varn=this,s={};n.sockets.push(s);vari=JC({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+newBuffer(i.proxyAuth).toString("base64")),Yi("making CONNECT request");vara=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",A),a.once("error",u),a.end();functionc(d){d.upgrade=!0}o(c,"onResponse");functionl(d,m,p){process.nextTick(function(){A(d,m,p)})}o(l,"onUpgrade");functionA(d,m,p){if(a.removeAllListeners(),m.removeAllListeners(),d.statusCode!==200){Yi("tunneling socket could not be established, statusCode=%d",d.statusCode),m.destroy();varh=newError("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(p.length>0){Yi("got illegal response body from proxy"),m.destroy();varh=newError("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}returnYi("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}o(A,"onConnect");functionu(d){a.removeAllListeners(),Yi(`tunneling socket could not be established, cause=%s
`);m.push(f),i+=f.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let C of m)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(iM(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(UA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:fK(t)}if((typeof s=="string"||UA.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:d}=await l.next();if(d)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!lM(r)){let m=new Uint8Array(u);m.byteLength&&A.enqueue(m)}return A.desiredSize>0},async cancel(A){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(dM,"extractBody");function RK(t,e=!1){return t instanceof ReadableStream&&(XI(!UA.isDisturbed(t),"The body has already been consumed."),XI(!t.locked,"The stream is locked.")),dM(t,e)}o(RK,"safelyExtractBody");function PK(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(PK,"cloneBody");function vK(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(vK,"throwIfAborted");function DK(t){return{blob(){return Cc(this,r=>{let n=aM(this);return n===null?n="":n&&(n=wK(n)),new QK([r],{type:n})},t)},arrayBuffer(){return Cc(this,r=>new Uint8Array(r).buffer,t)},text(){return Cc(this,cM,t)},json(){return Cc(this,TK,t)},formData(){return Cc(this,r=>{let n=aM(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=NK(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new oM;return i[Ic]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new oM;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){returnCc(this,r=>newUint8Array(r),t)}}}o(DK,"bodyMixinMethods");functionkK(t){Object.assign(t.prototype,DK(t))}o(kK,"mixinBody");asyncfunctionCc(t,e,r){if(BK.brandCheck(t,r),mM(t))thrownewTypeError("Body is unusable: Body has already been read");vK(t[Ic]);letn=EK(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");returnt[Ic].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(awaitCK(t[Ic].body,i,s),n.promise)}o(Cc,"consumeBody");functionmM(t){lete=t[Ic].body;returne!=null&&(e.stream.locked||UA.isDisturbed(e.stream))}o(mM,"bodyUnusable");functionTK(t){returnJSON.parse(cM(t))}o(TK,"parseJSONFromBytes");functionaM(t){lete=t[Ic].headersList,r=IK(e);returnr==="failure"?null:r}o(aM,"bodyMimeType");pM.exports={extractBody:dM,safelyExtractBody:RK,cloneBody:PK,mixinBody:kK,streamRegistry:uM,hasFinalizationRegistry:AM,bodyUnusable:mM}});varPM=g((bNe,RM)=>{"use strict";varV=require("node:assert"),$=ce(),{channels:hM}=lc(),eB=MI(),{RequestContentLengthMismatchError:zo,ResponseContentLengthMismatchError:fM,RequestAbortedError:xM,InvalidArgumentError:MK,HeadersTimeoutError:LK,HeadersOverflowError:_K,SocketError:Qc,InformationalError:xc,BodyTimeoutError:FK,HTTPParserError:UK,ResponseExceededMaxSizeError:OK}=ye(),{kUrl:bM,kReset:cr,kClient:Bp,kParser:Me,kBlocking:HA,kRunning:dt,kPending:wM,kSize:gM,kWriting:Ji,kQueue:Dn,kNoRef:OA,kKeepAliveDefaultTimeout:qK,kHostHeader:HK,kPendingIdx:zK,kRunningIdx:sn,kError:Jt,kPipelining:Qp,kSocket:Yo,kKeepAliveTimeoutValue:bp,kMaxHeadersSize:tB,kKeepAliveMaxTimeout:GK,kKeepAliveTimeoutThreshold:YK,kHeadersTimeout:VK,kBodyTimeout:JK,kStrictContentLength:sB,kMaxRequests:yM,kCounter:WK,kMaxResponseSize:$K,kOnError:EM,kResume:Ai,kHTTPContext:NM}=Oe(),Pr=uT(),CM=Buffer.alloc(0),Ep=Buffer[Symbol.species],Cp=$.addListener,jK=$.removeAllListeners,Vo=Symbol("kIdleSocketValidation"),Go=Symbol("kIdleSocketValidationTimeout"),cB=Symbol("kSocketUsed"),rB;asyncfunctionKK(){lett=process.env.JEST_WORKER_ID?FI():void0,e;try{e=awaitWeb
`}return hM.sendHeaders.hasSubscribers&&hM.sendHeaders.publish({request:e,headers:f,socket:p}),!l||m===0?BM(h,null,t,e,p,u,f,d):$.isBuffer(l)?BM(h,l,t,e,p,u,f,d):$.isBlobLike(l)?typeof l.stream=="function"?QM(h,l.stream(),t,e,p,u,f,d):iX(h,l,t,e,p,u,f,d):$.isStream(l)?sX(h,l,t,e,p,u,f,d):$.isIterable(l)?QM(h,l,t,e,p,u,f,d):V(!1),!0}o(nX,"writeH1");function sX(t,e,r,n,s,i,a,c){V(i!==0||r[dt]===0,"stream body cannot be pipelined");let l=!1,A=new wp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),u=o(function(h){if(!l)try{!A.write(h)&&this.pause&&this.pause()}catch(f){$.destroy(this,f)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),m=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let h=new xM;queueMicrotask(()=>p(h))}},"onClose"),p=o(function(h){if(!l){if(l=!0,V(s.destroyed||s[Ji]&&r[dt]<=1),s.off("drain",d).off("error",p),e.removeListener("data",u).removeListener("end",p).removeListener("close",m),!h)try{A.end()}catch(f){h=f}A.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?$.destroy(e,h):$.destroy(e)}},"onFinished");e.on("data",u).on("end",p).on("error",p).on("close",m),e.resume&&e.resume(),s.on("drain",d).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(m)}o(sX,"writeStream");function BM(t,e,r,n,s,i,a,c){try{e?$.isBuffer(e)&&(V(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length:${i}\r
`,"latin1")),n.onRequestSent(),r[Ai]()}catch(l){t(l)}}o(BM,"writeBuffer");async function iX(t,e,r,n,s,i,a,c){V(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new zo;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length:${i}\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[cr]=!0),r[Ai]()}catch(l){t(l)}}o(iX,"writeBlob");async function QM(t,e,r,n,s,i,a,c){V(i!==0||r[dt]===0,"iterator body cannot be pipelined");let l=null;function A(){if(l){let m=l;l=null,m()}}o(A,"onDrain");let u=o(()=>new Promise((m,p)=>{V(l===null),s[Jt]?p(s[Jt]):l=m}),"waitForDrain");s.on("close",A).on("drain",A);let d=new wp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let m of e){if(s[Jt])throw s[Jt];d.write(m)||await u()}d.end()}catch(m){d.destroy(m)}finally{s.off("close",A).off("drain",A)}}o(QM,"writeIterable");var wp=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Ji]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Jt])throw r[Jt];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&a+A>s){if(i[sB])throw new zo;process.emitWarning(new zo)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[cr]=!0),s===null?r.write(`${l}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[sB])throw new zo;process.emitWarning(new zo)}e[Me].timeout&&e[Me].timeoutType===bc&&e[Me].timeout.refresh&&e[Me].timeout.refresh(),n[Ai]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Ji]=!1,e&&(V(n[dt]<=1,"pipeline should only contain this request"),s(e))}};RM.exports=ZK});var FM=g((NNe,_M)=>{"use strict";var on=require("node:assert"),{pipeline:oX}=require("node:stream"),me=ce(),{RequestContentLengthMismatchError:lB,RequestAbortedError:vM,SocketError:zA,InformationalError:AB}=ye(),{kUrl:Np,kReset:Rp,kClient:wc,kRunning:Pp,kPending:aX,kQueue:Wi,kPendingIdx:uB,kRunningIdx:kn,kError:Mn,kSocket:wt,kStrictContentLength:cX,kOnError:dB,kMaxConcurrentStreams:LM,kHTTP2Session:Tn,kResume:$i,kSize:lX,kHTTPContext:AX}=Oe(),ui=Symbol("open streams"),DM,kM=!1,Sp;try{Sp=require("node:http2")}catch{Sp={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:uX,HTTP2_HEADER_METHOD:dX,HTTP2_HEADER_PATH:mX,HTTP2_HEADER_SCHEME:pX,HTTP2_HEADER_CONTENT_LENGTH:hX,HTTP2_HEADER_EXPECT:fX,HTTP2_HEADER_STATUS:gX}}=Sp;function yX(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(yX,"parseH2Headers");async function EX(t,e){t[wt]=e,kM||(kM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Sp.connect(t[Np],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[LM]});r[ui]=0,r[wc]=t,r[wt]=e,me.addListener(r,"error",IX),me.addListener(r,"frameError",BX),me.addListener(r,"end",QX),me.addListener(r,"goaway",xX),me.addListener(r,"close",function(){let{[wc]:s}=this,{[wt]:i}=s,a=this[wt][Mn]||this[Mn]||new zA("closed",me.getSocketInfo(i));if(s[Tn]=null,s.destroyed){on(s[aX]===0);let c=s[Wi].splice(s[kn]);for(let l=0;l<c.length;l++){let A=c[l];me.errorRequest(s,A,a)}}}),r.unref(),t[Tn]=r,e[Tn]=r,me.addListener(e,"error",function(s){on(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Mn]=s,this[wc][dB](s)}),me.addListener(e,"end",function(){me.destroy(this,new zA("other side closed",me.getSocketInfo(this)))}),me.addListener(e,"close",function(){let s=this[Mn]||new zA("closed",me.getSocketInfo(this));t[wt]=null,this[Tn]!=null&&this[Tn].destroy(s),t[uB]=t[kn],on(t[Pp]===0),t.emit("disconnect",t[Np],[t],s),t[$i]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return wX(t,...s)},resume(){CX(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(EX,"connectH2");function CX(t){let e=t[wt];e?.destroyed===!1&&(t[lX]===0&&t[LM]===0?(e.unref(),t[Tn].unref()):(e.ref(),t[Tn].ref()))}o(CX,"resumeH2");function IX(t){on(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wt][Mn]=t,this[wc][dB](t)}o(IX,"onHttp2SessionError");function BX(t,e,r){if(r===0){let n=new AB(`HTTP/2:"frameError"received-type${t},code${e}`);this[wt][Mn]=n,this[wc][dB](n)}}o(BX,"onHttp2FrameError");function QX(){let t=new zA("other side closed",me.getSocketInfo(this[wt]));this.destroy(t),me.destroy(this[wt],t)}o(QX,"onHttp2SessionEnd");function xX(t){let e=this[Mn]||new zA(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,me.getSocketInfo(this)),r=this[wc];if(r[wt]=null,r[AX]=null,this[Tn]!=null&&(this[Tn].destroy(e),this[Tn]=null),me.destroy(this[wt],e),r[kn]<r[Wi].length){let n=r[Wi][r[kn]];r[Wi][r[kn]++]=null,me.errorRequest(r,n,e),r[uB]=r[kn]}on(r[Pp]===0),r.emit("disconnect",r[Np],[r],e),r[$i]()}o(xX,"onHTTP2GoAway");function bX(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(bX,"shouldSendContentLength");function wX(t,e){let r=t[Tn],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:A}=e,{body:u}=e;if(a)return me.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<A.length;B+=2){let N=A[B+0],S=A[B+1];if(Array.isArray(S))for(let F=0;F<S.length;F++)d[N]?d[N]+=`,${S[F]}`:d[N]=S[F];else d[N]=S}let m,{hostname:p,port:h}=t[Np];d[uX]=i||`${p}${h?`:${h}`:""}`,d[dX]=n;let f=o(B=>{e.ab
`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(i))c+=`${m}: ${i[m]}\r
`)+4,e.outputData[0].data=e._header+n.substring(s),bl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(bl("Creating `tls.Socket`: %o",this.connectOpts),i=Gpe.connect(this.connectOpts)):(bl("Creating `net.Socket`: %o",this.connectOpts),i=zpe.connect(this.connectOpts)),await(0,Vpe.once)(i,"connect"),i}};ig.protocols=["http","https"];En.HttpProxyAgent=ig;function Wpe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(Wpe,"omit")});var aV=g(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.state=void 0;Eg.state={instrumenterImplementation:void 0}});var xV=g(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});xg.state=void 0;xg.state={operationRequestMap:new WeakMap}});var r4=g(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var pCe=require("os"),hCe=require("util");function fCe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(fCe,"_interopDefaultLegacy");var gCe=fCe(hCe);function yCe(t,...e){process.stderr.write(`${gCe.default.format(t,...e)}${pCe.EOL}`)}o(yCe,"log");var V3=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,W3,JR=[],WR=[],zy=[];V3&&$R(V3);var $3=Object.assign(t=>j3(t),{enable:$R,enabled:jR,disable:ECe,log:yCe});function $R(t){W3=t,JR=[],WR=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?WR.push(new RegExp(`^${n.substr(1)}$`)):JR.push(new RegExp(`^${n}$`));for(let n of zy)n.enabled=jR(n.namespace)}o($R,"enable");function jR(t){if(t.endsWith("*"))return!0;for(let e of WR)if(e.test(t))return!1;for(let e of JR)if(e.test(t))return!0;return!1}o(jR,"enabled");function ECe(){let t=W3||"";return $R(""),t}o(ECe,"disable");function j3(t){let e=Object.assign(r,{enabled:jR(t),destroy:CCe,log:$3.log,namespace:t,extend:ICe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return o(r,"debug"),zy.push(e),e}o(j3,"createDebugger");function CCe(){let t=zy.indexOf(this);return t>=0?(zy.splice(t,1),!0):!1}o(CCe,"destroy");function ICe(t){let e=j3(`${this.namespace}:${t}`);return e.log=this.log,e}o(ICe,"extend");var Zd=$3,K3=new Set,qy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Gy,Yy=Zd("azure");Yy.log=(...t)=>{Zd.log(...t)};var KR=["verbose","info","warning","error"];qy&&(t4(qy)?X3(qy):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${qy}';loggingisnotenabled.Acceptablevalues:${KR.join(", ")}.`));function X3(t){if(t&&!t4(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${KR.join(",")}`);Gy=t;let e=[];for(let r of K3)e4(r)&&e.push(r.namespace);Zd.enable(e.join(","))}o(X3,"setLogLevel");function BCe(){return Gy}o(BCe,"getLogLevel");var J3={verbose:400,info:300,warning:200,error:100};function QCe(t){let e=Yy.extend(t);return Z3(Yy,e),{error:Hy(e,"error"),warning:Hy(e,"warning"),info:Hy(e,"info"),verbose:Hy(e,"verbose")}}o(QCe,"createClientLogger");function Z3(t,e){e.log=(...r)=>{t.log(...r)}}o(Z3,"patchLogMethod");function Hy(t,e){let r=Object.assign(t.extend(e),{level:e});if(Z3(t,r),e4(r)){let n=Zd.disable();Zd.enable(n+","+r.namespace)}return K3.add(r),r}o(Hy,"createLogger");function e4(t){return!!(Gy&&J3[t.level]<=J3[Gy])}o(e4,"shouldEnable");function t4(t){return KR.includes(t)}o(t4,"isAzureLogLevel");zl.AzureLogger=Yy;zl.createClientLogger=QCe;zl.getLogLevel=BCe;zl.setLogLevel=X3});var eP=g(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});var Gl=new WeakMap,Vy=new WeakMap,em=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Gl.set(this,[]),Vy.set(this,!1)}get aborted(){if(!Vy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Vy.get(this)}static get none(){return new t}addEventListener(e,r){if(!Gl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Gl.get(this).push(r)}removeEventListener(e,r){if(!Gl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Gl.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){thro
Polling status: ${d4.includes(u)?"Stopped":"Running"}`),u==="succeeded"){letd=a(A,r);if(d!==void0)return{response:awaite(d).catch(A4({state:r,stateProxy:n,isOperationError:c})),status:u}}return{response:A,status:u}}o(ZCe,"pollOperationHelper");asyncfunctionf4(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:A,getPollingInterval:u,processResult:d,getError:m,updateState:p,setDelay:h,isDone:f,setErrorAsResult:C}=t,{operationLocation:y}=r.config;if(y!==void0){let{response:E,status:I}=awaitZCe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:s});if(p4({status:I,response:E,state:r,stateProxy:n,isDone:f,processResult:d,getError:m,setErrorAsResult:C}),!d4.includes(I)){letB=u?.(E);B&&h(B);letN=c?.(E,r);if(N!==void0){letS=y!==N;r.config.operationLocation=N,A?.(N,S)}elseA?.(y,!1)}p?.(r,E)}}o(f4,"pollOperation");functiong4(t){let{azureAsyncOperation:e,operationLocation:r}=t;returnr??e}o(g4,"getOperationLocationPollingUrl");functiony4(t){returnt.headers.location}o(y4,"getLocationHeader");functionE4(t){returnt.headers["operation-location"]}o(E4,"getOperationLocationHeader");functionC4(t){returnt.headers["azure-asyncoperation"]}o(C4,"getAzureAsyncOperationHeader");functioneIe(t){vare;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":returns;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void0?e:s;default:returna()}functiona(){switch(i){case"azure-async-operation":return;case"original-uri":returns;default:returnr}}o(a,"getDefault")}o(eIe,"findResourceLocation");functionI4(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=E4(e),a=C4(e),c=g4({operationLocation:i,azureAsyncOperation:a}),l=y4(e),A=r?.toLocaleUpperCase();returnc!==void0?{mode:"OperationLocation",operationLocation:c,resourceLocation:eIe({requestMethod:A,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void0?{mode:"ResourceLocation",operationLocation:l}:A==="PUT"&&n?{mode:"Body",operationLocation:n}:void0}o(I4,"inferLroMode");functionB4(t){let{status:e,statusCode:r}=t;if(typeofe!="string"&&e!==void0)thrownewError(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){casevoid0:returnuP(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:returnza.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(B4,"transformStatus");functiontIe(t){vare;let{status:r}=(e=t.body)!==null&&e!==void0?e:{};returnB4({status:r,statusCode:t.statusCode})}o(tIe,"getStatus");functionrIe(t){vare,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void0?e:{},i=(r=n?.provisioningState)!==null&&r!==void0?r:s;returnB4({status:i,statusCode:t.statusCode})}o(rIe,"getProvisioningState");functionuP(t){returnt===202?"running":t<300?"succeeded":"failed"}o(uP,"toOperationStatus");functionQ4({rawResponse:t}){lete=t.headers["retry-after"];if(e!==void0){letr=parseInt(e);returnisNaN(r)?nIe(newDate(e)):r*1e3}}o(Q4,"parseRetryAfter");functionx4(t){lete=t.flatResponse.error;if(!e){za.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){za.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}returne}o(x4,"getErrorFromResponse");functionnIe(t){lete=Math.floor(newDate().getTime()),r=t.getTime();if(e<r)returnr-e}o(nIe,"calculatePollingIntervalFromDate");functionb4(t){let{response:e,state:r,operationLocation:n}=t;functions(){vara;switch((a=r.config.metadata)===null
`)}};OE.RpcError=jP});varXP=g(HE=>{"use strict";Object.defineProperty(HE,"__esModule",{value:!0});HE.mergeRpcOptions=void0;varFW=At();functionCQe(t,e){if(!e)returnt;letr={};qE(t,r),qE(e,r);for(letnofObject.keys(e)){lets=e[n];switch(n){case"jsonOptions":r.jsonOptions=FW.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=FW.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},qE(t.meta,r.meta),qE(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}returnr}o(CQe,"mergeRpcOptions");HE.mergeRpcOptions=CQe;functionqE(t,e){if(!t)return;letr=e;for(let[n,s]ofObject.entries(t))sinstanceofDate?r[n]=newDate(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(qE,"copy")});varev=g(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.Deferred=Wa.DeferredState=void0;varXs;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Xs=Wa.DeferredState||(Wa.DeferredState={}));varZP=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Xs.PENDING,this._promise=newPromise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}getstate(){returnthis._state}getpromise(){returnthis._promise}resolve(e){if(this.state!==Xs.PENDING)thrownewError(`cannot resolve ${Xs[this.state].toLowerCase()}`);this._resolve(e),this._state=Xs.RESOLVED}reject(e){if(this.state!==Xs.PENDING)thrownewError(`cannot reject ${Xs[this.state].toLowerCase()}`);this._reject(e),this._state=Xs.REJECTED}resolvePending(e){this._state===Xs.PENDING&&this.resolve(e)}rejectPending(e){this._state===Xs.PENDING&&this.reject(e)}};Wa.Deferred=ZP});varrv=g(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.RpcOutputStreamController=void0;varUW=ev(),$a=At(),tv=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){returnthis.addLis(e,this._lis.nxt)}onMessage(e){returnthis.addLis(e,this._lis.msg)}onError(e){returnthis.addLis(e,this._lis.err)}onComplete(e){returnthis.addLis(e,this._lis.cmp)}addLis(e,r){returnr.push(e),()=>{letn=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(leteofObject.values(this._lis))e.splice(0,e.length)}getclosed(){returnthis._closed!==!1}notifyNext(e,r,n){$a.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){$a.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void0,!1))}notifyError(e){$a.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void0,e,!1)),this.clearLis()}notifyComplete(){$a.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void0,void0,!0)),this.clearLis()}[Symbol.asyncIterator](){returnthis._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{lete=this._itState;$a.assert(e,"bad state"),$a.assert(!e.p,"iterator contract broken");letr=e.q.shift();returnr?"value"inr?Promise.resolve(r):Promise.reject(r):(e.p=newUW.Deferred,e.p.promise)},"next")}}pushIt(e){letr=this._itState;if(r.p){letn=r.p;$a.assert(n.state==UW.DeferredState.PENDING,"iterator contract broken"),"value"ine?n.resolve(e):n.reject(e),deleter.p}elser.q.push(e)}};zE.RpcOutputStreamController=tv});varsv=g(nA=>{"use strict";varIQe=nA&&nA.__awaiter||function(t,e,r,n){functions(i){returniinstanceofr?i:newr(function(a){a(i)})}returno(s,"adopt"),new(r||(r=Promise))(function(i,a){functionc(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");functionl(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");functionA(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};Object.defineProperty(nA
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Cbe,"logUnexpecedPropertyAccessOnce");function Ibe(){Object.keys(mC).forEach(function(t){delete mC[t]})}o(Ibe,"resetLoggedProperties")});var hC=g(ti=>{"use strict";ti.__esModule=!0;ti.HandlebarsEnvironment=oD;function a$(t){return t&&t.__esModule?t:{default:t}}o(a$,"_interopRequireDefault");var rc=or(),Bbe=tn(),sD=a$(Bbe),Qbe=eD(),xbe=n$(),bbe=rD(),pC=a$(bbe),wbe=nD(),Nbe="4.7.9";ti.VERSION=Nbe;var Sbe=8;ti.COMPILER_REVISION=Sbe;var Rbe=7;ti.LAST_COMPATIBLE_COMPILER_REVISION=Rbe;var Pbe={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"};ti.REVISION_CHANGES=Pbe;var iD="[object Object]";function oD(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Qbe.registerDefaultHelpers(this),xbe.registerDefaultDecorators(this)}o(oD,"HandlebarsEnvironment");oD.prototype={constructor:oD,logger:pC.default,log:pC.default.log,registerHelper:o(function(e,r){if(rc.toString.call(e)===iD){if(r)throw new sD.default("Arg not supported with multiple helpers");rc.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(rc.toString.call(e)===iD)rc.extend(this.partials,e);else{if(typeof r>"u")throw new sD.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(rc.toString.call(e)===iD){if(r)throw new sD.default("Arg not supported with multiple decorators");rc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){wbe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var vbe=pC.default.log;ti.log=vbe;ti.createFrame=rc.createFrame;ti.logger=pC.default});var l$=g((fC,c$)=>{"use strict";fC.__esModule=!0;function aD(t){this.string=t}o(aD,"SafeString");aD.prototype.toString=aD.prototype.toHTML=function(){return""+this.string};fC.default=aD;c$.exports=fC.default});var A$=g(cD=>{"use strict";cD.__esModule=!0;cD.wrapHelper=Dbe;function Dbe(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(Dbe,"wrapHelper")});var f$=g(Lo=>{"use strict";Lo.__esModule=!0;Lo.checkRevision=Fbe;Lo.template=Ube;Lo.wrapProgram=gC;Lo.resolvePartial=Obe;Lo.invokePartial=qbe;Lo.noop=p$;function kbe(t){return t&&t.__esModule?t:{default:t}}o(kbe,"_interopRequireDefault");function Tbe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(Tbe,"_interopRequireWildcard");var Mbe=or(),hA=Tbe(Mbe),Lbe=tn(),Oi=kbe(Lbe),qi=hC(),u$=eD(),_be=A$(),d$=nD();function Fbe(t){var e=t&&t[0]||1,r=qi.COMPILER_REVISION;if(!(e>=qi.LAST_COMPATIBLE_COMPILER_REVISION&&e<=qi.COMPILER_REVISION))if(e<qi.LAST_COMPATIBLE_COMPILER_REVISION){var n=qi.REVISION_CHANGES[r],s=qi.REVISION_CHANGES[e];throw new Oi.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Oi.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(Fbe,"checkRevision");function Ube(t,e){if(!e)throw new Oi.default("No environment passed to template");if(!t||!t.main)throw new Oi.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=hA.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.ca
Expecting `+ee.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Yt="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Yt,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:ee})}}if(F[0]instanceofArray&&F.length>1)thrownewError("Parse Error: multiple actions possible at state: "+S+", token: "+B);switch(F[0]){case1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(F[1]),B=null,N?(B=N,N=null):(m=this.lexer.yyleng,u=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,p>0&&p--);break;case2:if(ae=this.productions_[F[1]][1],Be.$=c[c.length-ae],Be._$={first_line:l[l.length-(ae||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ae||1)].first_column,last_column:l[l.length-1].last_column},y&&(Be._$.range=[l[l.length-(ae||1)].range[0],l[l.length-1].range[1]]),be=this.performAction.call(Be,u,m,d,this.yy,F[1],c,l),typeofbe<"u")returnbe;ae&&(a=a.slice(0,-1*ae*2),c=c.slice(0,-1*ae),l=l.slice(0,-1*ae)),a.push(this.productions_[F[1]][0]),c.push(Be.$),l.push(Be._$),De=A[a[a.length-2]][a[a.length-1]],a.push(De);break;case3:return!0}}return!0},"parse")},e=(function(){varn={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);elsethrownewError(i)},"parseError"),setInput:o(function(i){returnthis._input=i,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:o(function(){vari=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;vara=i.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),i},"input"),unput:o(function(i){vara=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;varl=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);varA=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===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-a]),this},"unput"),more:o(function(){returnthis._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){vari=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){vari=this.match;returni.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){vari=this.pastInput(),a=newArray(i.length+1).join("-");returni+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)returnthis.EOF;this._input||(this.done=!0);vari,a,c,l,A,u;this._more||(this.yytext="",this.match="");for(vard=this._currentRules(),m=0;m<d.length&&(c=this._input.match(this.rules[d[m]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=m,!this.options.flex)));m++);returna?(u=a[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],i=this.performAction.call(this,this.yy,this,d[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||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:o(function(){vari=this.next();returntypeofi<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){returnthis.conditionStack.pop()},"popState"),_currentRules:o(function(){returnthis.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){returnthis.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};returnn.options={},n.performAction=o(function(i,a,c,l){functionA(d,m){returna.yytext=a.yytext.substring(d,a.yyleng-m+d)}o(A,"strip");varu=l;switch(c){case0:if(a.yytext.slice(-2)==="\\\\"?(A(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(A(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:(A(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=A(1,2).replace(/\\"/g,'"'),80;break;case32:returna.yytext=A(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={}}returno(r,"Parser"),r.prototype=t,t.Parser=r,newr})();BC.default=Zbe;b$.exports=BC.default});varwC=g((bC,R$)=>{"use strict";bC.__esModule=!0;functionewe(t){returnt&&t.__esModule?t:{default:t}}o(ewe,"_interopRequireDefault");vartwe=tn(),pD=ewe(twe);functionQC(){this.parents=[]}o(QC,"Visitor");QC.prototype={constructor:QC,mutating:!1,acceptKey:o(function(e,r){varn=this.accept(e[r]);if(this.mutating){if(n&&!QC.prototype[n.type])thrownewpD.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acc
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new oc(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof oc?e:(e=LD(e,this,r),new oc(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(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:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=LD(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(LD(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};TC.default=A5;u5.exports=TC.default});var g5=g((MC,f5)=>{"use strict";MC.__esModule=!0;function h5(t){return t&&t.__esModule?t:{default:t}}o(h5,"_interopRequireDefault");var m5=hC(),Xwe=tn(),FD=h5(Xwe),Zwe=or(),e0e=d5(),p5=h5(e0e);function IA(t){this.value=t}o(IA,"Literal");function BA(){}o(BA,"JavaScriptCompiler");BA.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=m5.COMPILER_REVISION,r=m5.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return Zwe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,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 i=e.opcodes,a=void 0,c=void 0,l=void 0,A=void 0;for(l=0,A=i.length;l<A;l++)a=i[l],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 FD.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(),`;
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}o(Mx,"getBooleanInput");functionWU(t,e){if(process.env.GITHUB_OUTPUT||"")returnGC("OUTPUT",YC(t,e));process.stdout.write(Tx.EOL),Gi("set-output",{name:t},ni(e))}o(WU,"setOutput");function$U(t){process.exitCode=kx.Failure,cl(t)}o($U,"setFailed");functionpa(){returnprocess.env.RUNNER_DEBUG==="1"}o(pa,"isDebug");functionb(t){Gi("debug",{},t)}o(b,"debug");functioncl(t,e={}){Gi("error",qC(e),tinstanceofError?t.toString():t)}o(cl,"error");functionht(t,e={}){Gi("warning",qC(e),tinstanceofError?t.toString():t)}o(ht,"warning");functionle(t){process.stdout.write(t+Tx.EOL)}o(le,"info");functiongoe(t){zC("group",t)}o(goe,"startGroup");functionyoe(){zC("endgroup")}o(yoe,"endGroup");functionfs(t,e){returnfoe(this,void0,void0,function*(){goe(t);letr;try{r=yielde()}finally{yoe()}returnr})}o(fs,"group");functionJh(t,e){if(process.env.GITHUB_STATE||"")returnGC("STATE",YC(t,e));Gi("save-state",{name:t},ni(e))}o(Jh,"saveState");functionjU(t){returnprocess.env[`STATE_${t}`]||""}o(jU,"getState");varbm=Q(require("fs"),1),qv=Q(require("os"),1),Hv=Q(require("path"),1);varXU=Q(require("os"),1);functionDu(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}o(Du,"toCommandValue");functionZU(t,e,r){letn=newLx(t,e,r);process.stdout.write(n.toString()+XU.EOL)}o(ZU,"issueCommand");varKU="::",Lx=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=KU+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){lets=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Coe(s)}`)}}returne+=`${KU}${Eoe(this.message)}`,e}};functionEoe(t){returnDu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Eoe,"escapeData");functionCoe(t){returnDu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Coe,"escapeProperty");vartO=require("os"),ku=require("fs");var_x=function(t,e,r,n){functions(i){returniinstanceofr?i:newr(function(a){a(i)})}returno(s,"adopt"),new(r||(r=Promise))(function(i,a){functionc(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");functionl(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");functionA(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},{access:Ioe,appendFile:Boe,writeFile:Qoe}=ku.promises,eO="GITHUB_STEP_SUMMARY";varFx=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return_x(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[eO];if(!e)thrownewError(`Unable to find environment variable for $${eO}. Check if your runtime environment supports job summaries.`);try{yieldIoe(e,ku.constants.R_OK|ku.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={}){lets=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");returnr?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return_x(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?Qoe:Boe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return_x(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(tO.EOL)}addCodeBlock(e,r){letn=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);returnthis.addRaw(s).addEOL()}addList(e,r=!1){letn=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);returnthis.addRaw(i).addEOL()}addTable(e){letr=e.map(s=>{leti=s.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);let{header:c,data:l,colspan:A,rowspan:u}=a
`,"utf-8")],s=che(n);s&&t.headers.set("Content-Length",s),t.body=await$Y(n)}o(lhe,"buildRequestBody");varmd="multipartPolicy",Ahe=70,uhe=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functiondhe(t){if(t.length>Ahe)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!uhe.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}o(dhe,"assertValidBoundary");functiondg(){return{name:md,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",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)thrownewError(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;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?dhe(r):r=ihe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),awaitlhe(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}o(dg,"multipartPolicy");functionmg(){returnLf()}o(mg,"createEmptyPipeline");varjY=kf({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),mUe=jY.logger;functionxs(t){returnjY.createClientLogger(t)}o(xs,"createClientLogger");varbs=xs("core-rest-pipeline");functionBw(t={}){returnHf({logger:bs.info,...t})}o(Bw,"logPolicy");varQw=zf;functionxw(t={}){returnGf(t)}o(xw,"redirectPolicy");varpg=Q(require("node:os"),1),hg=Q(require("node:process"),1);functionKY(){return"User-Agent"}o(KY,"getHeaderName");asyncfunctionXY(t){if(hg.default&&hg.default.versions){lete=`${pg.default.type()}${pg.default.release()}; ${pg.default.arch()}`,r=hg.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})`)}}o(XY,"setPlatformSpecificData");varfg="1.22.2";functionChe(t){lete=[];for(let[r,n]oft){lets=n?`${r}/${n}`:r;e.push(s)}returne.join(" ")}o(Che,"getUserAgentString");functionZY(){returnKY()}o(ZY,"getUserAgentHeaderName");asyncfunctiongg(t){lete=newMap;e.set("core-rest-pipeline",fg),awaitXY(e);letr=Che(e);returnt?`${t}${r}`:r}o(gg,"getUserAgentValue");vareV=ZY(),tV="userAgentPolicy";functionbw(t={}){lete=gg(t.userAgentPrefix);return{name:tV,asyncsendRequest(r,n){returnr.headers.has(eV)||r.headers.set(eV,awaite),n(r)}}}o(bw,"userAgentPolicy");varVr=classextendsError{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};functionww(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};returnnewPromise((i,a)=>{functionc(){a(newVr(s??"The operation was aborted."))}o(c,"rejectOnAbort");functionl(){n?.removeEventListener("abort",A)}o(l,"removeListeners");functionA(){r?.(),l(),c()}if(o(A,"onAbort"),n?.aborted)returnc();try{t(u=>{l(),i(u)},u=>{l(),a(u)})}catch(u){a(u)}n?.addEventListener("abort",A)})}o(ww,"createAbortablePromise");varbhe="The delay was aborted.";functionpd(t,e){letr,{abortSignal:n,abortErrorMsg:s}=e??{};returnww(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??bhe})}o(pd,"delay");functionIo(t){if(Ia(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}`}}o(Io,"getErrorMessage");functionrV(t){returnIa(t)}o(rV,"isError");functionwl(){returnCa()}o(wl,"randomUUID");varCe=xa;varnV=Symbol("rawContent");functionSw(t){returntypeoft[nV]=="function"}o(Sw,"hasRawContent");functionsV(t){returnSw(t)?t[nV]():t}o(sV,"getRawContent");varyg=md;functionRw(){lett=dg();return{name:yg,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(letnofe.multipartBody.parts)Sw(n.body)&&(n.body=sV(n.body));returnt.sendRequest(e,r)},"sendRequest")}}o(Rw,"multipartPolicy");varPw=Yf;functionvw(){returnVf()}o(vw,"decompressResponsePolicy");functionDw(t={}){return$f(t
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!$fe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",at("InvalidTag",d,nr(t,i))}let A=Gfe(t,i);if(A===!1)return at("InvalidAttr","Attributes for '"+l+"' have open quote.",nr(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let d=i-u.length;u=u.substring(0,u.length-1);let m=zV(u,e);if(m===!0)n=!0;else return at(m.err.code,m.err.msg,nr(t,d+m.err.line))}else if(c)if(A.tagClosed){if(u.trim().length>0)return at("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",nr(t,a));if(r.length===0)return at("InvalidTag","Closing tag '"+l+"' has not been opened.",nr(t,a));{let d=r.pop();if(l!==d.tagName){let m=nr(t,d.tagStartPos);return at("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",nr(t,a))}r.length==0&&(s=!0)}}else return at("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",nr(t,i));else{let d=zV(u,e);if(d!==!0)return at(d.err.code,d.err.msg,nr(t,i-u.length+d.err.line));if(s===!0)return at("InvalidXml","Multiple possible root nodes found.",nr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=HV(t,i);continue}else if(t[i+1]==="?"){if(i=qV(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=Jfe(t,i);if(d==-1)return at("InvalidChar","char '&' is not expected.",nr(t,i));i=d}else if(s===!0&&!OV(t[i]))return at("InvalidXml","Extra text at the end",nr(t,i));t[i]==="<"&&i--}}else{if(OV(t[i]))continue;return at("InvalidChar","char '"+t[i]+"' is not expected.",nr(t,i))}if(n){if(r.length==1)return at("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",nr(t,r[0].tagStartPos));if(r.length>0)return at("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return at("InvalidXml","Start tag expected.",1);return!0}o(vg,"validate");function OV(t){return t===" "||t===" "||t===`
`||t==="\r"}o(OV,"isWhiteSpace");function qV(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 at("InvalidXml","XML declaration allowed only at the start of the document.",nr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(qV,"readPI");function HV(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}o(HV,"readCommentAndCDATA");var Hfe='"',zfe="'";function Gfe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Hfe||t[e]===zfe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(Gfe,"readAttributeStr");var Yfe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function zV(t,e){let r=Rg(t,Yfe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return at("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",wd(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return at("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",wd(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return at("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",wd(r[s]));let i=r[s][2];if(!Wfe(i))return at("InvalidAttr","Attribute '"+i+"' is an invalid name.",wd(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return at("InvalidAttr","Attribute '"+i+"' is repeated.",wd(r[s]))}return!0}o(zV,"validateAttributeString");function Vfe(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}o(Vfe,"validateNumberAmpersand");function Jfe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Vfe(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}o(Jfe,"validateAmpersand");function at(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(at,"getErrorObject");function Wfe(t){return r0(t)}o(Wfe,"validateAttrName");function $fe(t){return r0(t)}o($fe,"validateTagName");function nr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(nr,"getLineNumberForPosition");function wd(t){return t.startIndex+t[1].length}o(wd,"getPositionFromMatch");var GV={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"},YV={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1"
`);let e=new Cr("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Rd(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let A=t.charCodeAt(c+1);if(A===47){let u=Dl(t,">",c,"ClosingTagisnotclosed."),d=t.substring(c+2,u).trim();if(s.removeNSPrefix){let p=d.indexOf(":");p!==-1&&(d=d.substr(p+1))}d=A0(s.transformTagName,d,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(d&&s.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);m&&s.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=u}else if(A===63){let u=u0(t,c,!1,"?>");if(!u)throw new Error("PiTagisnotclosed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(d){let m=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),i.setXmlVersion(Number(m)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let m=new Cr(u.tagName);m.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(m[":@"]=d),this.addChild(r,m,this.readonlyMatcher,c)}c=u.closeIndex+1}else if(A===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let u=Dl(t,"-->",c+4,"Commentisnotclosed.");if(s.commentPropName){let d=t.substring(c+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:d}])}c=u}else if(A===33&&t.charCodeAt(c+2)===68){let u=i.readDocType(t,c);this.entityDecoder.addInputEntities(u.entities),c=u.i}else if(A===33&&t.charCodeAt(c+2)===91){let u=Dl(t,"]]>",c,"CDATAisnotclosed.")-2,d=t.substring(c+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let m=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:d}]):r.add(s.textNodeName,m),c=u+2}else{let u=u0(t,c,s.removeNSPrefix);if(!u){let S=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${S}"`)}let d=u.tagName,m=u.rawTagName,p=u.tagExp,h=u.attrExpPresent,f=u.closeIndex;if({tagName:d,tagExp:p}=A0(s.transformTagName,d,p,s),s.strictReservedNames&&(d===s.commentPropName||d===s.cdataPropName||d===s.textNodeName||d===s.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let C=r;C&&s.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),p=d):p=p.substr(0,p.length-1),h=d!==p);let E=null,I={},B;B=yge(m),d!==e.tagname&&this.matcher.push(d,{},B),d!==p&&h&&(E=this.buildAttributesMap(p,this.matcher,d),E&&(I=gge(E,s))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let S="";if(y)c=u.closeIndex;else if(s.unpairedTagsSet.has(d))c=u.closeIndex;else{let de=this.readStopNodeData(t,m,f+1);if(!de)throw new Error(`Unexpected end of ${m}`);c=de.i,S=de.tagContent}let F=new Cr(d);E&&(F[":@"]=E),F.add(s.textNodeName,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,N)}else{if(y){({tagName:d,tagExp:p}=A0(s.transformTagName,d,p,s));let S=new Cr(d);E&&(S[":@"]=E),this.addChild(r,S,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(d)){let S=new Cr(d);E&&(S[":@"]=E),this.addChild(r,S,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=u.closeIndex;continue}else{let S=new Cr(d);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),E&&(S[":@"]=E),this.addChild(r,S,this.readonlyMatcher,N),r=S}n="",c=f}}}else n+=t[c];return e.child},"parse
${c}:${decodeURIComponent(i[c])}`}returnn}};varje=classextendsDa{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewTd(e,r,this)}computeHMACSHA256(e){return(0,BJ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varEt=xs("storage-common");varCn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Cn||(Cn={}));varNo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Cn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},Kge=newVr("The operation was aborted."),Md=classextendsRs{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=No){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:No.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):No.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:No.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:No.maxRetryDelayInMs):No.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:No.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:No.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,n){lets=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=zg(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=wo(s.url,Ni.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leta;try{if(Et.info(`RetryPolicy: =====> Try=${n}${i?"Primary":"Secondary"}`),a=awaitthis._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))returna;r=r||!i&&a.status===404}catch(c){if(Et.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throwc}returnawaitthis.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)returnEt.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;leti=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(letaofi)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)returnEt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){leta=n?n.status:s?s.statusCode:0;if(!e&&a===404)returnEt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)returnEt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){leta=n.headers.get(Z.X_MS_CopySourceErrorCode);if(a!==void0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returns?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Et.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,n){lets=0;if(e)switch(this.retryOptions.retryPolicyType){caseCn.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseCn.FIXED:s=this.retryOptions.retryDelayInMs;break}elses=Math.random()*1e3;returnEt.info(`RetryPolicy: Delay for ${s}ms`),Vg(s,n,Kge)}};varLd=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewMd(e,r,this.retryOptions)}};varXge="storageBrowserPolicy";functionQJ(){return{name:Xge,asyncsendRequest(t,e){returnCe||((t.method==="GET"||t.method==="HEAD")&&(t.url=wo(t.url,Ni.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(Z.COOKIE),t.headers.delete(Z.CONTENT_LENGTH)),e(t)}}}o(QJ,"storageBrowserPolicy");varZge="StorageCorrectContentLengthPolicy";functionxJ(){functiont(e){e.body&&(typeof
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=Gg(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=Yg(i.url),A={};if(l){let u=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let m=d.toLowerCase();A[m]=l[d],u.push(m)}u.sort();for(let d of u)c+=`
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:newjn(t.version,i,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:s}}o(aCe,"generateBlobSASQueryParameters20150405");functioncCe(t,e){if(t=qa(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));lets;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Oa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$n(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(i);return{sasQueryParameters:newjn(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(cCe,"generateBlobSASQueryParameters20181109");functionlCe(t,e){if(t=qa(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));lets;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Oa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$n(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(i);return{sasQueryParameters:newjn(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void0,void0,void0,t.encryptionScope),stringToSign:i}}o(lCe,"generateBlobSASQueryParameters20201206");functionACe(t,e){if(t=qa(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));lets;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Oa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?$n(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newjn(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(ACe,"generateBlobSASQueryParametersUDK20181109");functionuCe(t,e){if(t=qa(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));lets;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Oa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?$n(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newjn(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(uCe,"generateBlobSASQueryParametersUDK20200210");functiondCe(t,e){if(t=qa(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));lets;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Oa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?$n(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(i);return{sasQueryParameters:newjn(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(dCe,"generateBlobSASQueryParametersUDK20201206");functionmCe(t,e){if(t=qa(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));lets;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Oa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?$n(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(i);return{sasQueryParameters:newjn(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(mCe,"generateBlobSASQueryParametersUDK20250705");functionOa(t,e,r){letn=[`/blob/${t}/${e}`];returnr&&n.push(`/${r}`),n.join("")}o(Oa,"getCanonicalName");functionqa(t){lete=t.version?t.version:jg;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}o(qa,"SASSignatureValuesSanityCheckAndAutofill");var$d=class{static{o(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=wl()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Yn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Yn||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.");returnq.withSpan("BlobLeaseClient-acquireLease",r,asyncn=>Y(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!==Yn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Yn||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.");returnq.withSpan("BlobLeaseClient-changeLease",r,asyncn=>{lets=Y(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));returnthis._leaseId=e,s})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMat
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"}};Vl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ya=class extends Error{static{o(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"}};Ya.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var im=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var QIe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},fP=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);le(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{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 U4(t,e,r){return QIe(this,void 0,void 0,function*(){var n;let s=new Li(t),i=s.getBlockBlobClient(),a=new fP((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(),b(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new tE(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw ht(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(U4,"uploadCacheArchiveSDK");var q4=Q(require("buffer"),1),Ws=Q(require("fs"),1),H4=Q(require("stream"),1),z4=Q(require("util"),1);var rE=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};function nE(t){return t?t>=200&&t<300:!1}o(nE,"isSuccessStatusCode");function xIe(t){return t?t>=500:!0}o(xIe,"isServerErrorStatusCode");function bIe(t){return t?[$e.BadGateway,$e.ServiceUnavailable,$e.GatewayTimeout].includes(t):!1}o(bIe,"isRetryableStatusCode");function wIe(t){return rE(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(wIe,"sleep");function O4(t,e,r){return rE(this,arguments,void 0,function*(n,s,i,a=wf,c=Nf,l=void 0){let A="",u=1;for(;u<=a;){let d,m,p=!1;try{d=yield s()}catch(h){l&&(d=l(h)),p=!0,A=h.message}if(d&&(m=i(d),!xIe(m)))return d;if(m&&(p=bIe(m),A=`Cache service responded with ${m}`),b(`${n} - Attempt ${u} of ${a} failed with error: ${A}`),!p){b(`${n} - Error is not retryable`);break}yield wIe(c),u++}throw Error(`${n} failed: ${A}`)})}o(O4,"retry");function om(t,e){return rE(this,arguments,void 0,function*(r,n,s=wf,i=Nf){return yield O4(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof Cs)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(om,"retryTypedResponse");function Jl(t,e){return rE(this,arguments,void 0,function*(r,n,s=wf,i=Nf){return yield O4(r,n,a=>a.message.statusCode,s,i)})}o(Jl,"retryHttpClientResponse");var bn=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})
Othercacheswithsimilarkey:`);for(let c of i?.artifactCaches||[])b(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}o(TIe,"printCachesListForDiagnostics");function IP(t,e,r){return xr(this,void 0,void 0,function*(){let n=new rW.URL(t),s=J4(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Y4(t,e,s):s.concurrentBlobDownloads?yield G4(t,e,s):yield iE(t,e):yield iE(t,e)})}o(IP,"downloadCache");function sW(t,e,r){return xr(this,void 0,void 0,function*(){let n=CP(),s=gl(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield om("reserveCache",()=>xr(this,void 0,void 0,function*(){return n.postJson(cm("caches"),i)}))})}o(sW,"reserveCache");function tW(t,e){return`bytes${t}-${e}/*`}o(tW,"getContentRange");function MIe(t,e,r,n,s){return xr(this,void 0,void 0,function*(){b(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${tW(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":tW(n,s)},a=yield Jl(`uploadChunk (start: ${n}, end: ${s})`,()=>xr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!nE(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(MIe,"uploadChunk");function LIe(t,e,r,n){return xr(this,void 0,void 0,function*(){let s=Es(r),i=cm(`caches/${e.toString()}`),a=Wl.openSync(r,"r"),c=gP(n),l=Gb("uploadConcurrency",c.uploadConcurrency),A=Gb("uploadChunkSize",c.uploadChunkSize),u=[...new Array(l).keys()];b("Awaiting all uploads");let d=0;try{yield Promise.all(u.map(()=>xr(this,void 0,void 0,function*(){for(;d<s;){let m=Math.min(s-d,A),p=d,h=d+m-1;d+=A,yield MIe(t,i,()=>Wl.createReadStream(r,{fd:a,start:p,end:h,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),p,h)}})))}finally{Wl.closeSync(a)}})}o(LIe,"uploadFile");function _Ie(t,e,r){return xr(this,void 0,void 0,function*(){let n={size:r};return yield om("commitCache",()=>xr(this,void 0,void 0,function*(){return t.postJson(cm(`caches/${e.toString()}`),n)}))})}o(_Ie,"commitCache");function BP(t,e,r,n){return xr(this,void 0,void 0,function*(){if(gP(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield U4(r,e,n)}else{let i=CP();b("Upload cache"),yield LIe(i,t,e,n),b("Commiting cache");let a=Es(e);le(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield _Ie(i,t,a);if(!nE(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);le("Cache saved successfully")}})}o(BP,"saveCache");var XW=Q(YW(),1),ut=Q(At(),1),Xr=Q(At(),1),ja=Q(At(),1),Ka=Q(At(),1),Xa=Q(At(),1);var fv=Q(At(),1),gv=Q(At(),1),$W=Q(At(),1),jW=Q(At(),1),KW=Q(At(),1);var mv=Q(At(),1),pv=Q(At(),1),VW=Q(At(),1),JW=Q(At(),1),WW=Q(At(),1);var hv=class extends WW.MessageType{static{o(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,JW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,VW.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let u=e.skip(l);A!==!1&&(A===!0?pv.UnknownFieldHandler.onRead:A)(this.typeName,i,c,l,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,mv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,mv.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pv.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},VE=new hv;var yv=class extends KW.MessageType{static{o(this
`));let n=yield kv(r,"create");yield Tv(n,t)})}o(Lv,"createTar");var AA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},Zn=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Za=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},_v="cache write denied:",jE=class t extends Za{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},r8=Sf,KE=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},XE=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function n8(t){if(!t||t.length===0)throw new Zn("Path Validation Error: At least one directory or file path is required")}o(n8,"checkPaths");function Fv(t){if(t.length>512)throw new Zn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Zn(`Key Validation Error: ${t} cannot contain commas.`)}o(Fv,"checkKey");function Uv(){return am()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(Uv,"isFeatureAvailable");function s8(t,e,r,n){return AA(this,arguments,void 0,function*(s,i,a,c,l=!1){let A=am();b(`Cache service version: ${A}`),n8(s);let u=EP();if(!$4(u)){le(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),b(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield XQe(s,i,a,c,l):yield KQe(s,i,a,c,l)})}o(s8,"restoreCache");function KQe(t,e,r,n){return AA(this,arguments,void 0,function*(s,i,a,c,l=!1){var A;a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new Zn("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of u)Fv(p);let d=yield od(),m="";try{let p;try{p=yield nW(u,s,{compressionMethod:d,enableCrossOsArchive:l})}catch(f){let C=(A=f?.message)!==null&&A!==void 0?A:"";throw C.includes(r8)?new KE(C):f}if(!p?.archiveLocation)return;if(c?.lookupOnly)return le("Lookup only - skipping download"),p.cacheKey;m=xm.join(yield sd(),yo(d)),b(`Archive Path: ${m}`),yield IP(p.archiveLocation,m,c),pa()&&(yield Qm(m,d));let h=Es(m);return le(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield Mv(m,d),le("Cache restored successfully"),p.cacheKey}catch(p){let h=p;if(h.name===Zn.name)throw p;h instanceof Cs&&typeof h.statusCode=="number"&&h.statusCode>=500?cl(`Failed to restore: ${p.message}`):ht(`Failed to restore: ${p.message}`)}finally{try{yield id(m)}catch(p){b(`Failed to delete archive: ${p}`)}}})}o(KQe,"restoreCacheV1");function XQe(t,e,r,n){return AA(this,arguments,void 0,function*(s,i,a,c,l=!1){var A;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new Zn("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of u)Fv(m);let d="";try{let m=Dv(),p=yield od(),h={key:i,restoreKeys:a,version:gl(s,p,l)},f;try{f=yield m.GetCacheEntryDownloadURL(h)}catch(E){let I=(A=E?.message)!==null&&A!==void 0?A:"";throw I.includes(r8)?new KE(I):E}if(!f.ok){b(`Cache not found for version ${h.version} of keys: ${u.join(", ")}`);return}if(h.key!==f.matchedKey?le(`Cache hit for restore-key: ${f.matchedKey}`):le(`Cache hit for: ${f.matchedKey}`),c?.lookupOnly)return le("Lookup only - skipping download"),f.matchedKey;d=xm.join(yield sd(),yo(p)),b(`Archive path: ${d}`),b(`Starting download of archive to: ${d}`),yi
`,a).length:d,A?(c===null?0:c.length)+l.length:0,A?l.length+d:0);return m<p},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:A,encoding:u,from_line:d,ltrim:m,max_record_size:p,raw:h,relax_quotes:f,rtrim:C,skip_empty_lines:y,to:E,to_line:I}=this.options,{comment:B,escape:N,quote:S,record_delimiter:F}=this.options,{bomSkipped:de,delimiterDiscovered:be,delimiterBufPrevious:Be,rawBuffer:Ne,escapeIsQuote:ae}=this.state;if(!be&&A){let Qe;if(Be===void 0?Qe=n:Be!==void 0&&n===void 0?Qe=Be:Qe=Buffer.concat([Be,n]),n=void 0,s||Qe.length>A.size)this.options.delimiter=[Buffer.from(S5(Qe,this.options.delimiter_auto))],this.state.previousBuf=Qe,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Qe;return}}let{previousBuf:De}=this.state,ee;if(De===void 0)if(n===void 0){a();return}else ee=n;else De!==void 0&&n===void 0?ee=De:ee=Buffer.concat([De,n]);if(de===!1)if(c===!1)this.state.bomSkipped=!0;else if(ee.length<3){if(s===!1){this.state.previousBuf=ee;return}}else{for(let Qe in bA)if(bA[Qe].compare(ee,0,bA[Qe].length)===0){let rs=bA[Qe].length;this.state.bufBytesStart+=rs,ee=ee.slice(rs);let zi=xA({...this.original_options,encoding:Qe});for(let Je in zi)this.options[Je]=zi[Je];({comment:B,escape:N,quote:S}=this.options);break}this.state.bomSkipped=!0}let Yt=ee.length,H;for(H=0;H<Yt&&!this.__needMoreData(H,Yt,s);H++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&F.length===0&&this.__autoDiscoverRecordDelimiter(ee,H)&&(F=this.options.record_delimiter);let Qe=ee[H];if(h===!0&&Ne.append(Qe),(Qe===y0e||Qe===E0e)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(ee,H,Qe)&&H+N.length<Yt)if(ae){if(this.__isQuote(ee,H+N.length)){this.state.escaping=!0,H+=N.length-1;continue}}else{this.state.escaping=!0,H+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(ee,H))if(this.state.quoting===!0){let Je=ee[H+S.length],ns=C&&this.__isCharTrimable(ee,H+S.length),Sr=B!==null&&this.__compareBytes(B,ee,H+S.length,Je),Fo=this.__isDelimiter(ee,H+S.length,Je),Gm=F.length===0?this.__autoDiscoverRecordDelimiter(ee,H+S.length):this.__isRecordDelimiter(Je,ee,H+S.length);if(N!==null&&this.__isEscape(ee,H,Qe)&&this.__isQuote(ee,H+N.length))H+=N.length-1;else if(!Je||Fo||Gm||Sr||ns){this.state.quoting=!1,this.state.wasQuoting=!0,H+=S.length-1;continue}else if(f===!1){let YD=this.__error(new ue("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Je)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(YD!==void 0)return YD}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(S),H+=S.length-1}else if(this.state.field.length!==0){if(f===!1){let Je=this.__infoField(),ns=Object.keys(bA).map(Fo=>bA[Fo].equals(this.state.field.toString())?Fo:!1).filter(Boolean)[0],Sr=this.__error(new ue("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Je.column)} at line ${Je.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,ns?`(${ns} bom)`:void 0],this.options,Je,{field:this.state.field}));if(Sr!==void 0)return Sr}}else{this.state.quoting=!0,H+=S.length-1;continue}if(this.state.quoting===!1){let Je=this.__isRecordDelimiter(Qe,ee,H);if(Je!==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)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),H+=Je-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,H+=Je-1;continue}this.info.bytes=this.state.bufBytesSta