[dependabot skip] chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-10-14 16:20:50 +00:00
1 parent c630488e80
commit bee529bb3c
3 files changed
+142 -176

No files matched your search

Generated Vendored
+76 -79
View File
@@ -1,83 +1,80 @@
var _5=Object.create;var Ym=Object.defineProperty;var F5=Object.getOwnPropertyDescriptor;var U5=Object.getOwnPropertyNames;var O5=Object.getPrototypeOf,q5=Object.prototype.hasOwnProperty;var o=(t,e)=>Ym(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),H5=(t,e)=>{for(var r in e)Ym(t,r,{get:e[r],enumerable:!0})},z5=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of U5(e))!q5.call(t,s)&&s!==r&&Ym(t,s,{get:()=>e[s],enumerable:!(n=F5(e,s))||n.enumerable});return t};var Q=(t,e,r)=>(r=t!=null?_5(O5(t)):{},z5(e||!t||!t.__esModule?Ym(r,"default",{value:t,enumerable:!0}):r,t));var XD=g(ac=>{"use strict";var D0e=require("net"),J5=require("tls"),VC=require("http"),$D=require("https"),W5=require("events"),k0e=require("assert"),$5=require("util");ac.httpOverHttp=j5;ac.httpsOverHttp=K5;ac.httpOverHttps=X5;ac.httpsOverHttps=Z5;function j5(t){var e=new si(t);return e.request=VC.request,e}o(j5,"httpOverHttp");function K5(t){var e=new si(t);return e.request=VC.request,e.createSocket=jD,e.defaultPort=443,e}o(K5,"httpsOverHttp");function X5(t){var e=new si(t);return e.request=$D.request,e}o(X5,"httpOverHttps");function Z5(t){var e=new si(t);return e.request=$D.request,e.createSocket=jD,e.defaultPort=443,e}o(Z5,"httpsOverHttps");function si(t){var e=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(var c=KD(s,i,a),l=0,A=e.requests.length;l<A;++l){var u=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");$5.inherits(si,W5.EventEmitter);si.prototype.addRequest=o(function(e,r,n,s){var i=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);function l(){i.emit("free",c,a)}o(l,"onFree");function A(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){var n=this,s={};n.sockets.push(s);var i=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 "+new Buffer(i.proxyAuth).toString("base64")),Yi("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",A),a.once("error",u),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,m,p){process.nextTick(function(){A(d,m,p)})}o(l,"onUpgrade");function A(d,m,p){if(a.removeAllListeners(),m.removeAllListeners(),d.statusCode!==200){Yi("tunneling socket could not be established, statusCode=%d",d.statusCode),m.destroy();var h=new Error("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();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return Yi("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}o(A,"onConnect");function u(d){a.removeAllListeners(),Yi(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var m=new Error("tunneling socket could not be established, cause="+d.message);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s)}o(u,"onError")},"createSocket");si.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function jD(t,e){var r=this;si.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=JC({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=J5.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(jD,"createSecureSocket");function KD(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(KD,"toOptions");function JC(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,a=s.length;i<a;++i){var c=s[i];n[c]!==void 0&&(t[c]=n[c])}}return t}o(JC,"mergeOptions");var Yi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Yi=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Yi=o(function(){},"debug");ac.debug=Yi});var WC=g((L0e,ZD)=>{ZD.exports=XD()});var Oe=g((_0e,ek)=>{ek.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var ye=g((F0e,bk)=>{"use strict";var tk=Symbol.for("undici.error.UND_ERR"),qe=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[tk]===!0}[tk]=!0},rk=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),$C=class extends qe{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[rk]===!0}[rk]=!0},nk=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),jC=class extends qe{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[nk]===!0}[nk]=!0},sk=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),KC=class extends qe{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[sk]===!0}[sk]=!0},ik=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),XC=class extends qe{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"} Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(FT,"isValidHeaderValue");function hj(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(Z6.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(hj,"setRequestReferrerPolicyOnRedirect");function fj(){return"allowed"}o(fj,"crossOriginResourcePolicyCheck");function gj(){return"success"}o(gj,"corsCheck");function yj(){return"success"}o(yj,"TAOCheck");function Ej(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Ej,"appendFetchMetadata");function Cj(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&GI(t.origin)&&!GI(LA(t))&&(e=null);break;case"same-origin":pp(t,LA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Cj,"appendRequestOriginHeader");function gc(t,e){return t}o(gc,"coarsenTime");function Ij(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:gc(t.domainLookupStartTime,r),domainLookupEndTime:gc(t.domainLookupEndTime,r),connectionStartTime:gc(t.connectionStartTime,r),connectionEndTime:gc(t.connectionEndTime,r),secureConnectionStartTime:gc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Ij,"clampAndCoarsenConnectionTimingInfo");function Bj(t){return gc(sj.now(),t)}o(Bj,"coarsenedSharedCurrentTime");function Qj(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(Qj,"createOpaqueTimingInfo");function UT(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(UT,"makePolicyContainer");function xj(t){return{referrerPolicy:t.referrerPolicy}}o(xj,"clonePolicyContainer");function bj(t){let e=t.referrerPolicy;Ho(e);let r=null;if(t.referrer==="client"){let c=kT();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=zI(r),s=zI(r,!0);n.toString().length>4096&&(n=s);let i=pp(t,n),a=MA(n)&&!MA(t.url);switch(e){case"origin":return s??zI(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let c=LA(t);return pp(n,c)?n:MA(n)&&!MA(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(bj,"determineRequestsReferrer");function zI(t,e){return Ho(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(zI,"stripURLForReferrer");function MA(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(MA,"isURLPotentiallyTrustworthy");function wj(t,e){if(mp===void 0)return!0;let r=OT(e);if(r==="no metadata"||r.length===0)return!0;let n=Sj(r),s=Rj(r,n);for(let i of s){let a=i.algo,c=i.hash,l=mp.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),Pj(l,c))return!0}return!1}o(wj,"bytesMatch");var Nj=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function OT(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=Nj.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();MT.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}o(OT,"parseMetadata");function Sj(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(Sj,"getStrongestMetadata");function Rj(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(Rj,"filterMetadataListByAlgorithm");function Pj(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(Pj,"compareBase64Mixed");function vj(t){}o(vj,"tryUpgradeRequestToAPotentiallyTrustworthyURL");functi Line truncated
`);function mK(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(mK,"isAsciiString");function pK(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(pK,"validateBoundary");function hK(t,e){fp(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&gp(t,uK,i)||i.position===t.length-4&&gp(t,dK,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=fK(t,i);if(c==="failure")return"failure";let{name:l,filename:A,contentType:u,encoding:d}=c;i.position+=2;let m;{let h=t.indexOf(n.subarray(2),i.position);if(h===-1)return"failure";m=t.subarray(i.position,h-4),i.position+=m.length,d==="base64"&&(m=Buffer.from(m.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let p;A!==null?(u??="text/plain",mK(u)||(u=""),p=new lK([m],A,{type:u})):p=sK(Buffer.from(m)),fp(ZT(l)),fp(typeof p=="string"&&ZT(p)||oK(p)),s.push(aK(l,p,A))}}o(hK,"multipartFormDataParser");function fK(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let a=Ec(c=>c!==10&&c!==13&&c!==58,t,e);if(a=KI(a,!0,!0,c=>c===9||c===32),!iK.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Ec(c=>c===32||c===9,t,e),nK(a)){case"content-disposition":{if(r=n=null,!gp(t,AK,e)||(e.position+=17,r=rM(t,e),r===null))return"failure";if(gp(t,tM,e)){let c=e.position+tM.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=rM(t,e),n===null))return"failure"}break}case"content-type":{let c=Ec(l=>l!==10&&l!==13,t,e);c=KI(c,!1,!0,l=>l===9||l===32),s=eM(c);break}case"content-transfer-encoding":{let c=Ec(l=>l!==10&&l!==13,t,e);c=KI(c,!1,!0,l=>l===9||l===32),i=eM(c);break}default:Ec(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(fK,"parseMultipartFormDataHeaders");function rM(t,e){fp(t[e.position-1]===34);let r=Ec(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(rM,"parseMultipartFormDataName");function Ec(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(Ec,"collectASequenceOfBytes");function KI(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}o(KI,"removeChars");function gp(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(gp,"bufferStartsWith");nM.exports={multipartFormDataParser:hK,validateBoundary:pK}});var Bc=g((xNe,pM)=>{"use strict";var UA=ce(),{ReadableStreamFrom:gK,isBlobLike:iM,isReadableStreamLike:yK,readableStreamClose:EK,createDeferredPromise:CK,fullyReadBody:IK,extractMimeType:BK,utf8DecodeBytes:cM}=Pr(),{FormData:oM}=FA(),{kState:Ic}=Vi(),{webidl:QK}=kt(),{Blob:xK}=require("node:buffer"),XI=require("node:assert"),{isErrored:lM,isDisturbed:bK}=require("node:stream"),{isArrayBuffer:wK}=require("node:util/types"),{serializeAMimeType:NK}=cr(),{multipartFormDataParser:SK}=sM(),ZI;try{let t=require("node:crypto");ZI=o(e=>t.randomInt(0,e),"random")}catch{ZI=o(t=>Math.floor(Math.random(t)),"random")}var yp=new TextEncoder;function RK(){}o(RK,"noop");var AM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,uM;AM&&(uM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!bK(e)&&!lM(e)&&e.cancel("Response object has been garbage collected").catch(RK)}));function dM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:iM(t)?r=t.stream():r=new ReadableStream({async pull(l){let A=typeof s=="string"?yp.encode(s):s;A.byteLength&&l.enqueue(A),queueMicrotask(()=>EK(l))},start(){},type:"bytes"}),XI(yK(r));let n=null,s=null,i=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(wK(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(UA.isFormDataLike(t)){let l=`----formdata-undici-0${`${ZI(1e11)}`.padStart(11,"0")}`,A=`--${l}\r
var K5=Object.create;var jm=Object.defineProperty;var X5=Object.getOwnPropertyDescriptor;var Z5=Object.getOwnPropertyNames;var e9=Object.getPrototypeOf,t9=Object.prototype.hasOwnProperty;var o=(t,e)=>jm(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),r9=(t,e)=>{for(var r in e)jm(t,r,{get:e[r],enumerable:!0})},n9=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Z5(e))!t9.call(t,s)&&s!==r&&jm(t,s,{get:()=>e[s],enumerable:!(n=X5(e,s))||n.enumerable});return t};var Q=(t,e,r)=>(r=t!=null?K5(e9(t)):{},n9(e||!t||!t.__esModule?jm(r,"default",{value:t,enumerable:!0}):r,t));var ak=g(pc=>{"use strict";var jNe=require("net"),a9=require("tls"),KC=require("http"),sk=require("https"),c9=require("events"),KNe=require("assert"),l9=require("util");pc.httpOverHttp=A9;pc.httpsOverHttp=u9;pc.httpOverHttps=d9;pc.httpsOverHttps=m9;function A9(t){var e=new oi(t);return e.request=KC.request,e}o(A9,"httpOverHttp");function u9(t){var e=new oi(t);return e.request=KC.request,e.createSocket=ik,e.defaultPort=443,e}o(u9,"httpsOverHttp");function d9(t){var e=new oi(t);return e.request=sk.request,e}o(d9,"httpOverHttps");function m9(t){var e=new oi(t);return e.request=sk.request,e.createSocket=ik,e.defaultPort=443,e}o(m9,"httpsOverHttps");function oi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||KC.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(var c=ok(s,i,a),l=0,A=e.requests.length;l<A;++l){var u=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(oi,"TunnelingAgent");l9.inherits(oi,c9.EventEmitter);oi.prototype.addRequest=o(function(e,r,n,s){var i=this,a=XC({request:e},i.options,ok(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);function l(){i.emit("free",c,a)}o(l,"onFree");function A(u){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",A),c.removeListener("agentRemove",A)}o(A,"onCloseOrRemove")})},"addRequest");oi.prototype.createSocket=o(function(e,r){var n=this,s={};n.sockets.push(s);var i=XC({},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 "+new Buffer(i.proxyAuth).toString("base64")),Vi("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",A),a.once("error",u),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,m,p){process.nextTick(function(){A(d,m,p)})}o(l,"onUpgrade");function A(d,m,p){if(a.removeAllListeners(),m.removeAllListeners(),d.statusCode!==200){Vi("tunneling socket could not be established, statusCode=%d",d.statusCode),m.destroy();var h=new Error("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){Vi("got illegal response body from proxy"),m.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return Vi("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}o(A,"onConnect");function u(d){a.removeAllListeners(),Vi(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var m=new Error("tunneling socket could not be established, cause="+d.message);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s)}o(u,"onError")},"createSocket");oi.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function ik(t,e){var r=this;oi.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=XC({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=a9.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(ik,"createSecureSocket");function ok(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(ok,"toOptions");function XC(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,a=s.length;i<a;++i){var c=s[i];n[c]!==void 0&&(t[c]=n[c])}}return t}o(XC,"mergeOptions");var Vi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Vi=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Vi=o(function(){},"debug");pc.debug=Vi});var ZC=g((eSe,ck)=>{ck.exports=ak()});var Fe=g((tSe,lk)=>{lk.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var ge=g((rSe,Tk)=>{"use strict";var Ak=Symbol.for("undici.error.UND_ERR"),Ue=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Ak]===!0}[Ak]=!0},uk=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),eI=class extends Ue{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[uk]===!0}[uk]=!0},dk=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),tI=class extends Ue{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[dk]===!0}[dk]=!0},mk=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),rI=class extends Ue{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[mk]===!0}[mk]=!0},pk=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),nI=class extends Ue{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"} Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(JT,"isValidHeaderValue");function Rj(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(mj.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(Rj,"setRequestReferrerPolicyOnRedirect");function Pj(){return"allowed"}o(Pj,"crossOriginResourcePolicyCheck");function vj(){return"success"}o(vj,"corsCheck");function Dj(){return"success"}o(Dj,"TAOCheck");function kj(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(kj,"appendFetchMetadata");function Tj(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&$I(t.origin)&&!$I(VA(t))&&(e=null);break;case"same-origin":Ep(t,VA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Tj,"appendRequestOriginHeader");function xc(t,e){return t}o(xc,"coarsenTime");function Mj(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:xc(t.domainLookupStartTime,r),domainLookupEndTime:xc(t.domainLookupEndTime,r),connectionStartTime:xc(t.connectionStartTime,r),connectionEndTime:xc(t.connectionEndTime,r),secureConnectionStartTime:xc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Mj,"clampAndCoarsenConnectionTimingInfo");function Lj(t){return xc(yj.now(),t)}o(Lj,"coarsenedSharedCurrentTime");function _j(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(_j,"createOpaqueTimingInfo");function WT(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(WT,"makePolicyContainer");function Fj(t){return{referrerPolicy:t.referrerPolicy}}o(Fj,"clonePolicyContainer");function Uj(t){let e=t.referrerPolicy;Jo(e);let r=null;if(t.referrer==="client"){let c=HT();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=WI(r),s=WI(r,!0);n.toString().length>4096&&(n=s);let i=Ep(t,n),a=YA(n)&&!YA(t.url);switch(e){case"origin":return s??WI(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let c=VA(t);return Ep(n,c)?n:YA(n)&&!YA(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(Uj,"determineRequestsReferrer");function WI(t,e){return Jo(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(WI,"stripURLForReferrer");function YA(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(YA,"isURLPotentiallyTrustworthy");function Oj(t,e){if(yp===void 0)return!0;let r=$T(e);if(r==="no metadata"||r.length===0)return!0;let n=Hj(r),s=zj(r,n);for(let i of s){let a=i.algo,c=i.hash,l=yp.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),Gj(l,c))return!0}return!1}o(Oj,"bytesMatch");var qj=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function $T(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=qj.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();GT.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}o($T,"parseMetadata");function Hj(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(Hj,"getStrongestMetadata");function zj(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(zj,"filterMetadataListByAlgorithm");function Gj(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(Gj,"compareBase64Mixed");function Yj(t){}o(Yj,"tryUpgradeRequestToAPotentiallyTrustworthyURL");functi Line truncated
`);function NK(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(NK,"isAsciiString");function SK(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(SK,"validateBoundary");function RK(t,e){Ip(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&Bp(t,wK,i)||i.position===t.length-4&&Bp(t,bK,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=PK(t,i);if(c==="failure")return"failure";let{name:l,filename:A,contentType:u,encoding:d}=c;i.position+=2;let m;{let h=t.indexOf(n.subarray(2),i.position);if(h===-1)return"failure";m=t.subarray(i.position,h-4),i.position+=m.length,d==="base64"&&(m=Buffer.from(m.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let p;A!==null?(u??="text/plain",NK(u)||(u=""),p=new QK([m],A,{type:u})):p=yK(Buffer.from(m)),Ip(cM(l)),Ip(typeof p=="string"&&cM(p)||CK(p)),s.push(IK(l,p,A))}}o(RK,"multipartFormDataParser");function PK(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let a=bc(c=>c!==10&&c!==13&&c!==58,t,e);if(a=rB(a,!0,!0,c=>c===9||c===32),!EK.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,bc(c=>c===32||c===9,t,e),gK(a)){case"content-disposition":{if(r=n=null,!Bp(t,xK,e)||(e.position+=17,r=uM(t,e),r===null))return"failure";if(Bp(t,AM,e)){let c=e.position+AM.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=uM(t,e),n===null))return"failure"}break}case"content-type":{let c=bc(l=>l!==10&&l!==13,t,e);c=rB(c,!1,!0,l=>l===9||l===32),s=lM(c);break}case"content-transfer-encoding":{let c=bc(l=>l!==10&&l!==13,t,e);c=rB(c,!1,!0,l=>l===9||l===32),i=lM(c);break}default:bc(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(PK,"parseMultipartFormDataHeaders");function uM(t,e){Ip(t[e.position-1]===34);let r=bc(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(uM,"parseMultipartFormDataName");function bc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(bc,"collectASequenceOfBytes");function rB(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}o(rB,"removeChars");function Bp(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(Bp,"bufferStartsWith");dM.exports={multipartFormDataParser:RK,validateBoundary:SK}});var Rc=g((HSe,QM)=>{"use strict";var $A=ae(),{ReadableStreamFrom:vK,isBlobLike:pM,isReadableStreamLike:DK,readableStreamClose:kK,createDeferredPromise:TK,fullyReadBody:MK,extractMimeType:LK,utf8DecodeBytes:gM}=vr(),{FormData:hM}=WA(),{kState:Sc}=Ji(),{webidl:_K}=Tt(),{Blob:FK}=require("node:buffer"),nB=require("node:assert"),{isErrored:yM,isDisturbed:UK}=require("node:stream"),{isArrayBuffer:OK}=require("node:util/types"),{serializeAMimeType:qK}=lr(),{multipartFormDataParser:HK}=mM(),sB;try{let t=require("node:crypto");sB=o(e=>t.randomInt(0,e),"random")}catch{sB=o(t=>Math.floor(Math.random(t)),"random")}var Qp=new TextEncoder;function zK(){}o(zK,"noop");var EM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,CM;EM&&(CM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!UK(e)&&!yM(e)&&e.cancel("Response object has been garbage collected").catch(zK)}));function IM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:pM(t)?r=t.stream():r=new ReadableStream({async pull(l){let A=typeof s=="string"?Qp.encode(s):s;A.byteLength&&l.enqueue(A),queueMicrotask(()=>kK(l))},start(){},type:"bytes"}),nB(DK(r));let n=null,s=null,i=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(OK(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if($A.isFormDataLike(t)){let l=`----formdata-undici-0${`${sB(1e11)}`.padStart(11,"0")}`,A=`--${l}\r
Content-Disposition: form-data`;let u=o(C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),d=o(C=>C.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),m=[],p=new Uint8Array([13,10]);i=0;let h=!1;for(let[C,y]of t)if(typeof y=="string"){let E=yp.encode(A+`; name="${u(d(C))}"\r
`),"normalizeLinefeeds"),m=[],p=new Uint8Array([13,10]);i=0;let h=!1;for(let[C,y]of t)if(typeof y=="string"){let E=Qp.encode(A+`; name="${u(d(C))}"\r
\r
${d(y)}\r
`);m.push(E),i+=E.byteLength}else{let E=yp.encode(`${A}; name="${u(d(C))}"`+(y.name?`; filename="${u(y.name)}"`:"")+`\r
`);m.push(E),i+=E.byteLength}else{let E=Qp.encode(`${A}; name="${u(d(C))}"`+(y.name?`; filename="${u(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
\r
`);m.push(E,y,p),typeof y.size=="number"?i+=E.byteLength+y.size+p.byteLength:h=!0}let f=yp.encode(`--${l}--\r
`);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:gK(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 PK(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(PK,"safelyExtractBody");function vK(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(vK,"cloneBody");function DK(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(DK,"throwIfAborted");function kK(t){return{blob(){return Cc(this,r=>{let n=aM(this);return n===null?n="":n&&(n=NK(n)),new xK([r],{type:n})},t)},arrayBuffer(){return Cc(this,r=>new Uint8Array(r).buffer,t)},text(){return Cc(this,cM,t)},json(){return Cc(this,MK,t)},formData(){return Cc(this,r=>{let n=aM(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=SK(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-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Cc(this,r=>new Uint8Array(r),t)}}}o(kK,"bodyMixinMethods");function TK(t){Object.assign(t.prototype,kK(t))}o(TK,"mixinBody");async function Cc(t,e,r){if(QK.brandCheck(t,r),mM(t))throw new TypeError("Body is unusable: Body has already been read");DK(t[Ic]);let n=CK(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Ic].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await IK(t[Ic].body,i,s),n.promise)}o(Cc,"consumeBody");function mM(t){let e=t[Ic].body;return e!=null&&(e.stream.locked||UA.isDisturbed(e.stream))}o(mM,"bodyUnusable");function MK(t){return JSON.parse(cM(t))}o(MK,"parseJSONFromBytes");function aM(t){let e=t[Ic].headersList,r=BK(e);return r==="failure"?null:r}o(aM,"bodyMimeType");pM.exports={extractBody:dM,safelyExtractBody:PK,cloneBody:vK,mixinBody:TK,streamRegistry:uM,hasFinalizationRegistry:AM,bodyUnusable:mM}});var PM=g((wNe,RM)=>{"use strict";var V=require("node:assert"),$=ce(),{channels:hM}=lc(),eB=MI(),{RequestContentLengthMismatchError:zo,ResponseContentLengthMismatchError:fM,RequestAbortedError:xM,InvalidArgumentError:LK,HeadersTimeoutError:_K,HeadersOverflowError:FK,SocketError:Qc,InformationalError:xc,BodyTimeoutError:UK,HTTPParserError:OK,ResponseExceededMaxSizeError:qK}=ye(),{kUrl:bM,kReset:lr,kClient:Bp,kParser:Me,kBlocking:HA,kRunning:dt,kPending:wM,kSize:gM,kWriting:Ji,kQueue:kn,kNoRef:OA,kKeepAliveDefaultTimeout:HK,kHostHeader:zK,kPendingIdx:GK,kRunningIdx:on,kError:Wt,kPipelining:Qp,kSocket:Yo,kKeepAliveTimeoutValue:bp,kMaxHeadersSize:tB,kKeepAliveMaxTimeout:YK,kKeepAliveTimeoutThreshold:VK,kHeadersTimeout:JK,kBodyTimeout:WK,kStrictContentLength:sB,kMaxRequests:yM,kCounter:$K,kMaxResponseSize:jK,kOnError:EM,kResume:Ai,kHTTPContext:NM}=Oe(),vr=uT(),CM=Buffer.alloc(0),Ep=Buffer[Symbol.species],Cp=$.addListener,KK=$.removeAllListeners,Vo=Symbol("kIdleSocketValidation"),Go=Symbol("kIdleSocketValidationTimeout"),cB=Symbol("kSocketUsed"),rB;async function XK(){let t=process.env.JEST_WORKER_ID?FI():void 0,e;try{e=await WebAssembly.compile(pT())}catch{e=await WebAssembly.compile(t||FI())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,s)=>0,"wasm_on_url"),wasm_on_status:o((r,n,s)=>{V(We.ptr===r);let i=n-cs+as.byteOffset;return We.onStatus(new Ep(as.buffer,i,s))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(V(We.ptr===r),We.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,s)=>{V(We.ptr===r);let i=n-cs+as.byteOffset;return We.onHeaderField(new Ep(as.buffer,i,s))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,s)=>{V(We.ptr===r);let i=n-cs+as.byteOffset;return We.onHeaderValue(new Ep(as.buffer,i,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,s,i)=>(V(We.ptr===r),We.onHeadersComplete(n,!!s,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,s)=>{V(We.ptr===r);let i=n-cs+as.byteOffset;return We.onBody(new Ep(as.buffer,i,s))||0},"wasm_on_body Line truncated
`);m.push(E,y,p),typeof y.size=="number"?i+=E.byteLength+y.size+p.byteLength:h=!0}let f=Qp.encode(`--${l}--\r
`);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(pM(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($A.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:vK(t)}if((typeof s=="string"||$A.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(!yM(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(IM,"extractBody");function GK(t,e=!1){return t instanceof ReadableStream&&(nB(!$A.isDisturbed(t),"The body has already been consumed."),nB(!t.locked,"The stream is locked.")),IM(t,e)}o(GK,"safelyExtractBody");function YK(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(YK,"cloneBody");function VK(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(VK,"throwIfAborted");function JK(t){return{blob(){return Nc(this,r=>{let n=fM(this);return n===null?n="":n&&(n=qK(n)),new FK([r],{type:n})},t)},arrayBuffer(){return Nc(this,r=>new Uint8Array(r).buffer,t)},text(){return Nc(this,gM,t)},json(){return Nc(this,$K,t)},formData(){return Nc(this,r=>{let n=fM(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=HK(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new hM;return i[Sc]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new hM;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Nc(this,r=>new Uint8Array(r),t)}}}o(JK,"bodyMixinMethods");function WK(t){Object.assign(t.prototype,JK(t))}o(WK,"mixinBody");async function Nc(t,e,r){if(_K.brandCheck(t,r),BM(t))throw new TypeError("Body is unusable: Body has already been read");VK(t[Sc]);let n=TK(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Sc].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await MK(t[Sc].body,i,s),n.promise)}o(Nc,"consumeBody");function BM(t){let e=t[Sc].body;return e!=null&&(e.stream.locked||$A.isDisturbed(e.stream))}o(BM,"bodyUnusable");function $K(t){return JSON.parse(gM(t))}o($K,"parseJSONFromBytes");function fM(t){let e=t[Sc].headersList,r=LK(e);return r==="failure"?null:r}o(fM,"bodyMimeType");QM.exports={extractBody:IM,safelyExtractBody:GK,cloneBody:YK,mixinBody:WK,streamRegistry:CM,hasFinalizationRegistry:EM,bodyUnusable:BM}});var UM=g((GSe,FM)=>{"use strict";var V=require("node:assert"),$=ae(),{channels:xM}=fc(),iB=OI(),{RequestContentLengthMismatchError:Wo,ResponseContentLengthMismatchError:wM,RequestAbortedError:kM,InvalidArgumentError:jK,HeadersTimeoutError:KK,HeadersOverflowError:XK,SocketError:Pc,InformationalError:vc,BodyTimeoutError:ZK,HTTPParserError:eX,ResponseExceededMaxSizeError:tX}=ge(),{kUrl:TM,kReset:Ar,kClient:Np,kParser:ke,kBlocking:XA,kRunning:ut,kPending:MM,kSize:bM,kWriting:Wi,kQueue:Tn,kNoRef:jA,kKeepAliveDefaultTimeout:rX,kHostHeader:nX,kPendingIdx:sX,kRunningIdx:nn,kError:$t,kPipelining:Sp,kSocket:jo,kKeepAliveTimeoutValue:Pp,kMaxHeadersSize:oB,kKeepAliveMaxTimeout:iX,kKeepAliveTimeoutThreshold:oX,kHeadersTimeout:aX,kBodyTimeout:cX,kStrictContentLength:lB,kMaxRequests:NM,kCounter:lX,kMaxResponseSize:AX,kOnError:SM,kResume:di,kHTTPContext:LM}=Fe(),Dr=CT(),RM=Buffer.alloc(0),xp=Buffer[Symbol.species],wp=$.addListener,uX=$.removeAllListeners,Ko=Symbol("kIdleSocketValidation"),$o=Symbol("kIdleSocketValidationTimeout"),mB=Symbol("kSocketUsed"),aB;async function dX(){let t=process.env.JEST_WORKER_ID?zI():void 0,e;try{e=await WebAssembly.compile(QT())}catch{e=await WebAssembly.compile(t||zI())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,s)=>0,"wasm_on_url"),wasm_on_status:o((r,n,s)=>{V(Ve.ptr===r);let i=n-cs+as.byteOffset;return Ve.onStatus(new xp(as.buffer,i,s))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(V(Ve.ptr===r),Ve.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,s)=>{V(Ve.ptr===r);let i=n-cs+as.byteOffset;return Ve.onHeaderField(new xp(as.buffer,i,s))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,s)=>{V(Ve.ptr===r);let i=n-cs+as.byteOffset;return Ve.onHeaderValue(new xp(as.buffer,i,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,s,i)=>(V(Ve.ptr===r),Ve.onHeadersComplete(n,!!s,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,s)=>{V(Ve.ptr===r);let i=n-cs+as.byteOffset;return Ve.onBody(new xp(as.buffer,i,s))||0},"wasm_on_body Line truncated
`;if(typeof s=="string"?f+=`host: ${s}\r
`:f+=t[zK],i?f+=`connection: upgrade\r
`:f+=t[nX],i?f+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Qp]&&!p[lr]?f+=`connection: keep-alive\r
`:t[Sp]&&!p[Ar]?f+=`connection: keep-alive\r
`:f+=`connection: close\r
`,Array.isArray(A))for(let C=0;C<A.length;C+=2){let y=A[C+0],E=A[C+1];if(Array.isArray(E))for(let I=0;I<E.length;I++)f+=`${y}: ${E[I]}\r
`;else f+=`${y}: ${E}\r
`}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):oX(h,l,t,e,p,u,f,d):$.isStream(l)?iX(h,l,t,e,p,u,f,d):$.isIterable(l)?QM(h,l,t,e,p,u,f,d):V(!1),!0}o(sX,"writeH1");function iX(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(iX,"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
`}return xM.sendHeaders.hasSubscribers&&xM.sendHeaders.publish({request:e,headers:f,socket:p}),!l||m===0?vM(h,null,t,e,p,u,f,d):$.isBuffer(l)?vM(h,l,t,e,p,u,f,d):$.isBlobLike(l)?typeof l.stream=="function"?DM(h,l.stream(),t,e,p,u,f,d):CX(h,l,t,e,p,u,f,d):$.isStream(l)?EX(h,l,t,e,p,u,f,d):$.isIterable(l)?DM(h,l,t,e,p,u,f,d):V(!1),!0}o(yX,"writeH1");function EX(t,e,r,n,s,i,a,c){V(i!==0||r[ut]===0,"stream body cannot be pipelined");let l=!1,A=new vp({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 kM;queueMicrotask(()=>p(h))}},"onClose"),p=o(function(h){if(!l){if(l=!0,V(s.destroyed||s[Wi]&&r[ut]<=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(EX,"writeStream");function vM(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
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[lr]=!0)):i===0?s.write(`${a}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[Ar]=!0)):i===0?s.write(`${a}content-length: 0\r
\r
`,"latin1"):(V(i===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Ai]()}catch(l){t(l)}}o(BM,"writeBuffer");async function oX(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")),n.onRequestSent(),r[di]()}catch(l){t(l)}}o(vM,"writeBuffer");async function CX(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 Wo;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${i}\r
\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[lr]=!0),r[Ai]()}catch(l){t(l)}}o(oX,"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[Wt]?p(s[Wt]):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[Wt])throw s[Wt];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[Wt])throw r[Wt];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[lr]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[Ar]=!0),r[di]()}catch(l){t(l)}}o(CX,"writeBlob");async function DM(t,e,r,n,s,i,a,c){V(i!==0||r[ut]===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[$t]?p(s[$t]):l=m}),"waitForDrain");s.on("close",A).on("drain",A);let d=new vp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let m of e){if(s[$t])throw s[$t];d.write(m)||await u()}d.end()}catch(m){d.destroy(m)}finally{s.off("close",A).off("drain",A)}}o(DM,"writeIterable");var vp=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[Wi]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[$t])throw r[$t];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&a+A>s){if(i[lB])throw new Wo;process.emitWarning(new Wo)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Ar]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Me].timeout&&r[Me].timeoutType===bc&&r[Me].timeout.refresh&&r[Me].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[Ji]=!1,e[Wt])throw e[Wt];if(!e.destroyed){if(s===0?i?e.write(`${a}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[ke].timeout&&r[ke].timeoutType===Dc&&r[ke].timeout.refresh&&r[ke].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[Wi]=!1,e[$t])throw e[$t];if(!e.destroyed){if(s===0?i?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\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=eX});var FM=g((SNe,_M)=>{"use strict";var an=require("node:assert"),{pipeline:aX}=require("node:stream"),me=ce(),{RequestContentLengthMismatchError:lB,RequestAbortedError:vM,SocketError:zA,InformationalError:AB}=ye(),{kUrl:Np,kReset:Rp,kClient:wc,kRunning:Pp,kPending:cX,kQueue:Wi,kPendingIdx:uB,kRunningIdx:Tn,kError:Ln,kSocket:wt,kStrictContentLength:lX,kOnError:dB,kMaxConcurrentStreams:LM,kHTTP2Session:Mn,kResume:$i,kSize:AX,kHTTPContext:uX}=Oe(),ui=Symbol("open streams"),DM,kM=!1,Sp;try{Sp=require("node:http2")}catch{Sp={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:dX,HTTP2_HEADER_METHOD:mX,HTTP2_HEADER_PATH:pX,HTTP2_HEADER_SCHEME:hX,HTTP2_HEADER_CONTENT_LENGTH:fX,HTTP2_HEADER_EXPECT:gX,HTTP2_HEADER_STATUS:yX}}=Sp;function EX(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(EX,"parseH2Headers");async function CX(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",BX),me.addListener(r,"frameError",QX),me.addListener(r,"end",xX),me.addListener(r,"goaway",bX),me.addListener(r,"close",function(){let{[wc]:s}=this,{[wt]:i}=s,a=this[wt][Ln]||this[Ln]||new zA("closed",me.getSocketInfo(i));if(s[Mn]=null,s.destroyed){an(s[cX]===0);let c=s[Wi].splice(s[Tn]);for(let l=0;l<c.length;l++){let A=c[l];me.errorRequest(s,A,a)}}}),r.unref(),t[Mn]=r,e[Mn]=r,me.addListener(e,"error",function(s){an(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ln]=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[Ln]||new zA("closed",me.getSocketInfo(this));t[wt]=null,this[Mn]!=null&&this[Mn].destroy(s),t[uB]=t[Tn],an(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 NX(t,...s)},resume(){IX(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(CX,"connectH2");function IX(t){let e=t[wt];e?.destroyed===!1&&(t[AX]===0&&t[LM]===0?(e.unref(),t[Mn].unref()):(e.ref(),t[Mn].ref()))}o(IX,"resumeH2");function BX(t){an(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wt][Ln]=t,this[wc][dB](t)}o(BX,"onHttp2SessionError");function QX(t,e,r){if(r===0){let n=new AB(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[wt][Ln]=n,this[wc][dB](n)}}o(QX,"onHttp2FrameError");function xX(){let t=new zA("other side closed",me.getSocketInfo(this[wt]));this.destroy(t),me.destroy(this[wt],t)}o(xX,"onHttp2SessionEnd");function bX(t){let e=this[Ln]||new zA(`HTTP/2: "GOAWAY" frame received with code ${t}`,me.getSocketInfo(this)),r=this[wc];if(r[wt]=null,r[uX]=null,this[Mn]!=null&&(this[Mn].destroy(e),this[Mn]=null),me.destroy(this[wt],e),r[Tn]<r[Wi].length){let n=r[Wi][r[Tn]];r[Wi][r[Tn]++]=null,me.errorRequest(r,n,e),r[uB]=r[Tn]}an(r[Pp]===0),r.emit("disconnect",r[Np],[r],e),r[$i]()}o(bX,"onHTTP2GoAway");function wX(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(wX,"shouldSendContentLength");function NX(t,e){let r=t[Mn],{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[dX]=i||`${p}${h?`:${h}`:""}`,d[mX]=n;let f=o(B=>{e.aborted||e.completed||(B=B||new vM,me.errorRequest(t,e,B),m!=null&&me.destroy(m,B),me.destroy(u,B),t[Wi][t[Tn]++]=null,t[$i]())},"abort");try{e.onConnect(f)}catch(B){me.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),m=r.request(d,{endStream:!1,signal:l}),m.id&&!m.pending?(e.onUpgrade(null,null,m),++r[ui],t[Wi][t[Tn]++]=null):m.once("ready",()=>{e.onUpgrade(null,null,m),++r[ui],t[Wi][t[Tn]++]=null}),m.once("close",()=>{r[ui]-=1,r[ui]===0&&r.unref()}),!0;d[pX]=s,d[hX]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let y=me.bodyLength(u);if(me.isFormDataLike(u)){DM??=Bc().extractBody;let[B,N]=DM(u);d["content-type"]=N,u=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!C)&&(y=null),wX(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[lX])return me.errorRequest(t,e,new lB),!1;process.emitWarning(new lB)}y!=null Line truncated
`,this[ZX]=l??3e5,this[XX]=s??3e5,this[eZ]=E??!0,this[tZ]=B,this[fB]=S,this[Ki]=null,this[oZ]=de>-1?de:-1,this[cZ]=Ne??100,this[it]=null,this[_n]=[],this[mi]=0,this[Fn]=0,this[JA]=ee=>yB(this,ee),this[aZ]=ee=>jM(this,ee)}get pipelining(){return this[Tp]}set pipelining(e){this[Tp]=e,this[JA](!0)}get[jA](){return this[_n].length-this[Fn]}get[$A](){return this[Fn]-this[mi]}get[WA](){return this[_n].length-this[mi]}get[YX](){return!!this[it]&&!this[Sc]&&!this[it].destroyed}get[hB](){return!!(this[it]?.busy(null)||this[WA]>=($M(this)||1)||this[jA]>0)}[GX](e){KM(this),this.once("connect",e)}[iZ](e,r){let n=e.origin||this[As].origin,s=new FX(n,e,r);return this[_n].push(s),this[Wo]||(Jo.bodyLength(s.body)==null&&Jo.isIterable(s.body)?(this[Wo]=1,queueMicrotask(()=>yB(this))):this[JA](!0)),this[Wo]&&this[Xi]!==2&&this[hB]&&(this[Xi]=2),this[Xi]<2}async[nZ](){return new Promise(e=>{this[WA]?this[Ki]=e:e(null)})}async[sZ](e){return new Promise(r=>{let n=this[_n].splice(this[Fn]);for(let i=0;i<n.length;i++){let a=n[i];Jo.errorRequest(this,a,e)}let s=o(()=>{this[Ki]&&(this[Ki](),this[Ki]=null),r(null)},"callback");this[it]?(this[it].destroy(e,s),this[it]=null):queueMicrotask(s),this[JA]()})}},uZ=kp();function jM(t,e){if(t[$A]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){di(t[Fn]===t[mi]);let r=t[_n].splice(t[mi]);for(let n=0;n<r.length;n++){let s=r[n];Jo.errorRequest(t,s,e)}di(t[WA]===0)}}o(jM,"onError");async function KM(t){di(!t[Sc]),di(!t[it]);let{host:e,hostname:r,protocol:n,port:s}=t[As];if(r[0]==="["){let i=r.indexOf("]");di(i!==-1);let a=r.substring(1,i);di(WM.isIP(a)),r=a}t[Sc]=!0,Nc.beforeConnect.hasSubscribers&&Nc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[it]?.version,servername:t[ji],localAddress:t[VA]},connector:t[YA]});try{let i=await new Promise((a,c)=>{t[YA]({host:e,hostname:r,protocol:n,port:s,servername:t[ji],localAddress:t[VA]},(l,A)=>{l?c(l):a(A)})});if(t.destroyed){Jo.destroy(i.on("error",VM),new qX);return}di(i);try{t[it]=i.alpnProtocol==="h2"?await AZ(t,i):await lZ(t,i)}catch(a){throw i.destroy().on("error",VM),a}t[Sc]=!1,i[rZ]=0,i[fB]=t[fB],i[zX]=t,i[JX]=null,Nc.connected.hasSubscribers&&Nc.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[it]?.version,servername:t[ji],localAddress:t[VA]},connector:t[YA],socket:i}),t.emit("connect",t[As],[t])}catch(i){if(t.destroyed)return;if(t[Sc]=!1,Nc.connectError.hasSubscribers&&Nc.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[it]?.version,servername:t[ji],localAddress:t[VA]},connector:t[YA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(di(t[$A]===0);t[jA]>0&&t[_n][t[Fn]].servername===t[ji];){let a=t[_n][t[Fn]++];Jo.errorRequest(t,a,i)}else jM(t,i);t.emit("connectionError",t[As],[t],i)}t[JA]()}o(KM,"connect");function JM(t){t[Xi]=0,t.emit("drain",t[As],[t])}o(JM,"emitDrain");function yB(t,e){t[Wo]!==2&&(t[Wo]=2,dZ(t,e),t[Wo]=0,t[mi]>256&&(t[_n].splice(0,t[mi]),t[Fn]-=t[mi],t[mi]=0))}o(yB,"resume");function dZ(t,e){for(;;){if(t.destroyed){di(t[jA]===0);return}if(t[Ki]&&!t[WA]){t[Ki](),t[Ki]=null;return}if(t[it]&&t[it].resume(),t[hB])t[Xi]=2;else if(t[Xi]===2){e?(t[Xi]=1,queueMicrotask(()=>JM(t))):JM(t);continue}if(t[jA]===0||t[$A]>=($M(t)||1))return;let r=t[_n][t[Fn]];if(t[As].protocol==="https:"&&t[ji]!==r.servername){if(t[$A]>0)return;t[ji]=r.servername,t[it]?.destroy(new OX("servername changed"),()=>{t[it]=null,yB(t)})}if(t[Sc])return;if(!t[it]){KM(t);return}if(t[it].destroyed||t[it].busy(r))return;!r.aborted&&t[it].write(r)?t[Fn]++:t[_n].splice(t[Fn],1)}}o(dZ,"_resume");XM.exports=gB});var EB=g((_Ne,ZM)=>{"use strict";var Mp=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};ZM.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Mp}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Mp),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var tL=g((UNe,eL)=>{var{kFree:mZ,kConnected:pZ,kPending:hZ,kQueued:fZ,kRunning:gZ,kSize:yZ}=Oe(),$o=Symbol("pool"),CB=class{static{o(this,"PoolStats")}constructor(e){this[$o]=e}get connected(){return this[$o][pZ]}get free(){return this[$o][mZ]}get pending(){return this[$o][hZ]}get queued(){return this[$o][fZ]}get running(){return this[$o][gZ]}get size(){return this[$o][yZ]}};eL.exports=CB});var wB=g((qNe,uL)=>{"use strict";var EZ=mc(),CZ=EB(),{kConnected:IB,kSize:rL,kRunning:nL,kPending:sL,kQueued:KA,kBusy:IZ,kFree:BZ,kUrl:QZ,kClose:xZ,kDestroy:bZ,kDispatch:wZ}=Oe(),NZ=tL(),Ar=Symbol("clients"),$t=Symbol("needDrain"),XA=Symbol("que Line truncated
`,"latin1"),r!==null&&s!==r){if(n[lB])throw new Wo;process.emitWarning(new Wo)}e[ke].timeout&&e[ke].timeoutType===Dc&&e[ke].timeout.refresh&&e[ke].timeout.refresh(),n[di]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wi]=!1,e&&(V(n[ut]<=1,"pipeline should only contain this request"),s(e))}};FM.exports=pX});var JM=g((VSe,VM)=>{"use strict";var sn=require("node:assert"),{pipeline:IX}=require("node:stream"),de=ae(),{RequestContentLengthMismatchError:pB,RequestAbortedError:OM,SocketError:ZA,InformationalError:hB}=ge(),{kUrl:Dp,kReset:Tp,kClient:kc,kRunning:Mp,kPending:BX,kQueue:$i,kPendingIdx:fB,kRunningIdx:Mn,kError:_n,kSocket:Nt,kStrictContentLength:QX,kOnError:gB,kMaxConcurrentStreams:YM,kHTTP2Session:Ln,kResume:ji,kSize:xX,kHTTPContext:wX}=Fe(),mi=Symbol("open streams"),qM,HM=!1,kp;try{kp=require("node:http2")}catch{kp={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:bX,HTTP2_HEADER_METHOD:NX,HTTP2_HEADER_PATH:SX,HTTP2_HEADER_SCHEME:RX,HTTP2_HEADER_CONTENT_LENGTH:PX,HTTP2_HEADER_EXPECT:vX,HTTP2_HEADER_STATUS:DX}}=kp;function kX(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(kX,"parseH2Headers");async function TX(t,e){t[Nt]=e,HM||(HM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=kp.connect(t[Dp],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[YM]});r[mi]=0,r[kc]=t,r[Nt]=e,de.addListener(r,"error",LX),de.addListener(r,"frameError",_X),de.addListener(r,"end",FX),de.addListener(r,"goaway",UX),de.addListener(r,"close",function(){let{[kc]:s}=this,{[Nt]:i}=s,a=this[Nt][_n]||this[_n]||new ZA("closed",de.getSocketInfo(i));if(s[Ln]=null,s.destroyed){sn(s[BX]===0);let c=s[$i].splice(s[Mn]);for(let l=0;l<c.length;l++){let A=c[l];de.errorRequest(s,A,a)}}}),r.unref(),t[Ln]=r,e[Ln]=r,de.addListener(e,"error",function(s){sn(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_n]=s,this[kc][gB](s)}),de.addListener(e,"end",function(){de.destroy(this,new ZA("other side closed",de.getSocketInfo(this)))}),de.addListener(e,"close",function(){let s=this[_n]||new ZA("closed",de.getSocketInfo(this));t[Nt]=null,this[Ln]!=null&&this[Ln].destroy(s),t[fB]=t[Mn],sn(t[Mp]===0),t.emit("disconnect",t[Dp],[t],s),t[ji]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return qX(t,...s)},resume(){MX(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(TX,"connectH2");function MX(t){let e=t[Nt];e?.destroyed===!1&&(t[xX]===0&&t[YM]===0?(e.unref(),t[Ln].unref()):(e.ref(),t[Ln].ref()))}o(MX,"resumeH2");function LX(t){sn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Nt][_n]=t,this[kc][gB](t)}o(LX,"onHttp2SessionError");function _X(t,e,r){if(r===0){let n=new hB(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Nt][_n]=n,this[kc][gB](n)}}o(_X,"onHttp2FrameError");function FX(){let t=new ZA("other side closed",de.getSocketInfo(this[Nt]));this.destroy(t),de.destroy(this[Nt],t)}o(FX,"onHttp2SessionEnd");function UX(t){let e=this[_n]||new ZA(`HTTP/2: "GOAWAY" frame received with code ${t}`,de.getSocketInfo(this)),r=this[kc];if(r[Nt]=null,r[wX]=null,this[Ln]!=null&&(this[Ln].destroy(e),this[Ln]=null),de.destroy(this[Nt],e),r[Mn]<r[$i].length){let n=r[$i][r[Mn]];r[$i][r[Mn]++]=null,de.errorRequest(r,n,e),r[fB]=r[Mn]}sn(r[Mp]===0),r.emit("disconnect",r[Dp],[r],e),r[ji]()}o(UX,"onHTTP2GoAway");function OX(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(OX,"shouldSendContentLength");function qX(t,e){let r=t[Ln],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:A}=e,{body:u}=e;if(a)return de.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[Dp];d[bX]=i||`${p}${h?`:${h}`:""}`,d[NX]=n;let f=o(B=>{e.aborted||e.completed||(B=B||new OM,de.errorRequest(t,e,B),m!=null&&de.destroy(m,B),de.destroy(u,B),t[$i][t[Mn]++]=null,t[ji]())},"abort");try{e.onConnect(f)}catch(B){de.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),m=r.request(d,{endStream:!1,signal:l}),m.id&&!m.pending?(e.onUpgrade(null,null,m),++r[mi],t[$i][t[Mn]++]=null):m.once("ready",()=>{e.onUpgrade(null,null,m),++r[mi],t[$i][t[Mn]++]=null}),m.once("close",()=>{r[mi]-=1,r[mi]===0&&r.unref()}),!0;d[SX]=s,d[RX]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let y=de.bodyLength(u);if(de.isFormDataLike(u)){qM??=Rc().extractBody;let[B,N]=qM(u);d["content-type"]=N,u=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!C)&&(y=null),OX(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[QX])return de.errorRequest(t,e,new pB),!1;process.emitWarning(new pB)}y!=null Line truncated
`,this[mZ]=l??3e5,this[dZ]=s??3e5,this[pZ]=E??!0,this[hZ]=B,this[IB]=S,this[Xi]=null,this[CZ]=ye>-1?ye:-1,this[BZ]=Pe??100,this[nt]=null,this[Fn]=[],this[hi]=0,this[Un]=0,this[nu]=se=>QB(this,se),this[IZ]=se=>iL(this,se)}get pipelining(){return this[Up]}set pipelining(e){this[Up]=e,this[nu](!0)}get[ou](){return this[Fn].length-this[Un]}get[iu](){return this[Un]-this[hi]}get[su](){return this[Fn].length-this[hi]}get[iZ](){return!!this[nt]&&!this[Mc]&&!this[nt].destroyed}get[CB](){return!!(this[nt]?.busy(null)||this[su]>=(sL(this)||1)||this[ou]>0)}[sZ](e){oL(this),this.once("connect",e)}[EZ](e,r){let n=e.origin||this[As].origin,s=new XX(n,e,r);return this[Fn].push(s),this[Zo]||(Xo.bodyLength(s.body)==null&&Xo.isIterable(s.body)?(this[Zo]=1,queueMicrotask(()=>QB(this))):this[nu](!0)),this[Zo]&&this[Zi]!==2&&this[CB]&&(this[Zi]=2),this[Zi]<2}async[gZ](){return new Promise(e=>{this[su]?this[Xi]=e:e(null)})}async[yZ](e){return new Promise(r=>{let n=this[Fn].splice(this[Un]);for(let i=0;i<n.length;i++){let a=n[i];Xo.errorRequest(this,a,e)}let s=o(()=>{this[Xi]&&(this[Xi](),this[Xi]=null),r(null)},"callback");this[nt]?(this[nt].destroy(e,s),this[nt]=null):queueMicrotask(s),this[nu]()})}},wZ=Fp();function iL(t,e){if(t[iu]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){pi(t[Un]===t[hi]);let r=t[Fn].splice(t[hi]);for(let n=0;n<r.length;n++){let s=r[n];Xo.errorRequest(t,s,e)}pi(t[su]===0)}}o(iL,"onError");async function oL(t){pi(!t[Mc]),pi(!t[nt]);let{host:e,hostname:r,protocol:n,port:s}=t[As];if(r[0]==="["){let i=r.indexOf("]");pi(i!==-1);let a=r.substring(1,i);pi(nL.isIP(a)),r=a}t[Mc]=!0,Tc.beforeConnect.hasSubscribers&&Tc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nt]?.version,servername:t[Ki],localAddress:t[ru]},connector:t[tu]});try{let i=await new Promise((a,c)=>{t[tu]({host:e,hostname:r,protocol:n,port:s,servername:t[Ki],localAddress:t[ru]},(l,A)=>{l?c(l):a(A)})});if(t.destroyed){Xo.destroy(i.on("error",tL),new tZ);return}pi(i);try{t[nt]=i.alpnProtocol==="h2"?await xZ(t,i):await QZ(t,i)}catch(a){throw i.destroy().on("error",tL),a}t[Mc]=!1,i[fZ]=0,i[IB]=t[IB],i[nZ]=t,i[aZ]=null,Tc.connected.hasSubscribers&&Tc.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nt]?.version,servername:t[Ki],localAddress:t[ru]},connector:t[tu],socket:i}),t.emit("connect",t[As],[t])}catch(i){if(t.destroyed)return;if(t[Mc]=!1,Tc.connectError.hasSubscribers&&Tc.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nt]?.version,servername:t[Ki],localAddress:t[ru]},connector:t[tu],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(pi(t[iu]===0);t[ou]>0&&t[Fn][t[Un]].servername===t[Ki];){let a=t[Fn][t[Un]++];Xo.errorRequest(t,a,i)}else iL(t,i);t.emit("connectionError",t[As],[t],i)}t[nu]()}o(oL,"connect");function rL(t){t[Zi]=0,t.emit("drain",t[As],[t])}o(rL,"emitDrain");function QB(t,e){t[Zo]!==2&&(t[Zo]=2,bZ(t,e),t[Zo]=0,t[hi]>256&&(t[Fn].splice(0,t[hi]),t[Un]-=t[hi],t[hi]=0))}o(QB,"resume");function bZ(t,e){for(;;){if(t.destroyed){pi(t[ou]===0);return}if(t[Xi]&&!t[su]){t[Xi](),t[Xi]=null;return}if(t[nt]&&t[nt].resume(),t[CB])t[Zi]=2;else if(t[Zi]===2){e?(t[Zi]=1,queueMicrotask(()=>rL(t))):rL(t);continue}if(t[ou]===0||t[iu]>=(sL(t)||1))return;let r=t[Fn][t[Un]];if(t[As].protocol==="https:"&&t[Ki]!==r.servername){if(t[iu]>0)return;t[Ki]=r.servername,t[nt]?.destroy(new eZ("servername changed"),()=>{t[nt]=null,QB(t)})}if(t[Mc])return;if(!t[nt]){oL(t);return}if(t[nt].destroyed||t[nt].busy(r))return;!r.aborted&&t[nt].write(r)?t[Un]++:t[Fn].splice(t[Un],1)}}o(bZ,"_resume");aL.exports=BB});var xB=g((tRe,cL)=>{"use strict";var Op=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};cL.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Op}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Op),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var AL=g((nRe,lL)=>{var{kFree:NZ,kConnected:SZ,kPending:RZ,kQueued:PZ,kRunning:vZ,kSize:DZ}=Fe(),ea=Symbol("pool"),wB=class{static{o(this,"PoolStats")}constructor(e){this[ea]=e}get connected(){return this[ea][SZ]}get free(){return this[ea][NZ]}get pending(){return this[ea][RZ]}get queued(){return this[ea][PZ]}get running(){return this[ea][vZ]}get size(){return this[ea][DZ]}};lL.exports=wB});var vB=g((iRe,CL)=>{"use strict";var kZ=Cc(),TZ=xB(),{kConnected:bB,kSize:uL,kRunning:dL,kPending:mL,kQueued:au,kBusy:MZ,kFree:LZ,kUrl:_Z,kClose:FZ,kDestroy:UZ,kDispatch:OZ}=Fe(),qZ=AL(),ur=Symbol("clients"),jt=Symbol("needDrain"),cu=Symbol("que Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};y2.exports=wQ});var Zp=g((USe,Q2)=>{"use strict";var C2=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Zee}=ye(),ete=vc();B2()===void 0&&I2(new ete);function I2(t){if(!t||typeof t.dispatch!="function")throw new Zee("Argument agent must implement Agent");Object.defineProperty(globalThis,C2,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(I2,"setGlobalDispatcher");function B2(){return globalThis[C2]}o(B2,"getGlobalDispatcher");Q2.exports={setGlobalDispatcher:I2,getGlobalDispatcher:B2}});var eh=g((HSe,x2)=>{"use strict";x2.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var w2=g((GSe,b2)=>{"use strict";var tte=Dp();b2.exports=t=>{let e=t?.maxRedirections;return r=>o(function(s,i){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,i);let l=new tte(r,a,s,i);return r(c,l)},"redirectInterceptor")}});var S2=g((VSe,N2)=>{"use strict";var rte=zp();N2.exports=t=>e=>o(function(n,s){return e(n,new rte({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var P2=g((WSe,R2)=>{"use strict";var nte=ce(),{InvalidArgumentError:ste,RequestAbortedError:ite}=ye(),ote=eh(),NQ=class extends ote{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#r=!1;#i=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new ste("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#n=e}onHeaders(e,r,n,s){let a=nte.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new ite(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,n,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function ate({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new NQ({maxSize:i},s);return e(n,a)},"Intercept")}o(ate,"createDumpInterceptor");R2.exports=ate});var k2=g((jSe,D2)=>{"use strict";var{isIP:cte}=require("node:net"),{lookup:lte}=require("node:dns"),Ate=eh(),{InvalidArgumentError:Hc,InformationalError:ute}=ye(),v2=Math.pow(2,31)-1,SQ=class{static{o(this,"DNSInstance")}#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#i,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,n){let s=this.#r.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){n(a??new ute("No DNS entries found"));return}this.setRecords(e,c);let l=this.#r.get(e.hostname),A=this.pick(e,l,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let a=this.pick(e,s,i.affinity);if(a==null){this.#r.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#i(e,r,n){lte(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:i,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===v2?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?c=i[n]:c=i[n===4?6:4]):c=i[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===v2?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=s.records[i.family]??{ips:[]};a.ips.push(i),s.records[i.family]=a}this.#r.set(e.hostname,s)}getHandler(e,r){return new RQ(this,e,r)}},RQ=class extends Ate{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#r=null Line truncated
${i}`;break;case"retry":uU(i)&&(r[s]=i);break;case"id":dU(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&uU(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&dU(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};mU.exports={EventSourceStream:yx}});var BU=g((ZRe,IU)=>{"use strict";var{pipeline:Eie}=require("node:stream"),{fetching:Cie}=Au(),{makeRequest:Iie}=Yc(),{webidl:yi}=kt(),{EventSourceStream:Bie}=pU(),{parseMIMEType:Qie}=cr(),{createFastMessageEvent:xie}=Kc(),{isNetworkError:hU}=cu(),{delay:bie}=fx(),{kEnumerableProperty:Aa}=ce(),{environmentSettingsObject:fU}=Pr(),gU=!1,yU=3e3,xu=0,EU=1,bu=2,wie="anonymous",Nie="use-credentials",rl=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#r=!1;#i=xu;#s=null;#n=null;#o;#a;constructor(e,r={}){super(),yi.util.markAsUncloneable(this);let n="EventSource constructor";yi.argumentLengthCheck(arguments,1,n),gU||(gU=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=yi.converters.USVString(e,n,"url"),r=yi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:yU};let s=fU,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=wie;r.withCredentials&&(a=Nie,this.#r=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=fU.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=Iie(c),this.#l()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#l(){if(this.#i===bu)return;this.#i=xu;let e={request:this.#s,dispatcher:this.#o},r=o(n=>{hU(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(hU(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?Qie(s):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=EU,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new Bie({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(xie(l.type,l.options))},"push")});Eie(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Cie(e)}async#c(){this.#i!==bu&&(this.#i=xu,this.dispatchEvent(new Event("error")),await bie(this.#a.reconnectionTime),this.#i===xu&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){yi.brandCheck(this,t),this.#i!==bu&&(this.#i=bu,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},CU={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:xu,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:EU,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:bu,writable:!1}};Object.defineProperties(rl,CU);Object.defineProperties(rl.prototype,CU);Object.defineProperties(rl.prototype,{close:Aa,onerror:Aa,onmessage:Aa,onopen:Aa,readyState:Aa,url:Aa,withCredentials:Aa});yi.converters.EventSourceInitDict=yi.dictionaryConverter([{key:"withCredentials",converter:yi.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:yi.converters.any}]);IU.exports={EventSource:rl,defaultReconnectionTime:yU}});var Ex=g((tPe,K)=>{"use strict";var Sie=Rc(),QU=RA(),Rie=Pc(),Pie=CL(),vie=vc(),Die=UB(),kie=GL(),Tie=KL(),xU=ye(),qh=ce(),{InvalidArgumentError:Oh}=xU,nl=__(),Mie=vA(),Lie=CQ(),_ie=E2(),Fie=QQ(),Uie=aQ(),Oie=zp(),{getGlobalDispatcher:bU,setGlobalDispatcher:qie}=Zp(),Hie=eh(),zie=Dp(),Gie=kp();Object.assign(QU.prototype,nl);K.exports.Dispatcher=QU;K.exports.Client=Sie;K.exports.Pool=Rie;K.exports.BalancedPool=Pie;K.exports.Agent=vie;K.exports.ProxyAg Line truncated
%s`,N,N,E,n);var S=E.type==="*"?yb:E.type==="?"?gb:"\\"+E.type;s=!0,n=n.slice(0,E.reStart)+S+"\\("+N}h(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var de=c.length-1;de>-1;de--){var be=c[de],Be=n.slice(0,be.reStart),Ne=n.slice(be.reStart,be.reEnd-8),ae=n.slice(be.reEnd-8,be.reEnd),De=n.slice(be.reEnd);ae+=De;var ee=Be.split("(").length-1,Vt=De;for(f=0;f<ee;f++)Vt=Vt.replace(/\)[+*?]?/,"");De=Vt;var H="";De===""&&e!==Af&&(H="$");var Qe=Be+Ne+De+H+ae;n=Qe}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=m+n),e===Af)return[n,s];if(!s)return nAe(t);var rs=r.nocase?"i":"";try{var zi=new RegExp("^"+n+"$",rs)}catch{return new RegExp("$.")}return zi._glob=t,zi._src=n,zi}o(tAe,"parse");qr.makeRe=function(t,e){return new Tt(t,e||{}).makeRe()};Tt.prototype.makeRe=rAe;function rAe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?yb:e.dot?Wle:$le,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(a){return a===Eb?r:typeof a=="string"?sAe(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}o(rAe,"makeRe");qr.match=function(t,e,r){r=r||{};var n=new Tt(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Tt.prototype.match=o(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;Vu.sep!=="/"&&(e=e.split(Vu.sep).join("/")),e=e.split(QH),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<s.length;a++){var c=s[a],l=e;n.matchBase&&c.length===1&&(l=[i]);var A=this.matchOne(l,c,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");Tt.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,a=t.length,c=e.length;s<a&&i<c;s++,i++){this.debug("matchOne loop");var l=e[i],A=t[s];if(this.debug(e,l,A),l===!1)return!1;if(l===Eb){this.debug("GLOBSTAR",[e,l,A]);var u=s,d=i+1;if(d===c){for(this.debug("** at the end");s<a;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<a;){var m=t[u];if(this.debug(`
globstar while`,t,u,e,d,m),this.matchOne(t.slice(u),e.slice(d),r))return this.debug("globstar found match!",u,a,m),!0;if(m==="."||m===".."||!n.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,u,e,d);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,d),u===a))}var p;if(typeof l=="string"?(p=A===l,this.debug("string match",l,A,p)):(p=A.match(l),this.debug("pattern match",l,A,p)),!p)return!1}if(s===a&&i===c)return!0;if(s===a)return r;if(i===c)return s===a-1&&t[s]==="";throw new Error("wtf?")};function nAe(t){return t.replace(/\\(.)/g,"$1")}o(nAe,"globUnescape");function sAe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(sAe,"regExpEscape")});var $u=g((UTe,PH)=>{"use strict";var dAe="2.0.0",mAe=Number.MAX_SAFE_INTEGER||9007199254740991,pAe=16,hAe=250,fAe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];PH.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:pAe,MAX_SAFE_BUILD_LENGTH:hAe,MAX_SAFE_INTEGER:mAe,RELEASE_TYPES:fAe,SEMVER_SPEC_VERSION:dAe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ju=g((OTe,vH)=>{"use strict";var gAe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};vH.exports=gAe});var pl=g((ys,DH)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Ib,MAX_SAFE_BUILD_LENGTH:yAe,MAX_LENGTH:EAe}=$u(),CAe=ju();ys=DH.exports={};var IAe=ys.re=[],BAe=ys.safeRe=[],L=ys.src=[],QAe=ys.safeSrc=[],_=ys.t={},xAe=0,Bb="[a-zA-Z0-9-]",bAe=[["\\s",1],["\\d",EAe],[Bb,yAe]],wAe=o(t=>{for(let[e,r]of bAe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),re=o((t,e,r)=>{let n=wAe(e),s=xAe++;CAe(t,s,e),_[t]=s,L[s]=e,QAe[s]=n,IAe[s]=new RegExp(e,r?"g":void 0),BAe[s]=new RegExp(n,r?"g":void 0)},"createToken");re("NUMERICIDENTIFIER","0|[1-9]\\d*");re("NUMERICIDENTIFIERLOOSE","\\d+");re("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Bb}*`);re("MAINVERSION",`(${L[_.NUMERICIDENTIFIER]})\\.(${L[_.NUMERICIDENTIFIER]})\\.(${L[_.NUMERICIDENTIFIER]})`);re("MAINVERSIONLOOSE",`(${L[_.NUMERICIDENTIFIERLOOSE]})\\.(${L[_.NUMERICIDENTIFIERLOOSE]})\\.(${L[_.NUMERICIDENTIFIERLOOSE]})`);re("PRERELEASEIDENTIFIER",`(?:${L[_.NONNUMERICIDENTIFIER]}|${L[_.NUMERICIDENTIFIER]})`);re("PRERELEASEIDENTIFIERLOOSE",`(?:${L[_.NONNUMERICIDENTIFIER]}|${L[_.NUMERICIDENTIFIERLOOSE]})`);re("PRERELEASE",`(?:-(${L[_.PRERELEASEIDENTIFIER]}(?:\\.${L[_.PRERELEASEIDENTIFIER]})*))`);re("PRERELEASELOOSE",`(?:-?(${L[_.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[_.PRERELEASEIDENTIFIERLOOSE]})*))`);re("BUILDIDENTIFIER",`${Bb}+`);re("BUILD",`(?:\\+(${L[_.BUILDIDENTIFIER]}(?:\\.${L[_.BUILDIDENTIFIER]})*))`);re("FULLPLAIN",`v?${L[_.MAINVERSION]}${L[_.PRERELEASE]}?${L[_.BUILD]}?`);re("FULL",`^${L[_.FULLPLAIN]}$`);re("LOOSEPLAIN",`[v=\\s]*${L[_.MAINVERSIONLOOSE]}${L[_.PRERELEASELOOSE]}?${L[_.BUILD]}?`);re("LOOSE",`^${L[_.LOOSEPLAIN]}$`);re("GTLT","((?:<|>)?=?)");re("XRANGEIDENTIFIERLOOSE",`${L[_.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);re("XRANGEIDENTIFIER",`${L[_.NUMERICIDENTIFIER]}|x|X|\\*`);re("XRANGEPLAIN",`[v=\\s]*(${L[_.XRANGEIDENTIFIER]})(?:\\.(${L[_.XRANGEIDENTIFIER]})(?:\\.(${L[_.XRANGEIDENTIFIER]})(?:${L[_.PRERELEASE]})?${L[_.BUILD]}?)?)?`);re("XRANGEPLAINLOOSE",`[v=\\s]*(${L[_.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[_.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[_.XRANGEIDENTIFIERLOOSE]})(?:${L[_.PRERELEASELOOSE]})?${L[_.BUILD]}?)?)?`);re("XRANGE",`^${L[_.GTLT]}\\s*${L[_.XRANGEPLAIN]}$`);re("XRANGELOOSE",`^${L[_.GTLT]}\\s*${L[_.XRANGEPLAINLOOSE]}$`);re("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Ib}})(?:\\.(\\d{1,${Ib}}))?(?:\\.(\\d{1,${Ib}}))?`);re("COERCE",`${L[_.COERCEPLAIN]}(?:$|[^\\d])`);re("COERCEFULL",L[_.COERCEPLAIN]+`(?:${L[_.PRERELEASE]})?(?:${L[_.BUILD]})?(?:$|[^\\d])`);re("COERCERTL",L[_.COERCE],!0);re("COERCERTLFULL",L[_.COERCEFULL],!0);re("LONETILDE","(?:~>?)");re("TILDETRIM",`(\\s*)${L[_.LONETILDE]}\\s+`,!0);ys.tildeTrimReplace="$1~";re("TILDE",`^${L[_.LONETILDE]}${L[_.XRANGEPLAIN]}$`);re("TILDELOOSE",`^${L[_.LONETILDE]}${L[_.XRANGEPLAINLOOSE]}$`);re("LONECARET","(?:\\^)");re("CARETTRIM",`(\\s*)${L[_.LONECARET]}\\s+`,!0);ys.caretTrimReplace="$1^";re("CARET",`^${L[_.LONECARET]}${L[_.XRANGEPLAIN]}$`);re("CARETLOOSE",`^${L[_.LONECARET]}${L[_.XRANGEPLAINLOOSE]}$`);re("COMPARATORLOOSE",`^${L[_.GTLT]}\\s*(${L[_.LOOSEPLAIN]})$|^$`);re("COMPARATOR",`^${L[_.GTLT]}\\s*(${L[_.FULLPLAIN]})$|^$`);re("COMPARATORTRIM",`(\\s*)${L[_.GTLT]}\\s*(${L[_.LOOSEPLAIN]}|${L[_.XRANGEPLAIN]})`,!0);ys.comparatorTrimReplace="$1$2$3";re("HYPHENRANGE",`^\\s*(${L[_.XRANGEPLAIN]})\\s+-\\s+(${L[_.XRANGEPLAIN]})\\s*$`);re("HYPHENRANGELOOSE",`^\\s*(${L[_.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[_.XRANGEPLAINLOOSE]})\\s*$`);re("STAR","(<|>)?=?\\s*\\*");re("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");re("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var pf=g((HTe,kH)=>{"use strict";var NAe=Object.freeze({loose:!0}),SAe=Object.freeze({}),RAe=o(t=>t?typeof t!="object"?NAe:t:SAe,"parseOptions");kH.exports=RAe});var Qb=g((GTe,LH)=>{"use strict";var TH=/^[0-9]+$/,MH=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=TH.test(t),n=TH.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),PAe=o((t,e)=>MH(e,t),"rcompareIdentifiers");LH Line truncated
`.trim())}};N2.exports=vQ});var sh=g((nPe,D2)=>{"use strict";var R2=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:mte}=ge(),pte=Fc();v2()===void 0&&P2(new pte);function P2(t){if(!t||typeof t.dispatch!="function")throw new mte("Argument agent must implement Agent");Object.defineProperty(globalThis,R2,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(P2,"setGlobalDispatcher");function v2(){return globalThis[R2]}o(v2,"getGlobalDispatcher");D2.exports={setGlobalDispatcher:P2,getGlobalDispatcher:v2}});var ih=g((oPe,k2)=>{"use strict";k2.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var M2=g((cPe,T2)=>{"use strict";var hte=_p();T2.exports=t=>{let e=t?.maxRedirections;return r=>o(function(s,i){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,i);let l=new hte(r,a,s,i);return r(c,l)},"redirectInterceptor")}});var _2=g((APe,L2)=>{"use strict";var fte=Wp();L2.exports=t=>e=>o(function(n,s){return e(n,new fte({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var U2=g((dPe,F2)=>{"use strict";var gte=ae(),{InvalidArgumentError:yte,RequestAbortedError:Ete}=ge(),Cte=ih(),DQ=class extends Cte{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new yte("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let a=gte.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Ete(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#o.onError(this.#i):this.#o.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function Ite({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new DQ({maxSize:i},s);return e(n,a)},"Intercept")}o(Ite,"createDumpInterceptor");F2.exports=Ite});var H2=g((pPe,q2)=>{"use strict";var{isIP:Bte}=require("node:net"),{lookup:Qte}=require("node:dns"),xte=ih(),{InvalidArgumentError:$c,InformationalError:wte}=ge(),O2=Math.pow(2,31)-1,kQ=class{static{o(this,"DNSInstance")}#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){n(a??new wte("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),A=this.pick(e,l,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let a=this.pick(e,s,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){Qte(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:i,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===O2?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?c=i[n]:c=i[n===4?6:4]):c=i[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===O2?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=s.records[i.family]??{ips:[]};a.ips.push(i),s.records[i.family]=a}this.#n.set(e.hostname,s)}getHandler(e,r){return new TQ(this,e,r)}},TQ=class extends xte{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#n=null Line truncated
${i}`;break;case"retry":CU(i)&&(r[s]=i);break;case"id":IU(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&CU(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&IU(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};BU.exports={EventSourceStream:Qx}});var vU=g((gve,PU)=>{"use strict";var{pipeline:kie}=require("node:stream"),{fetching:Tie}=Cu(),{makeRequest:Mie}=Xc(),{webidl:Ci}=Tt(),{EventSourceStream:Lie}=QU(),{parseMIMEType:_ie}=lr(),{createFastMessageEvent:Fie}=sl(),{isNetworkError:xU}=yu(),{delay:Uie}=Ix(),{kEnumerableProperty:ha}=ae(),{environmentSettingsObject:wU}=vr(),bU=!1,NU=3e3,Tu=0,SU=1,Mu=2,Oie="anonymous",qie="use-credentials",ll=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Tu;#s=null;#i=null;#o;#a;constructor(e,r={}){super(),Ci.util.markAsUncloneable(this);let n="EventSource constructor";Ci.argumentLengthCheck(arguments,1,n),bU||(bU=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ci.converters.USVString(e,n,"url"),r=Ci.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:NU};let s=wU,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=Oie;r.withCredentials&&(a=qie,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=wU.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=Mie(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===Mu)return;this.#r=Tu;let e={request:this.#s,dispatcher:this.#o},r=o(n=>{xU(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(xU(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?_ie(s):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=SU,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new Lie({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(Fie(l.type,l.options))},"push")});kie(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Tie(e)}async#c(){this.#r!==Mu&&(this.#r=Tu,this.dispatchEvent(new Event("error")),await Uie(this.#a.reconnectionTime),this.#r===Tu&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){Ci.brandCheck(this,t),this.#r!==Mu&&(this.#r=Mu,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},RU={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Tu,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:SU,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Mu,writable:!1}};Object.defineProperties(ll,RU);Object.defineProperties(ll.prototype,RU);Object.defineProperties(ll.prototype,{close:ha,onerror:ha,onmessage:ha,onopen:ha,readyState:ha,url:ha,withCredentials:ha});Ci.converters.EventSourceInitDict=Ci.dictionaryConverter([{key:"withCredentials",converter:Ci.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Ci.converters.any}]);PU.exports={EventSource:ll,defaultReconnectionTime:NU}});var xx=g((Eve,K)=>{"use strict";var Hie=Lc(),DU=UA(),zie=_c(),Gie=RL(),Yie=Fc(),Vie=GB(),Jie=ZL(),Wie=o_(),kU=ge(),Vh=ae(),{InvalidArgumentError:Yh}=kU,Al=V_(),$ie=qA(),jie=wQ(),Kie=S2(),Xie=SQ(),Zie=dQ(),eoe=Wp(),{getGlobalDispatcher:TU,setGlobalDispatcher:toe}=sh(),roe=ih(),noe=_p(),soe=Fp();Object.assign(DU.prototype,Al);K.exports.Dispatcher=DU;K.exports.Client=Hie;K.exports.Pool=zie;K.exports.BalancedPool=Gie;K.exports.Agent=Yie;K.exports.ProxyAg Line truncated
`).join(`
`+i),t.push(s+"m+"+eg.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ipe()+e+" "+t[0]}o(spe,"formatArgs");function ipe(){return Mt.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(ipe,"getDate");function ope(...t){return process.stderr.write(Zf.format(...t)+`
`)}o(ope,"log");function ape(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(ape,"save");function cpe(){return process.env.DEBUG}o(cpe,"load");function lpe(t){t.inspectOpts={};let e=Object.keys(Mt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Mt.inspectOpts[e[r]]}o(lpe,"init");eg.exports=Aw()(Mt);var{formatters:pY}=eg.exports;pY.o=function(t){return this.inspectOpts.colors=this.useColors,Zf.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};pY.O=function(t){return this.inspectOpts.colors=this.useColors,Zf.inspect(t,this.inspectOpts)}});var tg=g((R2e,mw)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?mw.exports=cY():mw.exports=hY()});var yY=g(yr=>{"use strict";var Ape=yr&&yr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),upe=yr&&yr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fY=yr&&yr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ape(e,t,r);return upe(e,t),e};Object.defineProperty(yr,"__esModule",{value:!0});yr.req=yr.json=yr.toBuffer=void 0;var dpe=fY(require("http")),mpe=fY(require("https"));async function gY(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(gY,"toBuffer");yr.toBuffer=gY;async function ppe(t){let r=(await gY(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(ppe,"json");yr.json=ppe;function hpe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?mpe:dpe).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(hpe,"req");yr.req=hpe});var BY=g(Yr=>{"use strict";var CY=Yr&&Yr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fpe=Yr&&Yr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),IY=Yr&&Yr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&CY(e,t,r);return fpe(e,t),e},gpe=Yr&&Yr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&CY(e,t,r)};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.Agent=void 0;var ype=IY(require("net")),EY=IY(require("http")),Epe=require("https");gpe(yY(),Yr);var Bs=Symbol("AgentBaseInternalState"),pw=class extends EY.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Bs]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new ype.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Epe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof EY.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[Bs].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Bs].currentSocket;if(this[Bs].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Bs].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Bs]&&(this[Bs].defaultPort=e)}get protocol(){return this[Bs].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Bs]&&(this[Bs].protocol=e)}};Yr.Agent=pw});var QY=g(xl=>{"use strict";var Cpe=xl&&xl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xl,"__esModule",{value:!0});xl.parseProxyResponse=void 0;var Ipe=Cpe(tg()),rg=(0,Ipe.default)("https-proxy-agent:parse-proxy-response");function Bpe(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),rg("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(u){a(),rg("onerror %o",u),r(u)}o(l,"onerror");function A(u){s.push(u),n+=u.length;let d=Buffer.concat(s,n),m=d.indexOf(`\r
`+i),t.push(s+"m+"+sg.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=fhe()+e+" "+t[0]}o(hhe,"formatArgs");function fhe(){return _t.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(fhe,"getDate");function ghe(...t){return process.stderr.write(ng.format(...t)+`
`)}o(ghe,"log");function yhe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(yhe,"save");function Ehe(){return process.env.DEBUG}o(Ehe,"load");function Che(t){t.inspectOpts={};let e=Object.keys(_t.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=_t.inspectOpts[e[r]]}o(Che,"init");sg.exports=gb()(_t);var{formatters:IY}=sg.exports;IY.o=function(t){return this.inspectOpts.colors=this.useColors,ng.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};IY.O=function(t){return this.inspectOpts.colors=this.useColors,ng.inspect(t,this.inspectOpts)}});var ig=g((g1e,Cb)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Cb.exports=hY():Cb.exports=BY()});var wY=g(Er=>{"use strict";var Ihe=Er&&Er.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Bhe=Er&&Er.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),QY=Er&&Er.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ihe(e,t,r);return Bhe(e,t),e};Object.defineProperty(Er,"__esModule",{value:!0});Er.req=Er.json=Er.toBuffer=void 0;var Qhe=QY(require("http")),xhe=QY(require("https"));async function xY(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(xY,"toBuffer");Er.toBuffer=xY;async function whe(t){let r=(await xY(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(whe,"json");Er.json=whe;function bhe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?xhe:Qhe).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(bhe,"req");Er.req=bhe});var RY=g(Yr=>{"use strict";var NY=Yr&&Yr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Nhe=Yr&&Yr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),SY=Yr&&Yr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&NY(e,t,r);return Nhe(e,t),e},She=Yr&&Yr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&NY(e,t,r)};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.Agent=void 0;var Rhe=SY(require("net")),bY=SY(require("http")),Phe=require("https");She(wY(),Yr);var Bs=Symbol("AgentBaseInternalState"),Ib=class extends bY.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Bs]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Rhe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Phe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof bY.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[Bs].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Bs].currentSocket;if(this[Bs].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Bs].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Bs]&&(this[Bs].defaultPort=e)}get protocol(){return this[Bs].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Bs]&&(this[Bs].protocol=e)}};Yr.Agent=Ib});var PY=g(Dl=>{"use strict";var vhe=Dl&&Dl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dl,"__esModule",{value:!0});Dl.parseProxyResponse=void 0;var Dhe=vhe(ig()),og=(0,Dhe.default)("https-proxy-agent:parse-proxy-response");function khe(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),og("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(u){a(),og("onerror %o",u),r(u)}o(l,"onerror");function A(u){s.push(u),n+=u.length;let d=Buffer.concat(s,n),m=d.indexOf(`\r
\r
`);if(m===-1){rg("have not received end of HTTP headers yet..."),i();return}let p=d.slice(0,m).toString("ascii").split(`\r
`),h=p.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=h.split(" "),C=+f[1],y=f.slice(2).join(" "),E={};for(let I of p){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,B).toLowerCase(),S=I.slice(B+1).trimStart(),F=E[N];typeof F=="string"?E[N]=[F,S]:Array.isArray(F)?F.push(S):E[N]=S}rg("got proxy server response: %o %o",h,E),a(),e({connect:{statusCode:C,statusText:y,headers:E},buffered:d})}o(A,"ondata"),t.on("error",l),t.on("end",c),i()})}o(Bpe,"parseProxyResponse");xl.parseProxyResponse=Bpe});var RY=g(En=>{"use strict";var Qpe=En&&En.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),xpe=En&&En.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NY=En&&En.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Qpe(e,t,r);return xpe(e,t),e},SY=En&&En.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(En,"__esModule",{value:!0});En.HttpsProxyAgent=void 0;var ng=NY(require("net")),xY=NY(require("tls")),bpe=SY(require("assert")),wpe=SY(tg()),Npe=BY(),Spe=require("url"),Rpe=QY(),dd=(0,wpe.default)("https-proxy-agent"),bY=o(t=>t.servername===void 0&&t.host&&!ng.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),sg=class extends Npe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Spe.URL(e):e,this.proxyHeaders=r?.headers??{},dd("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?wY(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(dd("Creating `tls.Socket`: %o",this.connectOpts),s=xY.connect(bY(this.connectOpts))):(dd("Creating `net.Socket`: %o",this.connectOpts),s=ng.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=ng.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`);if(m===-1){og("have not received end of HTTP headers yet..."),i();return}let p=d.slice(0,m).toString("ascii").split(`\r
`),h=p.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=h.split(" "),C=+f[1],y=f.slice(2).join(" "),E={};for(let I of p){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,B).toLowerCase(),S=I.slice(B+1).trimStart(),F=E[N];typeof F=="string"?E[N]=[F,S]:Array.isArray(F)?F.push(S):E[N]=S}og("got proxy server response: %o %o",h,E),a(),e({connect:{statusCode:C,statusText:y,headers:E},buffered:d})}o(A,"ondata"),t.on("error",l),t.on("end",c),i()})}o(khe,"parseProxyResponse");Dl.parseProxyResponse=khe});var LY=g(yn=>{"use strict";var The=yn&&yn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Mhe=yn&&yn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),TY=yn&&yn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&The(e,t,r);return Mhe(e,t),e},MY=yn&&yn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yn,"__esModule",{value:!0});yn.HttpsProxyAgent=void 0;var ag=TY(require("net")),vY=TY(require("tls")),Lhe=MY(require("assert")),_he=MY(ig()),Fhe=RY(),Uhe=require("url"),Ohe=PY(),Id=(0,_he.default)("https-proxy-agent"),DY=o(t=>t.servername===void 0&&t.host&&!ag.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),cg=class extends Fhe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Uhe.URL(e):e,this.proxyHeaders=r?.headers??{},Id("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?kY(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Id("Creating `tls.Socket`: %o",this.connectOpts),s=vY.connect(DY(this.connectOpts))):(Id("Creating `net.Socket`: %o",this.connectOpts),s=ag.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=ag.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;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
`;let l=(0,Rpe.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:A,buffered:u}=await l;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",Ppe),r.secureEndpoint?(dd("Upgrading socket connection to TLS"),xY.connect({...wY(bY(r),"host","path","port"),socket:s})):s;s.destroy();let d=new ng.Socket({writable:!1});return d.readable=!0,e.once("socket",m=>{dd("Replaying proxy buffer for failed request"),(0,bpe.default)(m.listenerCount("data")>0),m.push(u),m.push(null)}),d}};sg.protocols=["http","https"];En.HttpsProxyAgent=sg;function Ppe(t){t.resume()}o(Ppe,"resume");function wY(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(wY,"omit")});var DY=g(Er=>{"use strict";var vpe=Er&&Er.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Dpe=Er&&Er.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),PY=Er&&Er.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vpe(e,t,r);return Dpe(e,t),e};Object.defineProperty(Er,"__esModule",{value:!0});Er.req=Er.json=Er.toBuffer=void 0;var kpe=PY(require("http")),Tpe=PY(require("https"));async function vY(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(vY,"toBuffer");Er.toBuffer=vY;async function Mpe(t){let r=(await vY(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(Mpe,"json");Er.json=Mpe;function Lpe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Tpe:kpe).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(Lpe,"req");Er.req=Lpe});var LY=g(Vr=>{"use strict";var TY=Vr&&Vr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),_pe=Vr&&Vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MY=Vr&&Vr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&TY(e,t,r);return _pe(e,t),e},Fpe=Vr&&Vr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&TY(e,t,r)};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Agent=void 0;var Upe=MY(require("net")),kY=MY(require("http")),Ope=require("https");Fpe(DY(),Vr);var Qs=Symbol("AgentBaseInternalState"),hw=class extends kY.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Qs]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Upe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Ope.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof kY.Agent)return c.addRequest(e,s);this[Qs].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Qs].currentSocket;if(this[Qs].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Qs].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Qs]&&(this[Qs].defaultPort=e)}get protocol(){return this[Qs].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Qs]&&(this[Qs].protocol=e)}};Vr.Agent=hw});var UY=g(Cn=>{"use strict";var qpe=Cn&&Cn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Hpe=Cn&&Cn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FY=Cn&&Cn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&qpe(e,t,r);return Hpe(e,t),e},zpe=Cn&&Cn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.HttpProxyAgent=void 0;var Gpe=FY(require("net")),Ype=FY(require("tls")),Vpe=zpe(tg()),Jpe=require("events"),Wpe=LY(),_Y=require("url"),bl=(0,Vpe.default)("http-proxy-agent"),ig=class extends Wpe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new _Y.URL(e):e,this.proxyHeaders=r?.headers??{},bl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?$pe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new _Y.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(l)){let u=l[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;bl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(bl("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let l=(0,Ohe.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:A,buffered:u}=await l;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",qhe),r.secureEndpoint?(Id("Upgrading socket connection to TLS"),vY.connect({...kY(DY(r),"host","path","port"),socket:s})):s;s.destroy();let d=new ag.Socket({writable:!1});return d.readable=!0,e.once("socket",m=>{Id("Replaying proxy buffer for failed request"),(0,Lhe.default)(m.listenerCount("data")>0),m.push(u),m.push(null)}),d}};cg.protocols=["http","https"];yn.HttpsProxyAgent=cg;function qhe(t){t.resume()}o(qhe,"resume");function kY(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(kY,"omit")});var UY=g(Cr=>{"use strict";var Hhe=Cr&&Cr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zhe=Cr&&Cr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_Y=Cr&&Cr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Hhe(e,t,r);return zhe(e,t),e};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.req=Cr.json=Cr.toBuffer=void 0;var Ghe=_Y(require("http")),Yhe=_Y(require("https"));async function FY(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(FY,"toBuffer");Cr.toBuffer=FY;async function Vhe(t){let r=(await FY(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(Vhe,"json");Cr.json=Vhe;function Jhe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Yhe:Ghe).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(Jhe,"req");Cr.req=Jhe});var zY=g(Vr=>{"use strict";var qY=Vr&&Vr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Whe=Vr&&Vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),HY=Vr&&Vr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&qY(e,t,r);return Whe(e,t),e},$he=Vr&&Vr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&qY(e,t,r)};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Agent=void 0;var jhe=HY(require("net")),OY=HY(require("http")),Khe=require("https");$he(UY(),Vr);var Qs=Symbol("AgentBaseInternalState"),Bb=class extends OY.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Qs]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new jhe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Khe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof OY.Agent)return c.addRequest(e,s);this[Qs].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Qs].currentSocket;if(this[Qs].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Qs].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Qs]&&(this[Qs].defaultPort=e)}get protocol(){return this[Qs].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Qs]&&(this[Qs].protocol=e)}};Vr.Agent=Bb});var VY=g(En=>{"use strict";var Xhe=En&&En.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Zhe=En&&En.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YY=En&&En.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xhe(e,t,r);return Zhe(e,t),e},efe=En&&En.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(En,"__esModule",{value:!0});En.HttpProxyAgent=void 0;var tfe=YY(require("net")),rfe=YY(require("tls")),nfe=efe(ig()),sfe=require("events"),ife=zY(),GY=require("url"),kl=(0,nfe.default)("http-proxy-agent"),lg=class extends ife.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new GY.URL(e):e,this.proxyHeaders=r?.headers??{},kl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?ofe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new GY.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(l)){let u=l[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;kl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(kl("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\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=Ype.connect(this.connectOpts)):(bl("Creating `net.Socket`: %o",this.connectOpts),i=Gpe.connect(this.connectOpts)),await(0,Jpe.once)(i,"connect"),i}};ig.protocols=["http","https"];Cn.HttpProxyAgent=ig;function $pe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o($pe,"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 hCe=require("os"),fCe=require("util");function gCe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(gCe,"_interopDefaultLegacy");var yCe=gCe(fCe);function ECe(t,...e){process.stderr.write(`${yCe.default.format(t,...e)}${hCe.EOL}`)}o(ECe,"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:CCe,log:ECe});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 CCe(){let t=W3||"";return $R(""),t}o(CCe,"disable");function j3(t){let e=Object.assign(r,{enabled:jR(t),destroy:ICe,log:$3.log,namespace:t,extend:BCe});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 ICe(){let t=zy.indexOf(this);return t>=0?(zy.splice(t,1),!0):!1}o(ICe,"destroy");function BCe(t){let e=j3(`${this.namespace}:${t}`);return e.log=this.log,e}o(BCe,"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_LEVEL set to unknown log level '${qy}'; logging is not enabled. Acceptable values: ${KR.join(", ")}.`));function X3(t){if(t&&!t4(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${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 QCe(){return Gy}o(QCe,"getLogLevel");var J3={verbose:400,info:300,warning:200,error:100};function xCe(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(xCe,"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=xCe;zl.getLogLevel=QCe;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){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function n4(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Gl.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Vy.set(t,!0)}o(n4,"abortSignal");var XR=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},ZR=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new em,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){n4(this._signal)}static timeout(e){let r=new em,n=setTimeout(n4,e,r);return typeof n.unref=="function"&&n.unref(),r}};tm.AbortController=ZR;tm.AbortError=XR;tm.AbortSignal=em});var c4=g(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var bCe Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),kl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(kl("Creating `tls.Socket`: %o",this.connectOpts),i=rfe.connect(this.connectOpts)):(kl("Creating `net.Socket`: %o",this.connectOpts),i=tfe.connect(this.connectOpts)),await(0,sfe.once)(i,"connect"),i}};lg.protocols=["http","https"];En.HttpProxyAgent=lg;function ofe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(ofe,"omit")});var pV=g(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});Qg.state=void 0;Qg.state={instrumenterImplementation:void 0}});var vV=g(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.state=void 0;Sg.state={operationRequestMap:new WeakMap}});var l4=g(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var bIe=require("os"),NIe=require("util");function SIe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(SIe,"_interopDefaultLegacy");var RIe=SIe(NIe);function PIe(t,...e){process.stderr.write(`${RIe.default.format(t,...e)}${bIe.EOL}`)}o(PIe,"log");var Z3=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,t4,eP=[],tP=[],Jy=[];Z3&&rP(Z3);var r4=Object.assign(t=>n4(t),{enable:rP,enabled:nP,disable:vIe,log:PIe});function rP(t){t4=t,eP=[],tP=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?tP.push(new RegExp(`^${n.substr(1)}$`)):eP.push(new RegExp(`^${n}$`));for(let n of Jy)n.enabled=nP(n.namespace)}o(rP,"enable");function nP(t){if(t.endsWith("*"))return!0;for(let e of tP)if(e.test(t))return!1;for(let e of eP)if(e.test(t))return!0;return!1}o(nP,"enabled");function vIe(){let t=t4||"";return rP(""),t}o(vIe,"disable");function n4(t){let e=Object.assign(r,{enabled:nP(t),destroy:DIe,log:r4.log,namespace:t,extend:kIe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),Jy.push(e),e}o(n4,"createDebugger");function DIe(){let t=Jy.indexOf(this);return t>=0?(Jy.splice(t,1),!0):!1}o(DIe,"destroy");function kIe(t){let e=n4(`${this.namespace}:${t}`);return e.log=this.log,e}o(kIe,"extend");var cm=r4,s4=new Set,Yy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Wy,$y=cm("azure");$y.log=(...t)=>{cm.log(...t)};var sP=["verbose","info","warning","error"];Yy&&(c4(Yy)?i4(Yy):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Yy}'; logging is not enabled. Acceptable values: ${sP.join(", ")}.`));function i4(t){if(t&&!c4(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${sP.join(",")}`);Wy=t;let e=[];for(let r of s4)a4(r)&&e.push(r.namespace);cm.enable(e.join(","))}o(i4,"setLogLevel");function TIe(){return Wy}o(TIe,"getLogLevel");var e4={verbose:400,info:300,warning:200,error:100};function MIe(t){let e=$y.extend(t);return o4($y,e),{error:Vy(e,"error"),warning:Vy(e,"warning"),info:Vy(e,"info"),verbose:Vy(e,"verbose")}}o(MIe,"createClientLogger");function o4(t,e){e.log=(...r)=>{t.log(...r)}}o(o4,"patchLogMethod");function Vy(t,e){let r=Object.assign(t.extend(e),{level:e});if(o4(t,r),a4(r)){let n=cm.disable();cm.enable(n+","+r.namespace)}return s4.add(r),r}o(Vy,"createLogger");function a4(t){return!!(Wy&&e4[t.level]<=e4[Wy])}o(a4,"shouldEnable");function c4(t){return sP.includes(t)}o(c4,"isAzureLogLevel");Kl.AzureLogger=$y;Kl.createClientLogger=MIe;Kl.getLogLevel=TIe;Kl.setLogLevel=i4});var aP=g(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var Xl=new WeakMap,jy=new WeakMap,lm=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Xl.set(this,[]),jy.set(this,!1)}get aborted(){if(!jy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return jy.get(this)}static get none(){return new t}addEventListener(e,r){if(!Xl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Xl.get(this).push(r)}removeEventListener(e,r){if(!Xl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Xl.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function A4(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Xl.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),jy.set(t,!0)}o(A4,"abortSignal");var iP=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},oP=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new lm,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){A4(this._signal)}static timeout(e){let r=new lm,n=setTimeout(A4,e,r);return typeof n.unref=="function"&&n.unref(),r}};Am.AbortController=oP;Am.AbortError=iP;Am.AbortSignal=lm});var h4=g(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});var LIe Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${d4.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let d=a(A,r);if(d!==void 0)return{response:await e(d).catch(A4({state:r,stateProxy:n,isOperationError:c})),status:u}}return{response:A,status:u}}o(eIe,"pollOperationHelper");async function f4(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!==void 0){let{response:E,status:I}=await eIe({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)){let B=u?.(E);B&&h(B);let N=c?.(E,r);if(N!==void 0){let S=y!==N;r.config.operationLocation=N,A?.(N,S)}else A?.(y,!1)}p?.(r,E)}}o(f4,"pollOperation");function g4(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(g4,"getOperationLocationPollingUrl");function y4(t){return t.headers.location}o(y4,"getLocationHeader");function E4(t){return t.headers["operation-location"]}o(E4,"getOperationLocationHeader");function C4(t){return t.headers["azure-asyncoperation"]}o(C4,"getAzureAsyncOperationHeader");function tIe(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:s;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}o(a,"getDefault")}o(tIe,"findResourceLocation");function I4(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();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:tIe({requestMethod:A,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:A==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(I4,"inferLroMode");function B4(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return uP(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return za.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(B4,"transformStatus");function rIe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return B4({status:r,statusCode:t.statusCode})}o(rIe,"getStatus");function nIe(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return B4({status:i,statusCode:t.statusCode})}o(nIe,"getProvisioningState");function uP(t){return t===202?"running":t<300?"succeeded":"failed"}o(uP,"toOperationStatus");function Q4({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?sIe(new Date(e)):r*1e3}}o(Q4,"parseRetryAfter");function x4(t){let e=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}return e}o(x4,"getErrorFromResponse");function sIe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(sIe,"calculatePollingIntervalFromDate");function b4(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return uP(e.rawResponse.statusCode);case"Body":return dP(e,r);default:return"running"}}o(s,"helper");let i=s();return i==="running"&&n===void 0?"succeeded":i}o(b4,"getStatusFromInitialResponse");async function iIe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return h4({init:o(async()=>{let a=await s.sendInitialRequest(),c=I4({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:b4,setErrorAsResult:i})}o(iIe,"initHttpOperation");function w4({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r==Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=i,s=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[n++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(HIe,"base64decode");jl.base64decode=HIe;function zIe(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=_i[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=_i[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=_i[s|n>>6],e+=_i[n&63],r=0;break}return r&&(e+=_i[s],e+="=",r==1&&(e+="=")),e}o(zIe,"base64encode");jl.base64encode=zIe});var iW=g(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});uE.utf8read=void 0;var QP=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function GIe(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(QP(n)),s=0);return r.length?(s&&r.push(QP(n.slice(0,s))),r.join("")):QP(n.slice(0,s))}o(GIe,"utf8read");uE.utf8read=GIe});var lm=g($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.WireType=$s.mergeBinaryOptions=$s.UnknownFieldHandler=void 0;var YIe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:a})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:a,data:c}of t.list(n))s.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(YIe=$s.UnknownFieldHandler||($s.UnknownFieldHandler={}));function VIe(t,e){return Object.assign(Object.assign({},t),e)}o(VIe,"mergeBinaryOptions");$s.mergeBinaryOptions=VIe;var JIe;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(JIe=$s.WireType||($s.WireType={}))});var mE=g(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.varint32read=wr.varint32write=wr.int64toString=wr.int64fromString=wr.varint64write=wr.varint64read=void 0;function WIe(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(WIe,"varint64read");wr.varint64read=WIe;function $Ie(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o($Ie,"varint64write");wr.varint64write=$Ie;var dE=65536*65536;function jIe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=dE&&(s=s+(n/dE|0),n=n%dE)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(jIe,"int64fromString");wr.int64fromString=jIe;function KIe(t,e){if(e>>>0<=2097151)return""+(dE*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function A(u,d){let m=u?String(u):"";return d?"0000000".slice(m.length)+m:m}return o(A,"decimalFrom1e7"),A(c,0)+A(a,c)+A(i,1)}o(KIe,"int64toString");wr.int64toString=KIe;function XIe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(XIe,"varint32write");wr.varint32write=XIe;function ZIe(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(ZIe,"varint32read");wr.varint32read=ZIe});var ko=g(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.PbLong=Do.PbULong=Do.detectBi=void 0;var Am=mE(),ve;function oW(){let t=new DataView(new ArrayBuffer(8));ve=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807" Line truncated
`)}};OE.RpcError=jP});var XP=g(HE=>{"use strict";Object.defineProperty(HE,"__esModule",{value:!0});HE.mergeRpcOptions=void 0;var FW=At();function IQe(t,e){if(!e)return t;let r={};qE(t,r),qE(e,r);for(let n of Object.keys(e)){let s=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}}return r}o(IQe,"mergeRpcOptions");HE.mergeRpcOptions=IQe;function qE(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(qE,"copy")});var ev=g(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.Deferred=Wa.DeferredState=void 0;var Xs;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Xs=Wa.DeferredState||(Wa.DeferredState={}));var ZP=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Xs.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Xs.PENDING)throw new Error(`cannot resolve ${Xs[this.state].toLowerCase()}`);this._resolve(e),this._state=Xs.RESOLVED}reject(e){if(this.state!==Xs.PENDING)throw new Error(`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});var rv=g(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.RpcOutputStreamController=void 0;var UW=ev(),$a=At(),tv=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._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,void 0,!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(void 0,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(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;$a.assert(e,"bad state"),$a.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new UW.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;$a.assert(n.state==UW.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};zE.RpcOutputStreamController=tv});var sv=g(nA=>{"use strict";var BQe=nA&&nA.__awaiter||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())})};Object.defineProperty(nA,"__esModule",{value:!0});nA.UnaryCall=void 0;var nv=class{static{o(this,"UnaryCall")}constructor(e,r,n,s,i,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return BQe(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};nA.UnaryCall=nv});var ov=g(sA=>{"use strict";var QQe=sA&&sA.__awaiter||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){t Line truncated
Polling status: ${E4.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let d=a(A,r);if(d!==void 0)return{response:await e(d).catch(g4({state:r,stateProxy:n,isOperationError:c})),status:u}}return{response:A,status:u}}o(uBe,"pollOperationHelper");async function Q4(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!==void 0){let{response:E,status:I}=await uBe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:s});if(I4({status:I,response:E,state:r,stateProxy:n,isDone:f,processResult:d,getError:m,setErrorAsResult:C}),!E4.includes(I)){let B=u?.(E);B&&h(B);let N=c?.(E,r);if(N!==void 0){let S=y!==N;r.config.operationLocation=N,A?.(N,S)}else A?.(y,!1)}p?.(r,E)}}o(Q4,"pollOperation");function x4(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(x4,"getOperationLocationPollingUrl");function w4(t){return t.headers.location}o(w4,"getLocationHeader");function b4(t){return t.headers["operation-location"]}o(b4,"getOperationLocationHeader");function N4(t){return t.headers["azure-asyncoperation"]}o(N4,"getAzureAsyncOperationHeader");function dBe(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:s;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}o(a,"getDefault")}o(dBe,"findResourceLocation");function S4(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=b4(e),a=N4(e),c=x4({operationLocation:i,azureAsyncOperation:a}),l=w4(e),A=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:dBe({requestMethod:A,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:A==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(S4,"inferLroMode");function R4(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return yP(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return $a.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(R4,"transformStatus");function mBe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return R4({status:r,statusCode:t.statusCode})}o(mBe,"getStatus");function pBe(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return R4({status:i,statusCode:t.statusCode})}o(pBe,"getProvisioningState");function yP(t){return t===202?"running":t<300?"succeeded":"failed"}o(yP,"toOperationStatus");function P4({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?hBe(new Date(e)):r*1e3}}o(P4,"parseRetryAfter");function v4(t){let e=t.flatResponse.error;if(!e){$a.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){$a.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(v4,"getErrorFromResponse");function hBe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(hBe,"calculatePollingIntervalFromDate");function D4(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return yP(e.rawResponse.statusCode);case"Body":return EP(e,r);default:return"running"}}o(s,"helper");let i=s();return i==="running"&&n===void 0?"succeeded":i}o(D4,"getStatusFromInitialResponse");async function fBe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return B4({init:o(async()=>{let a=await s.sendInitialRequest(),c=S4({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:D4,setErrorAsResult:i})}o(fBe,"initHttpOperation");function k4({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r==Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=i,s=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[n++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(ZBe,"base64decode");sA.base64decode=ZBe;function eQe(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ui[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ui[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ui[s|n>>6],e+=Ui[n&63],r=0;break}return r&&(e+=Ui[s],e+="=",r==1&&(e+="=")),e}o(eQe,"base64encode");sA.base64encode=eQe});var dW=g(hE=>{"use strict";Object.defineProperty(hE,"__esModule",{value:!0});hE.utf8read=void 0;var PP=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function tQe(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(PP(n)),s=0);return r.length?(s&&r.push(PP(n.slice(0,s))),r.join("")):PP(n.slice(0,s))}o(tQe,"utf8read");hE.utf8read=tQe});var ym=g($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.WireType=$s.mergeBinaryOptions=$s.UnknownFieldHandler=void 0;var rQe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:a})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:a,data:c}of t.list(n))s.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(rQe=$s.UnknownFieldHandler||($s.UnknownFieldHandler={}));function nQe(t,e){return Object.assign(Object.assign({},t),e)}o(nQe,"mergeBinaryOptions");$s.mergeBinaryOptions=nQe;var sQe;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(sQe=$s.WireType||($s.WireType={}))});var gE=g(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.varint32read=Nr.varint32write=Nr.int64toString=Nr.int64fromString=Nr.varint64write=Nr.varint64read=void 0;function iQe(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(iQe,"varint64read");Nr.varint64read=iQe;function oQe(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(oQe,"varint64write");Nr.varint64write=oQe;var fE=65536*65536;function aQe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=fE&&(s=s+(n/fE|0),n=n%fE)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(aQe,"int64fromString");Nr.int64fromString=aQe;function cQe(t,e){if(e>>>0<=2097151)return""+(fE*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function A(u,d){let m=u?String(u):"";return d?"0000000".slice(m.length)+m:m}return o(A,"decimalFrom1e7"),A(c,0)+A(a,c)+A(i,1)}o(cQe,"int64toString");Nr.int64toString=cQe;function lQe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(lQe,"varint32write");Nr.varint32write=lQe;function AQe(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(AQe,"varint32read");Nr.varint32read=AQe});var Lo=g(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PbLong=Mo.PbULong=Mo.detectBi=void 0;var Em=gE(),Re;function mW(){let t=new DataView(new ArrayBuffer(8));Re=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807" Line truncated
`)}};GE.RpcError=nv});var iv=g(VE=>{"use strict";Object.defineProperty(VE,"__esModule",{value:!0});VE.mergeRpcOptions=void 0;var YW=ct();function Dxe(t,e){if(!e)return t;let r={};YE(t,r),YE(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=YW.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=YW.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},YE(t.meta,r.meta),YE(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}o(Dxe,"mergeRpcOptions");VE.mergeRpcOptions=Dxe;function YE(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(YE,"copy")});var av=g(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.Deferred=ec.DeferredState=void 0;var Xs;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Xs=ec.DeferredState||(ec.DeferredState={}));var ov=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Xs.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Xs.PENDING)throw new Error(`cannot resolve ${Xs[this.state].toLowerCase()}`);this._resolve(e),this._state=Xs.RESOLVED}reject(e){if(this.state!==Xs.PENDING)throw new Error(`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)}};ec.Deferred=ov});var lv=g(JE=>{"use strict";Object.defineProperty(JE,"__esModule",{value:!0});JE.RpcOutputStreamController=void 0;var VW=av(),tc=ct(),cv=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){tc.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){tc.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,void 0,!1))}notifyError(e){tc.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(void 0,e,!1)),this.clearLis()}notifyComplete(){tc.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(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;tc.assert(e,"bad state"),tc.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new VW.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;tc.assert(n.state==VW.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};JE.RpcOutputStreamController=cv});var uv=g(uA=>{"use strict";var kxe=uA&&uA.__awaiter||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())})};Object.defineProperty(uA,"__esModule",{value:!0});uA.UnaryCall=void 0;var Av=class{static{o(this,"UnaryCall")}constructor(e,r,n,s,i,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return kxe(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};uA.UnaryCall=Av});var mv=g(dA=>{"use strict";var Txe=dA&&dA.__awaiter||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){t Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Ibe,"logUnexpecedPropertyAccessOnce");function Bbe(){Object.keys(mC).forEach(function(t){delete mC[t]})}o(Bbe,"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=ar(),Qbe=rn(),sD=a$(Qbe),xbe=eD(),bbe=n$(),wbe=rD(),pC=a$(wbe),Nbe=nD(),Sbe="4.7.9";ti.VERSION=Sbe;var Rbe=8;ti.COMPILER_REVISION=Rbe;var Pbe=7;ti.LAST_COMPATIBLE_COMPILER_REVISION=Pbe;var vbe={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=vbe;var iD="[object Object]";function oD(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},xbe.registerDefaultHelpers(this),bbe.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(){Nbe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Dbe=pC.default.log;ti.log=Dbe;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=kbe;function kbe(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(kbe,"wrapHelper")});var f$=g(Lo=>{"use strict";Lo.__esModule=!0;Lo.checkRevision=Ube;Lo.template=Obe;Lo.wrapProgram=gC;Lo.resolvePartial=qbe;Lo.invokePartial=Hbe;Lo.noop=p$;function Tbe(t){return t&&t.__esModule?t:{default:t}}o(Tbe,"_interopRequireDefault");function Mbe(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(Mbe,"_interopRequireWildcard");var Lbe=ar(),hA=Mbe(Lbe),_be=rn(),Oi=Tbe(_be),qi=hC(),u$=eD(),Fbe=A$(),d$=nD();function Ube(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(Ube,"checkRevision");function Obe(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.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var A=e.VM.invokePartial.call(this,a,c,l);if(A==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),A=l.partials[l.name](c,l)),A!=null){if(l.indent){for(var u=A.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Tbe,"logUnexpecedPropertyAccessOnce");function Mbe(){Object.keys(gC).forEach(function(t){delete gC[t]})}o(Mbe,"resetLoggedProperties")});var EC=g(ri=>{"use strict";ri.__esModule=!0;ri.HandlebarsEnvironment=dD;function g8(t){return t&&t.__esModule?t:{default:t}}o(g8,"_interopRequireDefault");var cc=Yt(),Lbe=Pn(),AD=g8(Lbe),_be=oD(),Fbe=m8(),Ube=cD(),yC=g8(Ube),Obe=lD(),qbe="4.7.10";ri.VERSION=qbe;var Hbe=8;ri.COMPILER_REVISION=Hbe;var zbe=7;ri.LAST_COMPATIBLE_COMPILER_REVISION=zbe;var Gbe={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"};ri.REVISION_CHANGES=Gbe;var uD="[object Object]";function dD(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},_be.registerDefaultHelpers(this),Fbe.registerDefaultDecorators(this)}o(dD,"HandlebarsEnvironment");dD.prototype={constructor:dD,logger:yC.default,log:yC.default.log,registerHelper:o(function(e,r){if(cc.toString.call(e)===uD){if(r)throw new AD.default("Arg not supported with multiple helpers");cc.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(cc.toString.call(e)===uD)cc.extend(this.partials,e);else{if(typeof r>"u")throw new AD.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(cc.toString.call(e)===uD){if(r)throw new AD.default("Arg not supported with multiple decorators");cc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Obe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Ybe=yC.default.log;ri.log=Ybe;ri.createFrame=cc.createFrame;ri.logger=yC.default});var E8=g((CC,y8)=>{"use strict";CC.__esModule=!0;function mD(t){this.string=t}o(mD,"SafeString");mD.prototype.toString=mD.prototype.toHTML=function(){return""+this.string};CC.default=mD;y8.exports=CC.default});var C8=g(pD=>{"use strict";pD.__esModule=!0;pD.wrapHelper=Vbe;function Vbe(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(Vbe,"wrapHelper")});var w8=g(Uo=>{"use strict";Uo.__esModule=!0;Uo.checkRevision=Xbe;Uo.template=Zbe;Uo.wrapProgram=IC;Uo.resolvePartial=e0e;Uo.invokePartial=t0e;Uo.noop=Q8;function Jbe(t){return t&&t.__esModule?t:{default:t}}o(Jbe,"_interopRequireDefault");function Wbe(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(Wbe,"_interopRequireWildcard");var $be=Yt(),lc=Wbe($be),jbe=Pn(),rs=Jbe(jbe),qi=EC(),I8=oD(),Kbe=C8(),hD=lD();function Xbe(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 rs.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 rs.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(Xbe,"checkRevision");function Zbe(t,e){if(!e)throw new rs.default("No environment passed to template");if(!t||!t.main)throw new rs.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=lc.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var A=e.VM.invokePartial.call(this,a,c,l);if(A==null&&lc.isFunction(a))throw new rs.default("The partial "+l.name+" returned no output: partials must return a string");if(A==null&&e.compile){if(typeof a!="string")throw new rs.default("The partial "+l.name+" could not be compiled: partials must be strings or functions returning strings");l.partials[l.name]=e.compile(a,t.compilerOptions,e),A=l.partials[l.name](c,l)}if(A!=null){if(l.indent){for(var u=A.split(`
`),d=0,m=u.length;d<m&&!(!u[d]&&d+1===m);d++)u[d]=l.indent+u[d];A=u.join(`
`)}return A}else throw new Oi.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,l,A){if(!c||!(l in c))throw new Oi.default('"'+l+'" not defined in '+c,{loc:A});return s.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var A=c[l];if(A==null||Object.prototype.hasOwnProperty.call(c,l)||d$.resultIsAllowed(A,s.protoAccessControl,l))return A},"lookupProperty"),lookup:o(function(c,l){for(var A=c.length,u=0;u<A;u++){var d=c[u]&&s.lookupProperty(c[u],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:hA.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,A,u,d){var m=this.programs[c],p=this.fn(c);return l||d||u||A?m=gC(this,c,p,l,A,u,d):m||(m=this.programs[c]=gC(this,c,p)),m},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var A=c||l;return c&&l&&c!==l&&(A=hA.extend({},l,c)),A},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=zbe(a,l));var A=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?A=a!=c.depths[0]?[a].concat(c.depths):c.depths:A=[a]);function d(m){return""+t.main(s,m,s.helpers,s.partials,l,u,A)}return o(d,"main"),d=h$(t.main,d,s,c.depths||[],l,u),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};m$(c,e.helpers,s),m$(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=hA.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=d$.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;u$.moveHelperToHooks(s,"helperMissing",l),u$.moveHelperToHooks(s,"blockHelperMissing",l)}},i._child=function(a,c,l,A){if(t.useBlockParams&&!l)throw new Oi.default("must pass block params");if(t.useDepths&&!A)throw new Oi.default("must pass parent depths");return gC(s,a,t[a],c,0,l,A)},i}o(Obe,"template");function gC(t,e,r,n,s,i,a){function c(l){var A=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(u=[l].concat(a)),r(t,l,t.helpers,t.partials,A.data||n,i&&[A.blockParams].concat(i),u)}return o(c,"prog"),c=h$(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(gC,"wrapProgram");function qbe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=yC(r.partials,t)):r.name==="@partial-block"?t=yC(r.data,"partial-block"):t=yC(r.partials,r.name),t}o(qbe,"resolvePartial");function Hbe(t,e,r){var n=yC(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==p$&&(function(){r.data=qi.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=qi.createFrame(l.data),l.data["partial-block"]=n,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=hA.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Oi.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(Hbe,"invokePartial");function p$(){return""}o(p$,"noop");function yC(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(yC,"lookupOwnProperty");function zbe(t,e){return(!e||!("root"in e))&&(e=e?qi.createFrame(e):{},e.root=t),e}o(zbe,"initData");function h$(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),hA.extend(e,a)}return e}o(h$,"executeDecorators");function m$(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=Gbe(s,r)})}o(m$,"addHelpers");function Gbe(t,e){var r=e.lookupProperty;return Fbe.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(Gbe,"passLookupPropertyOption")});var lD=g((EC,g$)=>{"use strict";EC.__esModule=!0;EC.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};g$.exports=EC.default});var B$=g((CC,I$)=>{"use strict";CC.__esModule=!0;function uD(t){return t&&t.__esModule?t:{default:t}}o(uD,"_interopRequireDefault");function dD(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(dD,"_interopRequireWildcard");var Ybe=hC(),y$=dD(Ybe),Vbe=l$(),Jbe=uD(Vbe),Wbe=rn(),$be=uD(Wbe),jbe=ar(),AD=dD(jbe),Kbe=f$(),E$=dD(Kbe),Xbe=lD() Line truncated
`)}return A}else throw new rs.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,l,A){if(!c||!(l in c))throw new rs.default('"'+l+'" not defined in '+c,{loc:A});return s.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var A=c[l];if(A==null||Object.prototype.hasOwnProperty.call(c,l)&&!hD.isPrototypeConstructor(c,l,A)||hD.resultIsAllowed(A,s.protoAccessControl,l))return A},"lookupProperty"),lookup:o(function(c,l){for(var A=c.length,u=0;u<A;u++){var d=c[u]&&s.lookupProperty(c[u],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:lc.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,A,u,d){var m=this.programs[c],p=this.fn(c);return l||d||u||A?m=IC(this,c,p,l,A,u,d):m||(m=this.programs[c]=IC(this,c,p)),m},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var A=c||l;return c&&l&&c!==l&&(A=lc.extend({},l,c)),A},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=r0e(a,l));var A=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?A=a!=c.depths[0]?[a].concat(c.depths):c.depths:A=[a]);function d(m){return""+t.main(s,m,s.helpers,s.partials,l,u,A)}return o(d,"main"),d=x8(t.main,d,s,c.depths||[],l,u),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};B8(c,e.helpers,s),B8(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=lc.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=hD.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;I8.moveHelperToHooks(s,"helperMissing",l),I8.moveHelperToHooks(s,"blockHelperMissing",l)}},i._child=function(a,c,l,A){if(t.useBlockParams&&!l)throw new rs.default("must pass block params");if(t.useDepths&&!A)throw new rs.default("must pass parent depths");return IC(s,a,t[a],c,0,l,A)},i}o(Zbe,"template");function IC(t,e,r,n,s,i,a){function c(l){var A=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(u=[l].concat(a)),r(t,l,t.helpers,t.partials,A.data||n,i&&[A.blockParams].concat(i),u)}return o(c,"prog"),c=x8(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(IC,"wrapProgram");function e0e(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=BC(r.partials,t)):r.name==="@partial-block"?t=BC(r.data,"partial-block"):t=BC(r.partials,r.name),t}o(e0e,"resolvePartial");function t0e(t,e,r){var n=BC(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==Q8&&(function(){r.data=qi.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=qi.createFrame(l.data),l.data["partial-block"]=n,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=lc.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new rs.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(t0e,"invokePartial");function Q8(){return""}o(Q8,"noop");function BC(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(BC,"lookupOwnProperty");function r0e(t,e){return(!e||!("root"in e))&&(e=e?qi.createFrame(e):{},e.root=t),e}o(r0e,"initData");function x8(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),lc.extend(e,a)}return e}o(x8,"executeDecorators");function B8(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=n0e(s,r)})}o(B8,"addHelpers");function n0e(t,e){var r=e.lookupProperty;return Kbe.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(n0e,"passLookupPropertyOption")});var fD=g((QC,b8)=>{"use strict";QC.__esModule=!0;QC.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};b8.exports=QC.default});var v8=g((xC,P8)=>{"use strict";xC.__esModule=!0;function yD(t){return t&&t.__esModule?t:{default:t}}o(yD,"_interopRequireDefault");function ED(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(ED,"_interopRequireWildcard");var s0e=EC(),N8=ED(s0e),i0e=E8(),o0e=yD(i0e),a0e=Pn(),c0e=yD(a0e), Line truncated
`+this.lexer.showPosition()+`
Expecting `+ee.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Vt="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Vt,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:ee})}}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+B);switch(F[0]){case 1: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;case 2: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),typeof be<"u")return be;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;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._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(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=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;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
Expecting `+se.join(", ")+", got '"+(this.terminals_[B]||B)+"'":kn="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(kn,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:se})}}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+B);switch(F[0]){case 1: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;case 2:if(ce=this.productions_[F[1]][1],Se.$=c[c.length-ce],Se._$={first_line:l[l.length-(ce||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ce||1)].first_column,last_column:l[l.length-1].last_column},y&&(Se._$.range=[l[l.length-(ce||1)].range[0],l[l.length-1].range[1]]),Ye=this.performAction.call(Se,u,m,d,this.yy,F[1],c,l),typeof Ye<"u")return Ye;ce&&(a=a.slice(0,-1*ce*2),c=c.slice(0,-1*ce),l=l.slice(0,-1*ce)),a.push(this.productions_[F[1]][0]),c.push(Se.$),l.push(Se._$),At=A[a[a.length-2]][a[a.length-1]],a.push(At);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._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(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=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;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,l,A,u;this._more||(this.yytext="",this.match="");for(var d=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++);return a?(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||void 0):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(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return n.options={},n.performAction=o(function(i,a,c,l){function A(d,m){return a.yytext=a.yytext.substring(d,a.yyleng-m+d)}o(A,"strip");var u=l;switch(c){case 0: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)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(A(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=A(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=A(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"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;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();BC.default=ewe;b$.exports=BC.default});var wC=g((bC,R$)=>{"use strict";bC.__esModule=!0;function twe(t){return t&&t.__esModule?t:{default:t}}o(twe,"_interopRequireDefault");var rwe=rn(),pD=twe(rwe);function QC(){this.parents=[]}o(QC,"Visitor");QC.prototype={constructor:QC,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!QC.prototype[n.type])throw new pD.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new pD.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new pD.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:xC,Decorator:xC,BlockStatement:N$,DecoratorBlock:N$,PartialStatement:S$,PartialBlockStatement:o(function(e){S$.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:xC,PathExpression:o(function(){},"PathExpression"),StrLine truncated
`])}),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(),Zwe=rn(),FD=h5(Zwe),e0e=ar(),t0e=d5(),p5=h5(t0e);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 e0e.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(),`;
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return n.options={},n.performAction=o(function(i,a,c,l){function A(d,m){return a.yytext=a.yytext.substring(d,a.yyleng-m+d)}o(A,"strip");var u=l;switch(c){case 0: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)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(A(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=A(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=A(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"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;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();bC.default=m0e;T8.exports=bC.default});var BD=g(ID=>{"use strict";ID.__esModule=!0;var p0e=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];ID.NODE_TYPES=p0e});var PC=g((RC,U8)=>{"use strict";RC.__esModule=!0;function h0e(t){return t&&t.__esModule?t:{default:t}}o(h0e,"_interopRequireDefault");var f0e=Pn(),QD=h0e(f0e),g0e=Yt(),y0e=BD();function SC(){this.parents=[]}o(SC,"Visitor");function L8(t,e){return g0e.indexOf(y0e.NODE_TYPES,e)!==-1||!(e in SC.prototype)&&typeof t[e]=="function"}o(L8,"isDispatchable");SC.prototype={constructor:SC,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!L8(this,n.type))throw new QD.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new QD.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!L8(this,e.type)||!this[e.type])throw new QD.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](eLine truncated
`])}),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 mc(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 mc?e:(e=YD(e,this,r),new mc(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=e+"",pNe.test(e)?B5(e):'"'+e+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=YD(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(YD(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};UC.default=Q5});var v5=g((OC,P5)=>{"use strict";OC.__esModule=!0;function N5(t){return t&&t.__esModule?t:{default:t}}o(N5,"_interopRequireDefault");var w5=EC(),yNe=Pn(),JD=N5(yNe),ENe=Yt(),S5=x5(),b5=N5(S5);function vA(t){this.value=t}o(vA,"Literal");function DA(){}o(DA,"JavaScriptCompiler");DA.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=w5.COMPILER_REVISION,r=w5.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return ENe.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,",",this.quotedString(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 JD.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(),`;
`]),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(s);if(this.isChild)return u;var d={compiler:this.compilerInfo(),main:u};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var m=this.context,p=m.programs,h=m.decorators;for(l=0,A=p.length;l<A;l++)d[l]=p[l],h[l]&&(d[l+"_d"]=h[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),s?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new p5.default(this.options.srcName),this.decorators=new p5.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var A=r.aliases[l];A.children&&A.referenceCount>1&&(n+=", alias"+ ++i+"="+l,A.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(s);if(this.isChild)return u;var d={compiler:this.compilerInfo(),main:u};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var m=this.context,p=m.programs,h=m.decorators;for(l=0,A=p.length;l<A;l++)d[l]=p[l],h[l]&&(d[l+"_d"]=h[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),s?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new b5.default(this.options.srcName),this.decorators=new b5.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var A=r.aliases[l];A.children&&A.referenceCount>1&&(n+=", alias"+ ++i+"="+l,A.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(i?a.prepend("buffer += "):s=!0,c.add(";"),a=c=void 0),i=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -86,50 +83,50 @@ Expecting `+ee.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Vt="Parse error
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,s){var i=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,s,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(r0e(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,l=o(function(u){a.replaceStack(function(d){var m=a.nameLookup(d,r[u],e);return s?[" && ",m]:[" != null ? ",m," : ",d]})},"_loop"),A=n;A<c;A++)l(A)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};nt.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};nt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};nt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};nt.prototype.BlockStatement=nt.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};nt.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};nt.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};nt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};nt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};nt.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};nt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};nt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};nt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};nt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};nt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};nt.prototype.NullLiteral=function(){return"NULL"};nt.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};nt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var b5=g((RZe,x5)=>{var FC=C5().default,Q5=I5();FC.PrintVisitor=Q5.PrintVisitor;FC.print=Q5.print;x5.exports=FC;function B5(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=FC.compile(n)}o(B5,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=B5,require.extensions[".hbs"]=B5)});var JD=Q(require("os"),1);function ni(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(ni,"toCommandValue");function qC(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(qC,"toCommandProperties");function Gi(t,e,r){let n=new HC(t,e,r);process.stdout.write(n.toString()+JD.EOL)}o(Gi,"issueCommand");function zC(t,e=""){Gi(t,{},e)}o(zC,"issue");var VD="::",HC=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=VD+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Y5(s)}`)}}return e+=`${VD}${G5(this.message)}`,e}};function G5(t){return ni(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(G5,"escapeData");function Y5(t){return ni(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Y5,"escapeProperty");var WD=Q(require("crypto"),1),Jm=Q(require("fs"),1),Vm=Q(require("os"),1);function GC(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Jm.existsSync(r))throw new Error(`Missing file at path: ${r}`);Jm.appendFileSync(r,`${ni(e)}${Vm.EOL}`,{encoding:"utf8"})}o(GC,"issueFileCommand");function YC(t,e){let r=`ghadelimiter_${WD.randomUUID()}`,n=ni(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${Vm.EOL}${n}${Vm.EOL}${r}`}o(YC,"prepareKeyValueMessage");var Tx=Q(require("os"),1);var Hh=Q(WC(),1),ooe=Q(Ex(),1);var ps;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]=" Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Mx,"getBooleanInput");function WU(t,e){if(process.env.GITHUB_OUTPUT||"")return GC("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");function pa(){return process.env.RUNNER_DEBUG==="1"}o(pa,"isDebug");function b(t){Gi("debug",{},t)}o(b,"debug");function cl(t,e={}){Gi("error",qC(e),t instanceof Error?t.toString():t)}o(cl,"error");function ht(t,e={}){Gi("warning",qC(e),t instanceof Error?t.toString():t)}o(ht,"warning");function le(t){process.stdout.write(t+Tx.EOL)}o(le,"info");function yoe(t){zC("group",t)}o(yoe,"startGroup");function Eoe(){zC("endgroup")}o(Eoe,"endGroup");function fs(t,e){return goe(this,void 0,void 0,function*(){yoe(t);let r;try{r=yield e()}finally{Eoe()}return r})}o(fs,"group");function Jh(t,e){if(process.env.GITHUB_STATE||"")return GC("STATE",YC(t,e));Gi("save-state",{name:t},ni(e))}o(Jh,"saveState");function jU(t){return process.env[`STATE_${t}`]||""}o(jU,"getState");var bm=Q(require("fs"),1),qv=Q(require("os"),1),Hv=Q(require("path"),1);var XU=Q(require("os"),1);function Du(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Du,"toCommandValue");function ZU(t,e,r){let n=new Lx(t,e,r);process.stdout.write(n.toString()+XU.EOL)}o(ZU,"issueCommand");var KU="::",Lx=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=KU+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Ioe(s)}`)}}return e+=`${KU}${Coe(this.message)}`,e}};function Coe(t){return Du(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Coe,"escapeData");function Ioe(t){return Du(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Ioe,"escapeProperty");var tO=require("os"),ku=require("fs");var _x=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())})},{access:Boe,appendFile:Qoe,writeFile:xoe}=ku.promises,eO="GITHUB_STEP_SUMMARY";var Fx=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return _x(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[eO];if(!e)throw new Error(`Unable to find environment variable for $${eO}. Check if your runtime environment supports job summaries.`);try{yield Boe(e,ku.constants.R_OK|ku.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return _x(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?xoe:Qoe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return _x(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(tO.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:A,rowspan:u}=a,d=c?"th":"td",m=Object.assign(Object.assign({},A&&{colspan:A}),u&&{rowspan:u});return this.wrap(d,l,m)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,s){var i=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,s,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(CNe(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,l=o(function(u){a.replaceStack(function(d){var m=a.nameLookup(d,r[u],e);return s?[" && ",m]:[" != null ? ",m," : ",d]})},"_loop"),A=n;A<c;A++)l(A)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};tt.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};tt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};tt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};tt.prototype.BlockStatement=tt.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};tt.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};tt.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};tt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};tt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};tt.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};tt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};tt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};tt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};tt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};tt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};tt.prototype.NullLiteral=function(){return"NULL"};tt.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};tt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var U5=g((Cet,F5)=>{var zC=T5().default,_5=M5();zC.PrintVisitor=_5.PrintVisitor;zC.print=_5.print;F5.exports=zC;function L5(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=zC.compile(n)}o(L5,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=L5,require.extensions[".hbs"]=L5)});var rk=Q(require("os"),1);function ii(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(ii,"toCommandValue");function VC(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(VC,"toCommandProperties");function Yi(t,e,r){let n=new JC(t,e,r);process.stdout.write(n.toString()+rk.EOL)}o(Yi,"issueCommand");function WC(t,e=""){Yi(t,{},e)}o(WC,"issue");var tk="::",JC=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=tk+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${i9(s)}`)}}return e+=`${tk}${s9(this.message)}`,e}};function s9(t){return ii(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(s9,"escapeData");function i9(t){return ii(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(i9,"escapeProperty");var nk=Q(require("crypto"),1),Xm=Q(require("fs"),1),Km=Q(require("os"),1);function $C(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Xm.existsSync(r))throw new Error(`Missing file at path: ${r}`);Xm.appendFileSync(r,`${ii(e)}${Km.EOL}`,{encoding:"utf8"})}o($C,"issueFileCommand");function jC(t,e){let r=`ghadelimiter_${nk.randomUUID()}`,n=ii(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${Km.EOL}${n}${Km.EOL}${r}`}o(jC,"prepareKeyValueMessage");var Fx=Q(require("os"),1);var Jh=Q(ZC(),1),Coe=Q(xx(),1);var ps;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]=" Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Ux,"getBooleanInput");function nO(t,e){if(process.env.GITHUB_OUTPUT||"")return $C("OUTPUT",jC(t,e));process.stdout.write(Fx.EOL),Yi("set-output",{name:t},ii(e))}o(nO,"setOutput");function sO(t){process.exitCode=_x.Failure,hl(t)}o(sO,"setFailed");function Ea(){return process.env.RUNNER_DEBUG==="1"}o(Ea,"isDebug");function x(t){Yi("debug",{},t)}o(x,"debug");function hl(t,e={}){Yi("error",VC(e),t instanceof Error?t.toString():t)}o(hl,"error");function pt(t,e={}){Yi("warning",VC(e),t instanceof Error?t.toString():t)}o(pt,"warning");function le(t){process.stdout.write(t+Fx.EOL)}o(le,"info");function Doe(t){WC("group",t)}o(Doe,"startGroup");function koe(){WC("endgroup")}o(koe,"endGroup");function fs(t,e){return voe(this,void 0,void 0,function*(){Doe(t);let r;try{r=yield e()}finally{koe()}return r})}o(fs,"group");function Xh(t,e){if(process.env.GITHUB_STATE||"")return $C("STATE",jC(t,e));Yi("save-state",{name:t},ii(e))}o(Xh,"saveState");function iO(t){return process.env[`STATE_${t}`]||""}o(iO,"getState");var Tm=Q(require("fs"),1),Jv=Q(require("os"),1),Wv=Q(require("path"),1);var aO=Q(require("os"),1);function zu(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(zu,"toCommandValue");function cO(t,e,r){let n=new Ox(t,e,r);process.stdout.write(n.toString()+aO.EOL)}o(cO,"issueCommand");var oO="::",Ox=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=oO+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Moe(s)}`)}}return e+=`${oO}${Toe(this.message)}`,e}};function Toe(t){return zu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Toe,"escapeData");function Moe(t){return zu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Moe,"escapeProperty");var AO=require("os"),Gu=require("fs");var qx=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())})},{access:Loe,appendFile:_oe,writeFile:Foe}=Gu.promises,lO="GITHUB_STEP_SUMMARY";var Hx=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return qx(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[lO];if(!e)throw new Error(`Unable to find environment variable for $${lO}. Check if your runtime environment supports job summaries.`);try{yield Loe(e,Gu.constants.R_OK|Gu.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return qx(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Foe:_oe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return qx(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(AO.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:A,rowspan:u}=a,d=c?"th":"td",m=Object.assign(Object.assign({},A&&{colspan:A}),u&&{rowspan:u});return this.wrap(d,l,m)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Ju(i));return n.searchPaths.push(...mb(n.patterns)),n})}static stat(e,r,n){return Cb(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield ml.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){pn(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield ml.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield ml.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){pn(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var AAe=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 RH(t,e){return AAe(this,void 0,void 0,function*(){return yield df.create(t,e)})}o(RH,"create");var Rf=Q(require("crypto"),1),fl=Q(require("fs"),1),Ea=Q(require("path"),1),CG=Q(yG(),1),IG=Q(require("util"),1);var rd;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(rd||(rd={}));var tr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(tr||(tr={}));var Hr;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hr||(Hr={}));var wf=2,Nf=5e3,Ob=5e3,qb=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,EG=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,nd="cache.tar",Hb="manifest.txt",fLe=10*Math.pow(1024,3),Sf="cache read denied:";var hl=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())})},ame=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),s(c,l,a.done,a.value)})}}function s(i,a,c,l){Promise.resolve(l).then(function(A){i({value:A,done:c})},a)}},cme="1.0";function sd(){return hl(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Ea.join(n,"actions","temp")}let r=Ea.join(e,Rf.randomUUID());return yield ma(r),r})}o(sd,"createTempDirectory");function Es(t){return fl.statSync(t).size}o(Es,"getArchiveFileSizeInBytes");function zb(t){return hl(this,void 0,void 0,function*(){var e,r,n,s,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield RH(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=ame(l.globGenerator()),d;d=yield u.next(),e=d.done,!e;A=!0){s=d.value,A=!1;let p=Ea.relative(c,s).replace(new RegExp(`\\${Ea.sep}`,"g"),"/");b(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(m){r={error:m}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return a})}o(zb,"resolvePaths");function id(t){return hl(this,void 0,void 0,function*(){return IG.promisify(fl.unlink)(t)})}o(id,"unlinkFile");function BG(t){return hl(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),b(`Checking ${e} ${r.join(" ")}`);try{yield Ao(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){b(s.message)}return n=n.trim(),b(n),n})}o(BG,"getVersion");function od(){return hl(this,void 0,void 0,function*(){let t=yield BG("zstd",["--quiet"]),e=CG.clean(t);return b(`zstd version: ${e}`),t===""?tr.Gzip:tr.ZstdWithoutLong})}o(od,"getCompressionMethod");function yo(t){return t===tr.Gzip?rd.Gzip:rd.Zstd}o(yo,"getCacheFileName");function QG(){return hl(this,void 0,void 0,function*(){return fl.existsSync(qb)?qb:(yield BG("tar")).toLowerCase().includes("gnu tar")?pr("tar"):""})}o(QG,"getGnuTarPathOnWindows");function Gb(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(Gb,"assertDefined");function gl(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(cme),Rf.createHash("sha256").update(n.join("|")).digest("hex")}o(gl,"getCacheVersion");function xG(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(xG,"getRuntimeToken");var cd=Q(require("http"),1),Jb=Q(require("https"),1);function Yb(t){let e=t.protocol==="https:";if(lme(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new vf(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new vf(`http://${r}`)}else return}o(Yb,"getProxyUrl");function lme(t){if(!t.hostname)return!1;let e=t.hostname;if(Ame(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(lme,"checkBypass");function Ame(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Ame,"isLoopbackAddress");var vf=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Eo=Q(WC(),1),bG=Q(Ex(),1);var ot=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())})},$e;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})($e||($e={}));var rr;(function(t){t.Accept="accept",t.ContentType="content-type"})(rr||(rr={}));var Bi;(function(t){t.ApplicationJson="application/json"})(Bi||(Bi={}));var dme=[$e.MovedPermanently,$e.ResourceMoved,$e.SeeOther,$e.TemporaryRedirect,$e.PermanentRedirect],mme=[$e.BadGateway,$e.ServiceUnavailable,$e.GatewayTimeout],pme=["OPTIONS","GET","DELETE","HEAD"],hme=10,fme=5,Cs=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${bme.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function _f(t){return t instanceof nr?!0:Ia(t)&&t.name==="RestError"}o(_f,"isRestError");function gr(t,e){return Buffer.from(t,e)}o(gr,"stringToUint8Array");var Ff=Q(require("node:http"),1),Uf=Q(require("node:https"),1),nw=Q(require("node:zlib"),1),zG=require("node:stream");var gn=ld("ts-http-runtime");var wme={};function Ad(t){return t&&typeof t.pipe=="function"}o(Ad,"isReadableStream");function HG(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(HG,"isStreamComplete");function GG(t){return t&&typeof t.byteLength=="number"}o(GG,"isArrayBuffer");var Of=class extends zG.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},sw=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Is("The operation was aborted. Request has already been canceled.");n=o(A=>{A.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Yn;gn.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let A=Pme(c);A!==null&&e.headers.set("Content-Length",A)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,f=new Of(h);f.on("error",C=>{gn.error("Error in upload progress",C)}),Ad(c)?c.pipe(f):f.end(c),c=f}let A=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let u=Nme(A),m={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),m;l=a?Sme(A,u):A;let p=e.onDownloadProgress;if(p){let h=new Of(p);h.on("error",f=>{gn.error("Error in download progress",f)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(m.status)?m.readableStreamBody=l:m.bodyAsText=await Rme(l),m}finally{if(e.abortSignal&&n){let A=Promise.resolve();Ad(c)&&(A=HG(c));let u=Promise.resolve();Ad(l)&&(u=HG(l)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(d=>{gn.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,A)=>{let u=i?Ff.default.request(c,l):Uf.default.request(c,l);u.once("error",d=>{A(new nr(d.message,{code:d.code??nr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new Is("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(d),A(d)}),n&&Ad(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):GG(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(gn.error("Unrecognized body type",n),A(new nr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Ff.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Ff.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Uf.default.globalAgent;let s=e.tlsSettings??wme,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(gn.info("No cached TLS Agent exist, creating a new Agent"),i=new Uf.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Nme(t){let e=zr();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(Nme,"getResponseHeaders");function Sme(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=nw.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=nw.default.createInflate();return t.pipe(n),n}return t}o(Sme,"getDecodedResponseStream");function Rme(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new nr(`Error reading response as text: ${s.message}`,{code:nr.PARSE_ERROR}))})})}o(Rme,"streamToText");function Pme(t){return t?Buffer.isBuffer(t)?t.length:Ad(t)?nul Line truncated
`;return e}o(ahe,"encodeHeaders");function che(t){return t instanceof Uint8Array?t.byteLength:Ag(t)?t.size===-1?void 0:t.size:void 0}o(che,"getLength");function lhe(t){let e=0;for(let r of t){let n=che(r);if(n===void 0)return;e+=n}return e}o(lhe,"getTotalLength");async function Ahe(t,e,r){let n=[gr(`--${r}`,"utf-8"),...e.flatMap(i=>[gr(`\r
`,"utf-8"),gr(ahe(i.headers),"utf-8"),gr(`\r
`,"utf-8"),i.body,gr(`\r
--${r}`,"utf-8")]),gr(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new id(i));return n.searchPaths.push(...gw(n.patterns)),n})}static stat(e,r,n){return bw(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Cl.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){dn(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Cl.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Cl.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){dn(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var lue=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 TH(t,e){return lue(this,void 0,void 0,function*(){return yield ff.create(t,e)})}o(TH,"create");var kf=Q(require("crypto"),1),xl=Q(require("fs"),1),xa=Q(require("path"),1),NG=Q(wG(),1),SG=Q(require("util"),1);var dd;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(dd||(dd={}));var nr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(nr||(nr={}));var Hr;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hr||(Hr={}));var Pf=2,vf=5e3,Jw=5e3,Ww=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,bG=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,md="cache.tar",$w="manifest.txt",s2e=10*Math.pow(1024,3),Df="cache read denied:";var Ql=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())})},ype=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),s(c,l,a.done,a.value)})}}function s(i,a,c,l){Promise.resolve(l).then(function(A){i({value:A,done:c})},a)}},Epe="1.0";function wa(){return Ql(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=xa.join(n,"actions","temp")}let r=xa.join(e,kf.randomUUID());return yield ya(r),r})}o(wa,"createTempDirectory");function Es(t){return xl.statSync(t).size}o(Es,"getArchiveFileSizeInBytes");function jw(t){return Ql(this,void 0,void 0,function*(){var e,r,n,s,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield TH(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=ype(l.globGenerator()),d;d=yield u.next(),e=d.done,!e;A=!0){s=d.value,A=!1;let p=xa.relative(c,s).replace(new RegExp(`\\${xa.sep}`,"g"),"/");x(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(m){r={error:m}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return a})}o(jw,"resolvePaths");function pd(t){return Ql(this,void 0,void 0,function*(){return SG.promisify(xl.unlink)(t)})}o(pd,"unlinkFile");function RG(t){return Ql(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),x(`Checking ${e} ${r.join(" ")}`);try{yield uo(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){x(s.message)}return n=n.trim(),x(n),n})}o(RG,"getVersion");function hd(){return Ql(this,void 0,void 0,function*(){let t=yield RG("zstd",["--quiet"]),e=NG.clean(t);return x(`zstd version: ${e}`),t===""?nr.Gzip:nr.ZstdWithoutLong})}o(hd,"getCompressionMethod");function Io(t){return t===nr.Gzip?dd.Gzip:dd.Zstd}o(Io,"getCacheFileName");function PG(){return Ql(this,void 0,void 0,function*(){return xl.existsSync(Ww)?Ww:(yield RG("tar")).toLowerCase().includes("gnu tar")?hr("tar"):""})}o(PG,"getGnuTarPathOnWindows");function Kw(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(Kw,"assertDefined");function wl(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Epe),kf.createHash("sha256").update(n.join("|")).digest("hex")}o(wl,"getCacheVersion");function vG(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(vG,"getRuntimeToken");var gd=Q(require("http"),1),eb=Q(require("https"),1);function Xw(t){let e=t.protocol==="https:";if(Cpe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new Mf(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new Mf(`http://${r}`)}else return}o(Xw,"getProxyUrl");function Cpe(t){if(!t.hostname)return!1;let e=t.hostname;if(Ipe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(Cpe,"checkBypass");function Ipe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Ipe,"isLoopbackAddress");var Mf=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Bo=Q(ZC(),1),DG=Q(xx(),1);var st=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())})},Je;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Je||(Je={}));var sr;(function(t){t.Accept="accept",t.ContentType="content-type"})(sr||(sr={}));var xi;(function(t){t.ApplicationJson="application/json"})(xi||(xi={}));var Qpe=[Je.MovedPermanently,Je.ResourceMoved,Je.SeeOther,Je.TemporaryRedirect,Je.PermanentRedirect],xpe=[Je.BadGateway,Je.ServiceUnavailable,Je.GatewayTimeout],wpe=["OPTIONS","GET","DELETE","HEAD"],bpe=10,Npe=5,Cs=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${Lpe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function qf(t){return t instanceof ir?!0:Na(t)&&t.name==="RestError"}o(qf,"isRestError");function yr(t,e){return Buffer.from(t,e)}o(yr,"stringToUint8Array");var Hf=Q(require("node:http"),1),zf=Q(require("node:https"),1),Ab=Q(require("node:zlib"),1),jG=require("node:stream");var fn=yd("ts-http-runtime");var _pe={};function Ed(t){return t&&typeof t.pipe=="function"}o(Ed,"isReadableStream");function $G(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o($G,"isStreamComplete");function KG(t){return t&&typeof t.byteLength=="number"}o(KG,"isArrayBuffer");var Gf=class extends jG.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},ub=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Is("The operation was aborted. Request has already been canceled.");n=o(A=>{A.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Vn;fn.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let A=qpe(c);A!==null&&e.headers.set("Content-Length",A)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,f=new Gf(h);f.on("error",C=>{fn.error("Error in upload progress",C)}),Ed(c)?c.pipe(f):f.end(c),c=f}let A=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let u=Fpe(A),m={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),m;l=a?Upe(A,u):A;let p=e.onDownloadProgress;if(p){let h=new Gf(p);h.on("error",f=>{fn.error("Error in download progress",f)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(m.status)?m.readableStreamBody=l:m.bodyAsText=await Ope(l),m}finally{if(e.abortSignal&&n){let A=Promise.resolve();Ed(c)&&(A=$G(c));let u=Promise.resolve();Ed(l)&&(u=$G(l)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(d=>{fn.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,A)=>{let u=i?Hf.default.request(c,l):zf.default.request(c,l);u.once("error",d=>{A(new ir(d.message,{code:d.code??ir.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new Is("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(d),A(d)}),n&&Ed(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):KG(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(fn.error("Unrecognized body type",n),A(new ir("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Hf.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Hf.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return zf.default.globalAgent;let s=e.tlsSettings??_pe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(fn.info("No cached TLS Agent exist, creating a new Agent"),i=new zf.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Fpe(t){let e=zr();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(Fpe,"getResponseHeaders");function Upe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Ab.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Ab.default.createInflate();return t.pipe(n),n}return t}o(Upe,"getDecodedResponseStream");function Ope(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new ir(`Error reading response as text: ${s.message}`,{code:ir.PARSE_ERROR}))})})}o(Ope,"streamToText");function qpe(t){return t?Buffer.isBuffer(t)?t.length:Ed(t)?nul Line truncated
`;return e}o(yfe,"encodeHeaders");function Efe(t){return t instanceof Uint8Array?t.byteLength:pg(t)?t.size===-1?void 0:t.size:void 0}o(Efe,"getLength");function Cfe(t){let e=0;for(let r of t){let n=Efe(r);if(n===void 0)return;e+=n}return e}o(Cfe,"getTotalLength");async function Ife(t,e,r){let n=[yr(`--${r}`,"utf-8"),...e.flatMap(i=>[yr(`\r
`,"utf-8"),yr(yfe(i.headers),"utf-8"),yr(`\r
`,"utf-8"),i.body,yr(`\r
--${r}`,"utf-8")]),yr(`--\r
\r
`,"utf-8")],s=lhe(n);s&&t.headers.set("Content-Length",s),t.body=await $Y(n)}o(Ahe,"buildRequestBody");var md="multipartPolicy",uhe=70,dhe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function mhe(t){if(t.length>uhe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!dhe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(mhe,"assertValidBoundary");function dg(){return{name:md,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?mhe(r):r=ohe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ahe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(dg,"multipartPolicy");function mg(){return Lf()}o(mg,"createEmptyPipeline");var jY=kf({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),pUe=jY.logger;function xs(t){return jY.createClientLogger(t)}o(xs,"createClientLogger");var bs=xs("core-rest-pipeline");function Bw(t={}){return Hf({logger:bs.info,...t})}o(Bw,"logPolicy");var Qw=zf;function xw(t={}){return Gf(t)}o(xw,"redirectPolicy");var pg=Q(require("node:os"),1),hg=Q(require("node:process"),1);function KY(){return"User-Agent"}o(KY,"getHeaderName");async function XY(t){if(hg.default&&hg.default.versions){let e=`${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");var fg="1.22.2";function Ihe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(Ihe,"getUserAgentString");function ZY(){return KY()}o(ZY,"getUserAgentHeaderName");async function gg(t){let e=new Map;e.set("core-rest-pipeline",fg),await XY(e);let r=Ihe(e);return t?`${t} ${r}`:r}o(gg,"getUserAgentValue");var eV=ZY(),tV="userAgentPolicy";function bw(t={}){let e=gg(t.userAgentPrefix);return{name:tV,async sendRequest(r,n){return r.headers.has(eV)||r.headers.set(eV,await e),n(r)}}}o(bw,"userAgentPolicy");var Jr=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function ww(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new Jr(s??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",A)}o(l,"removeListeners");function A(){r?.(),l(),c()}if(o(A,"onAbort"),n?.aborted)return c();try{t(u=>{l(),i(u)},u=>{l(),a(u)})}catch(u){a(u)}n?.addEventListener("abort",A)})}o(ww,"createAbortablePromise");var whe="The delay was aborted.";function pd(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return ww(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??whe})}o(pd,"delay");function Io(t){if(Ia(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Io,"getErrorMessage");function rV(t){return Ia(t)}o(rV,"isError");function wl(){return Ca()}o(wl,"randomUUID");var Ce=xa;var nV=Symbol("rawContent");function Sw(t){return typeof t[nV]=="function"}o(Sw,"hasRawContent");function sV(t){return Sw(t)?t[nV]():t}o(sV,"getRawContent");var yg=md;function Rw(){let t=dg();return{name:yg,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)Sw(n.body)&&(n.body=sV(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(Rw,"multipartPolicy");var Pw=Yf;function vw(){return Vf()}o(vw,"decompressResponsePolicy");function Dw(t={}){return $f(t)}o(Dw,"defaultRetryPolicy");function kw(){return jf()}o(kw,"formDataPolicy");function Bo(t){return gw(t)}o(Bo,"getDefaultProxySettings");function Tw(t,e){return ag(t,e)}o(Tw,"proxyPolicy");var iV="setClientRequestIdPolicy";function Mw(t="x-ms-client-request-id"){return{name:iV,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(Mw,"setClientRequestIdPolicy");function Lw(t){return cg(t)}o(Lw,"agentPolicy");function _w(t){return lg(t)}o(_w,"tlsPolicy");var Nl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function oV(t={}){let e=new Fw(t.parentContext);return t.span&&(e=e.setValue(Nl.span,t.span)),t.namespace&&(e=e.setValue(Nl.namespace,t.namespace)),e}o(oV,"createTracingContext");var Fw=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context Line truncated
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!jfe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",at("InvalidTag",d,sr(t,i))}let A=Yfe(t,i);if(A===!1)return at("InvalidAttr","Attributes for '"+l+"' have open quote.",sr(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,sr(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.",sr(t,a));if(r.length===0)return at("InvalidTag","Closing tag '"+l+"' has not been opened.",sr(t,a));{let d=r.pop();if(l!==d.tagName){let m=sr(t,d.tagStartPos);return at("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",sr(t,a))}r.length==0&&(s=!0)}}else return at("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",sr(t,i));else{let d=zV(u,e);if(d!==!0)return at(d.err.code,d.err.msg,sr(t,i-u.length+d.err.line));if(s===!0)return at("InvalidXml","Multiple possible root nodes found.",sr(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=Wfe(t,i);if(d==-1)return at("InvalidChar","char '&' is not expected.",sr(t,i));i=d}else if(s===!0&&!OV(t[i]))return at("InvalidXml","Extra text at the end",sr(t,i));t[i]==="<"&&i--}}else{if(OV(t[i]))continue;return at("InvalidChar","char '"+t[i]+"' is not expected.",sr(t,i))}if(n){if(r.length==1)return at("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",sr(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.",sr(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 zfe='"',Gfe="'";function Yfe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===zfe||t[e]===Gfe)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(Yfe,"readAttributeStr");var Vfe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function zV(t,e){let r=Rg(t,Vfe),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(!$fe(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 Jfe(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(Jfe,"validateNumberAmpersand");function Wfe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Jfe(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(Wfe,"validateAmpersand");function at(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(at,"getErrorObject");function $fe(t){return r0(t)}o($fe,"validateAttrName");function jfe(t){return r0(t)}o(jfe,"validateTagName");function sr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(sr,"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",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},VV={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",HstLine truncated
`);let e=new Ir("!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,"Closing Tag is not closed."),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("Pi Tag is not closed.");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 Ir(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,"Comment is not closed.");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,"CDATA is not closed.")-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=Ege(m),d!==e.tagname&&this.matcher.push(d,{},B),d!==p&&h&&(E=this.buildAttributesMap(p,this.matcher,d),E&&(I=yge(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 Ir(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 Ir(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 Ir(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 Ir(d);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");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},"parseXml");function bge(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}o(bge,"addChild");function wge(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}o(wge,"replaceEntitiesValue");function Nge(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(Nge,"saveTextToParentTag");function Sge(){return this.stopNodeExpressionsLine truncated
`;function _ge(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(g0(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(_ge,"detectXmlVersionFromArray");function dJ(t,e,r,n,s){return!r.sanitizeName||Ra(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(dJ,"resolveTagName");function f0(t,e){let r="";e.format&&(r=Lge);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new jr(c)):c instanceof jr&&n.push(c)}let s=_ge(t,e),i=new Ss;return mJ(t,e,r,i,n,s)}o(f0,"toXml");function mJ(t,e,r,n,s,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=h0(l,e),l}return""}for(let l=0;l<t.length;l++){let A=t[l],u=g0(A);if(u===void 0)continue;let m=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:dJ(u,!1,e,n,i),p=Fge(A[":@"],e);n.push(m,p);let h=Oge(n,s);if(m===e.textNodeName){let I=A[u];h||(I=e.tagValueProcessor(m,I),I=h0(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(m===e.cdataPropName){c&&(a+=r);let I=A[u][0][e.textNodeName],B=Lg(I);a+=`<![CDATA[${B}]]>`,c=!1,n.pop();continue}else if(m===e.commentPropName){let I=A[u][0][e.textNodeName],B=Mg(I);a+=r+`<!--${B}-->`,c=!0,n.pop();continue}else if(m[0]==="?"){let I=uJ(A[":@"],e,h,n,i);a+=(m==="?xml"?"":r)+`<${m}${I}?>`,c=!0,n.pop();continue}let f=r;f!==""&&(f+=e.indentBy);let C=uJ(A[":@"],e,h,n,i),y=r+`<${m}${C}`,E;h?E=pJ(A[u],e):E=mJ(A[u],e,f,n,s,i),e.unpairedTags.indexOf(m)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!E||E.length===0)&&e.suppressEmptyNode?a+=y+"/>":E&&E.endsWith(">")?a+=y+`>${E}${r}</${m}>`:(a+=y+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?a+=r+e.indentBy+E+r:a+=E,a+=`</${m}>`),c=!0,n.pop()}return a}o(mJ,"arrToStr");function Fge(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=bo(t[s]),n=!0}return n?r:null}o(Fge,"extractAttributeValues");function pJ(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=g0(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=Uge(s[":@"],e),c=pJ(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(pJ,"getRawContent");function Uge(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${bo(s)}"`}return r}o(Uge,"attr_to_str_raw");function g0(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(g0,"propName");function uJ(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:dJ(c,!0,e,n,s),A;r?A=t[a]:(A=e.attributeValueProcessor(a,t[a]),A=h0(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${bo(A)}"`}return i}o(uJ,"attr_to_str");function Oge(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(Oge,"checkStopNode");function h0(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(h0,"replaceEntitiesValue");function y0(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(y0,"getIgnoreAttributesFn");var qge={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Qr(t){if(this.options=Object.assign({},qge,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.oLine truncated
`,"utf-8")],s=Cfe(n);s&&t.headers.set("Content-Length",s),t.body=await rV(n)}o(Ife,"buildRequestBody");var Bd="multipartPolicy",Bfe=70,Qfe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function xfe(t){if(t.length>Bfe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Qfe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(xfe,"assertValidBoundary");function fg(){return{name:Bd,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?xfe(r):r=gfe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ife(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(fg,"multipartPolicy");function gg(){return Of()}o(gg,"createEmptyPipeline");var nV=_f({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),rqe=nV.logger;function xs(t){return nV.createClientLogger(t)}o(xs,"createClientLogger");var ws=xs("core-rest-pipeline");function Rb(t={}){return Vf({logger:ws.info,...t})}o(Rb,"logPolicy");var Pb=Jf;function vb(t={}){return Wf(t)}o(vb,"redirectPolicy");var yg=Q(require("node:os"),1),Eg=Q(require("node:process"),1);function sV(){return"User-Agent"}o(sV,"getHeaderName");async function iV(t){if(Eg.default&&Eg.default.versions){let e=`${yg.default.type()} ${yg.default.release()}; ${yg.default.arch()}`,r=Eg.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(iV,"setPlatformSpecificData");var Cg="1.22.2";function Dfe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(Dfe,"getUserAgentString");function oV(){return sV()}o(oV,"getUserAgentHeaderName");async function Ig(t){let e=new Map;e.set("core-rest-pipeline",Cg),await iV(e);let r=Dfe(e);return t?`${t} ${r}`:r}o(Ig,"getUserAgentValue");var aV=oV(),cV="userAgentPolicy";function Db(t={}){let e=Ig(t.userAgentPrefix);return{name:cV,async sendRequest(r,n){return r.headers.has(aV)||r.headers.set(aV,await e),n(r)}}}o(Db,"userAgentPolicy");var Jr=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function kb(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new Jr(s??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",A)}o(l,"removeListeners");function A(){r?.(),l(),c()}if(o(A,"onAbort"),n?.aborted)return c();try{t(u=>{l(),i(u)},u=>{l(),a(u)})}catch(u){a(u)}n?.addEventListener("abort",A)})}o(kb,"createAbortablePromise");var _fe="The delay was aborted.";function Qd(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return kb(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??_fe})}o(Qd,"delay");function xo(t){if(Na(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(xo,"getErrorMessage");function lV(t){return Na(t)}o(lV,"isError");function Tl(){return ba()}o(Tl,"randomUUID");var Ce=Pa;var AV=Symbol("rawContent");function Mb(t){return typeof t[AV]=="function"}o(Mb,"hasRawContent");function uV(t){return Mb(t)?t[AV]():t}o(uV,"getRawContent");var Bg=Bd;function Lb(){let t=fg();return{name:Bg,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)Mb(n.body)&&(n.body=uV(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(Lb,"multipartPolicy");var _b=$f;function Fb(){return jf()}o(Fb,"decompressResponsePolicy");function Ub(t={}){return Zf(t)}o(Ub,"defaultRetryPolicy");function Ob(){return eg()}o(Ob,"formDataPolicy");function wo(t){return xb(t)}o(wo,"getDefaultProxySettings");function qb(t,e){return ug(t,e)}o(qb,"proxyPolicy");var dV="setClientRequestIdPolicy";function Hb(t="x-ms-client-request-id"){return{name:dV,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(Hb,"setClientRequestIdPolicy");function zb(t){return dg(t)}o(zb,"agentPolicy");function Gb(t){return mg(t)}o(Gb,"tlsPolicy");var Ml={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function mV(t={}){let e=new Yb(t.parentContext);return t.span&&(e=e.setValue(Ml.span,t.span)),t.namespace&&(e=e.setValue(Ml.namespace,t.namespace)),e}o(mV,"createTracingContext");var Yb=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context Line truncated
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!aye(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",it("InvalidTag",d,or(t,i))}let A=rye(t,i);if(A===!1)return it("InvalidAttr","Attributes for '"+l+"' have open quote.",or(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=jV(u,e);if(m===!0)n=!0;else return it(m.err.code,m.err.msg,or(t,d+m.err.line))}else if(c)if(A.tagClosed){if(u.trim().length>0)return it("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",or(t,a));if(r.length===0)return it("InvalidTag","Closing tag '"+l+"' has not been opened.",or(t,a));{let d=r.pop();if(l!==d.tagName){let m=or(t,d.tagStartPos);return it("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",or(t,a))}r.length==0&&(s=!0)}}else return it("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",or(t,i));else{let d=jV(u,e);if(d!==!0)return it(d.err.code,d.err.msg,or(t,i-u.length+d.err.line));if(s===!0)return it("InvalidXml","Multiple possible root nodes found.",or(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=$V(t,i);continue}else if(t[i+1]==="?"){if(i=WV(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=iye(t,i);if(d==-1)return it("InvalidChar","char '&' is not expected.",or(t,i));i=d}else if(s===!0&&!JV(t[i]))return it("InvalidXml","Extra text at the end",or(t,i));t[i]==="<"&&i--}}else{if(JV(t[i]))continue;return it("InvalidChar","char '"+t[i]+"' is not expected.",or(t,i))}if(n){if(r.length==1)return it("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",or(t,r[0].tagStartPos));if(r.length>0)return it("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return it("InvalidXml","Start tag expected.",1);return!0}o(Mg,"validate");function JV(t){return t===" "||t===" "||t===`
`||t==="\r"}o(JV,"isWhiteSpace");function WV(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 it("InvalidXml","XML declaration allowed only at the start of the document.",or(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(WV,"readPI");function $V(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($V,"readCommentAndCDATA");var eye='"',tye="'";function rye(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===eye||t[e]===tye)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(rye,"readAttributeStr");var nye=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function jV(t,e){let r=kg(t,nye),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return it("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Md(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return it("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Md(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return it("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Md(r[s]));let i=r[s][2];if(!oye(i))return it("InvalidAttr","Attribute '"+i+"' is an invalid name.",Md(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return it("InvalidAttr","Attribute '"+i+"' is repeated.",Md(r[s]))}return!0}o(jV,"validateAttributeString");function sye(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(sye,"validateNumberAmpersand");function iye(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,sye(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(iye,"validateAmpersand");function it(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(it,"getErrorObject");function oye(t){return l0(t)}o(oye,"validateAttrName");function aye(t){return l0(t)}o(aye,"validateTagName");function or(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(or,"getLineNumberForPosition");function Md(t){return t.startIndex+t[1].length}o(Md,"getPositionFromMatch");var KV={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"},XV={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},ZV={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",HstLine truncated
`);let e=new Br("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Fd(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=Ol(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,u).trim();if(s.removeNSPrefix){let p=d.indexOf(":");p!==-1&&(d=d.substr(p+1))}d=g0(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=y0(t,c,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");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 Br(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=Ol(t,"-->",c+4,"Comment is not closed.");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=Ol(t,"]]>",c,"CDATA is not closed.")-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=y0(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}=g0(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=Pye(m),d!==e.tagname&&this.matcher.push(d,{},B),d!==p&&h&&(E=this.buildAttributesMap(p,this.matcher,d),E&&(I=Rye(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 ye=this.readStopNodeData(t,m,f+1);if(!ye)throw new Error(`Unexpected end of ${m}`);c=ye.i,S=ye.tagContent}let F=new Br(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}=g0(s.transformTagName,d,p,s));let S=new Br(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 Br(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 Br(d);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");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},"parseXml");function Lye(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}o(Lye,"addChild");function _ye(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}o(_ye,"replaceEntitiesValue");function Fye(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(Fye,"saveTextToParentTag");function Uye(){return this.stopNodeExpressionsLine truncated
`;function Wye(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(x0(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(Wye,"detectXmlVersionFromArray");function EJ(t,e,r,n,s){return!r.sanitizeName||Ma(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(EJ,"resolveTagName");function Q0(t,e){let r="";e.format&&(r=Jye);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new jr(c)):c instanceof jr&&n.push(c)}let s=Wye(t,e),i=new Ss;return CJ(t,e,r,i,n,s)}o(Q0,"toXml");function CJ(t,e,r,n,s,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=B0(l,e),l}return""}for(let l=0;l<t.length;l++){let A=t[l],u=x0(A);if(u===void 0)continue;let m=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:EJ(u,!1,e,n,i),p=$ye(A[":@"],e);n.push(m,p);let h=Kye(n,s);if(m===e.textNodeName){let I=A[u];h||(I=e.tagValueProcessor(m,I),I=B0(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(m===e.cdataPropName){c&&(a+=r);let I=A[u][0][e.textNodeName],B=Og(I);a+=`<![CDATA[${B}]]>`,c=!1,n.pop();continue}else if(m===e.commentPropName){let I=A[u][0][e.textNodeName],B=Ug(I);a+=r+`<!--${B}-->`,c=!0,n.pop();continue}else if(m[0]==="?"){let I=yJ(A[":@"],e,h,n,i);a+=(m==="?xml"?"":r)+`<${m}${I}?>`,c=!0,n.pop();continue}let f=r;f!==""&&(f+=e.indentBy);let C=yJ(A[":@"],e,h,n,i),y=r+`<${m}${C}`,E;h?E=IJ(A[u],e):E=CJ(A[u],e,f,n,s,i),e.unpairedTags.indexOf(m)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!E||E.length===0)&&e.suppressEmptyNode?a+=y+"/>":E&&E.endsWith(">")?a+=y+`>${E}${r}</${m}>`:(a+=y+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?a+=r+e.indentBy+E+r:a+=E,a+=`</${m}>`),c=!0,n.pop()}return a}o(CJ,"arrToStr");function $ye(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=So(t[s]),n=!0}return n?r:null}o($ye,"extractAttributeValues");function IJ(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=x0(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=jye(s[":@"],e),c=IJ(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(IJ,"getRawContent");function jye(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${So(s)}"`}return r}o(jye,"attr_to_str_raw");function x0(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(x0,"propName");function yJ(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:EJ(c,!0,e,n,s),A;r?A=t[a]:(A=e.attributeValueProcessor(a,t[a]),A=B0(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${So(A)}"`}return i}o(yJ,"attr_to_str");function Kye(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(Kye,"checkStopNode");function B0(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(B0,"replaceEntitiesValue");function w0(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(w0,"getIgnoreAttributesFn");var Xye={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function xr(t){if(this.options=Object.assign({},Xye,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.oLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Qr,"Builder");function Hge(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(Hge,"detectXmlVersionFromObj");function E0(t,e,r,n,s){return!r.sanitizeName||Ra(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(E0,"resolveTagName");Qr.prototype.build=function(t){if(this.options.preserveOrder)return f0(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Ss,r=Hge(t,this.options);return this.j2x(t,0,e,r).val}};Qr.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let u=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:E0(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],u,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let m=E0(d,!0,this.options,r,n);s+=this.buildAttrPairStr(m,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let m=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(m)}else{r.push(u);let m=this.checkStopNode(r);if(r.pop(),m){let p=""+t[l];p===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+p+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[l],u,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,m="",p="";for(let h=0;h<d;h++){let f=t[l][h];if(!(typeof f>"u"))if(f===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){r.push(u);let C=this.j2x(f,e+1,r,n);r.pop(),m+=C.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(p+=C.attrStr)}else m+=this.processTextOrObjNode(f,u,e,r,n);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(u,f);C=this.replaceEntitiesValue(C),m+=C}else{r.push(u);let C=this.checkStopNode(r);if(r.pop(),C){let y=""+f;y===""?m+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:m+=this.indentate(e)+"<"+u+">"+y+"</"+u+this.tagEndChar}else m+=this.buildTextValNode(f,u,"",e,r)}}this.options.oneListGroup&&(m=this.buildObjectNode(m,u,p,e)),i+=m}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),m=d.length;for(let p=0;p<m;p++){let h=E0(d[p],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][d[p]],c)}}else i+=this.processTextOrObjNode(t[l],u,e,r,n)}return{attrStr:s,val:i}};Qr.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+bo(e)+'"'};function zge(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let l=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,A,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(zge,"processTextOrObjNode");Qr.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=bo(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=bo(t[n]),r=!0)}return r?e:null};Qr.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(xr,"Builder");function Zye(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(Zye,"detectXmlVersionFromObj");function b0(t,e,r,n,s){return!r.sanitizeName||Ma(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(b0,"resolveTagName");xr.prototype.build=function(t){if(this.options.preserveOrder)return Q0(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Ss,r=Zye(t,this.options);return this.j2x(t,0,e,r).val}};xr.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let u=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:b0(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],u,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let m=b0(d,!0,this.options,r,n);s+=this.buildAttrPairStr(m,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let m=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(m)}else{r.push(u);let m=this.checkStopNode(r);if(r.pop(),m){let p=""+t[l];p===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+p+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[l],u,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,m="",p="";for(let h=0;h<d;h++){let f=t[l][h];if(!(typeof f>"u"))if(f===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){r.push(u);let C=this.j2x(f,e+1,r,n);r.pop(),m+=C.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(p+=C.attrStr)}else m+=this.processTextOrObjNode(f,u,e,r,n);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(u,f);C=this.replaceEntitiesValue(C),m+=C}else{r.push(u);let C=this.checkStopNode(r);if(r.pop(),C){let y=""+f;y===""?m+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:m+=this.indentate(e)+"<"+u+">"+y+"</"+u+this.tagEndChar}else m+=this.buildTextValNode(f,u,"",e,r)}}this.options.oneListGroup&&(m=this.buildObjectNode(m,u,p,e)),i+=m}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),m=d.length;for(let p=0;p<m;p++){let h=b0(d[p],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][d[p]],c)}}else i+=this.processTextOrObjNode(t[l],u,e,r,n)}return{attrStr:s,val:i}};xr.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+So(e)+'"'};function eEe(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let l=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,A,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(eEe,"processTextOrObjNode");xr.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=So(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=So(t[n]),r=!0)}return r?e:null};xr.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Z.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Z.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Z.PREFIX_FOR_STORAGE));r.sort((s,i)=>Jg(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,a)=>!(i>0&&s.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Gg(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Yg(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();i[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(i[c])}`}return n}};var je=class extends Da{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Td(e,r,this)}computeHMACSHA256(e){return(0,BJ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Et=xs("storage-common");var In;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(In||(In={}));var No={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:In.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Xge=new Jr("The operation was aborted."),Md=class extends Rs{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}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=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()));let a;try{if(Et.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;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))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Et.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return Et.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return Et.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Et.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Z.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Et.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case In.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case In.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Et.info(`RetryPolicy: Delay for ${s}ms`),Vg(s,n,Xge)}};var Ld=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Md(e,r,this.retryOptions)}};var Zge="storageBrowserPolicy";function QJ(){return{name:Zge,async sendRequest(t,e){return Ce||((t.method==="GET"||t.method==="HEAD")&&(t.url=wo(t.url,Ni.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Z.COOKIE),t.headers.delete(Z.CONTENT_LENGTH)),e(t)}}}o(QJ,"storageBrowserPolicy");var eye="StorageCorrectContentLengthPolicy";function xJ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Z.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:eye,async sendRequest(e,r){return t(e),r(e)}}}o(xJ,"storageCorrectContentLengthPolicy");var tye="storageRetryPolicy",Tl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:In.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},rye=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],nye=new Jr("The operation was aborted.");function bJ(t={}){let e=t.retryPolicyType??Tl.retryPolicyType,r=t.maxTries??Tl.maxTries,n=t.retryDelayInMs??Tl.retryDelayInMs,s=t.maxRetryDelayInMs??Tl.maxRetryDelayInMs,i=t.secondaryHost??Tl.secondaryHost,a=t.tryTimeoutInMs??Tl.tryTimeoutInMs;function c({isPrimaryRetry:A,attempt:u,response:d,error:m}){if(u>=r)return Et.info(`RLine truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Z.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Z.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Z.PREFIX_FOR_STORAGE));r.sort((s,i)=>Kg(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,a)=>!(i>0&&s.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Wg(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=$g(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();i[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(i[c])}`}return n}};var We=class extends Fa{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new zd(e,r,this)}computeHMACSHA256(e){return(0,RJ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Ct=xs("storage-common");var Cn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Cn||(Cn={}));var Po={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Cn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},lEe=new Jr("The operation was aborted."),Gd=class extends Rs{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Po){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Po.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Po.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Po.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Po.maxRetryDelayInMs):Po.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Po.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Po.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=Jg(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Ro(s.url,Ri.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Ct.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(Ct.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Ct.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return Ct.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return Ct.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Ct.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Z.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Ct.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Cn.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Cn.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Ct.info(`RetryPolicy: Delay for ${s}ms`),jg(s,n,lEe)}};var Yd=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Gd(e,r,this.retryOptions)}};var AEe="storageBrowserPolicy";function PJ(){return{name:AEe,async sendRequest(t,e){return Ce||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ro(t.url,Ri.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Z.COOKIE),t.headers.delete(Z.CONTENT_LENGTH)),e(t)}}}o(PJ,"storageBrowserPolicy");var uEe="StorageCorrectContentLengthPolicy";function vJ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Z.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:uEe,async sendRequest(e,r){return t(e),r(e)}}}o(vJ,"storageCorrectContentLengthPolicy");var dEe="storageRetryPolicy",Hl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Cn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},mEe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],pEe=new Jr("The operation was aborted.");function DJ(t={}){let e=t.retryPolicyType??Hl.retryPolicyType,r=t.maxTries??Hl.maxTries,n=t.retryDelayInMs??Hl.retryDelayInMs,s=t.maxRetryDelayInMs??Hl.maxRetryDelayInMs,i=t.secondaryHost??Hl.secondaryHost,a=t.tryTimeoutInMs??Hl.tryTimeoutInMs;function c({isPrimaryRetry:A,attempt:u,response:d,error:m}){if(u>=r)return Ct.info(`RLine truncated
`)+`
`+n(i)+s(i),c=(0,wJ.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(Z.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===Z.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[l,A]of i.headers)l.toLowerCase().startsWith(Z.PREFIX_FOR_STORAGE)&&a.push({name:l,value:A});a.sort((l,A)=>Jg(l.name.toLowerCase(),A.name.toLowerCase())),a=a.filter((l,A,u)=>!(A>0&&l.name.toLowerCase()===u[A-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),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+=`
${d}:${decodeURIComponent(A[d])}`}return c}return o(s,"getCanonicalizedResourceString"),{name:sye,async sendRequest(i,a){return e(i),a(i)}}}o(x0,"storageSharedKeyCredentialPolicy");var iye="storageRequestFailureDetailsParserPolicy";function NJ(){return{name:iye,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(NJ,"storageRequestFailureDetailsParserPolicy");var SJ=require("node:crypto");var Wg=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,SJ.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var $g="12.31.0",jg="2026-02-06";var Kg="https://storage.azure.com/.default",Si={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Vn="",b0="*",oye=1*1024*1024;var aye=4*oye;var RJ="AES256",PJ="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",vJ=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],DJ=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],kJ="BlobUsesCustomerSpecifiedEncryption",TJ="BlobDoesNotUseCustomerSpecifiedEncryption",MJ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ri(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(Ri,"isPipelineLike");var _d=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function ct(t,e={}){t||(t=new ze);let r=new _d([],e);return r._credential=t,r}o(ct,"newPipeline");function cye(t){let e=[lye,LJ,Aye,uye,dye,mye,hye];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>pye(s));return{wrappedPolicies:e0(r),afterRetry:n}}}}o(cye,"processDownlevelPipeline");function w0(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?t0(e):Q0(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${$g}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Ed({...r,loggingOptions:{additionalAllowedHeaderNames:vJ,additionalAllowedQueryParameters:DJ,logger:Fg.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:_g,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:I0,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:Pw}),s.addPolicy(xJ()),s.addPolicy(bJ(r.retryOptions),{phase:"Retry"}),s.addPo Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Kn(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(cCe,"generateBlobSASQueryParameters20150405");function lCe(t,e){if(t=qa(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Oa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?jn(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:new Kn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(lCe,"generateBlobSASQueryParameters20181109");function ACe(t,e){if(t=qa(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Oa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?jn(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:new Kn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(ACe,"generateBlobSASQueryParameters20201206");function uCe(t,e){if(t=qa(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[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?jn(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:new Kn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(uCe,"generateBlobSASQueryParametersUDK20181109");function dCe(t,e){if(t=qa(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[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,void 0,t.correlationId,t.ipRange?jn(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:new Kn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(dCe,"generateBlobSASQueryParametersUDK20200210");function mCe(t,e){if(t=qa(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[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,void 0,t.correlationId,t.ipRange?jn(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:new Kn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(mCe,"generateBlobSASQueryParametersUDK20201206");function pCe(t,e){if(t=qa(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[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,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?jn(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:new Kn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(pCe,"generateBlobSASQueryParametersUDK20250705");function Oa(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Oa,"getCanonicalName");function qa(t){let e=t.version?t.version:jg;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(qa,"SASSignatureValuesSanityCheckAndAutofill");var $d=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=wl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Vn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Vn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return q.withSpan("BlobLeaseClient-acquireLease",r,async n=>Y(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Vn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Vn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return q.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Y(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Vn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Vn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return q.withSpan("BlobLeaseClient-releaseLease",e,async r=>Y(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Vn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Vn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values ar Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};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.
More info on storage limits: 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 xIe=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 xIe(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 bIe(t){return t?t>=500:!0}o(bIe,"isServerErrorStatusCode");function wIe(t){return t?[$e.BadGateway,$e.ServiceUnavailable,$e.GatewayTimeout].includes(t):!1}o(wIe,"isRetryableStatusCode");function NIe(t){return rE(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(NIe,"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),!bIe(m)))return d;if(m&&(p=wIe(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 NIe(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 wn=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 SIe(t,e){return wn(this,void 0,void 0,function*(){yield z4.promisify(H4.pipeline)(t.message,e)})}o(SIe,"pipeResponseToStream");var sE=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,b(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receive Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])b(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(MIe,"printCachesListForDiagnostics");function IP(t,e,r){return br(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 br(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",()=>br(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 LIe(t,e,r,n,s){return br(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})`,()=>br(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(LIe,"uploadChunk");function _Ie(t,e,r,n){return br(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(()=>br(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 LIe(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(_Ie,"uploadFile");function FIe(t,e,r){return br(this,void 0,void 0,function*(){let n={size:r};return yield om("commitCache",()=>br(this,void 0,void 0,function*(){return t.postJson(cm(`caches/${e.toString()}`),n)}))})}o(FIe,"commitCache");function BP(t,e,r,n){return br(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 _Ie(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 FIe(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),Zr=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,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>VE,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,jW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$W.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.repositoryId=e.int64().toString();break;case 2:i.scope.push(VE.internalBinaryRead(e,e.uint32(),n));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?gv.UnknownFieldHandler.onRead:A)(this.typeName,i,c,l,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,fv.WireTyp Line truncated
`));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())})},es=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 es("Path Validation Error: At least one directory or file path is required")}o(n8,"checkPaths");function Fv(t){if(t.length>512)throw new es(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new es(`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 ZQe(s,i,a,c,l):yield XQe(s,i,a,c,l)})}o(s8,"restoreCache");function XQe(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 es("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===es.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(XQe,"restoreCacheV1");function ZQe(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 es("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}`),yield IP(f.signedDownloadUrl,d,c);let y=Es(d);return le(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),pa()&&(yield Qm(d,p)),yield Mv(d,p),le("Cache restored successfully"),f.matchedKey}catch(m){let p=m;if(p.name===es.name)throw m;p instanceof Cs&&typeof p.statusCode=="number"&&p.statusCode>=500?cl(`Failed to restore: ${m.message}`):ht(`Failed to restore: ${m.message}`)}finally{try{d&&(yield id(d))}catch(m){b(`Failed to delete archive: ${m}`)}}})}o(ZQe,"restoreCacheV2");function Ov(t,e,r){return AA(this,arguments,void 0,function*(n,s,i,a=!1){let c=am();b(`Cache service version: ${c}`),n8(n),Fv(s);let l=EP();return j4(l)?c==="v2"?yield txe(n,s,i,a):yield exe(n,s,i,a):(le(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),b(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}o(Ov,"saveCache");function exe(t,e,r){return AA(this,arguments,void 0 Line truncated
`,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 Vt=ee.length,H;for(H=0;H<Vt&&!this.__needMoreData(H,Vt,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===E0e||Qe===C0e)&&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<Vt)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),Rr=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||Rr||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],Rr=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(Rr!==void 0)return Rr}}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.bufBytesStart+H;let Fo=this.__onField();if(Fo!==void 0)return Fo;this.info.bytes=this.state.bufBytesStart+H+Je;let Gm=this.__onRecord(i);if(Gm!==void 0)return Gm;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,H+=Je-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,ee,H,Qe)!==0){this.state.commenting=!0;continue}let ns=this.__isDelimiter(ee,H,Qe);if(ns!==0){this.info.bytes=this.state.bufBytesStart+H;let Rr=this.__onField();if(Rr!==void 0)return Rr;H+=ns-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new ue("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${p}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let rs=m===!1||thi Line truncated
`+n(i)+s(i),c=(0,kJ.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(Z.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===Z.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[l,A]of i.headers)l.toLowerCase().startsWith(Z.PREFIX_FOR_STORAGE)&&a.push({name:l,value:A});a.sort((l,A)=>Kg(l.name.toLowerCase(),A.name.toLowerCase())),a=a.filter((l,A,u)=>!(A>0&&l.name.toLowerCase()===u[A-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=Wg(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=$g(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+=`
${d}:${decodeURIComponent(A[d])}`}return c}return o(s,"getCanonicalizedResourceString"),{name:hEe,async sendRequest(i,a){return e(i),a(i)}}}o(v0,"storageSharedKeyCredentialPolicy");var fEe="storageRequestFailureDetailsParserPolicy";function TJ(){return{name:fEe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(TJ,"storageRequestFailureDetailsParserPolicy");var MJ=require("node:crypto");var Xg=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,MJ.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var Zg="12.31.0",ey="2026-02-06";var ty="https://storage.azure.com/.default",Pi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Jn="",D0="*",gEe=1*1024*1024;var yEe=4*gEe;var LJ="AES256",_J="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",FJ=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],UJ=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],OJ="BlobUsesCustomerSpecifiedEncryption",qJ="BlobDoesNotUseCustomerSpecifiedEncryption",HJ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function vi(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(vi,"isPipelineLike");var Vd=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function ot(t,e={}){t||(t=new qe);let r=new Vd([],e);return r._credential=t,r}o(ot,"newPipeline");function EEe(t){let e=[CEe,zJ,IEe,BEe,QEe,xEe,bEe];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>wEe(s));return{wrappedPolicies:a0(r),afterRetry:n}}}}o(EEe,"processDownlevelPipeline");function k0(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?c0(e):P0(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Zg}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Sd({...r,loggingOptions:{additionalAllowedHeaderNames:FJ,additionalAllowedQueryParameters:UJ,logger:Hg.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:qg,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:S0,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:_b}),s.addPolicy(vJ()),s.addPolicy(DJ(r.retryOptions),{phase:"Retry"}),s.addPo Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Xn(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(EIe,"generateBlobSASQueryParameters20150405");function CIe(t,e){if(t=Ja(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Kn(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:new Xn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(CIe,"generateBlobSASQueryParameters20181109");function IIe(t,e){if(t=Ja(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Kn(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:new Xn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(IIe,"generateBlobSASQueryParameters20201206");function BIe(t,e){if(t=Ja(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(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?Kn(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:new Xn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(BIe,"generateBlobSASQueryParametersUDK20181109");function QIe(t,e){if(t=Ja(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(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,void 0,t.correlationId,t.ipRange?Kn(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:new Xn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(QIe,"generateBlobSASQueryParametersUDK20200210");function xIe(t,e){if(t=Ja(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(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,void 0,t.correlationId,t.ipRange?Kn(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:new Xn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(xIe,"generateBlobSASQueryParametersUDK20201206");function wIe(t,e){if(t=Ja(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(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,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Kn(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:new Xn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(wIe,"generateBlobSASQueryParametersUDK20250705");function Va(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Va,"getCanonicalName");function Ja(t){let e=t.version?t.version:ey;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Ja,"SASSignatureValuesSanityCheckAndAutofill");var sm=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Tl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Jn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Jn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return q.withSpan("BlobLeaseClient-acquireLease",r,async n=>Y(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Jn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Jn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return q.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Y(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Jn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Jn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return q.withSpan("BlobLeaseClient-releaseLease",e,async r=>Y(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Jn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Jn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values ar Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};eA.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ka=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Ka.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var pm=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var MBe=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())})},QP=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 V4(t,e,r){return MBe(this,void 0,void 0,function*(){var n;let s=new Fi(t),i=s.getBlockBlobClient(),a=new QP((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(),x(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new iE(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw pt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(V4,"uploadCacheArchiveSDK");var W4=Q(require("buffer"),1),Ws=Q(require("fs"),1),$4=Q(require("stream"),1),j4=Q(require("util"),1);var oE=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 aE(t){return t?t>=200&&t<300:!1}o(aE,"isSuccessStatusCode");function LBe(t){return t?t>=500:!0}o(LBe,"isServerErrorStatusCode");function _Be(t){return t?[Je.BadGateway,Je.ServiceUnavailable,Je.GatewayTimeout].includes(t):!1}o(_Be,"isRetryableStatusCode");function FBe(t){return oE(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(FBe,"sleep");function J4(t,e,r){return oE(this,arguments,void 0,function*(n,s,i,a=Pf,c=vf,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),!LBe(m)))return d;if(m&&(p=_Be(m),A=`Cache service responded with ${m}`),x(`${n} - Attempt ${u} of ${a} failed with error: ${A}`),!p){x(`${n} - Error is not retryable`);break}yield FBe(c),u++}throw Error(`${n} failed: ${A}`)})}o(J4,"retry");function hm(t,e){return oE(this,arguments,void 0,function*(r,n,s=Pf,i=vf){return yield J4(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof Cs)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(hm,"retryTypedResponse");function tA(t,e){return oE(this,arguments,void 0,function*(r,n,s=Pf,i=vf){return yield J4(r,n,a=>a.message.statusCode,s,i)})}o(tA,"retryHttpClientResponse");var wn=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 UBe(t,e){return wn(this,void 0,void 0,function*(){yield j4.promisify($4.pipeline)(t.message,e)})}o(UBe,"pipeResponseToStream");var cE=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,x(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receive Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])x(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(VBe,"printCachesListForDiagnostics");function SP(t,e,r){return br(this,void 0,void 0,function*(){let n=new lW.URL(t),s=eW(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield X4(t,e,s):s.concurrentBlobDownloads?yield K4(t,e,s):yield lE(t,e):yield lE(t,e)})}o(SP,"downloadCache");function uW(t,e,r){return br(this,void 0,void 0,function*(){let n=NP(),s=wl(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield hm("reserveCache",()=>br(this,void 0,void 0,function*(){return n.postJson(gm("caches"),i)}))})}o(uW,"reserveCache");function cW(t,e){return`bytes ${t}-${e}/*`}o(cW,"getContentRange");function JBe(t,e,r,n,s){return br(this,void 0,void 0,function*(){x(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${cW(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":cW(n,s)},a=yield tA(`uploadChunk (start: ${n}, end: ${s})`,()=>br(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!aE(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(JBe,"uploadChunk");function WBe(t,e,r,n){return br(this,void 0,void 0,function*(){let s=Es(r),i=gm(`caches/${e.toString()}`),a=rA.openSync(r,"r"),c=xP(n),l=Kw("uploadConcurrency",c.uploadConcurrency),A=Kw("uploadChunkSize",c.uploadChunkSize),u=[...new Array(l).keys()];x("Awaiting all uploads");let d=0;try{yield Promise.all(u.map(()=>br(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 JBe(t,i,()=>rA.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{rA.closeSync(a)}})}o(WBe,"uploadFile");function $Be(t,e,r){return br(this,void 0,void 0,function*(){let n={size:r};return yield hm("commitCache",()=>br(this,void 0,void 0,function*(){return t.postJson(gm(`caches/${e.toString()}`),n)}))})}o($Be,"commitCache");function RP(t,e,r,n){return br(this,void 0,void 0,function*(){if(xP(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield V4(r,e,n)}else{let i=NP();x("Upload cache"),yield WBe(i,t,e,n),x("Commiting cache");let a=Es(e);le(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield $Be(i,t,a);if(!aE(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);le("Cache saved successfully")}})}o(RP,"saveCache");var i$=Q(XW(),1),lt=Q(ct(),1),Zr=Q(ct(),1),rc=Q(ct(),1),nc=Q(ct(),1),sc=Q(ct(),1);var Qv=Q(ct(),1),xv=Q(ct(),1),r$=Q(ct(),1),n$=Q(ct(),1),s$=Q(ct(),1);var Cv=Q(ct(),1),Iv=Q(ct(),1),ZW=Q(ct(),1),e$=Q(ct(),1),t$=Q(ct(),1);var Bv=class extends t$.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,e$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ZW.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?Iv.UnknownFieldHandler.onRead:A)(this.typeName,i,c,l,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Cv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Cv.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?Iv.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},jE=new Bv;var wv=class extends s$.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>jE,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,n$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,r$.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.repositoryId=e.int64().toString();break;case 2:i.scope.push(jE.internalBinaryRead(e,e.uint32(),n));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?xv.UnknownFieldHandler.onRead:A)(this.typeName,i,c,l,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,Qv.WireTyp Line truncated
`));let{commands:n}=yield c$(r,"create");yield A$(n,t)})}o(Hv,"createTar");var yA=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())})},ts=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},ic=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},zv="cache write denied:",eC=class t extends ic{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},d$=Df,tC=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},rC=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function m$(t){if(!t||t.length===0)throw new ts("Path Validation Error: At least one directory or file path is required")}o(m$,"checkPaths");function Gv(t){if(t.length>512)throw new ts(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ts(`Key Validation Error: ${t} cannot contain commas.`)}o(Gv,"checkKey");function Yv(){return fm()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(Yv,"isFeatureAvailable");function p$(t,e,r,n){return yA(this,arguments,void 0,function*(s,i,a,c,l=!1){let A=fm();x(`Cache service version: ${A}`),m$(s);let u=bP();if(!rW(u)){le(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),x(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield Awe(s,i,a,c,l):yield lwe(s,i,a,c,l)})}o(p$,"restoreCache");function lwe(t,e,r,n){return yA(this,arguments,void 0,function*(s,i,a,c,l=!1){var A;a=a||[];let u=[i,...a];if(x("Resolved Keys:"),x(JSON.stringify(u)),u.length>10)throw new ts("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of u)Gv(p);let d=yield hd(),m="";try{let p;try{p=yield AW(u,s,{compressionMethod:d,enableCrossOsArchive:l})}catch(f){let C=(A=f?.message)!==null&&A!==void 0?A:"";throw C.includes(d$)?new tC(C):f}if(!p?.archiveLocation)return;if(c?.lookupOnly)return le("Lookup only - skipping download"),p.cacheKey;m=km.join(yield wa(),Io(d)),x(`Archive Path: ${m}`),yield SP(p.archiveLocation,m,c),Ea()&&(yield Dm(m,d));let h=Es(m);return le(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield qv(m,d),le("Cache restored successfully"),p.cacheKey}catch(p){let h=p;if(h.name===ts.name)throw p;h instanceof Cs&&typeof h.statusCode=="number"&&h.statusCode>=500?hl(`Failed to restore: ${p.message}`):pt(`Failed to restore: ${p.message}`)}finally{try{yield pd(m)}catch(p){x(`Failed to delete archive: ${p}`)}}})}o(lwe,"restoreCacheV1");function Awe(t,e,r,n){return yA(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(x("Resolved Keys:"),x(JSON.stringify(u)),u.length>10)throw new ts("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of u)Gv(m);let d="";try{let m=Uv(),p=yield hd(),h={key:i,restoreKeys:a,version:wl(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(d$)?new tC(I):E}if(!f.ok){x(`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=km.join(yield wa(),Io(p)),x(`Archive path: ${d}`),x(`Starting download of archive to: ${d}`),yield SP(f.signedDownloadUrl,d,c);let y=Es(d);return le(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Ea()&&(yield Dm(d,p)),yield qv(d,p),le("Cache restored successfully"),f.matchedKey}catch(m){let p=m;if(p.name===ts.name)throw m;p instanceof Cs&&typeof p.statusCode=="number"&&p.statusCode>=500?hl(`Failed to restore: ${m.message}`):pt(`Failed to restore: ${m.message}`)}finally{try{d&&(yield pd(d))}catch(m){x(`Failed to delete archive: ${m}`)}}})}o(Awe,"restoreCacheV2");function Vv(t,e,r){return yA(this,arguments,void 0,function*(n,s,i,a=!1){let c=fm();x(`Cache service version: ${c}`),m$(n),Gv(s);let l=bP();return nW(l)?c==="v2"?yield dwe(n,s,i,a):yield uwe(n,s,i,a):(le(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),x(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}o(Vv,"saveCache");function uwe(t,e,r){return yA(this,argume Line truncated
`,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:ye,delimiterDiscovered:Ye,delimiterBufPrevious:Se,rawBuffer:Pe,escapeIsQuote:ce}=this.state;if(!Ye&&A){let xe;if(Se===void 0?xe=n:Se!==void 0&&n===void 0?xe=Se:xe=Buffer.concat([Se,n]),n=void 0,s||xe.length>A.size)this.options.delimiter=[Buffer.from(H5(xe,this.options.delimiter_auto))],this.state.previousBuf=xe,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=xe;return}}let{previousBuf:At}=this.state,se;if(At===void 0)if(n===void 0){a();return}else se=n;else At!==void 0&&n===void 0?se=At:se=Buffer.concat([At,n]);if(ye===!1)if(c===!1)this.state.bomSkipped=!0;else if(se.length<3){if(s===!1){this.state.previousBuf=se;return}}else{for(let xe in MA)if(MA[xe].compare(se,0,MA[xe].length)===0){let Gi=MA[xe].length;this.state.bufBytesStart+=Gi,se=se.slice(Gi);let Wm=TA({...this.original_options,encoding:xe});for(let gt in Wm)this.options[gt]=Wm[gt];({comment:B,escape:N,quote:S}=this.options);break}this.state.bomSkipped=!0}let kn=se.length,H;for(H=0;H<kn&&!this.__needMoreData(H,kn,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(se,H)&&(F=this.options.record_delimiter);let xe=se[H];if(h===!0&&Pe.append(xe),(xe===_Ne||xe===FNe)&&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(se,H,xe)&&H+N.length<kn)if(ce){if(this.__isQuote(se,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(se,H))if(this.state.quoting===!0){let gt=se[H+S.length],Ho=C&&this.__isCharTrimable(se,H+S.length),si=B!==null&&this.__compareBytes(B,se,H+S.length,gt),zo=this.__isDelimiter(se,H+S.length,gt),$m=F.length===0?this.__autoDiscoverRecordDelimiter(se,H+S.length):this.__isRecordDelimiter(gt,se,H+S.length);if(N!==null&&this.__isEscape(se,H,xe)&&this.__isQuote(se,H+N.length))H+=N.length-1;else if(!gt||zo||$m||si||Ho){this.state.quoting=!1,this.state.wasQuoting=!0,H+=S.length-1;continue}else if(f===!1){let ek=this.__error(new ue("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(gt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(ek!==void 0)return ek}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 gt=this.__infoField(),Ho=Object.keys(MA).map(zo=>MA[zo].equals(this.state.field.toString())?zo:!1).filter(Boolean)[0],si=this.__error(new ue("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(gt.column)} at line ${gt.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Ho?`(${Ho} bom)`:void 0],this.options,gt,{field:this.state.field}));if(si!==void 0)return si}}else{this.state.quoting=!0,H+=S.length-1;continue}if(this.state.quoting===!1){let gt=this.__isRecordDelimiter(xe,se,H);if(gt!==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+=gt-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,H+=gt-1;continue}this.info.bytes=this.state.bufBytesStart+H;let zo=this.__onField();if(zo!==void 0)return zo;this.info.bytes=this.state.bufBytesStart+H+gt;let $m=this.__onRecord(i);if($m!==void 0)return $m;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,H+=gt-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,se,H,xe)!==0){this.state.commenting=!0;continue}let Ho=this.__isDelimiter(se,H,xe);if(Ho!==0){this.info.bytes=this.state.bufBytesStart+H;let si=this.__onField();if(si!==void 0)return si;H+=Ho-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new ue("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${p}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Gi=m===!1||thi Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let A=0;A<l;A++)if(a[c][A]!==n[s+A])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var P5=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=OC(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var wA=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(al(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=P5(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=al(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await pr("powershell",!0),s=e.replace(/'/g,"''"),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${s}' ${i.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return v5.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return zD.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return zD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return D5.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=Hm.default.resolve(e);return Hm.default.resolve(r).startsWith(n.endsWith(Hm.default.sep)?n:`${n}${Hm.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),i=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var Yt=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||zm.default.join(k5.default.homedir(),".docker")}static configFile(){let e=zm.default.join(t.configDir,"config.json");if(GD.default.existsSync(e))return JSON.parse(GD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await pr("docker",!0).then(e=>(b(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(b(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca Line truncated
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};function L5(){return{image:al("image")||"docker.io/tonistiigi/binfmt:latest",platforms:wA.getInputList("platforms").join(",")||"all",reset:Mx("reset"),cacheImage:Mx("cache-image")}}o(L5,"getInputs");a8(async()=>{let t=L5();await fs("Docker info",async()=>{await Yt.printVersion(),await Yt.printInfo()}),await fs("Pulling binfmt Docker image",async()=>{await Yt.pull(t.image,t.cacheImage)}),await fs("Image info",async()=>{await Yt.getExecOutput(["image","inspect",t.image],{ignoreReturnCode:!0}).then(e=>{if(e.exitCode!=0)throw new Error(`Failed to inspect image ${t.image}: ${Yt.getErrorMessage(e.stderr)}`)})}),await fs("Binfmt version",async()=>{await Yt.getExecOutput(["run","--rm","--privileged",t.image,"--version"],{ignoreReturnCode:!0}).then(e=>{if(e.exitCode!=0)throw new Error(`Failed to get binfmt version: ${Yt.getErrorMessage(e.stderr)}`)})}),t.reset&&await fs("Uninstalling current emulators",async()=>{await Yt.getExecOutput(["run","--rm","--privileged",t.image,"--uninstall","qemu-*"],{ignoreReturnCode:!0}).then(e=>{if(e.exitCode!=0)throw new Error(`Failed to uninstall current emulators: ${Yt.getErrorMessage(e.stderr)}`)})}),await fs("Installing QEMU static binaries",async()=>{await Yt.getExecOutput(["run","--rm","--privileged",t.image,"--install",t.platforms],{ignoreReturnCode:!0}).then(e=>{if(e.exitCode!=0)throw new Error(`Failed to install QEMU static binaries: ${Yt.getErrorMessage(e.stderr)}`)})}),await fs("Extracting available platforms",async()=>{await Yt.getExecOutput(["run","--rm","--privileged",t.image],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.exitCode!=0)throw new Error(`Failed to extract available platforms: ${Yt.getErrorMessage(e.stderr)}`);let r=JSON.parse(e.stdout.trim());le(`${r.supported.join(",")}`),WU("platforms",r.supported.join(","))})})});
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let A=0;A<l;A++)if(a[c][A]!==n[s+A])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var G5=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=YC(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var LA=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(pl(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=G5(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=pl(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await hr("powershell",!0),s=e.replace(/'/g,"''"),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${s}' ${i.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return Y5.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return XD.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return XD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return V5.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=Vm.default.resolve(e);return Vm.default.resolve(r).startsWith(n.endsWith(Vm.default.sep)?n:`${n}${Vm.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),i=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var Jt=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Jm.default.join(J5.default.homedir(),".docker")}static configFile(){let e=Jm.default.join(t.configDir,"config.json");if(ZD.default.existsSync(e))return JSON.parse(ZD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await hr("docker",!0).then(e=>(x(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(x(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca Line truncated
${s}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};function j5(){return{image:pl("image")||"docker.io/tonistiigi/binfmt:latest",platforms:LA.getInputList("platforms").join(",")||"all",reset:Ux("reset"),cacheImage:Ux("cache-image")}}o(j5,"getInputs");g$(async()=>{let t=j5();await fs("Docker info",async()=>{await Jt.printVersion(),await Jt.printInfo()}),await fs("Pulling binfmt Docker image",async()=>{await Jt.pull(t.image,t.cacheImage)}),await fs("Image info",async()=>{await Jt.getExecOutput(["image","inspect",t.image],{ignoreReturnCode:!0}).then(e=>{if(e.exitCode!=0)throw new Error(`Failed to inspect image ${t.image}: ${Jt.getErrorMessage(e.stderr)}`)})}),await fs("Binfmt version",async()=>{await Jt.getExecOutput(["run","--rm","--privileged",t.image,"--version"],{ignoreReturnCode:!0}).then(e=>{if(e.exitCode!=0)throw new Error(`Failed to get binfmt version: ${Jt.getErrorMessage(e.stderr)}`)})}),t.reset&&await fs("Uninstalling current emulators",async()=>{await Jt.getExecOutput(["run","--rm","--privileged",t.image,"--uninstall","qemu-*"],{ignoreReturnCode:!0}).then(e=>{if(e.exitCode!=0)throw new Error(`Failed to uninstall current emulators: ${Jt.getErrorMessage(e.stderr)}`)})}),await fs("Installing QEMU static binaries",async()=>{await Jt.getExecOutput(["run","--rm","--privileged",t.image,"--install",t.platforms],{ignoreReturnCode:!0}).then(e=>{if(e.exitCode!=0)throw new Error(`Failed to install QEMU static binaries: ${Jt.getErrorMessage(e.stderr)}`)})}),await fs("Extracting available platforms",async()=>{await Jt.getExecOutput(["run","--rm","--privileged",t.image],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.exitCode!=0)throw new Error(`Failed to extract available platforms: ${Jt.getErrorMessage(e.stderr)}`);let r=JSON.parse(e.stdout.trim());le(`${r.supported.join(",")}`),nO("platforms",r.supported.join(","))})})});
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ooBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,GAAA,gBAMT,SAASC,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,GAAA,iBAQT,SAASC,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,GAAA,iBAMT,SAASC,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,GAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,GAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ooBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,GAAA,gBAMT,SAASC,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,GAAA,iBAQT,SAASC,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,GAAA,iBAMT,SAASC,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,GAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,GAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
Generated Vendored
+62 -93
View File
@@ -216,7 +216,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.100.0
- @docker/actions-toolkit@0.106.0
This package contains the following license:
@@ -453,9 +453,10 @@ The following npm packages may be included in this product:
- @pkgjs/parseargs@0.11.0
- b4a@1.6.6
- b4a@1.9.0
- bare-events@2.2.2
- bare-events@2.8.3
- bare-fs@4.7.1
- bare-fs@4.8.4
- bare-os@3.9.1
- bare-stream@2.13.1
- bare-url@2.4.3
@@ -1541,13 +1542,8 @@ Apache License
The following npm packages may be included in this product:
- @protobuf-ts/plugin-framework@2.9.4
- @protobuf-ts/plugin@2.9.4
- @protobuf-ts/protoc@2.9.4
- @protobuf-ts/runtime-rpc@2.11.1
- @protobuf-ts/runtime-rpc@2.9.4
- @protobuf-ts/runtime@2.11.1
- @protobuf-ts/runtime@2.9.4
These packages each contain the following license:
@@ -1792,7 +1788,7 @@ SOFTWARE.
The following npm package may be included in this product:
- js-yaml@5.4.1
- js-yaml@5.4.3
This package contains the following license:
@@ -2007,6 +2003,37 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- content-type@3.1.1
This package contains the following license:
(The MIT License)
Copyright (c) 2015 Douglas Christopher Wilson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- universal-user-agent@7.0.3
@@ -2091,6 +2118,7 @@ The following npm packages may be included in this product:
- jackspeak@3.4.3
- minimatch@10.2.5
- minimatch@10.2.6
These packages each contain the following license:
@@ -2565,70 +2593,6 @@ software or this license, under any kind of legal claim.***
-----------
The following npm package may be included in this product:
- typescript@3.9.10
This package contains the following license:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
You must give any other recipients of the Work or Derivative Works a copy of this License; and
You must cause any modified files to carry prominent notices stating that You changed the files; and
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
-----------
The following npm package may be included in this product:
- @sigstore/verify@4.1.2
@@ -2727,7 +2691,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The following npm package may be included in this product:
- handlebars@4.7.9
- handlebars@4.7.10
This package contains the following license:
@@ -2962,11 +2926,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- @octokit/openapi-types@27.0.0
- @octokit/openapi-types@28.0.0
- @octokit/openapi-types@29.0.1
This package contains the following license:
These packages each contain the following license:
Copyright (c) GitHub 2025 - Licensed as MIT.
@@ -3128,7 +3094,7 @@ The following npm packages may be included in this product:
- emoji-regex@8.0.0
- emoji-regex@9.2.2
- he@1.2.0
- he@2.0.0
These packages each contain the following license:
@@ -3286,12 +3252,11 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- brace-expansion@1.1.18
- brace-expansion@2.0.2
These packages each contain the following license:
This package contains the following license:
MIT License
@@ -3440,7 +3405,7 @@ SOFTWARE.
The following npm package may be included in this product:
- @octokit/plugin-retry@8.1.0
- @octokit/plugin-retry@8.1.1
This package contains the following license:
@@ -3530,11 +3495,12 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- json-with-bigint@3.5.12
- json-with-bigint@3.5.7
This package contains the following license:
These packages each contain the following license:
MIT License
@@ -3749,11 +3715,12 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- brace-expansion@5.0.12
- brace-expansion@5.0.7
This package contains the following license:
These packages each contain the following license:
MIT License
@@ -3786,6 +3753,8 @@ The following npm packages may be included in this product:
- @octokit/plugin-paginate-rest@14.0.0
- @octokit/plugin-rest-endpoint-methods@17.0.0
- @octokit/types@16.0.0
- @octokit/types@17.0.0
- @octokit/types@18.0.0
These packages each contain the following license:
@@ -4137,10 +4106,8 @@ PERFORMANCE OF THIS SOFTWARE.
The following npm packages may be included in this product:
- isexe@2.0.0
- minimatch@3.1.2
- once@1.4.0
- semver@7.7.3
- semver@7.7.4
- semver@7.8.5
- which@2.0.2
- wrappy@1.0.2
@@ -4196,7 +4163,9 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEAL
The following npm packages may be included in this product:
- @octokit/endpoint@11.0.3
- @octokit/endpoint@11.0.5
- @octokit/graphql@9.0.3
- @octokit/request@10.0.16
- @octokit/request@10.0.8
These packages each contain the following license:
@@ -4230,6 +4199,7 @@ The following npm packages may be included in this product:
- @octokit/auth-token@6.0.0
- @octokit/core@7.0.6
- @octokit/request-error@7.1.0
- @octokit/request-error@7.1.2
These packages each contain the following license:
@@ -4259,7 +4229,7 @@ THE SOFTWARE.
The following npm package may be included in this product:
- csv-parse@7.0.2
- csv-parse@7.0.3
This package contains the following license:
@@ -4385,7 +4355,7 @@ The following npm packages may be included in this product:
- pump@2.0.1
- pumpify@1.5.1
- tar-stream@3.1.7
- tar-stream@3.2.1
- tar-stream@3.2.2
These packages each contain the following license:
@@ -4658,6 +4628,7 @@ The following npm packages may be included in this product:
- fast-fifo@1.3.2
- streamx@2.16.1
- streamx@2.26.0
- streamx@2.28.1
These packages each contain the following license:
@@ -4903,14 +4874,13 @@ THE SOFTWARE.
The following npm packages may be included in this product:
- @actions/artifact@6.2.1
- @actions/cache@6.2.0
- @actions/artifact@6.3.1
- @actions/cache@6.3.0
- @actions/core@3.0.0
- @actions/core@3.0.1
- @actions/exec@3.0.0
- @actions/github@9.0.0
- @actions/github@9.1.1
- @actions/glob@0.6.1
- @actions/glob@0.7.0
- @actions/io@3.0.2
- @actions/tool-cache@4.0.0
@@ -5006,7 +4976,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
The following npm packages may be included in this product:
- concat-map@0.0.1
- minimist@1.2.8
- wordwrap@1.0.0